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 |
|---|---|---|---|---|---|
/*******************************************************************************
* 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... | WorldGrower/WorldGrower | src/org/worldgrower/conversation/ProfessionConversation.java | Java | gpl-3.0 | 4,628 |
# -*- coding: utf-8 -*-
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.utils import date_diff, add_days, getdate
from... | manassolanki/erpnext | erpnext/hr/doctype/attendance_request/attendance_request.py | Python | gpl-3.0 | 2,333 |
#include "SetWheelSpeed.h"
SetWheelSpeed::SetWheelSpeed(float speed) : speed(speed)
{
// Use Requires() here to declare subsystem dependencies
// eg.
Requires(CommandBase::nerfsubsystem.get());
}
// Called just before this Command runs the first time
void SetWheelSpeed::Initialize()
{
CommandBase::nerfsubsystem->... | CloverBots/BunnyBots2016 | src/Commands/SetWheelSpeed.cpp | C++ | gpl-3.0 | 788 |
#ifndef EGLAPI_INCLUDED
#define EGLAPI_INCLUDED
/**
* A generic function ptr type
*/
typedef void (*_EGLProc)(void);
/**
* Typedefs for all EGL API entrypoint functions.
*/
/* driver funcs */
typedef EGLBoolean (*Initialize_t)(_EGLDriver *, _EGLDisplay *dpy, EGLint *major, EGLint *minor);
typedef EGLBoolean (*T... | CPFDSoftware-Tony/gmv | utils/Mesa/Mesa-7.8.2/src/egl/main/eglapi.h | C | gpl-3.0 | 7,161 |
/*
* #%L
* S2P Core
* %%
* Copyright (C) 2016 - 2017 José Luis Capelo Martínez, José Eduardo Araújo, Florentino Fdez-Riverola, Miguel
* Reboiro-Jato, Hugo López-Fernández, and Daniel Glez-Peña
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General ... | sing-group/S2P | s2p-core/src/main/java/es/uvigo/ei/sing/s2p/core/io/MaldiPlateWriter.java | Java | gpl-3.0 | 5,240 |
#include "common.h"
#include "music.h"
#include "gui/gui.h"
#include "config/model.h"
#include <stdlib.h>
#include "mixer_page.h"
#include "main_page.h"
#include "main_layout.h"
#include "trim_page.h"
#include "timer_page.h"
#include "model_page.h"
#include "chantest_page.h"
#include "range_page.h"
#include "usb_page.... | cctsao1008/deviation | src/pages/common/_pages.h | C | gpl-3.0 | 4,224 |
/*
* Copyright 2019 Uppsala University Library
*
* This file is part of Cora.
*
* Cora 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 opt... | lsu-ub-uu/cora-spider | src/test/java/se/uu/ub/cora/spider/data/DataRecordSpy.java | Java | gpl-3.0 | 3,656 |
package com.dotmarketing.portlets.languagesmanager.business;
import com.dotcms.business.CloseDBIfOpened;
import com.dotcms.business.WrapInTransaction;
import com.dotcms.content.elasticsearch.business.DotIndexException;
import com.dotcms.languagevariable.business.LanguageVariableAPI;
import com.dotcms.rendering.velocit... | dotCMS/core | dotCMS/src/main/java/com/dotmarketing/portlets/languagesmanager/business/LanguageAPIImpl.java | Java | gpl-3.0 | 15,607 |
# -*- coding: utf-8 -*-
'''
Copyright (c) 2015 Jacob Mendt
Created on 05.08.15
@author: mendt
'''
import logging
from georeference.settings import DBCONFIG_PARAMS
from georeference.settings import TEST_MODE
from georeference.models.meta import initializeDb
from georeference.models.meta import getPostgresEngineString
... | slub/vk2-georeference | georeference/persistent/dataupdatejobs.py | Python | gpl-3.0 | 4,374 |
/*
* Copyright 2011-2014 the original author or authors.
*
* 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.
*
* T... | mirazmamun/MyBitcoinWallet | src/de/schildbach/wallet/ui/SendCoinsActivity.java | Java | gpl-3.0 | 2,873 |
/*
* Copyright © 2013-2021, The SeedStack authors <http://seedstack.org>
*
* 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 org.seedstack.seed.rest.jerse... | seedstack/seed | rest/jersey2/src/test/java/org/seedstack/seed/rest/jersey2/Jersey2FilterIT.java | Java | mpl-2.0 | 1,392 |
/*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
... | pfschwartz/openelisglobal-core | app/src/us/mn/state/health/lims/referral/daoimpl/ReferringTestResultDAOImpl.java | Java | mpl-2.0 | 3,207 |
package grpc
import (
"crypto/tls"
"crypto/x509"
"errors"
"fmt"
"io/ioutil"
"net"
"github.com/jmhodges/clock"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"github.com/letsencrypt/boulder/cmd"
bcreds "github.com/letsencrypt/boulder/grpc/creds"
"github.com/letsencrypt/boulder/metrics"
)
/... | benileo/boulder | grpc/util.go | GO | mpl-2.0 | 3,021 |
package com.cgi.eoss.fstep.api.mappings;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.hateoas.Resource;
import org.springframework.hateoas.ResourceProcessor;
import org.springframework.stereotype.Component;
import com.cgi.eoss.fstep.model.FstepFile;
import com.cgi.eoss.fst... | cgi-eoss/fstep | fs-tep-api/src/main/java/com/cgi/eoss/fstep/api/mappings/FstepFileIngestionResourceProcessor.java | Java | agpl-3.0 | 1,243 |
/**
* Copyright (C) 2000 - 2011 Silverpeas
*
* 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 later version.
*
* As a spe... | stephaneperry/Silverpeas-Core | war-core/src/main/java/com/stratelia/silverpeas/versioningPeas/servlets/AjaxServlet.java | Java | agpl-3.0 | 7,273 |
package com.oas.model.question;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.PrimaryKeyJoinColumns;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
im... | onlyasurvey/OAS_workspace | tags/1.0.0-SNAPSHOT/OnlyASurvey/OnlyASurveyWeb/src/main/java/com/oas/model/question/BooleanQuestion.java | Java | agpl-3.0 | 904 |
/*
* This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
*
* Copyright 2008-2016 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... | geomajas/geomajas-project-server | plugin/rasterizing/rasterizing/src/main/java/org/geomajas/plugin/rasterizing/step/RenderMapStep.java | Java | agpl-3.0 | 3,759 |
/*
* ArgonMS MapleStory server emulator written in Java
* Copyright (C) 2011-2013 GoldenKevin
*
* 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, ... | Kevin-Jin/argonms-server | src/argonms/game/field/entity/Mist.java | Java | agpl-3.0 | 3,064 |
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.envers.test.integration.modifiedflags;
import java.util.Arra... | 1fechner/FeatureExtractor | sources/FeatureExtractor/lib/hibernate-release-5.1.0.Final/project/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/modifiedflags/HasChangedDetachedMultipleCollection.java | Java | lgpl-2.1 | 5,583 |
/**
* DSS - Digital Signature Services
* Copyright (C) 2015 European Commission, provided under the CEF programme
*
* This file is part of the "DSS - Digital Signature Services" project.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Publ... | esig/dss | dss-tsl-validation/src/main/java/eu/europa/esig/dss/tsl/cache/state/CurrentCacheContext.java | Java | lgpl-2.1 | 3,646 |
#include <GSM3ShieldV1VoiceProvider.h>
#include <Arduino.h>
GSM3ShieldV1VoiceProvider::GSM3ShieldV1VoiceProvider()
{
phonelength=0;
theGSM3MobileVoiceProvider=this;
}
void GSM3ShieldV1VoiceProvider::initialize()
{
theGSM3ShieldV1ModemCore.registerUMProvider(this);
}
//Voice Call main function.
int GSM3Shi... | arduino-org/Arduino | hardware/arduino/samd/libraries/GSM/src/GSM3ShieldV1VoiceProvider.cpp | C++ | lgpl-2.1 | 5,478 |
// Copyright (C) 2000-2007, Luca Padovani <padovani@sti.uniurb.it>.
//
// This file is part of GtkMathView, a flexible, high-quality rendering
// engine for MathML documents.
//
// GtkMathView is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as pub... | kevinhendricks/mathmllib | src/backend/common/TFMComputerModernMathGraphicDevice.cc | C++ | lgpl-3.0 | 3,373 |
package org.ddialliance.ddieditor.ui.editor.widgetutil.referenceselection;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.ddialliance.ddieditor.model.lightxmlobject.LabelType;
import org.ddialliance.ddieditor.model.lightxmlobject.LightXmlObjectType;
import org.ddialliance.ddi... | DdiEditor/ddieditor-ui | src/org/ddialliance/ddieditor/ui/editor/widgetutil/referenceselection/ReferenceSelectionCombo.java | Java | lgpl-3.0 | 8,999 |
/*
* SonarQube
* Copyright (C) 2009-2019 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program 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 3 of the License, o... | Godin/sonar | server/sonar-server/src/main/java/org/sonar/server/badge/ws/MeasureAction.java | Java | lgpl-3.0 | 9,408 |
/******************************************************************************
* Copyright (C) 2010-2016 CERN. All rights not expressly granted are reserved.
*
* This file is part of the CERN Control and Monitoring Platform 'C2MON'.
* C2MON is free software: you can redistribute it and/or modify it under the
* te... | c2mon/c2mon | c2mon-server/c2mon-server-history/src/test/java/cern/c2mon/server/history/structure/TagRecordConverterTest.java | Java | lgpl-3.0 | 7,825 |
/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program 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 3 of the License... | joansmith/sonarqube | sonar-db/src/test/java/org/sonar/db/issue/IssueDaoTest.java | Java | lgpl-3.0 | 9,603 |
package com.simasteam.phonegap.plugin.alarmgap;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.util.Log;
public abstract class AlarmReceiver extends BroadcastReceiver {
private static final String ACTION_S... | leosimas/AlarmGapPlugin | src/android/AlarmReceiver.java | Java | lgpl-3.0 | 2,711 |
/*
* SonarQube
* Copyright (C) 2009-2022 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program 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 3 of the License, o... | SonarSource/sonarqube | server/sonar-webserver-core/src/main/java/org/sonar/server/platform/monitoring/EsStateSection.java | Java | lgpl-3.0 | 5,127 |
/**
* Copyright (c) 2011-2015, SpaceToad and the BuildCraft Team
* http://www.mod-buildcraft.com
*
* BuildCraft is distributed under the terms of the Minecraft Mod Public
* License 1.0, or MMPL. Please check the contents of the license located in
* http://www.mod-buildcraft.com/MMPL-1.0.txt
*/
package buildcraft... | hea3ven/BuildCraft | common/buildcraft/energy/worldgen/BiomeGenOilOcean.java | Java | lgpl-3.0 | 1,100 |
/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program 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 3 of the License... | Builders-SonarSource/sonarqube-bis | server/sonar-server/src/test/java/org/sonar/server/es/request/ProxySearchRequestBuilderTest.java | Java | lgpl-3.0 | 3,659 |
package crazypants.enderio;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.Packet;
import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;
import crazypants.util.BlockCoord;
public abstract clas... | eduardog3000/EnderIO | src/main/java/crazypants/enderio/TileEntityEio.java | Java | unlicense | 2,470 |
// 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... | GorK-ChO/selenium | java/server/test/org/openqa/grid/e2e/utils/GridTestHelper.java | Java | apache-2.0 | 3,770 |
/*
* Copyright (C) 2017 Riccardo Leschiutta
*
* 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 ... | prgpascal/distiller-rng | samples/src/main/java/com/prgpascal/distiller/rng/Sample.java | Java | apache-2.0 | 3,004 |
/*
* 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 ... | mapr-demos/drill-pcap-format | exec/java-exec/src/test/java/org/apache/drill/exec/store/pcap/TestPcapRecordReader.java | Java | apache-2.0 | 2,889 |
/* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | NationalSecurityAgency/ghidra | Ghidra/Features/FunctionGraph/src/main/java/ghidra/app/plugin/core/functiongraph/graph/layout/EmptyLayout.java | Java | apache-2.0 | 3,174 |
/**
* www.bplow.com
*/
package com.bplow.deep.base.validator.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;
... | ahwxl/deep | src/main/java/com/bplow/deep/base/validator/annotation/CardNumberConstraint.java | Java | apache-2.0 | 816 |
package com.linkedin.android.mobilesdk;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.net.Uri;
import android.support.annotation.NonNull;
import com.linkedin.android.mobilesdk.errors.LIAppErrorCode;
import com.linkedin.android.mobilesdk.er... | chusobadenas/unofficial-android-linkedin-sdk | linkedin-sdk/src/main/java/com/linkedin/android/mobilesdk/DeepLinkHelper.java | Java | apache-2.0 | 4,337 |
/*
* Copyright 2016 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 in... | pstout/spectator | spectator-web-spring/src/test/java/com/netflix/spectator/controllers/filter/TagFilterTest.java | Java | apache-2.0 | 2,353 |
/*
Copyright 2011 <copyright holder> <email>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... | aevum/libgdx-cpp | src/gdx-cpp/implementation/MutexFactory.hpp | C++ | apache-2.0 | 977 |
package cz.brmlab.yodaqa.analysis.ansscore;
import java.util.LinkedList;
import java.util.List;
import org.apache.uima.UimaContext;
import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
import org.apache.uima.cas.FeatureStructure;
import org.apache.uima.fit.component.JCasAnnotator_ImplBase;
import or... | TitasNandi/Summer_Project | yodaqa/src/main/java/cz/brmlab/yodaqa/analysis/ansscore/AnswerScoreSimple.java | Java | apache-2.0 | 2,848 |
/**
* 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... | chinmaykolhatkar/incubator-apex-core | engine/src/test/java/com/datatorrent/stram/LogicalPlanModificationTest.java | Java | apache-2.0 | 14,117 |
package boredgame.domain.uno.internal;
import boredgame.domain.card.ISuiteType;
import boredgame.domain.uno.IUnoCardDefinition;
import boredgame.domain.uno.UnoPlayableCard;
import boredgame.domain.uno.UnoSuitePlayableCard;
import java.util.Arrays;
import java.util.stream.IntStream;
import java.util.stream.Stream;
/*... | dranreblouw/boredgame | boredgame/src/main/java/boredgame/domain/uno/internal/EUnoSuiteType.java | Java | apache-2.0 | 1,527 |
/*
* Copyright 2015-2017 Spotify AB
* Copyright 2016-2019 The Last Pickle Ltd
*
* 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
*
* ... | thelastpickle/cassandra-reaper | src/server/src/test/java/io/cassandrareaper/ReaperApplicationConfigurationTest.java | Java | apache-2.0 | 2,247 |
/*
* 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 ... | zhangminglei/flink | flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/ExecutionTest.java | Java | apache-2.0 | 17,258 |
#LOAD LIBRARIES
import pandas
from pandas.tools.plotting import scatter_matrix
import matplotlib.pyplot as plt
from sklearn import model_selection
from sklearn.metrics import classification_report
from sklearn.metrics import confusion_matrix
from sklearn.metrics import accuracy_score
from sklearn.linear_model import L... | sudikrt/costproML | PythonTest/iris_pred.py | Python | apache-2.0 | 2,510 |
#!/usr/bin/env python
__author__ = 'ilkin safarli'
from sklearn.pipeline import FeatureUnion
from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer
from sklearn.naive_bayes import MultinomialNB
from FrequencyTransformer import *
from sklearn.datasets import load_files
from RScore import RScore
... | kinimesi/rscore | Classifier.py | Python | apache-2.0 | 2,128 |
/*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.internal.xml.xsd.typeprovider.xmlsorter;
import gw.internal.xml.xsd.typeprovider.XmlSchemaIndex;
import gw.internal.xml.xsd.typeprovider.schema.XmlSchemaComplexContent;
import gw.internal.xml.xsd.typeprovider.schema.XmlSchemaContent;
import gw.xml.XmlElemen... | pdalbora/gosu-lang | gosu-xml/src/main/java/gw/internal/xml/xsd/typeprovider/xmlsorter/XmlSchemaComplexContentXmlSortHandler.java | Java | apache-2.0 | 1,846 |
/**
* @fileoverview Object representing a separate function editor. This function
* editor provides a separate modal workspace where a user can modify a given
* function definition.
*/
'use strict';
goog.provide('Blockly.FunctionEditor');
goog.require('Blockly.BlockSpace');
goog.require('Blockly.HorizontalFlyout'... | bakerfranke/code-dot-org | blockly-core/core/ui/function_editor.js | JavaScript | apache-2.0 | 22,425 |
package com.warningrc.test.learnspring.module.beans.factory;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.BeanDefinitionStoreException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanNotOfRequiredTypeException;
impo... | warningrc/learn-spring | src/test/java/com/warningrc/test/learnspring/module/beans/factory/BeanFactoryTest1.java | Java | apache-2.0 | 5,090 |
/*
Copyright 2015 Cisco Systems
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 w... | CiscoCTA/taxii-log-adapter | src/main/java/com/cisco/cta/taxii/adapter/persistence/WindowsPersistenceConfiguration.java | Java | apache-2.0 | 1,705 |
package com.lachesis.mnis.core.bloodPressMonitor;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.t... | gavin2lee/incubator | mnis/core/src/main/java/com/lachesis/mnis/core/bloodPressMonitor/BloodPressMonitorServiceImpl.java | Java | apache-2.0 | 2,022 |
//
// Copyright 2011 Kuali Foundation, Inc. Licensed under the
// Educational Community License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License. You may
// obtain a copy of the License at
//
// http://www.opensource.org/licenses/ecl2.php
//
// Unless required ... | Ariah-Group/Continuity | src/test/java/org/kuali/continuity/plan/dao/CriticalFunctionDocumentDAOTest.java | Java | apache-2.0 | 3,841 |
/*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | GoogleCloudPlatform/jenkins-gcr-plugin | src/test/java/com/google/jenkins/plugins/containersecurity/util/DescriptorUtilTest.java | Java | apache-2.0 | 8,155 |
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2017, Arnaud Roques
*
* Project Info: http://plantuml.com
*
* This file is part of PlantUML.
... | Banno/sbt-plantuml-plugin | src/main/java/net/sourceforge/plantuml/activitydiagram3/InstructionFork.java | Java | apache-2.0 | 3,942 |
/*
* 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 ... | joshelser/calcite-avatica | core/src/main/java/org/apache/calcite/avatica/AvaticaResultSet.java | Java | apache-2.0 | 31,882 |
/*
* Copyright (C) 2013, 2014 Brett Wooldridge
*
* 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... | nitincchauhan/HikariCP | src/main/java/com/zaxxer/hikari/metrics/prometheus/HikariCPCollector.java | Java | apache-2.0 | 2,514 |
package es.tid.bgp.bgp4Peer.updateTEDB;
import java.net.Inet4Address;
import java.util.Hashtable;
import java.util.concurrent.LinkedBlockingQueue;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import es.tid.bgp.bgp4.messages.BGP4Update;
import es.tid.bgp.bgp4Peer.tedb.IntraTEDBS;
import es.tid.tedb.DomainT... | telefonicaid/netphony-topology | src/main/java/es/tid/bgp/bgp4Peer/updateTEDB/UpdateDispatcher.java | Java | apache-2.0 | 1,069 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/s3-crt/model/PutObjectResult.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/util... | awslabs/aws-sdk-cpp | aws-cpp-sdk-s3-crt/source/model/PutObjectResult.cpp | C++ | apache-2.0 | 3,263 |
package dpn
import (
"encoding/json"
"fmt"
"github.com/APTrust/bagman/bagman"
"github.com/nsqio/go-nsq"
"os"
"sync"
)
type Validator struct {
ValidationChannel chan *DPNResult
PostProcessChannel chan *DPNResult
ProcUtil *bagman.ProcessUtil
DPNConfig *DPNConfig
LocalRESTClient *... | APTrust/bagman | dpn/validator.go | GO | apache-2.0 | 7,081 |
package mouse
import (
"golang.org/x/mobile/event/mouse"
)
// Button represents a mouse interaction type, like a left button or
// mouse wheel movement.
type Button = mouse.Button
// Valid Button event types
const (
ButtonLeft = mouse.ButtonLeft
ButtonMiddle = mouse.ButtonMiddle
ButtonRight = mous... | oakmound/oak | mouse/mouse.go | GO | apache-2.0 | 880 |
/*******************************************************************************
* Copyright (c) 2015, 2016 David Green.
*
* 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:/... | greensopinion/greenbeans | services/src/test/java/com/greensopinion/finance/services/persistence/ConfigurationModuleTest.java | Java | apache-2.0 | 2,456 |
package com.java110.goods.bmo.groupBuyBatch.impl;
import com.java110.core.annotation.Java110Transactional;
import com.java110.core.factory.GenerateCodeFactory;
import com.java110.goods.bmo.groupBuyBatch.ISaveGroupBuyBatchBMO;
import com.java110.intf.goods.IGroupBuyBatchInnerServiceSMO;
import com.java110.po.groupBuyBa... | java110/MicroCommunity | service-goods/src/main/java/com/java110/goods/bmo/groupBuyBatch/impl/SaveGroupBuyBatchBMOImpl.java | Java | apache-2.0 | 1,377 |
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | dagnir/aws-sdk-java | aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/transform/DescribeThingRequestProtocolMarshaller.java | Java | apache-2.0 | 2,565 |
package org.jetbrains.plugins.scala.lang.actions.editor.enter.multiline_string;
import com.intellij.openapi.project.Project;
import com.intellij.psi.codeStyle.CommonCodeStyleSettings;
import junit.framework.Test;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.plugins.scala.lang.actions.editor.enter.Abs... | JetBrains/intellij-scala | scala/scala-impl/test/org/jetbrains/plugins/scala/lang/actions/editor/enter/multiline_string/MultiLineStringIndentTest.java | Java | apache-2.0 | 1,271 |
/**
* Copyright 2015 Fondazione Bruno Kessler - Trento RISE
*
* 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
*
* U... | smartcommunitylab/sco.riciclo | sco.riciclo-web/src/main/java/it/smartcommunitylab/riciclo/model/Gestore.java | Java | apache-2.0 | 2,995 |
/**
*
Package: MAG - VistA Imaging
WARNING: Per VHA Directive 2004-038, this routine should not be modified.
Date Created: Aug 8, 2012
Site Name: Washington OI Field Office, Silver Spring, MD
Developer: VHAISWWERFEJ
Description:
;; +-------------------------------------------------------------... | VHAINNOVATIONS/Telepathology | Source/Java/ImagingRouter/main/src/java/gov/va/med/imaging/router/commands/GetPatientHealthSummaryCommandImpl.java | Java | apache-2.0 | 3,997 |
package ccv3
import (
"bytes"
"encoding/json"
"code.cloudfoundry.org/cli/api/cloudcontroller"
"code.cloudfoundry.org/cli/api/cloudcontroller/ccerror"
"code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/constant"
"code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/internal"
)
// Application represents a Cloud C... | orange-cloudfoundry/terraform-provider-cloudfoundry | vendor/code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/application.go | GO | apache-2.0 | 6,297 |
/*
* Copyright 2011 Robert Theis
*
* 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... | kingfredomzz/TablesMoles | Tables Moles/src/main/java/king/echomood/periodictable/language/TranslateAsyncTask.java | Java | apache-2.0 | 3,368 |
/**
* Licensed to the Sakai Foundation (SF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The SF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | roxolan/nakamura | bundles/docproxy/src/main/java/org/sakaiproject/nakamura/docproxy/ExternalDocumentProxyServlet.java | Java | apache-2.0 | 6,402 |
/*
* 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... | rogerchina/activemq-artemis | tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/ExceptionListenerTest.java | Java | apache-2.0 | 5,594 |
package com.abbcc.models;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;
impor... | baowp/platform | biz/src/main/java/com/abbcc/models/AbcComment.java | Java | apache-2.0 | 3,946 |
/*
* Copyright 2021-2022 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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 require... | b2ihealthcare/snow-owl | core/com.b2international.snowowl.core/src/com/b2international/snowowl/core/Resource.java | Java | apache-2.0 | 9,901 |
/**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.sys.service.gbj;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.... | GSSBuse/GSSB | src/main/java/com/thinkgem/jeesite/modules/sys/service/gbj/GbjWithdrawService.java | Java | apache-2.0 | 1,278 |
// Copyright 2018 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 in... | google/tink | java_src/src/test/java/com/google/crypto/tink/aead/internal/InsecureNonceXChaCha20Test.java | Java | apache-2.0 | 12,672 |
/*
* Copyright 2016 qyh.me
*
* 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... | mhlx/mblog | src/main/java/me/qyh/blog/web/view/TemplateViewResolver.java | Java | apache-2.0 | 3,057 |
package com.opengroup.longmao.gwcommon.configuration.properties;
import org.apache.catalina.connector.Connector;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.embedded.tomcat.TomcatConnectorCustomizer;
import org.springframework.boot.context.embedded.tomcat.TomcatEm... | LiuJiJiJi/Spring-Boot-example | longmao/src/main/java/com/opengroup/longmao/gwcommon/configuration/properties/TomcatConfig.java | Java | apache-2.0 | 2,440 |
package com.alperez.bt_microphone.rest.command.impl;
import android.location.Location;
import android.support.annotation.NonNull;
import com.alperez.bt_microphone.bluetoorh.connector.data.BtDataTransceiver;
import com.alperez.bt_microphone.rest.command.BaseRestCommand;
import org.json.JSONException;
import org.json.... | stas-perchenko/bt-recorder | app/src/main/java/com/alperez/bt_microphone/rest/command/impl/SetLocationLommand.java | Java | apache-2.0 | 1,130 |
/*
* 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... | goodwinnk/intellij-community | platform/lang-impl/src/com/intellij/execution/filters/impl/MultipleFilesHyperlinkInfo.java | Java | apache-2.0 | 4,030 |
package com.crawljax.core.state;
import com.crawljax.core.CandidateElement;
import com.crawljax.util.DomUtils;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;
import com.google.common.collect.ImmutableList;
import org.w3c.dom.Doc... | crawljax/crawljax | core/src/main/java/com/crawljax/core/state/StateVertexImpl.java | Java | apache-2.0 | 3,762 |
package com.bumptech.glide.load.resource.bitmap;
import android.graphics.drawable.BitmapDrawable;
import com.bumptech.glide.load.engine.Initializable;
import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
import com.bumptech.glide.load.resource.drawable.DrawableResource;
import com.bumptech.glide.util.Util;... | weiwenqiang/GitHub | expert/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/BitmapDrawableResource.java | Java | apache-2.0 | 1,564 |
package br.com.truefriends.service;
import javax.persistence.EntityManager;
import br.com.truefriends.modelo.Usuario;
import br.com.truefriends.persistencia.UsuarioDAO;
import br.com.truefriends.util.JPAUtil;
import com.restfb.types.User;
public class UsuarioServico {
private EntityManager em;
public UsuarioSe... | Daquer/SoundPinner | src/main/java/br/com/truefriends/service/UsuarioServico.java | Java | apache-2.0 | 1,128 |
/**
* AET
*
* Copyright (C) 2013 Cognifide 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | Cognifide/AET | core/cleaner/src/main/java/com/cognifide/aet/cleaner/processors/filters/SuiteRemoveCondition.java | Java | apache-2.0 | 3,665 |
/*
* 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... | ebyhr/presto | core/trino-main/src/main/java/io/trino/operator/scalar/GenericComparisonUnorderedLastOperator.java | Java | apache-2.0 | 2,175 |
/*
* 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 ... | shaoxuan-wang/flink | flink-table/flink-table-runtime-blink/src/main/java/org/apache/flink/table/runtime/aggregate/BytesHashMap.java | Java | apache-2.0 | 24,337 |
/**
* 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... | saandrews/pulsar | pulsar-functions/utils/src/main/java/org/apache/pulsar/functions/utils/FunctionConfig.java | Java | apache-2.0 | 2,053 |
// Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | ulfjack/bazel | src/main/java/com/google/devtools/build/lib/analysis/CachingAnalysisEnvironment.java | Java | apache-2.0 | 15,424 |
/*
* 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 ... | TheRingbearer/HAWKS | ode/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/EXTENSIONACTIVITY.java | Java | apache-2.0 | 9,218 |
package passphrase
import (
"bytes"
"fmt"
"io/ioutil"
"strings"
"testing"
"github.com/docker/notary"
"github.com/docker/notary/tuf/data"
"github.com/stretchr/testify/require"
)
func assertAskOnceForKey(t *testing.T, in, out *bytes.Buffer, retriever notary.PassRetriever, password, role string) {
_, err := in... | cyli/notary | passphrase/passphrase_test.go | GO | apache-2.0 | 3,021 |
/*
* Copyright 2011-2021 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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 require... | b2ihealthcare/snow-owl | core/com.b2international.snowowl.core/src/com/b2international/snowowl/core/merge/MergeConflict.java | Java | apache-2.0 | 6,214 |
/*
* (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/sls-packaging | gradle-sls-packaging/src/main/java/com/palantir/gradle/dist/ObjectMappers.java | Java | apache-2.0 | 2,713 |
/*
Copyright 2012 The Perkeep 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, sof... | stevearm/camlistore | pkg/serverinit/export_test.go | GO | apache-2.0 | 844 |
/* 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 ... | nagyistoce/camunda-dmn-model | src/main/java/org/camunda/bpm/model/dmn/Dmn.java | Java | apache-2.0 | 14,102 |
/*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | jentfoo/aws-sdk-java | aws-java-sdk-athena/src/main/java/com/amazonaws/services/athena/model/transform/GetNamedQueryRequestProtocolMarshaller.java | Java | apache-2.0 | 2,661 |
package com.richard.test.hadoop.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Properties;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FSDa... | richard-yao/AllAlgorithmsImpl | study-java/src/main/java/com/richard/test/hadoop/util/ConfigurationUtil.java | Java | apache-2.0 | 5,157 |
/*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | google/mobile-data-download | java/com/google/android/libraries/mobiledatadownload/internal/util/FileGroupsMetadataUtil.java | Java | apache-2.0 | 4,784 |
/*
* Copyright (c) 2021, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apac... | lessthanoptimal/BoofCV | demonstrations/src/main/java/boofcv/demonstrations/sfm/d2/VideoMosaicSequentialPointApp.java | Java | apache-2.0 | 4,097 |
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | gravitee-io/gravitee-management-rest-api | gravitee-rest-api-management/gravitee-rest-api-management-rest/src/main/java/io/gravitee/rest/api/management/rest/resource/ApplicationNotificationSettingsResource.java | Java | apache-2.0 | 6,948 |
package client
import (
"bytes"
"database/sql"
"fmt"
"io"
"io/ioutil"
"net/http"
"strconv"
"strings"
"sync"
"testing"
"time"
"gopkg.in/gorp.v1"
"github.com/dropbox/changes-artifacts/database"
"github.com/dropbox/changes-artifacts/model"
_ "github.com/lib/pq"
"github.com/rubenv/sql-migrate"
"github.c... | dropbox/changes-artifacts | client/client_test.go | GO | apache-2.0 | 17,926 |
/*
* Copyright 2008 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 ... | smennetrier/closure-stylesheets | src/com/google/common/css/JobDescription.java | Java | apache-2.0 | 7,469 |
/*
* Copyright 2014-2015 CyberVision, 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 o... | vzhukovskyi/kaa | sandbox/web/src/main/java/org/kaaproject/kaa/sandbox/web/client/mvp/view/settings/ChangeKaaHostViewImpl.java | Java | apache-2.0 | 3,183 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.