code
stringlengths
4
1.01M
language
stringclasses
2 values
package tpe.exceptions.trycatchfinally; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Point; import de.smits_net.games.framework.board.Board; /** * Spielfeld. */ public class GameBoard extends Board { /** Sprite, das durch das Bild läuft. */ private Professor ...
Java
<?= form_open('', array("class"=>"form-horizontal", "id"=>"frm_menu")); ?> <div class="form-group <?= form_error('title') ? ' error' : ''; ?>"> <label for="title" class="control-label col-sm-2"><?= lang('menus_title'); ?></label> <div class="col-sm-4"> <input type="hidden" id="menuid" name="menuid" valu...
Java
/** * @license Highcharts JS v8.2.2 (2020-10-22) * @module highcharts/modules/funnel3d * @requires highcharts * @requires highcharts/highcharts-3d * @requires highcharts/modules/cylinder * * Highcharts funnel module * * (c) 2010-2019 Kacper Madej * * License: www.highcharts.com/license */ 'use strict'; impo...
Java
#!/bin/bash # # Postfix (SMTP) # -------------- # # Postfix handles the transmission of email between servers # using the SMTP protocol. It is a Mail Transfer Agent (MTA). # # Postfix listens on port 25 (SMTP) for incoming mail from # other servers on the Internet. It is responsible for very # basic email filtering suc...
Java
<!DOCTYPE html> <html> <head> <title>onChange / onSelectionChange</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <link rel="stylesheet" type="text/css" href="../../../codebase/fonts/font_roboto/roboto.css"/> <link rel="stylesheet"...
Java
#pragma once #include "AudioData.h" #include <string> //2D indexing: column-major order, 0-based: #define IDX2D(row, column) (((column) * rows) + (row)) class ImageToSoundscapeConverter { private: double freq_lowest; double freq_highest; int sample_freq_Hz; double total_time_s; bool use_exponential; bool use_...
Java
--- title: "Proporción de mujeres en edad de procrear (de 15 a 49 años) que practican la planificación familiar con métodos modernos" lang: es permalink: /es/3-7-1/ sdg_goal: 3 layout: indicator indicator: "3.7.1" target_id: "3.7" ---
Java
/* * Copyright 2012 Red Hat, Inc. and/or its affiliates. * * Licensed under the Eclipse Public License version 1.0, available at * http://www.eclipse.org/legal/epl-v10.html */ package test.org.jboss.forge.furnace.lifecycle; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss.arquillian.ju...
Java
/** * Copyright (c) 2014-2015 openHAB UG (haftungsbeschraenkt) 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.htm...
Java
/******************************************************************************* * Copyright (c) 2017, 2021 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...
Java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vIBM 2.2.3-11/28/2011 06:21 AM(foreman)- // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Gene...
Java
/* * Copyright (c) 2012-2017 Red Hat, Inc. * 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 * * Contributors: * Red H...
Java
/******************************************************************************* * Copyright (c) 2012 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...
Java
/* * 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 ...
Java
/** * Copyright (c) 2010-2020 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse....
Java
/******************************************************************************* * Copyright (c) 2012 Max Hohenegger. * 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 * ...
Java
/* * Hibernate, Relational Persistence for Idiomatic Java * * Copyright (c) 2008, Red Hat Middleware LLC 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 Mi...
Java
/** * Copyright (c) 2010-2016 by the respective copyright holders. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */...
Java
#!/bin/bash EXIT_CODE=0 kill_ffmpeg(){ echo "Killing ffmpeg with PID=$ffmpeg_pid" kill -2 "$ffmpeg_pid" wait "$ffmpeg_pid" mkdir -p /tmp/e2e/report/ cp /tmp/ffmpeg_report/* /tmp/e2e/report/ } set -x # Validate selenium base URL if [ -z "$TS_SELENIUM_BASE_URL" ]; then echo "The \"TS_SELENIUM_BASE_URL\" ...
Java
package org.hibernate.envers.tools; import org.hibernate.mapping.Collection; import org.hibernate.mapping.OneToMany; import org.hibernate.mapping.ToOne; import org.hibernate.mapping.Value; /** * @author Adam Warski (adam at warski dot org) */ public class MappingTools { /** * @param componentName Name of the co...
Java
/******************************************************************************* * Copyright (c) 2012 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...
Java
/******************************************************************************* * Copyright (c) 2005-2010, G. Weirich and Elexis * 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...
Java
/******************************************************************************* * Copyright (c) 2020 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...
Java
/******************************************************************************* * Copyright (c) 2011, 2016 Eurotech and/or its affiliates 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...
Java
/******************************************************************************* * Copyright (c) 2017, 2020 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...
Java
/** * Copyright (c) 2010-2021 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse....
Java
package moCreatures.items; import net.minecraft.src.EntityPlayer; import net.minecraft.src.Item; import net.minecraft.src.ItemStack; import net.minecraft.src.World; import moCreatures.entities.EntitySharkEgg; // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/...
Java
/******************************************************************************* * Copyright (C) 2008, 2009 Robin Rosenberg <robin.rosenberg@dewire.com> * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies t...
Java
/******************************************************************************* * Copyright (c) 2017 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...
Java
///******************************************************************************* // * Copyright (c) 2015, 2016 EfficiOS Inc., Alexandre Montplaisir // * // * All rights reserved. This program and the accompanying materials are // * made available under the terms of the Eclipse Public License v1.0 which // * accompani...
Java
/******************************************************************************* * Copyright (c) 2017, 2021 Red Hat Inc and others * * 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/ *...
Java
/** * Copyright (c) 2020 Bosch.IO GmbH 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.ecl...
Java
/** * Copyright (c) 2010-2021 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse....
Java
/** * Copyright (c) 2010-2020 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse....
Java
/******************************************************************************* * Copyright (c) 2009-04-24 Joacim Jacobsson. * 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 avail...
Java
/******************************************************************************* * Copyright (c) 2016, 2021 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...
Java
/******************************************************************************* * Copyright (c) 2016, 2021 Eurotech and/or its affiliates and others * * 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.or...
Java
<!-- This file is part of YunWebUI. YunWebUI 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 hope ...
Java
/* * Copyright (c) 2000, 2001, 2002 Fabrice Bellard * Copyright (c) 2007 Mans Rullgard * * This file is part of FFmpeg. * * FFmpeg 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 * versi...
Java
<?php /** * Community Builder (TM) cbconditional Chinese (China) language file Frontend * @version $Id:$ * @copyright (C) 2004-2014 www.joomlapolis.com / Lightning MultiCom SA - and its licensors, all rights reserved * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL version 2 */ /** * WARNING: *...
Java
/* * Copyright (C) 2014 Michael Joyce <ubermichael@gmail.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation version 2. * * This program is distributed in the hope that it will be usefu...
Java
package net.indrix.arara.servlets.pagination; import java.sql.SQLException; import java.util.List; import net.indrix.arara.dao.DatabaseDownException; public class SoundBySpeciePaginationController extends SoundPaginationController { /** * Creates a new PaginationController object, ...
Java
/* This file was generated by PyBindGen 0.15.0.809 */ #define PY_SSIZE_T_CLEAN #include <Python.h> #include <stddef.h> #if PY_VERSION_HEX < 0x020400F0 #define PyEval_ThreadsInitialized() 1 #define Py_CLEAR(op) \ do { \ if (op) { \ PyOb...
Java
package dataservice.businessdataservice; import java.rmi.Remote; import java.rmi.RemoteException; import java.util.ArrayList; import po.BusinessPO; import po.DistributeReceiptPO; import po.DriverPO; import po.EnVehicleReceiptPO; import po.GatheringReceiptPO; import po.OrderAcceptReceiptPO; import po.OrganizationPO; i...
Java
# OpenStack ocata installation script on Ubuntu 16.04.2 # by kasidit chanchio # vasabilab, dept of computer science, # Thammasat University, Thailand # # Copyright 2017 Kasidit Chanchio # # run with sudo or as root. # #!/bin/bash -x cd $HOME/OPSInstaller/controller pwd # apt-get -y install keystone # cp files/keysto...
Java
FusionCharts.ready(function () { var gradientCheckBox = document.getElementById('useGradient'); //Set event listener for radio button if (gradientCheckBox.addEventListener) { gradientCheckBox.addEventListener("click", changeGradient); } function changeGradient(evt, obj) { //Set...
Java
/* Copyright (C) 2009 - 2012 by Bartosz Waresiak <dragonking@o2.pl> Part of the Battle for Wesnoth Project http://www.wesnoth.org/ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eithe...
Java
/* -*- mode: c -*- */ /* Copyright (C) 2005-2016 Alexander Chernov <cher@ejudge.ru> */ /* * 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 opt...
Java
/* * This file is part of the UCB release of Plan 9. It is subject to the license * terms in the LICENSE file found in the top-level directory of this * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No * part of the UCB release of Plan 9, including this file, may be copied, * modified, pro...
Java
/*! * address.js - Description * Copyright © 2012 by Ingenesis Limited. All rights reserved. * Licensed under the GPLv3 {@see license.txt} */ (function($) { jQuery.fn.upstate = function () { if ( typeof regions === 'undefined' ) return; $(this).change(function (e,init) { var $this = $(this), prefix =...
Java
/* soundeffects.c * An example on how to use libmikmod to play sound effects. * * (C) 2004, Raphael Assenat (raph@raphnet.net) * * This example is distributed in the hope that it will be useful, * but WITHOUT ANY WARRENTY; without event the implied warrenty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS...
Java
/*++ drivers/i2c/busses/wmt-i2c-bus-3.c Copyright (c) 2013 WonderMedia Technologies, Inc. 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) an...
Java
/* BlueZ - Bluetooth protocol stack for Linux Copyright (C) 2010 Nokia Corporation Copyright (c) 2011-2012 The Linux Foundation. All rights reserved. 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 t...
Java
/* * Copyright (C) 2013 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
Java
cmd_arch/arm/vfp/entry.o := /home/milind/toolchain/arm-eabi-4.6/bin/arm-eabi-gcc -Wp,-MD,arch/arm/vfp/.entry.o.d -nostdinc -isystem /home/milind/toolchain/arm-eabi-4.6/bin/../lib/gcc/arm-eabi/4.6.x-google/include -I/home/milind/work/kernel/android_kernel_samsung_i9082/arch/arm/include -Iarch/arm/include/generated -Iin...
Java
package org.xmlvm.ios; import java.util.*; import org.xmlvm.XMLVMSkeletonOnly; @XMLVMSkeletonOnly public class CFGregorianDate { /* * Variables */ public int year; public byte month; public byte day; public byte hour; public byte minute; public double second; /* * Constructors */ /** Default ...
Java
/* * synergy -- mouse and keyboard sharing utility * Copyright (C) 2012 Bolton Software Ltd. * Copyright (C) 2012 Nick Bolton * * This package is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * found in the file COPYING that should have accompanied th...
Java
#if UNITY_4_3 || UNITY_4_3_0 || UNITY_4_3_1 #define UNITY_4_3 #elif UNITY_4_0 || UNITY_4_0_1 || UNITY_4_1 || UNITY_4_2 #define UNITY_4 #elif UNITY_3_0 || UNITY_3_0_0 || UNITY_3_1 || UNITY_3_2 || UNITY_3_3 || UNITY_3_4 || UNITY_3_5 #define UNITY_3 #endif using UnityEngine; using UnityEditor; using System.Collections; u...
Java
/** * OpenKM, Open Document Management System (http://www.openkm.com) * Copyright (c) 2006-2017 Paco Avila & Josep Llort * <p> * No bytes were intentionally harmed during the development of this application. * <p> * This program is free software; you can redistribute it and/or modify * it under the terms of the...
Java
#ifndef __STDDEF #define __STDDEF /* $Id: stddef.h,v 1.1 2002/08/28 23:59:20 drh Exp $ */ #ifndef NULL #define NULL ((void*)0) #endif #define offsetof(ty,mem) ((size_t)((char*)&((ty*)0)->mem - (char*)0)) typedef long ptrdiff_t; #if !defined(_SIZE_T) && !defined(_SIZE_T_) && !defined(_SIZE_T_DEFINED) #define _SIZE_T...
Java
/*************************************************************************/ /*! @File @Title System Description Header @Copyright Copyright (c) Imagination Technologies Ltd. All Rights Reserved @Description This header provides system-specific declarations and macros @License Dual MIT/GPLv2 The...
Java
/* $Id: PDMDevHlp.cpp $ */ /** @file * PDM - Pluggable Device and Driver Manager, Device Helpers. */ /* * Copyright (C) 2006-2015 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it...
Java
package com.avrgaming.civcraft.endgame; import java.util.ArrayList; import com.avrgaming.civcraft.main.CivGlobal; import com.avrgaming.civcraft.main.CivMessage; import com.avrgaming.civcraft.object.Civilization; import com.avrgaming.civcraft.object.Town; import com.avrgaming.civcraft.sessiondb.SessionEntry; import co...
Java
/* * Copyright 2010 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundati...
Java
/* * Copyright (C) 2014 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
Java
package gr.softaware.lib_1_3.data.convert.csv; import java.util.List; /** * * @author siggouroglou * @param <T> A class that implements the CsvGenerationModel interface. */ final public class CsvGenerator<T extends CsvGenerationModel> { private final List<CsvGenerationModel> modelList; public CsvGenerat...
Java
<?php /** Author: Musavir Ifitkahr: kuala lumpur Malaysia */ class Admin_UserController extends Zend_Controller_Action { protected $user_session = null; protected $db; protected $language_id = null; protected $filter = null; protected $user = null; protected $baseurl = ''; public func...
Java
/* * This file is part of KITCard Reader. * Ⓒ 2012 Philipp Kern <phil@philkern.de> * * KITCard Reader 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 optio...
Java
/* * Copyright 2002-2005, Instant802 Networks, Inc. * Copyright 2005-2006, Devicescape Software, Inc. * Copyright 2007 Johannes Berg <johannes@sipsolutions.net> * Copyright 2008 Luis R. Rodriguez <lrodriguz@atheros.com> * * This program is free software; you can redistribute it and/or modify * it under the terms...
Java
/*************************************************************************** qgssourcefieldsproperties.cpp --------------------- begin : July 2017 copyright : (C) 2017 by David Signer email : david at opengis dot ch *****************************************...
Java
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?> <!DOCTYPE html> <html lang="es_MX"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title></title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href='http://fonts...
Java
/* * IMG Pistachio USB PHY driver * * Copyright (C) 2015 Google, Inc. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. */ #include <linux/clk.h> #include <li...
Java
<?php /** * @package Joomla.Administrator * @subpackage com_supperadmin * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $supperAdmin = JFactory::isSupperAdmin(...
Java
/* Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certain so...
Java
<?php /** Neapolitan (Nnapulitano) * * See MessagesQqq.php for message documentation incl. usage of parameters * To improve a translation please visit http://translatewiki.net * * @ingroup Language * @file * * @author Carmine Colacino * @author Cryptex * @author E. abu Filumena * @author SabineCretella * @a...
Java
#!/usr/bin/env python import glob, os, sys import sipconfig from PyQt4 import pyqtconfig def get_diana_version(): depends = filter(lambda line: line.startswith("Depends:"), open("debian/control").readlines()) for line in depends: pieces = line.split() for piece in pi...
Java
// SPDX-License-Identifier: GPL-2.0 #include "core/subsurface-string.h" #include "qPrefDisplay.h" #include "qPrefPrivate.h" #include <QApplication> #include <QFont> static const QString group = QStringLiteral("Display"); QPointF qPrefDisplay::st_tooltip_position; static const QPointF st_tooltip_position_default = QP...
Java
from datetime import datetime from flask import current_app from flask.cli import with_appcontext from invenio_db import db from hepdata.cli import fix from hepdata.ext.elasticsearch.api import index_record_ids, push_data_keywords from hepdata.modules.submission.models import HEPSubmission, DataSubmission from hepdat...
Java
/* Core.css for Mocha UI Theme: Default Copyright: Copyright (c) 2007-2009 Greg Houston, <http://greghoustondesign.com/>. License: MIT-style license. Required by: Layout.js */ /* Layout ---------------------------------------------------------------- */ html, body { background: #fff; ...
Java
/****************************************************************************** * * rawverse.cpp - code for class 'RawVerse'- a module that reads raw text * files: ot and nt using indexs ??.bks ??.cps ??.vss * and provides lookup and parsing functions based on * class VerseKey * * $Id$ * * Copyright 19...
Java
// KinematicObjectSphereConstraint.h // // Breannan Smith // Last updated: 09/16/2015 #ifndef KINEMATIC_OBJECT_SPHERE_CONSTRAINT_H #define KINEMATIC_OBJECT_SPHERE_CONSTRAINT_H #include "scisim/Constraints/Constraint.h" class KinematicObjectSphereConstraint final : public Constraint { public: // sphere_idx: index...
Java
#pragma once #ifndef __TRINITY_UPDATEFIELDFLAGS_H__ #define __TRINITY_UPDATEFIELDFLAGS_H__ #include "UpdateFieldFlags.h" // Auto generated for version 17359 // > Object uint32 ObjectUpdateFieldFlags[OBJECT_END] = { UF_FLAG_PUBLIC, // OBJECT_FIELD_GUID UF_FLAG_PUBLIC, // OBJECT_FIELD_GUID UF_FLAG_PUBLIC, ...
Java
package gitmad.bitter.ui; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; import gitmad.bitter.R; import gitmad.bitter.model.Comment; import gitmad.bitter.model.User; import...
Java
<?php if (!defined ('UPDRAFTPLUS_DIR')) die('No direct access allowed'); // Admin-area code lives here. This gets called in admin_menu, earlier than admin_init global $updraftplus_admin; if (!is_a($updraftplus_admin, 'UpdraftPlus_Admin')) $updraftplus_admin = new UpdraftPlus_Admin(); class UpdraftPlus_Admin { pub...
Java
#!/bin/sh # SPDX-License-Identifier: LGPL-2.1-or-later set -eu cd "$MESON_SOURCE_ROOT" if [ ! -f .git/hooks/pre-commit.sample -o -f .git/hooks/pre-commit ]; then exit 2 # not needed fi cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit chmod +x .git/hooks/pre-commit echo 'Activated pre-commit hook'
Java
cmd_fs/jbd/checkpoint.o := /opt/buildroot-gcc342/bin/mipsel-linux-uclibc-gcc -Wp,-MD,fs/jbd/.checkpoint.o.d -nostdinc -isystem /root/asuswrt-bender/tools/brcm/K26/hndtools-mipsel-uclibc-4.2.4/bin/../lib/gcc/mipsel-linux-uclibc/4.2.4/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstri...
Java
/* * Created on 5 Sep 2007 * * Copyright (c) 2004-2007 Paul John Leonard * * http://www.frinika.com * * This file is part of Frinika. * * Frinika 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; e...
Java
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- * * Copyright (C) 2013 Richard Hughes <richard@hughsie.com> * * Licensed under the GNU General Public License Version 2 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public ...
Java
#include <iostream> #include "common.h" using namespace storage; using namespace std; StorageInterface* s = NULL; void test(const string& device) { ResizeInfo resize_info; ContentInfo content_info; if (s->getFreeInfo(device, true, resize_info, true, content_info, true)) { cout << device << " t...
Java
#include <iostream> using namespace std; long long n, ans = 0; long long dn[500][500]; long long rec(long long prlvl, long long sum) { if (sum < 0) return 0; else if (sum == 0) return 1; else { if (dn[prlvl][sum] != -1) return dn[prlvl][sum]; else { long long res = 0; for (int ...
Java
# OpenStack ocata installation script on Ubuntu 16.04.2 # by kasidit chanchio # vasabilab, dept of computer science, # Thammasat University, Thailand # # Copyright 2017 Kasidit Chanchio # # Run this with sudo or as root #!/bin/bash -x cd $HOME/OPSInstaller/controller pwd echo "check chrony" chronyc sources sleep 1 ...
Java
#!/bin/sh # # Copyright (c) 2006 Junio C Hamano # test_description='Binary diff and apply ' . ./test-lib.sh test_expect_success 'prepare repository' \ 'echo AIT >a && echo BIT >b && echo CIT >c && echo DIT >d && git update-index --add a b c d && echo git >a && cat "$TEST_DIRECTORY"/test4012.png >b && echo g...
Java
/* * Copyright (C) 2001-2004 by David Brownell * * 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 progra...
Java
/** * @file error.c Error functions * * purple * * Purple is the legal property of its developers, whose names are too numerous * to list here. Please refer to the COPYRIGHT file distributed with this * source distribution. * * This program is free software; you can redistribute it and/or modify * it under t...
Java
<?php class Zend_View_Helper_WebSectionTemplate extends Zend_View_Helper_Abstract { public function webSectionTemplate($area) { $html = ''; $html.= '<div class="row-fluid">'; $html.= '<div class="span12">'; $html.= '<div class="page-header">'; $html.= '<h1>Header Layout Default</h1>'; $ht...
Java
var EFA = { log: [], /* Prevent backspace being used as back button in infopath form in modal. Source: http://johnliu.net/blog/2012/3/27/infopath-disabling-backspace-key-in-browser-form.html grab a reference to the modal window object in SharePoint */ OpenPopUpPage: function( u...
Java
/* * arch/arm/include/asm/pgtable.h * * Copyright (C) 1995-2002 Russell King * * 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. */ #ifndef _ASMARM_PGTABLE_H #define _ASMARM_PG...
Java
""" Small event module ======================= """ import numpy as np import logging logger = logging.getLogger(__name__) from ...utils.decorators import face_lookup from ...geometry.sheet_geometry import SheetGeometry from ...topology.sheet_topology import cell_division from .actions import ( exchange, r...
Java
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Qt 4.3: mainwindow.cpp Example File (sql/masterdetail/mainwindow.cpp)</title> <link href="classic.css" r...
Java
/* * rtl_tcp_andro is a library that uses libusb and librtlsdr to * turn your Realtek RTL2832 based DVB dongle into a SDR receiver. * It independently implements the rtl-tcp API protocol for native Android usage. * Copyright (C) 2016 by Martin Marinov <martintzvetomirov@gmail.com> * * This program is free softwar...
Java