text stringlengths 3 1.05M |
|---|
namespace ExcelDataReader.Silverlight.Data.Example
{
using Data;
public class WorkBook : IWorkBook
{
internal WorkBook()
{
WorkSheets = new WorkSheetCollection();
}
public IWorkSheetCollection WorkSheets { get; private set; }
public IWorkSheet CreateWorkSheet()
{
return new WorkS... |
using System.Collections.Generic;
using Orchard.DynamicForms.Elements;
using Orchard.DynamicForms.Services;
using Orchard.DynamicForms.ValidationRules;
namespace Orchard.DynamicForms.Validators {
public class UrlFieldValidator : ElementValidator<UrlField> {
private readonly IValidationRuleFactory _validat... |
package com.agricraft.agricore.templates.versions.v1;
import com.google.gson.annotations.SerializedName;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
public class AgriString_1_12 {
@SerializedName(value = "default", alternate = {"normal"})
private final String normal;
private... |
;(function ( $, window, document, undefined ) {
$.site = $.fn.site = function(parameters) {
var
time = new Date().getTime(),
performance = [],
query = arguments[0],
methodInvoked = (typeof query == 'string'),
queryArguments = [].slice.call(arguments, 1),
settings ... |
'use strict';
jest.dontMock('../index');
jest.mock('fs');
const Promise = require('promise');
describe('BundlesLayout', () => {
let BundlesLayout;
let DependencyResolver;
let loadCacheSync;
beforeEach(() => {
BundlesLayout = require('../index');
DependencyResolver = require('../../DependencyResolve... |
<resources>
<string name="app_name">FlightCtrl4Unity</string>
</resources>
|
package cz.muni.fi.pa165.methanolmanager.service;
import org.junit.runner.RunWith;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/**
* Convenient base class for service tests.
*
* Enables descendant test classes to {@cod... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html lang="en-US">
<head>
<title>Overview of the BeanContext API (The Java™ Tutorials >
JavaBeans(TM) > Using the BeanContext API)
</title>
<meta name="description" content="This JavaBean Java tutorial describes using t... |
'use strict';
const {Transform} = require('stream');
class ObjectTransform extends Transform {
constructor() {
super({
objectMode: true
});
}
}
class FilterStream extends ObjectTransform {
constructor(filter) {
super();
this._filter = filter;
}
_transform(data, encoding, callback) {
if (this._filte... |
package mock_gomock
import (
gomock "github.com/golang/mock/gomock"
)
// Mock of Matcher interface
type MockMatcher struct {
ctrl *gomock.Controller
recorder *_MockMatcherRecorder
}
// Recorder for MockMatcher (not exported)
type _MockMatcherRecorder struct {
mock *MockMatcher
}
func NewMockMatcher(ctrl *go... |
/**
* @license AngularJS v1.7.0-rc.0
* (c) 2010-2018 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular) {
'use strict';
/**
* @ngdoc object
* @name angular.mock
* @description
*
* Namespace from 'angular-mocks.js' which contains testing related code.
*
*/
angular.mock = {};
/**... |
<?php
/** Zend_Locale */
require_once 'Zend/Locale.php';
/** Zend_Translate_Adapter */
require_once 'Zend/Translate/Adapter.php';
/**
* @category Zend
* @package Zend_Translate
* @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/lic... |
package edu.indiana.lib.osid.base.repository.http;
public class PreferredUrlPartStructure implements org.osid.repository.PartStructure
{
private org.osid.shared.Id PREFERREDURL_PART_STRUCTURE_ID = null;
private org.osid.shared.Type type = new Type( "sakaibrary", "partStructure",
... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="vertical">
<TextView
android:layout_width="wrap_c... |
#import <Foundation/Foundation.h>
#import "cocos2d.h"
/**
The CCBReader loads node graphs created by SpriteBuilder (or other editors using the same format). If you are using SpriteBuilder it's strongly recommended that you set up the CCFileUtils using the configureCCFileUtils method or use the Xcode project file c... |
"""
celery.signals
~~~~~~~~~~~~~~
This module defines the signals (Observer pattern) sent by
both workers and clients.
Functions can be connected to these signals, and connected
functions are called whenever a signal is called.
See :ref:`signals` for more information.
"""
from __future__... |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd">
<topic id="topic1"><title id="as20941">ALTER OPERATOR CLASS</title><body><p id="sql_command_desc">Changes the definition of an operator class.</p><section id="section2"><title>Synopsis</title><codeblock id... |
<?php
require_once realpath(__DIR__ . '/..').'/config.php';
$lang = [
'index' => 'Index',
'index_menu' => 'Menu Index',
'index_list' => 'Index List',
'index_search' => 'Search index',
'back' => 'Back',
'validation_username_ok' => 'Username is OK!',
'validation_username_fail' => 'Username is not... |
/**
* @constructor
*/
WebInspector.TimelineGrid = function()
{
this.element = document.createElement("div");
this._itemsGraphsElement = document.createElement("div");
this._itemsGraphsElement.id = "resources-graphs";
this.element.appendChild(this._itemsGraphsElement);
this._dividersElement = t... |
using System;
using System.Drawing;
namespace BrokenEvent.Shared
{
class TooltipShowArgs : EventArgs
{
private Point position;
public TooltipShowArgs(Point position)
{
this.position = position;
}
public Point Position
{
get { return position; }
}
}
}
|
package org.mybatis.pagination.dialect.db;
import org.mybatis.pagination.dialect.Dialect;
/**
* DB2的分页数据库方言实现
*
* @author poplar.yfyang
* @version 1.0 2010-10-10 下午12:31
* @since JDK 1.5
*/
public class DB2Dialect implements Dialect {
private static String getRowNumber(String sql) {
StringBuilder... |
package main
import (
_ "github.com/docker/docker/autogen/winresources/dockerd"
)
|
<?php
use tests\codeception\frontend\FunctionalTester;
use tests\codeception\frontend\_pages\ContactPage;
$I = new FunctionalTester($scenario);
$I->wantTo('ensure that contact works');
$contactPage = ContactPage::openBy($I);
$I->see('Contact', 'h1');
$I->amGoingTo('submit contact form with no data');
$contactPage->... |
#pragma once
// Dependency:
#include "../glm.hpp"
#if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
# pragma message("GLM: GLM_GTX_log_base extension included")
#endif
namespace glm
{
/// @addtogroup gtx_log_base
/// @{
/// Logarithm for any base.
/// From GLM_GTX_log_base.
template <t... |
package namespace
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("Set", func() {
It("should return blank when blank was added", func() {
nCtx := Set(ctx, "")
Expect(Get(nCtx)).To(BeEmpty())
})
It("should return what was set to it", func() {
for _, ns := range namespaces ... |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
'-----------------------------------------------------------------------------
' Contains the definition of the Scanner, which produces tokens from text
'---... |
var paper = new function(undefined) {
var Base = new function() {
var hidden = /^(statics|generics|preserve|enumerable|prototype|toString|valueOf)$/,
toString = Object.prototype.toString,
proto = Array.prototype,
slice = proto.slice,
forEach = proto.forEach || function(iter, bind) {
for (var i = 0, l = ... |
class Api::ProcessListController < Api::ApiController
def process_list
@process_list = ProcessManager.getInstance().currentProcessListForDisplay();
@str = "<html><body><table border=\"1\">"
@process_list.each do |process|
@str += "<tr><td>" + process.getCommand() + "</td><td>" + process.getStartTime... |
<?php
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
class UrlTypeTest extends TypeTestCase
{
public function testSubmitAddsDefaultProtocolIfNoneIsIncluded()
{
$form = $this->factory->create('url', 'name');
$form->submit('www.domain.com');
$this->assertSame('http://www... |
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for lib/ds/</title>
<meta charset="utf-8">
<link rel="stylesheet" href="../../prettify.css">
<style>
body, html {
margin:0; padding: 0;
}
body {
font-family: Helvetica Neue, Helvetica,Ar... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
Antonie van Leeuwenhoek 49(2): 160 (1983)
#### Original name
Sporobolomyces elongatus R.G. Shivas & Rodr. Mir.
### Remarks
null |
var P = require('../')
var DW = require('fstream').DirWriter
var target = new DW({ Directory: true, type: 'Directory',
path: __dirname + '/output'})
function f (entry) {
return entry.basename !== '.git'
}
P({ path: './', type: 'Directory', isDirectory: true, filter: f })
.on('package', func... |
#!/usr/bin/php
<?php
/* script to validate blocks */
// Change to working directory
chdir(dirname(__FILE__));
// Include all settings and classes
require_once('shared.inc.php');
if ( $bitcoin->can_connect() !== true )
die("Failed to connect to RPC server". PHP_EOL);
echo "Validating blocks in database... |
package org.apache.nifi.processors.evtx.parser.bxml.value;
import org.apache.nifi.processors.evtx.parser.bxml.BxmlNodeTestBase;
import org.junit.Test;
import java.io.IOException;
import static org.junit.Assert.assertEquals;
public class WStringArrayTypeNodeTest extends BxmlNodeTestBase {
@Test
public void... |
<?php
/**
* Builder interface for unique identifiers.
*
* Defines the interface for recording unique identifiers. The identifiers
* can be used to define the invocation order of expectations. The expectation
* is recorded using id() and then defined in order using
* PHPUnit_Framework_MockObject_Builder_Match::a... |
package io.fabric8.gateway.handlers.detecting.protocol.openwire.codec.v1;
import io.fabric8.gateway.handlers.detecting.protocol.openwire.codec.BooleanStream;
import io.fabric8.gateway.handlers.detecting.protocol.openwire.codec.OpenWireFormat;
import io.fabric8.gateway.handlers.detecting.protocol.openwire.command.Conn... |
const settings = require('../config.json');
module.exports = client => {
console.log('REMBOT is Alive!');
//client.user.setGame('REMBOT');
} |
describe AuditEvent do
it "should be invalid with empty attributes" do
event = AuditEvent.new
expect(event).not_to be_valid
expect(event.errors).to include(:event)
expect(event.errors).to include(:status)
expect(event.errors).to include(:message)
expect(event.errors).to include(:severity)
en... |
package com.huawei.agilete.base.servlet;
import java.util.HashMap;
import java.util.Iterator;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
import com.huawei.agilete.northinterface.bean.OTFlow;
import com.huawei.networkos.ops.client.IOpsRest... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.12.11 at 12:17... |
using MvcWebRole.Telemetry;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
using System.Web.Http.ExceptionHandling;
namespace MvcWebRole
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
... |
<?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" xml:lang="en" lang="en">
<head>
<title>Class: Fusioncharts::DbJsController</title>
<met... |
{% if pagename != 'docs/index' %}
<strong>« <a href="{{ pathto('docs/index') }}">Back to docs index</a></strong>
{% endif %}
|
<div class="bs-docs-section">
<h1 id="grunt" class="page-header">Compiling CSS and JavaScript</h1>
<p class="lead">Bootstrap uses <a href="http://gruntjs.com">Grunt</a> for its build system, with convenient methods for working with the framework. It's how we compile our code, run tests, and more.</p>
<h2 id="gr... |
package org.drools.ide.common.assistant.info.drl;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import org.drools.ide.common.assistant.info.RuleRefactorInfo;
public class DRLRuleRefactorInfo implements RuleRefactorInfo {
private Map<Integer, RuleBasicConten... |
<?php
/*
* This file is part of php-cache organization.
*
* (c) 2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Cache\Adapter\Void\Tests;
use Cache\Adapt... |
namespace content {
// Represents a granted lock in the ScopesLockManager. When this object is
// destroyed, the lock is released. Since default construction is supported,
// |is_locked()| can be used to inquire locked status. Also, |Release()| can
// be called to manually release the lock, which appropriately updates... |
template <class T> struct Base { // expected-note 4 {{member found by ambiguous name lookup}}
static void f();
};
struct X0 { };
template <class T> struct Derived: Base<int>, Base<char> {
typename Derived::Base b; // expected-error{{member 'Base' found in multiple base classes of different types}}
typename Der... |
import http = require('http');
import { ImportSystem } from './import-system.class';
import { wait, generateId } from "./lib";
import { $Middleware, $Route, $Handler, $ErrorHandler } from './models.lib';
export class Application extends ImportSystem {
constructor(params) {
super();
this.readonly([
'i... |
using System.Linq;
using System.Web.Mvc;
using Orchard.Comments.Models;
using Orchard.Comments.Services;
using Orchard.ContentManagement;
using Orchard.Localization;
using Orchard.Mvc.Extensions;
using Orchard.UI.Notify;
namespace Orchard.Comments.Controllers {
public class CommentController : Controlle... |
package org.apache.geode.cache.lucene;
import java.util.Map;
import org.apache.lucene.analysis.Analyzer;
/**
* A factory for creating a lucene index on the current member. Obtain a factory from
* {@link LuceneService#createIndexFactory()}.
*
* Configure the index using the add methods, and then call {@link #cre... |
<html>
<body>
This inspection reports any implementations of <b>hashcode()</b> which access
non-<b>final</b> variables. Such access may result in <b>hashcode()</b>
returning different values at different points in an object's lifecycle, which may in turn cause problems when
using the standard Collections classes.
<p>
<... |
/*
Project: angular-gantt v1.0.0-rc7 - Gantt chart component for AngularJS
Authors: Marco Schweighauser, Rémi Alvergnat
License: MIT
Homepage: http://www.angular-gantt.com
Github: https://github.com/angular-gantt/angular-gantt.git
*/
(function(){
'use strict';
angular.module('gantt.movable', ['gantt']).directiv... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable disable
using System.Collections.Immutable;
using Microsoft.CodeAnalysis.Shared.Extensions;
using Micros... |
class EventResponderList( object ):
"""
Behaves like a list with limited functionality. When the list is
non-empty, an event handler is registered for a particular event
and called whenever the event occurs. When the list is empty, the
event handler is unregistered and will not be called until it
... |
package info.arimateia.androidmvm.model;
import java.util.List;
/**
* Created by felipets on 8/23/16.
*/
public class PeopleResults {
private List<Person> results;
public List<Person> getResults() {
return results;
}
public void setResults(List<Person> results) {
this.results = re... |
The `macdeployqtplus` script should not be run manually. Instead, after building as usual:
```bash
make deploy
```
When complete, it will have produced `Bitcoin-Core.dmg`.
## SDK Extraction
### Step 1: Obtaining `Xcode.app`
A free Apple Developer Account is required to proceed.
Our current macOS SDK
(`Xcode-12.2-... |
package org.springframework.boot.devtools.tunnel.server;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketTimeoutException;
import java.nio.ByteBuffer;
import java.nio.channels.ByteChannel;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
impo... |
package ${package};
import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.WebPage;
public class HomePage extends WebPage {
private static final long serialVersionUID = 1L;
public HomePage(final PageParameters para... |
<?php
namespace PeensBundle\Repository;
use Doctrine\ORM\EntityRepository;
/**
* PersonRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class PersonRepository extends EntityRepository
{
}
|
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("03... |
C_STANDARD_REQUIRED
-------------------
Boolean describing whether the value of :prop_tgt:`C_STANDARD` is a requirement.
If this property is set to ``ON``, then the value of the
:prop_tgt:`C_STANDARD` target property is treated as a requirement. If this
property is ``OFF`` or unset, the :prop_tgt:`C_STANDARD`... |
/**
* It is not uncommon for non-English speaking countries to use a comma for a
* decimal place. This sorting plug-in shows how that can be taken account of in
* sorting by adding the type `numeric-comma` to DataTables. A type detection
* plug-in for this sorting method is provided below.
*
* Please note... |
/* ###
* IP: GHIDRA
*
* 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 writin... |
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace AllReady.UnitTest
{
public class SelectListItemComparer : IEqualityComparer<SelectListItem>
{
public bool Equals(SelectListItem x, SelectListItem y)
{
if (ReferenceEquals(x, y))
re... |
package com.metamx.emitter.core;
public enum ContentEncoding
{
GZIP
}
|
package interpres.language.definitions.interpres;
import java.util.List;
import java.util.ArrayList;
import interpres.ast.LambdaExpression;
import interpres.ast.Symbol;
import interpres.ast.StringValue;
import interpres.language.definitions.Definition;
public class SymbolToString extends Definition {
public Symb... |
#if !defined(BOOST_FUSION_VALUE_OF_PRIOR_IMPL_SEP_24_2009_0158PM)
#define BOOST_FUSION_VALUE_OF_PRIOR_IMPL_SEP_24_2009_0158PM
#include <boost/fusion/iterator/deref.hpp>
#include <boost/fusion/container/vector.hpp>
namespace boost { namespace fusion
{
struct nview_iterator_tag;
template <typename Sequence, ... |
require 'spec_helper'
require 'moblues/data_model/attribute'
module Moblues
module DataModel
describe Attribute do
describe '#initialize' do
context 'when name and type provided' do
subject { described_class.new(name: 'attribute', type: 'type') }
it 'returns an Attribute object... |
"use strict"
// == Extend Node primitives to use iconv-lite =================================
module.exports = function (iconv) {
var original = undefined; // Place to keep original methods.
// Node authors rewrote Buffer internals to make it compatible with
// Uint8Array and we cannot patch key function... |
package org.springframework.boot.cli.compiler.dependencies;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* {@link DependencyManagement} that delegates to one or more {@link DependencyManagement}
* instances
*
* @author Andy Wilkinson
* @since 1.3.0
*/
public class CompositeD... |
package com.google.security.zynamics.reil.translators.arm;
import static org.junit.Assert.assertEquals;
import com.google.common.collect.Lists;
import com.google.security.zynamics.reil.OperandSize;
import com.google.security.zynamics.reil.ReilInstruction;
import com.google.security.zynamics.reil.TestHelpers;
import ... |
package spark.kafka;
import static org.apache.spark.streaming.kafka.KafkaUtils.createStream;
import java.util.Arrays;
import org.apache.spark.SparkConf;
import org.apache.spark.streaming.Seconds;
import org.apache.spark.streaming.api.java.JavaPairDStream;
import org.apache.spark.streaming.api.java.JavaPairR... |
package dockerfile
// internals for handling commands. Covers many areas and a lot of
// non-contiguous functionality. Please read the comments.
import (
"crypto/sha256"
"encoding/hex"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
"path/filepath"
"runtime"
"sort"
"strings"
"sync"
"time"
"... |
package org.pepstock.charba.client.configuration;
import org.pepstock.charba.client.IsChart;
import org.pepstock.charba.client.defaults.IsDefaultScaledOptions;
import org.pepstock.charba.client.enums.AxisKind;
import org.pepstock.charba.client.enums.IndexAxis;
/**
* Configuration of chart which could be stacked.<br... |
package com.tectonica.jonix.onix3;
import java.io.Serializable;
import com.tectonica.jonix.JPU;
import com.tectonica.jonix.OnixElement;
import com.tectonica.jonix.codelist.LanguageCodes;
import com.tectonica.jonix.codelist.RecordSourceTypes;
import com.tectonica.jonix.codelist.TextFormats;
/*
* NOTE: THIS IS AN A... |
const {ok, equal} = require('assert')
const {spawnSync:spawn} = require('child_process')
describe('module/bin', function(){
Object
.keys(process.env)
.filter(prop => /npm_package_bin/.test(prop))
.forEach(function(prop){
it(`has executable for ${prop}`, () => {
equal(spawn(process.env[prop]... |
package portforward
import (
"errors"
"fmt"
"net/http"
"strconv"
"sync"
"time"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/util/httpstream"
"k8s.io/apimachinery/pkg/util/httpstream/spdy"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
api "k8s.io/kubernetes/pkg/apis/core"
"github.com/go... |
set -e
echo "" > coverage.txt
for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done |
package be.cegeka.batchers.taxcalculator.batch.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.core.task.SimpleAsyncTaskExecutor;
import org.springframework.core.t... |
package com.datatorrent.stram.codec;
import java.util.ArrayList;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.Registration;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;
import com.esotericsoftware.kryo.util.DefaultClassResolver;
import com.esoteric... |
object RecursiveFunction {
class PathsTree(parent: Option[PathsTree]) {
override def toString = /*start*/parent.map(pathsTree => pathsTree.toString)/*end*/.getOrElse("dfadf")
}
}
//Option[String] |
using Neptunium.Core;
using Neptunium.Core.Media.Audio;
using Neptunium.Core.Media.History;
using Neptunium.Core.Media.Metadata;
using Neptunium.Core.Stations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text.Regular... |
package util
import (
"bufio"
"crypto/rand"
"fmt"
"regexp"
"strings"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/cluster-bootstrap/token/api"
)
// validBootstrapTokenChars defines the characters a bootstrap token can consist of
const validBootstrapTokenChars = "0123456789abcdefghijklmnopqrstuvwxyz"
var (
... |
module Mongoid # :nodoc:
module Relations #:nodoc:
module Embedded
# This class defines the behaviour necessary to handle relations that are
# embedded within another relation, either as a single document or
# multiple documents.
class In < Relations::One
# Binds the base object ... |
@protocol JSONRepresentation
@optional
- (id)initWithJSONDataRepresentation:(NSData *)inJSONData;
- (NSData *)JSONDataRepresentation;
@end
|
package io.scribeapp.classifier.remote;
import android.content.Context;
import android.gesture.Gesture;
import android.graphics.Bitmap;
import android.util.Log;
import java.io.IOException;
import javax.inject.Inject;
import javax.inject.Singleton;
import io.scribeapp.classifier.Classifier;
import io.scribeapp.class... |
import base64
import os
from unittest import mock
from cryptography.hazmat.backends import default_backend
from cryptography import x509
import fixtures
from OpenSSL import crypto
from oslo_config import fixture as oslo_fixture
import barbican.plugin.interface.certificate_manager as cm
from barbican.plugin import sna... |
package net.runelite.client.config;
import lombok.Value;
@Value
public class ConfigItemDescriptor
{
private final ConfigItem item;
private final Class<?> type;
private final Range range;
private final Alpha alpha;
}
|
id: 587d7fa9367417b2b2512bd1
title: Change the Color of an SVG Element
required:
- src: 'https://cdnjs.cloudflare.com/ajax/libs/d3/4.3.0/d3.min.js'
challengeType: 6
videoUrl: ''
localeTitle: Alterar a cor de um elemento SVG
---
## Description
<section id="description"> As barras estão na posição correta, mas todas s... |
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_audio_android_AndroidALC */
#ifndef _Included_com_jme3_audio_android_AndroidALC
#define _Included_com_jme3_audio_android_AndroidALC
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_audio_android_AndroidA... |
<?php
/**
* Zend_XmlRpc_Response
*/
require_once 'Zend/XmlRpc/Response.php';
/**
* HTTP response
*
* @uses Zend_XmlRpc_Response
* @category Zend
* @package Zend_XmlRpc
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-... |
int main(int argc,char** argv)
{
Raytracer* raytraceDemo = new Raytracer();
raytraceDemo->initPhysics();
raytraceDemo->setCameraDistance(6.f);
return glutmain(argc, argv,640,640,"Bullet GJK Implicit Shape Raytracer Demo",raytraceDemo);
}
|
<!---
category: NetworkingAndWebServices
samplefwlink: http://go.microsoft.com/fwlink/p/?LinkId=620606
--->
# Socket activity trigger stream socket sample
This sample shows how to use the Socket Activity Stream Socket API to keep a socket connection alive beyond the lifetime of the application.
This sample conn... |
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
fi
f... |
cask 'porting-kit' do
version '2.5.31'
sha256 '92a8718430f789ebcbb1c98f8998c335af950812607412e8bcb525ec5e4c9f0e'
url "http://portingkit.com/kit/Porting%20Kit%20#{version}.zip"
appcast 'http://portingkit.com/kit/updatecast.xml',
checkpoint: 'e015eb49f8950e96bf8e2bd87a0fe04748b5a174a47bcf61cfb10e688338... |
exports.executeJsRunner = function(specCollection, done, jasmineEnv, setupFile) {
var specs,
specLoader = require('./requirejs-spec-loader'),
requirejs = require('requirejs'),
vm = require('vm'),
fs = require('fs'),
coffeescript = require('coffee-script'),
template = fs.readFileSyn... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ReflectionToEcmaCil
{
public struct QueuedArrayType : IEquatable<QueuedArrayType>
{
public readonly Type ArrayType;
public QueuedArrayType(Type arrayType)
{
ArrayTy... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/datastore/admin/v1/datastore_admin.proto
namespace Google\Cloud\Datastore\Admin\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Metadata for ImportEntit... |
import pdb
import warnings
import numpy as np
import pickle
from scipy import sparse
from scipy.spatial import distance
from sklearn.neighbors import NearestNeighbors
from sklearn.metrics.pairwise import cosine_similarity
warnings.filterwarnings('error')
def getUserProfiles(userData, questionData, trainData, qList... |