code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
from __future__ import absolute_import
# What follows is part of a hack to make control breaking work on windows even
# if scipy.stats ims imported. See:
# http://stackoverflow.com/questions/15457786/ctrl-c-crashes-python-after-importing-scipy-stats
import sys
import os
import imp
import ctypes
if sys.platform == 'wi... | gabobert/climin | climin/__init__.py | Python | bsd-3-clause | 899 |
class euler4 {
public static boolean isPal(int number) {
String num = number + "";
int numLen = num.length();
if(num.length() == 6) {
String half1 = num.substring(0, numLen/2);
String half2 = num.substring(numLen/2, numLen);
System.out.println(half1 + "\t" + half2);
}
return true;
}
public static... | ProgrammerKid/eulerJava | euler4.java | Java | bsd-3-clause | 579 |
#The DF of a tidal stream
import copy
import numpy
import multiprocessing
import scipy
from scipy import special, interpolate, integrate
if int(scipy.__version__.split('.')[1]) < 10: #pragma: no cover
from scipy.maxentropy import logsumexp
else:
from scipy.misc import logsumexp
from galpy.orbit import Orbit
fro... | followthesheep/galpy | galpy/df_src/streamdf.py | Python | bsd-3-clause | 117,381 |
package org.scalameta.data
import scala.language.experimental.macros
import scala.annotation.StaticAnnotation
import scala.reflect.macros.whitebox.Context
import scala.collection.mutable.ListBuffer
import org.scalameta.internal.MacroHelpers
// Virtually the same as the `case' modifier:
// can be used on both classes ... | Dveim/scalameta | scalameta/common/src/main/scala/org/scalameta/data/data.scala | Scala | bsd-3-clause | 14,726 |
/*
*
* Copyright 2015, 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 condi... | leifurhauks/grpc | test/core/security/credentials_test.c | C | bsd-3-clause | 49,923 |
package edu.ucdenver.ccp.datasource.fileparsers.ebi.interpro;
/*
* #%L
* Colorado Computational Pharmacology's common module
* %%
* Copyright (C) 2012 - 2015 Regents of the University of Colorado
* %%
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided tha... | UCDenver-ccp/datasource | datasource-fileparsers/src/main/java/edu/ucdenver/ccp/datasource/fileparsers/ebi/interpro/InterProExternalReferenceFactory.java | Java | bsd-3-clause | 4,794 |
/*
* Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>.
* Copyright (c) 1994 by Chris Provenzano, proven@mit.edu
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions o... | jhbsz/OSI-OS | Operating-System/Libraries/libthr/sys/thr_error.c | C | bsd-3-clause | 2,190 |
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.db import models
class Location(models.Model):
address = models.CharField(blank=True)
latitude = models.DecimalField(max_digits=10, decimal_places=6)
longitude = models.DecimalField(max_digits=10, decimal_... | derrickyoo/serve-tucson | serve_tucson/locations/models.py | Python | bsd-3-clause | 956 |
// 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.
#ifndef ASH_WM_LOCK_ACTION_HANDLER_LAYOUT_MANAGER_H_
#define ASH_WM_LOCK_ACTION_HANDLER_LAYOUT_MANAGER_H_
#include "ash/ash_export.h"
#include "ash/lock_... | nwjs/chromium.src | ash/wm/lock_action_handler_layout_manager.h | C | bsd-3-clause | 3,475 |
"""
Copyright (c) 2015 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
"""
from __future__ import print_function, unicode_literals, absolute_import
import json
import pytest
import requests
import requests.exception... | projectatomic/atomic-reactor | tests/conftest.py | Python | bsd-3-clause | 2,306 |
/* 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... | mattunderscorechampion/specky | code-generation/src/main/java/com/mattunderscore/specky/generator/AbstractTypeInitialiser.java | Java | bsd-3-clause | 2,704 |
package org.scalaide.core.internal.project.scopes
import scala.tools.nsc.Settings
import org.eclipse.core.resources.IContainer
import org.eclipse.core.resources.IFile
import org.eclipse.core.resources.IMarker
import org.eclipse.core.resources.IResource
import org.eclipse.core.runtime.IProgressMonitor
import org.eclips... | Kwestor/scala-ide | org.scala-ide.sdt.core/src/org/scalaide/core/internal/project/scopes/BuildScopeUnit.scala | Scala | bsd-3-clause | 4,660 |
--simple case: order by different data types:
--smallint, varchar(n), time , set
create table uoo(
col1 smallint,
col2 varchar(10),
col3 time,
col4 set
);
insert into uoo values
(1, 'fff', '10:30:42 am', {1,2,3}),
(4, 'ccc', '4:31:12', {5,2,1}),
(3, 'aaa', '20:12:41', {12,34,21}),
(5, 'ddd', '2:24:39 pm', {... | CUBRID/cubrid-testcases | sql/_17_sql_extension2/_02_full_test/_02_update_order_by/cases/update_order_by_002.sql | SQL | bsd-3-clause | 721 |
/* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#ifndef NATIVE_EXTENSION_VTK_VTKCENTEROFMASSWRAP_H
#define NATIVE_EXTENSION_VTK_VTKCENTEROFMASSWRAP_H
#include <nan.h>
#include <vtkSmartPointer.h>
#include <vtkCenterOfMass.h>
#include "vtkPointSetAlgorithmWrap.h"
#includ... | axkibe/node-vtk | wrappers/8.1.1/vtkCenterOfMassWrap.h | C | bsd-3-clause | 1,568 |
import shutil
import os
import jinja2
import string
import subprocess
import re
from xen.provisioning.HdManager import HdManager
from settings.settingsLoader import OXA_XEN_SERVER_KERNEL,OXA_XEN_SERVER_INITRD,OXA_DEBIAN_INTERFACES_FILE_LOCATION,OXA_DEBIAN_UDEV_FILE_LOCATION, OXA_DEBIAN_HOSTNAME_FILE_LOCATION, OXA_DEB... | avlach/univbris-ocf | vt_manager/src/python/agent/xen/provisioning/configurators/ofelia/OfeliaDebianVMConfigurator.py | Python | bsd-3-clause | 6,611 |
SirTrevor.Blocks.CmsBlock = SirTrevor.Blocks.Abstract.extend({
type: 'cms_block',
title: 'Cms Block',
header: '',
blockHtml: _.template([
'<div class="row">',
'<div class="col-md-12">',
SpreeCmsForm.getSelectTemplate('block_id', 'CMS Block', availableCmsBlocks),
'</div>',
'<input c... | praesensco/spree_cms | app/assets/javascripts/spree/backend/spree_cms/sir-trevor-js/custom-blocks/cms_block.js | JavaScript | bsd-3-clause | 426 |
<!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia at 2014-11-25
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name... | princeofdarkness76/trap | trap-network-nio1/dependencies.html | HTML | bsd-3-clause | 21,173 |
<html>
<body>
<script src="typeshave.min.js"/></script>
<script>
typeshave = require("typeshave");
typeshave.verbose = 1;
typesafe = require("typeshave").typesafe;
var foo = typesafe({
foo: { type: "string" },
bar: { type: "integer" },
bes: { type: "boolean" }
... | coderofsalvation/typeshave.js | dist/index.html | HTML | bsd-3-clause | 461 |
<?php
namespace Phass\Entity;
class Contact extends GlassModelAbstract
{
/**
* @var string
*/
protected $_kind;
/**
* @var string
*/
protected $_source;
/**
* @var string
*/
protected $_id;
/**
* @var string
*/
protected $_displayN... | coogle/phass | src/Phass/Entity/Contact.php | PHP | bsd-3-clause | 6,565 |
<?php
namespace lukisongroup\purchasing\controllers;
use Yii;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\data\ArrayDataProvider;
use yii\helpers\Json;
use yii\web\Response;
use yii\helpers\ArrayHelper;
use kartik\mpdf\Pdf;
use lukisongroup\purchasing\models\pr\Purc... | adem-team/advanced | lukisongroup/purchasing/controllers/0C_purchasing-update_ver 1.1.1/PurchaseOrderController.php | PHP | bsd-3-clause | 26,299 |
module Phidgets
# This class represents a PhidgetFrequencyCounter.
class FrequencyCounter
Klass = Phidgets::FFI::CPhidgetFrequencyCounter
include Phidgets::Common
# Collection of frequency counter inputs
# @return [FrequencyCounterInputs]
attr_reader :inputs
attr_reader :attributes
#... | kreynolds/phidgets-ffi | lib/phidgets-ffi/frequency_counter.rb | Ruby | bsd-3-clause | 5,068 |
{-# LANGUAGE OverloadedStrings #-}
module Futhark.Compiler
(
runPipelineOnProgram
, runCompilerOnProgram
, runPipelineOnSource
, interpretAction'
, FutharkConfig (..)
, newFutharkConfig
, dumpError
)
where
import Data.Monoid
import Control.Monad
import C... | mrakgr/futhark | src/Futhark/Compiler.hs | Haskell | bsd-3-clause | 4,305 |
<?php declare(strict_types=1);
/**
* This file is part of the PHP_CompatInfoDB package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Json;
use Bartlett\CompatInf... | llaville/php-compatinfo-db | tests/Reference/Extension/PhpBundle/Json/JsonExtensionTest.php | PHP | bsd-3-clause | 1,225 |
"""
This module implements atom/bond/structure-wise descriptor calculated from
pretrained megnet model
"""
import os
from typing import Dict, Union
import numpy as np
from tensorflow.keras.models import Model
from megnet.models import GraphModel, MEGNetModel
from megnet.utils.typing import StructureOrMolecule
DEFAU... | materialsvirtuallab/megnet | megnet/utils/descriptor.py | Python | bsd-3-clause | 6,396 |
<?xml version="1.0" encoding="UTF-8"?>
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<label>Prebuilt NPSP Report</label>
<protected>true</protected>
<values>
<field>Description_Label... | SalesforceFoundation/Cumulus | src/customMetadata/GetStartedChecklistItem.Prebuilt_NPSP_Report.md | Markdown | bsd-3-clause | 2,397 |
<?php
use yii\helpers\Html;
?>
<div class="clearfix">
<?php $i=0; foreach ($nodes as $node) : ?>
<?php if($i!=0 && $i%3 == 0): ?>
</div><div class="clearfix">
<?php endif; ?>
<div class="col-lg-4">
<div class="thumbnail">
<?= HTML::a(Yii::$app->imageCache->thumb($node->image, 'post'), [
... | nguyentuansieu/phutungoto | common/onecms/views/widget/front_product.php | PHP | bsd-3-clause | 719 |
/*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot 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 of source code must retain the above co... | grepmusic/redis_sorted_set_with_prefix_in_query_for_feed | src/redis.c | C | bsd-3-clause | 149,079 |
from traitlets import Unicode, Bool
from textwrap import dedent
from .. import utils
from . import NbGraderPreprocessor
class ClearSolutions(NbGraderPreprocessor):
code_stub = Unicode(
"# YOUR CODE HERE\nraise NotImplementedError()",
config=True,
help="The code snippet that will replace ... | EdwardJKim/nbgrader | nbgrader/preprocessors/clearsolutions.py | Python | bsd-3-clause | 5,142 |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
use kartik\widgets\Select2;
// Add upload
use yii\helpers\Url;
use kartik\widgets\TypeaheadBasic;
use kartik\widgets\FileInput;
use yii\helpers\VarDumper;
use frontend\modules\labstore\models\Labgroup;
/* @var $this yii\web\View */
... | jingjoe/hmis | frontend/modules/labstore/views/labstore/_form.php | PHP | bsd-3-clause | 3,159 |
# coding: utf-8
module Fig; end
class Fig::Command; end
# One of the main activities Fig should do as part of the current run.
#
# This exists because the code used to have complicated logic about whether a
# package.fig should be read, whether the Package object should be loaded,
# should a config be applied, when s... | klimkin/fig | lib/fig/command/action.rb | Ruby | bsd-3-clause | 2,794 |
// @flow
import React from "react"
import PeopleList from "./PeopleList"
import type { WidgetComponentProps } from "../../flow/widgetTypes"
const PeopleWidget = ({
widgetInstance: {
json: { people, show_all_members_link } // eslint-disable-line camelcase
}
}: WidgetComponentProps) => (
<PeopleList
prof... | mitodl/open-discussions | static/js/components/widgets/PeopleWidget.js | JavaScript | bsd-3-clause | 474 |
# Implementation of RAKE - Rapid Automtic Keyword Exraction algorithm
# as described in:
# Rose, S., D. Engel, N. Cramer, and W. Cowley (2010).
# Automatic keyword extraction from indi-vidual documents.
# In M. W. Berry and J. Kogan (Eds.), Text Mining: Applications and Theory.unknown: John Wiley and Sons, Ltd.
impo... | idf/tagr | rake_app/rake/rake.py | Python | bsd-3-clause | 6,809 |
from django.utils.datastructures import SortedDict
from bencode import bencode, bdecode
def sort_dict(D):
result = SortedDict()
for key in sorted(D.keys()):
if type(D[key]) is dict:
D[key] = sort_dict(D[key])
result[key] = D[key]
return result | abshkd/benzene | torrents/utils/__init__.py | Python | bsd-3-clause | 254 |
/*
* Copyright (c) 2014, 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 <fo... | haspatel/proxygen | proxygen/lib/http/codec/compress/test/HPACKContextTests.cpp | C++ | bsd-3-clause | 6,951 |
package LBJ2.nlp;
import LBJ2.parse.LineByLine;
/**
* This parser returns arrays of <code>String</code>s representing the rows
* of a file in column format. The input file is assumed to contain fields
* of non-whitespace characters separated by any amount of whitespace, one
* line of which is usually used t... | TeamCohen/MinorThird | src/main/java/LBJ2/nlp/ColumnFormat.java | Java | bsd-3-clause | 1,159 |
/*
* check_chitcpd.c
*
* Created on: Jan 11, 2014
* Author: borja
*/
#include <stdlib.h>
#include <check.h>
#include "chitcp/chitcpd.h"
#include "serverinfo.h"
#include "server.h"
START_TEST (test_chitcpd_startstop)
{
int rc;
serverinfo_t *si;
si = calloc(1, sizeof(serverinfo_t));
si->serv... | theseoafs/chitcp | tests/check_chitcpd.c | C | bsd-3-clause | 1,340 |
import klampt.math.autodiff.ad as ad
import torch,numpy as np
class TorchModuleFunction(ad.ADFunctionInterface):
"""Converts a PyTorch function to a Klamp't autodiff function class."""
def __init__(self,module):
self.module=module
self._eval_params=[]
torch.set_default_dtype(torch.float... | krishauser/Klampt | Python/klampt/math/autodiff/pytorch.py | Python | bsd-3-clause | 6,627 |
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>Date parser test — new Date('x') — 6</title>
<script src="../date_test.js"></script>
<p>Failed (Script did not run)</p>
<script>
test_date_invalid("6", "Invalid Date")
</script>
</html> | operasoftware/presto-testo | core/features/dateParsing/TestCases/individual/SlashSeparator/1044.html | HTML | bsd-3-clause | 258 |
# Copyright 2008-2010 Neil Martinsen-Burrell
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publ... | jobovy/mwdust | mwdust/util/fortranfile.py | Python | bsd-3-clause | 8,822 |
/*
Nuklear - v1.152 - public domain
no warrenty implied; use at your own risk.
authored from 2015-2016 by Micha Mettke
ABOUT:
This is a minimal state immediate mode graphical user interface single header
toolkit written in ANSI C and licensed under public domain.
It was designed as a simple embeddable u... | bsmr-java/lwjgl3 | modules/core/src/main/include/nuklear/nuklear.h | C | bsd-3-clause | 758,314 |
{-# LANGUAGE OverloadedStrings,GADTs,DeriveDataTypeable,DeriveFunctor,GeneralizedNewtypeDeriving,MultiParamTypeClasses,QuasiQuotes,TemplateHaskell,TypeFamilies,PackageImports,NamedFieldPuns,RecordWildCards,TypeSynonymInstances,FlexibleContexts #-}
module Main where
import Data.Crawler
import Data.C... | tkemps/bcbs-crawler | src/BcbsCrawler-old.hs | Haskell | bsd-3-clause | 13,475 |
.PHONY: clean-pyc clean-build docs clean
help:
@echo "clean - remove all build, test, coverage and Python artifacts"
@echo "clean-build - remove build artifacts"
@echo "clean-pyc - remove Python file artifacts"
@echo "clean-test - remove test and coverage artifacts"
@echo "lint - check style with flake8"
@echo "... | gautsi/poodletesttwo | Makefile | Makefile | bsd-3-clause | 1,720 |
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... | shuffle2/xenia | src/xenia/kernel/objects/xnotify_listener.cc | C++ | bsd-3-clause | 2,393 |
#pragma once
///----------------------------------------------------------------------------------------------------
/// World.h - Container for the Discrete Event Engine and Memory Allocator
///----------------------------------------------------------------------------------------------------
#include "Simulation_En... | Symcies/polaris | libs/core/World.h | C | bsd-3-clause | 9,658 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="ja">
<head>
<!-- Generated by javadoc (1.8.0_60) on Fri Jan 29 17:30:57 JST 2016 -->
<title>jp.ac.maslab.ando.aiwolf.client.player.base</title>
<meta name="date" content="28-01-29">
<link ... | NONONOexe/AndoAgent | doc/jp/ac/maslab/ando/aiwolf/client/player/base/package-frame.html | HTML | bsd-3-clause | 1,928 |
package org.broadinstitute.dsde.workbench.sam.config
import org.broadinstitute.dsde.workbench.google.{KeyId, KeyRingId, Location}
import org.broadinstitute.dsde.workbench.model.google.GoogleProject
import scala.concurrent.duration.FiniteDuration
/**
* created by mtalbott 1/25/18
*
* @param project google proje... | broadinstitute/sam | src/main/scala/org/broadinstitute/dsde/workbench/sam/config/KmsConfig.scala | Scala | bsd-3-clause | 822 |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\PembayaranPinjaman */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="pembayaran-pinjaman-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'kode_trans')->textInput(['m... | mslx28/sikui | views/pembayaran-pinjaman/_form.php | PHP | bsd-3-clause | 875 |
var fs = require('fs');
var path = require('path');
var sourceFile = '/proc/diskstats',
collectionGroup = '/proc/diskstats',
lastValueFile = __filename + '.lastvalue',
deviceNameRegexp = /^(?:(?:h|s)d[a-z]{1,3}|dm\-\d+)$/;
var lvmList,
dmPath = '/dev/mapper';
var lookupLVMName = function (name) {
... | a-c-t-i-n-i-u-m/hydrangea | dataModules/proc_diskstats.js | JavaScript | bsd-3-clause | 5,747 |
<?php
namespace backend\controllers;
class ProductController extends SiteController
{
public function actionCreate()
{
return $this->render('create');
}
} | acer4552/dlshili | backend/controllers/ProductController.php | PHP | bsd-3-clause | 184 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>gem5: MipsISA::ThreadFault Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">... | wnoc-drexel/gem5-stable | src/doxygen/html/classMipsISA_1_1ThreadFault.html | HTML | bsd-3-clause | 3,243 |
/*
Copyright (c) 2000, Sean O'Neil (s_p_oneil@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 of source code must retain the above copyright notice,
this list o... | logzero/sandbox | src/Planet/PlanetaryMapNode.cpp | C++ | bsd-3-clause | 25,444 |
// 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 <stddef.h>
#include "base/files/file_enumerator.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/values.h"
... | endlessm/chromium-browser | chrome/browser/extensions/extension_garbage_collector_unittest.cc | C++ | bsd-3-clause | 6,823 |
package com.jsonde.gui.reports.custom;
import javax.swing.*;
public interface ReportGenerator {
JComponent generateReport();
}
| bedrin/jsonde | jsonde.gui/src/main/java/com/jsonde/gui/reports/custom/ReportGenerator.java | Java | bsd-3-clause | 135 |
// Copyright © 2010 onwards, Andrew Whewell
// All rights reserved.
//
// Redistribution and use of this software 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, th... | wiseman/virtual-radar-server | Test/Test.VirtualRadar.Library/Presenter/SplashPresenterTests.cs | C# | bsd-3-clause | 51,096 |
<div class="row register">
<div class="col-lg-6 col-lg-offset-3 col-sm-6 col-sm-offset-3 col-xs-12 ">
<?
$form = \yii\bootstrap\ActiveForm::begin([
'enableClientValidation' => false,
'enableAjaxValidation' => true,
]);
?>
<?
echo $form->field(... | Ilya91/yii | frontend/modules/main/views/main/register.php | PHP | bsd-3-clause | 783 |
function (doc) {
function get_date(doc){
switch (doc.doc_type){
case "CommCareCase":
case "CommCareCase-Deleted":
return doc.opened_on;
case "XFormInstance":
case "XFormInstance-Deleted":
case "XFormError":
case "XFormD... | qedsoftware/commcare-hq | corehq/couchapps/by_domain_doc_type_date/views/view/map.js | JavaScript | bsd-3-clause | 1,119 |
/*
* Copyright (c) 2009 University of Durham, England 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 con... | synergynet/synergynet2.5 | synergynet2.5/src/main/java/synergynetframework/appsystem/services/net/networkedcontentmanager/messages/SwapTable.java | Java | bsd-3-clause | 2,725 |
/*
Copyright (c) 2009-2015, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
namespace El {
namespace syrk {
template<typename T>
... | mcopik/Elemental | src/blas_like/level3/Syrk/LT.hpp | C++ | bsd-3-clause | 1,685 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Main where
import System.Remote.Monitoring
import Web.Auth.OAuth2
import Web.Auth.Service
import Web.Orion
import Web.Scotty.Trans
import Web.Temp... | schell/orion | src/Main.hs | Haskell | bsd-3-clause | 4,457 |
#ifndef CMALLOC_CMALLOC_H
#define CMALLOC_CMALLOC_H
#include <unistd.h>
void *cmalloc_aligned_alloc(size_t alignment, size_t size);
void *cmalloc_calloc(size_t nmemb, size_t size);
void cmalloc_free(void *ptr);
void *cmalloc_malloc(size_t size);
void *cmalloc_realloc(void *ptr, size_t size);
void *cmalloc_memalign(s... | maokelong/cmalloc | sources/includes/cmalloc.h | C | bsd-3-clause | 1,048 |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/bind.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/test/simple_test_tick_clock.h"
#include "me... | anirudhSK/chromium | media/cast/video_receiver/video_receiver_unittest.cc | C++ | bsd-3-clause | 6,897 |
<?php
#AUTOGENERATED BY HYBRIDAUTH 2.2.2 INSTALLER - Friday 1st of August 2014 12:35:35 AM
/**
* HybridAuth
* http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth
* (c) 2009-2014, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html
*/
// ------------------------------------... | tineo/zendtest | config/autoload/hybridauth.global.php | PHP | bsd-3-clause | 788 |
import pathlib
from typing import Optional
from cumulusci.core.exceptions import TaskOptionsError
from cumulusci.core.utils import process_bool_arg, process_list_arg
from cumulusci.salesforce_api.metadata import ApiDeploy
from cumulusci.salesforce_api.package_zip import MetadataPackageZipBuilder
from cumulusci.tasks.s... | SalesforceFoundation/CumulusCI | cumulusci/tasks/salesforce/Deploy.py | Python | bsd-3-clause | 5,848 |
var searchData=
[
['full_5fscreen',['FULL_SCREEN',['../namespace_comet_engine_1_1_client.html#a608d2e459fd95babca189e50f4182a65ae1a502139199d41bcd8f603a6d579b70',1,'CometEngine::Client']]],
['fullscreen',['FULLSCREEN',['../namespace_comet_engine.html#abdc5ec13bf1dfb1d26eb0bcc9da0ddada5f039f23ee85ddea038ca1ab88ca675... | DevSDK/CometEngine | docs/html/search/enumvalues_1.js | JavaScript | bsd-3-clause | 345 |
require 'rubygems'
require 'bud'
#simple wrapper class for easier clock/msg access
class LamportMsg
attr_accessor :clock
attr_accessor :msg
def initialize(clock, msg)
@clock = clock
@msg = msg
end
def to_s
[@clock, @msg].inspect
end
def ==(another_msg)
self.clock == another_msg.clock &... | bloom-lang/bud-sandbox | ordering/lamport.rb | Ruby | bsd-3-clause | 1,844 |
<?php
namespace PlaygroundSocial\Cron\Service;
use Zend\ServiceManager\ServiceManagerAwareInterface;
use Zend\ServiceManager\ServiceManager;
use ZfcBase\EventManager\EventProvider;
use PlaygroundSocial\Cron\Cron as CronController;
use DateTime;
use Zend\Http\Client;
use Zend\Http\Request;
use Zend\Http\Client\Adapter... | AdFabConnect/PlaygroundSocial | src/PlaygroundSocial/Cron/Service/Instagram.php | PHP | bsd-3-clause | 7,474 |
/* ----------------------------------------------------------------- */
/* The Japanese TTS System "Open JTalk" */
/* developed by HTS Working Group */
/* http://open-jtalk.sourceforge.net/ */
/* -----------------------------... | STRatANG/MMDAgentExperimentEnvironment | Library_Open_JTalk/src/njd2jpcommon/njd2jpcommon.c | C | bsd-3-clause | 6,090 |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
/**
* LoginForm is the model behind the login form.
*/
class LoginForm extends Model
{
public $email;
public $password;
public $rememberMe = true;
private $_user = false;
/**
* @return array the validation rules.
*/
publi... | joalarm/backend_appmovil | models/LoginForm.php | PHP | bsd-3-clause | 1,912 |
# Copyright the Karmabot authors and contributors.
# All rights reserved. See AUTHORS.
#
# This file is part of 'karmabot' and is distributed under the BSD license.
# See LICENSE for more details.
from karmabot.core.facets import Facet
from karmabot.core.commands import CommandSet, thing
import random
predictions = ... | chromakode/karmabot | karmabot/extensions/eightball.py | Python | bsd-3-clause | 1,155 |
<?php
use yii\helpers\Html;
use yii\helpers\Url;
use kartik\widgets\ActiveForm;
use kartik\switchinput\SwitchInput;
use kartik\widgets\DatePicker;
use kartik\select2\Select2;
use yii\helpers\ArrayHelper;
use kartik\widgets\FileInput;
?>
<?php $form = kartik\widgets\ActiveForm::begin([
'id' => 'form-horizontal',
... | bokko79/servicemapp | backend/views/languages/_form.php | PHP | bsd-3-clause | 986 |
/** @file
*
* @ingroup dspSpatLib
*
* @brief Host a SpatLib object
*
* @details
*
* @authors Trond Lossius, Nils Peters, Timothy Place
*
* @copyright Copyright © 2011 by Trond Lossius, Nils Peters, and Timothy Place @n
* This code is licensed under the terms of the "New BSD License" @n
* http://creativecomm... | RWelsh/JamomaDSP | extensions/SpatLib/TTSpat.cpp | C++ | bsd-3-clause | 5,518 |
//
// ActiveStarter.h
//
// $Id$
//
// Library: Foundation
// Package: Threading
// Module: ActiveObjects
//
// Definition of the ActiveStarter class.
//
// Copyright (c) 2006-2007, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permission is hereby granted, free of charge, to any person or ... | nocnokneo/MITK | Utilities/Poco/Foundation/include/Poco/ActiveStarter.h | C | bsd-3-clause | 2,288 |
/**********************************************************
Date: OCT 28th, 2006
Project : NET4900 Project: tftpd.c TFTP Server
Programers:
Craig Holmes
Reza Rahmanian
File: TFTP Server (main)
Purpose: A TFTP server that will accept a connections from
a client and transefet files.
Notes: Here we are using th... | PP90/ANAWS-project-on-Traffic-Engineering | Old_project/tftp-1.0/tftpd.c | C | bsd-3-clause | 25,542 |
/*-
* Copyright (C) 2012-2013 Intel Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list... | dcui/FreeBSD-9.3_kernel | sys/dev/nvme/nvme_test.c | C | bsd-3-clause | 7,360 |
#! /usr/bin/env python
"""
# control_get_firmware.py: get firmware version of Gemalto readers
# Copyright (C) 2009-2012 Ludovic Rousseau
"""
# 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 Foun... | vicamo/pcsc-lite-android | UnitaryTests/control_get_firmware.py | Python | bsd-3-clause | 1,904 |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\Holidays */
$this->title = Yii::t('app', 'Update {modelClass}: ', [
'modelClass' => '',
]) . ' ' . $model->name_holiday;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Holidays'), 'url' => ['index']];
$this->param... | polumerk/sr-test | backend/views/holidays/update.php | PHP | bsd-3-clause | 633 |
#pragma once
#include "chockNgt.h"
#include "Audio.h"
class Cafe
{
public:
Cafe();
~Cafe();
void ToBeginning(void);
int Draw(float time);
void UpdateTime(float time) { last_call_time_ = time; }
void StartScene(int nothing) {
nothing = nothing;
has_white_fade_ = false;
... | chock-mostlyharmless/mostlyharmless | hot_particle_japan/executable/chockNgt/Cafe.h | C | bsd-3-clause | 1,268 |
package net.fortuna.ical4j.validate;
import java.util.ServiceLoader;
/**
* Created by fortuna on 13/09/15.
*/
public abstract class AbstractCalendarValidatorFactory {
private static CalendarValidatorFactory instance;
static {
instance = ServiceLoader.load(CalendarValidatorFactory.class, DefaultCale... | ariordan/ical4j | src/main/java/net/fortuna/ical4j/validate/AbstractCalendarValidatorFactory.java | Java | bsd-3-clause | 483 |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model app\models\EmailAddress */
$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Email Addresses', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="email-address-v... | elminero/contact_v3 | views/email-address/view.php | PHP | bsd-3-clause | 1,145 |
/*
* H.26L/H.264/AVC/JVT/14496-10/... decoder
* Copyright (c) 2003 Michael Niedermayer <michaelni@gmx.at>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundati... | mxOBS/deb-pkg_trusty_chromium-browser | third_party/ffmpeg/libavcodec/h264_slice.c | C | bsd-3-clause | 99,699 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-31 14:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0010_auto_20170530_1509'),
]
operations = [
migrations.AddField(
... | GeorgiaTechDHLab/TOME | news/migrations/0011_auto_20170531_1426.py | Python | bsd-3-clause | 658 |
require 'baf/cli'
require 'forwardable'
require 'logger'
require 'optparse'
require 'rbconfig'
require 'uh'
require 'uh/wm/env_logging'
require 'uh/wm/actions_handler'
require 'uh/wm/cli'
require 'uh/wm/client'
require 'uh/wm/dispatcher'
require 'uh/wm/env'
require 'uh/wm/launcher'
require 'uh/wm/logger_formatter'
re... | tjouan/uh-wm | lib/uh/wm.rb | Ruby | bsd-3-clause | 1,094 |
package expo.modules.medialibrary;
import android.content.Context;
import android.os.AsyncTask;
import android.provider.MediaStore;
import android.text.TextUtils;
import org.unimodules.core.Promise;
import static expo.modules.medialibrary.MediaLibraryUtils.deleteAssets;
class DeleteAssets extends AsyncTask<Void, Vo... | exponent/exponent | packages/expo-media-library/android/src/main/java/expo/modules/medialibrary/DeleteAssets.java | Java | bsd-3-clause | 885 |
## 作用
用gulp实现webpac的部分功能,gulp的底层、webpack的方便易用两不误
* 通过配置gbuilder.config.js文件实现任务的编译、执行
##GITHUB源码地址:
https://github.com/happyhour7/gbuilder.git
##基本说明:
gbuilder最简单的地方在于:如果有人配置好了环境后,自己只需要安装gbuilder、配置好的gbuilder.config.js以及执行npm install即可。就算没有配置好,也不需要自己写gulp.task,gulp.watch之类的大量重复代码,也不用手动require各种gulp... | happyhour7/gbuilder | README.md | Markdown | bsd-3-clause | 3,344 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Orchard.UI.Navigation;
using Orchard.Localization;
using Zveen.MultiMenu.Services;
using System.Diagnostics;
namespace Zveen.MultiMenu
{
public class AdminMenu : INavigationProvider
{
private readonly IMultiMenuServic... | dminik/voda | Modules/Zveen.MultiMenu/AdminMenu.cs | C# | bsd-3-clause | 1,218 |
<?php
/**
* Garp_Model_Validator_Email
* Check if a value looks like a valid email address
* @author Harmen Janssen | grrr.nl
* @modifiedby $LastChangedBy: $
* @version $Revision: $
* @package Garp
* @subpackage Validator
* @lastmodified $Date: $
*/
class Garp_Model_Validator_Email extends Garp_Model_Validator... | grrr-amsterdam/golem | garp/library/Garp/Model/Validator/Email.php | PHP | bsd-3-clause | 1,775 |
<?php
namespace suralc\yii2\PureWidgets;
class PureAssetConfig
{
const PURE_VERSION_DEFAULT = '0.4.2';
const CDN_NONE = false;
const CDN_DEFAULT = self::CDN_NONE;
const CDN_YAHOO = '//yui.yahooapis.com/pure/{version}/pure{min}.css';
const CDN_CDNJS = '//cdnjs.cloudflare.com/ajax/libs/pure/{version... | suralc/Yii2PureWidgets | src/PureAssetConfig.php | PHP | bsd-3-clause | 907 |
import sys
from . import (
utils, env, defs, context, layers, parser, preprocessor, loader, analyzer,
generator)
LAYERS = (
(parser.Parser, "parse"),
(preprocessor.Preprocessor, "transform_ast"),
(loader.Loader, "expand_ast"),
(analyzer.Analyzer, "expand_ast"),
(generator.Generator, "expa... | adrian-lang/margolith | solyanka/solyanka/__init__.py | Python | bsd-3-clause | 1,936 |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | monzee/zf-1.x | library/Zend/Acl.php | PHP | bsd-3-clause | 47,316 |
TOOLCHAIN_PREFIX=prizm-
CC=$(TOOLCHAIN_PREFIX)gcc
AS=$(TOOLCHAIN_PREFIX)as
AR=$(TOOLCHAIN_PREFIX)ar
CFLAGS=-c -ffunction-sections -fdata-sections -Os -Lr -I../include -flto -std=c99 -Wall -Wextra
ARFLAGS=rs
VPATH=syscalls
SHSOURCES=$(wildcard syscalls/*.S) $(wildcard misc/*.S)
CSOURCES=$(wildcard misc/*.c)
#CXXSOURCES=... | Forty-Bot/libfxcg | libfxcg/Makefile | Makefile | bsd-3-clause | 658 |
class CreateAuthenticationMethods < ActiveRecord::Migration
def change
create_table :spree_authentication_methods do |t|
t.string :environment
t.string :provider
t.string :api_key
t.string :api_secret
t.boolean :active
t.timestamps
end
end
end
| Johann-dotgee/spree_social | db/migrate/20120123163222_create_authentication_methods.rb | Ruby | bsd-3-clause | 306 |
{{+bindTo:partials.standard_nacl_article}}
<h1>Interfaces</h1>
<div id="doxygen-ref">
{{- dummy div to appease doxygen -}}
<div>
<!-- Generated by Doxygen 1.7.6.1 -->
</div>
<!--header-->
<div class="contents">
<h2>
Data Structures</h2><table class="memberdecls">
<tr><td class="memItemLeft" align="right" valign="to... | ChromiumWebApps/chromium | native_client_sdk/doc_generated/pepper_dev/c/group___interfaces.html | HTML | bsd-3-clause | 57,875 |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated by scripts/bump-oss-version.js
*/
#pragma once
#include <cstdint>
#include <string_view>
namespace ABI42_0_0facebo... | exponentjs/exponent | ios/versioned-react-native/ABI42_0_0/ReactNative/ReactCommon/cxxreact/ABI42_0_0ReactNativeVersion.h | C | bsd-3-clause | 533 |
var DataSelector = require("logic/model/data-selector").DataSelector;
/**
* Backward compatibility support for logic/service/data-selector after that
* class has been moved to logic/model/data-selector.
*
* @class
* @extends external:Montage
* @todo Deprecate.
*/
exports.DataSelector = DataSelector.specialize()... | montagestudio/montage-data | logic/service/data-selector.js | JavaScript | bsd-3-clause | 322 |
<?php
use yii\db\Migration;
/**
* Handles the creation of table `activity_category`.
*/
class m170220_094103_create_activity_category_table extends Migration
{
/**
* @inheritdoc
*/
public function up()
{
$this->createTable('activity_category', [
'id' => $this->primaryKey(),... | StefNijenhuis/yii-test | console/migrations/m170220_094103_create_activity_category_table.php | PHP | bsd-3-clause | 579 |
<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\DetailView;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\Cancion */
$artista = $model->idCancion->idAlbum->idArtista;
?>
<div class="cancion-view">
<div class="col-sm-6 col-md-4">
<div class="thumbnail... | joludelgar/bestlyrics | views/letras/profile.php | PHP | bsd-3-clause | 824 |
require 'spec_helper'
describe Chatter do
before do
@chatter = Factory(:chatter)
end
context 'validations' do
it 'uniqueness of phone' do
attr = Factory.attributes_for(:chatter)
Chatter.create!(attr)
@invalid_chatter = Chatter.create(attr)
@invalid_chatter.should_not be_valid
... | danmelton/chatreach | spec/models/chatter_spec.rb | Ruby | bsd-3-clause | 537 |
# -*- coding: utf-8 -*-
from bda.plone.discount import UUID_PLONE_ROOT
from bda.plone.discount.tests import Discount_INTEGRATION_TESTING
from bda.plone.discount.tests import set_browserlayer
from plone.uuid.interfaces import IUUID
import unittest2 as unittest
class TestDiscount(unittest.TestCase):
layer = Discou... | TheVirtualLtd/bda.plone.discount | src/bda/plone/discount/tests/test_discount.py | Python | bsd-3-clause | 592 |
<!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 http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | bretthall/Wyatt-STM | doc/ref/html/class_w_s_t_m_1_1_w_channel.html | HTML | bsd-3-clause | 30,830 |
class CreateSpreeCmsLayouts < ActiveRecord::Migration
def change
create_table :spree_cms_layouts do |t|
t.string :name
t.text :template
t.timestamps null: false
end
end
end
| hoangnghiem/spree_tutu_cms | db/migrate/20150918023316_create_spree_cms_layouts.rb | Ruby | bsd-3-clause | 204 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.