code
stringlengths
4
1.01M
language
stringclasses
2 values
<div id="detail_{{ object.id }}" class="detail box ui-draggable ui-droppable expanded expanded-padding"> <div class="box-header"> <div class="box-name ui-draggable-handle"> <i class="fa fa-fw fa-search"></i> <span>Details of subscription {{ object.name }}</span> </div> ...
Java
/********************************************************************* * Portions COPYRIGHT 2016 STMicroelectronics * * Portions SEGGER Microcontroller GmbH & Co. KG * * Solutions for real time microcontroller applications * ********************************...
Java
# -*- coding: utf-8 -*- """ 2020-09-07 Cornelius Kölbel <cornelius.koelbel@netknights.it> Add exception 2017-04-26 Friedrich Weber <friedrich.weber@netknights.it> Make it possible to check for correct LDAPS/STARTTLS settings 2017-01-08 Cornelius Kölbel <cornelius.koelbel@netknights.it> ...
Java
package storage import ( "fmt" "strings" "time" mgo "github.com/ilius/mgo" "github.com/ilius/mgo/bson" ) func ModifyIndexTTL(db mgo.Database, collection string, index mgo.Index) error { keyInfo, err := mgo.ParseIndexKey(index.Key) if err != nil { return err } expireAfterSeconds := int(index.ExpireAfter / ...
Java
/** * Copyright (C) 2000 - 2012 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...
Java
/* * Copyright (c) 2012 - 2020 Splice Machine, Inc. * * This file is part of Splice Machine. * Splice Machine 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, or (at your option) ...
Java
window.WebServiceClientTest = new Class( { Implements : [Events, JsTestClass, Options], Binds : ['onDocumentReady', 'onDocumentError'], options : { testMethods : [ { method : 'initialize_', isAsynchron : false }] }, constants : { }, initialize : function( options )...
Java
/* * JBILLING CONFIDENTIAL * _____________________ * * [2003] - [2012] Enterprise jBilling Software Ltd. * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Enterprise jBilling Software. * The intellectual and technical concepts contained * herein are proprie...
Java
.wm_language_place { display:none; } #demo_info .sprite { display:-moz-inline-box; display:inline-block; margin-right:6px; background-image:url(http://afterlogic.com/img/flags/langs.png); background-repeat:no-repeat; padding:1px 6px 1px 28px; } #demo_info a.sprite { color:#555; text-decoration:none; -moz-bord...
Java
/* * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * 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...
Java
/* * Created on 20/giu/2010 * * Copyright 2010 by Andrea Vacondio (andrea.vacondio@gmail.com). * * This file is part of the Sejda source code * * 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 Softwa...
Java
import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; module('Unit | Model | partner partnerclient plan', function(hooks) { setupTest(hooks); // Replace this with your real tests. test('it exists', function(assert) { let store = this.owner.lookup('service:store'); let model = st...
Java
eqauctions-trending =============== Early stages...let's see what becomes of this. ## What is it? This will be a place to read about trending items that are sold/located on http://ahungry.com/eqauctions/ for buying/selling on the http://project1999.org EverQuest classic emulation server. Don't forget to ```shell git...
Java
/* * Copyright (C) 2000 - 2016 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...
Java
/** * Copyright (C) 2000 - 2013 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 specia...
Java
package org.bimserver.database.query.literals; /****************************************************************************** * Copyright (C) 2009-2019 BIMserver.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * publi...
Java
<?php /********************************************************************************* * The contents of this file are subject to the SugarCRM Master Subscription * Agreement ("License") which can be viewed at * http://www.sugarcrm.com/crm/en/msa/master_subscription_agreement_11_April_2011.pdf * By installing or...
Java
<?php /** * Manager for Plus * * !! Most of Plus is handled via Discovery or Wire\Paywall !! */ namespace Minds\Core\Plus; use Minds\Core\Di\Di; use Minds\Core\Config; use Minds\Core\Data\ElasticSearch; use Minds\Core\Data\Cassandra; use Minds\Core\Wire\Paywall\PaywallEntityInterface; use Minds\Core\Rewards\Contri...
Java
# -*- coding: utf-8 -*- """ Models for Student Identity Verification This is where we put any models relating to establishing the real-life identity of a student over a period of time. Right now, the only models are the abstract `PhotoVerification`, and its one concrete implementation `SoftwareSecurePhotoVerification`...
Java
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
Java
OC.L10N.register( "files_external", { "Fetching request tokens failed. Verify that your app key and secret are correct." : "Ошибка получения токенов запроса. Проверьте корректность ключа и секрета приложения.", "Fetching access tokens failed. Verify that your app key and secret are correct." : "Ошибка п...
Java
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <!-- template designed by Marco Von Ballmoos --> <title>Docs For Class Zend_Uri</title> <...
Java
/* * This file is part of Kotaka, a mud library for DGD * http://github.com/shentino/kotaka * * Copyright (C) 2018, 2021 Raymond Jennings * * 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 Fo...
Java
/******** * This file is part of Ext.NET. * * Ext.NET 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. * ...
Java
package uploads import ( "context" "errors" "fmt" "io/ioutil" "os" "path/filepath" "regexp" "sync" "time" "github.com/go-kit/log/level" "github.com/prometheus/client_golang/prometheus" "github.com/grafana/loki/pkg/storage/chunk" "github.com/grafana/loki/pkg/storage/chunk/local" chunk_util "github.com/g...
Java
/* * SessionShiny.cpp * * 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 License....
Java
from django import forms # future use
Java
/** * Copyright (C) 2009-2014 BIMserver.org * * 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. * * This ...
Java
# frozen_string_literal: true require 'rails_helper' describe Api::LessonsController, type: :request do include RequestSpecUserSetup context 'is not logged in' do it 'can not create' do post '/api/lessons', {} expect(response.status).to eq 401 end context 'data exists' do let(:less...
Java
DELETE FROM database_variables WHERE name = 'database-schema-version';
Java
<?php if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); global $mod_strings; $module_menu = Array( Array("index.php?module=Teams&action=EditView&return_module=Teams&return_action=DetailView", $mod_strings['LNK_NEW_TEAM'], "CreateTeams"), Array("index.php?module=Teams&action=index", $mod_strin...
Java
<?php /** * sfGuardGroupUtf8 form. * * @package rrr * @subpackage form * @author Your name here * @version SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ class sfGuardGroupUtf8Form extends BasesfGuardGroupUtf8Form { /** * @see sfGuardGroupForm */ public f...
Java
///* // * Tanaguru - Automated webpage assessment // * Copyright (C) 2008-2017 Tanaguru.org // * // * 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 // * Lic...
Java
import { NPS } from './NPS' export default NPS
Java
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
Java
<?php /* @var $this AenderungsantraegeController */ /* @var $model Aenderungsantrag */ $this->breadcrumbs = array( Yii::t('app', 'Administration') => $this->createUrl('/admin/index'), $model->label(2) => array('index'), Yii::t('app', 'Create'), ); $this->menu = array( array('label' => $model->label...
Java
'use strict'; /** * @ngdoc directive * @name GO.Core.CustomFields.goCustomFieldsEdit * * @description * Prints custom fields form fieldsets. * * * @param {string} ngModel The customFields model property of the model the customFields belong to * @param {string} serverModel The custom fields server model. *...
Java
/* Copyright (C) 2017 Cloudbase Solutions SRL 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. This program is distribute...
Java
""" Block Depth Transformer """ from __future__ import absolute_import from openedx.core.djangoapps.content.block_structure.transformer import BlockStructureTransformer class BlockDepthTransformer(BlockStructureTransformer): """ Keep track of the depth of each block within the block structure. In case o...
Java
#!/usr/bin/env ruby # Exit codes: # 0 Test run successful (even with reruns) # 1 Unspecified error # 2 Linting failed # 4 No profile given # 8 Gettext isn't installed # 16 Gettext files did not validate # 32 Cucumber failed # 64 Rspec failed # TODO: Use Open4 to continuously flush STDOUT output from the ...
Java
# Copyright 2018 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import ast from odoo import api, exceptions, models, _ class MailComposeMessage(models.TransientModel): _inherit = 'mail.compose.message' @api.model def _get_priorities(self): """ Load priorities...
Java
<?php /** * @package Billing * @copyright Copyright (C) 2012-2016 BillRun Technologies Ltd. All rights reserved. * @license GNU Affero General Public License Version 3; see LICENSE.txt */ /** * This is a prototype for a services action. * */ abstract class Billrun_ActionManagers_Services_...
Java
#feedbackForm { width: 100%; } #feedbackForm label { width: 250px; } #feedbackForm label.error, #commentForm input.submit { margin-left: 253px; } input[type=text], input[type=password], select, textarea, .inputbox { padding: 3px 5px; font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 100%; border: 1px solid...
Java
<table mat-table *ngIf="dataSource" [dataSource]="dataSource" [trackBy]="tableTrackerFn" class="ya-data-table"> <ng-container matColumnDef="order"> <th mat-header-cell *matHeaderCellDef style="width: 1px">#</th> <td mat-cell *matCellDef="let queue"> {{ queue.order }} </t...
Java
DELETE FROM `landblock_instance` WHERE `landblock` = 0xA8E0; INSERT INTO `landblock_instance` (`guid`, `weenie_Class_Id`, `obj_Cell_Id`, `origin_X`, `origin_Y`, `origin_Z`, `angles_W`, `angles_X`, `angles_Y`, `angles_Z`, `is_Link_Child`, `last_Modified`) VALUES (0x7A8E0026, 30749, 0xA8E00108, 82.301, 85.604, 23.137, 0...
Java
'use strict' var config = {} config.facebook = { 'appID': '261938654297222', 'appSecret': 'cd8d0bf4ce75ae5e24be29970b79876f', 'callbackUrl': '/login/facebook/callback/' } config.server = { 'port': process.env.PORT || 3000, 'env': process.env.NODE_ENV || 'dev', 'dbUrl': process.env.MONGODB_URI || 'mongodb...
Java
/* * _ _ _ * | | | | | | * | | __ _| |__ ___ ___ __ _| |_ Labcoat (R) * | |/ _` | '_ \ / __/ _ \ / _` | __| Powerful development environment for Quirrel. * | | (_| | |_) | (_| (_) | (_| | |_ Copyright (C) 2010 - 2013...
Java
/* * Copyright 2013 Anton Tananaev (anton.tananaev@gmail.com) * * 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 b...
Java
<?php include_once("bqf_strings.php"); class bqf_unescape_stringTest extends PHPUnit_Framework_TestCase { public function testUnescape() { $tests = array( array("one", "one"), array('<a href="test">test</a>', '<a href="test">test</a>'), array(' with spaces ', ' with spaces '), array(' "quoted"', '...
Java
\hypertarget{structParticleSystem_1_1GravObj}{\section{Particle\-System\-:\-:Grav\-Obj Strukturreferenz} \label{structParticleSystem_1_1GravObj}\index{Particle\-System\-::\-Grav\-Obj@{Particle\-System\-::\-Grav\-Obj}} } {\ttfamily \#include $<$Particle\-System.\-h$>$} \subsection*{Öffentliche Attribute} \begin{DoxyC...
Java
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>Rgaa32016 Test.11.01.2 NA 03</title> ...
Java
# -*- encoding: utf-8 -*- ############################################################################## # # res_partner # Copyright (c) 2013 Codeback Software S.L. (http://codeback.es) # @author: Miguel García <miguel@codeback.es> # @author: Javier Fuentes <javier@codeback.es> # # This program is fr...
Java
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * 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/ * ...
Java
/** * Copyright (C) 2000 - 2013 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 specia...
Java
import React, { useState } from 'react'; import { connect, ConnectedProps } from 'react-redux'; import { TimeZone } from '@grafana/data'; import { CollapsableSection, Field, Input, RadioButtonGroup, TagsInput } from '@grafana/ui'; import { selectors } from '@grafana/e2e-selectors'; import { FolderPicker } from 'app/cor...
Java
# Copyright (c) 2016 Sebastian Kanis # This file is part of pi-led-control. # pi-led-control 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 ve...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_51) on Fri Mar 21 17:32:01 PDT 2014 --> <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> <title>com.java.chatroom.g...
Java
from pathlib import Path from inxs.cli import main as _main from tests import equal_documents def main(*args): _args = () for arg in args: if isinstance(arg, Path): _args += (str(arg),) else: _args += (arg,) _main(_args) # TODO case-study with this use-case def ...
Java
/** * Based conceptually on the _.extend() function in underscore.js ( see http://documentcloud.github.com/underscore/#extend for more details ) * Copyright (C) 2012 Kurt Milam - http://xioup.com | Source: https://gist.github.com/1868955 * * This program is free software: you can redistribute it and/or mo...
Java
package output; import java.io.FileWriter; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Collections; import javax.swing.JOptionPane; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Eleme...
Java
{-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-incomplete-patterns #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE UndecidableInstances #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE GeneralizedNewty...
Java
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings import django_pgjson.fields import django.utils.timezone import django.db.models.deletion import djorm_pgarray.fields import taiga.projects.history.models class Migration(migratio...
Java
<?php /*-------------------------------------------------------+ | PHP-Fusion Content Management System | Copyright (C) PHP-Fusion Inc | https://www.php-fusion.co.uk/ +--------------------------------------------------------+ | Filename: gallery_settings.php | Author: PHP-Fusion Development Team +----------------------...
Java
class Transfer < Entry state_machine :initial => :open, :namespace => :transfer do event :close do transition :paid => :closed end state :open, :value => 400 state :closed, :value => 430 end def required_account_types [BankAccount, CreditCard] end end
Java
#!/usr/bin/env python # Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra # # This file is part of Essentia # # Essentia 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 ...
Java
import CodeClipboard from './CodeClipboard'; export default CodeClipboard;
Java
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --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 2 of the License, --or (at your option) any later versio...
Java
<html> <head> <title>Frankenstein, 1831, Vol. 3, Chap. 1, Frame 2</title> </head> <body> <p> I <a href="../V3notes/trembled.html">trembled violently</a> at his exordium, and my father continued--</p><p> "I confess, my son, that I have always looked forward to your marriage with our dear Elizabeth as <a href=".....
Java
/* * $Id: CardCollectionDao.java 475 2005-12-08 23:44:08 -0800 (Thu, 08 Dec 2005) ivaynberg $ * $Revision: 475 $ * $Date: 2005-12-08 23:44:08 -0800 (Thu, 08 Dec 2005) $ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "L...
Java
/* * Copyright (C) 2011-2013 The Animo Project * http://animotron.org * * This file is part of Animotron. * * Animotron 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...
Java
<?php /* * This file is part of Kelinux-php. * Copyright (C) 2012 Carlos Garcia Gomez neorazorx@gmail.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 Software Foundation, either version 3 of the...
Java
// ----------> GENERATED FILE - DON'T TOUCH! <---------- // generator: ilarkesto.mda.legacy.generator.EntityGenerator package scrum.server.collaboration; import java.util.*; import ilarkesto.persistence.*; import ilarkesto.core.logging.Log; import ilarkesto.base.*; import ilarkesto.base.time.*; import ilark...
Java
const { Array } = require.main.require('./Tag/Classes'); class GetTag extends Array { constructor(client) { super(client, { name: 'get', args: [ { name: 'array' }, { name: 'index' } ], minArgs: 2, maxArgs: 2 }); } async execute(ctx, arg...
Java
/* =========================================================================== Return to Castle Wolfenstein multiplayer GPL Source Code Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. This file is part of the Return to Castle Wolfenstein multiplayer GPL Source Code (“RTCW MP Source Code”). RTCW ...
Java
/* This file is part of the Juju GUI, which lets users view and manage Juju environments within a graphical interface (https://launchpad.net/juju-gui). Copyright (C) 2012-2013 Canonical Ltd. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License...
Java
import React, { useMemo } from 'react'; import { cx, css } from '@emotion/css'; import { MenuItem, WithContextMenu, MenuGroup, useTheme2 } from '@grafana/ui'; import { SelectableValue, GrafanaTheme2 } from '@grafana/data'; import { Seg } from './Seg'; import { unwrap } from './unwrap'; import { toSelectableValue } from...
Java
/* * Asqatasun - Automated webpage assessment * Copyright (C) 2008-2019 Asqatasun.org * * 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 y...
Java
export const BattleAvatarNumbers = { 1: 'lucas', 2: 'dawn', 3: 'youngster-gen4', 4: 'lass-gen4dp', 5: 'camper', 6: 'picnicker', 7: 'bugcatcher', 8: 'aromalady', 9: 'twins-gen4dp', 10: 'hiker-gen4', 11: 'battlegirl-gen4', 12: 'fisherman-gen4', 13: 'cyclist-gen4', 14: 'cyclistf-gen4', 15: 'blackbelt-gen4dp...
Java
package nikita.common.config; /** * Constants used for ElasticSearch queries */ public class ESConstants { public static final String QUERY_SIZE = "size"; public static final String QUERY_FROM = "from"; public static final String QUERY_QUERY = "query"; public static final String QUERY_PREFIX = "pref...
Java
class Waypoint < ActiveRecord::Base belongs_to :open_capacity belongs_to :location, :validate => true, :dependent => :destroy end
Java
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>PODEMOS. Scientific and cultural cooperation with the United States to avoid a human capital flight</title> <meta property="og:title" content="PODEMOS: Scientific and cultural cooperation with the Uni...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>About Cella</title> <link rel="stylesheet" type="text/css" href="styles/bootstrap.css" /> <link rel="stylesheet" type="text/css" href="styles/chosen.css" /> <link rel="stylesheet" type="text/css" href="styles/jquery-ui/jquery-ui...
Java
# frozen_string_literal: true # == Schema Information # # Table name: packages # # id :integer not null, primary key # name :string(255) # initial_price :decimal(, ) # at_the_door_price :decimal(, ) # attendee_limit :integer # expires_at :dateti...
Java
# -*- coding: utf-8 -*- # Copyright 2016 Onestein (<http://www.onestein.eu>) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'OAuth2 Disable Login with Odoo.com', 'version': '10.0.1.0.0', 'category': 'Tools', 'author': 'Onestein', 'license': 'AGPL-3', 'depends': [...
Java
<?php return unserialize('a:1:{i:0;O:30:"Doctrine\\ORM\\Mapping\\OneToMany":6:{s:8:"mappedBy";s:9:"container";s:12:"targetEntity";s:7:"Element";s:7:"cascade";N;s:5:"fetch";s:4:"LAZY";s:13:"orphanRemoval";b:0;s:7:"indexBy";N;}}');
Java
public class Generic{ public static void main(String[] args){ Car <String> car1 = new Car <String> (); car1.setName("Buick"); car1.setPrice("100"); System.out.printf("name=%s,price=%s\n",car1.getName(),car1.getPrice()); Car <Integer> car2 = new Car <Integer> (); car2.setName(001); car2.setPrice(100); ...
Java
<?php /** * Created by iluxovi4 * Protected by SugarTalk.ru */ $dictionary['RealtyTemplates']['fields']['realtytemplates_contracts'] = array ( 'name' => 'realtytemplates_contracts', 'type' => 'link', 'relationship' => 'realtytemplates_contracts', 'source'=>'non-db', 'vname...
Java
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-11-22 07:11 from __future__ import unicode_literals from django.core.management.sql import emit_post_migrate_signal from django.db import migrations def add_executive_group(apps, schema_editor): # create group db_alias = schema_editor.connection.al...
Java
<div class="item dragHandle" data-bind="css: { 'unseen': !seen(), 'selected': selected(), 'checked': checked(), 'forwarded': forwarded(), 'answered': answered(), 'deleted': deleted() || threadHideAnimation(), 'nosubject': emptySubject(), 'threaded': threadPart(), 'show': threadShowAnimation() }"> <div clas...
Java
import * as React from 'react'; import renderOrder from '../renderOrder'; import { RenderLayer } from '../browser_utils/Utils'; import { SharedState } from '../citybound'; import { shadersForLandUses } from './stripedShaders'; import colors from '../colors'; export const LAND_USES = [ "Residential", "Commercia...
Java
<?php App::uses('AppController', 'Controller'); App::uses('Folder', 'Utility'); App::uses('File', 'Utility'); /** * Attributes Controller * * @property Attribute $Attribute */ class AttributesController extends AppController { public $components = array('Security', 'RequestHandler', 'Cidr'); public $paginate =...
Java
-- | This module provides the data type and parser for a trait file module Trait ( Trait(..) , defaultTrait , trait ) where import Maker import Modifier import Scoped(Label) data Trait = Trait { trait_name :: Label , agnatic :: Bool , birth :: Double -- ^ Chance of being assigned on birth. Default 0 ...
Java
// Protocol Buffers for Go with Gadgets // // Copyright (c) 2013, The GoGo Authors. All rights reserved. // http://github.com/gogo/protobuf // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributio...
Java
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. package api import ( "bufio" "io" "io/ioutil" "net/http" "os" "strconv" "strings" "time" l4g "github.com/alecthomas/log4go" "github.com/gorilla/mux" "github.com/mattermost/platform/einterfaces" "github...
Java
// (c) Copyright Fernando Luis Cacciola Carballal 2000-2004 // Use, modification, and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See library home page at http://www.boost.org/libs/numeric/conv...
Java
/* Copyright 2011-2012 Frederic Menou and others referred in AUTHORS file. This file is part of Magrit. Magrit 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 ...
Java
/** * BLOCK: blocks * * Registering a basic block with Gutenberg. * Simple block, renders and saves the same content without any interactivity. */ import "./editor.scss"; import "./style.scss"; import React from "react"; import Select from "react-select"; const { PanelBody, PanelRow, ServerSideRender, TextCon...
Java
<?php /** * @package WordPress * @subpackage Fast_Blog_Theme * @since Fast Blog 1.0 */ ?> <!-- Sidebar --> <ul id="sidebar" class="<?php fastblog_option('sidebar'); ?>"> <?php dynamic_sidebar('sidebar'); ?> </ul> <!-- // Sidebar -->
Java
# -*- coding: utf-8 -*- from openerp import models, fields class AccountBankStatementLine(models.Model): _inherit = "account.bank.statement.line" name = fields.Char( string='Memo', required=False, default="", )
Java
# -*- coding: utf-8 -*- # Etalage -- Open Data POIs portal # By: Emmanuel Raviart <eraviart@easter-eggs.com> # # Copyright (C) 2011, 2012 Easter-eggs # http://gitorious.org/infos-pratiques/etalage # # This file is part of Etalage. # # Etalage is free software; you can redistribute it and/or modify # it under the term...
Java