text stringlengths 3 1.05M |
|---|
package com.drew.metadata.exif.makernotes;
import com.drew.imaging.PhotographicConversions;
import com.drew.lang.Rational;
import com.drew.lang.DateUtil;
import com.drew.lang.annotations.NotNull;
import com.drew.lang.annotations.Nullable;
import com.drew.metadata.TagDescriptor;
import java.math.RoundingMode;
import ... |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ash/printing/cups_printers_manager.h"
#include <algorithm>
#include <map>
#include <memory>
#include <string>
#include <unordered_set>
#include <utili... |
import os
from ppci import api
from ppci.graph import cyclo, callgraph
from ppci.graph.cfg import ir_function_to_graph
sources = [
os.path.join('src', 'hello', 'hello.c3'),
os.path.join('..', 'librt', 'io.c3'),
os.path.join('linux64', 'bsp.c3'),
]
m = api.c3_to_ir(sources, [], 'arm')
print(m)
print(m.stat... |
Lighthouse uses a versioned database schema to allow its database design to evolve over time.
Since beacon chain genesis in December 2020 there have been several database upgrades that have
been applied automatically and in a _backwards compatible_ way.
However, backwards compatibility does not imply the ability to _... |
<?php
namespace Support\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Class SupportStage
*
* @package Support\Entity
*
* @ORM\Entity
* @ORM\Table(name="supportStage")
*/
class SupportStage implements StageInterface
{
/**
* @ORM\Id
* @ORM\Column(name="id", type="integer")
* @ORM\GeneratedVa... |
namespace views {
class View;
namespace examples {
class VIEWS_EXAMPLES_EXPORT ExampleBase {
public:
ExampleBase(const ExampleBase&) = delete;
ExampleBase& operator=(const ExampleBase&) = delete;
virtual ~ExampleBase();
// Sub-classes should creates and add the views to the given parent.
virtual void Cre... |
import sys, os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.curdir,'..')))
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown ... |
% Simplification of logregMultinomKernelDemo to the binary case.
% This file is from pmtk3.googlecode.com
function logregBinaryDemo()
%% Setup Data
setSeed(0);
nClasses = 2;
nInstances = 100;
nVars = 2;
[X, y] = makeData('multinomialNonlinear', nInstances, nVars, nClasses);
%tmp = loadData('knnClassify3c'); % 500 sam... |
#ifndef __ASMARM_SETUP_H
#define __ASMARM_SETUP_H
#include <uapi/asm/setup.h>
#define __tag __used __attribute__((__section__(".taglist.init")))
#define __tagtable(tag, fn) \
static const struct tagtable __tagtable_##fn __tag = { tag, fn }
/*
* Memory map description
*/
#define NR_BANKS CONFIG_ARM_NR_BANKS
stru... |
package org.apache.arrow.driver.jdbc.accessor.impl.numeric;
import static org.hamcrest.CoreMatchers.equalTo;
import org.apache.arrow.driver.jdbc.accessor.ArrowFlightJdbcAccessorFactory;
import org.apache.arrow.driver.jdbc.utils.AccessorTestUtils;
import org.apache.arrow.driver.jdbc.utils.RootAllocatorTestRule;
impo... |
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage
# device = MonkeyRunner.waitForConnection()
print(1)
device = MonkeyRunner.waitForConnection(5,"DU2SSE149P055486")
print(2)
device.installPackage("F:\\Downloads\\Bulletgirls.apk")
print(3)
device.startActivity(component = 'com.funova.bulletgi... |
@interface PersonalMainView : BaseViewController
- (void)initPersonalMainViewWithUser :(UserInstance*)currUser;
@end
|
<?php
// Facebook Like Extension for Bolt
namespace Bolt\Extension\Bolt\FacebookLike;
use Bolt\Extensions\Snippets\Location as SnippetLocation;
class Extension extends \Bolt\BaseExtension
{
public function getName()
{
return "Facebook Like";
}
public function initialize()
{
if (... |
package servlet4.pushbuilder;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpFilter;
import javax.servlet.http.HttpServletMapping;
import javax.s... |
How to re-build snap against up-to-date packages
------------------------------------------------
The snap's owner (currently Alexander Batischev) might receive an email from
the Snap Store saying:
> Subject: newsboat contains outdated Ubuntu packages
>
> A scan of this snap shows that it was built with packages from... |
const color = require('./color');
const draw = require('./draw');
const util = require('./util');
const observable = require('./observable');
const curryN = require('ramda/src/curryN');
const _ = require('ramda/src/__');
function setup(container) {
var frameStream = observable.fromAnimationFrame(),
canvas ... |
#include "sysdep.h"
#include "bfd.h"
#include "bfdlink.h"
#include "libbfd.h"
#include "elf-bfd.h"
#include "elf-nacl.h"
#include "elf-vxworks.h"
#include "bfd_stdint.h"
#include "objalloc.h"
#include "hashtab.h"
#include "dwarf2.h"
/* 386 uses REL relocations instead of RELA. */
#define USE_REL 1
#include "elf/i3... |
package storage_test
import (
"context"
"fmt"
"io/ioutil"
"net/http"
"net/http/httptest"
"strings"
"sync/atomic"
"testing"
"time"
"golang.org/x/oauth2"
"cloud.google.com/go/storage"
"google.golang.org/api/googleapi"
"google.golang.org/api/option"
)
func TestIndefiniteRetries(t *testing.T) {
if testing... |
using System.Xml.Serialization;
namespace Digiseller.Client.Core.Models.Response.ProductInformation
{
[XmlRoot(ElementName = "img_small")]
public class ImgSmall
{
[XmlAttribute(AttributeName = "height")]
public int Height { get; set; }
[XmlAttribute(AttributeName = "width")]
... |
int main(int argc, char * argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
|
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle... |
<resources>
<string name="app_name">Xevensthein.Core</string>
</resources>
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
public partial class ogretmen : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
... |
package lila.tournament
import chess.Clock.{ Config => ClockConfig }
import chess.format.FEN
import chess.{ Mode, Speed }
import org.joda.time.{ DateTime, Duration, Interval }
import play.api.i18n.Lang
import scala.util.chaining._
import lila.common.GreatPlayer
import lila.common.ThreadLocalRandom
import lila.i18n.de... |
'use strict';
describe('Controller: AppCtrl', function () {
// load the controller's module
beforeEach(module('movieRouletteApp'));
var AppCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
AppCtrl = $con... |
**Bundle install** - With this command you install all the dependencies that the project nedds
**Bundle Check** - Check with all the dependencies are installed
**Rails Server** - Start the server in the specific port
**Rails new name_of_app** - For Start a new application
**rails generate scaffold 'name_of_entity' ... |
package org.sempmessaging.sempd.core.serverkeys;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertSame;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
public class ServerPublicVerificationKeysServiceTest {
private ServerPublicVerificationKeysServi... |
'use strict';
var should = require('should'),
request = require('supertest'),
path = require('path'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Ownership = mongoose.model('Ownership'),
express = require(path.resolve('./config/lib/express'));
/**
* Globals
*/
var app, agent, credentials, u... |
using Microsoft.AspNet.Http;
using Microsoft.Data.Entity;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace Hermes.DataAccess
{
public abstract class TaxonomyManager<TTaxonomy, TKey> ... |
layout: base
title: 'Statistics of Animacy in UD_Norwegian-Nynorsk'
udver: '2'
---
## Treebank Statistics: UD_Norwegian-Nynorsk: Features: `Animacy`
This feature is universal but the values `Hum` are language-specific.
It occurs with 1 different values: `Hum`.
6774 tokens (2%) have a non-empty value of `Animacy`.
2... |
#region License
#endregion
using Newtonsoft.Json.Linq;
using OAuth2.Client;
using OAuth2.Configuration;
using OAuth2.Infrastructure;
using RestSharp;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Vi... |
package com.amazonaws.services.waf.model;
import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
*/
public class UpdateWebACLRequest extends AmazonWebServiceRequest implements
Serializable, Cloneable {
/**
* <p>
* The <code>WebACLId</code> of the <a>WebACL</a> tha... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
Peucedanum friesiorum var. bipinnatum C.C.Towns.
### Remarks
null |
<?php
namespace App\Models\Benefiters_Tables_Models;
use Illuminate\Database\Eloquent\Model;
class BenefiterReferrals extends Model
{
protected $table = 'benefiter_referrals';
protected $fillable = [
'description',
'referral_date',
'benefiter_id',
'user_id',
'referral... |
package uk.ac.ncl.openlab.intake24.client.survey.prompts;
import com.google.gwt.core.shared.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateEventsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('events', function(Blueprint $table)
{
$table->increments('id');
$table->s... |
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('db', '0003_postedbook'),
]
operations = [
migrations.AlterField(
model_name='telegramuser',
name='last_name',
field=models.CharField(default='', max_leng... |
"use strict";
var path = require("path");
/**
* The only instance of the sp core.
* This required to be in the bottom because it creates an instance.
*/
module.exports = new MiddlewareJs();
/**
* Constructs a new abstract Monitoring with the basic options.
*
* @constructor
*/
function MiddlewareJs() {
this.... |
#ifndef _PY_CUSTOM_PYEVAL_SETTRACE_HPP_
#define _PY_CUSTOM_PYEVAL_SETTRACE_HPP_
#include "python.h"
#include "py_utils.hpp"
#include "py_custom_pyeval_settrace_common.hpp"
#include "py_custom_pyeval_settrace_310.hpp"
#include "py_custom_pyeval_settrace_311.hpp"
// On Python 3.7 onwards the thread state is not kept in... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software... |
from collections import OrderedDict
from mangrove.data_cleaner import TelephoneNumber
from mangrove.errors.MangroveException import NumberNotRegisteredException
from mangrove.form_model.validator_types import ValidatorTypes
from mangrove.utils.types import is_empty
class AtLeastOneLocationFieldMustBeAnsweredValidator... |
using extensions::DictionaryBuilder;
using extensions::ListBuilder;
namespace chromeos {
namespace {
const uint8 kPrinterInterfaceClass = 7;
const char kTestUserId[] = "test_user";
const char kPrinterAppExistsDelegateIDTemplate[] =
"system.printer.printer_provider_exists/%s:%s";
const char kPrinterAppNotFound... |
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="3.1"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
<servlet>
<serv... |
var path = require('path');
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
mochaTest: {
test: {
src: ['test/*Spec.js']
}
},
jshint: {
all: ['src/**/*.js', 'bin/*', 'test/*Spec.js'... |
I started this project to clean my picture and video gallery from duplicates: all files coming from my smartphone, from others' smartphones, from instant messaging applications, and so on can be a huge set, hard to keep clean manually.
### Current implementation detail
Currently only image duplication detection is bei... |
from distutils.core import setup
setup(
name='django-geoip-utils',
version='0.1.2',
description='GeoIp data as an app to facilitate installing. '
'Also features template filters, utility functions and '
'a management command for updating the GeoIP data.',
long_descriptio... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
import peewee
from datetime import datetime
from PyQt4 import QtGui, QtCore
from configuration import Config
from Common.ui.common import FWidget, FPeriodHolder, FPageTitle
from models import Reports, Store, Product
from Common.ui.table import FTableWidget
from Common.ui.util import formatted_number, is_int
class St... |
from requests_oauthlib import OAuth1Session
import json
from flatline.models import Bill, Flat
from datetime import datetime
def test():
resource_owner_key = "e40cf7ea7dbe049f9e9c2c899b2e10c9"
resource_owner_secret = "44a9426a642eb178dc9d19ebdc31227e"
client_key = "742ea45f6dd448ba5098c4839b13be0c"
cli... |
Language design
===============
## Functional paradigm
Functions as first-class citizens. All functions take one argument. No named functions, only lambdas bound to names.
## Minimal built-ins
<=, ==, basic arithmetic, list index, list cons
## Infixes are just functions
Succint partial application of infixes
## Sta... |
namespace echomesh {
namespace color {
FColorList insert(const FColorList& fcl,
int offset, uint length, bool rollover, int skip) {
FColorList result;
result.resize(length);
for (auto& color: fcl) {
result[mod(offset, length)] = color;
offset += skip;
}
return resu... |
package de.adito.propertly.core.common;
import de.adito.propertly.core.spi.IPropertyDescription;
import de.adito.propertly.core.spi.IPropertyPit;
import de.adito.propertly.core.spi.IPropertyPitProvider;
/**
* A helper class to quickly supply getters and setters.
*
* @author PaL
* Date: 12.10.12
* ... |
(function (angular) {
'use strict';
angular
.module('app')
.directive('extInput', directive);
function directive() {
var directive = {
templateUrl: './components/form/input/input.html',
restrict: 'E',
require: '?^^form',
compile: comp... |
"use strict";
// Components
var EBLabelComponent = require("./components/eb-label-component")["default"] || require("./components/eb-label-component");
var EBControlComponent = require("./components/eb-control-component")["default"] || require("./components/eb-control-component");
var EBBucketComponent = require("./com... |
export * from './GroupedSelectedFilters'
export * from './SelectedFilters' |
export MASON_VERSION=1.62.0
export BOOST_VERSION=${MASON_VERSION//./_}
export BOOST_TOOLSET="clang"
export BOOST_TOOLSET_CXX="clang++"
export BOOST_ARCH="x86"
export BOOST_SHASUM=f4151eec3e9394146b7bebcb17b83149de0a6c23
# special override to ensure each library shares the cached download
export MASON_DOWNLOAD_SLUG="boo... |
package org.pentaho.di.trans.step.jms;
import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
import org.apache.activemq.artemis.junit.EmbeddedJMSResource;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import or... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
package org.apache.commons.exec;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.BufferedRe... |
/*
* Driver: pcmuio
* Description: Winsystems PC-104 based 48/96-channel DIO boards.
* Devices: (Winsystems) PCM-UIO48A [pcmuio48]
* (Winsystems) PCM-UIO96A [pcmuio96]
* Author: Calin Culianu <calin@ajvar.org>
* Updated: Fri, 13 Jan 2006 12:01:01 -0500
* Status: works
*
* A driver for the relatively stra... |
set current=%cd%
set module=org.scn.community.shared
cd ..\src\%module%\script\
call build.cmd
cd %current%
set module=org.scn.community.utils
cd ..\src\%module%\script\
call build.cmd
cd %current%
set module=org.scn.community.basics
cd ..\src\%module%\script\
call build.cmd
cd %current%
set module=org.scn.communit... |
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web serve... |
class Browser;
namespace chrome {
// Starts a user initiated exit process. Called from Browser::Exit.
// On platforms other than ChromeOS, this is equivalent to
// CloseAllBrowsers() On ChromeOS, this tells session manager
// that chrome is signing out, which lets session manager send
// SIGTERM to start actual exit ... |
Create a tag cloud/[Wordle](http://www.wordle.net/) presentation on 2D canvas or HTML.
This library is a spin-off project from [HTML5 Word Cloud](https://github.com/timdream/wordcloud).
**Visit the [demo page](http://timdream.org/wordcloud2.js/)**
## Simple usage
Load `wordcloud.js` script to the web page, and run:... |
package com.jtanks.model;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.junit.Before;
import org.junit.Test;
import com.jtanks.util.concurrency.ConcurrentStorageProvider;
import com.jtanks.util.concurrency.ConsistentInteger;
import com.jtanks.util.concurrency.ConsistentLong;
import static junit... |
package ro.nicuch.citizensbooks;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukki... |
import React from 'react';
import components from '../components';
import Debug from '../components/debug';
import Grid from '../components/grid';
import styled from 'styled-components';
import {
media,
marginMobile,
columnMobile,
marginTablet,
columnTablet,
marginDesktop,
columnDesktop,
... |
<div id="modal-about" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="moda... |
<?php
use Spanky\Cart\ValidateNumeric;
class ValidateNumericTraitTest extends PHPUnit_Framework_TestCase
{
use ValidateNumeric;
/**
* Test the is isNumeric method on the trait
* to validate if the value is an integer
* or float.
*/
public function test_is_numeric_function()
{
... |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework... |
using System.Windows.Controls;
namespace ConfigWithMap.UI
{
/// <summary>
/// Interaction logic for AboutPage.xaml
/// </summary>
public partial class AboutPage : UserControl
{
public AboutPage()
{
InitializeComponent();
}
}
}
|
"use strict";
function f() { for (x of y) { } }
function f() { for (var x of y) { } }
function f() { for (let x of y) { } }
function StrictSyntaxError(s) {
try {
eval(s);
} catch (e) {
assertInstanceof(e, SyntaxError);
return;
}
throw "did not throw";
}
StrictSyntaxError("function f() { for (x of... |
(function() {
'use strict';
angular
.module('app.accounts')
.config(function($stateProvider) {
$stateProvider
.state('accounts', {
url: '/accounts',
templateUrl: 'app/components/accounts/accounts.html',
controller: 'AccountsController',
controllerAs: 'vm'
})
.sta... |
module RestSinatra
def self.included(includer)
includer.extend(ClassMethods)
end
module ClassMethods
attr_reader :config
def resource(name, &block)
_resource(name, :regular, &block)
end
def nestable_resource(name, &block)
_resource(name, :nestable, &block)
end
... |
Decorator based router middleware for [`ingress`](https://github.com/ingress/core)
`npm i @ingress/router`
Define routes using the `@Route` decorator, and plain javascript classes.
## Route Definition
```javascript
import { Route, Param } from '@ingress/router'
@Route('prefix')
export class MyController {
@Rout... |
id: 587d7fb6367417b2b2512c06
title: Install and Set Up Mongoose
localeTitle: تثبيت وإعداد النمس
challengeType: 2
---
## Description
<section id='description'>
إضافة mongodb والنمس إلى package.json المشروع. ثم تتطلب النمس. قم بتخزين URI قاعدة بيانات قاعدة البيانات الخاصة بك في ملف .env الخاص كـ MONGO_URI. الاتصال بقاع... |
@interface PSUIOffsetConvertor : NSObject<PSTypeConvertor>
@end
|
@interface KHDowmViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *goodsImage;
@property (weak, nonatomic) IBOutlet UILabel *goodsName;
@property (weak, nonatomic) IBOutlet UILabel *timeDown;
@end
@implementation KHDowmViewCell
- (void)awakeFromNib{
[super awakeFromNib];
_timeDown.layer.cornerRad... |
package tools.xor.jpa;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.junit.jupiter... |
/* Layout helpers
----------------------------------*/
.ui-helper-hidden {
display: none;
}
.ui-helper-hidden-accessible {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.ui-helper-reset {
margin: 0;
padding: 0;
border: 0;
outlin... |
package co.com.codesoftware.server.productos;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Clase Java para subCuentaEntity complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se... |
using namespace std;
Singleton *Singleton::pInstance = nullptr;
mutex Singleton::sMutex;
Singleton &Singleton::instance() {
static Cleanup cleanup;
lock_guard<mutex> guard(sMutex);
if (pInstance == nullptr)
pInstance = new Singleton();
return *pInstance;
}
Singleton::Cleanup::~Cleanup() {
... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
"""Tests for the cluster.ini and config class."""
import os
import pytest
import re
class TestConfig():
slow = pytest.mark.skipif(
not pytest.config.getoption("--runslow"),
reason="need --runslow option to run"
)
def test_generateSSHKey(self, config):
public_filepath = '~/.ssh/ac... |
#pragma once
namespace Component {
class RigidBody;
}
namespace GUI {
/// Editor for rigid body components.
class RigidBodyEditor {
public:
/// Show controls for editing a rigid body.
/**
* @param comp Component to edit.
*/
void Show(Component::RigidBody* comp);
private:
void GetData(Co... |
package hudson.maven.reporters;
import hudson.FilePath;
import hudson.Util;
import hudson.Extension;
import hudson.maven.MavenBuild;
import hudson.maven.MavenBuildProxy;
import hudson.maven.MavenModule;
import hudson.maven.MavenModuleSet;
import hudson.maven.MavenReporter;
import hudson.maven.MavenReporterDescriptor;... |
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Enum ConstructorParamType
</title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Enum ConstructorParamType
... |
var assert = require('assert');
var value = '';
Feature('select');
Scenario('should return correct booleans values when selected', async (I) => {
I.amOnPage('select.html');
I.click('.get-value');
value = await I.grabValueFrom('.value');
assert.equal(value, '{"boolean":true}');
I.selectOption('[name="root[bo... |
<?php
namespace Payum\Core\Tests\Bridge\Symfony\Action;
use Payum\Core\Bridge\Symfony\Action\ObtainCreditCardAction;
use Payum\Core\Bridge\Symfony\Reply\HttpResponse;
use Payum\Core\Model\CreditCard;
use Payum\Core\PaymentInterface;
use Payum\Core\Request\ObtainCreditCard;
use Payum\Core\Request\RenderTemplate;
use Sy... |
/* CWLocalize - AppDelegate.m */
/*
The MIT License (MIT)
Copyright (c) 2017 Claes Wihlborg
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 restriction, including without li... |
package org.apache.sysds.runtime.instructions.spark;
import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.function.Function;
import org.apache.sysds.runtime.DMLRuntimeException;
import org.apache.sysds.runtime.controlprogram.context.ExecutionContext... |
from collections import OrderedDict
import functools
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources
from google.api_core.client_options import ClientOptions
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from googl... |
FROM balenalib/beaglebone-green-wifi-ubuntu:xenial-build
# A few reasons for installing distribution-provided OpenJDK:
#
# 1. Oracle. Licensing prevents us from redistributing the official JDK.
#
# 2. Compiling OpenJDK also requires the JDK to be installed, and it gets
# really hairy.
#
# For some sample bu... |
* Remove dependency to Nokogiri and Multi_JSON. You have to add what you need to your `Gemfile`/`gemspec` now.
* `to_*`/`from_*` with options do no longer change the hash but work on copies.
* `to_*`/`from_*` now respect `wrap: false`. This will suppress the wrapping on the first level.
* Introduce `property "name", wr... |
@class VLOdometer;
@interface VLOdometerPager : VLChronoPager
@property (readonly) NSArray *odometers;
- (instancetype)initWithDictionary:(NSDictionary *)dictionary service:(VLService *)service;
- (instancetype)initWithDictionary:(NSDictionary *)dictionary;
- (NSArray *)populateOdometers:(NSDictionary *)dictionary;... |
package mains
import (
"context"
"fmt"
"io"
"os"
"runtime"
"github.com/mattn/go-colorable"
"github.com/mattn/go-isatty"
"github.com/zetamatta/nyagos/frame"
"github.com/zetamatta/nyagos/functions"
"github.com/zetamatta/nyagos/shell"
)
type scriptEngineForOptionImpl struct{}
func (*scriptEngineForOptionImp... |
<a href="https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples&page=editor&open_in_editor=iot/api-client/manager/README.md">
<img alt="Open in Cloud Shell" src ="http://gstatic.com/cloudssh/images/open-btn.png"></a>
This sample app demonstrates device manage... |
<subsystem xmlns="urn:wildfly:elytron:1.0">
<security-properties>
<security-property key="a" value="b" />
<security-property key="c" value="d" />
</security-properties>
</subsystem> |
<div>
<span class="e2e-test-state-name-container">
<span *ngIf="editabilityService.isEditable()">
<span *ngIf="!stateNameService.isStateNameEditorShown()" (click)="openStateNameEditor()" class="oppia-editable-section">
<strong class="oppia-state-name-text e2e-test-state-name-text">{{stateEditorServi... |
"""This example gets all networks that you have access to with the current login
credentials.
A networkCode should be left out for this request."""
__author__ = ('Nicholas Chen',
'Joseph DiLallo')
# Import appropriate modules from the client library.
from googleads import dfp
def main(client):
# In... |