repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
markphip/testing | jira-dvcs-connector-plugin/src/main/java/com/atlassian/jira/plugins/dvcs/dao/impl/SyncAuditLogDaoImpl.java | 12884 | package com.atlassian.jira.plugins.dvcs.dao.impl;
import com.atlassian.activeobjects.external.ActiveObjects;
import com.atlassian.event.api.EventPublisher;
import com.atlassian.jira.plugins.dvcs.activeobjects.v3.SyncAuditLogMapping;
import com.atlassian.jira.plugins.dvcs.analytics.event.DvcsSyncEndAnalyticsEvent;... | bsd-2-clause |
AlexRakita/gst_streamer | py_nodes/gst_viewer_node.py | 2738 | #!/usr/bin/env python
from __future__ import print_function
import rospy
import std_msgs.msg
import gst_engines
DEFAULT_PIPELINE_STRING = gst_engines.DEFAULT_VIEWER_PIPELINE
DEFAULT_PORT = gst_engines.DEFAULT_PORT
DEFAULT_AUTO_RESTART = True
class GstViewerNode(object):
"""
A ROS node class handling the r... | bsd-2-clause |
GauthamGoli/django-organizations | organizations/views.py | 8405 | # -*- coding: utf-8 -*-
# Copyright (c) 2012-2015, Ben Lopatin and contributors
# 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 retain the above copyright ... | bsd-2-clause |
liyanage/python-xcodeproject | xcodeproject/__init__.py | 27 | from .xcodeproject import * | bsd-2-clause |
zielmicha/dotlang | dot/lib/core.py | 5485 | from __future__ import division
from functools import partial
import operator
class Environ(object):
def __init__(self, parents=[]):
self.data = {}
self.parents = parents
def __getitem__(self, key):
if key in self.data:
return self.data[key]
for env in self.parents... | bsd-2-clause |
alebcay/homebrew-cask | Casks/cryptomator.rb | 784 | cask "cryptomator" do
version "1.6.2"
sha256 "5eb93817950df592730ad492c47ddb913d3868af4545a235e0bbebd7d528c257"
url "https://github.com/cryptomator/cryptomator/releases/download/#{version}/Cryptomator-#{version}.dmg",
verified: "github.com/cryptomator/cryptomator/"
name "Cryptomator"
desc "Multi-platfo... | bsd-2-clause |
universalcore/unicore.comments.client | unicore/comments/client/tests/fixtures.py | 1553 | import json
from datetime import datetime
import pytz
from uuid import uuid4
'''
Comment fixtures
'''
comment_data = {
'uuid': 'd269f09c4672400da4250342d9d7e1e4',
'user_uuid': '2923280ee1904478bfcf7a46f26f443b',
'content_uuid': 'f587b74816bb425ab043f1cf30de7abe',
'app_uuid': 'bbc0035128b34ed48bdacab... | bsd-2-clause |
phpmentors-jp/codeiq-greeter-php | scripts/app.php | 974 | <?php
require_once __DIR__.'/../vendor/autoload.php';
use CodeIQ\Greeter\Clock;
use CodeIQ\Greeter\Globe;
use CodeIQ\Greeter\Greeter;
use CodeIQ\Greeter\TimeRangeFactory;
$clock = new Clock();
$globe = new Globe();
$greeter = new Greeter($clock, $globe);
$timeRange = new TimeRangeFactory();
$greeter->addTimeRang... | bsd-2-clause |
wied03/ansible-ruby | lib/ansible/ruby/modules/generated/net_tools/ipinfoio_facts.rb | 593 | # frozen_string_literal: true
# See LICENSE.txt at root of repository
# GENERATED FILE - DO NOT EDIT!!
require 'ansible/ruby/modules/base'
module Ansible
module Ruby
module Modules
# Gather IP geolocation facts of a host's IP address using ipinfo.io API
class Ipinfoio_facts < Base
# @return [... | bsd-2-clause |
Maplecroft/django-cookie-law | cookielaw/templatetags/cookielaw_tags.py | 906 | import warnings
from classytags.helpers import InclusionTag
from django import template
from django.template.loader import render_to_string
register = template.Library()
class CookielawBanner(InclusionTag):
"""
Displays cookie law banner only if user has not dismissed it yet.
"""
template = 'cooki... | bsd-2-clause |
mysteryjeans/Feedbook | Feedbook/Services/Security/OAuthSignatureBase.cs | 6616 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Feedbook.Helper;
using System.Collections.ObjectModel;
using CoreSystem.RefTypeExtension;
using CoreSystem.Util;
using CoreSystem.ValueTypeExtension;
using System.Security.Cryptography;
using System.Collections.Specia... | bsd-2-clause |
ffalchi/it.cnr.isti.vir | src/it/cnr/isti/vir/similarity/SimilarityOptionException.java | 1757 | /*******************************************************************************
* Copyright (c) 2013, Fabrizio Falchi (NeMIS Lab., ISTI-CNR, Italy)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions a... | bsd-2-clause |
applesrc/WebCore | inspector/InspectorOverlay.cpp | 39415 | /*
* Copyright (C) 2011 Google 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 condit... | bsd-2-clause |
michaelvlaar/etcd-endpointer | examples/echoservice/client/client.go | 1200 | package main
import (
"flag"
"github.com/michaelvlaar/etcd-endpointer/examples/echoservice/api/protos"
"golang.org/x/net/context"
"google.golang.org/grpc"
"gopkg.in/inconshreveable/log15.v2"
"time"
)
var (
endpoint = flag.String("endpoint", ":9090", "GeneralsView API endpoint. Usage <host>:<port>.")
userID ... | bsd-2-clause |
leviroth/praw | praw/models/reddit/message.py | 3806 | """Provide the Message class."""
from ...const import API_PATH
from .base import RedditBase
from .mixins import FullnameMixin, InboxableMixin, ReplyableMixin
from .redditor import Redditor
from .subreddit import Subreddit
class Message(InboxableMixin, ReplyableMixin, FullnameMixin, RedditBase):
"""A class for pri... | bsd-2-clause |
sightmachine/simplecv2-facerecognizer | simplecv_facerecognizer/haar_cascade.py | 1742 | import os
from simplecv.base import logger
import cv2
from simplecv_facerecognizer import DATA_DIR
class HaarCascade(object):
"""
This class wraps HaarCascade files for the find_haar_features file.
To use the class provide it with the path to a Haar cascade XML file and
optionally a name.
"""
... | bsd-2-clause |
bureau14/qdb-benchmark | thirdparty/boost/boost/iostreams/detail/bool_trait_def.hpp | 1956 | // (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
// (C) Copyright 2003-2007 Jonathan Turkanis
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
// See http://www.boost.org/libs/iostreams for docume... | bsd-2-clause |
laeotropic/HTTP-Proxy | deps/asio-1.10.1/include/asio/detail/std_event.hpp | 2691 | //
// detail/std_event.hpp
// ~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef ASIO_DETAIL_STD_EVE... | bsd-2-clause |
bobthekingofegypt/bobball-playn | core/src/main/java/org/bobstuff/bobball/core/Ball.java | 4754 | /*
Copyright (c) 2012 Richard Martin. All rights reserved.
Licensed under the terms of the BSD License, see LICENSE.txt
*/
package org.bobstuff.bobball.core;
import org.bobstuff.bobball.android.Rect;
import pythagoras.f.Point;
public class Ball {
private static final int BALL_UNDEFINED = 0;
private static fin... | bsd-2-clause |
jrgoldfinemiddleton/cs61b | pj2/list/DList.java | 4736 | /* DList.java */
package list;
import java.util.Iterator;
/**
* A mutable doubly-linked list ADT. Its implementation is circularly-linked
* and employs a sentinel node at the head of the list.
*/
public class DList extends List {
/* Instance Fields
* (inherited) size is the number of items in the list.
... | bsd-2-clause |
Linuxbrew/homebrew-core | Formula/triton.rb | 1283 | require "language/node"
class Triton < Formula
desc "Joyent Triton CLI"
homepage "https://www.npmjs.com/package/triton"
url "https://registry.npmjs.org/triton/-/triton-7.15.0.tgz"
sha256 "96d2f68caf6bb68187da619ccfa305f8d85126a2e5199b2830255a6b1fc9a67c"
license "MPL-2.0"
bottle do
sha256 cellar: :any_... | bsd-2-clause |
Linuxbrew/homebrew-core | Formula/bowtie2.rb | 1369 | class Bowtie2 < Formula
desc "Fast and sensitive gapped read aligner"
homepage "https://bowtie-bio.sourceforge.io/bowtie2/"
url "https://github.com/BenLangmead/bowtie2/archive/v2.4.4.tar.gz"
sha256 "ef8272fc1b3e18a30f16cb4b6a4344bf50e1f82fbd3af93dc8194b58e5856f64"
license "GPL-3.0-or-later"
revision 1
bo... | bsd-2-clause |
JCount/homebrew-core | Formula/http_load.rb | 1805 | class HttpLoad < Formula
desc "Test throughput of a web server by running parallel fetches"
homepage "https://www.acme.com/software/http_load/"
url "https://www.acme.com/software/http_load/http_load-09Mar2016.tar.gz"
version "20160309"
sha256 "5a7b00688680e3fca8726dc836fd3f94f403fde831c71d73d9a1537f215b4587"
... | bsd-2-clause |
renemilk/DUNE-Stuff | dune/stuff/test/grid_walker.cc | 3303 | // This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#include "main.hxx"
#if HAVE_DUNE_GRID
# include <dune/stuff/grid/walker.hh>
# include <dune/s... | bsd-2-clause |
labibramadhan/cbt-crossword-web | app/index.js | 1820 | require('./app');
require('./app-acl');
require('./app-chart');
require('./app-config');
require('./app-constant');
require('./app-formly');
require('./app-locale');
require('./app-routes');
require('./app-run');
require('./app-translate');
require('./components/controllers/login');
require('./components/controllers/d... | bsd-2-clause |
sebastienros/jint | Jint.Tests.Test262/test/annexB/language/function-code/block-decl-func-skip-early-err.js | 1006 | // This file was procedurally generated from the following sources:
// - src/annex-b-fns/func-skip-early-err.case
// - src/annex-b-fns/func/block.template
/*---
description: Extension not observed when creation of variable binding would produce an early error (Block statement in function scope containing a function dec... | bsd-2-clause |
bliksemlabs/bliksemintegration-realtime | src/main/java/nl/ovapi/bison/JourneyProcessor.java | 44665 | package nl.ovapi.bison;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;
import lombok.Synchronized;
import nl... | bsd-2-clause |
MadMikeyB/HotOrNot | lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php | 26649 | <?php
/**
* DboSourceTest file
*
* PHP 5
*
* CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The Open Group Test Suite License
* Redistributions of files must retain the above copyright notice.
*... | bsd-2-clause |
wjw465150/jodd | jodd-json/src/test/java/jodd/json/model/MyFolder3.java | 1568 | // Copyright (c) 2003-present, Jodd Team (http://jodd.org)
// 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,
// th... | bsd-2-clause |
petr-panteleyev/money-manager | src/main/java/org/panteleyev/money/app/database/TCPEditor.java | 5163 | /*
Copyright (c) Petr Panteleyev. All rights reserved.
Licensed under the BSD license. See LICENSE file in the project root for full license information.
*/
package org.panteleyev.money.app.database;
import javafx.event.ActionEvent;
import javafx.geometry.Insets;
import javafx.scene.control.PasswordField;
import ja... | bsd-2-clause |
mwilliamson/java-mammoth | src/main/java/org/zwobble/mammoth/internal/archives/Archives.java | 357 | package org.zwobble.mammoth.internal.archives;
import java.io.IOException;
import java.io.InputStream;
public class Archives {
public static InputStream getInputStream(Archive file, String name) throws IOException {
return file.tryGetInputStream(name)
.orElseThrow(() -> new IOException("Missin... | bsd-2-clause |
neverfox/homebrew-cask | Casks/ibettercharge.rb | 712 | cask "ibettercharge" do
version "1.0.12,1568119585"
sha256 "33de59c5a1157b23f9313348ef60e213200d007e2b16c4f53859ddcb4c66d696"
url "https://dl.devmate.com/com.softorino.iBetterCharge/#{version.before_comma}/#{version.after_comma}/iBetterCharge-#{version.before_comma}.zip",
verified: "devmate.com/com.softori... | bsd-2-clause |
pyrus/Pyrus | vendor/php/Pyrus/Developer/CoverageAnalyzer/Web/View.php | 16900 | <?php
namespace Pyrus\Developer\CoverageAnalyzer\Web;
use Pyrus\Developer\CoverageAnalyzer\SourceFile;
/**
* Takes a source file and outputs HTML source highlighting showing the
* number of hits on each line, highlights un-executed lines in red
*/
class View
{
protected $savePath;
protected $testPath;
pr... | bsd-2-clause |
ravikiranj/rkjanardhana-dot-com | stockPrice.py | 881 | #!/usr/bin/env python
import requests
import cgi
import json
## Extract symbol if it exists
arguments = cgi.FieldStorage()
symbol = None
if arguments != None:
symbol = arguments.getvalue("symbol")
if symbol == None:
symbol = "TRIP"
url = "http://dev.markitondemand.com/Api/v2/Quote/json?symbol=" + symbol
r = ... | bsd-2-clause |
ColumbiaCMB/kid_readout | kid_readout/measurement/core.py | 40786 | """
This module is the core of the measurement subpackage. See __init__.py for documentation.
"""
import copy_reg
import re
import logging
import inspect
import keyword
import importlib
from numbers import Number
from collections import OrderedDict
import numpy as np
import pandas as pd
from kid_readout.measurement i... | bsd-2-clause |
dscorbett/pygments | doc/examples/example.py | 317 | from typing import Iterator
# This is an example
class Math:
@staticmethod
def fib(n: int) -> Iterator[int]:
""" Fibonacci series up to n """
a, b = 0, 1
while a < n:
yield a
a, b = b, a + b
result = sum(Math.fib(42))
print("The answer is {}".format(result))
| bsd-2-clause |
gameduell/input | backends/input_android/java/org/haxe/duell/input/keyboard/TextField.java | 6633 | /*
* Copyright (c) 2003-2015, GameDuell GmbH
* 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 co... | bsd-2-clause |
nicolasdespres/hunittest | hunittest/runner.py | 5732 | # -*- encoding: utf-8 -*-
"""Routines to execute test suites.
"""
import unittest
import multiprocessing as mp
import time
import sys
import traceback
from collections import namedtuple
from hunittest.unittestresultlib import HTestResultClient
from hunittest.unittestresultlib import TestResultMsg
from hunittest.cover... | bsd-2-clause |
DomT4/homebrew-core | Formula/saxon.rb | 1045 | class Saxon < Formula
desc "XSLT and XQuery processor"
homepage "https://saxon.sourceforge.io"
url "https://downloads.sourceforge.net/project/saxon/Saxon-HE/9.8/SaxonHE9-8-0-14J.zip"
version "9.8.0.14"
sha256 "139644e35aed79f16218848cd5e6c00f70c54378b3821e6d6ac723d8b84a4287"
bottle :unneeded
def install... | bsd-2-clause |
uwgraphics/Ubiqu-Ity | Ity/Taggers/DocuscopeTagger/DocuscopeTagger.py | 16245 | # coding=utf-8
__author__ = 'kohlmannj'
from copy import copy, deepcopy
import os
import Ity
import DocuscopeDictionary
from DocuscopeCSVDictionary import DocuscopeCSVDictionary
from Ity.Tokenizers import Tokenizer
from Ity.Taggers import Tagger
import time
class DocuscopeTagger(Tagger):
"""
DocuscopeTagger ... | bsd-2-clause |
micschk/silverstripe-liveseo | code/SeoInformationProvider.php | 554 | <?php
/**
* Optionally provide extra information for the SEO plugin to use to calculate a score from JS
*/
interface SeoInformationProvider
{
/**
* Provide a list of images. Currently only the number of images is used
* @return DataList Images, either objects, or URLs
*/
public function getIm... | bsd-2-clause |
samrushing/caesure | caesure/verifyd.py | 1969 | # -*- Mode: Python; indent-tabs-mode: nil -*-
import argparse
import os
import coro
import struct
from caesure.bitcoin import TX
from coro.asn1.python import encode, decode
W = coro.write_stderr
def serve (G):
path = os.path.join (G.args.base, G.args.file)
s = coro.sock (coro.AF.UNIX, coro.SOCK.STREAM)
t... | bsd-2-clause |
sandor-balazs/nosql-java | mongodb/src/main/java/com/github/sandor_balazs/nosql_java/web/rest/dto/EmploymentDTO.java | 1617 | package com.github.sandor_balazs.nosql_java.web.rest.dto;
import java.time.LocalDate;
import java.io.Serializable;
import java.util.Objects;
/**
* A DTO for the Employment entity.
*/
public class EmploymentDTO implements Serializable {
private String id;
private Float fte;
private LocalDate startDat... | bsd-2-clause |
ThibaultReuille/graphiti | Scripts/console/graph.py | 6448 | import script
from script import *
class Topology(script.Script):
def neighbors(self, args):
new_neighbors = list()
if 'nodes' in self.console.query:
graph = std.load_nx_graph()
for nid in self.console.query['nodes']:
for neighbor in graph.neighbors(nid):
if neighbor not in self.console.query['nod... | bsd-2-clause |
EIDSS/EIDSS-Legacy | EIDSS v6.1/eidss.model/AVR/Pivot/LayoutBaseComplexity.cs | 615 | using System;
namespace eidss.model.Avr.Pivot
{
public class LayoutBaseComplexity
{
public virtual long CellCount
{
get { return 0; }
}
public virtual double Complexity
{
get { return 0; }
}
public long MemoryInM... | bsd-2-clause |
ajgallegog/gem5_arm | src/cpu/base.cc | 23808 | /*
* Copyright (c) 2011-2012 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the ... | bsd-3-clause |
IdentityModel/Thinktecture.IdentityModel.40 | IdentityModel/Thinktecture.IdentityModel/Tokens/Http/AuthenticationConfiguration.cs | 9913 | /*
* Copyright (c) Dominick Baier & Brock Allen. All rights reserved.
* see license.txt
*/
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.IdentityModel.Claims;
using Microsoft.IdentityModel.Tokens;
namespace Thinktecture.IdentityModel.Tokens.Http
{
public class Authenticat... | bsd-3-clause |
huntergdavis/Quick-Grapher | js/plain/math.js | 6148 | //+ Jonas Raoni Soares Silva
//@ http://jsfromhell.com/classes/math-processor [rev. #1]
// extra math functions hunter added from SO examples and TA
MathProcessor = function(){
var o = this;
o.o = {
"+": function(a, b){ return +a + b; },
"-": function(a, b){ return a - b; },
"%": funct... | bsd-3-clause |
arunchaganty/ctm-cvb | src/ctm-data.cpp | 1779 | /*
* ctm-cvb
*
* Structures pertaining to manipulation of data
*/
#include <cstdio>
#include <vector>
#include <string>
#include <cassert>
#include <cstring>
#include <iostream>
#include <fstream>
using namespace std;
#include "ctm-data.h"
#include "util.h"
#define BUF_SIZE 50
#define MAX(x,y) ( ((x) >= (y)) ... | bsd-3-clause |
m-ober/byceps | tests/blueprints/metrics/test_metrics.py | 1195 | """
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
import pytest
from ...conftest import database_recreated
# To be overridden by test parametrization
@pytest.fixture
def config_overrides():
return {}
@pytest.fixture
def client(config_overrides, make_admin_app,... | bsd-3-clause |
luisxue/TreesFramework | Application/library/elements.php | 24877 | <?php
use Phalcon\Mvc\User\Component;
/**
* Elements
*
* Helps to build UI elements for the application
*/
class elements extends Component
{
protected $_logger;
private function setLogger($account)
{
if($this->_logger==false)
$this->_logger=new Loggers($account,"... | bsd-3-clause |
vaas-krish/openthread | src/core/thread/mle_router_ftd.hpp | 29855 | /*
* Copyright (c) 2016, The OpenThread Authors.
* 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 ... | bsd-3-clause |
cassioozarias/lojainstrumento | module/Loja/src/Loja/Entity/Musico.php | 1718 | <?php
namespace Loja\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="musicos")
* @ORM\Entity(repositoryClass="Loja\Entity\MusicoRepository")
*/
class Musico {
/**
*
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue
* @var int
*/
pro... | bsd-3-clause |
jonas747/discordgo | events_easyjson.go | 40365 | // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
package discordgo
import (
json "encoding/json"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
// suppress unused package warning
var (
_ *json.RawMessage
_ *... | bsd-3-clause |
wfnex/openbras | src/ace/ACE_wrappers/tests/Compiler_Features_26_Test.cpp | 1848 | /**
* This program checks if the compiler doesn't have a certain bug
* that we encountered when testing C++11 features
*/
#include "test_config.h"
#if defined (ACE_HAS_CPP11)
#include <memory>
int
run_main (int, ACE_TCHAR *[])
{
ACE_START_TEST (ACE_TEXT("Compiler_Features_26_Test"));
int retval = 0;
std::... | bsd-3-clause |
team-worthwhile/worthwhile | implementierung/src/worthwhile.ui/src/edu/kit/iti/formal/pse/worthwhile/ui/actions/WorthwhileRulerBreakpointPropertiesActionDelegate.java | 674 | package edu.kit.iti.formal.pse.worthwhile.ui.actions;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.text.source.IVerticalRulerInfo;
import org.eclipse.ui.texteditor.AbstractRulerActionDelegate;
import org.eclipse.ui.texteditor.ITextEditor;
/**
* A delegate for providing the "Breakpoint properties... | bsd-3-clause |
a7000q/lk | backend/views/user/gridLimitations.php | 597 | <?
use kartik\grid\GridView;
?>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'id' => 'grid-limitations',
'columns' => [
'field.table.rus_name',
'field.rus_name',
'operand',
'valueField',
[
'class' => 'yii\grid\ActionColumn',
'templa... | bsd-3-clause |
drhodes/rust-postgres | tests/get_all_row_test.rs | 1111 | import test_basic::*;
import glue::*;
#[test]
fn GetAllRowTest() {
let conn = TestConnect();
Assure(conn.Exec("drop table if exists movie2"));
Assure(conn.Exec("create table movie2 (\
did serial,\
unique(did),\
title varchar(255),\
... | bsd-3-clause |
ierror/BeautifulMind.io | beautifulmind/mindmaptornado/decorators.py | 1019 | # -*- coding: utf-8 -*-
from .exceptions import HTTPException
class check_for_data(object):
def __init__(self, *args, **kwargs):
self.neede_data = args
self.options = kwargs
def __call__(self, method):
def wrapped_method(*args, **kwargs):
try:
for data in s... | bsd-3-clause |
element-doo/beepo | code/scala/client/src/main/scala/hr/element/beepo/client/Task.scala | 1403 | package hr.element.beepo.client
import email._
import sms._
import io._
import xml._
sealed trait Action
case object Persist extends Action
case object Send extends Action {
def apply(id: String, otherIDs: String*): Send =
Send(id +: otherIDs)
}
case class Send(val ids: Seq[String]) extends xml.SendXMLConvert... | bsd-3-clause |
NVIDIAGameWorks/Falcor | Source/RenderPasses/PathTracer/PathTracer.cpp | 59486 | /***************************************************************************
# Copyright (c) 2015-21, NVIDIA CORPORATION. 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... | bsd-3-clause |
mhallin/hesitate-py | tests/django16/django16/wsgi.py | 391 | """
WSGI config for django16 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django16.settings")
from django.core... | bsd-3-clause |
tpltnt/SimpleCV | SimpleCV/examples/manipulation/threedee.py | 1125 | #!/usr/bin/env python
from __future__ import print_function
import sys
import os
from SimpleCV import *
def threedee_me(left, right, offset):
(r,g,b)=left.splitChannels()
left_blue = left.mergeChannels(None,b,g);
#left_blue.save("blue.png", sample=True)
(r,g,b) = right.splitChannels()
right_red = ... | bsd-3-clause |
ric2b/Vivaldi-browser | chromium/cc/trees/layer_tree_host_unittest_masks.cc | 23829 | // Copyright 2018 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.
#include "cc/trees/layer_tree_host.h"
#include "base/time/time.h"
#include "cc/test/fake_picture_layer.h"
#include "cc/test/fake_recording_source.h"
#inc... | bsd-3-clause |
guillaumesoul/zf2-tutorial | module/Album/config/module.config.php | 1172 | <?php
return array(
'controllers' => array(
'invokables' => array(
'Album\Controller\Album' => 'Album\Controller\AlbumController',
),
),
'router' => array(
'routes' => array(
'album' => array(
'type' => 'segment',
'options' =... | bsd-3-clause |
mdn/webalyzer | webalyzer/collected/migrations/0001_initial.py | 914 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import sorl.thumbnail.fields
class Migration(migrations.Migration):
dependencies = [
('collector', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Screens... | bsd-3-clause |
manpreetabhaypal/psdm | backend/models/Content.php | 1345 | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "content".
*
* @property integer $id
* @property string $title
* @property string $description
* @property string $identifier
* @property string $category
* @property string $status
* @property string $created_date
* @property str... | bsd-3-clause |
thoughtbot/gitsh | lib/gitsh/tab_completion/matchers/unknown_option_matcher.rb | 298 | require 'gitsh/tab_completion/matchers/base_matcher'
module Gitsh
module TabCompletion
module Matchers
class UnknownOptionMatcher < BaseMatcher
def match?(word)
word =~ /\A--?[^-]/
end
def name
'opt'
end
end
end
end
end
| bsd-3-clause |
leapmotion/websocketpp | examples/wsperf/generic.cpp | 5175 | /*
* Copyright (c) 2011, Peter Thorson. 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 retain the above copyright
* notice, this list of cond... | bsd-3-clause |
endlessm/chromium-browser | content/browser/android/selection/selection_popup_controller.cc | 8653 | // Copyright 2017 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.
#include "content/browser/android/selection/selection_popup_controller.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#inc... | bsd-3-clause |
nschloe/seacas | docs/ioss_html/structIoxf_1_1SideSet.js | 931 | var structIoxf_1_1SideSet =
[
[ "SideSet", "structIoxf_1_1SideSet.html#a94a0cbb8dae2728b81a4b3440b6b2ca3", null ],
[ "SideSet", "structIoxf_1_1SideSet.html#adda252ddff67460d2bd311a3950db0d2", null ],
[ "operator!=", "structIoxf_1_1SideSet.html#ac4b6bb9f12a64189527316ba870f1c8d", null ],
[ "operator==", ... | bsd-3-clause |
ychab/mymoney-client | test/e2e/specs/user/logout.spec.js | 390 | var Authentication = require('../../helpers/authentication.js');
describe('Logout', function() {
var auth;
beforeEach(function() {
auth = new Authentication();
auth.logout();
});
it('redirect user on login page after being logout', function() {
auth.login();
auth.logout();
var url = brows... | bsd-3-clause |
infoscout/SurveyGizmo | surveygizmo/api/surveyoption.py | 1555 |
from surveygizmo.api import base
class SurveyOption(base.Resource):
resource_fmt_str = 'survey/%(survey_id)s/surveyquestion/%(question_id)s/surveyoption/%(option_id)s'
resource_id_keys = ['survey_id', 'quesiton_id']
def list(self, survey_id, question_id, **kwargs):
kwargs.update({
's... | bsd-3-clause |
rfyiamcool/fileporter | fileporter/server.py | 2223 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os.path
import os,sys
import logging
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web
import tornado.template as template
from tornado.options import define, options
#define("port", default=8888,help="run on the given port", ... | bsd-3-clause |
kitech/gearmand | libgearman/aggregator.cc | 2003 | /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Gearmand client and server library.
*
* Copyright (C) 2011 Data Differential, http://datadifferential.com/
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... | bsd-3-clause |
jrobhoward/SCADAbase | contrib/llvm/tools/lldb/source/Commands/CommandObjectSettings.cpp | 48169 | //===-- CommandObjectSettings.cpp -------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | bsd-3-clause |
zstars/booledeusto | EUS/boole_14_34.cpp | 2398 | // Do not edit. This file is machine generated by the Resource DLL Wizard.
//---------------------------------------------------------------------------
#define PACKAGE __declspec(package)
#define USERC(FileName) extern PACKAGE _Dummy
#define USERES(FileName) extern PACKAGE _Dummy
#define USEFORMRES(FileName, Form... | bsd-3-clause |
FreeCodeCamp/FreeCodeCamp | client/src/templates/Challenges/classic/action-row.tsx | 1615 | import React from 'react';
import { connect } from 'react-redux';
import BreadCrumb from '../components/bread-crumb';
import { resetChallenge } from '../redux';
import EditorTabs from './editor-tabs';
interface ActionRowProps {
block: string;
showConsole: boolean;
showNotes?: boolean;
showPreview: boolean;
s... | bsd-3-clause |
SaschaMester/delicium | tools/telemetry/telemetry/internal/browser/user_agent_unittest.py | 1431 | # Copyright 2012 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.
from telemetry import decorators
from telemetry.internal.browser import user_agent
from telemetry.unittest_util import tab_test_case
class MobileUserAgentT... | bsd-3-clause |
snowplow/snowplow-javascript-tracker | plugins/browser-plugin-media-tracking/src/findMediaElement.ts | 1374 | import { SEARCH_ERROR, TAG } from './constants';
import { SearchResult } from './types';
export function findMediaElem(id: string): SearchResult {
let el: HTMLVideoElement | HTMLAudioElement | HTMLElement | null = document.getElementById(id);
if (!el) return { err: SEARCH_ERROR.NOT_FOUND };
if (isAudioElement(e... | bsd-3-clause |
parrt/cs601 | lectures/code/db/TestDB.java | 981 | import java.sql.Connection;
import java.sql.DriverManager;
public class TestDB {
public static void main(String[] args) throws Exception {
String dbFile = "/tmp/test.db";
Connection db = null;
long start = System.currentTimeMillis();
try {
Class.forName("org.sqlite.JDBC"... | bsd-3-clause |
seem-sky/treefrog-framework | src/tjsonutil.cpp | 230 | /* Copyright (c) 2013, AOYAMA Kazuharu
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include <TJsonUtil>
| bsd-3-clause |
ovh/cds | engine/api/services/cache.go | 3941 | package services
import (
"context"
"sync"
"time"
"github.com/lib/pq"
"github.com/rockbears/log"
"github.com/ovh/cds/engine/api/database/gorpmapping"
"github.com/ovh/cds/engine/database"
"github.com/ovh/cds/sdk"
)
type event struct {
f func(s sdk.Service)
s sdk.Service
}
type iCache struct {
dbConnFacto... | bsd-3-clause |
tommienu/zf2appengine | module/Application/config/module.config.php | 4508 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD Lic... | bsd-3-clause |
kaaterskil/traveloti | module/Application/src/Application/View/Helper/NotificationIconPicker.php | 665 | <?php
/**
* Traveloti Library
*
* @category Traveloti
* @package Traveloti_Application
* @copyright Copyright (c) 2009-2012 Kaaterskil Management, LLC
* @version $Id: $
*/
namespace Application\View\Helper;
use Base\Model\Notification;
use Zend\Form\View\Helper\AbstractHelper;
/**
* Returns the icon class ... | bsd-3-clause |
motech/MOTECH-Mobile | motech-mobile-omp/src/main/java/org/motechproject/mobile/omp/manager/intellivr/IVRCallSession.java | 9635 | /**
* MOTECH PLATFORM OPENSOURCE LICENSE AGREEMENT
*
* Copyright (c) 2010-11 The Trustees of Columbia University in the City of
* New York and Grameen Foundation USA. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... | bsd-3-clause |
tschottdorf/rocksdb | table/block_based_table_reader.cc | 45683 | // Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// Copyright (c) 2011 The... | bsd-3-clause |
DashaLadatko/Diplom | frontend/views/workshop/_form.php | 5072 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use dosamigos\ckeditor\CKEditor;
use yii\helpers\ArrayHelper;
use common\models\Topic;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model common\models\Workshop */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="workshop-form">
<?php... | bsd-3-clause |
matthieuriolo/cii | modules/cii/vendor/cii/fields/BooleanField.php | 416 | <?php
namespace cii\fields;
use Yii;
use cii\widgets\Toggler;
class BooleanField extends AbstractField {
public function getView($model) {
return Yii::$app->formatter->asBoolean($this->getRaw($model));
}
public function getEditable($model, $form) {
return Toggler::widget([
'model' => $mod... | bsd-3-clause |
erictj/protean | modules/thirdparty/elastica/lib/Elastica/Filter/Term.php | 1136 | <?php
/**
* Term query
*
* @uses Elastica_Query_Abstract
* @category Xodoa
* @package Elastica
* @author Nicolas Ruflin <spam@ruflin.com>
* @link http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/term_query/
*/
class Elastica_Filter_Term extends Elastica_Filter_Abstract
{
/**
* Constru... | bsd-3-clause |
Phenomics/ontolib | ontolib-io/src/main/java/com/github/phenomics/ontolib/io/scoredist/H2ScoreDistributionReader.java | 7039 | package com.github.phenomics.ontolib.io.scoredist;
import com.github.phenomics.ontolib.base.OntoLibException;
import com.github.phenomics.ontolib.ontology.scoredist.ObjectScoreDistribution;
import com.github.phenomics.ontolib.ontology.scoredist.ScoreDistribution;
import java.io.IOException;
import java.sql.Connection;... | bsd-3-clause |
harikb/yacr | writer_test.go | 3006 | // Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package yacr_test
import (
"bytes"
"errors"
"testing"
"time"
. "github.com/gwenn/yacr"
)
func writeRow(w *Writer, row []string) {
for _, field := range... | bsd-3-clause |
gaberger/pybvc | samples/samplenetconf/cmds/show_dpifcfg.py | 3050 | #!/usr/bin/python
"""
Copyright (c) 2015, BROCADE COMMUNICATIONS SYSTEMS, 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,... | bsd-3-clause |
CosmosOS/XSharp | source/XSharp/XSharp/Assembler/Gen1/x86/_Infra/IInstructionWithCondition.cs | 177 | namespace XSharp.Assembler.x86
{
public interface IInstructionWithCondition {
ConditionalTestEnum Condition {
get;
set;
}
}
}
| bsd-3-clause |
oliverlietz/bd-j | AuthoringTools/com.hdcookbook.grin.grinviewer/src/main/java/com/hdcookbook/grin/test/RyanDirector.java | 8355 |
/*
* Copyright (c) 2007, Sun Microsystems, 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 retain the above copyright
* notic... | bsd-3-clause |
tmk-ti/cursozf2 | config/application.config.php | 3018 | <?php
/**
* If you need an environment-specific system or application configuration,
* there is an example in the documentation
* @see http://framework.zend.com/manual/current/en/tutorials/config.advanced.html#environment-specific-system-configuration
* @see http://framework.zend.com/manual/current/en/tutorials/con... | bsd-3-clause |
tmk-ti/cursozf2 | module/Application/src/Application/Helper/LeftLinks.php | 501 | <?php
/**
* Created by PhpStorm.
* User: filipe
* Date: 03/10/15
* Time: 21:05
*/
namespace Application\Helper;
use Zend\View\Helper\AbstractHelper;
class LeftLinks extends AbstractHelper
{
public function __invoke($values, $urlPrefix)
{
$lista = "<ul>".PHP_EOL;
foreach($values as $valu... | bsd-3-clause |
laroque/couchdb-python3 | couchdb/multipart.py | 8872 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2008-2009 Christopher Lenz
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
"""Support for streamed reading and writing of multipart MIME content."""
from base64 import b64enc... | bsd-3-clause |
NCIP/nci-term-browser | software/browser-util/src/gov/nih/nci/evs/browser/bean/ValueSetConfig.java | 1440 | package gov.nih.nci.evs.browser.bean;
import java.io.*;
import java.util.*;
import java.net.*;
public class ValueSetConfig
{
// Variable declaration
private String name;
private String uri;
private String reportURI;
private String extractionRule;
// Default constructor
public ValueSetConfig() {
}
// Construc... | bsd-3-clause |
dimichspb/doc | migrations/m160327_143207_adding_price_supplier_tables.php | 1534 | <?php
use yii\db\Migration;
class m160327_143207_adding_price_supplier_tables extends Migration
{
public function up()
{
$this->createTable('{{%price}}', [
'id' => $this->primaryKey(11),
'status' => $this->smallInteger()->notNull()->defaultValue(10),
'created_at' =>... | bsd-3-clause |