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 |
|---|---|---|---|---|---|
'''
YARN Cluster Metrics
--------------------
yarn.metrics.appsSubmitted The number of submitted apps
yarn.metrics.appsCompleted The number of completed apps
yarn.metrics.appsPending The number of pending apps
yarn.metrics.appsRunning The number of running apps
yarn.metrics.apps... | StackVista/sts-agent-integrations-core | yarn/check.py | Python | bsd-3-clause | 20,533 |
def extractRoontalesCom(item):
'''
Parser for 'roontales.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 'translated'),
('Loiterous', 'Loiterous',... | fake-name/ReadableWebProxy | WebMirror/management/rss_parser_funcs/feed_parse_extractRoontalesCom.py | Python | bsd-3-clause | 539 |
typedef unsigned char color;
typedef struct
{
color Blue;
color Green;
color Red;
} BGR;
typedef struct
{
BGR content[16][16];
} color_block;
typedef struct
{
short content[8][8];
} color_converted_block;
color_block color_block_to_be_converted;
/*
RGB to YCbCr Conversion:
*/
// Y = 0.299*R + 0.587*G + 0.1... | mikulcak/forsyde_psopc | examples/jpeg_encoder_four_processors/sweet/color_conversion/color_conversion.c | C | bsd-3-clause | 2,697 |
/*
* Copyright (c) 2016, SRCH2
* 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 ... | SRCH2/srch2-ngn | src/core/operation/physical_plan/UnionLowestLevelSuggestionOperator.h | C | bsd-3-clause | 6,526 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>alt property - ImageElement class - polymer_app_layout.behaviors library - Dart API</title>
<!-- required b... | lejard-h/polymer_app_layout_templates | doc/api/polymer_app_layout.behaviors/ImageElement/alt.html | HTML | bsd-3-clause | 11,319 |
<h1>your create page</h1>
| jonschwadron/secret-message | views/create.html | HTML | bsd-3-clause | 26 |
<?php
/**
* Created by PhpStorm.
* User: Admin
* Date: 07.11.13
* Time: 16:48
*/
namespace Project\Form;
use Zend\Form\Form;
use Zend\InputFilter\Factory as InputFactory;
use Zend\InputFilter\InputFilter;
class ProjectForm extends Form
{
public function __construct($name = null)
{
... | mufanu/zf2 | module/Project/src/Project/Form/ProjectForm.php | PHP | bsd-3-clause | 1,659 |
class InventoryUnit < ActiveRecord::Base
belongs_to :variant
belongs_to :order
belongs_to :shipment
belongs_to :return_authorization
named_scope :retrieve_on_hand, lambda {|variant, quantity| {:conditions => ["state = 'on_hand' AND variant_id = ?", variant], :limit => quantity}}
# state machine (see http:... | vivekamn/spree | vendor/extensions/masti/app/models/inventory_unit.rb | Ruby | bsd-3-clause | 12,372 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveFunctor #-}
module Data.Queue (
Queue
, empty, singleton, fromList
, toList, enqueue, dequeue, enqueueAll
) where
import Control.DeepSeq (NFData)
import GHC.Generics (Generic)
data Queue a = Q [a] [a]
deriving (Show, Eq, Functor,... | stefan-hoeck/labeled-graph | Data/Queue.hs | Haskell | bsd-3-clause | 898 |
// *****************************************************************************
//
// © Component Factory Pty Ltd 2012. All rights reserved.
// The software and associated documentation supplied hereunder are the
// proprietary information of Component Factory Pty Ltd, 17/267 Nepean Hwy,
// Seaford, Vic 3198, A... | Cocotteseb/Krypton | Source/Krypton Components/ComponentFactory.Krypton.Design/Toolkit/KryptonContextMenuItemCollectionEditor.cs | C# | bsd-3-clause | 1,548 |
// NOTE(jim):
// GETTING NESTED SCROLL RIGHT IS DELICATE BUSINESS. THEREFORE THIS COMPONENT
// IS THE ONLY PLACE WHERE SCROLL CODE SHOULD BE HANDLED. THANKS.
import { Global, css } from '@emotion/core';
import { theme } from '@expo/styleguide';
import * as React from 'react';
import * as Constants from '~/constants/th... | exponent/exponent | docs/components/DocumentationNestedScrollLayout.tsx | TypeScript | bsd-3-clause | 6,797 |
# See e.g. http://stackoverflow.com/a/14076841/931303
try:
import pymysql
pymysql.install_as_MySQLdb()
except ImportError:
pass
| jorgecarleitao/public-contracts | main/__init__.py | Python | bsd-3-clause | 140 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HiddenInputElement class - polymer_app_layout.behaviors library - Dart API</title>
<!-- required because al... | lejard-h/polymer_app_layout_templates | doc/api/polymer_app_layout.behaviors/HiddenInputElement-class.html | HTML | bsd-3-clause | 157,313 |
// RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the ... | HVA-FRC-3824/betaBot2016 | src/org/usfirst/frc3824/BetaBot/commands/JiggleBoulder.java | Java | bsd-3-clause | 3,162 |
/*
* Copyright (c) 2021, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... | openthread/ot-efr32 | src/src/platform-efr32.h | C | bsd-3-clause | 4,469 |
def hanoi(n, source, helper, target):
if n > 0:
# move tower of size n - 1 to helper
hanoi(n - 1, source, target, helper)
# move disk from source peg to target peg
if source:
target.append(source.pop())
# move tower of size n-1 from helper to target
hanoi(... | talapus/Ophidian | Games/Hanoi/hanoi_prototype4.py | Python | bsd-3-clause | 486 |
#ligght
###The simple PHP router
ligght is a PHP micro router that helps you to easily route your _HTTP Requests_.
ligght is the easiest and fastest way to create an API.
##Features
* Standard HTTP Methods
* GET
* POST
* PUT
* DELETE
* PATCH
* OPTIONS
* HEAD
* DEBUG
* Custom HTTP Methods using `\ligght\Inte... | liamato/ligght | Readme.md | Markdown | bsd-3-clause | 1,155 |
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* 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... | zzuegg/jmonkeyengine | jme3-core/src/main/java/com/jme3/shader/Glsl300ShaderGenerator.java | Java | bsd-3-clause | 2,477 |
<?php
namespace Laminas\Http\PhpEnvironment;
use function array_diff;
use function array_map;
use function array_pop;
use function explode;
use function in_array;
use function str_replace;
use function strpos;
use function strtoupper;
/**
* Functionality for determining client IP address.
*/
class RemoteAddress
{
... | deforay/odkdash | vendor/laminas/laminas-http/src/PhpEnvironment/RemoteAddress.php | PHP | bsd-3-clause | 4,437 |
/********************************************************************
* LGT tracker - The official C++ implementation of the LGT tracker
* Copyright (C) 2013 Luka Cehovin
*
* 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
* th... | tracedev/legit | src/trackers/lgt/lgt.cpp | C++ | bsd-3-clause | 23,995 |
<?php declare(strict_types=1);
namespace PhpParser\Comment;
class Doc extends \PhpParser\Comment
{
} | cwi-swat/PHP-Parser | lib/PhpParser/Comment/Doc.php | PHP | bsd-3-clause | 102 |
subroutine SHRead(filename, cilm, lmax, skip, header, error, exitstatus)
!------------------------------------------------------------------------------
!
! This subroutine will open an ascii file, and read in all of the
! spherical harmonic coefficients. If the option "header"
! is specified, then the first Leng... | ioshchepkov/SHTOOLS | src/SHRead.f95 | FORTRAN | bsd-3-clause | 6,506 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" conte... | statsmodels/statsmodels.github.io | v0.12.2/generated/statsmodels.tsa.statespace.kalman_smoother.KalmanSmoother.smooth_methods.html | HTML | bsd-3-clause | 18,165 |
/* Copyright (c) 2014, Sebastian Eriksson
* 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 c... | sebis/Raytracer | raytracer2/Raytracer2/MeshImporter.h | C | bsd-3-clause | 3,625 |
/*
* 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/MetadataFilter/src/MetadataFilter.cpp | C++ | bsd-3-clause | 5,222 |
shared_examples_for 'stats query' do
it 'does not use stats unless requested' do
search
expect(connection).not_to have_last_search_with(:stats)
end
it 'uses stats when requested' do
search do
stats :average_rating
end
expect(connection).to have_last_search_with(:stats => true)
end
... | hafeild/alice | vendor/bundle/ruby/2.3.0/gems/sunspot-2.3.0/spec/api/query/stats_examples.rb | Ruby | bsd-3-clause | 1,771 |
<?php
/**
* Created by PhpStorm.
* User: Rem
* Date: 18.09.2016
* Time: 19:15
*
* @var components\View $this
*/
$flashes = Yii::$app->session->allFlashes;
?>
<?php if (!empty($flashes)) : ?>
<div class="row">
<div class="col-lg-5">
<?php foreach ($flashes as $key => $messages) : ?>
... | remk-wadriga/ira-site | themes/main/layouts/partials/flash-message.php | PHP | bsd-3-clause | 1,746 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE CPP #-}
#if __GLASGOW_HASKELL__ >= 800
{-# OPTIONS_GHC -fno-warn... | cdornan/idiot | Text/RE/PCRE/ByteString.hs | Haskell | bsd-3-clause | 2,516 |
<?php
namespace Album\Model;
use Zend\Db\ResultSet\ResultSet;
use Zend\Db\Sql\Select;
use Zend\Db\TableGateway\TableGateway;
class AlbumTable
{
protected $tableGateway;
public function __construct(TableGateway $tableGateway)
{
$this->tableGateway = $tableGateway;
}
public function fetchAll()
{
$resultSet... | asgrim/zf2-test-modules | module/Album/src/Album/Model/AlbumTable.php | PHP | bsd-3-clause | 1,741 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script type="text/javascript">
function show(elementName)
{
hp = document.getElementById(elementName);
hp.style.visibility = "Visible";
}
function hide(elementName)
{
hp = document.getElementById(elementName);
hp.s... | ToonTalk/mopix2 | MoPiX/extras/Model/soycReport/compile-report/initial-6-overallBreakdown.html | HTML | bsd-3-clause | 2,472 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_07) on Thu May 19 10:19:18 CEST 2011 -->
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>
obvious.demo.sandbox... | jdfekete/obvious | obvious-example/target/site/apidocs/obvious/demo/sandbox/package-frame.html | HTML | bsd-3-clause | 1,580 |
/* COPYRIGHT (C) 2012-2013 Alexander Taran. All Rights Reserved. */
/* Use of this source code is governed by a BSD-style license that can be found in the LICENSE file */
package alex.taran.opengl.mesh;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.... | AlexTaran/picworld | AndroidOpenGL/src/alex/taran/opengl/mesh/Mesh.java | Java | bsd-3-clause | 2,469 |
import itertools
import numpy as np
import pandas as pd
import pytest
from numpy.testing import assert_allclose
from pvlib import atmosphere
from pvlib import solarposition
latitude, longitude, tz, altitude = 32.2, -111, 'US/Arizona', 700
times = pd.date_range(start='20140626', end='20140626', freq='6h', tz=tz)
e... | uvchik/pvlib-python | pvlib/test/test_atmosphere.py | Python | bsd-3-clause | 5,239 |
from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required
from django.shortcuts import get_object_or_404
from django.template.response import TemplateResponse
from django.utils.decorators import method_decorator
from ..core.app import SatchlessApp
from . import models
class ... | fusionbox/satchless | satchless/order/app.py | Python | bsd-3-clause | 2,122 |
#ifndef DOUBANGO_CONFIG_H
#define DOUBANGO_CONFIG_H
#define DOUBANGO_IS_ALIGNED(p, a) (!((uintptr_t)(p) & ((a) - 1)))
#define DOUBANGO_ASM_INLINE 1
#define DOUBANGO_INTRINSIC 1
#endif /* DOUBANGO_CONFIG_H */ | DoubangoTelecom/libvpx_fast | source/config/win/ia32/doubango_config.h | C | bsd-3-clause | 211 |
CPUFriend Installation & Usage
===================================
## WARNING
**CPUFriend is most likely _NOT_ required when not sure whether or not to use it.**
In most cases the native CPU power management data from `ACPI_SMC_PlatformPlugin` or `X86PlatformPlugin` work out of the box. Do NOT use CPUFriend for data ... | PMheart/CPUFriend | Instructions.md | Markdown | bsd-3-clause | 3,756 |
module SlaeGauss where
import Data.Bifunctor
import qualified Data.Matrix as Mx
import qualified Data.Vector as Vec
import Library
compute :: Matrix -> Either ComputeError Vector
compute = fmap backtrackPermuted . triangulate
where
backtrackPermuted (mx, permutations) =
Ve... | hrsrashid/nummet | lib/SlaeGauss.hs | Haskell | bsd-3-clause | 2,689 |
// *****************************************************************************
//
// Copyright (c) 2014, Southwest Research Institute® (SwRI®)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:... | malban/marti_common | image_util/src/nodes/scale_image.cpp | C++ | bsd-3-clause | 2,167 |
"""Utility functions for handling and fetching repo archives in zip format."""
from __future__ import absolute_import
import os
import tempfile
from zipfile import ZipFile
import requests
try:
# BadZipfile was renamed to BadZipFile in Python 3.2.
from zipfile import BadZipFile
except ImportError:
from z... | luzfcb/cookiecutter | cookiecutter/zipfile.py | Python | bsd-3-clause | 4,640 |
from base import StreetAddressValidation, AddressValidation
UPS_XAV_CONNECTION = 'https://onlinetools.ups.com/ups.app/xml/XAV'
UPS_XAV_CONNECTION_TEST = 'https://wwwcie.ups.com/ups.app/xml/XAV'
UPS_AV_CONNECTION = 'https://onlinetools.ups.com/ups.app/xml/AV'
UPS_AV_CONNECTION_TEST = 'https://wwwcie.ups.com/ups.app/xm... | cuker/python-ups | ups/addressvalidation/__init__.py | Python | bsd-3-clause | 326 |
<div>
<ng-form class="form-horizontal" name="settingForm" os-form-validator="settingForm" novalidate>
<div class="form-group">
<label class="col-xs-2 control-label" translate="settings.property">Property</label>
<div class="form-value col-xs-10">
<span>{{'settings.' + setting.module + '.' + s... | krishagni/openspecimen | www/app/modules/administrative/settings/edit-setting.html | HTML | bsd-3-clause | 3,764 |
<?php
namespace R2Crm\Entity;
class Project {
} | mediaforce/ecomart | module/R2Crm/src/R2Crm/Entity/Project.php | PHP | bsd-3-clause | 49 |
# `dev-master`
* [#470](https://github.com/atoum/atoum/pull/470) Add `isNotEmpty` asserter on `array` ([@metalaka])
# 2.1.0 - 2015-05-08
* [#459](https://github.com/atoum/atoum/issues/459) Support branches and paths coverage with [Xdebug](http://xdebug.org/) 2.3 ([@jubianchi])
* [#436](https://github.com/atoum/atou... | tejerka/atoum | CHANGELOG.md | Markdown | bsd-3-clause | 5,215 |
.cell {
position: relative;
display: flex;
align-content: flex-start;
flex-direction: column;
}
.text > .main-content {
padding-left: 8px;
}
.inputarea, .text-top-div {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-flex-flow: row;
... | jupyter/colaboratory | colaboratory/resources/colab/css/cell.css | CSS | bsd-3-clause | 4,874 |
<div class="User-default-index">
<h1><?= $this->context->action->uniqueId ?></h1>
<p>
This is the view content for action "<?= $this->context->action->id ?>".
The action belongs to the controller "<?= get_class($this->context) ?>"
in the "<?= $this->context->module->id ?>" module.
</... | mingzhehao/sy-yii2-lte | common/modules/user/views/default/index.php | PHP | bsd-3-clause | 614 |
import code
import sys
from awesomestream.jsonrpc import Client
def main():
try:
host = sys.argv[1]
except IndexError:
host = 'http://localhost:9997/'
banner = """>>> from awesomestream.jsonrpc import Client
>>> c = Client('%s')""" % (host,)
c = Client(host)
code.interact(banner, l... | ericflo/awesomestream | awesomestream/repl.py | Python | bsd-3-clause | 391 |
// 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/command_line.h"
#include "base/files/file_util.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/chrome_notification_types... | Bysmyyr/chromium-crosswalk | chrome/browser/media/chrome_media_stream_infobar_browsertest.cc | C++ | bsd-3-clause | 6,574 |
package org.speedfirst.leetcode.array;
import java.util.ArrayList;
import java.util.Arrays;
/**
* Created by jiankuan on 11/4/14.
*/
public class FindKthElement {
//param k : description of k
//param numbers : array of numbers
//return: description of return
public int kthLargestElement(int k, Arra... | speedfirst/leetcode | java/src/main/java/org/speedfirst/leetcode/array/FindKthElement.java | Java | bsd-3-clause | 1,875 |
<?php
/**
* MultiFormStep controls the behaviour of a single form step in the MultiForm
* process. All form steps are required to be subclasses of this class, as it
* encapsulates the functionality required for the step to be aware of itself
* in the process by knowing what it's next step is, and if applicable, it... | spekulatius/silverstripe-multiform | code/model/MultiFormStep.php | PHP | bsd-3-clause | 11,072 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import uuid
import socket
import time
__appname__ = "pymessage"
__author__ = "Marco Sirabella, Owen Davies"
__copyright__ = ""
__credits__ = "Marco Sirabella, Owen Davies"
__license__ = "new BSD 3-Clause"
__version__ = "0.0.3"
__maintainers__ = "Ma... | mjsir911/pymessage | client.py | Python | bsd-3-clause | 1,124 |
package apachelog
import (
"strings"
)
// Format supported by the Apache mod_log_config module.
// For more information, see:
// https://httpd.apache.org/docs/2.4/en/mod/mod_log_config.html#formats
type Format int
// Supported formats.
//
// TODO(gilliek): move complex format, such as COOKIE, at the bottom of th... | e-XpertSolutions/go-apachelog | apachelog/format.go | GO | bsd-3-clause | 2,909 |
/*
* Module name : lcd.c: write to LCD display
* Author : TI-Avans, JW
* Revision History : 20110228: - initial release;
* Description : This module contains functions for writing to lcd-display
* Test configuration:
MCU : ATmega128
Dev.Board : BIGAVR6
Oscillator : External Clock 8.0... | man1utdfan/AVRProgramming | lcd_2.c | C | bsd-3-clause | 3,250 |
from diesel import Loop, fork, Application, sleep
def sleep_and_print(num):
sleep(1)
print num
sleep(1)
a.halt()
def forker():
for x in xrange(5):
fork(sleep_and_print, x)
a = Application()
a.add_loop(Loop(forker))
a.run()
| dieseldev/diesel | examples/forker.py | Python | bsd-3-clause | 255 |
# -*- coding: utf-8 -*-
"""
zine.forms
~~~~~~~~~~
The form classes the zine core uses.
:copyright: (c) 2010 by the Zine Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from copy import copy
from datetime import datetime
from zine.i18n import _, lazy_gettext, l... | mitsuhiko/zine | zine/forms.py | Python | bsd-3-clause | 55,129 |
/*
* altivec_typeconversion.h
* DevIL
*
* Created by Meloni Dario on 24/04/05.
*
*/
#include "altivec_common.h"
#ifdef ALTIVEC_GCC
// data and newdata may be the same buffer
// Used to convert RGB <-> BGR in various data types
void abc2cba_byte(ILubyte* data, ILuint length, ILubyte* newdata);
void abc2cba_s... | dava/dava.engine | Programs/ColladaConverter/devil-1.7.8/src-IL/include/altivec_typeconversion.h | C | bsd-3-clause | 1,015 |
#pragma once
#include "Classes/Modules/PackageModule/Private/PackageWidget.h"
#include <TArc/DataProcessing/TArcDataNode.h>
class PackageNode;
class QAction;
class PackageData : public DAVA::TArcDataNode
{
public:
private:
friend class PackageModule;
QAction* importPackageAction = nullptr;
QAction* co... | dava/dava.engine | Programs/QuickEd/Classes/Modules/PackageModule/PackageData.h | C | bsd-3-clause | 922 |
package scala.meta.internal.scalacp
import java.util.{HashMap, HashSet}
import scala.annotation.tailrec
import scala.meta.internal.classpath.MissingSymbolException
import scala.meta.internal.{semanticdb => s}
import scala.meta.internal.semanticdb.Scala._
import scala.meta.internal.semanticdb.Scala.{Descriptor => d}
im... | scalameta/scalameta | semanticdb/metacp/src/main/scala/scala/meta/internal/scalacp/SymbolOps.scala | Scala | bsd-3-clause | 10,838 |
/*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* 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 ... | allquixotic/opensim-autobackup | OpenSim/Services/Connectors/Simulation/SimulationDataService.cs | C# | bsd-3-clause | 5,620 |
from falcor import *
def render_graph_BSDFViewer():
g = RenderGraph("BSDFViewerGraph")
loadRenderPassLibrary("AccumulatePass.dll")
loadRenderPassLibrary("BSDFViewer.dll")
BSDFViewer = createPass("BSDFViewer")
g.addPass(BSDFViewer, "BSDFViewer")
AccumulatePass = createPass("AccumulatePass")
... | NVIDIAGameWorks/Falcor | Tests/image_tests/renderpasses/graphs/BSDFViewer.py | Python | bsd-3-clause | 569 |
/*
* Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services.
* 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 o... | alameluchidambaram/CONNECT | Product/Production/Gateway/PatientDiscovery_10/src/test/java/gov/hhs/fha/nhinc/patientdiscovery/_10/entity/EntityPatientDiscoverySecuredTest.java | Java | bsd-3-clause | 5,464 |
from django.conf.urls.defaults import *
from django_de.apps.authors.models import Author
urlpatterns = patterns('django.views.generic.list_detail',
(r'^$', 'object_list',
dict(
queryset = Author.objects.order_by('name', 'slug'),
template_object_name = 'author',
allow_emp... | django-de/django-de-v2 | django_de/apps/authors/urls.py | Python | bsd-3-clause | 348 |
/*
* This file is part of the Soletta Project
*
* Copyright (C) 2015 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:
*
* * Redistributions of source code must retain ... | anselmolsm/soletta | src/lib/io/include/sol-i2c.h | C | bsd-3-clause | 13,119 |
using Lix.Commons.Repositories;
using Lix.Commons.Tests.Examples;
using Lix.Commons.Tests.Repositories;
using MbUnit.Framework;
using NHibernate;
namespace Lix.NHibernate.Utilities.Tests.Repositories
{
[TestFixture]
public class when_listing_entities_in_an_nhibernate_repository : when_listing_entities_in_a_rep... | lukesmith/lix | src/Lix.NHibernate.Utilities.Tests/Repositories/when_listing_entities_in_an_nhibernate_repository.cs | C# | bsd-3-clause | 1,778 |
<?php
namespace CL\PsrCache;
/**
* @author Ivan Kerin <ikerin@gmail.com>
* @copyright 2014, Clippings Ltd.
* @license http://spdx.org/licenses/BSD-3-Clause
*/
class NullItem implements CacheItemInterface
{
private $key;
private $value;
public function __construct($key)
{
$this->key =... | clippings/psr-cache | src/NullItem.php | PHP | bsd-3-clause | 3,903 |
#ifndef SEGMATCH_FEATURES_HPP_
#define SEGMATCH_FEATURES_HPP_
#include <string>
#include <vector>
#include <Eigen/Core>
#include <glog/logging.h>
namespace segmatch {
typedef double FeatureValueType;
struct FeatureValue {
FeatureValue() {}
FeatureValue(std::string feature_name, FeatureValueType feature_value) ... | ethz-asl/segmatch | segmatch/include/segmatch/features.hpp | C++ | bsd-3-clause | 2,318 |
#include "CResult.hpp"
#include "mysql.hpp"
#include "CQuery.hpp"
bool CQuery::Execute(MYSQL *connection)
{
CLog::Get()->Log(LogLevel::DEBUG, "CQuery::Execute(this={}, connection={})",
static_cast<const void *>(this),
static_cast<const void *>(connection));
int error = 0;
default_clock::time_point ex... | pBlueG/SA-MP-MySQL | src/CQuery.cpp | C++ | bsd-3-clause | 1,393 |
package org.tolweb.treegrowserver.dao;
import java.util.Date;
import java.util.List;
import org.tolweb.treegrow.main.Contributor;
import org.tolweb.treegrowserver.PublicationBatch;
public interface PublicationBatchDAO {
public void saveBatch(PublicationBatch batch);
public PublicationBatch getBatchWithId(Lon... | tolweb/tolweb-app | TreeGrowServer/src/org/tolweb/treegrowserver/dao/PublicationBatchDAO.java | Java | bsd-3-clause | 668 |
all: build
build:
rebar3 compile
erlc clients/erlang_client/client.erl
run_server:
erl -pa _build/default/lib/chat/ebin -eval "application:start(chat)" -noshell start_sasl
run_client:
erl -pa clients/erlang_client -s client connect -noshell
| Limmen/chatserver | Makefile | Makefile | bsd-3-clause | 252 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Sun Jan 22 14:18:59 CET 2012 -->
<TITLE>
Uses of Class soot.jimple.spark.pag.GlobalVarNode (Soot API)
</TITLE>
<META NAME="date" CONTENT="201... | Phortran/SicurezzaInformatica | ApkSSL_Tester/libs/soot/doc/soot/jimple/spark/pag/class-use/GlobalVarNode.html | HTML | bsd-3-clause | 10,290 |
/*================================================================================
Copyright (c) 2009 VMware, 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 ... | mikem2005/vijava | src/com/vmware/vim25/ClusterProfileConfigInfo.java | Java | bsd-3-clause | 2,021 |
#!/bin/sh
# source the common platform independent functionality and option parsing
script_location=$(cd "$(dirname "$0")"; pwd)
. ${script_location}/common_test.sh
retval=0
# running unit test suite
run_unittests --gtest_shuffle \
--gtest_death_test_use_fork || retval=1
cd ${SOURCE_DIRECTORY}/test
e... | trshaffer/cvmfs | test/cloud_testing/platforms/fedora24_x86_64_test.sh | Shell | bsd-3-clause | 2,482 |
body {
padding-top: 60px;
padding-bottom: 40px;
font-family: sans-serif;
}
.zf-green {
color: #68b604;
}
.btn-success {
background-color: #57a900;
background-image: -moz-linear-gradient(top, #70d900, #57a900);
background-image: -ms-linear-gradient(top, #70d900, #57a900);
background-image: -webk... | septembersixth/glory-blog | public/css/admin/style.css | CSS | bsd-3-clause | 1,070 |
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* Copyright (C) 1997 University of Chicago.
* See COPYRIGHT notice in top-level directory.
*/
#include "adio.h"
#include "adio_extern.h"
#ifdef ROMIO_INSIDE_MPICH2
#include "mpiimpl.h"
#endif
void ADIO_End(int *error_code)
{
ADIOI_Flatlist_node *curr, *next;
... | gnu3ra/SCC15HPCRepast | INSTALLATION/mpich2-1.4.1p1/src/mpi/romio/adio/common/ad_end.c | C | bsd-3-clause | 2,332 |
module Paths_variants (
version,
getBinDir, getLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import qualified Control.Exception as Exception
import Data.Version (Version(..))
import System.Environment (getEnv)
import Prelude
catchIO :: IO a -> (Exception.IOException -> IO a) ... | josephDunne/variants | dist/build/autogen/Paths_variants.hs | Haskell | bsd-3-clause | 1,313 |
import * as Redux from "redux"
import { composeWithDevTools } from "redux-devtools-extension/developmentOnly"
import thunk from "redux-thunk"
import reducersRegistry from "./reducers"
const configureStore = (initialState) => {
const middlewares = [
thunk
]
const enhancer = composeWithDevTools(
... | yogurt1/yogurt1.github.io | src/store/index.js | JavaScript | bsd-3-clause | 761 |
---
layout: default
permalink: /development/
published: false
---
<div class="development">
{% include menu.html %}
<div class="plot">
<p>
<strong>Airlift</strong> is constantly being improved. We are always looking for help in the following areas. If you would like to contribute in any way, whether yo... | Airlift-Framework/airlift-framework.github.com | development.html | HTML | bsd-3-clause | 4,076 |
// 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.
#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_FORM_MANAGER_H_
#... | Chilledheart/chromium | components/password_manager/core/browser/password_form_manager.h | C | bsd-3-clause | 21,936 |
<!-- %BD_HTML%/SearchResult.htm -->
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<TITLE>úåöàú àéðèøðè - Takanot File</TITLE>
</HEAD>
<style>
<!--
TR.A_Table {font-color:#3e6ea6; background-color: #f7f9fb; font-size:11;font-family: Arial,}
TR.B_Table {font-c... | daonb/obudget | data/queries/results/result-2010-95.html | HTML | bsd-3-clause | 9,462 |
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand
from djangoautoconf.local_key_manager import get_default_admin_username, \
get_default_admin_password
from djangoautoconf.management.commands.web_manage_tools.user_creator import create_admin
def create_default_admin()... | weijia/djangoautoconf | djangoautoconf/management/commands/create_default_super_user.py | Python | bsd-3-clause | 844 |
---
id: 5900f4f91000cf542c51000c
challengeType: 5
title: 'Problem 397: Triangle on parabola'
forumTopicId: 302062
---
## Description
<section id='description'>
On the parabola y = x2/k, three points A(a, a2/k), B(b, b2/k) and C(c, c2/k) are chosen.
Let F(K, X) be the number of the integer quadruplets (k, a, b, c) su... | BhaveshSGupta/FreeCodeCamp | curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-397-triangle-on-parabola.english.md | Markdown | bsd-3-clause | 1,016 |
<html xmlns:concordion="http://www.concordion.org/2007/concordion">
<link href="../../../../../concordion.css" rel="stylesheet" type="text/css" />
<body>
<h1>Null Result</h1>
<p>
If the evaluation result is <code>null</code> then the string
"(null)" is used for performing the compari... | pobrelkey/xcordion | xcordion/spec/spec/concordion/command/assertEquals/nonString/NullResult.html | HTML | bsd-3-clause | 1,380 |
"""
Parsing resource files.
See base.py for the ParsedResource base class.
"""
import os.path
from pontoon.sync.formats import (
compare_locales,
ftl,
json_extensions,
lang,
po,
silme,
xliff,
)
# To add support for a new resource format, add an entry to this dict
# where the key is the ex... | jotes/pontoon | pontoon/sync/formats/__init__.py | Python | bsd-3-clause | 2,225 |
/*
* Copyright (c) 2002-2022, City of Paris
* 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
* and the f... | lutece-platform/lutece-core | src/java/fr/paris/lutece/portal/business/style/Theme.java | Java | bsd-3-clause | 5,914 |
<?php
namespace backend\modules\group_services\controllers;
use Yii;
use backend\modules\group_services\models\Group_services;
use backend\modules\group_services\models\Group_servicesSearch;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* G... | morozovigor/carbax | backend/modules/group_services/controllers/Group_servicesController.php | PHP | bsd-3-clause | 3,587 |
"use strict";
(function() {
// Private fields
var storedAppInfo = null;
// For Production
var appInfo = {
"clientId": "7bee6942-63fb-4fbd-88d6-00394941de08",
"clientSecret": "SECRETGOESHERE",
"redirectUri": chrome.identity.getRedirectURL(""),
"scopes": "files.readwrit... | yoichiro/chromeos-filesystem-onedrive | app/scripts/onedrive_client.js | JavaScript | bsd-3-clause | 34,714 |
// Copyright (c) 2011-2013, Cornell 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 ... | seanogden/wtf | client/message_hyperdex_search.cc | C++ | bsd-3-clause | 2,881 |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | danielknorr/MITK | Modules/ToFUI/Qmitk/QmitkToFRecorderWidget.h | C | bsd-3-clause | 6,685 |
qc::db_trans
============
part of [Database API](../db.md)
Usage
-----
`db_trans code ?on_error_code?`
Description
-----------
Execute code within a database transaction.
Rollback on database or tcl error.
Examples
--------
```tcl
db_trans {
db_dml {update account set balance=balance-10 where account_id=1}... | qcode-software/qcode-tcl | doc/procs/db_trans.md | Markdown | bsd-3-clause | 929 |
<?php
// DO NOT EDIT! Generated by Protobuf-PHP protoc plugin 1.0
// Source: vtgate.proto
// Date: 2016-01-22 01:34:42
namespace Vitess\Proto\Vtgate {
class Session extends \DrSlump\Protobuf\Message {
/** @var boolean */
public $in_transaction = null;
/** @var \Vitess\Proto\Vtgate\Session\Shar... | guokeno0/vitess | php/src/Vitess/Proto/Vtgate/Session.php | PHP | bsd-3-clause | 3,544 |
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/do... | jibaku/django-textprocessor | docs/Makefile | Makefile | bsd-3-clause | 5,592 |
/*
* Copyright (c) 2016 Villu Ruusmann
*/
package org.jpmml.model.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.dmg.pmml.Version;
/**
* Marks a feature that was changed from o... | jpmml/jpmml-model | pmml-model/src/main/java/org/jpmml/model/annotations/Required.java | Java | bsd-3-clause | 558 |
import astar
import os
import sys
import csv
import math
from difflib import SequenceMatcher
import unittest
class Station:
def __init__(self, id, name, position):
self.id = id
self.name = name
self.position = position
self.links = []
def build_data():
"""builds the 'map' by ... | jrialland/python-astar | tests/london/test_london_underground.py | Python | bsd-3-clause | 2,878 |
{% extends "base.html" %}
{% load i18n %}
{% block title %}{{block.super}} - Password Reset Confirm{% endblock %}
{% block content %}
{% if validlink %}
<form method="post" action=".">{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="{% trans 'Submit' %}" />
</form>
{% else %}
<p>{% trans "Passwor... | tedtieken/django-simple-registration | templates/simple_registration/password_reset_confirm.html | HTML | bsd-3-clause | 372 |
#ifndef NVTRISTRIP_H
#define NVTRISTRIP_H
#ifndef NULL
#define NULL 0
#endif
namespace NvTriStrip
{
////////////////////////////////////////////////////////////////////////////////////////
// Public interface for stripifier
////////////////////////////////////////////////////////////////////////////////////////
... | BlazesRus/niflib | NvTriStrip/NvTriStrip.h | C | bsd-3-clause | 4,567 |
# !usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under a 3-clause BSD license.
#
# @Author: Brian Cherinka
# @Date: 2018-10-11 17:51:43
# @Last modified by: Brian Cherinka
# @Last Modified time: 2018-11-29 17:23:15
from __future__ import print_function, division, absolute_import
import numpy as np
impor... | sdss/marvin | python/marvin/contrib/vacs/hi.py | Python | bsd-3-clause | 9,230 |
from djpcms import sites
if sites.settings.CMS_ORM == 'django':
from djpcms.core.cmsmodels._django import *
elif sites.settings.CMS_ORM == 'stdnet':
from djpcms.core.cmsmodels._stdnet import *
else:
raise NotImplementedError('Objecr Relational Mapper {0} not available for CMS model... | strogo/djpcms | djpcms/models.py | Python | bsd-3-clause | 354 |
/*
* Copyright (C) 2008, 2009 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of c... | klim-iv/phantomjs-qt5 | src/webkit/Source/WTF/wtf/Threading.cpp | C++ | bsd-3-clause | 5,208 |
// check that header compiles
#include "pyffi/object_models/scope.hpp"
int main()
{
pyffi::object_models::Scope scope;
return 0;
};
| amorilia/pyffi-boost | test/pyffi/object_models/scope_header_test.cpp | C++ | bsd-3-clause | 140 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_21) on Mon Apr 16 12:29:32 EDT 2012 -->
<TITLE>
MappingTest
</TITLE>
<META NAME="date" CONTENT="2012-04-16">
<LINK REL ="stylesheet" TYP... | NCIP/caadapter | software/cmts/doc/javadoc/gov/nih/nci/cbiit/cmts/test/MappingTest.html | HTML | bsd-3-clause | 15,848 |
/*-
* Cronyx-Sigma Driver Development Kit.
*
* Copyright (C) 1998 Cronyx Engineering.
* Author: Pavel Novikov, <pavel@inr.net.kiae.su>
*
* Copyright (C) 1998-2003 Cronyx Engineering.
* Author: Roman Kurakin, <rik@cronyx.ru>
*
* This software is distributed with NO WARRANTIES, not even the implied
* warranties... | dcui/FreeBSD-9.3_kernel | sys/dev/cx/cxddk.c | C | bsd-3-clause | 21,268 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.