text stringlengths 3 1.05M |
|---|
define([
"./core",
"./attributes/attr",
"./attributes/prop",
"./attributes/classes",
"./attributes/val"
], function( jQuery ) {
// Return jQuery for attributes-only inclusion
return jQuery;
});
|
"""
Tests common to genericpath, macpath, ntpath and posixpath
"""
import genericpath
import os
import sys
import unittest
import warnings
from test import support
def safe_rmdir(dirname):
try:
os.rmdir(dirname)
except OSError:
pass
class GenericTest:
common_attributes = ['commonprefix'... |
package com.thoughtworks.go.domain.cctray;
import com.thoughtworks.go.config.PipelineConfig;
import com.thoughtworks.go.config.StageConfig;
import com.thoughtworks.go.domain.activity.ProjectStatus;
import com.thoughtworks.go.server.dao.StageDao;
import com.thoughtworks.go.server.domain.StageIdentity;
import org.spri... |
import * as React from "react";
import * as TestRenderer from "react-test-renderer";
import Sub from "../src/sub";
import withSubscriptions from "../src/with_subs";
function MyComponent(_props: any) {
return React.createElement("span", {}, "Hello World");
}
describe("withSubscriptions", () => {
let subscriptionsC... |
/* $OpenBSD: ts_rsp_print.c,v 1.4 2014/06/12 15:49:31 deraadt Exp $ */
/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
* project 2002.
*/
/* ====================================================================
* Copyright (c) 2006 The OpenSSL Project. All rights reserved.
*
* Redistribution and u... |
namespace leveldb {
class SequentialFile;
namespace log {
class Reader {
public:
// Interface for reporting errors.
class Reporter {
public:
virtual ~Reporter();
// Some corruption was detected. "size" is the approximate number
// of bytes dropped due to the corruption.
virtual void Corrupt... |
link jquery/dist/jquery.min.js |
**Install OpenStack Client**
```shell
sudo pip install python-openstackclient
```
**Setup OpenStack auth environment variables, such as**
```shell
unset OS_SERVICE_TOKEN
export OS_USERNAME=username
export OS_PASSWORD=password
export OS_AUTH_URL=http://auth-server:5000/v2.0
export OS_TENANT_NAME=tenant-name
export OS... |
.vis .overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* Must be displayed above for example selected Timeline items */
z-index: 10;
}
.vis-active {
box-shadow: 0 0 10px #86d5f8;
}
/* override some bootstrap styles screwing up the timelines css */
.vis [class*="span"] {
m... |
cask 'drop-to-gif' do
version '1.28'
sha256 'e4814912d1054f9d1c56357d10480ffb59996e59a54b969b45b2d01835fdc707'
# github.com/mortenjust/droptogif was verified as official when first introduced to the cask
url "https://github.com/mortenjust/droptogif/releases/download/#{version}/Drop.to.GIF#{version.no_dots}.zip... |
var funcis = require('funcis'),
app = funcis(),
dataNode = require('./data-node').register(app),
uiNode = require('./ui-node').register(app);
app.script('init');
|
import unittest
import os
import simpy
from simpy.tests.tutils import get_current_folder_path
class MyTestCase(unittest.TestCase):
def test_iter_loop(self):
xml_path = os.path.join(get_current_folder_path(),'resources', 'simulation_cfg.xml')
tr = simpy.read_from_xml(xml_path)
c = 0
... |
"""DO NOT MODIFY. Auto-generated by build_frontend script."""
VERSION = "fa0e5d3ffc68244b9ab5b1f0038f06cd"
|
import argparse
import datetime
import time
from wrfpy.wrf import run_wrf
from wrfpy import utils
def main():
'''
Main function to initialize WPS timestep:
- converts cylc timestring to datetime object
- calls wrf.__init() and initialize()
'''
WRF = run_wrf()
WRF.run_real()
if __name_... |
package ssh
import (
"bytes"
"errors"
"fmt"
"io"
"net"
"sort"
"time"
)
// These constants from [PROTOCOL.certkeys] represent the algorithm names
// for certificate types supported by this package.
const (
CertAlgoRSAv01 = "ssh-rsa-cert-v01@openssh.com"
CertAlgoDSAv01 = "ssh-dss-cert-v01@openssh... |
<?php
namespace litepubl\view;
class AutoVars extends \litepubl\core\Items
{
use \litepubl\core\PoolStorageTrait;
public $defaults;
public function create()
{
$this->dbversion = false;
parent::create();
$this->basename = 'autovars';
$this->defaults = [
'post'... |
require 'net/http'
require 'date'
require 'open-uri'
require 'fileutils'
require 'mechanize'
require 'tempfile'
require 'dropbox'
require 'http'
%w(
version
zeitung
dropbox_client
file_client
index_page
downloader
password
passwords
).each { |file| require File.join(File.dirname(__FILE__), 'zeitungen'... |
import { FlattenedSign } from '../flattened/sign.js';
import { JWSInvalid } from '../../util/errors.js';
class IndividualSignature {
constructor(sig, key, options) {
this.parent = sig;
this.key = key;
this.options = options;
}
setProtectedHeader(protectedHeader) {
if (this.pr... |
package app
import (
"github.com/golang/glog"
autoscalingv1 "k8s.io/api/autoscaling/v1"
"k8s.io/apiserver/pkg/registry/generic"
"k8s.io/apiserver/pkg/registry/rest"
genericapiserver "k8s.io/apiserver/pkg/server"
"k8s.io/apiserver/pkg/server/storage"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/apis/aut... |
namespace Common
{
public interface ICredentialRepository
{
string TenantId { get; }
bool ValidateCredential(string username, string password);
}
}
|
#pragma once
/** @file SequentialIntegerSet.h
@brief The SequentialIntegerSet class. */
#pragma once
#include "kNet/Alignment.h"
#include "kNet/NetworkLogging.h"
namespace kNet
{
class SequentialIntegerSet
{
public:
explicit SequentialIntegerSet(int tableSize_)
:tableSize(tableSize_), tableSize... |
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"... |
package com.thingtrack.konekti.view.addon.ui;
import org.vaadin.addon.formbinder.ViewBoundForm;
import com.vaadin.annotations.AutoGenerated;
import com.vaadin.data.util.BeanItem;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.CustomComponen... |
function varargout = SmoothEdges(share, p, s, dslip, c)
%
% SmoothEdges creates the smoothing matrix allowing the mesh edges
% that are adjacent to rectangular patches to be smoothed, as well
% as the elements wholly within the mesh.
%
% Inputs:
%
% share = array of indices of adjacent elements
% p ... |
package com.bn.gridandweather;
import java.util.Calendar;
import java.util.TimeZone;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
public class TimeService extends Service {
Thread task;
boolean flag = true;//Ïß³ÌÑ»·±êÖ¾
public static String mWay,mYear,mMonth,mDay... |
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace OrchardCore.Modules
{
public static class EnumerableExtensions
{
public static Task ForEachAsync<T>(this IEnumerable<T> source, Func<T, Task> body)
{
... |
package org.camunda.bpm.client.backoff;
import org.camunda.bpm.client.exception.ExternalTaskClientException;
import org.camunda.bpm.client.task.ExternalTask;
import java.util.List;
/**
* <p>Provides an exponential backoff strategy when an error occurs fetching external tasks.
*
* <p>Note this strategy does not p... |
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
!function ($) {
$(function () {
// IE10 viewport hack for Surface/desktop Windows 8 bug
//
// See Getting Started docs for more information
if (navigator.userAgent.matc... |
package hope.analyzer.job.policy28;
import hope.analyzer.model.KLineInfo;
import hope.analyzer.util.BusinessException;
/**
* Created by bing.a.qian on 10/2/2017.
*/
public class TwoEightJob2 extends BaseTwoEightJob{
protected void operate(KLineInfo current300, double week4Range300, KLineInfo current500, double... |
package org.springframework.security.crypto.keygen;
/**
* A generator for unique byte array-based keys.
* @author Keith Donald
*/
public interface BytesKeyGenerator {
/**
* Get the length, in bytes, of keys created by this generator. Most unique keys are
* at least 8 bytes in length.
*/
int getKeyLength()... |
package com.kevinquan.cwa.model.creatures.rainbow;
public class DroolingDude extends AbstractRainbowCreature {
@SuppressWarnings("unused")
private static final String TAG = DroolingDude.class.getSimpleName();
public DroolingDude() {
super("Drooling Dude", 5, Rarity.AlgebraicRare);
mD... |
namespace webdriver {
ExecuteAsyncScriptCommandHandler::ExecuteAsyncScriptCommandHandler(void) {
}
ExecuteAsyncScriptCommandHandler::~ExecuteAsyncScriptCommandHandler(void) {
}
void ExecuteAsyncScriptCommandHandler::ExecuteInternal(
const IECommandExecutor& executor,
const ParametersMap& command_parameters,
... |
<?php
namespace Berrybird\Cerberus\Credential;
interface CredentialMatcher
{
/**
* Determines if provided credentials are equal
*
* @param mixed $credential1 The first credential
* @param mixed $credential2 The second credential
* @return bool
*/
public function equals(... |
package com.oracle.truffle.llvm.parser.impl;
import com.intel.llvm.ireditor.lLVM_IR.StructureConstant;
import com.intel.llvm.ireditor.lLVM_IR.TypedConstant;
import com.intel.llvm.ireditor.types.ResolvedAnyIntegerType;
import com.intel.llvm.ireditor.types.ResolvedArrayType;
import com.intel.llvm.ireditor.types.Resolve... |
title: "Réunion de vision de GT Location"
date: 2016-03-07 16:54
layout: post
category: ["vidéo"]
tags: ["GT Location", "Michel Sarrat", "Christophe Le Buhan"]
embed_youtube: jaUkSx8EKTs
illustration: /images/jaUkSx8EKTs.jpg
---
Compte rendu vidéo de 5 minutes de la réunion de vision de GT Location du 15 février 2014... |
set -o errexit
set -o nounset
set -o pipefail
readonly ROOT=$(dirname "${BASH_SOURCE}")
source ${ROOT}/config-build.sh
# ensure $RELEASES_DIR is an absolute file path
mkdir -p ${RELEASES_DIR}
RELEASES_DIR=$(cd ${RELEASES_DIR}; pwd)
# get absolute file path of binaries
BINARY_DIR=$(cd ${ROOT}; pwd)/binaries
function... |
.class public Landroid/view/inputmethod/ExtractedText;
.super Ljava/lang/Object;
.source "ExtractedText.java"
# interfaces
.implements Landroid/os/Parcelable;
# static fields
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
.annotation system Ldalvik/annotation/Signature;
value = {
... |
<!doctype html>
<html>
<head>
<title>Submarine</title>
<link rel="stylesheet" type="text/css" href="../static/css/style.css" />
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=device-width, initial-scale=1.0, ... |
<h1 id="offline_enabled">Manifest - Offline Enabled</h1>
<p>
Whether the app or extension is expected to work offline. When Chrome detects
that it is offline, apps with this field set to true will be highlighted
on the New Tab page.
</p>
<p>
As of Chrome 35, apps are assumed to be offline enabled and the default valu... |
@interface StuffRemembererTests : XCTestCase
@property (nonatomic, strong) StuffRememberer *rememberer;
@end
@implementation StuffRemembererTests
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
self.rememberer = [[... |
// Generated on Mon Mar 17 18:02:09 MSK 2008
// DTD/Schema : http://maven.apache.org/POM/4.0.0
package org.jetbrains.idea.maven.dom.model;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.idea.maven.dom.MavenDomElement;
import java.util.List;
/**
* http://maven.apache.org/POM/4.0.0:exclusionsEl... |
<?php
require __DIR__ . '/PhpParser/Autoloader.php';
PhpParser\Autoloader::register(); |
/*
* 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
* distributed u... |
/***************************************************************************/
/* */
/* smooth.c */
/* */
/* Fr... |
describe('amd(requirejs) test', function() {
beforeEach(function () {
browser.get('/amd.html');
});
it('should compile inner text', function() {
expect(element(by.id('btn')).getText()).toEqual('ladda button');
});
it('should exist ladda-label span tag', function() {
expect(element(by.css('#btn .... |
class Entry < ActiveRecord::Base
# Remember to create a migration!
end
|
module Instructor::CourseAssignmentsHelper
end
|
/**
* Immutable Data
* ==============
*
* Immutable data encourages pure functions (data-in, data-out) and lends itself
* to much simpler application development and enabling techniques from
* functional programming such as lazy evaluation.
*
* While designed to bring these powerful functional concepts to Jav... |
cask 'time-lapse-assembler' do
version :latest
sha256 :no_check
url 'http://www.dayofthenewdan.com/TimeLapseAssembler.dmg'
name 'Time Lapse Assembler'
homepage 'http://www.dayofthenewdan.com/projects/time-lapse-assembler-1/'
app 'Time Lapse Assembler.app'
end
|
#pragma once
#define FOLLY_GEN_COMBINE_H_
#include <folly/gen/Base.h>
namespace folly {
namespace gen {
namespace detail {
template<class Container>
class Interleave;
template<class Container>
class Zip;
} // namespace detail
template<class Source2,
class Source2Decayed = typename std::decay<Source2>:... |
namespace sandbox {
// This header contains the core policy evaluator. In its simplest form
// it evaluates a stream of opcodes assuming that they are laid out in
// memory as opcode groups.
//
// An opcode group has N comparison opcodes plus 1 action opcode. For
// example here we have 3 opcode groups (A, B,C):
//
//... |
package com.amazonaws.services.ecs.model.transform;
import java.util.Map;
import java.util.Map.Entry;
import com.amazonaws.services.ecs.model.*;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
import com.amazonaws.transform.*;
import com.fasterxml.jackson.core.JsonToken;
import static com.fasterxml.j... |
'use strict';
var cls = require('../../cls.js');
var TraceLabels = require('../../trace-labels.js');
var shimmer = require('shimmer');
var semver = require('semver');
var constants = require('../../constants.js');
var urlParse = require('url').parse;
var agent;
var SUPPORTED_VERSIONS = '8 - 16';
function connectio... |
package org.dartlang.analysis.server.protocol;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import com.google.common.collect.Lists;
import com.google.dart.server.utilities.general.JsonUtilities;
import com.google.dart.server.utilities.general.ObjectUtilities;
import com.google.gson.JsonArray;... |
#ifndef _DB_UTIL_H
#define _DB_UTIL_H
#include "global.h"
#include "erl_message.h"
/*#define HARDDEBUG 1*/
#ifdef DEBUG
/*
** DMC_DEBUG does NOT need DEBUG, but DEBUG needs DMC_DEBUG
*/
#define DMC_DEBUG 1
#endif
/*
* These values can be returned from the functions performing the
* BIF operation for different ... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
//#include <stdio.h>
#include <assert.h>
#include "mtx_critsect.h"
CsWaiterReturnState MTXWaitOnCS(LPCRITICAL_SECTION lpCriticalSection);
void MTXDoActualWait(L... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>tactician-dummy: 18 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
#!/bin/sh
set -e
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
install_resource()
{
case $1 in
*.storyboard)
echo "ibtool --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/... |
var common = require('../common');
var assert = common.assert;
var CombinedStream = common.CombinedStream;
var fs = require('fs');
var FILE1 = common.dir.fixture + '/file1.txt';
var FILE2 = common.dir.fixture + '/file2.txt';
var EXPECTED = fs.readFileSync(FILE1) + fs.readFileSync(FILE2);
(function testDelayedStreams(... |
namespace base {
namespace win {
// An exception filter for a WindowProc. The return value determines how the
// exception should be handled, following standard SEH rules. However, the
// expected behavior for this function is to not return, instead of returning
// EXCEPTION_EXECUTE_HANDLER or similar, given that in g... |
package org.apache.kafka.common.requests;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.kafka.common.TopicPartition;
import org.apache.kafka.common.protocol.ApiKeys;
import org.apache.kafka.common.protocol.Errors;
impo... |
package logs
import (
"os"
"time"
"github.com/go-logr/logr"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
// Inspired from https://github.com/go-logr/zapr, some functions is copy from the repo.
var (
// JSONLogger is global json log format logr
JSONLogger logr.Logger
// timeNow stubbed out for testing
t... |
<?php
/**
* Class that handles reCAPTCHA.
*/
class Jetpack_ReCaptcha {
/**
* URL to which requests are POSTed.
*
* @const string
*/
const VERIFY_URL = 'https://www.google.com/recaptcha/api/siteverify';
/**
* Site key to use in HTML code.
*
* @var string
*/
private $site_key;
/**
* Shared se... |
require "spec_helper"
describe Api::ToolsController do
include Devise::Test::ControllerHelpers
describe "#destroy" do
let(:user) { FactoryBot.create(:user) }
let(:tool_slot) { FactoryBot.create(:tool_slot) }
let!(:tool) {
Point.destroy_all
FactoryBot.create(:tool,
to... |
import {Injectable} from '@angular/core';
@Injectable({
providedIn: 'root',
})
export class Service {
}
|
namespace base {
// A SingleThreadTaskRunner is a SequencedTaskRunner with one more
// guarantee; namely, that all tasks are run on a single dedicated
// thread. Most use cases require only a SequencedTaskRunner, unless
// there is a specific need to run tasks on only a single thread.
//
// SingleThreadTaskRunner imp... |
<?php
namespace Symfony\Component\HttpKernel\Fragment;
/**
* Implements the ESI rendering strategy.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class EsiFragmentRenderer extends AbstractSurrogateFragmentRenderer
{
/**
* {@inheritdoc}
*/
public function getName()
{
return '... |
var fast = require('../'),
history = require('../test/history'),
underscore = require('underscore'),
lodash = require('lodash');
var input = [];
for (var i = 0; i < 1000; i++) {
input.push(i);
}
exports['Array::lastIndexOf()'] = function () {
return input.lastIndexOf(999) + input.lastIndexOf(1);
};
... |
package org.apache.rya.indexing.mongo;
import static org.apache.rya.api.resolver.RdfToRyaConversions.convertStatement;
import static org.apache.rya.indexing.GeoIndexingTestUtils.getSet;
import java.util.Collections;
import java.util.Set;
import org.apache.rya.indexing.GeoConstants;
import org.apache.rya.indexing... |
using System.Drawing;
using System.Windows.Forms;
using XenAdmin.Actions;
using XenAdmin.Core;
using XenAPI;
namespace XenAdmin.SettingsPanels
{
public partial class LivePatchingEditPage : UserControl, IEditPage
{
private Pool pool;
public LivePatchingEditPage()
{
... |
/* ************************************ */
/* Define helper functions */
/* ************************************ */
//
function getDisplayElement() {
$('<div class = display_stage_background></div>').appendTo('body')
return $('<div class = display_stage></div>').appendTo('body')
}
var practiceCount = 0
var getPrac... |
#include "unicode/unistr.h"
// Verify that a UErrorCode is successful; exit(1) if not
void check(UErrorCode& status, const char* msg);
// Replace nonprintable characters with unicode escapes
UnicodeString escape(const UnicodeString &source);
// Print the given string to stdout
void uprintf(const UnicodeString &str... |
/*! UIkit 2.12.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(addon) {
var component;
if (jQuery && jQuery.UIkit) {
component = addon(jQuery, jQuery.UIkit);
}
if (typeof define == "function" && define.amd) {
define("uikit-notify", ["uikit"], function(){
... |
@import Cocoa;
#import <LuaSkin/LuaSkin.h>
#pragma clang diagnostic ignored "-Wgnu-conditional-omitted-operand"
#define mainThreadDispatch(...) dispatch_async(dispatch_get_main_queue(), ^{ @autoreleasepool {__VA_ARGS__;} })
// Helper for Lua callbacks
static int refTable = LUA_NOREF;
// Userdata struct
typedef struc... |
package com.ack.adventureandconquer.game.creature.npc.animal;
import com.ack.adventureandconquer.game.creature.npc.Npc;
import java.util.ArrayList;
import java.util.List;
/**
* Created by flhuebner on 20.05.2015.
*/
public class RattlerSnake extends Npc {
public static List<Npc> getGroup() {
int grou... |
package lab3;
/**
* Created by Alex on 16-02-24.
*/
public class BinaryTree <E extends Comparable<? super E>>{
/** Class to encapsulate a Tree Node */
protected class Node<E extends Comparable<? super E>> {
// Data Fields
/** The information stored */
protected E data;
/** r... |
package com.intellij.util.xml.highlighting;
import com.intellij.util.xml.DomElement;
public interface DomElementsAnnotator {
void annotate(DomElement element, DomElementAnnotationHolder holder);
}
|
class PrefRegistrySimple;
class PrefService;
namespace user_prefs {
class PrefRegistrySyncable;
}
namespace invalidation {
// Wraps PrefService in an InvalidationStateTracker to allow SyncNotifiers
// to use PrefService as persistence for invalidation state. It is not thread
// safe, and lives on the UI thread.
clas... |
package com.intellij.compiler.ant;
import com.intellij.compiler.ant.taskdefs.*;
import com.intellij.openapi.compiler.CompilerBundle;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.roots.ProjectFileIndex;
import com.intellij.openapi.roots.ProjectRootManager;
import com.intellij.openapi.util.C... |
package options
import (
"github.com/spf13/pflag"
podgcconfig "k8s.io/kubernetes/pkg/controller/podgc/config"
)
// PodGCControllerOptions holds the PodGCController options.
type PodGCControllerOptions struct {
*podgcconfig.PodGCControllerConfiguration
}
// AddFlags adds flags related to PodGCController for con... |
#include "MODSERIAL.h"
#include "MACROS.h"
namespace AjK {
int
MODSERIAL::__putc(int c, bool block) {
// If no buffer is in use fall back to standard TX FIFO usage.
// Note, we must block in this case and ignore bool "block"
// so as to maintain compat with Mbed Serial.
if (buffer... |
package com.udacity.gamedev.gigagal.util;
public class Enums {
public enum Direction {
LEFT, RIGHT
}
public enum JumpState {
JUMPING,
FALLING,
GROUNDED,
RECOILING
}
public enum WalkState {
NOT_WALKING,
WALKING
}
}
|
package _generated
import (
"testing"
)
func TestConvertDataFromAEmbeddedStructToANonEmbeddedStruct(t *testing.T) {
getUserRequestWithEmbeddedStruct := GetUserRequestWithEmbeddedStruct{
Common: Common{
RequestID: 10,
Token: "token",
},
UserID: 1000,
}
bytes, err := getUserRequestWithEmbeddedStruc... |
<x-meta id="polymer-ui-menu-button" label="Polymer Menu Button" isContainer>
<template>
<polymer-ui-menu-button selected="0" theme="polymer-ui-light-theme">
<polymer-ui-menu-item icon="settings" label="Settings"></polymer-ui-menu-item>
<polymer-ui-menu-item icon="dialog" label="Dialog"></polymer-ui-m... |
package org.drools.compiler.lang.descr;
import java.text.DecimalFormat;
import java.text.ParseException;
import java.util.Locale;
public class LiteralDescr extends BaseDescr {
public static final int TYPE_NULL = 1;
public static final int TYPE_NUMBER = 2;
public static final int TYPE_S... |
var baseDifference = require('./_baseDifference'),
baseFlatten = require('./_baseFlatten'),
baseRest = require('./_baseRest'),
isArrayLikeObject = require('./isArrayLikeObject'),
last = require('./last');
/**
* This method is like `_.difference` except that it accepts `comparator`
* which is ... |
Note: This page is intended for Jenkins plugin developers which want to provide DSL methods for their plugins. If you
are a DSL user, have a look at the [[configure block|The Configure Block]], the [[user power moves|User Power Moves]]
and at the [[examples|Real World Examples]] for hints about extending the DSL as a u... |
title: Data Calon DPRD Bengkul Sumut
organization: KPU REPUBLIK INDONESIA
notes: Data Calon DPRD Bengkul Sumut
resources:
- name: CSV Data Calon DPRD Bengkul Sumut
url: 'https://github.com/pemiluAPI/pemilu-data/raw/master/calon/2014/dprd_sumut/calon-dprd_sumut.csv'
format: csv
category:
- Calon
maintainer: ... |
<component name="libraryTable">
<library name="support-annotations-25.3.1">
<CLASSES>
<root url="jar://$USER_HOME$/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-annotations/25.3.1/support-annotations-25.3.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<roo... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Run-time GCD & LCM Determination</title>
<link rel="stylesheet" href="../math.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
<link rel="home" href="../index.html" title="Math Toolkit ... |
from collections import Counter
import datasets
import transformers
from transformers.convert_slow_tokenizer import SLOW_TO_FAST_CONVERTERS
from transformers.utils import logging
logging.set_verbosity_info()
TOKENIZER_CLASSES = {
name: (getattr(transformers, name), getattr(transformers, name + "Fast")) for name ... |
<?php
namespace Symfony\Component\Intl\DateFormatter\DateFormat;
use Symfony\Component\Intl\Exception\NotImplementedException;
/**
* Parser and formatter for time zone format
*
* @author Igor Wiedler <igor@wiedler.ch>
*/
class TimeZoneTransformer extends Transformer
{
/**
* {@inheritdoc}
*
*... |
webshims.register('jmebase', function($, webshims, window, doc, undefined){
"use strict";
var props = {};
var fns = {};
var slice = Array.prototype.slice;
var readyLength = 0;
var options = $.extend({selector: '.mediaplayer'}, webshims.cfg.mediaelement.jme);
var baseSelector = options.selector;
webshims.cfg.m... |
#include "webrtc/modules/desktop_capture/window_capturer.h"
#include <assert.h>
#include "webrtc/modules/desktop_capture/desktop_frame.h"
namespace webrtc {
namespace {
class WindowCapturerNull : public WindowCapturer {
public:
WindowCapturerNull();
virtual ~WindowCapturerNull();
// WindowCapturer interf... |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.apa... |
Article 257
----
Le juge peut prendre, dès la requête initiale, des mesures d'urgence.
Il peut, à ce titre, autoriser l'époux demandeur à résider séparément, s'il y a
lieu avec ses enfants mineurs.
Il peut aussi, pour la garantie des droits d'un époux, ordonner toutes mesures
conservatoires telles que l'apposition de... |
package message
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestPingreqMessageDecode(t *testing.T) {
msgBytes := []byte{
byte(PINGREQ << 4),
0,
}
msg := NewPingreqMessage()
n, err := msg.Decode(msgBytes)
require.NoError(t, err, "Error decoding message.")
require.Equal(t, len(msgByte... |
"""Tests for grr.parsers.ie_history."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
import datetime
import io
import os
from absl import app
from future.builtins import str
from grr_response_core.lib.parsers import ie_history
from grr.test_lib import... |
using System.Net;
using Xunit;
using static InMobile.Sms.ApiClient.Test.UnitTestHttpServer;
namespace InMobile.Sms.ApiClient.Test.Blacklist
{
public class GetById_Integration_Test
{
[Fact]
public void GetById_Test()
{
var responseJson = @"{
"... |
//*********************************************************//
// Copyright (c) Microsoft. All rights reserved.
//
// Apache 2.0 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,... |