answer stringlengths 15 1.25M |
|---|
package com.dotmarketing.portlets.mailinglists.action;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import com.dotcms.repackage.portlet.javax.portlet.PortletConfig;
import com.dotcms.repackage.portlet.javax.portlet.RenderRequest... |
/* FIXME:
* This code does not fully handle the following cases:
* - when the watched directory does not yet exist
* - when the watched directory is later deleted
* In the event of the watched directory not yet existing, this code should
* watch the parent directory for its subsequent creation; if the pare... |
package org.obiba.mica.core.service;
import java.util.Arrays;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.stream.Collectors;
import javax.inject.Inject;
import javax.validation.constraints.NotNull;
import net.minidev.json.JSONArray;
import org.obiba.mica.core.doma... |
// This file is part of cancer.
// cancer is free software: you can redistribute it and/or modify
// (at your option) any later version.
// cancer is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
use libc::c_void;
pub struct GList {
pub data: *mut c... |
{% extends "base.html" %}
{% block content_title %}Cursos{% endblock %}
{% block box_title %}Detalhes Curso: <span class="label label-info">{{ object.pk }}</span>{% endblock %}
{% block box_body %}
<div class="page-header">
<a class="btn btn-large btn-default" title="Lista" href="{% url 'curso_home' %}"><i ... |
Bitrix 17.0.9 Business Demo = <API key> |
<?php /*%%SmartyHeaderCode:<API key>%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'<SHA1-like>' =>
array (
0 => '/var/www/html/admin240x2hjae/themes/default/template/page_header_toolbar.tpl',
1 => 15... |
// ResInsight is free software: you can redistribute it and/or modify
// (at your option) any later version.
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
// FITNESS FOR A PARTICULAR PURPOSE.
// for more details.
#pragma once
#include "RiaDefines.h"
#include <QString>
class <API ... |
#include <stdio.h>
#include <string>
#include <iostream>
#include <cppunit/TestCase.h>
#include <tulip/TulipPluginHeaders.h>
using namespace std;
class Test2 : public tlp::BooleanAlgorithm {
public:
PLUGININFORMATION("Test2","Jezequel","03/11/2004","0","1.0", "")
Test2(tlp::PluginContext* context) : tlp::BooleanAlg... |
#include <opm/parser/eclipse/EclipseState/Schedule/TimeMap.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/RFTConfig.hpp>
namespace Opm {
RFTConfig::RFTConfig(const TimeMap& time_map) :
tm(time_map)
{
}
bool RFTConfig::rft(const std::string& well_name, std::size_t report_step) const {
if (report_step >=... |
"""Test class for Custom Sync UI
:Requirement: Sync
:CaseAutomation: Automated
:CaseLevel: Acceptance
:CaseComponent: Repositories
:TestType: Functional
:CaseImportance: High
:Upstream: No
"""
from fauxfactory import gen_string
from nailgun import entities
from robottelo import manifests
from robottelo.api.utils import... |
<?php
$L['Alerts_Title'] = 'Allarmi personalizzati';
$L['Alerts_Description'] = 'Allarmi personalizzati da ${0}';
$L['Alerts_header'] = 'Allarmi personalizzati da ${0}';
$L['<API key>'] = 'Configura download automatico';
$L['Update_Alerts_label'] = 'Scarica allarmi personalizzati';
$L['Refresh_label'] = 'Download confi... |
// dependencies
define(['mvc/ui/ui-tabs', 'mvc/ui/ui-misc', 'mvc/ui/ui-portlet', 'utils/utils',
'plugin/models/chart', 'plugin/models/group',
'plugin/views/group', 'plugin/views/settings', 'plugin/views/types'],
function(Tabs, Ui, Portlet, Utils, Chart, Group, GroupView, SettingsView, TypesView) {
/... |
{% extends "jblux/base.html" %}
{% block title %}New Character{% endblock %}
{% block content %}
<form method="post" action="{% url jblux_django.jblux.views.new_character %}">
{% csrf_token %}
{% include "jblux/base_form.html" %}
<p><input type="submit" value="Create Character" /></p>
</form>
{% endblock %} |
#include "canvas.h"
Canvas::Canvas()
: Entity()
{
this->init(16);
}
Canvas::Canvas(int pixelsize)
: Entity()
{
this->init(pixelsize);
}
Canvas::~Canvas()
{
}
void Canvas::update(float deltaTime)
{
}
void Canvas::init(int pixelsize)
{
this->position = Point2(SWIDTH/2, SHEIGHT/2);
this->scale = Po... |
#!/usr/bin/env python
from keyring import get_password
from boto.iam.connection import IAMConnection
import lib.LoadBotoConfig as BotoConfig
from sys import exit
envs = ['dev', 'qa', 'staging', 'demo', 'prod']
for env in envs:
id = BotoConfig.config.get(env, 'aws_access_key_id')
key = get_password(BotoConfig.config... |
<?php
namespace App\Services\Geografico\ObterOsc;
use App\Services\BaseService;
use App\Dao\Geografico\GeolocalizacaoDao;
class Service extends BaseService{
public function executar(){
$conteudoRequisicao = $this->requisicao->getConteudo();
$modelo = new Model($conteudoRequisicao);
if($model... |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
// This Source Code Form is subject to the terms of the Mozilla
// with this file, You can obtain one at the mozilla.org home page
#ifndef <API key>
#define <API key>
#include "SkylineStorage.h"
#include "SkylineMatrixBase.h"
names... |
//cmdtypist: the main of cmdtypist
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<ctype.h>
#include <unistd.h>
//cmdtypist.c: Implementing the main
#include"<API key>.h"//function prototypes and global variables.
#include"display.h"//display fixing
#include"utils.h"//... |
package com.dank.festivalapp.lib;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
public class DataBaseHelper extends SQLiteOpenHelper{
//The Android's default system path of your... |
#ifndef WR_ACCESS_LOG_H_
#define WR_ACCESS_LOG_H_
#define WR_ACCESS_LOG_FILE "/var/log/webroar/access.log"
#define WR_REQ_USER_AGENT "HTTP_USER_AGENT"
#define WR_REQ_REFERER "HTTP_REFERER"
#include <wr_request.h>
int wr_access_log(wr_req_t*);
#endif /*WR_ACCESS_LOG_H_*/ |
// -*- Mode: Go; indent-tabs-mode: t -*-
package install
import (
"bytes"
"fmt"
"os/exec"
"strconv"
"strings"
"time"
"github.com/snapcore/snapd/gadget"
"github.com/snapcore/snapd/gadget/quantity"
"github.com/snapcore/snapd/logger"
"github.com/snapcore/snapd/osutil"
"github.co... |
-- PostgreSQL database dump
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET <API key> = on;
SET <API key> = false;
SET client_min_messages = warning;
-- Name: casts; Type: SCHEMA; Schema: -; Owner: -
CREATE SCHEMA casts;
SET search_path = casts, pg_catalog;
-- Name: _date_to_bigint(date); Type: FUNCTION; S... |
// File: <API key>.cc
#include "<API key>.hh"
#include "utils/Macros.hh"
#include "Formatter.hh"
namespace quarkdb {
// Indicate which revision we're referring to. When called multiple times
// for the same object, the given value MUST be the same.
void <API key>::setRevisionNumber(uint64_t rev) {
if(currentRevision ... |
package ems.server.protocol;
import ems.server.domain.Device;
import ems.server.domain.EventSeverity;
import ems.server.domain.EventType;
import ems.server.utils.EventHelper;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
public class <API key> implemen... |
<?php
require_once ('category.inc.php');
require_once ('lists.inc.php');
require_once ('dynamic_forms.php');
global $ad_tag_to_field_id;
global $ad_tag_to_search;
global $CACHE_ENABLED;
if ($CACHE_ENABLED=='YES') {
$dir = dirname(__FILE__);
$dir = preg_split ('%[/\\\]%', $dir);
$blank = array_pop($dir);
... |
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import tensorflow as tf
import numpy as np
plt.close('all')
emitX=12
alphaX=-10.
betaX=13.
gammaX=(1.+alphaX**2)/betaX
sigmaX=np.array([[betaX,-alphaX],[-alphaX,gammaX]])*emitX;
numPart=np.int32(1e5);
X=np.random.multivariate_normal([0.,0.],... |
<?php
theme()->render("2column-right", [
["Header", "top"],
["Post", "content"],
["Comments", "content"],
["SidebarRight", "right"],
["Footer", "bottom"]
]); |
package arkhados.spell.buffs.info;
import arkhados.controls.CRotation;
import arkhados.controls.CTrackLocation;
import arkhados.effects.BuffEffect;
import com.jme3.math.Vector3f;
import com.jme3.scene.Node;
import com.jme3.scene.Spatial;
public class MineralArmorInfo extends BuffInfo {
{
setIconPath("Interf... |
jQuery(document).ready(function(){
if( $('.cd-stretchy-nav').length > 0 ) {
var stretchyNavs = $('.cd-stretchy-nav');
stretchyNavs.each(function(){
var stretchyNav = $(this),
stretchyNavTrigger = stretchyNav.find('.cd-nav-trigger');
stretchyNavTrigger.on('clic... |
use strict;
use warnings;
package RPG::ResultSet::Election;
use base 'DBIx::Class::ResultSet';
use Carp;
sub schedule {
my $self = shift;
my $town = shift || croak "Town not supplied";
my $days = shift || croak "Number of days not supplied";
croak "Already have an election scheduled\n" if $town->current... |

#FEWD - Review, Process, and Debugging
Lesson 11 - Mar 14, 2016
"What was the hardest part of learning to code?
It’s learning to not let errors and complicated functions get you down. Everyone makes mistakes and it’s the process of debugging them that teaches you how t... |
#include "precomp.h"
#include "stdinc.h"
#include "io_sfen.h"
#include "commandpacket.h"
namespace godwhale {
const CommandPacket::CharSeparator CommandPacket::ms_separator(" ", "");
CommandPacket::CommandPacket(CommandType type)
: m_type(type), m_positionId(-1), m_position(false)
{
}
CommandPacket::CommandPacket(C... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using KSP;
namespace panelfar
{
public static class <API key>
{
//Take the raw part geometry and simplify it so that further simplification of the entire vessel is faster
public static <API k... |
# CMake generated Testfile for
# Source directory: /home/aviral/GNU-Niyantran/gr36/gr-blocks/include/blocks
# Build directory: /home/aviral/GNU-Niyantran/build/gr36/gr-blocks/include/blocks
# This file includes the relevent testing commands required for
# testing this directory and lists subdirectories to be tested as ... |
import threading
import asyncio
async def hello():
print('Hello world! (%s)' % threading.currentThread())
await asyncio.sleep(1)
print('Hello again! (%s)' % threading.currentThread())
loop = asyncio.get_event_loop()
tasks = [hello(), hello()]
loop.run_until_complete(asyncio.wait(tasks))
loop.close() |
#include <iostream>
#include <string>
class Shape {
public :
virtual void draw (void) = 0;
static Shape *Create (std::string type);
};
class circle : public Shape {
public :
void draw(void){
std::cout << "circle" << std::endl;
}
};
class square : public Shape {
pu... |
#include <assert.h>
#include <stdint.h>
#include <stdatomic.h>
#include <pthread.h>
atomic_int vars[5];
atomic_int atom_1_r1_1;
atomic_int atom_1_r13_0;
void *t0(void *arg){
label_1:;
<API key>(&vars[0], 1, <API key>);
<API key>(&vars[1], 1, <API key>);
return NULL;
}
void *t1(void *arg){
label_2:;
int v2_r1 = ... |
{% extends "allauth/account/base.html" %}
{% load i18n %}
{% block head_title %}{% trans "Set Password" %}{% endblock %}
{% block content %}
<h1>{% trans "Set Password" %}</h1>
<form method="POST" action="{% url '<API key>' %}" class="password_set">
{% csrf_token %}
{{ form.as_p }}
<inpu... |
#include "CAN.h"
#include "led.h"
#include "delay.h"
#include "usart.h"
u8 CAN_Mode_Init(u8 tsjw,u8 tbs2,u8 tbs1,u16 brp,u8 mode)
{
GPIO_InitTypeDef GPIO_InitStructure;
CAN_InitTypeDef CAN_InitStructure;
<API key> <API key>;
#if CAN_RX0_INT_ENABLE
NVIC_InitTypeDef NVIC_InitStructure;
#endif... |
#include "../../fl/defuzzifier/IntegralDefuzzifier.h"
namespace fl {
int IntegralDefuzzifier::_defaultResolution = 200;
void IntegralDefuzzifier::<API key>(int defaultResolution) {
_defaultResolution = defaultResolution;
}
int IntegralDefuzzifier::defaultResolution() {
return _defaultRes... |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif // HAVE_CONFIG_H
#include <CUnit/CUnit.h>
#include "mat.h"
int
main (int argc, const char *argv[])
{
int ret = 0;
lw6sys_context_t *sys_context = NULL;
int mode = 0;
LW6SYS_MAIN_BEGIN (sys_context);
lw6sys_log_clear (sys_context, NULL);
mode = <API key> (sys_c... |
"""
Tests are performed against <API key>.03.15.00.S.155-2.S-std.
"""
import unittest
from iosxe.iosxe import IOSXE
from iosxe.exceptions import AuthError
node = '172.16.92.134'
username = 'cisco'
password = 'cisco'
port = 55443
class TestIOSXE(unittest.TestCase):
def setUp(self):
self.xe = IOSXE(node=node,... |
//This program is free software: you can redistribute it and/or modify
//(at your option) any later version.
//This program is distributed in the hope that it will be useful,
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#ifndef APIQUERYRESULT_HPP
#define APIQUERYRESULT_HPP
#include "definitions.hpp"
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = versionTransform;
var _path2 = require('path');
var _path3 = <API key>(_path2);
function <API key>(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var packagePath = _path3.default.resolve(process.cwd(), './p... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/aja... |
from __future__ import absolute_import
from pywb.framework.wbrequestresponse import WbResponse, WbRequest
from pywb.framework.archivalrouter import ArchivalRouter
from six.moves.urllib.parse import urlsplit
import base64
import socket
import ssl
from io import BytesIO
from pywb.rewrite.url_rewriter import <API key>, Ur... |
CKEDITOR.plugins.setLang( 'image', 'eo', {
alertUrl: 'Bonvolu tajpi la retadreson de la bildo',
alt: 'Anstataŭiga Teksto',
border: 'Bordero',
btnUpload: 'Sendu al Servilo',
button2Img: 'Ĉu vi volas transformi la selektitan bildbutonon en simplan bildon?',
hSpace: 'Horizontala Spaco',
img2But... |
package aeminium.runtime.tools.benchmark;
public class RTBench {
private static Benchmark[] benchmarks = {
new <API key>(),
new <API key>(),
new LinearTaskGraph(),
new <API key>(),
new ChildTaskBenchmark(),
new FibonacciBenchmark()
};
public static void usage(... |
<h1><?php the_issuu_message('Document'); ?></h1>
<form action="" method="post" id="document-upload">
<input type="hidden" name="name" value="<?= $doc->name; ?>">
<table class="form-table">
<tbody>
<tr>
<th><label for="title"><?php the_issuu_message('Title'); ?></label></th>
... |
#include "component.h"
#include "entity.h"
namespace entity {
Component::Component(Entity* parent) : QObject(parent) {
if (parent != NULL) {
parent->addComponent(this);
}
}
}
uint qHash(entity::HashableComponent* key, uint seed) {
return key == 0 ? 0 : key->hash(seed);
} |
#include "fontforgeui.h"
#include "groups.h"
#include <unistd.h>
#include <ustring.h>
#include <utype.h>
#include <gkeysym.h>
#include <math.h>
#define COLOR_CHOOSE (-10)
static GTextInfo std_colors[] = {
{ (unichar_t *) N_("Select by Color"), NULL, 0, 0, (void *) COLOR_DEFAULT, NULL, 0, 1, 0, 0, 0, 0, 1, 0, 0, ... |
import java.util.List;
import java.util.LinkedList;
import java.util.ArrayList;
import java.util.Arrays;
import java.io.File;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.Scanner;
import java.io.IOException;
import java.io.<API key>;
import java.lang.<API key>;
import java.util.Collections... |
# -*- coding: utf-8 -*-
import os
from pygal import *
def listeEuler(f, x0, y0, pas, n):
x, y, L = x0, y0, []
for k in range(n):
L += [(x, y)]
x += pas
y += pas * f(x, y)
return L
def euler(f, x0, y0, xf, n):
pas = (xf - x0) / n
courbe = XY()
courbe.title = "Methode d Eul... |
vti_encoding:SR|utf8-nl
<API key>:TW|14 Aug 2014 12:39:17 -0000
vti_extenderversion:SR|12.0.0.0
vti_author:SR|Office-PC\\Rafael
vti_modifiedby:SR|Office-PC\\Rafael
vti_timecreated:TR|01 Nov 2014 09:09:36 -0000
vti_backlinkinfo:VX|
<API key>:TW|14 Aug 2014 12:39:17 -0000
vti_cacheddtm:TX|03 Nov 2015 21:05:11 -0000
vti_f... |
## Water Model construction
# Creates and constructs the model with all demands.
## `config` must be defined before loading this file!
include("world.jl")
include("weather.jl")
if get(config, "demandmodel", nothing) == "USGS"
include("WaterDemand.jl")
else
include("Thermoelectric.jl")
include("Livestock.jl"... |
// This program is free software: you can redistribute it and/or modify
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#include "cuisyntax.hpp"
#include <boost/spirit/include/qi_parse.hpp>
#includ... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_29) on Wed May 02 09:32:45 CEST 2012 -->
<TITLE>
Uses of Class zisko.multicastor.program.controller.ViewController.MessageTyp
</TITLE>
<META NAME="date" CONTENT="2012-05-02">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../... |
import {Injectable} from '@angular/core';
import {SnackBarService} from './snack-bar.service';
import {LangChangeEvent, TranslateService} from '@ngx-translate/core';
@Injectable({
providedIn: 'root'
})
export class <API key> {
/**
* @param snackBarService
* @param translateService
*/
constructor(private ... |
import { AccessToken, Project, User, UserFeatureFlag, UserRole } from '@dev/translatr-model';
import { map } from 'rxjs/operators';
// General
export const isAdmin = (user?: User): boolean => user !== undefined && user.role === UserRole.Admin;
// Users
export const <API key> = () => map(isAdmin);
export const <API key>... |
package Ashafix::I18N::eu;
use utf8;
use Mojo::Base 'Ashafix::I18N';
our %Lexicon = (
YES => 'BAI',
NO => 'EZ',
edit => 'aldatu',
del => 'ezabatu',
exit => 'Exit',
cancel => 'Cancel',
save => 'Save',
confirm => 'Ziur al zaude ezabatu nahi duzula?\n',
confirm_domain => 'Ziur al zaude domeinu honetako erregistro guztiak ... |
package com.bytezone.diskbrowser.nufx;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import com.bytezone.diskbrowser.prodos.write.DiskFullException;
import com.bytezone.diskbrowser.prodos.write.<API key>;
import com.bytezone.diskbro... |
package componentes;
import javax.swing.JTextField;
import javax.swing.text.AttributeSet;
import javax.swing.text.<API key>;
import javax.swing.text.PlainDocument;
public class JTextFieldPrazo extends PlainDocument {
private static final long serialVersionUID = -<API key>;
private int iMaxLength;
private JT... |
CREATE OR REPLACE VIEW clin_measurements.vwsystolicdiastolic AS
SELECT vwmeasurements.fk_patient,
vwpatients.wholename,
vwpatients.fk_person,
vwpatients.surname,
vwpatients.firstname,
vwpatients.title,
vwpatients.sex,
vwpatients.age_numeric,
vwpatients.fk_lu_active_status,
vwpatient... |
using System;
using System.IO;
using System.Linq;
namespace FocalLengthAnalyzer
{
public class Program
{
public void Main(string[] args)
{
if (args.Count()<1) {
Console.WriteLine("Please pass the path to the directory with jpeg files as the first argument.");
... |
#include <stdio.h>
#include <stdlib.h>
//#include <elf.h>
#define ELF_MAGIC 16
//#define MEM_ALLOC_H(ptr) ptr = (FILE *) malloc (sizeof(myElf32_Ehdr));
//#define MEM_ALLOC_S(ptr) ptr = (FILE *) malloc (sizeof(myElf32_Shdr));
#define VALIDATE(ptr) if (!(ptr)) {\
fprintf(stdout, "%s", "Returned NULL\n");\
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import argparse
import pprint
import proteindf_bridge as bridge
import logging
import logging.config
def <API key>(frame_molecule, selected_molecule):
# calc the rest
selector = bridge.Select_AtomGroup(selected_molecule)
selected = frame_molecule.selec... |
package se.vidstige.jadb;
import se.vidstige.jadb.managers.Bash;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
public class JadbDevice {
public enum State {
Unknown,
Offline,
Device,
Recovery,
BootLoader
};
private final String serial;
priva... |
import RPi.GPIO as GPIO
KnockPin = 11
LedPin = 12
Led_status = 1
def setup():
GPIO.setmode(GPIO.BOARD) # Numbers GPIOs by physical location
GPIO.setup(LedPin, GPIO.OUT) # Set LedPin's mode is output
GPIO.setup(KnockPin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.output(LedPin, GPIO.HIGH) # Set LedP... |
package org.icgc.dcc.submission.server.repository;
import static org.icgc.dcc.submission.core.model.QUser.user;
import java.util.List;
import org.icgc.dcc.submission.core.model.QUser;
import org.icgc.dcc.submission.core.model.User;
import org.mongodb.morphia.Datastore;
import org.mongodb.morphia.Morphia;
import org.spr... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# This file is free software; you can redistribute it and/or modify
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
# This file is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ... |
package Code.Domain;
/**
*
* @author Andres Orduz Grimaldo
*/
public class Jornada {
private int id;
private String nombre;
private TipoJornada tipoJornada;
private Anio anio;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public Stri... |
<?php
namespace <API key>\AlgoliaSearch;
use Exception;
class ClientContext
{
/**
* @var string
*/
public $applicationID;
/**
* @var string
*/
public $apiKey;
/**
* @var array
*/
public $readHostsArray;
/**
* @var array
*/
public $writeHostsArray;
... |
<?php
/* @var $this yii\web\View */
use yii\data\ActiveDataProvider;
use yii\widgets\ListView;
/* @var $books array */
/* @var $book \app\models\Books */
/* @var $booksPhotos \app\models\BooksPhotos */
/* @var $booksDataProvider ActiveDataProvider */
/* @var $<API key> ActiveDataProvider */
$this->title = Yii::t('seo',... |
function drawChart(len){
var box = document.createElement('div');
box.setAttribute('style','width:500px;height:500px;border:1px solid black;display:flex;flex-direction:column');
for(var i=0; i<len; i++){
var row = document.createElement('div');
if(i<len-1){
row.setAttribute('style','bor... |
package com.tage.rpgutil.client.gui;
import net.minecraftforge.client.event.<API key>;
import cpw.mods.fml.common.eventhandler.Cancelable;
import cpw.mods.fml.common.eventhandler.Event;
import cpw.mods.fml.common.eventhandler.EventPriority;
@Cancelable
public class GuiHealth extends Event
{
public static enum Eleme... |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Reflection;
using System.Xml;
using log4net;
using System.ComponentModel;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using common;
using jm726.lib.wrapper;
using jm726.lib.wrapper.logger;
namespace jm726.lib.wrapper... |
#ifndef <API key>
#define <API key>
// Qt include.
#include <Qt3DCore/QEntity>
// C++ include.
#include <memory>
QT_BEGIN_NAMESPACE
namespace Qt3DRender {
class QCamera;
}
QT_END_NAMESPACE
// CameraController
class <API key>;
class CameraController Q_DECL_FINAL
: public Qt3DCore::QEntity
{
Q_OBJECT
publi... |
.ui-multiselect { padding:4px 2px 4px 4px; text-align:left }
.ui-multiselect span.ui-icon { float:right }
.<API key> .<API key> input { left:-9999px; position:absolute !important; top: auto !important; }
.<API key> .<API key> label { padding:5px !important }
.<API key> { margin-bottom:3px; padding:3px 0 3px 4px; }
.<AP... |
/* eslint-disable no-self-assign */
import Game from '../../../../gui/html/js/game';
import { Plugin } from '../../../../gui/html/js/plugin';
import Translator from '../../../../gui/html/js/translator';
jest.mock('../../../../gui/html/js/dom');
jest.mock('../../../../gui/html/js/filters');
describe('Game', () => {
co... |
# == Schema Information
# Table name: causes
# id :integer not null, primary key
# name :string not null
# description :string
# image_id :integer
# created_at :datetime not null
# updated_at :datetime not null
require 'rails_helper'
RSpec.describe Cause, ty... |
<?php
/**
* The template part for displaying single archive from hospital posts
*
* @package <API key>
*
*
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( sprintf( '<h2 class="<API key>"><a href="%s" rel="bookmark">', esc_url( get_pe... |
// simplewall
#pragma once
#include "routine.h"
#include <winsock2.h>
#include <ws2ipdef.h>
#include <ws2tcpip.h>
#include <windns.h>
#include <mstcpip.h>
#include <iphlpapi.h>
#include <aclapi.h>
#include <dbt.h>
#include <fwpmu.h>
#include <mmsystem.h>
#include <netfw.h>
#include <shlguid.h>
#include <shobjidl.h>
#in... |
\section{\-Getopt \-Class \-Reference}
\label{interface_getopt}\index{\-Getopt@{\-Getopt}}
{\ttfamily \#import $<$\-Getopt.\-h$>$}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item
(void) -\/ {\bf init\-Getopt\-:}
\item
(\-B\-O\-O\-L) -\/ {\bf response\-Is\-Valid}
\item
(\-N\-S\-String $\ast$... |
#!/usr/bin/env python
# distributed with this source distribution.
# This file is part of GNUHAWK.
# GNUHAWK is free software: you can redistribute it and/or modify is under the
# version.
# GNUHAWK is distributed in the hope that it will be useful, but WITHOUT ANY
import unittest
import ossie.utils.testing
import os
f... |
#ifndef UI_ADDECGDIALOG_H
#define UI_ADDECGDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/... |
#include "trayicon.h"
#include <QApplication>
#include <QMenu>
#include <QTimer>
#include <conf/addressgroup.h>
#include <conf/appgroup.h>
#include <conf/confmanager.h>
#include <conf/firewallconf.h>
#include <form/controls/mainwindow.h>
#include <fortsettings.h>
#include <manager/hotkeymanager.h>
#include <manager/win... |
package at.ltd.tools.fw.peer2peerFirewall.backend.entities.comparator;
@FunctionalInterface
public interface ComparatorLambda<T> {
int comp(T t1, T t2);
} |
// Obdi - a REST interface and GUI for deploying software
// This program is free software: you can redistribute it and/or modify
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
package main
import... |
package com.shumz.think.ex004;
public class ExFour03 {
public ExFour03() {
System.out.println("An instance of ExFour03 was created...");
}
public static void main(String[] args) {
new ExFour03();
}
} |
#include <assert.h>
#include <stdint.h>
#include <stdatomic.h>
#include <pthread.h>
atomic_int vars[5];
atomic_int atom_1_r1_1;
void *t0(void *arg){
label_1:;
<API key>(&vars[0], 2, <API key>);
<API key>(&vars[1], 1, <API key>);
return NULL;
}
void *t1(void *arg){
label_2:;
int v2_r1 = <API key>(&vars[1], <API ... |
package TFC.Handlers.Client;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.client.event.<API key>;
import net.minecraftforge.client.event.<API key>.Elem... |
namespace ContaLibre.Areas.HelpPage.ModelDescriptions
{
public class <API key>
{
public string Documentation { get; set; }
public string Name { get; set; }
public string Value { get; set; }
}
} |
var path = require('path')
module.exports = {
// Webpack aliases
aliases: {
quasar: path.resolve(__dirname, '../node_modules/quasar-framework/'),
src: path.resolve(__dirname, '../src'),
assets: path.resolve(__dirname, '../src/assets'),
components: path.resolve(__dirname, '../src/components')
},
... |
// This file is part of the aMule Project.
// Any parts of this program derived from the xMule, lMule or eMule project,
// respective authors.
// This program is free software; you can redistribute it and/or modify
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,... |
/*
* An Abstract communicator interface which implements listeners.
*/
package com.willwinder.<API key>;
import com.willwinder.<API key>.i18n.Localization;
import com.willwinder.<API key>.listeners.<API key>;
import com.willwinder.<API key>.types.GcodeCommand;
import java.io.IOException;
import java.util.ArrayList;
/... |
import React from 'react'
import ManualLink from 'browser-components/ManualLink'
const title = 'FOREACH'
const subtitle = 'Operate on a collection'
const category = 'cypherHelp'
const content = (
<>
<p>
The <code>FOREACH</code> clause is used to update data within a collection
whether components of a ... |
#include "queuemodel.h"
#include "queue.h"
namespace unplayer
{
QVariant QueueModel::data(const QModelIndex& index, int role) const
{
if (!mQueue || !index.isValid()) {
return QVariant();
}
const QueueTrack* track = mQueue->tracks()[static_cast<size_t>(index.row())].get();
... |
<div class="main-title">15, Sunday <span>2016</span>
</div>
<ul class="stage clearfix">
<a class="calendar-history poster tasklist-green">
<div class="max-constrain">
<div class="first-20">
<div class="cal-from"><strong>20:15 <small>GMT</small></strong></div>
<div... |
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
def ImportGames():
games = list()
user_games = dict()
with open('C:\\Users\\Diogo\\Documents\\Monografia FIA\\UserGamesCleansed.txt', 'r', encoding = 'utf-8') as lines:
next(lines) # Skiping headers
for ln in lines:
user, board_game... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.