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) 2010 Cyrille Berger <cberger@cberger.net>
*
* 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 later ve... | TheTypoMaster/calligra | libs/pigment/colorprofiles/KoDummyColorProfile.cpp | C++ | gpl-2.0 | 2,352 |
/*
* Copyright 2009, 2010, 2011, 2012 Contributors (see credits.txt)
*
* This file is part of jEveAssets.
*
* jEveAssets 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 Licens... | jkaessens/jeveassets | src/test/java/net/nikr/eve/jeveasset/i18n/TestI18N.java | Java | gpl-2.0 | 5,004 |
/* Heroes Persist
Product which helps in organizing, broadcasting, celebrating events
Copyright (C) 2014 Sai Pranav
Email: rsaipranav92@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 S... | saipranav/Heroes-Persist | Sports/src/main/java/com/heroespersist/sports/webservice/match/SimpleMatchForm.java | Java | gpl-3.0 | 1,994 |
package com.sword.smvcm.mybatis.plugin;
import java.util.List;
import org.mybatis.generator.api.CommentGenerator;
import org.mybatis.generator.api.IntrospectedTable;
import org.mybatis.generator.api.PluginAdapter;
import org.mybatis.generator.api.dom.java.Field;
import org.mybatis.generator.api.dom.java.FullyQualifie... | zhkm4321/smvcm | smvcm-common/src/main/java/com/sword/smvcm/mybatis/plugin/MySQLPaginationPlugin.java | Java | gpl-3.0 | 3,372 |
package universalelectricity.core.path;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeDirection;
import universalelectricity.core.block.IConductor;
import universalelectricity... | tomasmartins/TMCraft | common/universalelectricity/core/path/PathfinderChecker.java | Java | gpl-3.0 | 1,618 |
/*
* Copyright (c) 2010-2015 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
/*
* Copyright (c) 2015 Tarun Gupta.
* Licensed under the simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
package com.isode.stroke.avatars;
import... | swift/stroke | test/com/isode/stroke/avatars/VCardAvatarManagerTest.java | Java | gpl-3.0 | 5,013 |
package com.minnymin.zephyrus.core.spell.buff;
import java.util.HashMap;
import java.util.Map;
import org.bukkit.configuration.ConfigurationSection;
import com.minnymin.zephyrus.Configurable;
import com.minnymin.zephyrus.aspect.Aspect;
import com.minnymin.zephyrus.aspect.AspectList;
import com.minnymin.zephyrus.core... | minnymin3/Zephyrus-II | Zephyrus-Core/src/main/java/com/minnymin/zephyrus/core/spell/buff/FlySpell.java | Java | gpl-3.0 | 1,478 |
// -*- Mode: Go; indent-tabs-mode: t -*-
/*
* Copyright (C) 2018-2019 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hop... | stgraber/snapd | overlord/snapstate/devicectx_test.go | GO | gpl-3.0 | 5,913 |
/* license-start
*
* Copyright (C) 2008 - 2014 Crispico Software, <http://www.crispico.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 version 3.
*
* This program is d... | flower-platform/flower-platform-4 | org.flowerplatform.core/src/org/flowerplatform/core/node/resource/in_memory/InMemorySessionService.java | Java | gpl-3.0 | 2,984 |
package edu.washington.cs.knowitall.util;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import opennlp.tools.chunker.Chunker;
import opennlp.tools.chunker.ChunkerME;
import opennlp.tools.chunker.ChunkerModel;
import opennlp.tools.postag.POSModel;
import opennlp.tools.postag.POSTagger;... | wavii/reverb-core | src/main/java/edu/washington/cs/knowitall/util/DefaultObjects.java | Java | gpl-3.0 | 5,049 |
/*
* This file is part of AirReceiver.
*
* AirReceiver 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.
* AirReceiver is distrib... | jkiddo/jolivia | jolivia.airplay/src/main/java/org/dyndns/jkiddo/raop/server/audio/SampleDimensions.java | Java | gpl-3.0 | 3,274 |
//Copyright (c) 2011 Municipalidad de Rosario and Coop. de Trabajo Tecso Ltda.
//This file is part of SIAT. SIAT is licensed under the terms
//of the GNU General Public License, version 3.
//See terms in COPYING file or <http://www.gnu.org/licenses/gpl.txt>
package ar.gov.rosario.swe.buss.bean;
import javax.persisten... | avdata99/SIAT | siat-1.0-SOURCE/src/swe/buss/src/ar/gov/rosario/swe/buss/bean/UsrRolApl.java | Java | gpl-3.0 | 2,879 |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/spectrum_trim_dialog.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_SpectrumTrimDialog(object):
def setupUi(self, Spectr... | GuLinux/PySpectrum | pyui/spectrum_trim_dialog.py | Python | gpl-3.0 | 2,047 |
package org.overture.codegen.vdm2jml;
import org.overture.codegen.cgast.analysis.AnalysisException;
import org.overture.codegen.cgast.analysis.DepthFirstAnalysisAdaptor;
import org.overture.codegen.cgast.declarations.AFieldDeclCG;
import org.overture.codegen.cgast.declarations.AFormalParamLocalParamCG;
import org.over... | ldcouto/overture | core/codegen/vdm2jml/src/main/java/org/overture/codegen/vdm2jml/RecInvTransformation.java | Java | gpl-3.0 | 4,440 |
package fi.pyramus.json.students;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.apache.commons.lang.StringUtils;
import org.hibernate.StaleObjectStateException;
import fi.interne... | leafsoftinfo/pyramus | pyramus/src/main/java/fi/pyramus/json/students/EditStudentGroupJSONRequestController.java | Java | gpl-3.0 | 6,241 |
//******************************************************************
//
// Copyright 2015 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... | kadasaikumar/iotivity-1.2.1 | service/resource-encapsulation/src/common/primitiveResource/unittests/ResourceAttributesTest.cpp | C++ | gpl-3.0 | 13,595 |
/*
Copyright (C) 2007-2011 Database Group - Universita' della Basilicata
Giansalvatore Mecca - giansalvatore.mecca@unibas.it
Salvatore Raunich - salrau@gmail.com
This file is part of ++Spicy - a Schema Mapping and Data Exchange Tool
++Spicy is free software: you can redistribute it and/or mod... | dbunibas/spicy | spicyEngine/src/it/unibas/spicy/model/algebra/query/operators/sql/IDBMSHandler.java | Java | gpl-3.0 | 1,472 |
var Informer = function(infArray, mem, ref) {
this.infoLeakArray = infArray;
this.memoryArray = mem;
this.referenceAddress = ref;
};
// Calculate VideoPlayer.ocx base
Informer.prototype.leakVideoPlayerBase = function(videoPlayerObj) {
this.infoLeakArray[0] = videoPlayerObj; // set HTMLObjectElement as... | cSploit/android.MSF | data/exploits/edb-35948/js/informer.js | JavaScript | gpl-3.0 | 2,237 |
package com.fekracomputers.islamiclibrary.search.view.viewHolder;
import android.animation.ObjectAnimator;
import android.support.annotation.NonNull;
import android.view.View;
import android.view.animation.OvershootInterpolator;
import android.widget.ImageView;
import android.widget.TextView;
import com.bignerdranch.... | fekracomputers/IslamicLibraryAndroid | app/src/main/java/com/fekracomputers/islamiclibrary/search/view/viewHolder/BookResultsHeaderViewHolder.java | Java | gpl-3.0 | 2,714 |
/* Replacement grp.h file for building GNU Emacs on Windows.
Copyright (C) 2003-2011 Free Software Foundation, Inc.
This file is part of GNU Emacs.
GNU Emacs 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, eit... | chriskmanx/qmole | QMOLEDEV/emacs24/nt/inc/grp.h | C | gpl-3.0 | 1,012 |
/*
*Copyright (C) 2012 FAUX Thomas, HERICE Charlotte, PAYSAN-LAFOSSE Typhaine, SANSEN Joris
*This file is part of Pick_EM program
*Pick_EM 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 ... | bioinfocttj/pdp | PanelImCorr.java | Java | gpl-3.0 | 5,544 |
package com.mundane.examassistant.global;
import android.app.Application;
import android.content.Context;
import com.mundane.examassistant.BuildConfig;
import com.mundane.examassistant.utils.LogUtils;
import com.mundane.examassistant.utils.UMengUtil;
import com.umeng.analytics.MobclickAgent;
/**
* @author : mundane
... | mundane799699/ExamAssistant | app/src/main/java/com/mundane/examassistant/global/ExamAssistantApplication.java | Java | gpl-3.0 | 1,068 |
/**
* File ./src/main/java/de/lemo/dms/connectors/clix2010/mapping/TQtiEvalAssessment.java
* Lemo-Data-Management-Server for learning analytics.
* Copyright (C) 2013
* Leonard Kappe, Andreas Pursian, Sebastian Schwarzrock, Boris Wenzlaff
*
* This program is free software: you can redistribute it and/or modify
*... | LemoProject/lemo2 | src/main/java/de/lemo/dms/connectors/clix2010/mapping/TQtiEvalAssessment.java | Java | gpl-3.0 | 2,950 |
/*
Copyright 2015 Rudolf Fiala
This file is part of Alpheus AFP Parser.
Alpheus AFP Parser 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.
... | quike/alpheusafpparser | src/main/java/com/mgz/afp/modca/PFC_PresentationFidelityControl.java | Java | gpl-3.0 | 4,032 |
package ie.oki.service.impl;
import ie.oki.enums.CsvType;
import ie.oki.model.Record;
import ie.oki.model.SearchCriteria;
import ie.oki.predicate.RecordSpecificationsBuilder;
import ie.oki.repository.RecordRepository;
import ie.oki.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
i... | openknowledgeireland/hospitalwaitinglist | hospital-waiting-list-business/src/main/java/ie/oki/service/impl/RecordServiceImpl.java | Java | gpl-3.0 | 1,358 |
package ch.cyberduck.core.nio;
/*
* Copyright (c) 2002-2017 iterate GmbH. All rights reserved.
* https://cyberduck.io/
*
* 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 o... | iterate-ch/cyberduck | nio/src/main/java/ch/cyberduck/core/nio/LocalUnixPermissionFeature.java | Java | gpl-3.0 | 3,174 |
/*
* Copyright (C) 2010-2021 Structr GmbH
*
* This file is part of Structr <http://structr.org>.
*
* Structr 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 yo... | ckramp/structr | structr-core/src/main/java/org/structr/core/property/LongSumProperty.java | Java | gpl-3.0 | 2,499 |
/*******************************************************************************
* Signavio Core Components
* Copyright (C) 2012 Signavio GmbH
*
* 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 Found... | KarnYong/BPaaS-modeling | platform/src/com/signavio/platform/security/business/FsSecureBusinessObject.java | Java | gpl-3.0 | 2,973 |
/*
Safe: Encrypted File System
Copyright (C) 2014 Rian Hunter <rian@alum.mit.edu>
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 ... | safeapp/safe | src/safe/exception_backtrace.hpp | C++ | gpl-3.0 | 2,095 |
package com.motour.recommender;
import java.io.IOException;
import org.apache.mahout.cf.taste.common.TasteException;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.spri... | bcc829/RestfulMahoutRecommender | RestfulRecommenderApi/src/main/java/com/motour/recommender/HomeController.java | Java | gpl-3.0 | 873 |
/*
NOTICE
The software accompanying this notice (the "Software") is provided to you
free of charge to facilitate your use of the data collected by the Mars
Orbiter Camera (the "MOC Data"). Malin Space Science Systems ("MSSS")
grants to you (either as an individual or entity) a personal,
non-transferable, and non-excl... | corburn/ISIS | isis/src/mgs/apps/mocuncompress/readBits.h | C | gpl-3.0 | 2,757 |
package ch.cyberduck.core.openstack;
/*
* Copyright (c) 2002-2019 iterate GmbH. All rights reserved.
* https://cyberduck.io/
*
* 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... | iterate-ch/cyberduck | openstack/src/test/java/ch/cyberduck/core/openstack/AbstractSwiftTest.java | Java | gpl-3.0 | 2,629 |
/*
* Copyright (C) 2007 Apple Inc.
* Copyright (C) 2007 Alp Toker <alp@atoker.com>
* Copyright (C) 2008 Collabora Ltd.
* Copyright (C) 2008, 2009 Google Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by ... | cs-au-dk/Artemis | WebKit/Source/WebCore/rendering/RenderThemeChromiumSkia.cpp | C++ | gpl-3.0 | 22,908 |
package identify
import (
"context"
"fmt"
"sort"
"sync"
"time"
"github.com/libp2p/go-eventbus"
"github.com/libp2p/go-libp2p-core/event"
"github.com/libp2p/go-libp2p-core/host"
"github.com/libp2p/go-libp2p-core/network"
"github.com/libp2p/go-libp2p-core/peerstore"
ma "github.com/multiformats/go-multiaddr"
... | status-im/status-go | vendor/github.com/libp2p/go-libp2p/p2p/protocol/identify/obsaddr.go | GO | mpl-2.0 | 17,801 |
/*
* Copyright (c) 2017-2018 This file is subject to the terms and conditions defined in file 'LICENSE.txt', which is part of this source code package.
*/
package pl.brotherhood.controllers;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.... | gosak/PFC | src/main/java/pl/brotherhood/controllers/ConfigurationController.java | Java | agpl-3.0 | 1,037 |
/*
* SessionClientEvent.hpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public Li... | piersharding/rstudio | src/cpp/session/include/session/worker_safe/session/SessionClientEvent.hpp | C++ | agpl-3.0 | 6,577 |
/*
* Copyright (C) 2000 - 2021 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 spec... | SilverDav/Silverpeas-Core | core-war/src/main/java/org/silverpeas/web/notificationuser/servlets/UserNotificationRequestRouter.java | Java | agpl-3.0 | 6,406 |
/**
* Copyright (C) 2001-2017 by RapidMiner and the contributors
*
* Complete list of developers available at our web site:
*
* http://rapidminer.com
*
* 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... | cm-is-dog/rapidminer-studio-core | src/main/java/com/rapidminer/gui/viewer/DataViewerTable.java | Java | agpl-3.0 | 11,737 |
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* flow-simplex-element.c - A unidirectional processing element.
*
* Copyright (C) 2006 Hans Petter Jansson
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... | hpjansson/flow | flow/flow-simplex-element.c | C | lgpl-2.1 | 3,941 |
/* libaio Linux async I/O interface
compat-0_1.c : compatibility symbols for libaio 0.1.x-0.3.x
Copyright 2002 Red Hat, Inc.
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; ei... | linux-xhyang/libaio | src/compat-0_1.c | C | lgpl-2.1 | 1,977 |
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* Copyright (c) 2013, Red Hat Inc. or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red Hat Inc.
*
* T... | kevin-chen-hw/LDAE | com.huawei.soa.ldae/src/main/java/org/hibernate/tuple/component/CompositeBasedAssociationAttribute.java | Java | lgpl-2.1 | 7,068 |
/*
* 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/platform/platformlevel/PlatformLevel1.java | Java | lgpl-3.0 | 5,482 |
package org.nebulostore.systest.basictest;
import java.util.Iterator;
import org.apache.log4j.Logger;
import org.nebulostore.communication.naming.CommAddress;
import org.nebulostore.conductor.CaseStatistics;
import org.nebulostore.conductor.ConductorServer;
import org.nebulostore.conductor.messages.InitMessage;
impor... | nebulostore/nebulostore | nebulostore-systest/src/main/java/org/nebulostore/systest/basictest/BasicPingPongServer.java | Java | lgpl-3.0 | 1,698 |
/*
* Sonar, open source software quality management tool.
* Copyright (C) 2008-2011 SonarSource
* mailto:contact AT sonarsource DOT com
*
* Sonar 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; e... | leodmurillo/sonar | sonar-plugin-api/src/test/java/org/sonar/api/qualitymodel/CharacteristicTest.java | Java | lgpl-3.0 | 3,218 |
/*
* 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-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/component/CrawlerDepthLimitTest.java | Java | lgpl-3.0 | 11,167 |
/*
* SonarQube, open source software quality management tool.
* Copyright (C) 2008-2014 SonarSource
* mailto:contact AT sonarsource DOT com
*
* SonarQube 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 Found... | vamsirajendra/sonarqube | server/sonar-server/src/test/java/org/sonar/server/computation/duplication/DuplicationRepositoryImplTest.java | Java | lgpl-3.0 | 6,257 |
package com.bytesvc.consumer.controller;
import org.bytesoft.compensable.Compensable;
import org.bytesoft.compensable.CompensableCancel;
import org.bytesoft.compensable.CompensableConfirm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
im... | liuyangming/ByteTCC-sample | springcloud-sample/sample-consumer/src/main/java/com/bytesvc/consumer/controller/SimplifiedController.java | Java | lgpl-3.0 | 2,126 |
/*
* 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 | sonar-ws/src/main/java/org/sonarqube/ws/client/WsClient.java | Java | lgpl-3.0 | 6,485 |
package components;
import java.io.File;
import java.util.Calendar;
import javax.media.opengl.GL;
import javax.media.opengl.GLAutoDrawable;
import javax.media.opengl.GLEventListener;
import javax.media.opengl.GLJPanel;
import cameras.Camera;
import cameras.PointCamera;
import engine.Engine;
import engine.entities.Co... | mua/jshooter | src/components/Viewport.java | Java | unlicense | 3,157 |
/*
* Copyright 2018 Organizations participating in ISAAC, ISAAC's KOMET, and SOLOR development include the
US Veterans Health Administration, OSHERA, and the Health Services Platform Consortium..
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... | OSEHRA/ISAAC | komet/gui-contracts/src/main/java/sh/komet/gui/importation/ImportSelectedAndTransformTask.java | Java | apache-2.0 | 4,446 |
package com.yueban.architecturedemo.data.net.converter;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import com.google.gson.reflect.TypeToken;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Converter;
... | yueban/ArchitectureDemo | app/src/main/java/com/yueban/architecturedemo/data/net/converter/GsonConverterFactory.java | Java | apache-2.0 | 1,709 |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | n2hsu/Nii-Launcher | src/com/n2hsu/launcher/InstallWidgetReceiver.java | Java | apache-2.0 | 5,802 |
package ccv3
import (
"code.cloudfoundry.org/cli/api/cloudcontroller/ccerror"
"code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/internal"
"code.cloudfoundry.org/cli/resources"
)
// CreateApplication creates an application with the given settings.
func (client *Client) CreateApplication(app resources.Application)... | cloudfoundry/cli | api/cloudcontroller/ccv3/application.go | GO | apache-2.0 | 3,453 |
package com.littlesparkle.growler.library.webview;
import android.annotation.SuppressLint;
import android.net.Uri;
import android.webkit.ValueCallback;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
public class BaseWebChromeClient extends WebChromeClient {
private OnOpenFileChooserListener... | little-sparkle/growler_engine_android | library/src/main/java/com/littlesparkle/growler/library/webview/BaseWebChromeClient.java | Java | apache-2.0 | 1,515 |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | dongjoon-hyun/elasticsearch | core/src/main/java/org/elasticsearch/indices/recovery/RecoverySettings.java | Java | apache-2.0 | 8,329 |
/*
* Copyright (C) 2015 The Dagger 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... | dushmis/dagger | java/dagger/internal/codegen/writing/ProducerFromProviderCreationExpression.java | Java | apache-2.0 | 2,856 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | phrocker/accumulo | test/src/main/java/org/apache/accumulo/test/continuous/ContinuousQuery.java | Java | apache-2.0 | 2,582 |
package com.hubspot.singularity;
import static com.hubspot.singularity.JsonHelpers.copyOfList;
import static com.hubspot.singularity.JsonHelpers.copyOfMap;
import static com.hubspot.singularity.JsonHelpers.copyOfSet;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProp... | HubSpot/Singularity | SingularityBase/src/main/java/com/hubspot/singularity/SingularityDeploy.java | Java | apache-2.0 | 34,148 |
package services
import (
"encoding/json"
"fmt"
"strings"
"time"
"github.com/gravitational/teleport"
"github.com/gravitational/teleport/lib/defaults"
"github.com/gravitational/teleport/lib/utils"
"github.com/gravitational/trace"
"github.com/jonboulle/clockwork"
)
// TunnelConnection is SSH reverse tunnel c... | yacloud-io/teleport | lib/services/tunnelconn.go | GO | apache-2.0 | 8,075 |
/*
* Copyright 2013-2020 consulo.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | consulo/consulo | modules/base/platform-api/src/main/java/consulo/preferences/NamedConfigurable.java | Java | apache-2.0 | 5,291 |
package me.chanjar.weixin.cp.api.impl;
import lombok.RequiredArgsConstructor;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import me.chanjar.weixin.cp.api.WxCpService;
import me.chanjar.weixin.cp.api.WxCpTaskCardService;
import java.util.HashMap;
imp... | Wechat-Group/WxJava | weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImpl.java | Java | apache-2.0 | 1,298 |
/*
* Copyright 2009-2012 by The Regents of the University of California
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may obtain a copy of the License from
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | parshimers/incubator-asterixdb | asterix-installer/src/main/java/edu/uci/ics/asterix/installer/command/UninstallCommand.java | Java | apache-2.0 | 3,195 |
package planner
import (
"fmt"
"strings"
rkev1 "github.com/rancher/rancher/pkg/apis/rke.cattle.io/v1"
"github.com/rancher/rancher/pkg/apis/rke.cattle.io/v1/plan"
"github.com/rancher/rancher/pkg/controllers/provisioningv2/rke2"
"github.com/rancher/wrangler/pkg/generic"
"github.com/sirupsen/logrus"
)
const (
E... | rancher/rancher | pkg/provisioningv2/rke2/planner/encryptionkeyrotation.go | GO | apache-2.0 | 18,033 |
/*
* 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-route53/src/main/java/com/amazonaws/services/route53domains/model/transform/ListOperationsRequestProtocolMarshaller.java | Java | apache-2.0 | 2,671 |
package org.lnu.is.dao.builder.address.type;
import org.lnu.is.dao.annotations.QBuilder;
import org.lnu.is.dao.builder.AbstractQueryBuilder;
import org.lnu.is.dao.builder.BaseQueryBuilder;
import org.lnu.is.domain.address.type.AddressType;
/**
* Query builder for Address Type.
*
* @author ROMA
*
*/
@QBuilder("... | ifnul/ums-backend | is-lnu-persistence/src/main/java/org/lnu/is/dao/builder/address/type/AddressTypeQueryBuilder.java | Java | apache-2.0 | 1,007 |
package com.wwq.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by 魏文强 on 2016/10/2.
*/
public class CoolWeatherOpenHelper extends SQLiteOpenHelper {
private static final String CREATE_PROVINCE = "create table Pro... | weiwenqiang/WeatherForecast | app/src/main/java/com/wwq/db/CoolWeatherOpenHelper.java | Java | apache-2.0 | 1,183 |
/**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.xiang.modules.sys.api;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.sys.dao.RoleDao;
import com.thinkgem.jeesite.modules.sys.entity.Role;
impor... | ubluer/XiangOA | src/main/java/com/xiang/modules/sys/api/SysRoleApi.java | Java | apache-2.0 | 1,159 |
package com.crw.Itest.question;
import android.R;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
import com.crw.Itest.MainActivity;
public class Activity_question_brower extends TabActivity
{
private Tab... | RiweiChen/Java_Code_Practice | 安卓手机题库软件(本科毕业设计)/Itest/src/com/crw/Itest/question/Activity_question_brower.java | Java | apache-2.0 | 1,590 |
/* Copyright 2021 Telstra Open Source
*
* 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... | telstra/open-kilda | src-java/flowhs-topology/flowhs-storm-topology/src/main/java/org/openkilda/wfm/topology/flowhs/fsm/yflow/reroute/actions/StartReroutingYFlowAction.java | Java | apache-2.0 | 4,872 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iotwireless/model/LoRaWANFuotaTask.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
... | aws/aws-sdk-cpp | aws-cpp-sdk-iotwireless/source/model/LoRaWANFuotaTask.cpp | C++ | apache-2.0 | 1,214 |
/**
* Copyright 2017 The OpenZipkin 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 agree... | openzipkin/zipkin-sparkstreaming | sparkstreaming/src/main/java/zipkin/sparkstreaming/AdjustAndConsumeSpansSharingTraceId.java | Java | apache-2.0 | 1,943 |
/* 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... | zwets/flowable-engine | modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/persistence/entity/CaseInstanceEntityManagerImpl.java | Java | apache-2.0 | 6,229 |
/* global describe, it, element, by, expect */
'use strict';
var setup = require('../../common/setup');
var common = require('../../common/common');
var authentication = require('../../authentication/authentication');
var genericForm = require('../../generic_form/generic_form');
var tagConfigCommon = require('../../ad... | PierreLemordant/alien4cloud | alien4cloud-ui/src/test/webapp/e2e/scenarios/admin/metaprops_configuration.js | JavaScript | apache-2.0 | 2,808 |
// Copyright 2019, OpenCensus 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 agree... | census-instrumentation/opencensus-service | translator/trace/zipkin/zipkinv1_thrift_to_protospan.go | GO | apache-2.0 | 8,500 |
/*
* 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 ... | greghogan/flink | flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/ExecutionGraphTestUtils.java | Java | apache-2.0 | 20,122 |
/*
* 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... | gbif/checklistbank | checklistbank-solr/src/main/java/org/gbif/checklistbank/index/service/SolrMapping.java | Java | apache-2.0 | 3,229 |
/*
* Copyright 2015 Zurich University of Applied Sciences
*
* 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 applic... | icclab/watchtower-workflow | src/main/java/watchtower/workflow/consumer/KafkaConsumerRunnable.java | Java | apache-2.0 | 2,294 |
/*
* Copyright 2015-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | topsale/leesite | leesite-module/src/main/java/com/funtl/leesite/tools/baidu/ueditor/upload/BinaryUploader.java | Java | apache-2.0 | 3,586 |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ViewingAreaRoutingModule } from './viewing-area-routing.module';
/* Import Services/Providers */
import { BoatBreakageService } from './shared/providers/boat-breakage.service';
import { BoatUsageService } from './pages/... | LaserFlash/U23-Reports | src/app/viewing-area/viewing-area.module.ts | TypeScript | apache-2.0 | 2,648 |
package com.twitter.elephantbird.cascading2.scheme;
import com.hadoop.compression.lzo.LzopCodec;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.FileOutputFormat;
import org.apache.hadoop.mapred.JobConf;
import org.apache.hadoop.mapred.TextOutputFormat;
import com.twitter.elephantbird.mapred.input.... | ketralnis/elephant-bird | src/java/com/twitter/elephantbird/cascading2/scheme/LzoTextDelimited.java | Java | apache-2.0 | 2,560 |
/*******************************************************************************
* Copyright (c) 2009 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, and is a... | vovagrechka/fucking-everything | phizdets/phizdets-idea/eclipse-src/org.eclipse.php.core/src/org/eclipse/php/internal/core/codeassist/strategies/MethodNameStrategy.java | Java | apache-2.0 | 4,632 |
package org.oryxeditor.server;
import java.io.BufferedWriter;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.StringWriter;
import java.net.ConnectException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncode... | grasscrm/gdesigner | editor/server/src/org/oryxeditor/server/ExportServlet.java | Java | apache-2.0 | 6,850 |
/* Copyright 2021 Telstra Open Source
*
* 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... | telstra/open-kilda | src-java/northbound-service/northbound/src/main/java/org/openkilda/northbound/service/impl/YFlowServiceImpl.java | Java | apache-2.0 | 11,702 |
/*
* Copyright 2016 LINE Corporation
*
* LINE Corporation 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/licenses/LICENSE-2.0
*
* Unless re... | gotchazipc/armeria | src/test/java/com/linecorp/armeria/server/grpc/interop/ArmeriaGrpcServerBuilder.java | Java | apache-2.0 | 3,425 |
""" example from book automate-boring-stuff
dict() is used to convert into dictionary
basic dictionaries command keys(),get('.',default),values()
1. dictonaries are not iterable i.e. you cannot traverse through it
"""
distros_version={
"ubuntu":17.04,
"fedora": 26,
"debian":9,
"redhat":7,
"suse linux":12,
}
pr... | Aneesh540/python-projects | basics/dictionaries.py | Python | apache-2.0 | 984 |
/*
* 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 ... | liquidm/druid | server/src/main/java/org/apache/druid/curator/discovery/CuratorDruidNodeAnnouncer.java | Java | apache-2.0 | 3,495 |
// Copyright 2016 Twitter. 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... | cliffyg/heron | tools/java/src/com/twitter/bazel/checkstyle/JavaCheckstyle.java | Java | apache-2.0 | 3,687 |
package com.mercateo.common.rest.schemagen.link;
import java.net.URI;
import java.util.Objects;
import java.util.Optional;
import javax.ws.rs.core.Link;
import javax.ws.rs.core.Link.Builder;
import com.mercateo.common.rest.schemagen.link.injection.BaseUri;
import com.mercateo.common.rest.schemagen.link.relation.RelT... | fischmax/rest-schemagen | src/main/java/com/mercateo/common/rest/schemagen/link/ExternalLinkFactory.java | Java | apache-2.0 | 1,112 |
package com.hctrom.romcontrol.logcat;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import com.hctrom.romcontrol.logcat.helper.DialogHelper;
import com.hctrom.romcontrol.logcat.helper.PreferenceHelper;
import com.h... | Palleiro/HCTControl | app/src/main/java/com/hctrom/romcontrol/logcat/RecordingWidgetProvider.java | Java | apache-2.0 | 2,275 |
/*
* Copyright (C) 2012 The Guava 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 agre... | jakubmalek/guava | guava-testlib/src/com/google/common/collect/testing/google/BiMapTestSuiteBuilder.java | Java | apache-2.0 | 6,606 |
package fr.sii.ogham.template.thymeleaf.v2.adapter;
import java.util.function.Consumer;
import org.thymeleaf.templateresolver.ITemplateResolver;
import org.thymeleaf.templateresolver.TemplateResolver;
import fr.sii.ogham.template.thymeleaf.common.TemplateResolverOptions;
import fr.sii.ogham.template.thymeleaf.common... | groupe-sii/ogham | ogham-template-thymeleaf-v2/src/main/java/fr/sii/ogham/template/thymeleaf/v2/adapter/ThymeleafV2TemplateOptionsApplier.java | Java | apache-2.0 | 1,062 |
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | googleads/google-ads-java | google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/services/stub/GrpcCampaignCustomizerServiceStub.java | Java | apache-2.0 | 6,819 |
/**
* Copyright 2014 Atos
* Contact: Atos <roman.sosa@atos.net>
*
* 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
... | SeaCloudsEU/sla-core | sla-service/src/main/java/eu/atos/sla/service/rest/helpers/EnforcementJobHelperE.java | Java | apache-2.0 | 5,208 |
package za.redbridge.experiment.NEATM.sensor;
import java.io.Serializable;
import za.redbridge.experiment.NEATM.sensor.parameter.SensorParameterSet;
import static za.redbridge.experiment.NEATM.sensor.parameter.spec.ParameterType.BEARING;
import static za.redbridge.experiment.NEATM.sensor.parameter.spec.ParameterTyp... | JayH5/hons-experiment | src/main/java/za/redbridge/experiment/NEATM/sensor/SensorConfiguration.java | Java | apache-2.0 | 1,801 |
package com.gentics.mesh.core.rest.event.group;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.gentics.mesh.core.rest.event.AbstractMeshEventModel;
import com.gentics.mesh.core.rest.group.GroupReference;
import com.gentics.mesh.core.res... | gentics/mesh | rest-model/src/main/java/com/gentics/mesh/core/rest/event/group/GroupRoleAssignModel.java | Java | apache-2.0 | 1,028 |
/**
* 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... | Eshcar/hbase | hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/ReopenTableRegionsProcedure.java | Java | apache-2.0 | 7,924 |
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gmf.runtime.common.core.command.CommandResu... | rajeevanv89/developer-studio | esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/commands/URLRewriteMediatorCreateCommand.java | Java | apache-2.0 | 2,736 |
package com.dic.bridge.data.repository.datasource.remote;
import com.dic.bridge.base.manager.net.RequestCallback;
import com.dic.bridge.base.manager.net.ResponseData;
import com.dic.bridge.data.net.entity.TokenEntity;
import com.dic.bridge.data.net.entity.UserEntity;
import com.dic.bridge.data.net.impl.UserDaoImpl;
im... | DennisJKF/Bridge | data/src/main/java/com/dic/bridge/data/repository/datasource/remote/UserRemoteDataSource.java | Java | apache-2.0 | 1,527 |
package com.lovecws.mumu.common.security.shiro.filter;
import com.lovecws.mumu.common.core.utils.WebUtil;
import org.apache.shiro.web.filter.authc.FormAuthenticationFilter;
import org.apache.shiro.web.util.WebUtils;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.H... | babymm/mumu | mumu-common/mumu-common-security/src/main/java/com/lovecws/mumu/common/security/shiro/filter/RcFormAuthenticationFilter.java | Java | apache-2.0 | 1,094 |
/*
* 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... | dpursehouse/buck | src/com/facebook/buck/cli/RunCommand.java | Java | apache-2.0 | 5,699 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.