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 |
|---|---|---|---|---|---|
/*******************************************************************************
* Copyright 2010-2012 Broadcom Corporation. All rights reserved.
*
* @file include/linux/broadcom/bcm_audio.h
*
* Unless you and Broadcom execute a separate written software license agreement
* governing use of this software, this... | ColDReaVeR/android_kernel_samsung_coriplus | include/linux/broadcom/sysparm_shared.h | C | gpl-2.0 | 11,433 |
package de.metas.ui.web.pattribute;
import java.math.BigDecimal;
import java.util.List;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Function;
import org.adempiere.ad.expression.api.ConstantLogicExpression;
import org.adempiere.ad.expression.api.IExpression;
import org.ad... | metasfresh/metasfresh-webui | src/main/java/de/metas/ui/web/pattribute/ASIDescriptorFactory.java | Java | gpl-3.0 | 13,414 |
package games.strategy.engine.framework.ui;
import games.strategy.engine.data.GameData;
import games.strategy.engine.framework.GameDataFileUtils;
import games.strategy.triplea.settings.ClientSetting;
import java.awt.FileDialog;
import java.awt.Frame;
import java.nio.file.Path;
import java.time.ZoneId;
import java.time... | RoiEXLab/triplea | game-app/game-core/src/main/java/games/strategy/engine/framework/ui/SaveGameFileChooser.java | Java | gpl-3.0 | 2,333 |
package metamutator;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import org.junit.Test;
import org.junit.runner.Runner;
import org.junit.runners.BlockJUnit4ClassRunner;
import spoon.processing.A... | DoddGerhardt/OPL2 | src/main/java/metamutator/UniqueTestGenerator.java | Java | gpl-3.0 | 4,165 |
/*
Copyright (C) 2008 Romulo Fernandes Machado (nightz)
Copyright (C) 2008 Erik Hjortsberg <erik.hjortsberg@gmail.com>
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 versi... | mpreisler/ember | src/components/ogre/sound/SoundAction.cpp | C++ | gpl-3.0 | 4,046 |
package net.quetzi.bluepower.tileentities.tier1;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.ItemStack;
import net.quetzi.bluepower.tileentities.TileBase... | liamjarvisman/BluePower | src/main/java/net/quetzi/bluepower/tileentities/tier1/TileProjectTable.java | Java | gpl-3.0 | 2,202 |
"""Basic Pool to give the client a endpoint to post specific resource types."""
from adhocracy_core.interfaces import IServicePool
from adhocracy_core.resources.pool import pool_meta
from adhocracy_core.resources import add_resource_type_to_registry
import adhocracy_core.sheets.name
import adhocracy_core.sheets.pool
i... | liqd/adhocracy3.mercator | src/adhocracy_core/adhocracy_core/resources/service.py | Python | agpl-3.0 | 947 |
/*
* 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 ... | sekikn/ambari | ambari-server/src/main/java/org/apache/ambari/server/controller/internal/OperatingSystemResourceProvider.java | Java | apache-2.0 | 7,267 |
package ca.uhn.fhir.model;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import org.hl7.fhir.dstu... | Gaduo/hapi-fhir | hapi-fhir-structures-dstu3/src/test/java/ca/uhn/fhir/model/ModelDstu3Test.java | Java | apache-2.0 | 5,048 |
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any la... | cgoncas/arquillian-extension-liferay | arquillian-processor-osgi-allin/src/main/java/com/liferay/arquillian/container/osgi/remote/instanceproducer/OSGiAllInBundleInstanceProducer.java | Java | apache-2.0 | 2,313 |
/*
* 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... | Nasdaq/presto | presto-hive/src/main/java/com/facebook/presto/hive/HdfsConfigurationUpdater.java | Java | apache-2.0 | 11,539 |
/*******************************************************************************
* Copyright 2014 JHC Systems Limited
*
* 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... | nico78/redsniff | redsniff-webdriver/src/test/java/jhc/redsniff/webdriver/finders/ByFinderTest.java | Java | apache-2.0 | 4,051 |
/*
* 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 ... | zzcclp/carbondata | core/src/main/java/org/apache/carbondata/core/datastore/page/SafeVarLengthColumnPage.java | Java | apache-2.0 | 4,016 |
/*
* *
* * 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... | apache/incubator-tez | tez-runtime-library/src/main/java/org/apache/tez/runtime/library/conf/OnFileUnorderedPartitionedKVOutputConfiguration.java | Java | apache-2.0 | 9,468 |
package com.pacoapp.paco.ui;
import java.util.List;
import org.joda.time.DateTime;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.support.v7.app.Ac... | kehollin/paco | Paco/src/com/pacoapp/paco/ui/ScheduleListActivity.java | Java | apache-2.0 | 12,268 |
package com.lilarcor.popularmovies.framework.foundation.appstrings;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.StringRes;
import com.lilarcor.popularmovies.framework.foundation.appstrings.contracts.AppStringsProvider;
import javax.inject.Inject;
impor... | MarcelBraghetto/AndroidNanoDegreeProject1 | PopularMovies/src/main/java/com/lilarcor/popularmovies/framework/foundation/appstrings/DefaultAppStringsProvider.java | Java | apache-2.0 | 1,014 |
/**********************************************************************************
* $URL: $
* $Id: $
***********************************************************************************
*
* Copyright (c) 2007 The Sakai Foundation.
*
* Licensed under the Educational Community License, Version 1.0 (the "Licens... | marktriggs/nyu-sakai-10.4 | scorm/scorm-tool/src/java/org/sakaiproject/scorm/ui/player/pages/PlayerPage.java | Java | apache-2.0 | 4,892 |
/*
* Copyright 2010-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 "license" fil... | chiaming0914/awe-cpp-sdk | aws-cpp-sdk-codepipeline/source/model/AcknowledgeThirdPartyJobRequest.cpp | C++ | apache-2.0 | 1,645 |
package com.jeecms.cms.action.member;
import static com.jeecms.cms.Constants.TPLDIR_MEMBER;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.bean... | huanzhou/jeecms6 | src/main/java/com/jeecms/cms/action/member/ForgotPasswordAct.java | Java | apache-2.0 | 6,591 |
#!/usr/bin/env python
"""A temporary module with data store utility functions.
This module serves simple functions that delegate calls to appropriate store
(legacy or relational). Once the legacy data store is deprecated functions
provided in this module should be no longer useful.
"""
from __future__ import absolute_... | dunkhong/grr | grr/server/grr_response_server/data_store_utils.py | Python | apache-2.0 | 1,596 |
package org.sakaiproject.gradebookng.tool.model;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.sakaiproject.gradebookn... | rodriguezdevera/sakai | gradebookng/tool/src/java/org/sakaiproject/gradebookng/tool/model/GradebookUiSettings.java | Java | apache-2.0 | 5,072 |
package org.nlpcn.es4sql;
import java.sql.SQLFeatureNotSupportedException;
import java.util.HashSet;
import java.util.Set;
import org.elasticsearch.action.ActionRequestBuilder;
import org.elasticsearch.client.Client;
import org.nlpcn.es4sql.exception.SqlParseException;
import org.nlpcn.es4sql.query.ESActionFactory;
i... | anhzhi/elasticsearch-sql | src/main/java/org/nlpcn/es4sql/SearchDao.java | Java | apache-2.0 | 1,178 |
/*
*
* Copyright 2015 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... | thomsonreuters/springfox | springfox-swagger2/src/main/java/springfox/documentation/swagger2/mappers/SerializableParameterFactories.java | Java | apache-2.0 | 5,411 |
/*
* 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... | mglukhikh/intellij-community | plugins/groovy/src/org/jetbrains/plugins/groovy/lang/parameterInfo/GroovyAnnotationAttributeInfoHandler.java | Java | apache-2.0 | 7,923 |
/*
* 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... | goodwinnk/intellij-community | platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/TogglePopupHintsAction.java | Java | apache-2.0 | 2,480 |
// Copyright 2015, Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package grpcvtworkerclient contains the gRPC version of the vtworker client protocol.
package grpcvtworkerclient
import (
"flag"
"time"
"golang.org/x/net/c... | mapbased/vitess | go/vt/worker/grpcvtworkerclient/client.go | GO | bsd-3-clause | 2,774 |
// Copyright 2014 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 "chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/st... | patrickm/chromium.src | chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.cc | C++ | bsd-3-clause | 3,352 |
// Copyright (c) 2012 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 "ui/base/ime/input_method_base.h"
#include "base/logging.h"
#include "ui/base/ime/input_method_delegate.h"
#include "ui/base/ime/text_input_... | timopulkkinen/BubbleFish | ui/base/ime/input_method_base.cc | C++ | bsd-3-clause | 2,756 |
package dyvilx.tools.compiler.backend.method;
import dyvil.reflect.Opcodes;
import dyvilx.tools.asm.*;
import dyvilx.tools.compiler.ast.type.IType;
import dyvilx.tools.compiler.backend.exception.BytecodeException;
import java.util.function.Consumer;
public interface MethodWriter extends AnnotatableVisitor, TypeAnnot... | Clashsoft/Dyvil | compiler/src/main/java/dyvilx/tools/compiler/backend/method/MethodWriter.java | Java | bsd-3-clause | 5,042 |
package authorization
import (
"context"
"errors"
"github.com/influxdata/influxdb/v2"
"github.com/influxdata/influxdb/v2/kit/platform"
"github.com/influxdata/influxdb/v2/pkg/httpc"
)
var (
_ influxdb.AuthorizationService = (*Client)(nil)
_ PasswordService = (*Client)(nil)
)
// Client connects t... | li-ang/influxdb | v1/authorization/http_client.go | GO | mit | 3,603 |
package org.knowm.xchange.anx.v2.service;
import java.io.IOException;
import java.math.BigDecimal;
import org.knowm.xchange.BaseExchange;
import org.knowm.xchange.anx.ANXUtils;
import org.knowm.xchange.anx.v2.ANXAdapters;
import org.knowm.xchange.currency.Currency;
import org.knowm.xchange.dto.account.AccountInfo;
im... | jheusser/XChange | xchange-anx/src/main/java/org/knowm/xchange/anx/v2/service/ANXAccountService.java | Java | mit | 1,581 |
/**
*
*/
package org.csstudio.alarm.diirt.datasource;
import static org.diirt.vtype.ValueFactory.alarmNone;
import static org.diirt.vtype.ValueFactory.newVString;
import static org.diirt.vtype.ValueFactory.timeNow;
import java.util.logging.Logger;
import org.diirt.datasource.ValueCache;
import org.diirt.vtype.VStr... | css-iter/cs-studio | applications/alarm/alarm-plugins/org.csstudio.alarm.diirt.datasource/src/org/csstudio/alarm/diirt/datasource/BeastAlarmSeverityAdapter.java | Java | epl-1.0 | 1,102 |
/*
* Copyright (c) 2018 OBiBa. All rights reserved.
*
* This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*... | obiba/mica2 | mica-core/src/main/java/org/obiba/mica/core/domain/PersistentAuditEvent.java | Java | gpl-3.0 | 1,862 |
package org.thoughtcrime.securesms.migrations;
import android.content.Context;
import android.text.TextUtils;
import androidx.annotation.NonNull;
import org.signal.core.util.logging.Log;
import org.thoughtcrime.securesms.database.DatabaseFactory;
import org.thoughtcrime.securesms.dependencies.ApplicationDependencies... | cascheberg/Signal-Android | app/src/main/java/org/thoughtcrime/securesms/migrations/UuidMigrationJob.java | Java | gpl-3.0 | 2,790 |
package lxc
import (
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"log"
)
// StepProvision provisions the instance within a chroot.
type StepProvision struct{}
func (s *StepProvision) Run(state multistep.StateBag) multistep.StepAction {
hook := state.Get("hook").(packer.Hook)
config := ... | markpeek/packer | builder/lxc/step_provision.go | GO | mpl-2.0 | 986 |
package taskrunner
import (
"context"
"fmt"
"time"
cstructs "github.com/hashicorp/nomad/client/structs"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/nomad/plugins/drivers"
)
// NewDriverHandle returns a handle for task operations on a specific task
func NewDriverHandle(driver drivers.Driver... | hashicorp/nomad | client/allocrunner/taskrunner/driver_handle.go | GO | mpl-2.0 | 3,066 |
/**
* Implements the CFML Function arrayavg
*/
package railo.runtime.functions.list;
import java.util.Iterator;
import railo.commons.lang.CFTypes;
import railo.runtime.PageContext;
import railo.runtime.exp.ExpressionException;
import railo.runtime.exp.PageException;
import railo.runtime.ext.function.Function;
impor... | getrailo/railo | railo-java/railo-core/src/railo/runtime/functions/list/ListFilter.java | Java | lgpl-2.1 | 1,731 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/apigatewayv2/model/ReimportApiResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws... | awslabs/aws-sdk-cpp | aws-cpp-sdk-apigatewayv2/source/model/ReimportApiResult.cpp | C++ | apache-2.0 | 3,623 |
/*
* Copyright (c) 2008-2017, 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 ... | juanavelez/hazelcast | hazelcast/src/main/java/com/hazelcast/client/impl/protocol/task/queue/QueueSizeMessageTask.java | Java | apache-2.0 | 2,640 |
/*
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, ... | leandrocr/kops | cmd/kops/update.go | GO | apache-2.0 | 996 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/timestream-write/model/CreateTableResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include ... | aws/aws-sdk-cpp | aws-cpp-sdk-timestream-write/source/model/CreateTableResult.cpp | C++ | apache-2.0 | 934 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sagemaker/model/ListTrialComponentsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include... | awslabs/aws-sdk-cpp | aws-cpp-sdk-sagemaker/source/model/ListTrialComponentsResult.cpp | C++ | apache-2.0 | 1,442 |
package org.apereo.cas.adaptors.gauth.repository.credentials;
import com.warrenstrange.googleauth.GoogleAuthenticatorKey;
import com.warrenstrange.googleauth.IGoogleAuthenticator;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.apereo.cas.configuration.model.support... | dodok1/cas | support/cas-server-support-gauth-core/src/main/java/org/apereo/cas/adaptors/gauth/repository/credentials/RestGoogleAuthenticatorTokenCredentialRepository.java | Java | apache-2.0 | 3,785 |
package sun.bob.mcalendarview.listeners;
import android.support.v4.view.ViewPager;
import android.util.Log;
import android.view.View;
import sun.bob.mcalendarview.utils.CalendarUtil;
/**
* Created by bob.sun on 15/8/28.
*/
public abstract class OnMonthChangeListener implements ViewPager.OnPageChangeListener {
... | rakawestu/mCalendarView | mcalendarview/src/main/java/sun/bob/mcalendarview/listeners/OnMonthChangeListener.java | Java | apache-2.0 | 837 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/compute-optimizer/model/GetEBSVolumeRecommendationsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringU... | awslabs/aws-sdk-cpp | aws-cpp-sdk-compute-optimizer/source/model/GetEBSVolumeRecommendationsResult.cpp | C++ | apache-2.0 | 1,776 |
/*
Copyright 2011-2016 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | chubbymaggie/binnavi | src/main/java/com/google/security/zynamics/binnavi/Gui/Debug/MemoryPanel/Implementations/CDefaultMemoryExpressionBinding.java | Java | apache-2.0 | 2,496 |
// Copyright 2016 The Cockroach 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 ag... | sunya123/cockroach | sql/distsql/expr.go | GO | apache-2.0 | 3,989 |
package gov.hhs.onc.dcdt.mail;
import gov.hhs.onc.dcdt.mail.utils.ToolMailAddressUtils;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation... | mkotelba/dcdt | dcdt-core/src/main/java/gov/hhs/onc/dcdt/mail/DirectAddress.java | Java | apache-2.0 | 2,632 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/autoscaling/model/DeleteNotificationConfigurationRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::AutoScali... | aws/aws-sdk-cpp | aws-cpp-sdk-autoscaling/source/model/DeleteNotificationConfigurationRequest.cpp | C++ | apache-2.0 | 1,129 |
/*
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 wri... | lukehuangch/fabric | peer/clilogging/common.go | GO | apache-2.0 | 1,888 |
/* session.h -- Functions found in session.c.
$Id: session.h 5337 2013-08-22 17:54:06Z karl $
Copyright 1993, 1998, 1999, 2001, 2002, 2004, 2007, 2011, 2013
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public L... | nischu7/texinfo | info/session.h | C | gpl-3.0 | 12,105 |
/*
* Copyright © 2015 | Alexander01998 | All rights reserved.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package tk.wurst_client.hooks.reader.data;
imp... | Konloch/Hook-Manager | Hook Manager/src/tk/wurst_client/hooks/reader/data/HookData.java | Java | mpl-2.0 | 898 |
/*
* Copyright 2013-present Facebook, 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... | vschs007/buck | src/com/facebook/buck/ocaml/OcamlStaticLibrary.java | Java | apache-2.0 | 4,654 |
/*
* 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... | freeVM/freeVM | enhanced/java/classlib/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/DirectoryManagerBuilderTest.java | Java | apache-2.0 | 11,535 |
#!/usr/bin/env python
import Monitor
import os
import sys
import pUtil
import signal
from CustomEncoder import ConfigurationSerializer
from Configuration import Configuration
import getpass #Eddie to remove
signal.signal(signal.SIGTERM, pUtil.sig2exc)
signal.signal(signal.SIGQUIT, pUtil.sig2exc)
signal.signal(signa... | RRCKI/pilot | glexec_aux.py | Python | apache-2.0 | 2,282 |
/*
* 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... | goodwinnk/intellij-community | platform/platform-impl/src/com/intellij/util/ui/ReloadablePanel.java | Java | apache-2.0 | 5,048 |
package server
import (
"github.com/rexray/rexray/libstorage/api/server/handlers"
"github.com/rexray/rexray/libstorage/api/server/services"
"github.com/rexray/rexray/libstorage/api/types"
)
func (s *server) initGlobalMiddleware() {
s.addGlobalMiddleware(handlers.NewQueryParamsHandler())
if s.logHTTPEnabled {
... | thecodeteam/rexray | libstorage/api/server/server_middleware.go | GO | apache-2.0 | 2,614 |
/**
* 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... | RanjithKumar5550/RanMifos | fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/StaffImageApiTest.java | Java | apache-2.0 | 4,672 |
/*
* 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... | gaohoward/activemq-artemis | tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/bridge/BridgeRoutingTest.java | Java | apache-2.0 | 6,678 |
/*
* 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 ... | dkhwangbo/druid | java-util/src/test/java/org/apache/druid/java/util/emitter/core/ParametrizedUriEmitterConfigTest.java | Java | apache-2.0 | 3,651 |
/*
* Copyright 2017 StreamSets 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... | rockmkd/datacollector | commonlib/src/test/java/com/streamsets/pipeline/stage/util/tls/TlsConfigBeanUpgraderTestUtil.java | Java | apache-2.0 | 4,806 |
/*
* Copyright (C) 2012 Google 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 retain the above copyright
* notice, this list of conditio... | axinging/chromium-crosswalk | third_party/WebKit/Source/platform/exported/WebPrerender.cpp | C++ | bsd-3-clause | 3,787 |
/*
mediastreamer2 library - modular sound and video processing and streaming
Copyright (C) 2014 Belledonne Communications SARL
Author: Simon Morlat <simon.morlat@linphone.org>
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 ... | jiangjianping/mediastreamer2 | tools/msaudiocmp.c | C | gpl-2.0 | 1,804 |
package eu.excitementproject.eop.alignmentedas.p1eda.sandbox;
import java.util.Vector;
import org.apache.uima.jcas.JCas;
import weka.classifiers.bayes.NaiveBayes;
import weka.classifiers.functions.Logistic;
import weka.classifiers.functions.MultilayerPerceptron;
import weka.classifiers.functions.SimpleLogistic;
impo... | madhumita-dfki/Excitement-Open-Platform | alignmentedas/src/main/java/eu/excitementproject/eop/alignmentedas/p1eda/sandbox/DEWithoutDerivBase.java | Java | gpl-3.0 | 7,902 |
/*
* Kuali Coeus, a comprehensive research administration system for higher education.
*
* Copyright 2005-2016 Kuali, Inc.
*
* 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, eithe... | mukadder/kc | coeus-impl/src/main/java/org/kuali/coeus/common/budget/framework/nonpersonnel/BudgetLineItemBase.java | Java | agpl-3.0 | 6,157 |
package soot.toDex.instructions;
import org.jf.dexlib2.Opcode;
import org.jf.dexlib2.builder.BuilderInstruction;
import org.jf.dexlib2.builder.instruction.BuilderInstruction20t;
import soot.toDex.LabelAssigner;
/**
* The "20t" instruction format: It needs two 16-bit code units, does not have any registers
* and is... | anddann/soot | src/soot/toDex/instructions/Insn20t.java | Java | lgpl-2.1 | 781 |
/*
* Copyright (c) 2005-2011 Grameen Foundation USA
* 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
*
* Unl... | madhav123/gkmaster | application/src/main/java/org/mifos/customers/struts/action/CustomerAction.java | Java | apache-2.0 | 3,513 |
/**
* 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... | mahak/hbase | hbase-compression/hbase-compression-xz/src/test/java/org/apache/hadoop/hbase/io/compress/xz/TestWALCompressionLzma.java | Java | apache-2.0 | 2,701 |
/*
* Copyright 2012-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... | bclozel/spring-boot | spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/web/servlet/MvcWebEndpointIntegrationTests.java | Java | apache-2.0 | 6,983 |
/*
* Copyright (c) 2008-2021, 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 ... | emre-aydin/hazelcast | hazelcast/src/main/java/com/hazelcast/cp/internal/datastructures/countdownlatch/client/AwaitMessageTask.java | Java | apache-2.0 | 2,769 |
/*
* 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... | guozhangwang/kafka | clients/src/main/java/org/apache/kafka/common/requests/DeleteRecordsRequest.java | Java | apache-2.0 | 3,451 |
// Copyright 2021 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 "chrome/browser/ash/policy/scheduled_task_handler/scheduled_task_util.h"
#include <memory>
#include "base/check.h"
#include "base/memory/ptr_uti... | chromium/chromium | chrome/browser/ash/policy/scheduled_task_handler/test/scheduled_task_util_unittest.cc | C++ | bsd-3-clause | 5,511 |
// Copyright 2020 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 "ash/services/secure_channel/pending_nearby_initiator_connection_request.h"
#include "ash/services/secure_channel/public/mojom/secure_channel.mo... | chromium/chromium | ash/services/secure_channel/pending_nearby_initiator_connection_request.cc | C++ | bsd-3-clause | 3,724 |
// Copyright 2021 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 "ash/quick_pair/repository/fake_fast_pair_repository.h"
#include "ash/quick_pair/proto/fastpair.pb.h"
#include "base/strings/string_util.h"
#inc... | chromium/chromium | ash/quick_pair/repository/fake_fast_pair_repository.cc | C++ | bsd-3-clause | 3,157 |
package selector
import (
"github.com/micro/go-micro/registry"
"golang.org/x/net/context"
)
type Options struct {
Registry registry.Registry
Strategy Strategy
// Other options for implementations of the interface
// can be stored in a context
Context context.Context
}
type SelectOptions struct {
Filters [... | LOG-ED/docker-micro | vendor/github.com/micro/go-micro/selector/options.go | GO | mit | 1,268 |
/**
* Copyright 2016 IBM Corp.
*
* 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... | hartsock/vault | vendor/github.com/softlayer/softlayer-go/services/email.go | GO | mpl-2.0 | 4,699 |
/*
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 use this f... | ghaskins/obc-peer | openchain/ledger/statemgmt/trie/snapshot_iterator_test.go | GO | apache-2.0 | 3,928 |
// Copyright 2021 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 "components/policy/test_support/request_handler_for_auto_enrollment.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#... | chromium/chromium | components/policy/test_support/request_handler_for_auto_enrollment.cc | C++ | bsd-3-clause | 3,104 |
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... | jcgruenhage/dendrite | vendor/src/github.com/uber/jaeger-client-go/crossdock/server/tchannel.go | GO | apache-2.0 | 2,817 |
/*
* Copyright 2002-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 ap... | ollie314/spring-security | config/src/main/java/org/springframework/security/config/ldap/LdapProviderBeanDefinitionParser.java | Java | apache-2.0 | 5,818 |
// Copyright 2000-2020 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.psi.search;
import com.intellij.core.CoreBundle;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.NotNullLazyKey;
import org.jet... | smmribeiro/intellij-community | platform/core-api/src/com/intellij/psi/search/ProjectScope.java | Java | apache-2.0 | 2,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 ... | apache/incubator-asterixdb-hyracks | hyracks/hyracks-tests/hyracks-storage-am-lsm-rtree-test/src/test/java/org/apache/hyracks/storage/am/lsm/rtree/util/LSMRTreeTestHarness.java | Java | apache-2.0 | 8,133 |
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of ... | vanfanel/scummvm | engines/nancy/commontypes.cpp | C++ | gpl-2.0 | 2,995 |
package dr.evomodelxml.tree;
import dr.evolution.MetagenomeData;
import dr.evomodel.tree.HiddenLinkageModel;
import dr.xml.*;
/**
* @author Aaron Darling (koadman)
*/
public class HiddenLinkageModelParser extends AbstractXMLObjectParser {
public static final String LINKAGE_GROUP_COUNT = "linkageGroupCount";
... | danieljue/beast-mcmc | src/dr/evomodelxml/tree/HiddenLinkageModelParser.java | Java | lgpl-2.1 | 1,281 |
// Copyright 2019 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 "components/permissions/bluetooth_scanning_prompt_controller.h"
#include <algorithm>
#include "base/strings/utf_string_conversions.h"
#include ... | scheib/chromium | components/permissions/bluetooth_scanning_prompt_controller.cc | C++ | bsd-3-clause | 4,945 |
// Copyright 2018 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 "device/bluetooth/test/fake_device_pairing_requested_event_args_winrt.h"
#include <windows.foundation.h>
#include <utility>
#include "base/win... | chromium/chromium | device/bluetooth/test/fake_device_pairing_requested_event_args_winrt.cc | C++ | bsd-3-clause | 2,658 |
// Copyright 2019 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 "chrome/browser/ui/login/login_navigation_throttle.h"
#include "base/feature_list.h"
#include "chrome/browser/ui/login/login_tab_helper.h"
#incl... | ric2b/Vivaldi-browser | chromium/chrome/browser/ui/login/login_navigation_throttle.cc | C++ | bsd-3-clause | 1,600 |
/*
* otr4j, the open source java otr librar
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.otr4j;
import java.security.PublicKey;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import net.java.otr4j.session.Session;... | GinRyan/beem-fork-xmpp | src/net/java/otr4j/OtrEngineImpl.java | Java | gpl-3.0 | 2,831 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package co... | prayuditb/tryout-01 | websocket/client/Client/node_modules/react-native/ReactAndroid/src/test/java/com/facebook/react/views/textinput/TextInputTest.java | Java | mit | 6,770 |
/**
* Copyright 2014 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 requir... | google/mr4c | java/test/java/com/google/mr4c/sources/MapFileSourceDFSTest.java | Java | apache-2.0 | 2,862 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.sql.expression.function.scalar.datetime;
imp... | gingerwizard/elasticsearch | x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/function/scalar/datetime/Quarter.java | Java | apache-2.0 | 1,941 |
// Copyright 2015 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 "chrome/browser/chromeos/attestation/platform_verification_impl.h"
#include <utility>
#include "content/public/browser/browser_thread.h"
#inclu... | js0701/chromium-crosswalk | chrome/browser/chromeos/attestation/platform_verification_impl.cc | C++ | bsd-3-clause | 2,716 |
// Copyright 2000-2020 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.ui.jcef;
import com.intellij.testFramework.ApplicationRule;
import com.intellij.ui.scale.TestScaleHelper;
import org.junit.After;
import org.junit.Before;
im... | siosio/intellij-community | platform/platform-tests/testSrc/com/intellij/ui/jcef/JBCefJSQueryPoolSizeKeyTest.java | Java | apache-2.0 | 987 |
/*
* Copyright 2005-2010 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 requi... | vitorgv/spring-ldap | test/integration-tests/src/test/java/org/springframework/ldap/itest/LdapTemplateAuthenticationITest.java | Java | apache-2.0 | 7,581 |
/**
* Copyright (c) 2010-2018 by the respective copyright holders.
*
* 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
*/... | aogorek/openhab2-addons | addons/binding/org.openhab.binding.plugwise/src/main/java/org/openhab/binding/plugwise/internal/protocol/SleepSetRequestMessage.java | Java | epl-1.0 | 1,988 |
/* gnu/regexp/RETokenLookAhead.java
Copyright (C) 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath 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 2, or (at... | taciano-perez/JamVM-PH | src/classpath/gnu/java/util/regex/RETokenLookAhead.java | Java | gpl-2.0 | 2,619 |
/*
Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | paran0ids0ul/binnavi | src/main/java/com/google/security/zynamics/binnavi/Gui/MainWindow/ProjectTree/Nodes/Tag/Component/CTagNodeComponent.java | Java | apache-2.0 | 12,736 |
/*
* Copyright 2015 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 a... | jomarko/kie-wb-common | kie-wb-common-screens/kie-wb-common-data-modeller/kie-wb-common-data-modeller-client/src/main/java/org/kie/workbench/common/screens/datamodeller/client/widgets/advanceddomain/valuepaireditor/string/AbstractStringValuePairEditor.java | Java | apache-2.0 | 3,477 |
// Copyright 2015 The Hugo 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 applicable ... | ffrizzo/hugo | commands/genautocomplete.go | GO | apache-2.0 | 2,272 |
// +build windows
/*
Copyright 2018 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 agr... | kubernetes/autoscaler | vertical-pod-autoscaler/e2e/vendor/k8s.io/kubernetes/cmd/kubelet/app/init_windows.go | GO | apache-2.0 | 2,079 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.