repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
randomizedtesting/randomizedtesting | examples/maven/src/main/java/com/carrotsearch/examples/randomizedrunner/Test001SimpleUseCase.java | 997 | package com.carrotsearch.examples.randomizedrunner;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import com.carrotsearch.randomizedtesting.RandomizedRunner;
/**
* This is a test-based tutorial introducing to randomized JUnit testing using
* {@link RandomizedRunner}. Follow test ... | apache-2.0 |
ZGIS/smart-portal-backend | test/resources/testh2db/evolutions/default/3.sql | 1167 | # --- !Ups
CREATE TABLE sessions (
token varchar(255) NOT NULL,
useragent varchar(255) NOT NULL,
email varchar(255) NOT NULL,
laststatustoken varchar(255) NOT NULL,
laststatuschange TIMESTAMP NOT NULL,
PRIMARY KEY (token)
);
CREATE TABLE consentlogging (
id bigint auto_increment NOT NULL ,
timestamp T... | apache-2.0 |
jOOQ/jOOL | jOOL/src/test/java/org/jooq/lambda/PredicateTests.java | 2035 | /**
* Copyright (c), Data Geekery GmbH, contact@datageekery.com
*
* 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... | apache-2.0 |
OBIGOGIT/etch | binding-cpp/runtime/include/support/EtchDefaultServerFactory.h | 2651 | /* $Id$
*
* 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")... | apache-2.0 |
gocd/gocd | config/config-api/src/test/java/com/thoughtworks/go/config/ArtifactTypeConfigsTest.java | 14363 | /*
* Copyright 2022 ThoughtWorks, Inc.
*
* 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 agr... | apache-2.0 |
spartaksun/orientdb-query | src/Formatter/Query/Updates.php | 1400 | <?php
/*
* This file is part of the Doctrine\OrientDB package.
*
* (c) Alessandro Nadalin <alessandro.nadalin@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Class Updates
*
* @package Doctrine\OrientDB
*... | apache-2.0 |
openzipkin/zipkin | zipkin-lens/src/components/DiscoverPage/SearchBar/SearchBar.tsx | 8051 | /*
* Copyright 2015-2021 The OpenZipkin Authors
*
* 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 a... | apache-2.0 |
nknize/elasticsearch | x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/action/TransportGetTrainedModelsAction.java | 3814 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.ml.action;
import org.elasticsearch.action.Ac... | apache-2.0 |
apache/tapestry-5 | tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/test/internal/services/MiddleFilter.java | 802 | // Copyright 2004, 2005, 2006 The Apache Software Foundation
//
// 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 ... | apache-2.0 |
JingchengDu/hbase | hbase-shell/src/main/ruby/shell.rb | 11986 | #
#
# 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 n... | apache-2.0 |
hubertp/scalatest | src/test/scala/org/scalatest/events/LocationMethodSuiteProp.scala | 8004 | package org.scalatest.events
import org.scalatest._
class LocationMethodSuiteProp extends MethodSuiteProp {
test("Method suites should have correct TopOfMethod location in test events.") {
forAll(examples) { suite =>
val reporter = new EventRecordingReporter
suite.run(None, Args(reporter, Stopper... | apache-2.0 |
zhangyuchen0411/python_notes | scheduler.md | 808 | # sche.scheduler
```python
import sched
import time
def print_time():
print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime())
def scheduler():
s = sched.scheduler(time.time, time.sleep) # timefunc, delayfunc
# 延迟5秒,优先级1,action, arguments(传给action的)
s.enter(5, 1, print_time, ())
s.enter(10, ... | apache-2.0 |
wlan0/cattle | code/iaas/logic/src/main/java/io/cattle/platform/process/agent/AgentRemove.java | 2106 | package io.cattle.platform.process.agent;
import io.cattle.platform.agent.util.AgentUtils;
import io.cattle.platform.core.constants.StoragePoolConstants;
import io.cattle.platform.core.model.Account;
import io.cattle.platform.core.model.Agent;
import io.cattle.platform.core.model.StoragePool;
import io.cattle.platform... | apache-2.0 |
Wingo7239/WeixinMultiPlatform | src/main/java/org/hamster/weixinmp/model/menu/WxMenuCreateJson.java | 617 | /**
*
*/
package org.hamster.weixinmp.model.menu;
import java.util.List;
import org.hamster.weixinmp.dao.entity.menu.WxMenuBtnEntity;
/**
* @author honey.zhao@aliyun.com
* @version Aug 4, 2013
*
*/
public class WxMenuCreateJson {
private List<WxMenuBtnEntity> button;
public List<WxMenuBtnEntity> getButton... | apache-2.0 |
UCL/PETPVC | lib/petpvcSTCPVCImageFilter.h | 6237 | /*
petpvcSTCPVCImageFilter.h
Author: Benjamin A. Thomas
Copyright 2017 Institute of Nuclear Medicine, University College London.
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... | apache-2.0 |
wbond/subversion | subversion/tests/cmdline/svntest/actions.py | 113603 | #
# actions.py: routines that actually run the svn client.
#
# Subversion is a tool for revision control.
# See http://subversion.tigris.org for more information.
#
# ====================================================================
# Licensed to the Apache Software Foundation (ASF) under one
# or more con... | apache-2.0 |
Sumei1009/HubTurbo | docs/filters.md | 9854 | # Filtering Issues
An essential part of navigating GitHub with HubTurbo is having multiple panels, all filled with exactly the issues you're interested in. Controlling what shows up in panels is done by writing a filter which precisely expresses what it should contain.
<img src="images/gettingStarted/panelExplanation... | apache-2.0 |
Enseed/Reflect_build | build-clang/msvc/generated/include/llvm/Config/llvm-config.h | 3614 | /*===------- llvm/Config/llvm-config.h - llvm configuration -------*- C -*-===*/
/* */
/* The LLVM Compiler Infrastructure */
/* ... | apache-2.0 |
apache/incubator-taverna-site | content/javadoc/taverna-language/org/apache/taverna/scufl2/xml/scufl/jaxb/class-use/OperationType.html | 14122 | <!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_72-internal) on Mon Mar 14 13:22:18 GMT 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.a... | apache-2.0 |
chamikaramj/incubator-beam | sdks/python/apache_beam/io/tfrecordio.py | 10445 | #
# 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 us... | apache-2.0 |
egamma/azure-sdk-for-node | tools/osx-setup/build.sh | 2249 | #!/bin/sh
# Windows Azure OS X Package: Create packages script
# Copyright (C) 2012 Microsoft Corporation. All Rights Reserved.
#
# This builds the package as well as prepares the tarball file, etc.
# This script is only used at build time, it is not part of the package.
#
CURRENT_NODE_DISTRIBUTION_VERSION=v0.6.17
#... | apache-2.0 |
mwhudson/docker | daemon/state.go | 3937 | package daemon
import (
"fmt"
"sync"
"time"
"github.com/docker/docker/pkg/units"
)
type State struct {
sync.Mutex
Running bool
Paused bool
Restarting bool
Pid int
ExitCode int
StartedAt time.Time
FinishedAt time.Time
waitChan chan struct{}
}
func NewState() *State {
return &State{
... | apache-2.0 |
quangnguyen9x/bamboobsc_quangnv | qcharts-web/src/com/netsteadfast/greenstep/qcharts/action/utils/SelectItemFieldCheckUtils.java | 1369 | /*
* Copyright 2012-2016 bambooCORE, greenstep of copyright Chen Xin Nien
*
* 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
*
* ... | apache-2.0 |
scala/scala | test/files/run/existentials3-new.scala | 2619 | import scala.language.existentials
import scala.reflect.runtime.universe._
import internal._
object Test {
trait ToS { final override def toString = getClass.getName }
def f1 = { case class Bar() extends ToS; Bar }
def f2 = { case class Bar() extends ToS; Bar() }
def f3 = { class Bar() extends ToS; object Bar... | apache-2.0 |
shenkers/CrossBrowse | src/main/java/org/mskcc/shenkers/control/track/FileType.java | 326 | /*
* 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 org.mskcc.shenkers.control.track;
/**
*
* @author sol
*/
public enum FileType {
BAM,
WIG,
GTF,
BED,
FA... | apache-2.0 |
Elimean/DMXT | admin/manager_admin_classManager_Updata.php | 50 | <?php
require_once("../config/connect.php");
?>
| apache-2.0 |
HewlettPackard/grommet | src/js/components/WorldMap/stories/SelectPlace.js | 595 | import React from 'react';
import { Box, WorldMap } from 'grommet';
export const SelectPlace = () => {
const [places, setPlaces] = React.useState();
const onSelectPlace = (place) => {
console.log('Selected', place);
setPlaces([{ color: 'graph-1', location: place }]);
};
return (
<Box align="cent... | apache-2.0 |
sheliu/openregistry | openregistry-api/src/main/java/org/openregistry/core/domain/OrganizationalUnit.java | 1279 | /**
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in co... | apache-2.0 |
tommyettinger/SquidSetup | src/main/java/com/github/czyzby/lml/parser/impl/attribute/list/RequiredLmlAttribute.java | 1036 | package com.github.czyzby.lml.parser.impl.attribute.list;
import com.badlogic.gdx.scenes.scene2d.ui.List;
import com.github.czyzby.lml.parser.LmlParser;
import com.github.czyzby.lml.parser.tag.LmlAttribute;
import com.github.czyzby.lml.parser.tag.LmlTag;
/** See {@link com.badlogic.gdx.scenes.scene2d.utils.Selection#... | apache-2.0 |
apache/cocoon | blocks/cocoon-portal/cocoon-portal-sitemap/src/main/java/org/apache/cocoon/portal/acting/CopletSetDataAction.java | 3337 | /*
* 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 ... | apache-2.0 |
chebryan/Qsoft-Admin | core/callback_url.php | 1383 | <?php
include('dao.php');
global $dbh;
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$data = '';
$id = $_POST['id'];
$status = $_POST['status'];
if($status == "Failed" || $status == "Rejected"){
$failureReason = $_POST['failureReason'];
$sql = $dbh->prepare(... | apache-2.0 |
SAP/openui5 | src/sap.m/src/sap/m/designtime/Slider.designtime.js | 709 | /*!
* ${copyright}
*/
// Provides the Design Time Metadata for the sap.m.Slider control
sap.ui.define([],
function () {
"use strict";
return {
name: {
singular: "SLIDER_NAME",
plural: "SLIDER_NAME_PLURAL"
},
palette: {
group: "INPUT",
icons: {
svg: "sap/m/designtime/Slider.icon.svg... | apache-2.0 |
linkerd/linkerd | linkerd/docs/protocol-thriftmux.md | 1046 | # ThriftMux Protocol (experimental)
> This config routes thriftmux from port 4400 to port 5005.
```yaml
routers:
- protocol: thriftmux
experimental: true
label: port-shifter
dtab: |
/svc => /$/inet/127.1/5005;
servers:
- port: 4400
ip: 0.0.0.0
```
protocol: `thriftmux`
Linkerd _experimentally_ sup... | apache-2.0 |
chengduoZH/Paddle | paddle/fluid/framework/ir/simplify_with_basic_ops_pass.h | 1331 | /* Copyright (c) 2019 PaddlePaddle Authors. 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
Unless required by applicable law or... | apache-2.0 |
denidoank/avalonsailing | sms/pdu.c | 9295 | // Copyright 2011 The Avalon Project Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0
// that can be found in the LICENSE file.
//
// SMS encoding/decoding functions, which are based on examples from:
// http://www.dreamfabric.com/sms/
#include "pdu.h"
#include <string.... | apache-2.0 |
slozier/ironpython2 | Src/IronPython.Modules/math.cs | 19692 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using Sys... | apache-2.0 |
obattalov/jrivets-common | src/main/java/org/jrivets/transaction/Action.java | 891 | package org.jrivets.transaction;
/**
* The interface defines an action which can be executed in
* {@link SimpleTransaction} context.
*
* @author Dmitry Spasibenko
*
*/
public interface Action {
/**
* Executes the action itself. In case of fail should throw an exception
*
* @throws Throwabl... | apache-2.0 |
duesenklipper/wicket-security-1.4 | examples/all_in_one/src/main/java/org/apache/wicket/security/examples/pages/MyUnSecurePage.java | 1765 | /*
* 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... | apache-2.0 |
aerospike/concurrency-control-tic-tac-toe | node_modules/aerospike/aerospike-client-c/package/usr/local/include/aerospike/as_stream.h | 5850 | /*
* Copyright 2008-2014 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements.
*
* 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 Lice... | apache-2.0 |
EnMasseProject/enmasse | api-model/src/main/java/io/enmasse/admin/model/AddressSpacePlan.java | 572 | /*
* Copyright 2019, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.enmasse.admin.model;
import io.fabric8.kubernetes.api.model.HasMetadata;
import java.util.List;
import java.util.Map;
public interface AddressSpacePlan extends H... | apache-2.0 |
RobAltena/deeplearning4j | pydl4j/pydl4j/downloader.py | 3179 | ################################################################################
# Copyright (c) 2015-2019 Skymind, Inc.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless... | apache-2.0 |
AlexOreshkevich/strongbox | strongbox-configuration/src/main/java/org/carlspring/strongbox/xml/parsers/GenericParser.java | 5887 | package org.carlspring.strongbox.xml.parsers;
import org.carlspring.strongbox.url.ClasspathURLStreamHandler;
import org.carlspring.strongbox.url.ClasspathURLStreamHandlerFactory;
import org.carlspring.strongbox.xml.CustomTagService;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.... | apache-2.0 |
racker/service-registry | node_modules/zookeeper-client/lib/algorithms/lock.js | 6297 | var zkUtil = require('../util');
var zkConstants = require('../constants');
var ZK = require('zookeeper').ZooKeeper;
/**
* @constructor
* encapsulate the lock algorithm. I didn't want it exposed in the client.
* @param {ZkClient} client client doing the locking.
* @param {String} node name of lock.
* @param {Fu... | apache-2.0 |
VSadov/roslyn | eng/common/build.sh | 5023 | #!/usr/bin/env bash
# Stop script if unbound variable found (use ${var:-} if intentional)
set -u
# Stop script if command returns non-zero exit code.
# Prevents hidden errors caused by missing error code propagation.
set -e
usage()
{
echo "Common settings:"
echo " --configuration <value> Build configuration:... | apache-2.0 |
domix/libgdx | extensions/gdx-bullet/jni/swig-src/com/badlogic/gdx/physics/bullet/btContactManifoldTypes.java | 624 | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.10
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* -----------------------... | apache-2.0 |
chrisradek/aws-sdk-js | clients/iot1clickprojects.d.ts | 20275 | import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class IoT1ClickProjec... | apache-2.0 |
paybyphone/soothsayer | soothsayer/OracleMigrator.cs | 10677 | using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using soothsayer.Infrastructure;
using soothsayer.Infrastructure.IO;
using soothsayer.Migrations;
using soothsayer.Scanners;
using soothsayer.Scripts;
namespace soothsayer
{
public class OracleMigrator : IMigrator
{
... | apache-2.0 |
apache/uima-sandbox | CasViewerEclipsePlugin/uimaj-ep-casviewer-core/src/main/java/org/apache/uima/casviewer/core/internal/AnnotationObjectsNode.java | 717 | package org.apache.uima.casviewer.core.internal;
import java.util.List;
/**
* A node that contains a list of AnnotationObject(s)
*
*/
public class AnnotationObjectsNode {
protected List<AnnotationObject> annotationList;
public AnnotationObjectsNode () {
}
public AnnotationObjectsNo... | apache-2.0 |
antoinesd/weld-core | impl/src/main/java/org/jboss/weld/injection/producer/ProducerMethodProducer.java | 5998 | /*
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | apache-2.0 |
play2-maven-plugin/play2-maven-test-projects | play26/java/websocket-example-using-webjars-assets/test/controllers/WebSocketClient.java | 2469 | package controllers;
import play.shaded.ahc.org.asynchttpclient.AsyncHttpClient;
import play.shaded.ahc.org.asynchttpclient.BoundRequestBuilder;
import play.shaded.ahc.org.asynchttpclient.ListenableFuture;
import play.shaded.ahc.org.asynchttpclient.ws.WebSocket;
import play.shaded.ahc.org.asynchttpclient.ws.WebSocketL... | apache-2.0 |
slozier/ironpython2 | Src/IronPython/Lib/iptest/cominterop_util.py | 24101 | # Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.
# COM interop utility module
import sys
import nt
from iptest.assert_util import *
from iptest.file_util ... | apache-2.0 |
domix/libgdx | backends/gdx-backend-jglfw/src/com/badlogic/gdx/backends/jglfw/JglfwApplicationConfiguration.java | 3674 |
package com.badlogic.gdx.backends.jglfw;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Graphics.DisplayMode;
import com.badlogic.gdx.backends.jglfw.JglfwGraphics.JglfwDisplayMode;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.utils.Array;
import java.awt.GraphicsDevice;
import java.awt.Graph... | apache-2.0 |
xnx3/iw_demo | src/com/xnx3/j2ee/entity/FriendLog.java | 1858 | package com.xnx3.j2ee.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* FriendLog entity. @author MyEclipse Persistence Tools
*... | apache-2.0 |
printminion/gdgsched | android/src/com/google/android/apps/iosched/ui/VendorDetailFragment.java | 6196 | /*
* Copyright 2012 Google Inc.
*
* 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... | apache-2.0 |
prabushi/devstudio-tooling-esb | plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src-gen/org/wso2/developerstudio/eclipse/gmf/esb/parts/forms/TaskPropertyPropertiesEditionPartForm.java | 18210 | /**
* Generated with Acceleo
*/
package org.wso2.developerstudio.eclipse.gmf.esb.parts.forms;
// Start of user code for imports
import org.eclipse.emf.common.util.Enumerator;
import org.eclipse.emf.ecore.util.EcoreAdapterFactory;
import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;
import org.ecli... | apache-2.0 |
reteo/CustomOreGen | src/main/java/CustomOreGen/Util/MapCollection.java | 3588 | package CustomOreGen.Util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
public abstract class MapCollection<K,V> implements Collection<V>
{
protected final Map<K,V> backingMap;
public MapCollection(Map<K,V> backingMap)
... | artistic-2.0 |
sjackman/homebrew-core | Formula/helmfile.rb | 2316 | class Helmfile < Formula
desc "Deploy Kubernetes Helm Charts"
homepage "https://github.com/roboll/helmfile"
url "https://github.com/roboll/helmfile/archive/v0.142.0.tar.gz"
sha256 "5475a041f0a1eb5777cc45e3fb06458ae76b1d4840aec89f2fed509d833d0cde"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocat... | bsd-2-clause |
ghickman/incuna-auth | incuna_auth/middleware/utils.py | 272 | import re
# Python 2/3 compatibility hackery
try:
unicode
except NameError:
unicode = str
def compile_url(url):
clean_url = unicode(url).lstrip(u'/')
return re.compile(clean_url)
def compile_urls(urls):
return [compile_url(expr) for expr in urls]
| bsd-2-clause |
zyedidia/homebrew-core | Formula/helmsman.rb | 1369 | class Helmsman < Formula
desc "Helm Charts as Code tool"
homepage "https://github.com/Praqma/helmsman"
url "https://github.com/Praqma/helmsman.git",
tag: "v3.7.2",
revision: "6d7e6ddb2c7747b8789dd72db7714431fe17e779"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_big_... | bsd-2-clause |
bjodah/chemreac | examples/steady_state.py | 4970 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from math import log
import argh
import numpy as np
from chemreac import ReactionDiffusion
from chemreac.integrate import run
from chemreac.util.plotting import plot_solver_linear_error
def efield_cb(x, ... | bsd-2-clause |
Stephan202/jaxb2-basics | runtime/src/main/java/org/jvnet/jaxb2_commons/xml/bind/model/concrete/CMInfoFactory.java | 22939 | package org.jvnet.jaxb2_commons.xml.bind.model.concrete;
import java.util.ArrayList;
import java.util.Collection;
import java.util.IdentityHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.activation.MimeType;
import javax.xml.namespace.NamespaceContext;
import javax.xml.namespa... | bsd-2-clause |
sebastienros/jint | Jint.Tests.Test262/test/built-ins/String/S15.5.2.1_A1_T16.js | 4487 | // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
When "String" is called as part of a new expression, it is a constructor: it initialises the newly created object and
The [[Value]] property of the newly constructed... | bsd-2-clause |
tedski/homebrew-cask | Casks/anka-flow.rb | 1593 | cask 'anka-flow' do
version '1.1.1.79'
sha256 '9f91222458f5b7b52bee53a62e878faed4a4894ca02fe3d37b52b79b54c523fa'
# d1efqjhnhbvc57.cloudfront.net was verified as official when first introduced to the cask
url "https://d1efqjhnhbvc57.cloudfront.net/AnkaFlow-#{version}.pkg",
referer: 'https://veertu.com/dow... | bsd-2-clause |
aosm/WebCore | Modules/mediastream/MediaTrackConstraints.cpp | 2294 | /*
* Copyright (C) 2013 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | bsd-2-clause |
makinacorpus/Geotrek | geotrek/trekking/migrations/0024_copy_labels.py | 649 | # Generated by Django 3.1.4 on 2020-12-15 15:58
from django.db import migrations
def copy_labels(apps, schema_editor):
Trek = apps.get_model('trekking', 'Trek')
Label = apps.get_model('common', 'Label')
for trek in Trek.objects.all():
for label in trek.labels.all():
label2, created =... | bsd-2-clause |
Axivity/openmovement-axsys-client | vendor/rc-tooltip/node_modules/rc-trigger/node_modules/rc-animate/README.md | 4852 | # rc-animate
---
animate react element easily
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![gemnasium deps][gemnasium-image]][gemnasium-url]
[![node version][node-image]][node-url]
[![npm download][download-image]][download-url]
... | bsd-2-clause |
jdubois/homebrew-core | Formula/cuetools.rb | 1827 | class Cuetools < Formula
desc "Utilities for .cue and .toc files"
homepage "https://github.com/svend/cuetools"
url "https://github.com/svend/cuetools/archive/1.4.1.tar.gz"
sha256 "24a2420f100c69a6539a9feeb4130d19532f9f8a0428a8b9b289c6da761eb107"
head "https://github.com/svend/cuetools.git"
bottle do
ce... | bsd-2-clause |
Project-OSRM/osrm-backend | third_party/sol2/examples/coroutine_state.cpp | 1131 | #define SOL_CHECK_ARGUMENTS 1
#include <sol.hpp>
#include "assert.hpp"
#include <iostream>
int main(int, char*[]) {
std::cout << "=== coroutine state transfer ===" << std::endl;
sol::state lua;
lua.open_libraries();
sol::function transferred_into;
lua["f"] = [&lua, &transferred_into](sol::object t, sol::this_st... | bsd-2-clause |
mostafa-saad/deep-activity-rec | eclipse-project/ibrahim16-deep-act-rec-part/apps/exePhase4.cpp | 7728 | /*
* w-driver-volleyball-lstm-evaluator.cpp
*
* Created on: Jul 13, 2015
* Author: msibrahi
*/
#include <iostream>
#include <vector>
#include <stdio.h>
#include <string>
#include <set>
#include <set>
#include <map>
#include <iomanip>
using std::vector;
using std::set;
using std::multiset;
using std::map;
us... | bsd-2-clause |
diegows/wanproxy | event/test/action-cancel1/action-cancel1.cc | 2406 | /*
* Copyright (c) 2008-2011 Juli Mallett. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of cond... | bsd-2-clause |
XiaochenFTX/ftxpath | test/test_dirname.cpp | 1239 | //
// Created by 王晓辰 on 15/10/2.
//
#include "test_dirname.h"
#include <ftxpath.h>
#include "tester.h"
bool test_dirname_path()
{
std::string path = "/a/b/c/d";
std::string dirname = "/a/b/c";
return dirname == ftx::path::dirname(path);
}
bool test_dirname_onename()
{
std::string name = "name";
retur... | bsd-2-clause |
aosm/WebCore | bindings/generic/RuntimeEnabledFeatures.cpp | 5200 | /*
* Copyright (C) 2009 Google Inc. All rights reserved.
* Copyright (C) 2013 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retai... | bsd-2-clause |
tonykwok/leonardosketch.amino | src/org/joshy/gfx/test/itunes/Song.java | 622 | package org.joshy.gfx.test.itunes;
/**
* Created by IntelliJ IDEA.
* User: josh
* Date: Jan 28, 2010
* Time: 9:20:01 PM
* To change this template use File | Settings | File Templates.
*/
class Song {
int trackNumber;
int totalTracks;
String name;
String album;
String artist;
int duration;
p... | bsd-2-clause |
filcab/homebrew-core | Formula/dxpy.rb | 4787 | class Dxpy < Formula
include Language::Python::Virtualenv
desc "DNAnexus toolkit utilities and platform API bindings for Python"
homepage "https://github.com/dnanexus/dx-toolkit"
url "https://files.pythonhosted.org/packages/7e/d8/9529a045270fe2cee67c01fde759864b9177ecdd486d016c3a38863f3895/dxpy-0.320.0.tar.gz"... | bsd-2-clause |
chop-dbhi/cilantro | src/js/cilantro/ui/charts/editable.js | 8396 | /* global define */
define([
'jquery',
'underscore',
'./dist',
'./axis'
], function($, _, dist, axis) {
var EditableFieldChart = dist.FieldChart.extend({
template: 'charts/editable-chart',
toolbarAnimationTime: 200,
formAnimationTime: 300,
events: _.extend({
... | bsd-2-clause |
deivid-rodriguez/byebug | lib/byebug/commands.rb | 1337 | # frozen_string_literal: true
require_relative "commands/break"
require_relative "commands/catch"
require_relative "commands/condition"
require_relative "commands/continue"
require_relative "commands/debug"
require_relative "commands/delete"
require_relative "commands/disable"
require_relative "commands/display"
requi... | bsd-2-clause |
ebroecker/canmatrix | examples/exampleJoin.py | 357 | #!/usr/bin/env python3
import canmatrix.formats
from canmatrix.join import join_frame_by_signal_start_bit
files = ["../test/db_B.dbc", "../test/db_A.dbc"]
target = join_frame_by_signal_start_bit(files)
#
# export the new (target)-Matrix for example as .dbc:
#
canmatrix.formats.dumpp(target, "target.dbc")
canmatrix.... | bsd-2-clause |
juanrapoport/ogc-schemas | scripts/tests/WMSC/WMSC.js | 84 | module.exports =
{
"WMSC": {
"WMSC_1_1_1" : require('./1.1.1/WMSC_1_1_1')
}
};
| bsd-2-clause |
jirmauritz/perun | perun-core/src/main/java/cz/metacentrum/perun/core/bl/SearcherBl.java | 4338 | package cz.metacentrum.perun.core.bl;
import cz.metacentrum.perun.core.api.Attribute;
import cz.metacentrum.perun.core.api.Member;
import cz.metacentrum.perun.core.api.PerunSession;
import cz.metacentrum.perun.core.api.User;
import cz.metacentrum.perun.core.api.exceptions.InternalErrorException;
import cz.metacentrum.... | bsd-2-clause |
scottsuch/homebrew-cask | Casks/aleo-studio.rb | 707 | cask "aleo-studio" do
version "0.15.2"
sha256 "ac33308a0ae210cb23cd90b67d92ccba02245d869a9be8477050e08b41a6c084"
url "https://aleo-studio-releases.sfo2.digitaloceanspaces.com/latest/macos/x64/Aleo%20Studio-#{version}-mac.zip",
verified: "aleo-studio-releases.sfo2.digitaloceanspaces.com/"
name "Aleo Studi... | bsd-2-clause |
fraxachun/koala-framework | Kwc/Menu/EditableItems/Controller.php | 698 | <?php
class Kwc_Menu_EditableItems_Controller extends Kwf_Controller_Action_Auto_Kwc_Grid
{
protected $_buttons = array();
protected $_model = 'Kwc_Menu_EditableItems_Model';
protected $_defaultOrder = array('field' => 'pos', 'direction' => 'ASC');
protected function _initColumns()
{
$this-... | bsd-2-clause |
wolffaxn/homebrew-core | Formula/wimlib.rb | 1434 | class Wimlib < Formula
desc "Library to create, extract, and modify Windows Imaging files"
homepage "https://wimlib.net/"
url "https://wimlib.net/downloads/wimlib-1.13.1.tar.gz"
sha256 "47f4bc645c1b6ee15068d406a90bb38aec816354e140291ccb01e536f2cdaf5f"
bottle do
cellar :any
rebuild 1
sha256 "ea449... | bsd-2-clause |
dean0x7d/pybinding | cppcore/src/hamiltonian/Hamiltonian.cpp | 1497 | #include "hamiltonian/Hamiltonian.hpp"
namespace cpb {
namespace {
struct IsValid {
template<class scalar_t>
bool operator()(SparseMatrixRC<scalar_t> const& p) const { return p != nullptr; }
};
struct Reset {
template<class scalar_t>
void operator()(SparseMatrixRC<scalar_t>& p) const { p.reset(); }
}... | bsd-2-clause |
solitaryr/sticky-notes | app/views/skins/bootstrap/admin/site.blade.php | 14466 | @extends('skins.bootstrap.admin.layout')
@section('module')
<section id="admin-site">
{{
Form::open(array(
'autocomplete' => 'off',
'role' => 'form',
'class' => 'form-horizontal',
))
}}
<div class="row">
<div class="col-sm-12">
<fieldset>
<legend>{{ Lang::get(... | bsd-2-clause |
ocochard/netbenches | Xeon_E5-2697Av4_16Cores-Chelsio_T580/ip.redirect/results/13-r354862/README.md | 1366 | Impact of disabling icmp redirect (ie re-enabling fastforward) on forwarding performance
- Intel Xeon CPU E5-2697A v4 @ 2.60GHz (16c, 32t)
- Chelsio 40-Gigabit T580-LP-CR (QSFP+ 40GBASE-SR4 (MPO 1x12 Parallel Optic))
- FreeBSD 13-HEAD r354862 (19/11/2019)
- 5000 flows of smallest UDP packets (1 byte payload)
`... | bsd-2-clause |
ssaroha/node-webrtc | third_party/webrtc/include/chromium/src/chrome/common/extensions/chrome_extension_messages.h | 5967 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Chrome-specific IPC messages for extensions.
// Extension-related messages that aren't specific to Chrome live in
// extensions/common/extension_messag... | bsd-2-clause |
stavamichal/perun | perun-web-gui/src/main/java/cz/metacentrum/perun/webgui/tabs/cabinettabs/PublicationDetailTabItem.java | 19457 | package cz.metacentrum.perun.webgui.tabs.cabinettabs;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.safehtml.shared.SafeHtmlUtils;
im... | bsd-2-clause |
kit-transue/software-emancipation-discover | config/config/NT/sourcesafe/cm_unlock.bat | 2096 | @echo off
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Copyright (c) 2015, Synopsys, Inc. :
:: All rights reserved. :
:: :
:: Red... | bsd-2-clause |
ssaroha/node-webrtc | third_party/webrtc/include/chromium/src/chrome/browser/chromeos/fileapi/file_system_backend.h | 7738 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_
#define CHROME_BROWSER_CHROMEOS_FILEAPI_FILE_SYSTEM_BACKEND_H_
#include <stdint.h>
#inclu... | bsd-2-clause |
splbio/wanproxy | network/uinet/sys/amd64/include/sf_buf.h | 2166 | /*-
* Copyright (c) 2003, 2005 Alan L. Cox <alc@cs.rice.edu>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* noti... | bsd-2-clause |
pombredanne/django-boilerplate-1 | project/urls.py | 248 | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'', include('project.core.urls', namespace='core')),
)
| bsd-2-clause |
heurezjusz/Athena | athenet/utils/misc.py | 7019 | """Auxiliary functions."""
import cPickle as pickle
import os
import sys
import gzip
import urllib
import numpy
import theano
import theano.tensor as T
import theano.sandbox.cuda
from athenet.utils import BIN_DIR, DATA_DIR
def load_data_from_pickle(filename):
"""Load data from pickle file.
:param filename... | bsd-2-clause |
Solidstatewater/Anubis-Engine | VSMDemo/Source/Game/Entities/ObstacleEntity/ObstacleEntity.h | 403 | #pragma once
//========================================================================
// ObstacleEntity.h
//
// This code is part of Minotower Games Engine 1.0v
//
// (c) Copyright 2012 Muralev Evgeny
//========================================================================
#include "Entities\Entity.h"
class Obsta... | bsd-2-clause |
csev/wa4e | code/objects/scratch.php | 236 | <?php
$player = new stdClass();
$player->name = "Chuck";
$player->score = 0;
$player->score++;
print_r($player);
class Player {
public $name = "Sally";
public $score = 0;
}
$p2 = new Player();
$p2->score++;
print_r($p2);
| bsd-2-clause |
Suremaker/LightBDD | examples/Example.LightBDD.XUnit2/Features/Calculator_feature.Steps.cs | 1059 | using Example.Domain.Domain;
using LightBDD.Framework;
using LightBDD.Framework.Parameters;
using LightBDD.XUnit2;
namespace Example.LightBDD.XUnit2.Features
{
public partial class Calculator_feature : FeatureFixture
{
private Calculator _calculator;
private void Given_a_calculator()
... | bsd-2-clause |
ocochard/netbenchs | Xeon_E5-2650v4_2x12Cores-Mellanox_ConnectX-3/forwarding-pf-ipfw/results/fbsd11.1-yandex/README.md | 1602 | ```
x forwarding.inet4.pps
+ forwarding.inet6.pps
+--------------------------------------------------------------------------+
|+ + + x + + x x x x |
| |___________________A__M_______________||
||_______________M______A______________... | bsd-2-clause |
dwestheide/slick-effect-types | src/main/scala/com/danielwestheide/slickeffecttypes/App.scala | 818 | package com.danielwestheide.slickeffecttypes
import com.danielwestheide.slickeffecttypes.db.DatabaseModule
import com.danielwestheide.slickeffecttypes.statuses._
import scala.concurrent.Await
import scala.concurrent.duration._
object App extends App with SchemaCreation {
val databaseModule = new DatabaseModule
... | bsd-2-clause |
zmwangx/homebrew-core | Formula/nsd.rb | 1093 | class Nsd < Formula
desc "Name server daemon"
homepage "https://www.nlnetlabs.nl/projects/nsd/"
url "https://www.nlnetlabs.nl/downloads/nsd/nsd-4.2.2.tar.gz"
sha256 "83b333940a25fe6d453bcac6ea39edfa244612a879117c4a624c97eb250246fb"
revision 1
bottle do
sha256 "ca69db82461ccb04f94857b03715b967f80896539d... | bsd-2-clause |
BrewTestBot/homebrew-core | Formula/ejabberd.rb | 2601 | class Ejabberd < Formula
desc "XMPP application server"
homepage "https://www.ejabberd.im"
url "https://static.process-one.net/ejabberd/downloads/20.03/ejabberd-20.03.tgz"
sha256 "1a54ef1cdc391a25b81c3ed3e9e8aa43434a8d4549b4e86c54af3ecf121d0144"
bottle do
cellar :any
sha256 "9518b32a672d6a756a2959489... | bsd-2-clause |
zekone/dj_pybb | pybb/migrations/0023_auto__add_unique_pollansweruser_poll_answer_user.py | 12958 | # encoding: utf-8
from django.db.utils import IntegrityError, DatabaseError
try:
from django.contrib.auth import get_user_model
except ImportError: # django < 1.5
from django.contrib.auth.models import User
else:
User = get_user_model()
import datetime
from south.db import db
from south.v2 import SchemaMi... | bsd-2-clause |