text stringlengths 3 1.05M |
|---|
export class PageObject_Welcome {
constructor() {
}
getGreeting() {
return element(by.tagName('h2')).getText();
}
setFirstname(value) {
return element(by.valueBind('firstName')).clear().sendKeys(value);
}
setLastname(value) {
return element(by.valueBind('lastName... |
<!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">
<!-- Mirrored from agilescrumsolutions.com/SCRUM_admin-v2.0/email_templates/alert.html by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 24 Apr 2015 10:57... |
package com.stratio.connector.decision.core.engine.query.queryexecutor;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.stratio.connector.commons.connection.Connection;
import com.stratio.connector.commons.util.ColumnTypeHelper;
import com.stratio.connector.decision.core.... |
<?php
namespace MwBundle\Service;
use AppBundle\Entity\Vrijwilliger as AppVrijwilliger;
use AppBundle\Filter\FilterInterface;
use AppBundle\Service\AbstractDao;
use MwBundle\Entity\Vrijwilliger;
class VrijwilligerDao extends AbstractDao implements VrijwilligerDaoInterface
{
protected $paginationOptions = [
... |
package storage
import (
"errors"
"fmt"
"io"
"net/mail"
"time"
"github.com/inbucket/inbucket/pkg/config"
)
var (
// ErrNotExist indicates the requested message does not exist.
ErrNotExist = errors.New("message does not exist")
// ErrNotWritable indicates the message is closed; no longer writable
ErrNotWri... |
[pyworkflow](http://github.com/pyworkflow/pyworkflow) supports the easy implementation of workflows, and handling the
execution of workflow processes, across multiple backends. This is the
backend for pyworkflow that supports [blinker](http://pythonhosted.org/blinker/) signals.
## Usage
BlinkerBackend wraps around an... |
package org.jcrom.jackrabbit;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNotSame;
import java.util.Date;
import java.util.UUID;
import javax.jcr.Node;
import javax.jcr.RepositoryException;
import javax.jcr.Value;
imp... |
start_test Accept bad query params and headers
# The examples page should have this EXPECTED_EXAMPLES_TEXT on it.
EXPECTED_EXAMPLES_TEXT="PageSpeed Examples Directory"
OUT=$(wget -O - $EXAMPLE_ROOT)
check_from "$OUT" fgrep -q "$EXPECTED_EXAMPLES_TEXT"
# It should still be there with bad query params.
OUT=$(wget -O - ... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa_IR" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About PeoplesReserve</source>
<translation>?? ???? ????????</translatio... |
using Microsoft.AspNet.Mvc;
namespace EventSourced.Net.Web
{
public class ServerRenderedAppViewResult : ViewResult
{
public ServerRenderedAppViewResult(Controller controller, string pageTitle, ReduxServerRenderState model = null)
{
controller.ViewData["Title"] = pageTitle;
model = model ?? new... |
package V2.UI.NonFrameElements;
import V2.DataBaseInteractions.DataBaseObjekts.DataBaseElementObject;
import javax.swing.*;
import java.awt.*;
import java.sql.SQLException;
/**
* Created by Aaron on 05.02.2018.
*/
public class Row {
JTextField [] displayElements;
JButton btnDeleteEntry;
DataBaseEleme... |
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="CoreNLP-to-HTML.xsl" type="text/xsl"?>
<root>
<document>
<sentences>
<sentence id="1">
<tokens>
<token id="1">
<word>If</word>
<lemma>if</lemma>
<CharacterOffsetBegin>3</CharacterOffsetBegin>
... |
/*global angular */
var module = angular.module('less', []);
module.factory('$lessFileManager', ['$window', '$q', '$http', '$templateCache',
function($window, $q, $http, $templateCache) {
var AbstractFileManager = require("less/lib/less/environment/abstract-file-manager.js");
var fm = new AbstractFileManager(... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_13) on Sun Jun 29 16:47:09 MSD 2008 -->
<TITLE>
Uses of Class org.apache.poi.hslf.model.Fill (POI API Documentation)
</TITLE>
<LINK REL =... |
"""
Text manipulation and analysis API.
"""
|
import sys
import queue as q
import binary_tree as bt
def print_tree(root):
queue = q.Queue()
queue.enqueue(root)
current_level = 1
next_level = 0
while not queue.is_empty():
n = queue.dequeue()
sys.stdout.write(str(n.data))
current_level -= 1
for i in [n.left, n.right]:
if i is not ... |
#pragma once
#include <aws/ram/RAM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/ram/model/ResourceShareAssociationType.h>
#include <aws/ram/model/ResourceShareAssociationStatus.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>euler-formula: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... |
<?php
namespace Drupal\field_example\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FormatterBase;
use Drupal\Core\Field\FieldItemListInterface;
/**
* Plugin implementation of the 'field_example_simple_text' formatter.
*
* @FieldFormatter(
* id = "field_example_simple_text",
* module = "field_example",
... |
(function() {
$('.field.password input').each(function() {
$(this).attr('placeholder', $(this).attr('data-placeholder'));
});
})() |
aws-release-notes-rss
=====================
Scrape the AWS service release notes and spit out an RSS feed.
Point your newsreader here: https://dyn.tedder.me/rss/aws-release-notes.xml
```
pip3 install PyRSS2Gen requests boto3
```
|
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email',... |
import {Routes} from "@angular/router";
import {MessageComponent} from "./imageprocess/messages.component";
export const routes: Routes = [
{
path: '', component: MessageComponent
}
];
|
class RdbColumn
attr_accessor :board
attr_reader :name, :options, :id, :board, :statuses
def initialize(id, name, statuses, options = {})
@id = id.to_s
@name = name
@statuses = statuses.is_a?(Array) ? statuses : [statuses]
@options = options
end
def scope(issue_scope)
issue_sc... |
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/fb.h>
#include <drm/drmP.h>
#include <drm/drm_crtc.h>
#include <drm/drm_crtc_helper.h>
#include <drm/radeon_drm.h>
#include "radeon.h"
#include <drm/drm_fb_helper.h>
#include <linux/vga_switcheroo.h>
/* object hierarchy -
this contains a helper +... |
#if !BESTHTTP_DISABLE_SIGNALR
using System;
using System.Text;
using System.Collections.Generic;
using BestHTTP.Extensions;
using BestHTTP.SignalR.Hubs;
using BestHTTP.SignalR.Messages;
using BestHTTP.SignalR.Transports;
using BestHTTP.SignalR.JsonEncoders;
using BestHTTP.SignalR.Authentication;
namesp... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>maths: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
package org.apache.isis.core.metamodel.services.metamodel;
import org.apache.isis.applib.annotation.DomainService;
import org.apache.isis.applib.annotation.NatureOfService;
import org.apache.isis.applib.annotation.Programmatic;
import org.apache.isis.applib.services.metamodel.MetaModelService;
import org.apache.isis.... |
<?php
/**
* Base class for Spools (implements time and message limits).
* @package Swift
* @author Fabien Potencier
*/
abstract class Swift_ConfigurableSpool implements Swift_Spool {
/** The maximum number of messages to send per flush */
private $_message_limit;
/** The time limit per flush */
private $_t... |
from __future__ import unicode_literals
from unittest import skipIf
try:
from urllib import parse as urlparse
except ImportError:
import urlparse # Python 2
from distutils.version import StrictVersion
import django
from django.forms.models import modelform_factory
from django.test import TestCase
from django... |
package gov.nih.nci.caintegrator.web;
import gov.nih.nci.caintegrator.application.analysis.heatmap.HeatmapParameters;
import gov.nih.nci.caintegrator.application.analysis.igv.IGVParameters;
import gov.nih.nci.caintegrator.application.study.Status;
import gov.nih.nci.caintegrator.application.study.StudyConfiguration... |
"""Support for Ambient Weather Station Service."""
import asyncio
import logging
from aioambient import Client
from aioambient.errors import WebsocketError
import voluptuous as vol
from homeassistant.components.binary_sensor import DEVICE_CLASS_CONNECTIVITY
from homeassistant.config_entries import SOURCE_IMPORT
from ... |
package com.experiments.core;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
... |
package br.tiagohm.markdownview.ext.mark;
import com.vladsch.flexmark.Extension;
import com.vladsch.flexmark.html.HtmlRenderer;
import com.vladsch.flexmark.html.renderer.NodeRenderer;
import com.vladsch.flexmark.html.renderer.NodeRendererFactory;
import com.vladsch.flexmark.parser.Parser;
import com.vladsch.flexmark.u... |
OwaViewer
=========
OwaViewer is an utility like qmlscene to simulate environment for running OwaNEXT application. It aims to make developer to run QML application and OwaNEXT application without installing Qt SDK.
Usage
-
You can use OwaViewer to open specific QML file to run directly:
```
OwaViewer /home/user/yo... |
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
namespace ColorPicker
{
internal class ValueBox : Grid
{
#region Variables
private int _value;
private int _maximum;
private double _step;
... |
package de.uni.freiburg.iig.telematik.sewol.context.process;
import de.invation.code.toval.debug.SimpleDebugger;
import de.invation.code.toval.misc.soabase.AbstractSOABaseContainer;
import de.invation.code.toval.properties.PropertyException;
import de.invation.code.toval.validate.Validate;
import de.uni.freiburg.iig.t... |
package Asn_2;
// Name: Zaid Kaleem
// ID: 103619897
// Lab 2 | Part 1 - Problem 1
import javax.swing.JOptionPane; // Took this statement out of the class definition
public class Arithmetic {
public static void main( String args [] )
{
String firstNumber, secondNumber, thirdNumber;
int num1... |
<?php
namespace app\models;
use Yii;
use app\models\general\GeneralLabel;
/**
* This is the model class for table "tbl_bantuan_penganjuran_kursus_pegawai_teknikal_disertai".
*
* @property integer $bantuan_penganjuran_kursus_pegawai_teknikal_disertai_id
* @property integer $bantuan_penganjuran_kursus_pegawai_tek... |
from __future__ import absolute_import, division, print_function
import functools
import six
from django.conf import settings
from rest_framework.exceptions import PermissionDenied
from rest_framework.response import Response
from sentry import features
from sentry.api.bases import OrganizationEventsEndpointBase, O... |
using System;
using System.IO;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
using System.Xml.Serialization;
using DNP3Adapters;
using GSF.IO;
using GSF.Reflection;
namespace DNP3ConfigGenerator
{
class Program
{
static void Main()
{
// Create a ne... |
<?php
namespace Mastercard\services\MoneySend\domain;
class TransferReversal {
private $RequestId;
private $OriginalRequestId;
private $TransactionReference;
private $TransactionHistory;
/**
* @param mixed $OriginalRequestId
*/
public function setOriginalRequestId($OriginalRequestI... |
import os, sys, re, time, hashlib, random
sys.path.append(".")
sys.path.append("./scripts")
import har_extractor
import conf
import re
from urllib.request import urlopen
from mitmproxy.script import concurrent
from mitmproxy.http import HTTPResponse
from mitmproxy.net.http.headers import Headers
from mitmproxy import c... |
const ABRIL_CODE = `
document.querySelectorAll('.callpaywall')
.forEach(x => x.remove());
document.querySelectorAll('.content-blocked')
.forEach(x => x.classList.remove('content-blocked'))
`;
const INJECTION = {
diariodaregiao: {
url: /diariodaregiao\.com\.br/,
code: `
document.getElementsB... |
//using Newtonsoft.Json;
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//namespace AliExpressSDK
//{
// public class FreightSetting
// {
// [JsonProperty("freightSettingList")]
// public Model.AeopFreightSetting[] FreightSettingList { get; set; }
//... |
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class LoadLevel : MonoBehaviour {
public string sceneName;
public void load () {
SceneManager.LoadScene (sceneName);
}
} |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base data-ice="baseUrl" href="../../../../">
<title data-ice="title">ColumnComponent | formiojs</title>
<link type="text/css" rel="stylesheet" href="css/style.css">
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
<script src="scr... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using AutoMapper.Mappers;
using Microsoft.Practices.Unity;
namespace AutoMapper.Unity
{
public static class ContainerMapperExtensions
{
private static IUnityContainer RegisterMappingProfile(IUnityContainer c... |
import _ from 'lodash';
import sinon from 'auto-release-sinon';
import FixturesStubbedLogstashIndexPatternProvider from 'fixtures/stubbed_logstash_index_pattern';
export default function (Private, Promise) {
const indexPatterns = Private(FixturesStubbedLogstashIndexPatternProvider);
const getIndexPatternStub = sin... |
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRODUCTS_DIR}... |
title: Using DBus from Javascript in Cockpit
date: '2014-11-13'
category: tutorial
tags: cockpit linux
slug: using-dbus-from-javascript-in-cockpit
---
*Note: This post has been updated for changes in Cockpit 0.90 and later.*
{:.note}
[Cockpit is a user interface for servers](https://cockpit-project.org). As we covere... |
#ifndef __c25_HIL_model_h__
#define __c25_HIL_model_h__
/* Include files */
#include "sfc_sf.h"
#include "sfc_mex.h"
#include "rtwtypes.h"
/* Type Definitions */
#ifndef typedef_c25_ResolvedFunctionInfo
#define typedef_c25_ResolvedFunctionInfo
typedef struct {
const char * context;
const char * name;
const cha... |
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>org.scalatest.matchers.Matchers.DoublePlusOrMinusWrapper</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />... |
//
// GoodDeThirdTableViewCell.h
// 家长界
//
// Created by taylor on 2016/12/14.
// Copyright © 2016年 西部家联. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface GoodDeThirdTableViewCell : UITableViewCell
/***/
@property (strong,nonatomic) UILabel *titleLabel;
@end
|
<?php
namespace Omnipay\AuthorizeNet\Message;
/**
* Create Request to get customer profile
*/
class CIMGetProfileRequest extends CIMAbstractRequest
{
protected $requestType = 'getCustomerProfileRequest';
public function getData()
{
$this->validate('customerProfileId');
$data = $this->g... |
> *A project brought to you by [Agisilaos Tsaraboulidis](https://twitter.com/agisilaosts)*
Iconinator is a Sketch plugin that provides a means to generate a set of App icons for iOS.
:package: [Download Plugin (.zip)](https://github.com/agisilaos/Iconinator-for-Sketch/releases/tag/1.0.0) | :star: [Changelog](https://... |
@interface TMDHeadingTests : XCTestCase
@property (nonatomic, strong) TMDHeading *h;
@end
@implementation TMDHeadingTests
- (void)setUp {
[super setUp];
[self setH:[[TMDHeading alloc] init]];
}
- (void)tearDown {
[super tearDown];
[self setH:nil];
}
- (void)testRegex {
NSRegularExpression *re = [self.h... |
select 1 as id
union all
select * from {{ ref('node_0') }}
union all
select * from {{ ref('node_3') }}
union all
select * from {{ ref('node_6') }}
union all
select * from {{ ref('node_8') }}
union all
select * from {{ ref('node_10') }}
union all
select * from {{ ref('node_109') }}
union all
select * from {{ ref('node_1... |
package org.terasology.rendering.dag.stateChanges;
import com.google.common.base.Objects;
import org.terasology.rendering.cameras.Camera;
import org.terasology.rendering.dag.RenderPipelineTask;
import org.terasology.rendering.dag.StateChange;
import org.terasology.rendering.dag.tasks.LookThroughDefaultCameraTask;
imp... |
import pytest
import json
from mock import patch, Mock
from name.models import (
Name,
Note,
Variant,
BaseTicketing,
Location,
Identifier_Type,
Identifier)
class TestIdentifier_Type:
def test_has_unicode_method(self):
label = "Test Label"
identifer = Identifier_Type(lab... |
hibernate example
|
namespace com.joanzapata.iconify.sample
{
using Activity = android.app.Activity;
using Context = android.content.Context;
using PagerAdapter = android.support.v4.view.PagerAdapter;
using GridLayoutManager = android.support.v7.widget.GridLayoutManager;
using RecyclerView = android.support.v7.widget.RecyclerView;
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>demos: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
/**
* Spring Messaging Event Hubs listener implementation.
*/
package com.azure.spring.messaging.eventhubs.core.listener;
|
$(document).on('page:change', function() {
$('#cart-items').on('ajax:success', function() {
$(this).hide();
})
})
|
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
package org.apache.harmony.vm.test.lazyresolution.data;
public interface LazyInterface4 extends LazyInterface2, LazyInterface3 {
public static int intStaticField=Integer.parseInt("14");
void interfaceCall4();
} |
import * as net from 'net';
/**
* Given a start point and a max number of retries, will find a port that
* is openable. Will return 0 in case no free port can be found.
*/
export function findFreePort(startPort: number, giveUpAfter: number, timeout: number, stride = 1): Promise<number> {
let done = false;
retu... |
#pragma once
#include <functional>
#include "shared/refcnt.h"
namespace ondra_shared {
class Worker;
}
namespace simpleServer {
using ondra_shared::RefCntObj;
using ondra_shared::RefCntPtr;
using ondra_shared::Worker;
class AsyncResource;
enum AsyncState {
///asynchronous operation completted successfuly
as... |
package replicant.sample2;
import replicant.*;
import static replicant.Replicant.*;
public class MockWidgetPainter implements WidgetPainter {
public MockWidgetPainter(ExpectationEnforcer expectationEnforcer) {
paint = voidMethodMocker(this, "paint").
mappingResponses().
enforcingExpectationsWith(ex... |
no
##test clone branch
|
package org.caboto.security.spring;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ResIterator;
import com.hp.hpl.jena.rdf.model.Resource;
import org.caboto.security.GateKeeper;
import org.springframework.aop.AfterReturningAdvice;
import java.lang.reflect.Method;
import org.springframework.... |
using Nethereum.JsonRpc.Client;
using Nethereum.RPC.Infrastructure;
using Newtonsoft.Json.Linq;
namespace Nethereum.Parity.RPC.Accounts
{
/// <Summary>
/// parity_hardwareAccountsInfo
/// Provides metadata for attached hardware wallets
/// Parameters
/// None
/// Returns
... |
package com.deleidos.rtws.webapp.repository.sync.model;
import com.deleidos.rtws.commons.config.RtwsConfig;
import com.deleidos.rtws.commons.config.UserDataProperties;
import com.deleidos.rtws.commons.exception.InvalidParameterException;
import com.deleidos.rtws.commons.util.repository.RepositoryType;
import com.dele... |
module Sequel
# The SQL module holds classes whose instances represent SQL fragments.
# It also holds modules that are included in core ruby classes that
# make Sequel a friendly DSL.
module SQL
### Parent Classes ###
# Classes/Modules aren't an alphabetical order due to the fact that
# some refere... |
<?php
namespace Cipen\ObraSocialBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://sy... |
importScripts("./support.js");
var db = openDBSync();
db.transaction(function(t) {
try {
t.executeSql("INSERT INTO test_table VALUES (1, 'text 1', 0.1)");
t.executeSql("INSERT INTO test_table VALUES (1, 'text 1', 0.1)");
postMessage("No SQLException be thrown");
... |
// Template Source: BaseMethodParameterSet.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// -------------------------------... |
<?php
require_once('lib/bootstrap.php');
class VTest extends PHPUnit_Framework_TestCase {
public function testMatch() {
$value = 'super-09';
$this->assertTrue(v::match($value, '/[a-z0-9-]+/i'));
$value = '#1asklajd.12jaxax';
$this->assertFalse(v::match($value, '/^[a-z0-9-]+$/i'));
}
pub... |
'use strict'
/* global describe it is */
var Load = require('../lighter-load')
describe('Load.prototype.stat', function () {
var dir = __dirname + '/tree'
it('finds file stats', function (done) {
var load = new Load(dir)
load.stat()
load.on('stats', function () {
is.array(load.list)
is.tru... |
<?php
/** @noinspection PhpDocMissingThrowsInspection */
/**
* User: Alex Gusev <alex@flancer64.com>
*/
namespace Praxigento\Downline\Service\Customer;
use Praxigento\Downline\Api\Service\Customer\Add\Request as ARequest;
use Praxigento\Downline\Api\Service\Customer\Add\Response as AResponse;
use Praxigento\Downli... |
<stix:STIX_Package
xmlns:cyboxCommon="http://cybox.mitre.org/common-2"
xmlns:cybox="http://cybox.mitre.org/cybox-2"
xmlns:cyboxVocabs="http://cybox.mitre.org/default_vocabularies-2"
xmlns:example="http://example.com"
xmlns:incident="http://stix.mitre.org/Incident-1"
xmlns:ttp="http://stix.mitre.org/TTP-1"
xmlns... |
<?php
namespace Drupal\KernelTests\Core\TempStore;
use Drupal\Core\KeyValueStore\KeyValueExpirableFactory;
use Drupal\KernelTests\KernelTestBase;
use Drupal\Core\TempStore\SharedTempStoreFactory;
use Drupal\Core\Lock\DatabaseLockBackend;
use Drupal\Core\Database\Database;
/**
* Tests the temporary object storage sy... |
namespace mirage {
export interface ISize {
width: number;
height: number;
}
export class Size implements ISize {
width: number;
height: number;
constructor(width?: number, height?: number) {
this.width = width == null ? 0 : width;
... |
<!-- THIS IS AUTO-GENERATED CONTENT. DO NOT MANUALLY EDIT. -->
This image is part of the [balena.io][balena] base image series for IoT devices. The image is optimized for use with [balena.io][balena] and [balenaOS][balena-os], but can be used in any Docker environment running on the appropriate architecture.
![balena... |
<?php
namespace Admin\Controller;
use Admin\Controller\EntityActionController;
use Zend\View\Model\ViewModel;
use Admin\Form\SemesterOfferForm;
use Admin\Entity\Offer;
class SemesterController extends EntityActionController
{
/* Protected methods */
protected function getOfferArray()
{
$offer... |
package me.jcala.blog.mapping;
import me.jcala.blog.domain.Project;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* mybatis的mapper
* 映射所有项目操作的sql语句
*/
@Repository
@Mapper
public interface ProjectMapper {
@Select({
"select name... |
ALTER TABLE abstracthydro ADD COLUMN fulltext varchar;
# --- !Downs
ALTER TABLE abstracthydro DROP COLUMN fulltext; |
package main
import (
"log"
botan "github.com/botanio/sdk/go"
tg "github.com/go-telegram-bot-api/telegram-bot-api"
)
type (
botanCallback struct{ *tg.CallbackQuery }
botanResult struct{ *tg.ChosenInlineResult }
botanMessage struct{ *tg.Message }
botanInline struct{ *tg.InlineQuery }
)
var (
metrika ... |
#include "color/color.hpp"
int main( int argc, char *argv[] )
{
// Instead of float you may put std::uint8_t,std::uint16_t, std::uint32_t, std::uint64_t, double, long double
color::YDbDr<float> c;
// initialize c before get.
c = color::constant::turquoise_t{};
// Here is how to get gray compon... |
import {assert} from 'chai';
import any from '@travi/any';
import {Reader, Writer} from '../helpers/streams';
import Transform from '../../src/transform';
suite('transform', () => {
let writer, reader, transform;
const method = any.fromList(['get', 'post', 'put', 'delete']);
const path = any.string();
const t... |
#include <lk/debug.h>
#include <assert.h>
#include <dev/gpio.h>
#include <platform/stm32.h>
#include <platform/gpio.h>
#include <stm32f2xx_gpio.h>
#include <stm32f2xx_rcc.h>
static GPIO_TypeDef *port_to_pointer(unsigned int port) {
switch (port) {
default:
case GPIO_PORT_A:
return GPIO... |
package com.joestelmach.zipper.plugin;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.apache.commons.configuration.Configuration;
... |
#region Copyright
//
// DotNetNuke® - http://www.dotnetnuke.com
// Copyright (c) 2002-2016
// by DotNetNuke Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the Software without restrict... |
package com.riversoft.weixin.qy.base;
/**
* Created by exizhai on 9/26/2015.
*/
public class AgentSetting {
private String name;
private int agentId;
private String callbackUrl;
private String token;
private String aesKey;
public String getName() {
return name;
}
... |
describe("This API wrapper", function(){
var client_id = 'Y8ccbceyZZbcmNoZ8RsXLHDhxSs0qnL40SmmjRBU',
client_secret = '5YugC5yJYeFgjcfYf0VrzYnsiVJu00TYJBOTd4r2',
hyperpublic;
beforeEach(function(){
hyperpublic = new Hyperpublic(client_id, client_secret, 'http://localhost:3000/api/v1');
... |
package bookshop2.client.invoiceService;
import java.util.List;
import org.aries.message.Message;
import org.aries.message.MessageInterceptor;
import org.aries.util.ExceptionUtil;
import bookshop2.Invoice;
@SuppressWarnings("serial")
public class InvoiceServiceInterceptor extends MessageInterceptor<InvoiceService>... |
<?php namespace SistemApi\Model\Urun;
use SistemApi\Model\Base\Model;
/**
* @deprecated use Siparis\SiparisAdres
*
* @property int id
* @property int site_id
* @property int kullanici_id
* @property string adi
* @property string mail
* @property string telefon
* @property int ilce_id
* @property string semt... |
package io;
import java.io.Serializable;
/**
* @author linuxea
* @date 17-11-30
**/
public class PiKaQ implements Serializable {
private int id;
private String name;
public PiKaQ(int id, String name) {
this.id = id;
this.name = name;
}
public int getId() {
return id;
}
public void setId(int id... |
module Parachute
class Notifier
def initialize
Rails.logger.debug "-> Parachute::Notifier.initialize"
@default_options = {
url: 'http://parachute.dev/api/v1/notices',
http_method: :post
}
end
# TODO: split & organize ...
def call(exception, options = {})
env = ... |