repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
adityamenon-iom/Google-IO_2012_Go-Concurrency-Patterns | select.go | 301 | package main
func main() {
var c1, c2, c3 chan int
select {
case v1 := <-c1:
fmt.Printf("received %v from c1\n", v1)
case v2 := <-c2:
fmt.Printf("received %v from c2\n", v1)
case c3 <- 23:
fmt.Printf("sent %v to c3\n", 23)
default:
fmt.Printf("no one was ready to communicate\n")
}
}
| bsd-3-clause |
svn2github/webrtc-Revision-8758 | examples/android/media_demo/jni/video_engine_jni.cc | 29026 | /*
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | bsd-3-clause |
mushkevych/scheduler | tests/test_single_session.py | 2183 | __author__ = 'Bohdan Mushkevych'
import unittest
from db.model.single_session import SingleSession
class TestSingleSession(unittest.TestCase):
def setUp(self):
self.obj = SingleSession()
def tearDown(self):
del self.obj
def test_key(self):
domain_name = 'test_name'
timep... | bsd-3-clause |
enthought/etsproxy | enthought/ets3to4.py | 4371 | """
updates ETS imports to avoid proxy
"""
import sys
import os
from os.path import isdir, join
# Please note that the order of items in this list matters.
MAP = [
# pyface
('enthought.pyface', 'pyface'),
('enthought.qt', 'pyface.qt'),
('enthought.resource', 'pyface.resource'),
('enthought.util.gu... | bsd-3-clause |
endlessm/chromium-browser | components/autofill_assistant/browser/service_impl.cc | 12427 | // 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 "components/autofill_assistant/browser/service_impl.h"
#include <string>
#include <utility>
#include <vector>
#include "base/bind.h"
#include "... | bsd-3-clause |
regdos/Validation | tests/unit/Rules/BankTest.php | 1336 | <?php
/*
* This file is part of Respect/Validation.
*
* (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
*
* For the full copyright and license information, please view the "LICENSE.md"
* file that was distributed with this source code.
*/
namespace Respect\Validation\Rules;
/**
* @group rule
* @cover... | bsd-3-clause |
endlessm/chromium-browser | third_party/blink/renderer/core/css/css_grouping_rule.cc | 6597 | /*
* Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
* Copyright (C) 2012 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 co... | bsd-3-clause |
swp-sebastian/zombiefu | src/main/java/zombiefu/human/SellingHuman.java | 1944 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package zombiefu.human;
import jade.util.datatype.ColoredChar;
import java.util.Map;
import zombiefu.creature.AttributeSet;
import zombiefu.exception.CannotAffordException;
import zombiefu.items.Item;
import zombiefu.pl... | bsd-3-clause |
thrasyvoulos/doc_manager | views/prefecture/update.php | 535 | <?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\Prefecture */
$this->title = Yii::t('app','Update Prefecture');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app','Prefectures'), 'url' => ['index']];
//$this->params['breadcrumbs'][] = ['label' => $model->prefectureid];
$thi... | bsd-3-clause |
FreddyHurkmans/cmock | src/type_determination.py | 574 | from configuration import Config
class Type(object):
@staticmethod
def is_string(param_no_spaces):
return param_no_spaces in ['constchar*', 'charconst*'] or \
(Config.charstar_is_input_string and param_no_spaces == 'char*')
@staticmethod
def is_output_pointer(param_type):
... | bsd-3-clause |
groupon/shared-store | test/shared-store/no-cache.test.js | 1815 | 'use strict';
const fs = require('fs');
const os = require('os');
const path = require('path');
const assert = require('assert');
const { Observable } = require('rx-lite');
const tmp = require('tmp');
const SharedStore = require('../../');
const BASE_CONFIG = {
opt: 'value',
};
describe('With cache disabled'... | bsd-3-clause |
stubbles/stubbles-values | src/test/php/ResultTest.php | 5675 | <?php
declare(strict_types=1);
/**
* This file is part of stubbles.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace stubbles\values;
use PHPUnit\Framework\TestCase;
use function bovigo\assert\assertThat;
use function bovigo... | bsd-3-clause |
shimat/opencvsharp_2410 | src/OpenCvSharp/Src/Struct/CvSubdiv2DEdge.cs | 8579 | using System;
using System.Runtime.InteropServices;
namespace OpenCvSharp
{
#if LANG_JP
/// <summary>
/// 4辺の内の一つ.実体はUInt32であり、暗黙のキャストが定義されている.
/// 下位2ビットはインデックス(0...3)で, 上位ビットは4辺へのポインタ.
/// </summary>
#else
/// <summary>
/// one of edges within quad-edge, lower 2 bits is index (0..3)
/// ... | bsd-3-clause |
AndyHubert/readium-js-viewer | src/js/Spinner.js | 918 | define(['spin'], function(Spinner){
var opts = {
lines: 12, // The number of lines to draw
length: 0, // The length of each line
width: 8, // The line thickness
radius: 28, // The radius of the inner circle
corners: 1, // Corner roundness (0..1)
rotate: 0, // The rotation offset
... | bsd-3-clause |
matoilic/generator-angular-lazy | app/index.js | 8183 | 'use strict';
const Base = require('../base');
const glob = require('glob');
const path = require('path');
const _ = require('../extended-lodash');
const stateUtils = require('../state-utils');
const whenI18nActive = (answers) => answers.i18n;
class ApplicationGenerator extends Base {
constructor(args, options) ... | bsd-3-clause |
joemerante/crmed | db/migrate/20121207041428_remove_uid_from_user.rb | 104 | class RemoveUidFromUser < ActiveRecord::Migration
def change
remove_column :users, :uid
end
end
| bsd-3-clause |
dava/dava.engine | Libs/bullet/BulletDynamics/ConstraintSolver/btGeneric6DofConstraint.cpp | 38550 | /*==================================================================================
Copyright (c) 2008, binaryzebra
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 |
magarciaEPFL/dotty | src/dotty/tools/dotc/core/Types.scala | 92683 | package dotty.tools.dotc
package core
import util.common._
import Symbols._
import Flags._
import Names._
import StdNames._, NameOps._
import Scopes._
import Constants._
import Contexts._
import Annotations._
import SymDenotations._
import Decorators._
import Denotations._
import Periods._
import util.Positions.Positi... | bsd-3-clause |
u4aew/MyHotelG | protected/modules/feedback/FeedbackModule.php | 11385 | <?php
/**
* FeedbackModule основной класс модуля feedback
*
* @author yupe team <team@yupe.ru>
* @link http://yupe.ru
* @copyright 2009-2013 amyLabs && Yupe! team
* @package yupe.modules.feedback
* @since 0.1
*
*/
use yupe\components\WebModule;
/**
* Class FeedbackModule
*/
class FeedbackModule extends We... | bsd-3-clause |
steve21124/nobundlenews | lib/uploaded_file_test_helper.rb | 653 | module UploadedFileTestHelper
def uploaded_file(path, content_type="application/octet-stream", filename=nil)
filename ||= File.basename(path)
t = Tempfile.new(filename)
FileUtils.copy_file(path, t.path)
(class << t; self; end;).class_eval do
alias local_path path
define_method(:original_fi... | bsd-3-clause |
sleepsonthefloor/openstack.api | minitest.py | 1141 | import openstack.admin
import openstack.compute
import openstack.auth
import openstack.extras
auth = openstack.auth.Auth(management_url='http://localhost:8080/v2.0/')
token = auth.tokens.create('1234', 'joeuser', 'secrete')
extras = openstack.extras.Extras(auth_token=token.id,
auth_u... | bsd-3-clause |
joshourisman/Adamanteus | setup.py | 888 | #!/usr/bin/env python
from distutils.core import setup
setup(name='Adamanteus',
version='0.7',
description='Database Backups with Version Control',
author='Josh Ourisman',
author_email='josh@joshourisman.com',
license='BSD',
url='http://www.bitbucket.org/Josh/adamanteus/',
cl... | bsd-3-clause |
endlessm/chromium-browser | components/user_manager/known_user.cc | 23879 | // Copyright 2015 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 "components/user_manager/known_user.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include "base/logging.h"
#include "base/metri... | bsd-3-clause |
nacl-webkit/chrome_deps | content/common/gpu/texture_image_transport_surface.cc | 14829 | // Copyright (c) 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.
#include "content/common/gpu/texture_image_transport_surface.h"
#include <string>
#include <vector>
#include "base/command_line.h"
#include "content... | bsd-3-clause |
Rbeaty88/ginga | ginga/gtkw/GtkMain.py | 5866 | #
# GtkMain.py -- pygtk threading help routines.
#
# Eric Jeschke (eric@naoj.org)
#
# Copyright (c) Eric R. Jeschke. All rights reserved.
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
"""
GUI threading help routines.
Usage:
import GtkMain
# See c... | bsd-3-clause |
enthought/etsproxy | enthought/pyface/viewer/viewer_filter.py | 57 | # proxy module
from pyface.viewer.viewer_filter import *
| bsd-3-clause |
oasi-adamay/glsCV | glsCV/glsNorm.cpp | 5207 | /*
Copyright (c) 2016, oasi-adamay
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 conditions and the following dis... | bsd-3-clause |
hung101/kbs | frontend/views/forum-seminar-persidangan-di-luar-negara/update.php | 1436 | <?php
use yii\helpers\Html;
// contant values
use app\models\general\GeneralLabel;
/* @var $this yii\web\View */
/* @var $model app\models\ForumSeminarPersidanganDiLuarNegara */
//$this->title = GeneralLabel::updateTitle.' '.GeneralLabel::forum_seminar_persidangan_di_luar_negara.': ' . ' ' . $model->forum_seminar_p... | bsd-3-clause |
jscissr/djangae | djangae/tests/test_db_fields.py | 24699 | from collections import OrderedDict
# LIBRARIES
from django.db import models
from django.db.utils import IntegrityError
from django.contrib.contenttypes.models import ContentType
# DJANGAE
from djangae.db import transaction
from djangae.fields import (
ComputedCharField,
GenericRelationField,
JSONField,
... | bsd-3-clause |
Bysmyyr/chromium-crosswalk | components/password_manager/content/browser/credential_manager_dispatcher_unittest.cc | 31912 | // 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.
#include "components/password_manager/content/browser/credential_manager_dispatcher.h"
#include <string>
#include <vector>
#include "base/bind.h"
#inclu... | bsd-3-clause |
zasdfgbnm/qutip | qutip/graph.py | 9858 | # This file is part of QuTiP: Quantum Toolbox in Python.
#
# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
... | bsd-3-clause |
endlessm/chromium-browser | ash/app_list/views/search_result_tile_item_list_view_unittest.cc | 14939 | // 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 "ash/app_list/views/search_result_tile_item_list_view.h"
#include <algorithm>
#include <memory>
#include <utility>
#include "ash/app_list/model... | bsd-3-clause |
Kirylka/belarus | plugins/hiddengroups/hiddengroups.users.register.add.done.php | 378 | <?php
/* ====================
[BEGIN_COT_EXT]
Hooks=users.adduser.done
[END_COT_EXT]
==================== */
/**
* Hidden groups
*
* @package hiddengroups
* @version 0.9.6
* @author Cotonti Team
* @copyright Copyright (c) Cotonti Team 2008-2012
* @license BSD
*/
defined('COT_CODE') or die('Wrong URL.');
$cac... | bsd-3-clause |
Profitrol/Cot-freelance | plugins/ckeditor/inc/ckeditor.pfs.edit.inc.php | 4986 | <?PHP
// *********************************************
// * CKEditor Plugin for Cotonti *
// * PFS Ådit Part *
// * Alex & Natty studio *
// * http://portal30.ru *
// * *
// * ... | bsd-3-clause |
dasscheman/hike_development | framework/YiiBase.php | 35449 | <?php
/**
* YiiBase class file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright 2008-2013 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @package system
* @since 1.0
*/
/**
* Gets the application start timestamp.
*/
defined('YII_BEGIN_TIME') ... | bsd-3-clause |
jorisvandenbossche/DS-python-data-analysis | notebooks/_solutions/case2_biodiversity_analysis15.py | 99 | heatmap_prep_sns = heatmap_prep_plotnine.pivot_table(index='year', columns='month', values='count') | bsd-3-clause |
mruwnik/recipes | widgets/ingredients.py | 9707 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""ingredients.py: a widget to add ingredients"""
from collections import OrderedDict
import wx
from TextCtrlAutoComplete import TextCtrlAutoComplete
import i18n
_ = i18n.language.ugettext
class FindIngredients(TextCtrlAutoComplete):
"""Allows to autocomplete a li... | bsd-3-clause |
shubnikofff/mobiles | modules/mobile/controllers/PrintController.php | 413 | <?php
/**
* Created by PhpStorm.
* User: bill
* Date: 28.05.15
* Time: 10:27
*/
namespace app\modules\mobile\controllers;
use app\modules\mobile\models\Number;
use yii\web\Controller;
class PrintController extends Controller{
public function actionAll() {
$numbers = Number::find()->with('owner')->or... | bsd-3-clause |
sasensi/executive-project | public/js/project/index.js | 1818 | /**
* Created by STAGIAIRE on 09/09/2016.
*/
$(document).ready(function ()
{
$('#aditionalFilterBtn').click(function ()
{
if ($(this).hasClass('active'))
{
$(this).removeClass('active');
$('#aditionalFilterWrapper').removeClass('active');
}
else
... | bsd-3-clause |
akamai/trecul | ads-df/TableOperator.cc | 30941 | /**
* Copyright (c) 2013, Akamai Technologies
* 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 lis... | bsd-3-clause |
sitengine/sitengine | _Includes/Sitengine/Auth/Adapter/DbTable.php | 2594 | <?php
/**
* Sitengine - An example serving as a pattern
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
*
* @category Sitengine
* @package Sitengine
* @copyright Copyright (c) 2007, Christian Hoegl, Switzerland (http://site... | bsd-3-clause |
jtg-gg/skia | tests/ImageDecodingTest.cpp | 31220 | /*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Resources.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkColor.h"
#include "SkColorPriv.h"
#include "SkData.h"
#include "SkDecodingImageGenerator.h"
#inc... | bsd-3-clause |
dallanaugusto/file-viewer | module/FileViewer/src/FileViewer/Model/Dao/ItemDao.php | 4555 | <?php
namespace FileViewer\Model\Dao;
use FileViewer\Configuration\Configuration;
use FileViewer\Model\Exception\ItIsNotItemException;
use FileViewer\Persistence\FileSystemPersistence;
abstract class ItemDao extends AbstractDao
{
private $dataDirectoryPersistence;
private $description;
private $logicalPa... | bsd-3-clause |
dlds/yii2-components | validators/isocode/CreditCard.php | 810 | <?php
namespace dlds\components\validators\isocode;
class CreditCard extends ISOValidator {
/**
* @inheritdoc
*/
public function validateValue($value)
{
if ($value === '')
{
return false;
}
//longueur de la chaine $creditCard
$length = strlen... | bsd-3-clause |
ericingram/spectrum | spectrum/core/RegistryInterface.php | 618 | <?php
/*
* (c) Mikhail Kharitonov <mail@mkharitonov.net>
*
* For the full copyright and license information, see the
* LICENSE.txt file that was distributed with this source code.
*/
namespace spectrum\core;
interface RegistryInterface
{
static public function getRunningSpecItem();
static public function setRu... | bsd-3-clause |
keybase/client | go/client/cmd_interesting_people.go | 1879 | // Copyright 2015 Keybase, Inc. All rights reserved. Use of
// this source code is governed by the included BSD license.
package client
import (
"golang.org/x/net/context"
"github.com/keybase/cli"
"github.com/keybase/client/go/libcmdline"
"github.com/keybase/client/go/libkb"
"github.com/keybase/client/go/protoc... | bsd-3-clause |
silverstripe-australia/silverstripe-sesmail | src/Jobs/SESQueuedMail.php | 2528 | <?php
namespace Symbiote\SilverStripeSESMailer\Jobs;
use Symbiote\QueuedJobs\Services\AbstractQueuedJob;
use Symbiote\QueuedJobs\Services\QueuedJob;
use Exception;
use SilverStripe\Core\Injector\Injector;
if (class_exists(QueuedJob::class)) {
/**
* SESQueuedMail
*
* @author Stephen McMahon <stephen@symbiote.... | bsd-3-clause |
lamby/django-template-tests | setup.py | 492 | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-template-tests',
url="https://chris-lamb.co.uk/projects/django-template-tests",
version='1.1.0',
description="Performs some quick static analysis on your templates",
author="Chris Lamb",
author_email="chris... | bsd-3-clause |
endlessm/chromium-browser | device/fido/get_assertion_request_handler.cc | 31297 | // 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 "device/fido/get_assertion_request_handler.h"
#include <algorithm>
#include <set>
#include <string>
#include <utility>
#include <vector>
#inclu... | bsd-3-clause |
dimagi/commcare-hq | corehq/blobs/tests/test_export.py | 8984 | import doctest
import os
import tarfile
import uuid
from io import BytesIO, RawIOBase
from tempfile import NamedTemporaryFile
from django.test import SimpleTestCase, TestCase
from corehq.apps.hqmedia.models import (
CommCareAudio,
CommCareImage,
CommCareVideo,
)
from corehq.blobs import CODES, get_blob_db... | bsd-3-clause |
DemocracyClub/UK-Polling-Stations | polling_stations/apps/data_importers/management/commands/import_wigan.py | 1313 | from data_importers.management.commands import BaseXpressWebLookupCsvImporter
class Command(BaseXpressWebLookupCsvImporter):
council_id = "WGN"
addresses_name = "2021-04-06T12:29:53.599045/democracy club wigan council.tsv"
stations_name = "2021-04-06T12:29:53.599045/democracy club wigan council.tsv"
e... | bsd-3-clause |
lkersting/SCR-2123 | packages/monte_carlo/collision/native/src/MonteCarlo_StandardPhotoatomicReaction.hpp | 5251 | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_StandardPhotoatomicReaction.hpp
//! \author Alex Robinson
//! \brief The standard photoatomic reaction base class declaration
//!
//---------------------------------------------------------------------------//
#... | bsd-3-clause |
jimporter/mettle | src/libmettle/windows/subprocess_test_runner.cpp | 4856 | #include <mettle/driver/subprocess_test_runner.hpp>
#include <iostream>
#include <memory>
#include <sstream>
#include <windows.h>
#include <mettle/driver/exit_code.hpp>
#include <mettle/driver/windows/scoped_pipe.hpp>
#include <mettle/driver/windows/subprocess.hpp>
#include "../../err_string.hpp"
// XXX: Use std::... | bsd-3-clause |
dintel/mongo-object | test/UserInvalidType.php | 1974 | <?php
/**
* @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
* @copyright Copyright (c) 2014 Dmitry Zbarski
*/
namespace MongoObjectTest;
use MongoObject\Cache;
use MongoObject\Object;
use MongoCollection;
use MongoDate;
class UserInvalidType extends Object
{
const TYPE_ADMIN=0;
const TY... | bsd-3-clause |
deforay/odkdash | vendor/laminas/laminas-view/src/Helper/Doctype.php | 7127 | <?php
/**
* @see https://github.com/laminas/laminas-view for the canonical source repository
* @copyright https://github.com/laminas/laminas-view/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-view/blob/master/LICENSE.md New BSD License
*/
namespace Laminas\View\Helper;
use ArrayO... | bsd-3-clause |
sitnikovES/magnet-world | modules/admin/modules/products/views/productparamset/_form.php | 784 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\ProductParamSet */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="product-param-set-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'name')->textInput(['maxlength' =... | bsd-3-clause |
umbrant/rain-workload-toolkit | src/radlab/rain/workload/riak/RiakDeleteOperation.java | 620 | package radlab.rain.workload.riak;
import com.basho.riak.client.response.HttpResponse;
import radlab.rain.IScoreboard;
public class RiakDeleteOperation extends RiakOperation
{
public static final String NAME = "Delete";
public RiakDeleteOperation(boolean interactive, IScoreboard scoreboard)
{
super(interact... | bsd-3-clause |
clchiou/comedy-central | cc/feed.py | 6156 | # Copyright (C) 2014 Che-Liang Chiou. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
'''Representation of a (manifest) feed.'''
__all__ = ['Feed']
import collections
import datetime
import json
import re
import urllib.parse
import cc
impor... | bsd-3-clause |
domain51/php-storymarket | tests/Storymarket/Content/VideoManagerTest.php | 100 | <?php
class Storymarket_Content_VideoManagerTest extends StorymarketBinaryContentManagerTests {
}
| bsd-3-clause |
codebulb/LambdaOmega | src/main/java/ch/codebulb/lambdaomega/abstractions/FunctionalI.java | 6188 | package ch.codebulb.lambdaomega.abstractions;
import java.util.function.BooleanSupplier;
import java.util.function.Consumer;
import java.util.function.DoubleConsumer;
import java.util.function.DoubleFunction;
import java.util.function.DoublePredicate;
import java.util.function.DoubleSupplier;
import java.util.function... | bsd-3-clause |
NathanLBCooper/bandsintown-api | internaldatatypes/DeserialisableEvent.go | 1455 | package internaldatatypes
import (
"github.com/NathanLBCooper/bandsintown-api-v1/datatypes"
)
// DeserialisableEvent in an datatypes.Event.go with CustomDate serialisation
type DeserialisableEvent struct {
ID int `json:"id"`
URL string `json:"url"`
Datetime ... | bsd-3-clause |
magul/streetmix | assets/scripts/users/localization.js | 6803 | import { cloneDeep } from 'lodash'
import { ERRORS, showError } from '../app/errors'
import { trackEvent } from '../app/event_tracking'
import { checkIfEverythingIsLoaded } from '../app/initialization'
import { MODES, getMode } from '../app/mode'
import { hideAllMenus } from '../menus/menu_controller'
import { app } f... | bsd-3-clause |
nucleic/cppy | docs/source/conf.py | 5462 | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | bsd-3-clause |
72squared/glu-php | examples/07_scratchpad/view/site/footer.php | 334 | <?php $currenturl = $this->selfurl . $this->path; ?>
</div>
<div class="global-footer">
<?php $this->dispatch( $this->dir->VIEW . 'auth/userlinks'); ?>
<?php if( $this->START_TIME ): ?>
<em>
page generated in <?php echo number_format( microtime(TRUE) - $this->START_TIME, 5); ?> seconds
</em>
<?php endif; ?>
</div>
</... | bsd-3-clause |
eandbsoftware/phpbms | modules/base/snapshot_ajax.php | 8408 | <?php
/*
$Rev: 311 $ | $LastChangedBy: brieb $
$LastChangedDate: 2007-10-02 19:51:27 -0600 (Tue, 02 Oct 2007) $
+-------------------------------------------------------------------------+
| Copyright (c) 2004 - 2007, Kreotek LLC |
| All rights reserved. ... | bsd-3-clause |
softak/webfaction_demo | urls.py | 1508 | from django.conf import settings
from django.conf.urls.defaults import *
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic.simple import direct_to_template
from django.contrib import admin
from funfactory.admin import site as admin_... | bsd-3-clause |
NMFCode/NMF | Expressions/Expressions/ObservableMethodCallBase.cs | 2965 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
namespace NMF.Expressions
{
internal abstract class ObservableMethodBase<T, TDelegate, TResult> ... | bsd-3-clause |
28ideas/quant-econ | setup.py | 452 | from distutils.core import setup
setup(
name = 'quantecon',
packages = ['quantecon'],
version = '0.1.3',
description = 'Code for quant-econ.net',
author = 'Thomas J. Sargent and John Stachurski',
author_email = 'john.stachurski@gmail.com',
url = 'https://github.com/jstac/quant-econ', # use the URL to th... | bsd-3-clause |
oswen244/proserpaz | views/mensualidades/create.php | 939 | <?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\Mensualidades */
$this->title = 'Agregar Mensualidad';
$this->params['breadcrumbs'][] = ['label' => 'Mensualidades', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="col-md-12">
<div class="col-md... | bsd-3-clause |
pombredanne/stix-validator | setup.py | 1941 | #!/usr/bin/env python
# Copyright (c) 2015 - The MITRE Corporation
# For license information, see the LICENSE.txt file
from os.path import abspath, dirname, join
import sys
from setuptools import setup, find_packages
BASE_DIR = dirname(abspath(__file__))
VERSION_FILE = join(BASE_DIR, 'sdv', 'version.py')
def get_v... | bsd-3-clause |
mitodl/open-discussions | static/js/components/ExpandedLearningResourceDisplay_test.js | 21051 | // @flow
import { assert } from "chai"
import R from "ramda"
import ExpandedLearningResourceDisplay from "../components/ExpandedLearningResourceDisplay"
import * as UserListItemsMod from "../components/UserListItems"
import * as PaginatedPodcastEpisodesMod from "./PaginatedPodcastEpisodes"
import {
makeCourse,
ma... | bsd-3-clause |
RexFuzzle/sfepy | sfepy/applications/pde_solver_app.py | 9220 | import os
from sfepy.base.base import output, dict_to_struct, Struct
from sfepy.base.conf import ProblemConf, get_standard_keywords
import sfepy.base.ioutils as io
from sfepy.discrete import Problem
from sfepy.discrete.fem.meshio import MeshIO
from application import Application
def solve_pde(conf, options=None, nls_... | bsd-3-clause |
data-refinery/data_refinery | common/data_refinery_common/models/__init__.py | 765 | from data_refinery_common.models.jobs import (
SurveyJob,
SurveyJobKeyValue,
DownloaderJob,
ProcessorJob
)
from data_refinery_common.models.organism import Organism
from data_refinery_common.models.models import (
Sample,
SampleAnnotation,
Experiment,
ExperimentAnnotation,
Processor... | bsd-3-clause |
coder006/BinPy | BinPy/examples/ic/Series_7400/IC7420.py | 1127 | from __future__ import print_function
from BinPy import *
print ('Usage of IC 7420:\n')
ic = IC_7420()
print ('\nThe Pin configuration is:\n')
p = {1: 1, 2: 0, 4: 0, 5: 0, 7: 0, 9: 1, 10: 1, 12: 1, 13: 1, 14: 1}
print (p)
print ('\nPin initialization -using -- ic.setIC(p) --\n')
ic.setIC(p)
print ('\nPowering up the IC... | bsd-3-clause |
exponentjs/exponent | android/versioned-abis/expoview-abi42_0_0/src/main/java/abi42_0_0/host/exp/exponent/modules/api/screens/ScreenFragment.java | 8823 | package abi42_0_0.host.exp.exponent.modules.api.screens;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import and... | bsd-3-clause |
bkjones/loghetti | test/apachelogs_test.py | 930 | ''' Simple test for apachelogs '''
import unittest
from apachelogs import ApacheLogFile
class apachelogs_test(unittest.TestCase):
def test_foo(self):
log = ApacheLogFile('test.log')
line = iter(log).next()
self.assertEquals(line.ip, '127.0.0.1')
self.assertEquals(line.ident, '-... | bsd-3-clause |
Arrayword/Phexcore | public/configs/phexhttpheader.php | 1903 | <?php
/**
* Phexcore (http://phexcore.com/)
*
* @copyright Copyright (c) 2014 Arrayword (http://arrayword.com/)
* @license New BSD License
*/
return array(
/**
* 内容が見つからない場合に送信するヘッダー
*
* 文字列または配列でヘッダーの内容を複数指定できます。
* 配列を使用した場合、[0]~[2]のインデックスがheader関数の引数になります。
* @see http://www.php.net/... | bsd-3-clause |
andrewyushkevich/projconverter | projconverter/__init__.py | 40 | from .projconverter import convert_proj
| bsd-3-clause |
rackerlabs/django-DefectDojo | dojo/management/commands/test_celery_decorator.py | 2267 |
from django.core.management.base import BaseCommand
from dojo.models import Finding, Notes
# from dojo.utils import get_system_setting, do_dedupe_finding, dojo_async_task
from dojo.celery import app
from functools import wraps
from dojo.utils import test_valentijn
class Command(BaseCommand):
help = "Command to ... | bsd-3-clause |
shepherdbird/CustomizeLife | modules/v1/models/User.php | 4376 | <?php
namespace app\modules\v1\models;
use Yii;
/**
* This is the model class for table "user".
*
* @property integer $id
* @property string $pwd
* @property integer $authKey
* @property integer $famous
* @property integer $shared
* @property integer $follower
* @property integer $favour
* @property string... | bsd-3-clause |
hungnd1/offerloader | frontend/web/static/js/bootstrap.min.js | 37881 | /*!
* Bootstrap v3.1.0 (http://getbootstrap.com)
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
if ("undefined" == typeof jQuery)throw new Error("Bootstrap requires jQuery");
+function (a) {
"use strict";
function b() {
var a = doc... | bsd-3-clause |
Caleydo/caleydo | org.caleydo.view.search/src/org/caleydo/view/search/api/ISearchResultActionFactory.java | 1291 | /*******************************************************************************
* Caleydo - Visualization for Molecular Biology - http://caleydo.org
* Copyright (c) The Caleydo Team. All rights reserved.
* Licensed under the new BSD license, available at http://caleydo.org/license
*********************************... | bsd-3-clause |
robototes/Tomo-2 | src/com/shsrobotics/tomo2/IIR.java | 1857 | package com.shsrobotics.tomo2;
import edu.wpi.first.wpilibj.Joystick;
/**
* IIR filters joystick values and smooths driving.
*
* @author RoboTotes Team 2412
*/
public class IIR extends Joystick {
private double smoothingX;
private double smoothingY;
private double smoothingZ;
private double accu... | bsd-3-clause |
thailvn/dev | batch/balodep_album_tuixachnu.php | 846 | <?php
$userId = '129881887426347';
$categoryId = 8;
$albumData = [
'name' => 'Túi xách nữ đẹp, sành điệu, giá tốt nhất thị trường đang giảm giá đến 30%, mua ngay kẻo hết',
'message' => implode(PHP_EOL, [
'✓ NT đặt hàng: MH1,MH2,MH3 gửi 098 65 60 997 (MH: mã hàng)',
'✓ ĐT đặt hàng: 097 443 60 40 ... | bsd-3-clause |
danakj/chromium | chrome_elf/blacklist/crashpad_helper.cc | 477 | // Copyright 2016 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 "chrome_elf/blacklist/crashpad_helper.h"
#include "third_party/crashpad/crashpad/client/crashpad_client.h"
int GenerateCrashDump(EXCEPTION_POIN... | bsd-3-clause |
Crystalnix/BitPop | chrome/browser/printing/printing_layout_browsertest.cc | 15932 | // Copyright (c) 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.
#include "base/command_line.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/message_loop.h"
#include "base/path_service.h"
#... | bsd-3-clause |
ustudio/nose_connection_report | setup.py | 1054 | #!/usr/bin/env python
from setuptools import setup
setup(
name="nose_connection_report",
version="0.2",
description = "Nose testing framework plugin for monitoring network connections",
author = "Thomas Stephens, John J. Lee, Dan McCombs",
author_email = "thomas@ustudio.com",
license = "BSD",... | bsd-3-clause |
NCIP/annotation-and-image-markup | AIMToolkit_v4.1.0_rv44/source/dcmtk-3.6.1_20121102/dcmpstat/tests/msgserv.cc | 14122 | /*
*
* Copyright (C) 2000-2012, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmpstat
*
* Authors: Marco E... | bsd-3-clause |
andrewsmedina/django | django/views/i18n.py | 10442 | import json
import os
import gettext as gettext_module
from django import http
from django.conf import settings
from django.template import Context, Template
from django.utils import importlib
from django.utils.translation import check_for_language, activate, to_locale, get_language
from django.utils.encoding import s... | bsd-3-clause |
RideCo/django-libtech-emailuser | emailuser/__init__.py | 89 | # coding=utf-8
"""Modified from https://github.com/RideCo/django-libtech-emailuser."""
| bsd-3-clause |
kevin-lesenechal/glengine | include/GLE/Utils/List.inl.cpp | 2781 | /******************************************************************************
* Copyright © 2015, Kévin Lesénéchal <kevin.lesenechal@gmail.com>. *
* *
* This file is part of the GLEngine project (<http://www.glengine.org/>) and *
... | bsd-3-clause |
zcbenz/cefode-chromium | content/browser/worker_host/worker_process_host.cc | 24384 | // Copyright (c) 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.
#include "content/browser/worker_host/worker_process_host.h"
#include <set>
#include <string>
#include <vector>
#include "base/base_switches.h"
#inc... | bsd-3-clause |
mattunderscorechampion/specky | model-context/src/main/java/com/mattunderscore/specky/value/resolver/JavaStandardDefaultValueResolver.java | 4326 | /* Copyright © 2016 Matthew Champion
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 conditions and the follow... | bsd-3-clause |
nlsynth/iroha | src/writer/verilog/wire/accessor_info.cpp | 1741 | #include "writer/verilog/wire/accessor_info.h"
#include "iroha/stl_util.h"
#include "writer/verilog/wire/wire_set.h"
namespace iroha {
namespace writer {
namespace verilog {
namespace wire {
bool SignalDescription::IsUpstream() const {
switch (type_) {
case ACCESSOR_REQ: return true;
case ACCESSOR_ACK: return ... | bsd-3-clause |
kakada/dhis2 | dhis-api/src/main/java/org/hisp/dhis/validation/ValidationRule.java | 17134 | package org.hisp.dhis.validation;
/*
* Copyright (c) 2004-2015, University of Oslo
* 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 a... | bsd-3-clause |
rfleschenberg/django-shop | shop/views/auth.py | 5765 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth import logout
from django.contrib.auth.models import AnonymousUser
from django.contrib.auth.tokens import default_token_generator
from django.core.exceptions import NON_FIELD_ERRORS
from django.utils.encoding import force_text
from... | bsd-3-clause |
subdee/myportugal | tests/codeception/frontend/acceptance/LoginCept.php | 1188 | <?php
namespace tests\codeception\frontend\acceptance;
use tests\codeception\common\_pages\LoginPage;
use tests\codeception\frontend\AcceptanceTester;
/* @var $scenario \Codeception\Scenario */
$scenario->skip('Page not implemented yet');
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure login page works');... | bsd-3-clause |
nynka/azet-api | config/documentation.config.php | 2932 | <?php
return array(
'Azet\\V1\\Rest\\User\\Controller' => array(
'description' => 'Azet User service to retreive user information.',
'collection' => array(
'GET' => array(
'response' => '{
"_links": {
"self": {
"href": "/azet/user"
},
"f... | bsd-3-clause |
jtb-javacc/JTB | src/EDU/purdue/jtb/parser/NormalProduction.java | 8810 | /* Copyright (c) 2006, 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 notice,
* this l... | bsd-3-clause |
kylelutz/arrayfire | test/histogram.cpp | 4232 | /*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... | bsd-3-clause |