code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
from . import Cl, conformalize
layout_orig, blades_orig = Cl(3)
layout, blades, stuff = conformalize(layout_orig)
locals().update(blades)
locals().update(stuff)
# for shorter reprs
layout.__name__ = 'layout'
layout.__module__ = __name__
| arsenovic/clifford | clifford/g3c.py | Python | bsd-3-clause | 240 |
using System;
using Renci.SshNet.Messages.Connection;
namespace Renci.SshNet.Channels
{
internal abstract class ServerChannel : Channel
{
internal void Initialize(Session session, uint localWindowSize, uint localPacketSize, uint remoteChannelNumber, uint remoteWindowSize, uint remotePacketSize)
... | EddyBeaupre/Renci.SshNet | Channels/ServerChannel.cs | C# | bsd-3-clause | 2,118 |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\ShopGoodsCategory */
$this->title = Yii::t('app', 'Create Shop Goods Category');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Shop Goods Categories'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title... | xiangpingeasy/yii2_fbg_shop | backend/views/shop-goods-category/create.php | PHP | bsd-3-clause | 446 |
// 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 "chrome/browser/chromeos/login/login_utils.h"
#include <algorithm>
#include <set>
#include <vector>
#include "base/bind.h"
#include "base/c... | patrickm/chromium.src | chrome/browser/chromeos/login/login_utils.cc | C++ | bsd-3-clause | 36,738 |
package edu.ucdenver.ccp.datasource.fileparsers.snomed;
import edu.ucdenver.ccp.datasource.fileparsers.SingleLineFileRecord;
/*
* #%L
* Colorado Computational Pharmacology's common module
* %%
* Copyright (C) 2012 - 2015 Regents of the University of Colorado
* %%
* Redistribution and use in source and binary fo... | UCDenver-ccp/datasource | datasource-fileparsers/src/main/java/edu/ucdenver/ccp/datasource/fileparsers/snomed/SnomedRf2DescriptionFileRecord.java | Java | bsd-3-clause | 3,805 |
<?php
namespace app\controllers;
use app\models\ContactForm;
use app\models\LoginForm;
use Yii;
use yii\filters\AccessControl;
use yii\filters\VerbFilter;
use yii\web\Controller;
class SiteController extends Controller
{
public function behaviors()
{
return [
'access' => [
... | locnes/monstars | controllers/SiteController.php | PHP | bsd-3-clause | 2,402 |
package com.mattunderscore.trees.base;
import static org.junit.Assert.*;
import static org.mockito.Mockito.verify;
import static org.mockito.MockitoAnnotations.initMocks;
import java.util.Iterator;
import java.util.NoSuchElementException;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
impo... | mattunderscorechampion/tree-root | trees-basic-nodes/src/test/java/com/mattunderscore/trees/base/MutableChildIteratorTest.java | Java | bsd-3-clause | 1,823 |
// Copyright 2004-present Facebook. All Rights Reserved.
#include <vector>
#include <string>
#include <osquery/core.h>
#include <osquery/logger.h>
#include <osquery/tables.h>
#include "osquery/events/linux/udev.h"
namespace osquery {
namespace tables {
/**
* @brief Track udev events in Linux
*/
class HardwareEve... | Anubisss/osquery | osquery/tables/events/linux/hardware_events.cpp | C++ | bsd-3-clause | 2,025 |
package com.spm.store;
import java.io.Serializable;
import java.util.List;
import android.content.Context;
/**
*
* @author Agustin Sgarlata
* @param <T>
*/
public class DbProvider<T extends Serializable> extends Db4oHelper {
public Class<T> persistentClass;
public DbProvider(Class<T> persistentClass, Conte... | mural/spm | SPM/src/main/java/com/spm/store/DbProvider.java | Java | bsd-3-clause | 670 |
package main
/*
* CSCI 4229 Assignment 5: Lighting
*
* Author: Zach Anders
*
* Some code derived from CSCI 4229 Examples 9, 10, and 13 (ex9.c, ex10.c, ex13.c)
*
* Code for 2D text display (due to missing windowpos2i) based off some example code
* at http://programmingexamples.net/wiki/OpenGL/Text
*/
import (
"actor... | ZachAnders/Graphics_HW5_lighting | src/main/scene_main.go | GO | bsd-3-clause | 6,411 |
from django import forms
from ncdjango.interfaces.arcgis.form_fields import SrField
class PointForm(forms.Form):
x = forms.FloatField()
y = forms.FloatField()
projection = SrField() | consbio/ncdjango | ncdjango/interfaces/data/forms.py | Python | bsd-3-clause | 195 |
<?
$this->title = Yii::t("UserModule.user", 'Create profile field');
$this->breadcrumbs=array(
Yii::t("UserModule.user", 'Profile fields')=>array('admin'),
Yii::t("UserModule.user", 'Create'));
?>
<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
| stsoft/printable | protected/modules/profile/views/fields/create.php | PHP | bsd-3-clause | 270 |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
# 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 copyrigh... | nuagenetworks/vspk-python | vspk/v6/nuavatar.py | Python | bsd-3-clause | 9,831 |
// 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.
//------------------------------------------------------------------------------
// Description of the life cycle of a instance of MetricsService.
//
// ... | ltilve/chromium | components/metrics/metrics_service.cc | C++ | bsd-3-clause | 42,424 |
/*
* PROJECT: Atomix Development
* LICENSE: BSD 3-Clause (LICENSE.md)
* PURPOSE: Cgt MSIL
* PROGRAMMERS: Aman Priyadarshi (aman.eureka@gmail.com)
*/
using System;
using System.Reflection;
using Atomixilc.Machine;
using Atomixilc.Attributes;
using Atomixilc.Machine.x86;
... | amaneureka/AtomOS | src/Compiler/Atomixilc/IL/Comparison/Cgt.cs | C# | bsd-3-clause | 3,259 |
package com.atlassian.pageobjects.components.aui;
import com.atlassian.pageobjects.PageBinder;
import com.atlassian.pageobjects.binder.Init;
import com.atlassian.pageobjects.binder.InvalidPageStateException;
import com.atlassian.pageobjects.components.TabbedComponent;
import com.atlassian.pageobjects.elements.PageElem... | adini121/atlassian | atlassian-pageobjects-elements/src/main/java/com/atlassian/pageobjects/components/aui/AuiTabs.java | Java | bsd-3-clause | 3,108 |
<?php
/**
* iDatabase数据管理控制器
*
* @author young
* @version 2013.11.22
*
*/
namespace Idatabase\Controller;
use My\Common\Controller\Action;
class ImportController extends Action
{
/**
* 读取当前数据集合的mongocollection实例
*
* @var object
*/
private $_data;
/**
* 读取数据属性结构的mongocol... | icatholic/icc | module/Idatabase/src/Idatabase/Controller/ImportController.php | PHP | bsd-3-clause | 10,381 |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\IzinmenutupjalanSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="izinmenutupjalan-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
... | dinarwm/kppt | views/Izinmenutupjalan/_search.php | PHP | bsd-3-clause | 1,483 |
//
// buffered_write_stream.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 BOOST_ASI... | verma/PDAL | boost/boost/asio/buffered_write_stream.hpp | C++ | bsd-3-clause | 7,635 |
////////////////////////////////////////////////////////////////////////////////////
///
/// \file reporttimeout.cpp
/// \brief This file contains the implementation of a JAUS message.
///
/// <br>Author(s): Bo Sun
/// <br>Created: 17 November 2009
/// <br>Copyright (c) 2009
/// <br>Applied Cognition and ... | jmesmon/jaus-- | src/jaus/core/control/reporttimeout.cpp | C++ | bsd-3-clause | 6,127 |
////functionen hämtar alla artiklar med hjälp av getJSON
//och får tillbaka en array med alla artiklar
//efter den är klar kallar den på functionen ShoArtTab.
//som skriver ut alla artiklar i en tabell.
function getAllAdminProducts()
{
$.getJSON("index2.php/getAllProducts").done(showArtTab);
}
//functionen showArtT... | cider94/JsKlar | start/admin.js | JavaScript | bsd-3-clause | 4,847 |
<?php
namespace common\models;
use Yii;
use yii\db\ActiveRecord;
/**
* This is the model class for table "template_js".
*
* @property integer $id
* @property integer $template_id
* @property integer $js_id
*
* @property Js $js
* @property Template $template
*/
class TemplateJs extends ActiveRecord
{
/**... | dmitry-grasevich/tg | common/models/TemplateJs.php | PHP | bsd-3-clause | 1,232 |
/**
* Copyright (c) 2015, Legendum Ltd. 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 conditi... | legendum/ntil | ntil.js | JavaScript | bsd-3-clause | 7,810 |
<?php
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\Url;
use app\models\Ticket;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app','ticket list'), 'url' => ['#']];
$this->params['addUrl'] = 'ticket/new';
?>
<div class="row">
<div class="col-lg-12">
<!-- ST... | suhe/bdoticket | views/ticket/ticket_all_request.php | PHP | bsd-3-clause | 3,532 |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\Category */
$this->title = 'Update Consultant Category: ' . ' ' . $model->category;
$this->params['breadcrumbs'][] = ['label' => 'Categories', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->category, 'url' ... | prayogo/pms.yii2 | views/category/update.php | PHP | bsd-3-clause | 565 |
<?php
namespace app\controllers\user;
use Yii;
use dektrium\user\controllers\ProfileController as PController;
use app\models\ProfileSearch;
/**
* UserInfoController implements the CRUD actions for UserInfo model.
*/
class ProfileController extends PController
{
/*public function behaviors()
{
retu... | ASLANTORRET/rgktask | controllers/user/ProfileController.php | PHP | bsd-3-clause | 3,088 |
/*
* [The BSD 3-Clause License]
* Copyright (c) 2015, Samuel Suffos
* 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 copyrig... | samuel-suffos/matlab-parser | Matlab.Nodes/02 Node/02 Internal/02 Inner/00 Base/InnerNode.cs | C# | bsd-3-clause | 2,008 |
#!/usr/bin/python
import os
# With the addition of Keystone, to use an openstack cloud you should
# authenticate against keystone, which returns a **Token** and **Service
# Catalog**. The catalog contains the endpoint for all services the
# user/tenant has access to - including nova, glance, keystone, swift.
#
# *NO... | wettenhj/mytardis-swift-uploader | openrc.py | Python | bsd-3-clause | 994 |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/**
* @var yii\web\View $this
* @var app\models\Image $model
* @var yii\widgets\ActiveForm $form
*/
?>
<div class="image-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'name')->textInput(['maxlength' => 50]) ?>
<?= $for... | novomirskoy/yii2gallery | views/image/_form.php | PHP | bsd-3-clause | 754 |
<?php
/*
Copyright (c) 2012, Silvercore Dev. (www.silvercoredev.com)
Todos os direitos reservados.
Ver o arquivo licenca.txt na raiz do BlackbirdIS para mais detalhes.
*/
session_start();
if (!isset($_SESSION["bis"]) || $_SESSION["bis"] != 1) {
header("Location: index.php");
die();
}
?> | silvercoredev/BlackbirdIS | 1.0/src/BlackbirdIS/admin/vsession.php | PHP | bsd-3-clause | 319 |
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from .local import Local # noqa
from .production import Production # noqa
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
from .celery import app as celery_app
| HEG-Arc/Appagoo | appagoo/config/__init__.py | Python | bsd-3-clause | 288 |
/**
* History.js Core
* @author Benjamin Arthur Lupton <contact@balupton.com>
* @copyright 2010-2011 Benjamin Arthur Lupton <contact@balupton.com>
* @license New BSD License <http://creativecommons.org/licenses/BSD/>
*/
(function(window,undefined){
"use strict";
// =============================================... | SkReD/history.js | scripts/uncompressed/history.js | JavaScript | bsd-3-clause | 50,992 |
require 'spree_auto_invoice'
require 'rails'
module SpreeAutoInvoice
class Railtie < Rails::Railtie
rake_tasks do
require '../tasks/spree_auto_invoice.rake'
end
end
end
| geekcups-team/spree_auto_invoice | lib/spree_auto_invoice/railtie.rb | Ruby | bsd-3-clause | 188 |
<?php
use librarys\helpers\utils\String;
?>
<!-- 文章正文 下面部分 -->
<div class="a_info neinf">
<div>
<div class="a_rea a_hop">
<h2>
<span><a href="http://jb.9939.com/article_list.shtml">更多文章>></a></span>
与“<font style="color:#F00"><?php echo String::cutString($title, ... | VampireMe/admin-9939-com | frontend/views/article/detail_below.php | PHP | bsd-3-clause | 5,416 |
// Copyright (c) 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 "chrome/browser/ui/extensions/settings_api_bubble_helpers.h"
#include <utility>
#include "build/build_config.h"
#include "chrome/browser/ex... | endlessm/chromium-browser | chrome/browser/ui/extensions/settings_api_bubble_helpers.cc | C++ | bsd-3-clause | 6,229 |
package org.broadinstitute.hellbender.engine;
import org.broadinstitute.barclay.argparser.CommandLineProgramProperties;
import org.broadinstitute.hellbender.cmdline.TestProgramGroup;
/**
* A Dummy / Placeholder class that can be used where a {@link GATKTool} is required.
* DO NOT USE THIS FOR ANYTHING OTHER THAN TE... | magicDGS/gatk | src/test/java/org/broadinstitute/hellbender/engine/DummyPlaceholderGatkTool.java | Java | bsd-3-clause | 1,099 |
// Standard system includes
#include <assert.h>
#include <errno.h> // -EINVAL, -ENODEV
#include <netdb.h> // gethostbyname
#include <sys/poll.h>
#include <sys/types.h> // connect
#include <sys/socket.h> // connect
#include <trace.h>
#define MY_TRACE_PREFIX "EthernetServer"
extern "C" {
#include "string.h"
}
#... | ilc-opensource/io-js | target/device/libio/arduino/x86/libraries/Ethernet/EthernetServer.cpp | C++ | bsd-3-clause | 4,266 |
'use strict';
module.exports = function (Logger, $rootScope) {
return {
restrict: 'A',
scope: {
hasRank: '='
},
link: function ($scope, elem, attrs) {
$rootScope.$watch('currentUser', function () {
Logger.info('Checking for rank: ' + $scope.... | e1528532/libelektra | src/tools/rest-frontend/resources/assets/js/directives/permission/HasRankDirective.js | JavaScript | bsd-3-clause | 571 |
/*
* Created on 02/04/2005
*
* JRandTest package
*
* Copyright (c) 2005, Zur Aougav, aougav@hotmail.com
* 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... | cryptopony/jrandtest | src/com/fasteasytrade/jrandtest/algo/QuadraticResidue1Prng.java | Java | bsd-3-clause | 4,818 |
/*
* 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | danakj/chromium | third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp | C++ | bsd-3-clause | 16,837 |
Spree.user_class.class_eval do
belongs_to :supplier, class_name: 'Spree::Supplier', optional: true
has_many :variants, through: :supplier
def supplier?
supplier.present?
end
def supplier_admin?
spree_roles.map(&:name).include?("supplier_admin")
end
def market_maker?
has_admin_role?
end
... | boomerdigital/solidus_marketplace | app/models/spree/user_decorator.rb | Ruby | bsd-3-clause | 400 |
# Possible discounts:
# - Node (administer inline with nodes)
# - Bulk amounts on nodes
# - User
# - Group of users
# - Order (this is more-or-less a voucher)
# - Shipping costs
# Possible amounts:
# - Percentage
# - Fixed amount
# Flag indicating if a discount can be combined with other discounts.
# Boolean "offer" to... | bhell/jimi | jimi/jimi/price/models/discount.py | Python | bsd-3-clause | 478 |
// Copyright © 2017 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Threading.Tasks;
namespace CefSharp.Test
{
public static class WebBrowserTestExtensions
{
public static Task... | Livit/CefSharp | CefSharp.Test/WebBrowserTestExtensions.cs | C# | bsd-3-clause | 4,472 |
<?php
use yii\db\Migration;
class m160407_113339_vraagenAndAwnserFixjes extends Migration
{
public function safeUp()
{
$this->alterColumn('vraag', 'text', 'blob');
$this->alterColumn('antwoord', 'text', 'blob');
}
public function safeDown()
{
$this->alterColumn('vraag', '... | foxoffire33/testList | console/migrations/m160407_113339_vraagenAndAwnserFixjes.php | PHP | bsd-3-clause | 414 |
<?php
use SerializerKit\XmlSerializer;
class XmlSerializerTest extends PHPUnit_Framework_TestCase
{
function test()
{
$xmls = new XmlSerializer;
$string = $xmls->encode(array(
'title' => 'War and Peace',
'isbn' => 123123123,
'authors' => array(
... | c9s/php-SerializerKit | tests/XmlSerializerTest.php | PHP | bsd-3-clause | 715 |
/**
* @file
* Money is a value object representing a monetary value. It does not use
* floating point numbers, so it avoids rounding errors.
* The only operation that may cause stray cents is split, it assures that no
* cents vanish by distributing as evenly as possible among the parts it splits into.
*
* Money ... | bergmark/Cactus | module/Core/lib/Data/Money.js | JavaScript | bsd-3-clause | 6,415 |
#include "Shape.h"
#include "DynBase.h"
//#include <iostream>
using std::cout;
using std::endl;
Shape::~Shape()
{
cout << "~Shape ..." << endl;
}
void Circle::Draw()
{
cout << "Circle::Draw() ..." << endl;
}
Circle::~Circle()
{
cout << "~Circle ..." << endl;
}
void Square::Draw()
{
cout << "Square::Draw() ..."... | lixinyancici/code-for-learning-cpp | cppbasic/Shape.cpp | C++ | bsd-3-clause | 796 |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
'use strict';
import {
IContentsModel
} from 'jupyter-js-services';
import {
Message
} from 'phosphor-messaging';
import {
PanelLayout
} from 'phosphor-panel';
import {
Widget
} from 'phosphor-widget';
im... | jupyter/jupyter-js-filebrowser | src/browser.ts | TypeScript | bsd-3-clause | 5,682 |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "solicitud_prestamo".
*
* @property integer $SPRE_ID
* @property string $PE_RUT
* @property string $SPRE_DESCRIPCION
* @property string $SPRE_FECHA
* @property string $SPRE_ESTADO
* @property string $SPRE_TEXTO
*
* @property Perso... | malikeox/mymltda2 | models/SolicitudPrestamo.php | PHP | bsd-3-clause | 1,651 |
<?php
namespace app\models;
use app\models\query\ActionQuery;
use app\models\query\CommentQuery;
use Yii;
use yii\db\ActiveRecord;
/**
* This is the model class for table "comment".
*
* @property integer $id
* @property integer $action_id
* @property string $content
*
* @property Action $action
*/
class Comm... | mixartemev/hd | models/Comment.php | PHP | bsd-3-clause | 1,500 |
// 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 "chrome/browser/net/sdch_dictionary_fetcher.h"
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/message_loop.h"
#in... | robclark/chromium | chrome/browser/net/sdch_dictionary_fetcher.cc | C++ | bsd-3-clause | 3,016 |
<?php
use yii\helpers\Html;
use mdm\admin\models\Assignment;
use backend\models\UserBackend;
use yii\base\Object;
$user = new UserBackend();
$list = UserBackend::find()->where([])->asArray()->all();
//print_r($list);
//echo "<br>";
$euserId = "";
for($i=0;$i<count($list);$i++){
$tmpId = $list[$i]["id"];
$assign... | 201528013359030/partyqing2 | backend/views/layouts/main.php | PHP | bsd-3-clause | 2,292 |
package de.uni.freiburg.iig.telematik.wolfgang.properties.check;
import javax.swing.JPanel;
import javax.swing.JPopupMenu;
import de.invation.code.toval.graphic.component.DisplayFrame;
import de.invation.code.toval.graphic.util.SpringUtilities;
import de.uni.freiburg.iig.telematik.sepia.petrinet.cpn.properties.cwn.CW... | iig-uni-freiburg/WOLFGANG | src/de/uni/freiburg/iig/telematik/wolfgang/properties/check/CWNPropertyCheckView.java | Java | bsd-3-clause | 5,138 |
/*
* Zorbage: an algebraic data hierarchy for use in numeric processing.
*
* Copyright (c) 2016-2021 Barry DeZonia 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 so... | bdezonia/zorbage | src/main/java/nom/bdezonia/zorbage/algorithm/InvFFT.java | Java | bsd-3-clause | 3,423 |
import matplotlib.pyplot as plt
import numpy as np
import scalpplot
from scalpplot import plot_scalp
from positions import POS_10_5
from scipy import signal
def plot_timeseries(frames, time=None, offset=None, color='k', linestyle='-'):
frames = np.asarray(frames)
if offset == None:
offset = np.max(np.std(frame... | breuderink/psychic | psychic/plots.py | Python | bsd-3-clause | 1,878 |
package main
import (
"encoding/json"
"fmt"
"log"
"time"
"github.com/boltdb/bolt"
)
type Entry struct {
Id string `json:"id"`
Url string `json:"url"`
Subreddit string `json:"subreddit"`
}
//InitDB initializes the BoltDB instance and loads in the database file.
func InitDB() {
... | Term1nal/gifvbot | db.go | GO | bsd-3-clause | 5,499 |
package eu.monnetproject.sim.entity;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import eu.monnetproject.util.Logger;
import eu.monnetproject.label.LabelExtractor;
import eu.monnetproject.label.LabelEx... | monnetproject/coal | nlp.sim/src/main/java/eu/monnetproject/sim/entity/MaximumAverageLevenshtein.java | Java | bsd-3-clause | 4,639 |
/*
-- MAGMA (version 1.5.0-beta3) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date July 2014
@generated from zgels_gpu.cpp normal z -> d, Fri Jul 18 17:34:16 2014
*/
#include "common_magma.h"
/**
Purpose
-------
Solves t... | EmergentOrder/magma | src/dgels_gpu.cpp | C++ | bsd-3-clause | 4,392 |
<?php
use AudioDidact\GlobalFunctions;
/**
* Returns Pug rendered HTML for the User page, either view or edit
*
* @param $webID string webID of the user's page to be rendered
* @param $edit boolean true if the user is logged in and viewing their own page
* @param null|string $verifyEmail null or string if the us... | md100play/AudioDidact | src/userPageGenerator.php | PHP | bsd-3-clause | 3,652 |
/*!
* \file dcxtab.cpp
* \brief blah
*
* blah
*
* \author David Legault ( clickhere at scriptsdb dot org )
* \version 1.0
*
* \b Revisions
*
* © ScriptsDB.org - 2006
*/
#include "defines.h"
#include "Classes/dcxtab.h"
#include "Classes/dcxdialog.h"
/*!
* \brief Constructor
*
* \param... | dlsocool/dcx | Classes/dcxtab.cpp | C++ | bsd-3-clause | 29,210 |
package uk.ac.soton.ecs.comp3204.l3;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridBagLayout;
import java.io.IOException;
import javax.swing.JPanel;
import org.openimaj.content.slideshow.Slide;
import org.openimaj.content.slideshow.SlideshowApplication;
import ... | jonhare/COMP3204 | app/src/main/java/uk/ac/soton/ecs/comp3204/l3/MeanCenteredFacesDemo.java | Java | bsd-3-clause | 2,176 |
package com.salesforce.dva.argus.service.mq.kafka;
import com.fasterxml.jackson.databind.JavaType;
import java.io.Serializable;
import java.util.List;
public interface Consumer {
<T extends Serializable> List<T> dequeueFromBuffer(String topic, Class<T> type, int timeout, int limit);
<T extends Serializable>... | salesforce/Argus | ArgusCore/src/main/java/com/salesforce/dva/argus/service/mq/kafka/Consumer.java | Java | bsd-3-clause | 424 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('setlist', '0012_remove_show_leg'),
]
operations = [
migrations.CreateModel(
name='Show2',
fields=[
... | tylereaves/26md | setlist/migrations/0013_show2.py | Python | bsd-3-clause | 970 |
// An object that encapsulates everything we need to run a 'find'
// operation, encoded in the REST API format.
var Parse = require('parse/node').Parse;
import { default as FilesController } from './Controllers/FilesController';
// restOptions can include:
// skip
// limit
// order
// count
// include
// ... | aneeshd16/parse-server | src/RestQuery.js | JavaScript | bsd-3-clause | 17,157 |
<?php
use yii\bootstrap\Html;
/**
* @var $this \yii\web\View
* @var $content string
*/
?>
<?php $this->beginContent('@app/views/layouts/base.php') ?>
<div class="wrap">
<?= $this->render('//shared/admin_panel') ?>
<?= $this->render('//shared/header') ?>
<a class="logo" href="/">
... | vetoni/toko | views/layouts/main.php | PHP | bsd-3-clause | 874 |
<?php
/*=========================================================================
MIDAS Server
Copyright (c) Kitware SAS. 20 rue de la Villette. All rights reserved.
69328 Lyon, FRANCE.
See Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILIT... | mgrauer/midas3score | core/models/base/AssetstoreModelBase.php | PHP | bsd-3-clause | 2,220 |
package eu.monnetproject.util;
import java.util.*;
/**
* Utility function to syntactically sugar properties for OSGi.
* This allows you to create a property map as follows
* <code>Props.prop("key1","value1")</code><br/>
* <code> .prop("key2","value2")</code>
*/
public final class Props {
public static Props... | monnetproject/coal | nlp.sim/src/main/java/eu/monnetproject/util/Props.java | Java | bsd-3-clause | 590 |
# -*- coding: utf-8 -*-
from collections import OrderedDict
import locale
from optparse import make_option
from verify.management.commands import VerifyBaseCommand
from verify.models import *
from verify.politici_models import *
from django.db.models import Q, Count
__author__ = 'guglielmo'
class Command(VerifyBase... | openpolis/op-verify | project/verify/management/commands/generi_in_istituzioni.py | Python | bsd-3-clause | 3,219 |
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008-2016. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | PeterMitrano/allwpilib | wpilibj/src/athena/java/edu/wpi/first/wpilibj/Joystick.java | Java | bsd-3-clause | 12,635 |
package sdp
func (s Session) appendAttributes(attrs Attributes) Session {
for _, v := range attrs {
if v.Value == blank {
s = s.AddFlag(v.Key)
} else {
s = s.AddAttribute(v.Key, v.Value)
}
}
return s
}
// Append encodes message to Session and returns result.
//
// See RFC 4566 Section 5.
func (m *Messa... | ernado/sdp | encoder.go | GO | bsd-3-clause | 1,664 |
<?php
if(!class_exists('AbstractQueuedJob')) return;
/**
* A Job for running a external link check for published pages
*
*/
class CheckLinksJob extends AbstractQueuedJob implements QueuedJob {
public function getTitle() {
return _t('CheckLinksJob.TITLE', 'Checking for broken links');
}
public function getJ... | blpraveen/silverstripe-brokenlinks | code/jobs/CheckLinksJob.php | PHP | bsd-3-clause | 722 |
#!/usr/bin/env python
from distutils.core import setup
setup(name='django-modeltranslation',
version='0.4.0-alpha1',
description='Translates Django models using a registration approach.',
long_description='The modeltranslation application can be used to '
'translate dynamic con... | google-code-export/django-modeltranslation | setup.py | Python | bsd-3-clause | 1,631 |
<div class="row">
<div class="col-xs-12">
<div class="box">
<?= \yii\grid\GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
'idadvert',
[
'label' => 'title',
... | lastfocus/lol-project | backend/views/advert/index.php | PHP | bsd-3-clause | 1,090 |
#include "stdfx.h"
//#include "tfxparam.h"
#include "trop.h"
//===================================================================
class PremultiplyFx : public TStandardRasterFx {
FX_PLUGIN_DECLARATION(PremultiplyFx)
TRasterFxPort m_input;
public:
PremultiplyFx() { addInputPort("Source", m_input); }
~Premul... | walkerka/opentoonz | toonz/sources/stdfx/premultiplyfx.cpp | C++ | bsd-3-clause | 1,082 |
// Copyright 2020 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/components/phonehub/multidevice_setup_state_updater.h"
#include "ash/components/phonehub/pref_names.h"
#include "ash/components/phonehub/ut... | scheib/chromium | ash/components/phonehub/multidevice_setup_state_updater.cc | C++ | bsd-3-clause | 6,304 |
/*
* jQuery File Upload Plugin JS Example 8.9.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* global $, window */
$(function () {
'use strict';
// Initializ... | vohoanglong07/yii_basic | web/js/fileupload/main.js | JavaScript | bsd-3-clause | 2,550 |
module Spree
module Admin
class AuthorsController < ResourceController
def index
params[:q] ||= {}
params[:q][:deleted_at_null] ||= "1"
@search = @authors.ransack(params[:q])
@authors = @search.result.page(params[:page]).per(Spree::Config[:admin_products_per_page])
@... | mehadesai/spree-multi-blogs | app/controllers/spree/admin/authors_controller.rb | Ruby | bsd-3-clause | 1,361 |
<?php namespace xp\runtime;
/**
* Wrap code passed in from the command line.
*
* @see https://wiki.php.net/rfc/group_use_declarations
* @test xp://net.xp_framework.unittest.runtime.CodeTest
*/
class Code {
private $fragment, $imports;
/**
* Creates a new code instance
*
* @param string $input
... | johannes85/core | src/main/php/xp/runtime/Code.class.php | PHP | bsd-3-clause | 2,041 |
#!/usr/bin/python
# Copyright (c) 2009, Purdue University
# 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 ... | stephenlienharrell/roster-dns-management | test/credentials_test.py | Python | bsd-3-clause | 4,275 |
#!/usr/bin/env python
import sys
import hyperdex.client
from hyperdex.client import LessEqual, GreaterEqual, Range, Regex, LengthEquals, LengthLessEqual, LengthGreaterEqual
c = hyperdex.client.Client(sys.argv[1], int(sys.argv[2]))
def to_objectset(xs):
return set([frozenset(x.items()) for x in xs])
assert c.put('kv... | hyc/HyperDex | test/python/DataTypeMapIntFloat.py | Python | bsd-3-clause | 585 |
<?php
namespace yiicms\components\core;
# Websun template parser, version 0.1.80
# http://webew.ru/articles/3609.webew
/*
0.1.80 - allowed_extensions option implemented
0.1.71 - replaced too new array declaration [] with array() - keeping PHP 5.3 compatibility
0.1.70 - added :^N and :^i
0.1.60 - __construct() a... | muratymt/yiicms | components/core/websun.php | PHP | bsd-3-clause | 37,601 |
/*!
* speedt
* Copyright(c) 2015 speedt <13837186852@qq.com>
* BSD 3 Licensed
*/
'use strict';
var utils = require('speedt-utils');
var Service = function(app){
var self = this;
// TODO
self.serverId = app.getServerId();
self.connCount = 0;
self.loginedCount = 0;
self.logined = {};
};
module.exports = Serv... | 3203317/st | server/lib/common/services/connectionService.js | JavaScript | bsd-3-clause | 1,457 |
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | endlessm/chromium-browser | third_party/llvm/libcxx/test/std/strings/basic.string.hash/char_type_hash.fail.cpp | C++ | bsd-3-clause | 2,504 |
module Watir
module RowContainer
# Returns a row in the table
# * index - the index of the row
def [](index)
assert_exists
TableRow.new(self, :ole_object, @o.rows.item(index))
end
def strings
assert_exists
rows_memo = []
@o.rows.each do |row|
c... | jarib/watir | watir/lib/watir/table.rb | Ruby | bsd-3-clause | 6,849 |
<?php
namespace PragmaRX\Health\Checkers;
use GuzzleHttp\Client as Guzzle;
use Illuminate\Support\Str;
use PragmaRX\Health\Support\LocallyProtected;
use PragmaRX\Health\Support\Result;
class ServerVars extends Base
{
protected $response;
protected $errors;
/**
* Check resource.
*
* @retur... | antonioribeiro/health | src/Checkers/ServerVars.php | PHP | bsd-3-clause | 2,717 |
<aside class="main-sidebar">
<section class="sidebar">
<?= dmstr\widgets\Menu::widget(
[
'options' => ['class' => 'sidebar-menu'],
'items' => [
['label' => 'Menu', 'options' => ['class' => 'header']],
['label' => 'Home', '... | mehdihasan/new_english | admin/layouts/left.php | PHP | bsd-3-clause | 1,482 |
// Copyright 2019 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/browser/optimization_guide/optimization_guide_web_contents_observer.h"
#include "chrome/browser/optimization_guide/chrome_hints_manager.... | nwjs/chromium.src | chrome/browser/optimization_guide/optimization_guide_web_contents_observer.cc | C++ | bsd-3-clause | 9,522 |
// GLFW Engine.
// -----------------------------------------------------------------------------
// Copyright (C) 2011, ZEUS project (See authors)
//
// This program is open source and distributed under the New BSD License. See
// license for more detail.
// -------------------------------------------------------------... | papaboo/The-ZEUS-Project | extensions/GLFW/Core/GLFWEngine.cpp | C++ | bsd-3-clause | 1,427 |
#include "farversion.hpp"
#define PLUGIN_BUILD 37
#define PLUGIN_DESC L"File names case conversion for Far Manager"
#define PLUGIN_NAME L"FileCase"
#define PLUGIN_FILENAME L"FileCase.dll"
#define PLUGIN_AUTHOR FARCOMPANYNAME
#define PLUGIN_VERSION MAKEFARVERSION(FARMANAGERVERSION_MAJOR,FARMANAGERVERSION_MINOR,FARMANAG... | data-man/FarAS | plugins/filecase/version.hpp | C++ | bsd-3-clause | 364 |
// Copyright (c) 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.
#include "chrome/browser/renderer_host/pepper/device_id_fetcher.h"
#include "base/file_util.h"
#include "base/prefs/pref_service.h"
#include "base/st... | mogoweb/chromium-crosswalk | chrome/browser/renderer_host/pepper/device_id_fetcher.cc | C++ | bsd-3-clause | 7,226 |
"""
Room Typeclasses for the TutorialWorld.
This defines special types of Rooms available in the tutorial. To keep
everything in one place we define them together with the custom
commands needed to control them. Those commands could also have been
in a separate module (e.g. if they could have been re-used elsewhere.)... | feend78/evennia | evennia/contrib/tutorial_world/rooms.py | Python | bsd-3-clause | 40,655 |
<?php
namespace asdfstudio\admin\helpers;
use Yii;
use asdfstudio\admin\Module;
use asdfstudio\admin\base\Admin;
use yii\db\ActiveRecord;
class AdminHelper
{
/**
* @param string $entity Admin class name or Id
* @return Admin|null
*/
public static function getEntity($entity)
{
/* ... | Tecnoready/yii2-admin-module | helpers/AdminHelper.php | PHP | bsd-3-clause | 1,294 |
package tools;
/*
* Extremely Compiler Collection
* Copyright (c) 2015-2020, Jianping Zeng.
*
* 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/LICE... | JianpingZeng/xcc | xcc/java/tools/SourceMgr.java | Java | bsd-3-clause | 8,511 |
package com.logicalpractice.collections;
import static org.junit.Assert.*;
import static org.hamcrest.Matchers.* ;
import org.junit.Test;
public class ExpressionTest {
@Test
public void script1() throws Exception {
Person billy = new Person("Billy", "Smith");
Expression<Person,String>... | tempredirect/lps-collections | src/test/java/com/logicalpractice/collections/ExpressionTest.java | Java | bsd-3-clause | 534 |
<?php
declare(strict_types=1);
namespace LizardsAndPumpkins\Context\Country;
use LizardsAndPumpkins\Context\ContextPartBuilder;
class IntegrationTestContextCountry implements ContextPartBuilder
{
private $defaultCountryCode = 'DE';
/**
* @param mixed[] $inputDataSet
* @return string
*/
... | lizards-and-pumpkins/catalog | tests/Integration/Util/Context/Country/IntegrationTestContextCountry.php | PHP | bsd-3-clause | 660 |
const initialState = {
country: 'es',
language: 'es-ES'
}
const settings = (state = initialState, action) => {
switch (action.type) {
default:
return state
}
}
export default settings
| emoriarty/podcaster | src/reducers/settings.js | JavaScript | bsd-3-clause | 200 |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of th... | jcmadsen/chrono | src/demos/trackVehicle/subsys/trackSystem/TrackSystem.cpp | C++ | bsd-3-clause | 9,871 |
<?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'Platafo... | phghost/plataformaeducativalael-1 | protected/config/main.php | PHP | bsd-3-clause | 2,340 |
/**
Copyright (c) 2014, Nathan Carver
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
and the follo... | ncarver/TEETH | main.js | JavaScript | bsd-3-clause | 28,665 |
<?php
use app\core\helpers\Html;
use app\core\helpers\Url;
$this->title = '权限管理 在此页面添加名修改权限项注释';
$this->params['breadcrumbs'][] = $this->title;
?>
<style type="text/css">
.nopad{padding-left: 0}
.panel-default>.panel-heading{
padding: 10px 15px;
background-color: #f5f5f5;
border-color:... | cboy868/lion2 | modules/sys/views/admin/auth-permission/index.php | PHP | bsd-3-clause | 3,238 |