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 |
|---|---|---|---|---|---|
import shutil
import subprocess as sub
pdf = '_build/latex/gcmstools.pdf'
try:
sub.call(['make', 'latexpdf'])
except:
print("There was an error in latexpdf generation.")
else:
shutil.copy(pdf, '..')
sub.call(['make', 'clean'])
| rnelsonchem/gcmstools | docs/makepdf.py | Python | bsd-3-clause | 246 |
/*
* Copyright (C)2015,2016,2017 Amos Brocco (amos.brocco@supsi.ch)
* Scuola Universitaria Professionale della
* Svizzera Italiana (SUPSI)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... | slashdotted/PomaPure | Modules/Blocker/src/Blocker.cpp | C++ | bsd-3-clause | 2,711 |
/*
* Copyright 2014, Gregg Tavares.
* 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 condi... | greggman/hft-simple | scripts/controller.js | JavaScript | bsd-3-clause | 3,761 |
<?php
/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */
use yii\helpers\Html;
$this->title = $name;
?>
<div class="site-error">
<h1><?= Html::encode("Page Not Found(#404)"); ?></h1>
<div class="alert alert-danger">
<?= nl2br(Html::encod... | yinye12345/StockWebService | views/doc/404.php | PHP | bsd-3-clause | 352 |
// Copyright (C) 2001 Kral Ferch, Jason Diamond
// Parts Copyright (C) 2004 Kevin Downs
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your op... | hmah/boo | tools/ndoc/src/Core/ReflectionEngine/ReflectionEngine.cs | C# | bsd-3-clause | 110,255 |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
function CoayoloDAO(){
if (false === (this instanceof CoayoloDAO)) {
console.log('Warning: CoayoloDAO constructor called without "new" operator');
return new CoayoloDAO();
}
//fix
this.Alumno = new Schema({... | VUH-Tec/cuayolo-db | CoayoloDAO.js | JavaScript | bsd-3-clause | 5,441 |
/*
* 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/test/java/nom/bdezonia/zorbage/type/integer/int4/TestUnsignedInt4.java | Java | bsd-3-clause | 9,478 |
#!/usr/bin/env python
# Authors: Thomas Cannon <tcannon@viaforensics.com>
# Seyton Bradford <sbradford@viaforensics.com>
# Cedric Halbronn <cedric.halbronn@sogeti.com>
# TAGS: Android, Device, Decryption, Crespo, Bruteforce
#
# Parses the header for the encrypted userdata partition
# Decrypts the mas... | sogeti-esec-lab/android-fde | pydroidfde/bruteforce.py | Python | bsd-3-clause | 4,064 |
<?php defined('SYSPATH') or die('No direct script access.');
/**
*
*/
class Controller_Auth extends Controller
{
public function action_index()
{
if ($this->request->post('username')
&& $this->request->post('password')
&& Auth::instance()->login($this->request->post('username'), $this->request->po... | Konro1/kohana | application/classes/Controller/Auth.php | PHP | bsd-3-clause | 837 |
<?php
/**
* File to execute the doctrine command.
*/
require_once "bootstrap.php";
return \Doctrine\Orm\Tools\Console\ConsoleRunner::createHelperSet($entityManager);
| jsikora/fitnessclub | cli-config.php | PHP | bsd-3-clause | 172 |
# http://matpalm.com/blog/2012/12/27/dead_simple_pymc/
from pylab import * # for close()
import spacepy.plot as spp # for the styles
import numpy as np
import pymc as pm
| balarsen/pymc_learning | Learning/simple_normal_model.py | Python | bsd-3-clause | 175 |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\Publication */
$this->title = Yii::t('app', 'Update {modelClass}: ', [
'modelClass' => 'Publication',
]) . ' ' . $model->id_publ;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Publications'), 'url' => ['index']];... | GreenIceTeam/greenice | backend/views/publication/update.php | PHP | bsd-3-clause | 649 |
namespace AjScript.Expressions
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AjScript.Language;
using Microsoft.VisualBasic.CompilerServices;
public class CompareExpression : BinaryExpression
{
private Func<object, ... | ajlopez/AjScript | src/AjScript/Expressions/CompareExpression.cs | C# | bsd-3-clause | 2,830 |
// 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/simple_web_view_dialog.h"
#include "ash/shell.h"
#include "ash/shell_window_ids.h"
#include "base/message_loo... | robclark/chromium | chrome/browser/chromeos/login/simple_web_view_dialog.cc | C++ | bsd-3-clause | 13,454 |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\TipsClass */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="tips-class-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'name')->textInput(['maxlength' => 100]) ?>
... | lemayi/chinatravel | backend/views/tips-class/_form.php | PHP | bsd-3-clause | 690 |
var classwblut_1_1geom_1_1_w_b___iso_values2_d_1_1_function2_d =
[
[ "Function2D", "classwblut_1_1geom_1_1_w_b___iso_values2_d_1_1_function2_d.html#a5d1f29ecd5a972b2b774b34c0c73567f", null ],
[ "getHeight", "classwblut_1_1geom_1_1_w_b___iso_values2_d_1_1_function2_d.html#a0967402a3ebb011faa4ea231857687ea", null... | DweebsUnited/CodeMonkey | resources/hemesh/ref/html/classwblut_1_1geom_1_1_w_b___iso_values2_d_1_1_function2_d.js | JavaScript | bsd-3-clause | 949 |
# Copyright (C) 2010 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 conditions and the ... | was4444/chromium.src | third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py | Python | bsd-3-clause | 78,408 |
# Delegation tree
#
# Targets
# / \
# a f
# / \
# b e
# / \
# c d
#
# No terminating delegations.
#
# Roles should be evaluated in the order:
# Targets > a > b > c > d > e > f
from fixtures.builder import FixtureBuilder
def build():
... | theupdateframework/go-tuf | client/testdata/php-tuf-fixtures/TUFTestFixture3LevelDelegation/__init__.py | Python | bsd-3-clause | 1,041 |
package org.marswars.commands;
/**
*
* @author bradmiller
*/
public class UnwindRR extends CommandBase {
boolean isFinished = false;
public UnwindRR() {
// Use requires() here to declare subsystem dependencies
requires(drive);
setRunWhenDisabled(true);
}
// Called jus... | FRC-Team-4143/AerialAssist | src/org/marswars/commands/UnwindRR.java | Java | bsd-3-clause | 961 |
package com.impossibl.stencil.engine.internal;
import java.io.Serializable;
import com.impossibl.stencil.api.Template;
import com.impossibl.stencil.engine.parsing.StencilParser.TemplateContext;
public class TemplateImpl implements Template, Serializable {
private static final long serialVersionUID = -497788029906... | impossibl/stencil | engine/src/main/java/com/impossibl/stencil/engine/internal/TemplateImpl.java | Java | bsd-3-clause | 781 |
//======================================================================================
// Copyright 5AM Solutions Inc, Yale University
//
// Distributed under the OSI-approved BSD 3-Clause License.
// See http://ncip.github.com/caarray/LICENSE.txt for details.
//=======================================================... | NCIP/caarray | software/caarray-ejb.jar/src/main/java/gov/nih/nci/caarray/application/util/CaArrayFileSetSplitter.java | Java | bsd-3-clause | 1,175 |
package net.minidev.ovh.api.hosting.web.database.dump;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* List of dump types
*/
public enum OvhDateEnum {
@JsonProperty("daily.1")
daily_1("daily.1"),
now("now"),
@JsonProperty("weekly.1")
weekly_1("weekly.1");
final String value;
OvhDateEnum(String ... | UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/hosting/web/database/dump/OvhDateEnum.java | Java | bsd-3-clause | 401 |
<?php defined('SYSPATH') or die('No direct access allowed.');
$lang = array
(
'requires_mcrypt' => 'Käyttääksesi Encrypt-kirjastoa, mcrypt tulee olla kytkettynä PHP-asennukessasi.',
'no_encryption_key' => 'Käyttääksesi Encrypt-kirjastoa, tulee salausavain olla määriteltynä asetuksissa.'
);
| WebArchivCZ/WA-Admin | system/i18n/fi_FI/encrypt.php | PHP | bsd-3-clause | 306 |
<?php
namespace SanAuth\Model;
use Zend\Authentication\Storage;
use Zend\Session\Container;
class MyAuthStorage extends Storage\Session
{
protected $container;
public function getContainer(){
if(!$this->container){
$this->container = new Container('MTakip');
}
return $thi... | fkaynakli/MukellefTakip | module/SanAuth/src/SanAuth/Model/MyAuthStorage.php | PHP | bsd-3-clause | 981 |
import liblo
import time
from liblo import make_method
target = liblo.Address(12002)
class SerialOsc(liblo.Server):
def __init__(self, *args, **kwargs):
liblo.Server.__init__(self, *args, **kwargs)
self.devices = []
@make_method('/serialosc/device', 'ssi')
def list_device(self, path, args... | litghost/etherdream_toys | monome_test.py | Python | bsd-3-clause | 1,048 |
from django.db import models
from django.contrib.postgres.fields import ArrayField
from localflavor.us.us_states import US_STATES
from django.core.urlresolvers import reverse
from django.utils.text import slugify
from common.models import TimestampedModel
import uuid
STATE_NATL_CHOICES = (('US', 'National'),) + US_STA... | sunlightlabs/hall-of-justice | cjdata/models.py | Python | bsd-3-clause | 5,438 |
<?php
/**
* This is the model class for table "competidor".
*
* The followings are the available columns in table 'competidor':
* @property integer $id
* @property string $nombre
*
* The followings are the available model relations:
* @property Cliente[] $clientes
*/
class Competidor extends CActiveRecord
{
... | marceloepuyao/dashboard | protected/models/Competidor.php | PHP | bsd-3-clause | 2,593 |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\search\ProductoSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="producto-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>... | sburgos/easydelivery | modules/admin/views/producto/_search.php | PHP | bsd-3-clause | 891 |
/*
* $Id: Boolean.java,v 1.19 2007/08/27 11:18:20 agoubard Exp $
*
* Copyright 2003-2007 Orange Nederland Breedband B.V.
* See the COPYRIGHT file for redistribution and use restrictions.
*/
package org.xins.common.types.standard;
import org.xins.common.types.Type;
import org.xins.common.types.TypeValueException;
... | znerd/xins | src/java/org/xins/common/types/standard/Boolean.java | Java | bsd-3-clause | 4,415 |
// Copyright 2014 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 bind
import (
"fmt"
"go/token"
"go/types"
"strings"
)
type goGen struct {
*printer
fset *token.FileSet
pkg *types.Package
err ErrorList
}
f... | xing/gomobile | bind/gengo.go | GO | bsd-3-clause | 11,730 |
#pragma once
namespace Ra {
namespace Core {
namespace _internalIterator {
template <class T>
struct _reversed {
T& t;
explicit _reversed( T& _t ) : t( _t ) {}
};
template <class T>
struct _creversed {
const T& t;
explicit _creversed( const T& _t ) : t( _t ) {}
};
} // namespace _internalIterator
// ... | Zouch/Radium-Engine | src/Core/Containers/Iterators.hpp | C++ | bsd-3-clause | 1,360 |
// Copyright 2009 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 ioutil implements some I/O utility functions.
package ioutil
import (
"bytes"
"io"
"os"
"sort"
)
// readAll reads from r until an error or EOF ... | SDpower/golang | src/pkg/io/ioutil/ioutil.go | GO | bsd-3-clause | 3,297 |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2010-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to 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)
#ifnd... | verma/PDAL | boost/boost/geometry/geometries/adapted/boost_polygon/polygon.hpp | C++ | bsd-3-clause | 3,504 |
// *****************************************************************************
//
// © Component Factory Pty Ltd 2017. All rights reserved.
// The software and associated documentation supplied hereunder are the
// proprietary information of Component Factory Pty Ltd, 13 Swallows Close,
// Mornington, Vic 3931... | ComponentFactory/Krypton | Source/Krypton Components/ComponentFactory.Krypton.Ribbon/Ribbon/KryptonRibbonGroupDomainUpDownDesigner.cs | C# | bsd-3-clause | 21,816 |
$(document).ready(function() {
Drupal.dupe.clearDOB();
});
Drupal.dupe = {};
Drupal.dupe.clearDOB = function() {
y = $("#edit-profile-dob-year").val();
var years = '';
var d = new Date();
var max_year = d.getFullYear() - 18;
for (i = 1900; i <= max_year; i++) years += '<option value="' + i + '... | NCIP/edct-collector | collector-CMS/sites/all/modules/custom/dupe/dupe.js | JavaScript | bsd-3-clause | 1,290 |
package org.basex.io.out;
import java.io.*;
import org.basex.data.*;
import org.basex.io.*;
/**
* This class allows a blockwise output of the database table.
*
* @author BaseX Team 2005-22, BSD License
* @author Christian Gruen
* @author Tim Petrowsky
*/
public final class TableOutput extends OutputStream {
... | BaseXdb/basex | basex-core/src/main/java/org/basex/io/out/TableOutput.java | Java | bsd-3-clause | 1,856 |
// Copyright 2015-present 650 Industries. All rights reserved.
package host.exp.exponent.kernel.services.sensors;
import android.content.Context;
import android.hardware.Sensor;
public class GyroscopeKernelService extends SubscribableSensorKernelService {
public GyroscopeKernelService(Context context) {
super(... | exponent/exponent | android/expoview/src/main/java/host/exp/exponent/kernel/services/sensors/GyroscopeKernelService.java | Java | bsd-3-clause | 411 |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 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 License
*/
namespace ... | snallam/writewell_sprint2 | vendor/zendframework/zendframework/library/Zend/Ldap/Ldap.php | PHP | bsd-3-clause | 48,260 |
<?php
/**
* Created by PhpStorm.
* User: wumahoo
* Date: 2016/9/2 0002
* Time: 下午 4:40
*/
$this->title=Yii::t('shop','Community Shop');
?>
<h1>社区小店建设中...</h1>
| wumahoo/ying | frontend/views/shop/index.php | PHP | bsd-3-clause | 185 |
#ifndef __SIMPLE_FIPU_HPP__
#define __SIMPLE_FIPU_HPP__
#include "promote_traits.hpp"
struct mult_opcode {};
struct div_opcode {};
struct add_opcode {};
struct sub_opcode {};
struct Mult
{
template<typename T1, typename T2>
struct NBits
{
enum {
Magnitude = T1::Magnitude + ... | graveljp/fixed | fixed/SimpleFiPU.hpp | C++ | bsd-3-clause | 4,339 |
$().ready(function() {
$("a[rel^='prettyPhoto']").prettyPhoto();
}); | Freecer/freecer.net | themes/bootlance/js/js.js | JavaScript | bsd-3-clause | 73 |
// 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 "android_webview/common/aw_switches.h"
namespace switches {
const char kDisableRecordDocumentWorkaround[] =
"disable-record-document-workar... | chromium2014/src | android_webview/common/aw_switches.cc | C++ | bsd-3-clause | 353 |
namespace Zinc.WebService.ServiceUtil
{
/// <summary>
/// Describes the type of .NET type contained in the service description file.
/// </summary>
public enum TypeofType
{
/// <summary>
/// Service interface.
/// </summary>
Interface = 0,
/// <summary>
... | filipetoscano/Zinc | src/Zinc.WebServices.SvcUtil/TypeofType.cs | C# | bsd-3-clause | 551 |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace app\commands;
use yii\console\Controller;
use app\models\Subject;
use app\components\MainTrait;
use yii\web\NotFoundHttpException;
/**
* This command echoe... | iExellent/gratemake | commands/HelloController.php | PHP | bsd-3-clause | 1,585 |
<?php
/*## TbModal class file.
*
* @author Christoffer Niska <ChristofferNiska@gmail.com>
* @copyright Copyright © Christoffer Niska 2011-
* @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php)
* @package bootstrap.widgets
* @since 0.9.3
*/
/**
* Bootstrap modal widget.
* @see <... | GsHatRed/Yiitest | protected/extensions/bootstrap/widgets/TbModal.php | PHP | bsd-3-clause | 2,602 |
#include <math.h>
#include "utAllocore.h"
template <class T>
inline bool eq(T x, T y, T eps=0.000001){
return abs(x-y) < eps;
}
template <class T>
inline bool eq(const T* x, const T* y, int n, T eps=0.0000001){
for(int i=0; i<n; ++i){
if(!eq(x[i], y[i], eps)) return false;
}
return true;
}
template <class T>
i... | AlloSphere-Research-Group/AlloSystem | allocore/unitTests/utMath.cpp | C++ | bsd-3-clause | 23,752 |
// 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 "ui/app_list/views/contents_view.h"
#include <algorithm>
#include "ui/app_list/app_list_constants.h"
#include "ui/app_list/pagination_model... | loopCM/chromium | ui/app_list/views/contents_view.cc | C++ | bsd-3-clause | 7,680 |
using System;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Infrastructure;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Security.Claims;
using System.Threading.Tasks;
namespace Thinktecture.IdentityServer.v3.AccessTokenValidation
{... | fruffin/Thinktecture.IdentityServer.v3.EntityFramework | Source/IdSrvReferenceTokenValidation/ReferenceTokens/ReferenceTokenProvider.cs | C# | bsd-3-clause | 1,606 |
# -*- coding: utf8 -*-
"""
This is part of shot detector.
Produced by w495 at 2017.05.04 04:18:27
"""
from __future__ import absolute_import, division, print_function
import datetime
import logging
import av
import six
# noinspection PyUnresolvedReferences
from av.container import InputContainer
from shot_d... | w495/python-video-shot-detector | shot_detector/handlers/base_handler.py | Python | bsd-3-clause | 8,236 |
(function(){
var routineServices = angular.module('routineApp.routineServices', []);
var domain = 'http://127.0.0.1:8000/';
routineServices.factory("RoutineService", ['$http', function($http){
var routine = {};
routine.getRoutines = function() {
return $http.get(domain + 'ro... | Kayra/Thunder | client/js/routines/routineServices.js | JavaScript | bsd-3-clause | 1,858 |
from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', 'formsfive.views.example', name='example'),
)
| iamjstates/django-formsfive | urls.py | Python | bsd-3-clause | 268 |
<?
// Note: PHP Examples use the Heello PHP Client library
// https://github.com/Heello/heello-php
require_once dirname(dirname(dirname(__FILE__))) . '/Heello.php';
// You can get an Application Key and Secret by visiting:
// http://developer.heello.com/apps
$api_application_key = "APPLICATION_KEY";
$api... | Heello/heello-php | examples/auth/users.me.php | PHP | bsd-3-clause | 944 |
<?php
// This module takes over mailer settings; to enable outbound sends, add the following
// CaptureMailer::$outbound_send = true
// to stop capturing emails, add
// CaptureMailer::$capture_emails = false
Email::set_mailer(new CaptureMailer()); | silverstripe-australia/scavenger-hunt | mailcapture/_config.php | PHP | bsd-3-clause | 251 |
<?php
use frontend\widgets\banner\BannerWidget;
use frontend\widgets\post\PostWidget;
use frontend\widgets\chat\ChatWidget;
use frontend\widgets\hot\HotWidget;
use frontend\widgets\tag\TagWidget;
$this->title = '博客-首页';
?>
<div class="row">
<div class="col-lg-9">
<!--图片轮播-->
<?= BannerWidget::widge... | wfnking/yii2_blog | frontend/views/site/index.php | PHP | bsd-3-clause | 671 |
jQuery(document).ready(function(){
module("TiddlyWiki core");
test("RGB tests", function() {
expect(4);
var actual = new RGB(1,0,1).toString();
var expected = "#ff00ff";
ok(actual==expected,'RGB(1,0,1) is the same as #ff00ff');
actual = new RGB("#f00").toString();
expected = "#ff0000";
ok(actual==ex... | TeravoxelTwoPhotonTomography/nd | doc/node_modules/tiddlywiki/editions/tw2/source/tiddlywiki/test/js/RGB.js | JavaScript | bsd-3-clause | 1,187 |
from django.conf import settings
from django.conf.urls import url
from django.contrib.staticfiles.templatetags.staticfiles import static
from django.utils.html import format_html, format_html_join
from wagtail.wagtailcore import hooks
from .views import get_full_image_url
@hooks.register('register_admin_urls')
def r... | takeflight/wagtailannotatedimage | wagtailannotatedimage/wagtail_hooks.py | Python | bsd-3-clause | 923 |
package net.njcull.collections;
import org.junit.Assert;
import org.junit.Test;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
... | run2000/java-immutable-collections | testsrc/net/njcull/collections/TestImmutableSortedArrayBiMap.java | Java | bsd-3-clause | 45,385 |
$(document).ready(function() {
getChapterData();
});
function getChapterData() {
var idBook = $("#idBook").val();
var bookName = $("#bookName").val();
$.ajax({
url: '/chapter/getChapter/',
type: 'GET',
dataType: 'json',
data: {"idBook": idBook}
})
.done(function(resp) {
// console.log(... | 0lidaxiang/WeArt | static/templatesJs/chapter/bookChapter.js | JavaScript | bsd-3-clause | 1,721 |
<?php
namespace BackOffice\Form;
use DoctrineORMModuleTest\Assets\Entity\Category;
use Zend\Form\Form;
use BackOffice\Filter\CategoryFilter;
class CategoryForm extends Form
{
public function __construct()
{
parent::__construct();
$this->add(
[
'typ... | Mattheousse/ProjetZend | module/BackOffice/src/BackOffice/Form/CategoryForm.php | PHP | bsd-3-clause | 809 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial... | wangchunwei/resume | resume/protected/views/layouts/main.php | PHP | bsd-3-clause | 1,709 |
from django.conf.urls.defaults import *
import price_tracker.views
from django.contrib import admin
admin.autodiscover()
handler500 = 'djangotoolbox.errorviews.server_error'
urlpatterns = patterns(
'',
(r'^admin/', include(admin.site.urls)),
(r'results', price_tracker.views.results),
(r'^$', price_tr... | vinayan3/clpricehistory | urls.py | Python | bsd-3-clause | 458 |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\bootstrap\ActiveForm;
use wbraganca\dynamicform\DynamicFormWidget;
use backend\modules\org\models\OrgSite;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\qtn\Models\SurveyTabSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$t... | yuttapong/webapp | backend/modules/qtn/views/survey/_form.php | PHP | bsd-3-clause | 3,552 |
<?php
namespace Calendar\Model;
class Calendar
{
public $event_id;
public $created_at;
public $event_title;
public $event_body;
public $user_id;
public function exchangeArray($data)
{
$this->event_id = isset($data['event_id'])?$data['event_id']:null;
$this->created_at = ... | marziolek/zend-app | module/Calendar/src/Calendar/Model/Calendar.php | PHP | bsd-3-clause | 715 |
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using entCMS.Models;
using entCMS.Services;
namespace entCMS.Manage
{
public partial class LanguageList : BasePage
{
LanguageService lgs = LanguageService.GetInstance()... | plz821/entCMS | entCMS.Manage/Manage/System/LanguageList.aspx.cs | C# | bsd-3-clause | 1,243 |
/* *****************************************************************************
* 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
*********************************... | MengjiaoH/UpSet-Phovea | node_modules/phovea_core/src/stratification/Stratification.ts | TypeScript | bsd-3-clause | 5,263 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ArduinoMonitor
{
public enum EventType
{
ApplicationStart,
Initialized,
ApplicationStop,
ApplicationPause,
ApplicationContinue,
ConfigurationChanged,
LowThre... | Ehryk/ArduinoMonitor | ArduinoMonitor/Common/Enums/EventType.cs | C# | bsd-3-clause | 480 |
import os
import StringIO
import subprocess
import tempfile
from base64 import b64encode
from django.conf import settings
from django.core.files.storage import default_storage as storage
from PIL import Image
import olympia.core.logger
log = olympia.core.logger.getLogger('z.versions.utils')
def write_svg_to_png(... | atiqueahmedziad/addons-server | src/olympia/versions/utils.py | Python | bsd-3-clause | 4,124 |
/*
* MSR Tools - tools for mining software repositories
*
* Copyright (C) 2010-2011 Semyon Kirnosenko
*/
using System;
using System.Linq;
namespace MSR.Data.Entities.DSL.Selection
{
public static class ModificationSelectionExtensions
{
public static ModificationSelectionExpression Modifications... | kirnosenko/msr-tools | src/MSR/Data/Entities/DSL/Selection/ModificationSelectionExpression.cs | C# | bsd-3-clause | 2,527 |
/*
* Copyright 2002-2014 Drew Noakes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | IfflakeDeveloper/Mystic | src/com/drew/metadata/exif/makernotes/CasioType2MakernoteDescriptor.java | Java | bsd-3-clause | 10,104 |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model lukisongroup\master\models\DraftPlanGroup */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="draft-plan-group-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'TGL_START')->textI... | adem-team/advanced | lukisongroup/master/views/draft-plan-group/_form.php | PHP | bsd-3-clause | 1,327 |
package main
import (
"github.com/GwentAPI/gwentapi/app"
"github.com/GwentAPI/gwentapi/dataLayer/dal"
"github.com/GwentAPI/gwentapi/dataLayer/factory"
"github.com/GwentAPI/gwentapi/dataLayer/models"
"github.com/GwentAPI/gwentapi/helpers"
"github.com/goadesign/goa"
"github.com/goadesign/goa/middleware"
)
// Car... | GwentAPI/gwentapi | card.go | GO | bsd-3-clause | 10,891 |
# Copyright (c) 2011 Tencent Inc.
# All rights reserved.
#
# Author: Michaelpeng <michaelpeng@tencent.com>
# Date: October 20, 2011
"""
This is the cc_target module which is the super class
of all of the scons cc targets, like cc_library, cc_binary.
"""
import os
import subprocess
import Queue
import blade
im... | project-zerus/blade | src/blade/cc_targets.py | Python | bsd-3-clause | 39,092 |
<?php
class KT_Switch_Field extends KT_Field {
const FIELD_TYPE = "switch switch-toggle";
const YES = "1";
const NO = "0";
/**
* Založení objektu typu Switch
*
* @param string $name - hash v poli
* @param string $label - popisek v html
* @return self
*/
public functi... | ktstudio/WPFW-Theme | wpfw/kt/core/classes/fields/kt_switch_field.inc.php | PHP | bsd-3-clause | 4,148 |
var FormFileUpload = function () {
return {
//main function to initiate the module
init: function () {
// Initialize the jQuery File Upload widget:
$('#fileupload').fileupload({
// Uncomment the following to send cross-domain cookies:
//xhr... | duanduan2288/vr | web/js/form-fileupload.js | JavaScript | bsd-3-clause | 2,326 |
// 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/google_apis/drive_api_operations.h"
#include "base/json/json_writer.h"
#include "base/values.h"
namespace google_apis {
nam... | zcbenz/cefode-chromium | chrome/browser/google_apis/drive_api_operations.cc | C++ | bsd-3-clause | 10,254 |
<head>
<link rel="stylesheet" type="text/css" href="/Proyecto2015/modules/admwiki/views/css/styles.css">
</head>
<?php
use yii\helpers\Html;
use yii\widgets\ListView;
use app\models\Empleados;
/**
* @var $this yii\web\View
* @var $dataProvider yii\data\ActiveDataProvider
* @var $searchModel app\modules\admwiki... | programacionav/Proyecto2015 | modules/admwiki/views/articulos/index_historico.php | PHP | bsd-3-clause | 1,294 |
/*
* Copyright (c) 2016, 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.
*
*/
#include "Se... | yqzhang/mcrouter | mcrouter/ServiceInfo.cpp | C++ | bsd-3-clause | 12,548 |
<?php
namespace app\modules\users\models\search;
use app\modules\core\data\ActiveDataProvider;
use Yii;
use yii\base\Model;
use app\modules\users\models\ar\User;
class UserSearch extends User
{
/**
* @inheritdoc
*/
public function rules()
{
return [
[['id', 'superadmin', 's... | roman444uk/adverts | modules/users/models/search/UserSearch.php | PHP | bsd-3-clause | 1,852 |
from mrjob.job import MRJob
from itertools import combinations
class MRStatistics(MRJob):
def mapper(self, key, line):
account_id, user_id, purchased, session_start_time, session_end_time = line.split()
purchased = int(purchased)
session_duration = int(session_end_time) - int(session_star... | jepatti/mrjob_recipes | statistic_rollup/statistic_summarize.py | Python | bsd-3-clause | 920 |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2017 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | daverigby/memcached | daemon/doc_pre_expiry.cc | C++ | bsd-3-clause | 2,452 |
import Button from "@material-ui/core/Button";
import ClickAwayListener from "@material-ui/core/ClickAwayListener";
import Grow from "@material-ui/core/Grow";
import IconButton from "@material-ui/core/IconButton";
import Paper from "@material-ui/core/Paper";
import Popper from "@material-ui/core/Popper";
import {
cre... | UITools/saleor | saleor/static/dashboard-next/components/RichTextEditor/ImageEntity.tsx | TypeScript | bsd-3-clause | 3,408 |
package com.nonagon.modular.dynamicform.client;
import com.google.gwt.core.client.JavaScriptObject;
public class FormInstanceValue extends JavaScriptObject {
public static FormInstanceValue create() {
FormInstanceValue instance = ((FormInstanceValue)JavaScriptObject.createObject());
instance.init();
re... | Nonagon-x/Nonagon.Modular.DynamicForm | Frontend/GWT/gwt-modular-dynamicform/src/com/nonagon/modular/dynamicform/client/FormInstanceValue.java | Java | bsd-3-clause | 1,233 |
<?php
namespace common\components;
use Yii;
use yii\base\Object;
use common\models\Subject;
use common\models\ScreeningForm;
use common\models\ScreeningQuestion;
use common\models\ScreeningEntry;
use common\models\ScreeningResponse;
use common\models\Resource;
use common\components\Types;
class PdfComponent ex... | spiro-stathakis/projects | common/components/PdfComponent.php | PHP | bsd-3-clause | 10,305 |
/*
Copyright (c) 2011, The Mineserver Project
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... | fador/mineserver | src/random.cpp | C++ | bsd-3-clause | 2,862 |
import numpy as np
print '*******numpy array***********'
randArray = np.random.rand(4,4)
randMat = np.mat(randArray)
irandMat = randMat.I
a1=np.array(range(10,30,5))
a11=a1.reshape((2,2))
a111 = np.arange(12).reshape(3,4)
a2=np.linspace(0,2,10)
b=np.zeros((3,4))
c=np.ones((2,3,4),dtype='int16')
d=np.empty((2,3))
... | likeucode/PythonLearning | sciComputing/matrixComputing.py | Python | bsd-3-clause | 1,067 |
/* global Buffer, exports, require */
/* jshint -W097 */
'use strict';
exports['null'] = null;
exports.instantToString = function(i) {
return new Date(i).toUTCString();
};
exports.instantFromString = function(Left) {
return function(Right) {
return function(s) {
try {
return Right(Date.parse... | rightfold/purescript-postgresql-client | src/Database/PostgreSQL/Value.js | JavaScript | bsd-3-clause | 521 |
# coding: utf-8
"""
Utilities for dealing with text encodings
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2012 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part... | marcoantoniooliveira/labweb | oscar/lib/python2.7/site-packages/IPython/utils/encoding.py | Python | bsd-3-clause | 2,724 |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2014, Nicolas P. Rougier. All Rights Reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
import ... | duyuan11/glumpy | examples/gloo-trace.py | Python | bsd-3-clause | 1,814 |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD Lic... | usitnikov/testproject | module/Application/config/module.config.php | PHP | bsd-3-clause | 5,248 |
#!/usr/bin/env python
import os
import time
from threading import Timer
from pprint import pprint
from datetime import datetime
import gobject
import glob
import dbus
import dbus.service
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
gobject.threads_init() # Multithreaded python progr... | Benny-/android-accessory-protocol-bridge | Accessory/Payloads/testStub.py | Python | bsd-3-clause | 9,363 |
/*
* Copyright (c) 2012 University of Tartu
*/
package org.qsardb.model;
public enum ByteOrderMask {
UTF_8(new byte[]{(byte)0xEF, (byte)0xBB, (byte)0xBF}, "UTF-8"),
UTF_16LE(new byte[]{(byte)0xFF, (byte)0xFE}, "UTF-16LE"),
UTF_16BE(new byte[]{(byte)0xFE, (byte)0xFF}, "UTF-16BE"),
;
private byte[] bytes = null;... | qsardb/qsardb | model/src/main/java/org/qsardb/model/ByteOrderMask.java | Java | bsd-3-clause | 1,457 |
/**
* @file dtb.hpp
* @author Bill March (march@gatech.edu)
*
* DTBStat is the StatisticType used by trees when performing EMST.
*/
#ifndef __MLPACK_METHODS_EMST_DTB_STAT_HPP
#define __MLPACK_METHODS_EMST_DTB_STAT_HPP
#include <mlpack/core.hpp>
namespace mlpack {
namespace emst {
/**
* A statistic for use with... | stereomatchingkiss/mlpack | src/mlpack/methods/emst/dtb_stat.hpp | C++ | bsd-3-clause | 2,858 |
<?php
namespace LizardsAndPumpkins\Import;
use LizardsAndPumpkins\Messaging\Event\DomainEventHandler;
use LizardsAndPumpkins\Messaging\Queue\Message;
class CatalogImportWasTriggeredDomainEventHandler implements DomainEventHandler
{
/**
* @var CatalogImport
*/
private $catalogImport;
public... | lizards-and-pumpkins/catalog | src/Import/CatalogImportWasTriggeredDomainEventHandler.php | PHP | bsd-3-clause | 785 |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\models\FootballTeam */
$this->title = 'Create Football Team';
$this->params['breadcrumbs'][] = ['label' => 'Football Teams', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="football-team-create">
... | Unlife86/telecom-fc | backend/views/football-team/create.php | PHP | bsd-3-clause | 443 |
#!/usr/bin/env php
<?php
/**
* This file is the main script which should be run on the command line in order to perform database migrations.
* If you want to use this script like so: ./migrate.php -- you will need to give it executable permissions (chmod +x migrate.php) and ensure the top line of this script points ... | Billiam/MySQL-PHP-AutoMigrations | migrate.php | PHP | bsd-3-clause | 1,046 |
"""
Model definition for weakly supervised object localization with pytorch
=====================================================================
*Author*: Yu Zhang, Northwestern Polytechnical University
"""
import torch
import torch.nn as nn
import numpy as np
import os
# import shutil
import torchvision.models as mo... | zhangyuygss/WSL | model/model.py | Python | bsd-3-clause | 4,628 |
from django.conf import settings
from django.core.urlresolvers import get_mod_func
REGISTRY = {}
backends = getattr(settings, 'SMSGATEWAY_BACKENDS', ())
for entry in backends:
module_name, class_name = get_mod_func(entry)
backend_class = getattr(__import__(module_name, {}, {}, ['']), class_name)
instance... | peterayeni/django-smsgateway | smsgateway/backends/__init__.py | Python | bsd-3-clause | 444 |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
use common\models\User;
/**
* @todo Rename notifications user setting.
*
* User notifications settings form model.
*
* @author Gani Georgiev <gani.georgiev@gmail.com>
*/
class UserNotificationsForm extends Model
{
/**
* @var boolean
*/
p... | ganigeorgiev/presentator | app/models/UserNotificationsForm.php | PHP | bsd-3-clause | 2,021 |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\models\customer\ThemeRecord */
$this->title = 'Create Theme Record';
$this->params['breadcrumbs'][] = ['label' => 'Theme Records', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="theme-record-create">... | croxsanchez/yii2build | backend/views/themes/create.php | PHP | bsd-3-clause | 448 |
/*L
* Copyright Northwestern University.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.io/psc/LICENSE.txt for details.
*/
package edu.northwestern.bioinformatics.studycalendar.web;
import org.springframework.validation.BindingResult;
import org.springframework.validation.F... | NCIP/psc | web/src/test/java/edu/northwestern/bioinformatics/studycalendar/web/ControllerTestCase.java | Java | bsd-3-clause | 865 |