text stringlengths 3 1.05M |
|---|
namespace autoboost { namespace mpl {
namespace aux {
template< int size, typename F, typename Args >
struct unpack_args_impl;
template< typename F, typename Args >
struct unpack_args_impl< 0,F,Args >
: apply0<
F
>
{
};
template< typename F, typename Args >
struct unpack_args_impl< 1,F,Args >
... |
const express = require('express');
const jwt = require('express-jwt');
const dotenv = require('dotenv');
const fs = require('fs');
const sendgrid = require('sendgrid');
const { rdpe } = require('./rdpe.js');
const s3 = require('./s3.js');
const ApiError = require('../error.js');
const multer = require('multer');
con... |
/**
* @author timothypratley / https://github.com/timothypratley
*/
THREE.OctahedronGeometry = function ( radius, detail ) {
var vertices = [
1, 0, 0, - 1, 0, 0, 0, 1, 0, 0, - 1, 0, 0, 0, 1, 0, 0, - 1
];
var indices = [
0, 2, 4, 0, 4, 3, 0, 3, 5, 0, 5, 2, 1, 2, 5, 1, ... |
package org.apache.hadoop.resourceestimator.common.serialization;
import org.apache.hadoop.yarn.api.records.Resource;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeT... |
.oo-ui-icon-bigger {
background-image: /* @embed */ url(themes/mediawiki/images/icons/bigger-rtl.png);
}
.oo-ui-icon-smaller {
background-image: /* @embed */ url(themes/mediawiki/images/icons/smaller-rtl.png);
}
.oo-ui-icon-subscript {
background-image: /* @embed */ url(themes/mediawiki/images/icons/subscript-rtl.p... |
<?xml version="1.0" encoding="UTF-8"?>
<nifty xmlns="http://nifty-gui.sourceforge.net/nifty-1.3.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://nifty-gui.sourceforge.net/nifty-1.3.xsd http://nifty-gui.sourceforge.net/nifty-1.3.xsd">
<useStyles filename="nifty-default-styles.x... |
In the category <strong>Other</strong> you have different options to set Advanced configurations in your View.
<strong>Machine Name:</strong>
You can change the default machine name of the view.
<strong>Comment: No comment</strong>
You can Use the comment option to write comments for your Views, the comments are only... |
"use strict";
if (!require("./is-implemented")()) {
Object.defineProperty(Math, "acosh", { value: require("./shim"),
configurable: true,
enumerable: false,
writable: true });
}
|
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="... |
/*
* 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 under t... |
define("ace/ext/statusbar",["require","exports","module","ace/lib/dom","ace/lib/lang"], function(require, exports, module) {
"use strict";
var dom = require("ace/lib/dom");
var lang = require("ace/lib/lang");
var StatusBar = function(editor, parentNode) {
this.element = dom.createElement("div");
this.element.c... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
... |
package duration
import (
"fmt"
"time"
)
// ShortHumanDuration returns a succint representation of the provided duration
// with limited precision for consumption by humans.
func ShortHumanDuration(d time.Duration) string {
// Allow deviation no more than 2 seconds(excluded) to tolerate machine time
// inconsis... |
def find_file(file)
puts "Copying #{file}" if $DEBUG
if Rake::Task.task_defined?(file) and Rake::Task[file].out
# Grab the "out" of the task represented by this symbol
t = Rake::Task[file]
file = t.out
end
if (file.is_a? Symbol)
file = file.to_s
end
if File.exists?(file)
return ... |
import hashlib
import sys
import time
import warnings
from django.conf import settings
from django.db.utils import load_backend
from django.utils.deprecation import RemovedInDjango18Warning
from django.utils.encoding import force_bytes
from django.utils.functional import cached_property
from django.utils.six.moves imp... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_45) on Sat Oct 15 09:06:18 PDT 2016 -->
<title>VersionMBean (Apache Derby 10.13 API Documentation)</title>
<meta name="date" content="2016-10-1... |
namespace content {
class WebContents;
} // namespace content
namespace ukm {
class UkmBackgroundRecorderService;
} // namespace ukm
namespace url {
class Origin;
} // namespace url
class ContentIndexMetrics {
public:
explicit ContentIndexMetrics(
ukm::UkmBackgroundRecorderService* ukm_background_service... |
class Group
include MongoMapper::Document
include Mongo::Followable::Followed
include Mongo::Followable::History
end |
<?xml version="1.0" encoding="UTF-8"?>
<!--
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... |
package com.todo.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.InputElement;
import com.google.gwt.dom.client.SpanElement;
import com.google.gwt.dom.client.Style.Display;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt... |
package androidx.recyclerview.selection;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.filters.SmallTest;
import org.junit.Before;
import org.junit.Test;
... |
package fileutil
import (
"os"
"syscall"
)
// Fsync is a wrapper around file.Sync(). Special handling is needed on darwin platform.
func Fsync(f *os.File) error {
return f.Sync()
}
// Fdatasync is similar to fsync(), but does not flush modified metadata
// unless that metadata is needed in order to allow a subseq... |
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y && apt-get -y install \
tzdata \
python-pip \
python-dev \
nmap \
curl \
libffi-dev \
build-essential \
libssl-dev && \
rm -rf /var/lib/apt/lists/*
RUN ln -fs /usr/share/zoneinfo/Etc/UTC /e... |
package pl.grabinski.slayer;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class InstanceService {
private final InstanceRepository instanceRepository;
public InstanceService(InstanceRepository instanceRepository) {
... |
'use strict';
angular.module('myApp.bills', ['ngRoute', 'Algorithm'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/bills', {
templateUrl: 'bills/bills.html',
controller: 'View1Ctrl'
});
}])
.controller('View1Ctrl', ["$scope", "findSu... |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<script src="../../resources/js-test.js"></script>
<script type="text/javascript">
description('Test that synthetic mouse events from touch events should have a sourceCapabilities and its firesTouchEvents should be true.');
function mouseHandler(event) {
debug(event.t... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Generated by Apache Maven Doxia Site Renderer 1.4 at 2019-07-31 -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="tex... |
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from .scale import scale
from copy import deepcopy
class scale_y_log(scale):
def __init__(self, base=10):
self.base = base
def __radd__(self, gg):
gg = deepcopy(gg)
gg.scale_y_l... |
.class Lcom/android/server/AppWidgetServiceImpl$Host;
.super Ljava/lang/Object;
.source "AppWidgetServiceImpl.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/android/server/AppWidgetServiceImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFla... |
import PureComponent from '../PureComponent';
var React = require('react');
var Sortable = require('../views/Sortable');
var gaEvents = require('../gaEvents');
// We skip the first column to keep 'samples' on the left.
function makeSortable(Component) {
return class extends PureComponent {
static displayName = '... |
package org.apache.hadoop.yarn.server.api.protocolrecords;
import org.apache.hadoop.classification.InterfaceAudience.Private;
import org.apache.hadoop.classification.InterfaceStability.Unstable;
import org.apache.hadoop.yarn.api.records.NodeId;
import org.apache.hadoop.yarn.util.Records;
/**
* This class is used t... |
use strict;
use warnings;
use 5.8.0;
use English qw( -no_match_vars );
use File::Slurp;
use Getopt::Long;
GetOptions(
'help' => \(my $help = 0),
'n' => \(my $n = 500),
'predictions=s' => \(my $prediction_file = ''),
'ground-truth=s' => \(my $ground_truth_file = ''),
) or usage(-1);
u... |
#import "CDVInvokedUrlCommand.h"
#import "CDVJSON_private.h"
@implementation CDVInvokedUrlCommand
@synthesize arguments = _arguments;
@synthesize callbackId = _callbackId;
@synthesize className = _className;
@synthesize methodName = _methodName;
+ (CDVInvokedUrlCommand*)commandFromJson:(NSArray*)jsonEntry
{
re... |
<?php
use Mockery as m;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
class DatabaseEloquentBuilderTest extends PHPUnit_Framework_TestCase
{
public function tearDown()
{
m::close();
}
public function testFindMethod()
{
$builder = m::mock('I... |
package com.pivotal.gemfirexd.ddl;
import java.sql.SQLException;
import com.pivotal.gemfirexd.callbacks.RowLoader;
import com.pivotal.gemfirexd.internal.engine.Misc;
import com.pivotal.gemfirexd.internal.iapi.services.sanity.SanityManager;
public class GfxdTestRowLoader implements RowLoader {
private final int a... |
from django.apps import apps
from django.contrib.sites.models import Site
from django.test import TestCase
from django.test.utils import modify_settings, override_settings
@override_settings(
ROOT_URLCONF='flatpages_tests.urls',
SITE_ID=1,
)
@modify_settings(
INSTALLED_APPS={
'append': ['django.co... |
/* Latvian translation for the jQuery Timepicker Addon */
/* Written by Dmitry Bogatykh */
(function($) {
$.timepicker.regional['lv'] = {
timeOnlyTitle: 'Ievadiet laiku',
timeText: 'Laiks',
hourText: 'Stundas',
minuteText: 'Minūtes',
secondText: 'Sekundes',
millisecText: 'Milisekundes',
microsecText: 'Mi... |
use paging::PhysicalAddress;
use super::{Frame, FrameAllocator, MemoryArea, MemoryAreaIter};
pub struct AreaFrameAllocator {
next_free_frame: Frame,
current_area: Option<&'static MemoryArea>,
areas: MemoryAreaIter,
kernel_start: Frame,
kernel_end: Frame
}
impl AreaFrameAllocator {
pub fn new... |
<?php
namespace Propel\Runtime\ActiveQuery\Criterion;
use Exception;
use Propel\Runtime\ActiveQuery\Criteria;
use Propel\Runtime\Adapter\AdapterInterface;
use Propel\Runtime\Map\ColumnMap;
use Propel\Runtime\Propel;
/**
* This is an "inner" class that describes an object in the criteria.
*
* In Torque this is a... |
// Copyright (C) 2014 The Android Open Source Project
//
// 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 ... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v7.2.2
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c <... |
package rollout
import (
"fmt"
"github.com/spf13/cobra"
"k8s.io/cli-runtime/pkg/genericclioptions"
"k8s.io/cli-runtime/pkg/printers"
"k8s.io/cli-runtime/pkg/resource"
cmdutil "k8s.io/kubectl/pkg/cmd/util"
"k8s.io/kubectl/pkg/polymorphichelpers"
"k8s.io/kubectl/pkg/scheme"
"k8s.io/kubectl/pkg/util"
"k8s.i... |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... |
module Apipie
class FileHandler
def initialize(root)
@root = root.chomp('/')
@compiled_root = /^#{Regexp.escape(root)}/
@file_server = ::Rack::File.new(@root)
end
def match?(path)
path = path.dup
full_path = path.empty? ? @root : File.join(@root, ::Rack::Utils.u... |
class CreatePbcLists < ActiveRecord::Migration
def change
create_table :pbc_lists do |t|
t.references :audit_cycle
t.string :title
t.string :audit_firm
t.string :audit_lead
t.text :description
t.datetime :list_import_date
t.string :status
t.text :notes
t.refer... |
package org.apache.camel.component.paho.mqtt5;
import org.apache.camel.spi.Metadata;
/**
* Constants to use when working with Paho MQTT 5 component.
*/
public final class PahoMqtt5Constants {
/**
* Header indicating a topic of a MQTT message.
*/
@Metadata(label = "consumer", description = "The n... |
package node
import (
"context"
"fmt"
"time"
coordinationv1 "k8s.io/api/coordination/v1"
v1 "k8s.io/api/core/v1"
apiequality "k8s.io/apimachinery/pkg/api/equality"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/diff"
"k8s.io/apimachinery/pkg/util/wait"
clientset "k8s.io/client... |
<TS language="sk" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Kliknutím pravým tlačidlom upravte adresu alebo popis</translation>
</message>
<message>
<source>Create a new address</source>
... |
<?php
class Twig_Extension_StringLoader extends Twig_Extension
{
/**
* {@inheritdoc}
*/
public function getFunctions()
{
return array(
new Twig_SimpleFunction('template_from_string', 'twig_template_from_string', array('needs_environment' => true)),
);
}
/**
... |
(function (root, factory) {
// Export if used as a module
// $lab:coverage:off$
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = factory();
}
else if (typeof define === 'function' && define.amd) {
define(factory);
}
else if (typeof export... |
package org.apache.camel.component.hazelcast;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IQueue;
import org.apache.camel.CamelExecutionException;
import org.apache.camel.builder.Route... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
usin... |
/*
* This program 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.
*
* This program is distributed in the hope that it w... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.IO;
namespace Roslyn.Test.Utilities
{
internal class BrokenStream : Stream
{
public enum BreakHowType
{
... |
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/theme_color_accent">
<item>
<selector>
<!--<item-->
<!--android:drawable="@android:color/white"-->
<!--android:state_pressed="tr... |
<!doctype html>
<html lang="en">
<head>
<title>Switch between display block and none on :hover</title>
<style>
.box {
width: 100px;
height: 100px;
}
#dummy {
background-color: black;
}
#hoverTest {
border: 5px solid green;
border-left: 100px solid green;
color: black;
display: block;
... |
```js
angular.module('myModule', ['oui.autocomplete']);
```
# Configuration
The autocomplete can be globally configured with a provider.
```js
angular.module('myModule', ['oui.autocomplete'])
.config(ouiAutocompleteConfigurationProvider => {
// default options
ouiAutocompleteConfigurationProvider.setOption... |
using System;
namespace Cassandra.Data.Linq
{
[Flags]
public enum TableType
{
Standard = 0x1,
Counter = 0x2,
All = Standard | Counter
}
} |
#include "unicode/utypes.h"
#if !UCONFIG_NO_NORMALIZATION
#include "intltest.h"
#include "cstring.h"
#include "canittst.h"
#include "unicode/caniter.h"
#include "unicode/normlzr.h"
#include "unicode/uchar.h"
#include "hash.h"
#define ARRAY_LENGTH(array) ((int32_t)(sizeof (array) / sizeof (*array)))
#define CASE(i... |
// This file was automatically generated by informer-gen
package informers
import (
"fmt"
schema "k8s.io/apimachinery/pkg/runtime/schema"
api_v1 "k8s.io/client-go/pkg/api/v1"
v1beta1 "k8s.io/client-go/pkg/apis/apps/v1beta1"
v1 "k8s.io/client-go/pkg/apis/autoscaling/v1"
v2alpha1 "k8s.io/client-go/pkg/apis/auto... |
var wysihtml5 = {
version: "0.3.0",
// namespaces
commands: {},
dom: {},
quirks: {},
toolbar: {},
lang: {},
selection: {},
views: {},
INVISIBLE_SPACE: "\uFEFF",
EMPTY_FUNCTION: function() {},
ELEMENT_NODE: 1,
TEXT_NODE: 3,
BACKSPACE_KEY: 8,
E... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Gen. hist. :120. 1832
#### Original name
null
### Remarks
null |
#include <aws/ec2/model/FleetLaunchTemplateOverridesRequest.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace EC2
... |
<?php
namespace Mockery;
class Exception extends \UnexpectedValueException
{
}
|
; (function() {
window.require(["ace/snippets/space"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();... |
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<size android:width="4dp"
android:height="4dp"/>
<solid android:color="@color/news_marker_inactive_night"/>
</shape> |
#include <gtk/gtk.h>
#include "fonts.h"
enum {
FONTS_NAME_COLUMN,
FONTS_DETAILS_COLUMN,
N_COLUMNS
};
typedef struct {
PopplerDocument *doc;
GtkWidget *treeview;
GtkWidget *progress;
guint idle_id;
} PgdFontsDemo;
static void
pgd_fonts_free (PgdFontsDemo *demo)
{
if (!demo)
retu... |
package de.greenrobot.event.test;
import android.app.Activity;
import android.util.Log;
import de.greenrobot.event.EventBus;
import junit.framework.TestCase;
import java.lang.ref.WeakReference;
/**
* @author Markus Junginger, greenrobot
*/
public class EventBusBasicTest extends TestCase {
private EventBus ev... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
var sentenceCase = require('sentence-case')
/**
* Path case a string.
*
* @param {String} string
* @param {String} [locale]
* @return {String}
*/
module.exports = function (string, locale) {
return sentenceCase(string, locale, '/')
}
|
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$info = $controller->getContent();
$view->inc('form_setup_html.php', array('info' => $info, 'c' => $c, 'b' => $b));
|
@implementation ATZVersionLabel
- (id)initWithFrame:(NSRect)frame {
self = [super initWithFrame:frame];
if (self) [self setStyle];
return self;
}
- (void)setStyle {
self.alignment = NSRightTextAlignment;
self.autoresizingMask = NSViewMinXMargin | NSViewMinYMargin | NSViewNotSizable;
s... |
insert into application_settings (key, value) values ('tp.threads', '5');
insert into application_settings (key, value) values ('stats.dest', 'source');
insert into application_settings (key, value) values ('error.dest', 'source');
--Connections
insert into hikari_cp_settings
(id_pool, driver, url, user, pass, max_po... |
package org.apache.camel.component.consul;
import java.util.List;
import com.orbitz.consul.EventClient;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.junit.jupiter.api.Test;
public class ConsulEventWatchIT extends ConsulTestSupport {
private String... |
using System.IO;
using System.Text;
using NDatabase.IO;
using NUnit.Framework;
namespace NDatabase.UnitTests.Layer3
{
internal class When_we_use_multi_buffered_file_io : InstanceSpecification<IMultiBufferedFileIO>
{
private const long StartWritePosition = 10L;
private string _fileNam... |
/* crypto/cms/cms_cd.c */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
/* ====================================================================
* Copyright (c) 2008 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or withou... |
cask "thought-train" do
version "1.4"
sha256 "f135917e56bdc150923beb28d0005f1d00167f6b90ee67abb0e5d549ce39d0b4"
url "https://thoughttrain.cc/downloads/thought-train-#{version}.pkg"
appcast "https://github.com/marcperel/thought-train-production/releases.atom"
name "Thought Train"
desc "Note taking and to-do... |
"""
This script creates logos of different formats from the source "sympy.svg"
Requirements:
rsvg-convert - for converting to *.png format (librsvg2-bin deb package)
imagemagick - for converting to *.ico favicon format
"""
from optparse import OptionParser
import xml.dom.minidom
import os.path
import l... |
package org.codinjutsu.tools.jenkins.view.vcs;
import com.intellij.application.options.CodeStyle;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.diff.impl.patch.FilePatch;
import com.intellij.openapi.diff.impl.patch.IdeaTextPatchBuilder;
import com.intellij.openapi.diff.impl.patch.Unified... |
FROM balenalib/raspberrypi4-64-fedora:34-build
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
RUN dnf install -y \
python3-pip \
python3-dbus \
&& dnf clean all
# install "virtualenv", since the vast ... |
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<!-- Optional separator line above "Powered by Google", when there are items above. -->
<View
android:... |
"""Common entity class for Version integration."""
from homeassistant.helpers.device_registry import DeviceEntryType
from homeassistant.helpers.entity import DeviceInfo, EntityDescription
from homeassistant.helpers.update_coordinator import CoordinatorEntity
from .const import DOMAIN, HOME_ASSISTANT
from .coordinator... |
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti="http://activiti.org/bpmn"
targetNamespace="Examples">
<process id="TrivialSubProcess">
<startEvent id="start"/>
<sequenceFlow id="flow" name="" sourceRef="sta... |
<?php
namespace Illuminate\Database\Events;
class StatementPrepared
{
/**
* The database connection instance.
*
* @var \Illuminate\Database\Connection
*/
public $connection;
/**
* The PDO statement.
*
* @var \PDOStatement
*/
public $statement;
/**
* C... |
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="match_parent" >
<item
android:id="@+id/menu_settings"
android:contentDescription="menu_settings"
android:title="User Reg... |
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/main_my_member_pressed" android:state_checked="true"/>
<item android:drawable="@drawable/main_my_member_pressed" android:state_pressed="true"/>
<item android:drawabl... |
if(typeof g_ugFunctions != "undefined")
g_ugFunctions.registerTheme("slider");
else
jQuery(document).ready(function(){g_ugFunctions.registerTheme("slider")});
/**
* Slider gallery theme
*/
function UGTheme_slider(){
var t = this;
var g_gallery = new UniteGalleryMain(), g_objGallery, g_objects, g_objWrapper; ... |
from tomviz import utils
import numpy as np
import tomviz.operators
class CenterOfMassAlignmentOperator(tomviz.operators.CancelableOperator):
def transform_scalars(self, dataset):
"""Automatically align tilt images by center of mass method"""
self.progress.maximum = 1
tiltSeries = utils.... |
<?php
namespace Doctrine\Tests\Common\Util
{
use Doctrine\Tests\DoctrineTestCase;
use Doctrine\Common\Util\ClassUtils;
class ClassUtilsTest extends DoctrineTestCase
{
static public function dataGetClass()
{
return array(
array('stdClass', 'stdClass'),
... |
require 'weakref'
include Chef::DSL::Recipe
def initialize(*args)
super
@action = :deploy
@sub_resources = []
end
actions :deploy, :force_deploy
attribute :name, :kind_of => String, :name_attribute => true
attribute :environment_name, :kind_of => String, :default => (node.chef_environment =~ /_default/ ? "pro... |
<?php
/**
* sfActionStack keeps a list of all requested actions and provides accessor
* methods for retrieving individual entries.
*
* @package symfony
* @subpackage action
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
* @author Sean Kerr <sean@code-box.org>
* @version SVN: ... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
File: generate.xml
-->
<project name="org.xtuml.bp.mc.template" default="all" basedir=".">
<!-- The property ${eclipse-home} should be passed into this script -->
<!-- Set a meaningful default value for when it is not. -->
<property name="eclipse-home" ... |
<!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">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... |
var beautify = require('js-beautify').js_beautify;
// easy setup for debugging
var dogescript = require("./index.js")
var code = `
very x
x is foo giv bar giv baz
very y
y is foo levl 1 levl 2
`
// finalized product is beautified as part of tests
console.log(beautify(dogescript.default(code)));
|
/*
* Do not modify this file. This file is generated from the codepipeline-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CodePipeline... |
using Xunit;
using Xunit.Abstractions;
using Microsoft.Azure.ServiceManagemenet.Common.Models;
using Microsoft.WindowsAzure.Commands.ScenarioTest;
namespace RecoveryServices.SiteRecovery.Test
{
public class AsrE2ETests : AsrTestsBase
{
public AsrE2ETests(
ITestOutputHelper output)
... |
#import <Foundation/Foundation.h>
#import "RCTBridgeModule.h"
@protocol RCTExceptionsManagerDelegate <NSObject>
// NOTE: Remove these three methods and the @optional directive after updating the codebase to use only the three below
@optional
- (void)handleSoftJSExceptionWithMessage:(NSString *)message stack:(NSArr... |
package org.aludratest.data;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.aludratest.AludraTest;
import org.aludratest.testcase.AludraTestCase;
import org.aludratest.testcase.Offset;
import org.aludratest.testcase.data.Source;
/**
* Tests the @Offset a... |
#ifndef CustomElementException_h
#define CustomElementException_h
#include "wtf/text/AtomicString.h"
#include "wtf/text/WTFString.h"
namespace blink {
class ExceptionState;
class CustomElementException {
public:
enum Reason {
CannotRegisterFromExtension,
ConstructorPropertyNotConfigurable,
... |
'use strict';
import scanner = require('vs/languages/css/common/parser/cssScanner');
var _FSL = '/'.charCodeAt(0);
var _NWL = '\n'.charCodeAt(0);
var _CAR = '\r'.charCodeAt(0);
var _LFD = '\f'.charCodeAt(0);
var _DLR = '$'.charCodeAt(0);
var _HSH = '#'.charCodeAt(0);
var _CUL = '{'.charCodeAt(0);
var _EQS = '='.cha... |