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 (c) 2014 Cisco Systems, Inc. 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
*/
package org.... | violinlakshmi/opendaylight | opendaylight/md-sal/compatibility/flow-management-compatibility/src/main/java/org/opendaylight/controller/md/frm/compatibility/SampleConsumer.java | Java | epl-1.0 | 1,945 |
// tslint:disable-next-line:max-line-length
import { McqQuestionStatisticsCalculation } from '../../app/components/question-types/question-statistics/question-statistics-calculation/mcq-question-statistics-calculation';
import {
FeedbackMcqQuestionDetails,
FeedbackParticipantType,
FeedbackQuestionType, QuestionOu... | xpdavid/teammates | src/web/types/question-details-impl/feedback-mcq-question-details.impl.ts | TypeScript | gpl-2.0 | 2,236 |
from Components.config import ConfigSubsection, config
from Tools.LoadPixmap import LoadPixmap
config.plugins = ConfigSubsection()
class PluginDescriptor:
"""An object to describe a plugin."""
# where to list the plugin. Note that there are different call arguments,
# so you might not be able to combine them.
... | kingvuplus/ee | lib/python/Plugins/Plugin.py | Python | gpl-2.0 | 3,227 |
/*
Copyright (C) 2006,2007 Paul Davis
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 2 of the License, or
(at your option) any later version.
This program is distributed in the... | cth103/ardour-cth103 | libs/surfaces/mackie/interface.cc | C++ | gpl-2.0 | 2,484 |
package at.micsti.mymusic;
import java.io.IOException;
import java.util.ArrayList;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Color;
import android.view.Menu;
import ... | MICSTI/my-mobile-music | src/at/micsti/mymusic/MainActivity.java | Java | gpl-2.0 | 3,455 |
/* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option any later version). See
* http://www.gnu.org/ for further details of the GPL. */
package freenet.client.async;
import java.util.Random;
import freenet.client.ArchiveManager;
import freenet.client.... | freenet/fred | src/freenet/client/async/ClientContext.java | Java | gpl-2.0 | 13,176 |
/*
* Copyright (C) 2012-2021 52°North Spatial Information Research GmbH
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*
* If the program is linked with libraries which are l... | EHJ-52n/SOS | hibernate/common/src/test/java/org/n52/sos/ds/hibernate/util/TemporalRestrictionHqlPeriodInstantTest.java | Java | gpl-2.0 | 11,093 |
/* TUI display source window.
Copyright (C) 1998-2017 Free Software Foundation, Inc.
Contributed by Hewlett-Packard Company.
This file is part of GDB.
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 ... | mickael-guene/binutils | gdb/tui/tui-source.h | C | gpl-2.0 | 1,343 |
/* -*- OpenSAF -*-
*
* (C) Copyright 2008 The OpenSAF Foundation
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. This file and program are licensed
* under the GNU Les... | indonexia2004/opensaf-indo | tests/immsv/implementer/test_saImmOiObjectImplementerSet.c | C | gpl-2.0 | 11,292 |
# -*- encoding: utf-8 -*-
from abjad import *
from abjad.tools import layouttools
def test_layouttools_SpacingIndication_normalized_spacing_duration_01():
r'''LilyPond proportionalNotationDuration setting required
for this spacing indication at quarter equals 60.
'''
tempo_indication = Tempo(Duration... | mscuthbert/abjad | abjad/tools/layouttools/test/test_layouttools_SpacingIndication_normalized_spacing_duration.py | Python | gpl-3.0 | 1,127 |
"""
Django settings for demo project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impor... | davidvoler/django_communities | src/demo/settings.py | Python | gpl-3.0 | 1,966 |
#include <avango/gua/renderer/BackgroundPassDescription.hpp>
#include <avango/Base.h>
#include <boost/bind.hpp>
#include <avango/Logger.h>
#include <avango/gua/Types.hpp>
namespace
{
av::Logger& logger(av::getLogger("av::gua::BackgroundPassDescription"));
}
AV_FC_DEFINE(av::gua::BackgroundPassDescription);
AV_FIE... | jakobharlan/avango | avango-gua/src/avango/gua/renderer/BackgroundPassDescription.cpp | C++ | lgpl-3.0 | 4,643 |
package sp.service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.solr.core.query.result.TermsPage;
import sp.model.Report;
/**
* Interface for Reports! Solr search service
*
* @author Paul Kulitski
*/
public interface SolrService {
... | the-ramones/red-mangolin | src/main/java/sp/service/SolrService.java | Java | unlicense | 900 |
/*
* Copyright (C) 2009 University of Washington
*
* 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 ... | joduzu/odk_acf_e | src/org/odk/collect/android/widgets/SelectOneWidget.java | Java | unlicense | 5,647 |
/* 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... | robsoncardosoti/flowable-engine | modules/flowable-form-engine/src/test/java/org/flowable/form/engine/test/FormInstanceTest.java | Java | apache-2.0 | 3,912 |
package me.chanjar.weixin.mp.util.http;
import me.chanjar.weixin.common.util.http.RequestExecutor;
import me.chanjar.weixin.common.util.http.RequestHttp;
import me.chanjar.weixin.mp.bean.material.WxMediaImgUploadResult;
import me.chanjar.weixin.mp.util.http.apache.ApacheMediaImgUploadRequestExecutor;
import me.chanjar... | crazycode/weixin-java-tools | weixin-java-mp/src/main/java/me/chanjar/weixin/mp/util/http/MediaImgUploadRequestExecutor.java | Java | apache-2.0 | 1,240 |
/**
* Copyright (c) 2013-2020 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | locationtech/geowave | extensions/cli/osm/src/main/java/org/locationtech/geowave/cli/osm/mapreduce/Convert/OSMConversionRunner.java | Java | apache-2.0 | 7,231 |
/*
* Copyright 2004, 2005, 2006 Acegi Technology Pty 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | djechelon/spring-security | web/src/main/java/org/springframework/security/web/authentication/AnonymousAuthenticationFilter.java | Java | apache-2.0 | 5,061 |
// Copyright 2015 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | dslomov/bazel-windows | src/main/java/com/google/devtools/build/lib/analysis/AspectCompleteEvent.java | Java | apache-2.0 | 6,527 |
/*
* Copyright 2015 Rudson Lima
*
* 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 ... | kaarthikeyapreyan/Trust-for-Youth-and-Child-Leadership | android_app/NKana/src/main/java/com/nkana/app/fragment/AboutFragment.java | Java | apache-2.0 | 4,568 |
/*
* 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/avro | lang/java/tools/src/test/java/org/apache/avro/tool/TestToTrevniTool.java | Java | apache-2.0 | 2,740 |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "maxpTable.h"
#include "bufferReader.h"
#define SAFE_FREE(x) if (x) { free(x); }
MaxpTable* MaxpTable_create(const Tag* tag)
{
if ( !tag ) {
return NULL;
}
MaxpTable* maxpTable = (MaxpTable*)malloc(sizeof(MaxpTable));
memset(maxpTable, 0, size... | derwind/fontUtils | otfanalyzer_c/src/maxpTable.c | C | apache-2.0 | 3,016 |
package org.insightech.er.editor.controller.editpart.element.node.removed;
import org.eclipse.draw2d.IFigure;
import org.insightech.er.editor.controller.editpart.element.node.IResizable;
import org.insightech.er.editor.model.diagram_contents.element.node.note.Note;
import org.insightech.er.editor.model.tracking.R... | kozake/ermaster-k | org.insightech.er/src/org/insightech/er/editor/controller/editpart/element/node/removed/RemovedNoteEditPart.java | Java | apache-2.0 | 1,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
* "License"); you ... | apache/incubator-asterixdb | hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/operators/physical/AbstractUnionAllPOperator.java | Java | apache-2.0 | 4,111 |
package org.apache.solr.rest;
/*
* 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.... | netboynb/search-core | src/main/java/org/apache/solr/rest/FieldTypeCollectionResource.java | Java | apache-2.0 | 5,033 |
/* Copyright (c) 2020 PaddlePaddle 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 law or... | luotao1/Paddle | paddle/fluid/distributed/test/barrier_table_test.cc | C++ | apache-2.0 | 2,110 |
/*
* 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 ... | HubSpot/hbase | hbase-server/src/test/java/org/apache/hadoop/hbase/ipc/TestNettyIPC.java | Java | apache-2.0 | 6,292 |
package com.clarkparsia.pellet.datatypes.types.text;
import org.mindswap.pellet.utils.ATermUtils;
import org.mindswap.pellet.utils.Namespaces;
import aterm.ATermAppl;
import com.clarkparsia.pellet.datatypes.AbstractBaseDatatype;
import com.clarkparsia.pellet.datatypes.Datatype;
import com.clarkparsia.pellet.datatype... | edlectrico/Pellet4Android | src/com/clarkparsia/pellet/datatypes/types/text/XSDNMToken.java | Java | apache-2.0 | 1,890 |
/*
* 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 ... | lhaiesp/samza | samza-core/src/test/java/org/apache/samza/classloader/TestIsolatingClassLoaderFactory.java | Java | apache-2.0 | 4,273 |
package eu.scasefp7.eclipse.storyboards.diagram.part;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;
import... | LeonoraG/storyboard-creator | eu.scasefp7.eclipse.storyboards.diagram/src/eu/scasefp7/eclipse/storyboards/diagram/part/StoryboardsDiagramUpdater.java | Java | apache-2.0 | 23,355 |
/*
* 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 ... | hequn8128/flink | flink-tests/src/test/java/org/apache/flink/test/streaming/api/datastream/ReinterpretDataStreamAsKeyedStreamITCase.java | Java | apache-2.0 | 10,455 |
/*
Copyright 2018 creatorlxd
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
distrib... | creatorlxd/Space | Source/GameEngine/Common/CurrentObject.hpp | C++ | apache-2.0 | 1,422 |
/*
* 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 | plugins/groovy/src/org/jetbrains/plugins/groovy/annotator/intentions/ChangeExtendsImplementsQuickFix.java | Java | apache-2.0 | 6,845 |
/**
* 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... | tecknowledgeable/hadoop | hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestFsDatasetImpl.java | Java | apache-2.0 | 14,812 |
/*
* Copyright 2012-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... | thomasdarimont/spring-boot | spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcAutoConfiguration.java | Java | apache-2.0 | 16,237 |
/*
* 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... | hurricup/intellij-community | plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/fixes/ConvertToVarargsMethodFix.java | Java | apache-2.0 | 4,719 |
/*
* 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 ... | tgroh/incubator-beam | runners/gearpump/src/main/java/org/apache/beam/runners/gearpump/translators/CreateStreamingGearpumpView.java | Java | apache-2.0 | 5,563 |
package br.com.adley.whatsnextseries.library;
/**
* Created by Adley on 07/05/2016.
* This class should have all constants from this project.
*/
public class AppConsts {
// Notification configs
public final static String NOTIFICATION_HOUR_KEY = "notification_hours";
public final static String NOTIFICATI... | adleywd/MySeriesProject | app/src/main/java/br/com/adley/whatsnextseries/library/AppConsts.java | Java | apache-2.0 | 7,846 |
// Copyright 2016 tsuru authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package cmdtest
import "github.com/pkg/errors"
// FakeGuesser represents a fake implementation of the Guesser described in the
// cmd package.
type FakeGuesser... | tsuru/tsuru-admin | vendor/github.com/tsuru/tsuru/cmd/cmdtest/fakeguesser.go | GO | bsd-3-clause | 1,021 |
/*
* Copyright (c) 2012-2018 Red Hat, Inc.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Red Hat, Inc. - initial API a... | akervern/che | wsagent/che-core-api-git/src/test/java/org/eclipse/che/git/impl/InitTest.java | Java | epl-1.0 | 1,812 |
/*******************************************************************************
* 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... | trylimits/Eclipse-Postfix-Code-Completion-Juno38 | juno38/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/UserLibrary.java | Java | epl-1.0 | 8,714 |
// Copyright (C) 2003 Dolphin Project.
// 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, version 2.0.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WAR... | flewrain/flewrain-dolphin | Source/Plugins/Plugin_VideoDX11/Src/GfxState.cpp | C++ | gpl-2.0 | 2,733 |
// Copyright 2015 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "DolphinQt/Host.h"
#include <QAbstractEventDispatcher>
#include <QApplication>
#include <QProgressDialog>
#include <imgui.h>
#include "Common/Common.h"
#include "Core/Config/MainSettings.h"
#incl... | LAGonauta/dolphin | Source/Core/DolphinQt/Host.cpp | C++ | gpl-2.0 | 4,127 |
/*
Stockfish, a chess program for iOS.
Copyright (C) 2004-2014 Tord Romstad, Marco Costalba, Joona Kiiski.
Stockfish 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
... | daylen/stockfish-mac | Chess/book.cpp | C++ | gpl-3.0 | 26,347 |
#!/usr/bin/python
# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: t -*-
"""
Role
====
Defines plugin managers that can handle configuration files similar to
the ini files manipulated by Python's ConfigParser module.
API
===
"""
from yapsy.IPlugin import IPlugin
from yapsy.PluginManagerDecorator import Plugin... | GeoDaCenter/CAST | yapsy/ConfigurablePluginManager.py | Python | gpl-3.0 | 10,403 |
package edu.umn.cs.melt.ide.imp.services;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import java.util.Iterator;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.imp.parser.ISourcePositionLocator;
import org.eclipse.imp.parser.ParseControllerBase;
import org.ecl... | charleshofer/silver | runtime/imp/main/src/edu/umn/cs/melt/ide/imp/services/ParseController.java | Java | gpl-3.0 | 3,087 |
/**
* <copyright>
*
* Copyright (c) 2015 PlugBee. 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
*
* Contribut... | gama-platform/gama.cloud | useless/org.dslforge.xtext.common/src/org/dslforge/xtext/common/XtextResourceFactory.java | Java | agpl-3.0 | 1,982 |
/*
* Copyright 2002-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | djechelon/spring-security | config/src/main/java/org/springframework/security/config/annotation/web/configurers/PermitAllSupport.java | Java | apache-2.0 | 2,890 |
/*
* Copyright 2015-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... | rmaz/buck | src/com/facebook/buck/features/project/intellij/IjProjectPaths.java | Java | apache-2.0 | 4,556 |
/*
* Copyright (C) 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | springml/DataflowJavaSDK | sdk/src/test/java/com/google/cloud/dataflow/sdk/transforms/windowing/AfterProcessingTimeTest.java | Java | apache-2.0 | 5,213 |
package org.apache.archiva.web.runtime.ldap;
/*
* 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 ... | Altiscale/archiva | archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/runtime/ldap/ArchivaLdapConnectionFactory.java | Java | apache-2.0 | 4,036 |
/**
* OLAT - Online Learning and Training<br>
* http://www.olat.org
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* ... | RLDevOps/Scholastic | src/main/java/org/olat/admin/instantMessaging/InstantMessagingAdminController.java | Java | apache-2.0 | 5,562 |
/*
* 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 ... | hequn8128/flink | flink-streaming-java/src/test/java/org/apache/flink/streaming/api/functions/source/datagen/DataGeneratorSourceTest.java | Java | apache-2.0 | 7,038 |
/*
* 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 ... | asurve/incubator-systemml | src/test/java/org/apache/sysml/test/gpu/UnaryOpTests.java | Java | apache-2.0 | 3,171 |
/**
* OLAT - Online Learning and Training<br>
* http://www.olat.org
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* ... | RLDevOps/Demo | src/main/java/org/olat/course/assessment/EfficiencyStatementArchiver.java | Java | apache-2.0 | 7,585 |
package azgo
import (
"encoding/xml"
"reflect"
log "github.com/sirupsen/logrus"
)
// VolumeLanguageAttributesType is a structure to represent a volume-language-attributes ZAPI object
type VolumeLanguageAttributesType struct {
XMLName xml.Name `xml:"volume-language-attributes"`
IsConver... | wisererik/opensds | vendor/github.com/netapp/trident/storage_drivers/ontap/api/azgo/type-volume-language-attributes.go | GO | apache-2.0 | 3,710 |
package me.prettyprint.cassandra.service.template;
import java.nio.ByteBuffer;
import java.util.Collection;
import java.util.Date;
import java.util.Iterator;
import java.util.UUID;
import me.prettyprint.hector.api.ResultStatus;
import me.prettyprint.hector.api.beans.HColumn;
/**
* A common interface for access to t... | hector-client-org/hector-exp | hector-core/src/main/java/me/prettyprint/cassandra/service/template/ColumnFamilyResult.java | Java | apache-2.0 | 1,194 |
/*
* Copyright (c) 2010-2015 Pivotal Software, 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 req... | papicella/snappy-store | tests/core/src/main/java/com/gemstone/gemfire/management/internal/cli/commands/MemberCommandsDUnitTest.java | Java | apache-2.0 | 11,351 |
/* 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... | robsoncardosoti/flowable-engine | modules/flowable-ui-task/flowable-ui-task-rest/src/main/java/org/flowable/app/rest/runtime/HistoricTaskQueryResource.java | Java | apache-2.0 | 4,455 |
// 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... | stoksey69/googleads-java-lib | examples/adwords_axis/src/main/java/adwords/axis/v201506/remarketing/AddAudience.java | Java | apache-2.0 | 6,634 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sagemaker/model/DescribeContextRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::SageMaker::Model;
using namespace Aws::Utils::Json;
us... | aws/aws-sdk-cpp | aws-cpp-sdk-sagemaker/source/model/DescribeContextRequest.cpp | C++ | apache-2.0 | 916 |
/*
Copyright 2014 Rohith 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... | gwmoura/tsuru | vendor/github.com/gambol99/go-marathon/client.go | GO | bsd-3-clause | 10,517 |
package me.sniggle.matemonkey4j.product;
import me.sniggle.matemonkey4j.api.model.result.ProductResult;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
/**
* ... | sniggle/matemonkey4j | matemonkey4j-async/src/test/java/me/sniggle/matemonkey4j/product/ProductsCallableTest.java | Java | bsd-3-clause | 976 |
// Copyright 2017 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/tracing/background_tracing_field_trial.h"
#include <vector>
#include "base/files/file_util.h"
#include "base/metrics/field_tria... | ric2b/Vivaldi-browser | chromium/chrome/browser/tracing/background_tracing_field_trial_unittest.cc | C++ | bsd-3-clause | 7,823 |
/**
* Copyright (c) 2008-2012 Indivica Inc.
*
* This software is made available under the terms of the
* GNU General Public License, Version 2, 1991 (GPLv2).
* License details are available via "indivica.ca/gplv2"
* and "gnu.org/licenses/gpl-2.0.html".
*/
package org.oscarehr.hospitalReportManager.model;
impor... | hexbinary/landing | src/main/java/org/oscarehr/hospitalReportManager/model/HRMDocumentSubClass.java | Java | gpl-2.0 | 1,985 |
#ifndef __OF_PCI_H
#define __OF_PCI_H
#include <linux/pci.h>
#include <linux/msi.h>
struct pci_dev;
struct of_phandle_args;
struct device_node;
#ifdef CONFIG_OF
int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq);
struct device_node *of_pci_find_child_device(struct device_node *parent,
... | jtoppins/net-next | include/linux/of_pci.h | C | gpl-2.0 | 2,196 |
package com.kabouzeid.gramophone.glide.audiocover;
import android.content.Context;
import com.bumptech.glide.load.data.DataFetcher;
import com.bumptech.glide.load.model.GenericLoaderFactory;
import com.bumptech.glide.load.model.ModelLoader;
import com.bumptech.glide.load.model.ModelLoaderFactory;
import com.bumptech.... | oshmoun/Phonograph | app/src/main/java/com/kabouzeid/gramophone/glide/audiocover/AudioFileCoverLoader.java | Java | gpl-3.0 | 1,047 |
/*
Copyright 2009 Hauke Rehfeld
This file is part of QuakeInjector.
QuakeInjector 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.
QuakeIn... | hrehfeld/QuakeInjector | src/main/java/de/haukerehfeld/quakeinjector/ProgressListenerInputStream.java | Java | gpl-3.0 | 1,940 |
/* ISO C <ctype.h> like properties of Unicode characters.
Copyright (C) 2002, 2006-2007, 2009-2013 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2002.
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License... | Distrotech/libunistring | lib/unictype/ctype_xdigit.c | C | gpl-3.0 | 1,078 |
/*
* This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
*
* Copyright 2008-2013 Geosparc nv, http://www.geosparc.com/, Belgium.
*
* The program is available in open source according to the GNU Affero
* General Public License. All contributions in this program are covered
* by the Geomajas Contr... | olivermay/geomajas | backend/command/src/main/java/org/geomajas/command/configuration/GetMapConfigurationCommand.java | Java | agpl-3.0 | 9,448 |
package router
import (
"fmt"
"time"
"github.com/golang/glog"
"github.com/spf13/pflag"
kclient "k8s.io/kubernetes/pkg/client"
"k8s.io/kubernetes/pkg/fields"
"k8s.io/kubernetes/pkg/labels"
oclient "github.com/openshift/origin/pkg/client"
"github.com/openshift/origin/pkg/cmd/util"
controllerfactory "github.... | Jandersoft/origin | pkg/cmd/infra/router/router.go | GO | apache-2.0 | 2,315 |
/*
* 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... | qobel/esoguproject | spring-framework/spring-beans/src/test/java/org/springframework/beans/factory/xml/ProtectedLifecycleBean.java | Java | apache-2.0 | 5,034 |
/*
* Copyright 2010-2016 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 "l... | flofreud/aws-sdk-java | aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/AbstractAmazonECS.java | Java | apache-2.0 | 7,901 |
/*
* 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 ... | akchinSTC/systemml | src/main/java/org/apache/sysml/lops/Aggregate.java | Java | apache-2.0 | 4,742 |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | dilee/product-mdm | modules/mobile-agents/android/app-catalog/app/src/main/java/org/wso2/app/catalog/utils/Constants.java | Java | apache-2.0 | 5,928 |
/*
* 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 ... | smgoller/geode | geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/result/Screen.java | Java | apache-2.0 | 1,989 |
/*
* Copyright (c) 2012-2016 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
package org.antlr.v4.tool.ast;
import org.antlr.runtime.Token;
public class PlusBlockAST extends GrammarAST implement... | wjkohnen/antlr4 | tool/src/org/antlr/v4/tool/ast/PlusBlockAST.java | Java | bsd-3-clause | 807 |
/*
* The MIT License
*
* Copyright (c) 2018 CloudBees, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, co... | DanielWeber/jenkins | test/src/test/java/jenkins/security/seed/UserSeedChangeListenerTest.java | Java | mit | 3,760 |
/* This file was modified in 2000-2001 by David Gay for the RC compiler.
The changes are
Copyright (c) 2000-2001 The Regents of the University of California.
This file is distributed under the terms of the GNU General Public License
(see below).
*/
#ifndef C_LEX_H
#define C_LEX_H
/* Define constants for ... | iamrekcah/cyclone | banshee/cparser/c-lex.h | C | gpl-2.0 | 1,728 |
/**
* Copyright (c) 2001-2002. Department of Family Medicine, McMaster University. All Rights Reserved.
* This software is published under the GPL GNU General Public License.
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published... | oscarservice/oscar-old | src/main/java/org/oscarehr/common/OtherIdManager.java | Java | gpl-2.0 | 4,686 |
package org.mozilla.mozstumbler.client.subactivities;
import android.content.Context;
import android.os.Environment;
import android.widget.CheckBox;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mozilla.mozstumbler.R;
import org.mozilla.mozstumbler.client.ClientDataStorag... | petercpg/MozStumbler | android/src/test/java/org/mozilla/mozstumbler/client/subactivities/DeveloperActivityTest.java | Java | mpl-2.0 | 5,480 |
package org.molgenis.js;
import static java.util.Objects.requireNonNull;
import javax.script.ScriptException;
import org.molgenis.js.nashorn.NashornScriptEngine;
import org.springframework.stereotype.Service;
/** Executes a JavaScript */
@Service
class JsScriptExecutor {
private final NashornScriptEngine jsScriptE... | ConnorStroomberg/molgenis | molgenis-js/src/main/java/org/molgenis/js/JsScriptExecutor.java | Java | lgpl-3.0 | 964 |
/*
* 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 ... | nishantmonu51/druid | processing/src/main/java/org/apache/druid/segment/MMappedIndex.java | Java | apache-2.0 | 3,993 |
// Copyright 2012 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... | ericmckean/collide | java/com/google/collide/client/syntaxhighlighter/SyntaxHighlighterRenderer.java | Java | apache-2.0 | 2,994 |
/*
Copyright (C) 2016 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwa... | rawlingsj/gofabric8 | vendor/github.com/minishift/minishift/pkg/minishift/cache/oc_caching.go | GO | apache-2.0 | 1,796 |
/**
* 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... | atoulme/camel | components/camel-braintree/src/main/java/org/apache/camel/component/braintree/BraintreeEndpoint.java | Java | apache-2.0 | 4,083 |
/*
* 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 ... | darionyaphet/flink | flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/sharedbuffer/SharedBufferEdge.java | Java | apache-2.0 | 6,865 |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012, John Haddon. All rights reserved.
// Copyright (c) 2012-2015, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted pro... | hradec/gaffer | src/GafferImage/ImagePlug.cpp | C++ | bsd-3-clause | 11,397 |
package org.ovirt.engine.core.bll.gluster;
import org.ovirt.engine.core.bll.NonTransactiveCommandAttribute;
import org.ovirt.engine.core.common.AuditLogType;
import org.ovirt.engine.core.common.action.LockProperties;
import org.ovirt.engine.core.common.action.LockProperties.Scope;
import org.ovirt.engine.core.common.a... | jtux270/translate | ovirt/3.6_source/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/DisableGlusterHookCommand.java | Java | gpl-3.0 | 1,952 |
/*
* 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... | smgoller/geode | geode-core/src/distributedTest/java/org/apache/geode/internal/cache/wan/asyncqueue/SerialEventListenerDistributedTest.java | Java | apache-2.0 | 14,347 |
#include <parallel_array.h>
#include <parallel_common.h>
#include <parallel_math.h>
#include <parallel_reduce.h>
#include <iostream>
#include <stdio.h>
#ifdef USE_CUDA
#include "cuda_kernels.cuh"
#elif USE_OPENCL
#include "opencl_kernels.h"
#endif
using namespace parallel_utils;
using namespace parallel_ode;
templa... | jonbinney/gazebo_ros_wrapper | deps/parallel_quickstep/src/test_lib.cpp | C++ | apache-2.0 | 3,232 |
#ifndef JEMALLOC_INTERNAL_PROF_DATA_H
#define JEMALLOC_INTERNAL_PROF_DATA_H
#include "jemalloc/internal/mutex.h"
extern malloc_mutex_t bt2gctx_mtx;
extern malloc_mutex_t tdatas_mtx;
extern malloc_mutex_t prof_dump_mtx;
extern malloc_mutex_t *gctx_locks;
extern malloc_mutex_t *tdata_locks;
extern size_t prof_unbiase... | arangodb/arangodb | 3rdParty/jemalloc/v5.2.1/include/jemalloc/internal/prof_data.h | C | apache-2.0 | 1,336 |
/**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.master.security.impl;
import static com.google.common.collect.Maps.newHashMap;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;... | jeorme/OG-Platform | projects/OG-Master/src/main/java/com/opengamma/master/security/impl/DynamicDelegatingSecurityMaster.java | Java | apache-2.0 | 9,842 |
/*
* 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.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, soft... | Multi-Support/jbpm | jbpm-human-task/jbpm-human-task-core/src/main/java/org/jbpm/services/task/commands/GetTasksByProcessInstanceIdCommand.java | Java | apache-2.0 | 1,958 |
package org.knowm.xchange.examples.ccex.marketdata;
import java.io.IOException;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.ccex.CCEXExchange;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.marketdata.Ticker;
import org.knowm.xchan... | chrisrico/XChange | xchange-examples/src/main/java/org/knowm/xchange/examples/ccex/marketdata/TickerDemo.java | Java | mit | 982 |
package org.knowm.xchange.bitbay.v3.service;
import java.util.Iterator;
import java.util.List;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.bitbay.v3.BitbayAuthenticated;
import org.knowm.xchange.bitbay.v3.BitbayDigest;
import org.knowm.xchange.bitbay.v3.dto.BitbayBaseResponse;
import org.knowm.xchange.... | chrisrico/XChange | xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/v3/service/BitbayBaseService.java | Java | mit | 1,799 |
#!/usr/bin/env vpython3
# 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.
"""Runs an isolate bundled Telemetry GPU integration test.
If optional argument --isolated-script-test-output=[FILENAME] is passed
t... | chromium/chromium | testing/scripts/run_gpu_integration_test_as_googletest.py | Python | bsd-3-clause | 1,436 |
/*
* 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")... | howepeng/isis | core/metamodel/src/test/java/org/apache/isis/core/metamodel/facets/properties/property/OptionalAnnotationOnPropertyFacetFactoryTest.java | Java | apache-2.0 | 2,837 |
package org.molgenis.semanticmapper.service.impl;
import static java.util.Objects.requireNonNull;
import static org.molgenis.script.core.ScriptMetadata.SCRIPT;
import static org.molgenis.script.core.ScriptMetadata.TYPE;
import java.util.HashMap;
import java.util.Map;
import java.util.stream.Stream;
import org.molgeni... | dennishendriksen/molgenis | molgenis-semantic-mapper/src/main/java/org/molgenis/semanticmapper/service/impl/AlgorithmTemplateServiceImpl.java | Java | lgpl-3.0 | 2,722 |
/*
* 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... | treasure-data/presto | presto-main/src/test/java/io/prestosql/sql/planner/assertions/SortMatcher.java | Java | apache-2.0 | 2,263 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.