text stringlengths 3 1.05M |
|---|
package name.gumartinm.weather.information.fragment.map;
import android.content.Context;
import android.location.Address;
import android.location.Geocoder;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
impor... |
// Package install installs the batch API group, making it available as
// an option to all of the API encoding/decoding machinery.
package install
import (
"fmt"
"github.com/golang/glog"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/meta"
"k8s.io/kubernetes/pkg/api/unversioned"
"k8s.io/kubernetes/p... |
<?php
/**
* Marker interface for PHPUnit exceptions.
*
* @since Interface available since Release 4.0.0
*/
interface PHPUnit_Exception
{
}
|
// Declarations for hash functions. -*- C++ -*-
// Copyright (C) 2010-2016 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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 Soft... |
void qck_beforeSuite(QCKDSLEmptyBlock closure) {
[[World sharedWorld] beforeSuite:closure];
}
void qck_afterSuite(QCKDSLEmptyBlock closure) {
[[World sharedWorld] afterSuite:closure];
}
void qck_sharedExamples(NSString *name, QCKDSLSharedExampleBlock closure) {
[[World sharedWorld] sharedExamples:name clo... |
namespace boost { namespace python { namespace objects {
template <int nargs> struct make_holder;
# define BOOST_PYTHON_DO_FORWARD_ARG(z, index, _) , f##index(a##index)
// specializations...
# define BOOST_PP_ITERATION_PARAMS_1 (3, (0, BOOST_PYTHON_MAX_ARITY, <boost/python/object/make_holder.hpp>))
# include BOOS... |
package org.elasticsearch.cluster.metadata;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.settings.Settings;
import java.io.IOException;
/**
* Metadata about registered repository
*/
public class RepositoryMetaData {
... |
import * as assert from 'assert';
import { IEditorFactoryRegistry, EditorExtensions } from 'vs/workbench/common/editor';
import { URI } from 'vs/base/common/uri';
import { workbenchInstantiationService, TestFileEditorInput, registerTestEditor, TestEditorPart, createEditorPart, registerTestSideBySideEditor } from 'vs/... |
package com.amazonaws.services.iotdata.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
* <p>
* Information about a single retained message.
* </p>
*
* @see <a href="http://docs.aws.amazon.... |
"""Integration tests for rb command."""
from __future__ import absolute_import
import gslib.tests.testcase as testcase
from gslib.tests.util import ObjectToURI as suri
class TestRb(testcase.GsUtilIntegrationTestCase):
"""Integration tests for rb command."""
def test_rb_bucket_works(self):
bucket_uri = self... |
/** @babel */
const getIconClass = state => {
return `icon aec-icon-mouse text-${state || 'subtle'}`;
};
const getIcon = () => {
return document.getElementById('aec-status-bar-tile');
};
const getContainer = () => {
return document.getElementById('aec-status-bar-container');
};
const createIcon = state => {
con... |
package org.elasticsearch.index.analysis;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.miscellaneous.ScandinavianFoldingFilter;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.inject.assistedinject.Assisted;
import org.elasticsearch.common.settings.Se... |
/*!
*
* ~~~~ describe-type v1.0.0
*
* @commit 23bc860be962fff3e986a7df70c89ea09e9d9c3c
* @moment Thursday, June 14, 2018 11:33 AM
* @homepage https://github.com/adriancmiranda/describe-type
* @author Adrian C. Miranda
* @license (c) 2016-2021
*/
var schema = (function () {
'use strict';
var NUMBER = 'numb... |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.adswitcher.adapter.admob">
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="25" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETW... |
// 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 Roslyn.Utilities;
using System.Collections.Immutable;
namespace Microsoft.CodeAnalysis.Diagnostics
{
/// <summary>
/// Options passed to <see ... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
/*=====================================================================
**
** Source: FindNextFileA.c
**
** Purpose: Tests the PAL implementation of the FindNex... |
//------------------------------------------------------------------------------
// <copyright file="SqlDataSourceView.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace Sy... |
package org.apache.zookeeper.server.command;
import java.io.PrintWriter;
import org.apache.zookeeper.server.ServerCnxn;
public class ConsCommand extends AbstractFourLetterCommand {
public ConsCommand(PrintWriter pw, ServerCnxn serverCnxn) {
super(pw, serverCnxn);
}
@Override
public void co... |
<CreateConfigurationTemplateResponse xmlns="http://elasticbeanstalk.amazonaws.com/docs/2010-12-01/">
<CreateConfigurationTemplateResult>
<SolutionStackName>32bit Amazon Linux running Tomcat 7</SolutionStackName>
<OptionSettings>
<member>
<OptionName>ImageId</OptionName>
<Value>ami-f2f0069b</Va... |
#include "config.h"
#include "RandomNumber.h"
#include "CryptographicallyRandomNumber.h"
#include "RandomNumberSeed.h"
#include <limits>
#include <limits.h>
#include <stdint.h>
#include <stdlib.h>
namespace WTF {
double randomNumber()
{
uint32_t bits = cryptographicallyRandomNumber();
return static_cast<d... |
<?php
namespace Sonata\PageBundle\Controller\Api;
use FOS\RestBundle\Request\ParamFetcherInterface;
use FOS\RestBundle\Controller\Annotations\QueryParam;
use FOS\RestBundle\Controller\Annotations\View;
use JMS\Serializer\SerializationContext;
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
use Sonata\BlockBundle\Model\Bl... |
The table below represents the progress of each platform towards conforming to a standard Tectonic installation.
| FEATURE | AWS | Azure | OpenStack | VMware |
| ------- | --- | ----- | --------- | ------ |
| | | | | | |
|
ACCEPTED
#### According to
NUB Generator [autonym]
#### Published in
null
#### Original name
null
### Remarks
null |
;(function ($, window, document, undefined) {
$.fn.popup = function(parameters) {
var
$allModules = $(this),
$document = $(document),
moduleSelector = $allModules.selector || '',
time = new Date().getTime(),
performance = [],
query = arguments[0],
... |
import baseAssignValue from './_baseAssignValue.js';
import baseForOwn from './_baseForOwn.js';
import baseIteratee from './_baseIteratee.js';
/**
* Creates an object with the same keys as `object` and values generated
* by running each own enumerable string keyed property of `object` thru
* `iteratee`. The iterate... |
---
license: >
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
... |
<?php
require_once dirname(__FILE__) . '/OAuthException2.php';
class OAuthSession
{
static private $instance = false;
/**
* Request an instance of the OAuthSession
*/
public static function instance ( $store = 'SESSION', $options = array() )
{
if (!OAuthSession::$instance)
{
// Select the stor... |
module RSpec::Puppet
module ProviderExampleGroup
end
end
|
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2016 Hugo Matalonga & João Paulo Fernandes
~
~ 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... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* CodeIgniter Session Database Driver
*
* @package CodeIgniter
* @subpackage Libraries
* @category Sessions
* @author Andrey Andreev
* @link http://codeigniter.com/user_guide/libraries/sessions.html
*/
class CI_Session_database_driver e... |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
// This can be removed if you use __autoload() in config.php OR use Modular Extensions
require APPPATH . '/libraries/REST_Controller.php';
class Auth extends REST_Controller {
function __construct() {
parent::__construct();
$this->load->... |
package group2;
import java.io.File;
import java.util.List;
import group1.FileImage;
import group1.IImage;
import group1.IPixel;
import group1.Image;
import group1.Pixel;
import group3.MovingBlob;
import group3.MovingBlobDetection;
import group4.BlobFilter;
import javafx.animation.AnimationTimer;
import javafx.applic... |
<!doctype html>
<html ng-app="hmTime">
<head>
<style type="text/css">
html, body {
background-color: #d1c9b8;
}
#target {
width: 500px;
height: 500px;
margin-left: auto;
margin-right: auto;
vertical-align: middle;
text-align: center;
... |
using System;
using System.Runtime.Serialization;
namespace FluentMigrator.Exceptions
{
/// <summary>
/// Exception to be thrown when a database operation is not supported
/// </summary>
[Serializable]
public class DatabaseOperationNotSupportedException : FluentMigratorException
{
/// <... |
package com.gemstone.gemfire.internal.cache;
import java.util.UUID;
public abstract class VMStatsDiskRegionEntryOffHeap extends VMStatsDiskRegionEntry implements OffHeapRegionEntry {
public VMStatsDiskRegionEntryOffHeap(RegionEntryContext context, Object value) {
super(context, value);
}
private static fin... |
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http:/... |
namespace llvm {
/// MCSectionMachO - This represents a section on a Mach-O system (used by
/// Mac OS X). On a Mac system, these are also described in
/// /usr/include/mach-o/loader.h.
class MCSectionMachO : public MCSection {
char SegmentName[16]; // Not necessarily null terminated!
char SectionName[16]; // N... |
module.exports = function (grunt) {
grunt.registerTask('bump_version', function (version) {
if (!version || version.split('.').length !== 3) {
grunt.fail.fatal('malformed version. Use\n\n grunt bump_version:1.2.3');
}
grunt.config('string-replace.moment-js', {
fil... |
package org.kiji.mapreduce.tools;
import java.io.IOException;
import java.util.List;
import com.google.common.base.Preconditions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.kiji.annotations.ApiAudience;
import org.kiji.common.flags.Flag;
import org.kiji.mapreduce.output.DirectKijiTableMap... |
<?php
/** Zend_Dojo_View_Helper_DijitContainer */
require_once 'Zend/Dojo/View/Helper/DijitContainer.php';
/**
* Dojo TabContainer dijit
*
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.z... |
;(function() {
var enifed, requireModule, require, Ember;
var mainContext = this;
(function() {
var isNode = typeof window === 'undefined' &&
typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';
if (!isNode) {
Ember = this.Ember = this.Ember || {};
}
if (typeof Ember ... |
using System;
namespace Library
{
public class MyClass
{
}
} |
var tap = require("tap")
, child_process = require("child_process")
, bashResults = require("./bash-results.json")
, globs = Object.keys(bashResults)
, glob = require("../")
, path = require("path")
// run from the root of the project
// this is usually where you're at anyway, but be sure.
process.chdir(path.resolve(_... |
/**
* @requires OpenLayers/Format/XML.js
* @requires OpenLayers/Format/CSWGetDomain.js
*/
/**
* Class: OpenLayers.Format.CSWGetDomain.v2_0_2
* A format for creating CSWGetDomain v2.0.2 transactions.
* Create a new instance with the
* <OpenLayers.Format.CSWGetDomain.v2_0_2> constructor.
*
* Inhe... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package gui.map;
import com.gdx.bomberman.Constants;
/**
*
* @author qubasa
*/
public class ThinGridCoordinates {
private... |
package org.elasticsearch.action.support.broadcast;
import org.elasticsearch.action.IndicesRequest;
import org.elasticsearch.action.OriginalIndices;
import org.elasticsearch.action.support.IndicesOptions;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
i... |
MicroPython documentation and references
========================================
.. toctree::
library/index.rst
genrst/index.rst
license.rst
unix_contents.rst
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
|
<!--
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 "License"); you may not use ... |
module Mongoid #:nodoc
module Fields #:nodoc
extend ActiveSupport::Concern
included do
# Set up the class attributes that must be available to all subclasses.
# These include defaults, fields
class_inheritable_accessor :fields
self.fields = {}
delegate :defaults, :fields, :to =>... |
#ifndef USB_API_H_SYN81IFYBN__
#define USB_API_H_SYN81IFYBN__
#include "sys/process.h"
typedef struct _USBBuffer USBBuffer;
struct _USBBuffer {
USBBuffer *next; /* Pointer to next buffer in chain */
uint8_t *data; /* Where to read/write data next */
uint16_t left; /* Remaining length of buffer. */
uint16_t f... |
'use strict';
angular.module('myApp.view1', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/view1', {
templateUrl: 'view_M1/view1.html',
controller: 'View1Ctrl'
});
}])
.controller('View1Ctrl', [function() {
}]);
|
#ifndef __obsd41_mman_h
#define __obsd41_mman_h
/* $OpenBSD: mman.h,v 1.18 2003/07/21 22:52:19 tedu Exp $ */
/* $NetBSD: mman.h,v 1.11 1995/03/26 20:24:23 jtc Exp $ */
/*-
* Copyright (c) 1982, 1986, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and... |
var nodeshout = require('/home/lara/.npm/nodeshout/0.0.2/package'),
fs = require('fs');
nodeshout.init();
console.log('Libshout version: ' + nodeshout.getVersion());
// Create instance and configure it.
var shout = nodeshout.create();
shout.setHost('localhost');
shout.setPort(8000);
shout.setUser('source');
shou... |
package org.deepdive.inference
import anorm._
import au.com.bytecode.opencsv.CSVWriter
import java.io._
import org.deepdive.calibration._
import org.deepdive.datastore._
import org.deepdive.Logging
import org.deepdive.settings._
import org.deepdive.helpers.Helpers
import scala.sys.process._
import scala.collection.mut... |
package org.basex.query.func.file;
import static org.basex.query.QueryError.*;
import static org.basex.util.Token.*;
import java.io.*;
import java.nio.charset.*;
import java.nio.file.*;
import org.basex.io.out.*;
import org.basex.query.*;
import org.basex.query.value.item.*;
import org.basex.util.*;
/**
* Function... |
{% extends 'layouts/econ50/title-body-right.html' %}
{% block title %}{% raw %}Demand Curves for {{ params.selectedUtility | camelToSpace }}{% endraw %}{% endblock %}
{% block main %}
<div class="row">
<div class="col-xs-6">
<div id="xDemand"></div>
</div>
... |
import gzip
import time
import uuid
import os
from cerebralcortex.data_processor.preprocessor import parser
from cerebralcortex.kernel.datatypes.datapoint import DataPoint
from cerebralcortex.kernel.datatypes.datastream import DataStream
def readfile(filename):
data = []
with open(filename, 'rt') as f:
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta charset="utf-8">
<meta content="width=device-width" name="viewport">
<link href="/static/style.css" rel="stylesheet">
<title>Guestbook</title>
</head>
<body>
<div id="header">
... |
/**
* Owl carousel
* @version 2.0.0
* @author Bartosz Wojciechowski
* @license The MIT License (MIT)
* @todo Lazy Load Icon
* @todo prevent animationend bubling
* @todo itemsScaleUp
* @todo Test Zepto
* @todo stagePadding calculate wrong active classes
*/
;(function($, window, document, undefined) {
var dra... |
#include "tensorflow/tools/graph_transforms/fold_constants_lib.h"
#include "tensorflow/core/common_runtime/constant_folding.h"
#include "tensorflow/core/graph/graph_constructor.h"
#include "tensorflow/core/graph/node_builder.h"
#include "tensorflow/core/graph/subgraph.h"
#include "tensorflow/core/platform/init_main.... |
#ifndef TiledCoreAnimationDrawingArea_h
#define TiledCoreAnimationDrawingArea_h
#if ENABLE(THREADED_SCROLLING)
#include "DrawingArea.h"
#include "LayerTreeContext.h"
#include <WebCore/FloatRect.h>
#include <WebCore/GraphicsLayerClient.h>
#include <WebCore/LayerFlushScheduler.h>
#include <WebCore/LayerFlushScheduler... |
#import <OCMock/OCMock.h>
#import "PFACLPrivate.h"
#import "PFMacros.h"
#import "PFObjectPrivate.h"
#import "PFRole.h"
#import "PFUnitTestCase.h"
#import "PFUserPrivate.h"
@interface ACLUnitTests : PFUnitTestCase
@end
@implementation ACLUnitTests
- (void)testConstructors {
id mockedUser = PFStrictClassMock([... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
const char kClearKeyCdmAdapterFileName[] =
#if defined(OS_MACOSX)
"clearkeycdmadapter.plugin";
#elif defined(OS_WIN)
"clearkeycdmadapter.dll";
#elif defined(OS_POSIX)
"libclearkeycdmadapter.so";
#endif
const char kClearKeyCdmPluginMimeType[] = "application/x-ppapi-clearkey-cdm";
#endif // defined(ENABLE_P... |
Goal: correctly break input into tokens and hierarchical forms, but don't
worry about verifying that tokens have the correctly internal structure.
Just make sure the right amount of text is matched for each token.
# Token parsing #
Goal: determine the internal structure of the number, ident,
char, string, and regex... |
module Jekyll
class SnippetFilenameConverter < Converter
safe :false
priority :high
def matches(ext)
ext =~ /^\.(md|markdown)$/i
end
def output_ext(ext)
".html"
end
def convert(content)
if content.match(/^```.+\..+$/)
lines = content.lines
content = lin... |
<?php
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>PHPExcel Reader Example #15</title>
</head>
<body>
<h1>PHPExcel Reader Example #14</h1>
<h2>Reading a Large CSV file in "Chunks" to split across multiple Worksheets</h2>
<?php
/** Include path **/
s... |
package rx.internal.util;
import java.io.Serializable;
/**
* Padding up to 128 bytes at the front.
* Based on netty's implementation
*/
abstract class FrontPadding implements Serializable {
/** */
private static final long serialVersionUID = -596356687591714352L;
/** Padding. */
public transient l... |
layout: post
title: "Retour d'expérience de l'équie Re-educate 2007"
date: 2007-12-11 16:32
---
Toujours sur le thème de l'Imagine Cup 2008, voici le retour
d'expérience de l'équipe française de Re-educate, qui a participé à la
finale 2007 à Séoul.
<div style="text-align:center">
<object width="425" height="373">
<p... |
.class final Landroid/view/AbsSavedState$2;
.super Ljava/lang/Object;
.source "AbsSavedState.java"
# interfaces
.implements Landroid/os/Parcelable$Creator;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/view/AbsSavedState;
.end annotation
.annotation system Ldalvik/annotati... |
package com.intellij.xml;
import com.intellij.codeInsight.actions.OptimizeImportsProcessor;
import com.intellij.codeInsight.daemon.impl.analysis.XmlUnusedNamespaceInspection;
import com.intellij.codeInsight.intention.IntentionAction;
import com.intellij.codeInspection.htmlInspections.XmlInspectionToolProvider;
import... |
body {
background: url("/images/foo.png");
background: url("/images/foo.png");
background: url("/images/foo.png");
background: url("/images/foo.png");
background: url("/images/foo.png");
background: url("/images/foo.png");
background: url("/images/foo.png");
background: url("/images/foo.png");
backgro... |
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>18.0</apiVersion>
<status>Active</status>
</ApexClass>
|
import json
import logging
from pylib.base import base_test_result
def GenerateResultsDict(test_run_result):
"""Create a results dict from |test_run_result| suitable for writing to JSON.
Args:
test_run_result: a base_test_result.TestRunResults object.
Returns:
A results dict that mirrors the one genera... |
/**
* @author mrdoob / http://mrdoob.com/
* @author Jesús Leganés Combarro "Piranna" <piranna@gmail.com>
*/
var EventTarget = function()
{
var listeners = {};
this.addEventListener = function(type, listener)
{
if(listeners[type] === undefined)
listeners[type] = [];
if(listeners[type].indexOf(listener) =... |
<?php
namespace Sensio\Bundle\GeneratorBundle\Generator;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\DependencyInjection\Container;
/**
* Generates a bundle.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class BundleGenerator extends Generator
{
private $filesystem;
privat... |
package org.jdbdt;
/**
* Simple assertion.
*
* @since 1.0
*/
final class SimpleAssertion {
/**
* Data source this assertion relates to.
*/
private final DataSource dataSource;
/**
* Expected data.
*/
private final Object expected;
/**
* Actual data.
*/
private final Object act... |
//
// WeiboLayer.m
// Slot Machines
//
// Created by Dingsheng Yu on 2/9/12.
// Copyright 2012 __MyCompanyName__. All rights reserved.
//
#import "WeiboLayer.h"
#import "MusicCenter.h"
/** Degrees to Radian **/
#define degreesToRadians( degrees ) ( ( degrees ) / 180.0 * M_PI )
/** Radians to Degrees **/
#define ... |
<?php
App::uses('DboSource', 'Model/Datasource');
App::uses('Model', 'Model');
App::uses('CakeTestFixture', 'TestSuite/Fixture');
/**
* CakeTestFixtureTestFixture class
*
* @package Cake.Test.Case.TestSuite
*/
class CakeTestFixtureTestFixture extends CakeTestFixture {
/**
* Name property
*
* @var strin... |
package org.clafer.collection;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import org.junit.Test;
/**
*
* @author j... |
package main
import (
"errors"
"fmt"
"io/ioutil"
"os"
"path"
"path/filepath"
"strings"
flag "github.com/spf13/pflag"
)
// This needs to be updated when we cut a new release series.
const latestReleaseBranch = "release-1.5"
var (
verbose = flag.Bool("verbose", false, "On verification failure, emit pre-m... |
/**
* Disallows spaces before semicolons.
*
* Types: `Boolean` or `Object`
*
* Values:
* - `true` to disallow any spaces before any semicolon.
* - `Object`:
* - `"allExcept"`: `[ "(" ]` list of tokens that can occur after semicolon
*
* #### Example
*
* ```js
* "disallowSpaceBeforeSemicolon": true
*... |
from setuptools import setup, find_packages
import re
import os.path
install_requires = [
"boto",
"iso8601",
"pyramid",
"pyramid_beaker",
"pyramid_whoauth",
"pytz",
"repoze.who",
"simplejson",
"waitress",
]
VERSION_REGEX = re.compile(r"""
^__version__\s=\s
['"](?P<version>.... |
from __future__ import print_function, division
import matplotlib
import logging
from sys import stdout
# matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab!
import matplotlib.pyplot as plt
from neuralnilm import (Net, RealApplianceSource,
BLSTMLayer, DimshuffleLayer,
... |
FROM pytorch/pytorch:1.7.1-cuda11.0-cudnn8-runtime
RUN apt-get update && \
apt-get install -y curl && \
mkdir -p /root/.cache/torch/hub/checkpoints/ && \
curl https://download.pytorch.org/models/fasterrcnn_resnet50_fpn_coco-258fb6c6.pth > /root/.cache/torch/hub/checkpoints/fasterrcnn_resnet50_fpn_coco-258f... |
<?php
namespace Sonata\DoctrineORMAdminBundle\Tests\Model;
use Sonata\DoctrineORMAdminBundle\Admin\FieldDescription;
use Sonata\DoctrineORMAdminBundle\Model\ModelManager;
class ModelManagerTest extends \PHPUnit_Framework_TestCase
{
public function testSortParameters()
{
$registry = $this->getMock('... |
<?php
namespace Doctrine\Bundle\DoctrineBundle\DependencyInjection;
use Doctrine\ORM\Version;
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\DependencyInjection\Alias;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\Dependenc... |
// Package apis contains Kubernetes API groups.
package apis
import (
"k8s.io/apimachinery/pkg/runtime"
)
// AddToSchemes may be used to add all resources defined in the project to a Scheme
var AddToSchemes runtime.SchemeBuilder
// AddToScheme adds all Resources to the Scheme
func AddToScheme(s *runtime.Scheme) e... |
package network
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// 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
//
// Unl... |
<component name="libraryTable">
<library name="rules-0.5">
<ANNOTATIONS>
<root url="jar://$PROJECT_DIR$/app/build/intermediates/exploded-aar/com.android.support.test/rules/0.5/annotations.zip!/" />
</ANNOTATIONS>
<CLASSES>
<root url="file://$USER_HOME$/.android/build-cache/99502d4bf56ae2... |
package reference
import (
distreference "github.com/docker/distribution/reference"
)
// Parse parses the given references and returns the repository and
// tag (if present) from it. If there is an error during parsing, it will
// return an error.
func Parse(ref string) (string, string, error) {
distributionRef, er... |
/**
* @license AngularJS v1.2.7
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
var $resourceMinErr = angular.$$minErr('$resource');
// Helper functions and regex to lookup a dotted path on an object
// stopping at undefined/null. The path ... |
package org.elasticsearch.action.admin.indices.segments;
import org.elasticsearch.action.support.IndicesOptions;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.index.engine.Segment;
import org.elasticsearch.index.MergePolicyConfig;
import org.elasticsearch.indices.IndexClosedException;
i... |
arduino-quadrocopter
====================
Arduino Quadrocopter
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Research.Naiad.DataStructures;
using System.Diagnostics;
using Microsoft.Research.Naiad.Serialization;
using Microsoft.Research.Naiad.Scheduling;
namespace Microsoft.Research.Naiad.Dataflow.Channels
{
}
|
<!--
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
"License"); you may not use this... |
package com.colofabrix.scala.gfx
import scalaz.State
import org.lwjgl.Sys
import org.lwjgl.opengl.Display
/**
* OpenGL timing and synchronization
*/
object Timing {
/** Timing information. */
final case class TimeState(
lastTime: Double,
lastDelta: Double,
effectiveTime: Double,
simulationT... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>Thelia\Tools\FileDownload\FileDownloaderAwareTrait | </title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css">
... |
module Locomotive
class SimpleImageInput < ImageInput
def file_input
@builder.file_field(attribute_name, input_html_options.merge(accept: 'image/*')) +
@builder.hidden_field(:"remove_#{attribute_name}", class: 'remove', value: '0') +
@builder.hidden_field(:"remote_#{attribute_name}_url", class:... |
package org.drools.core.reteoo;
/**
* Items placed in a <code>LinkedList<code> must implement this interface .
*
* @see LeftTupleSinkNodeList
*/
public interface ObjectSinkNode
extends
ObjectSink {
/**
* Returns the next node
* @return
* The next LinkedListNode
*/
publ... |