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 |
|---|---|---|---|---|---|
cask 'onedrive' do
version '17.3.6945.0724'
sha256 '5285b60a8f81f820ff7e7ad1e9177520e0b1394901f301e7da3a3258962537be'
# oneclient.sfx.ms/Mac/Direct was verified as official when first introduced to the cask
url "https://oneclient.sfx.ms/Mac/Direct/#{version}/OneDrive.pkg"
name 'OneDrive'
homepage 'https://... | syscrusher/homebrew-cask | Casks/onedrive.rb | Ruby | bsd-2-clause | 2,181 |
#!/usr/bin/env python
from __future__ import print_function
import json
import logging
from .taxon_concept_node import TaxonConceptSemNode
from .verbatim_name import VerbatimSemNode
from .names_for_ranks import (GenusGroupSemNode,
HigherGroupSemNode,
Specimen... | mtholder/taxalotl | taxalotl/sem_graph/graph.py | Python | bsd-2-clause | 13,901 |
import codecs
import six
from builtins import super
from builtins import range
import struct
import time
class InvalidPacketError(Exception):
pass
class BootloaderError(Exception):
pass
class BootloaderTimeoutError(BootloaderError):
pass
# TODO: Implement Security key functionality
class BootloaderK... | arachnidlabs/cyflash | cyflash/protocol.py | Python | bsd-2-clause | 15,768 |
#include "stdafx.h"
#include "Group.h"
#include "GapSpring.h"
#include "ComponentSpring.h"
namespace scv {
Group *Group::addGroup(Group *group) {
return addSpring(group);
}
Group *Group::addComponent(Component *component) {
return addComponent(component, Spring::DEFAULT_SIZE, Spring::DEFAULT_SIZE... | yuriks/SCV | SCV/src/Group.cpp | C++ | bsd-2-clause | 3,173 |
package io.ifar.security.realm;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Arrays;
/**
* Project: security
* DefaultUserImpl: ezra
* Date: 4/3/13
*/
public class TestJdbiShiroRealm2 extends TestJdbiShiroRealm {
private static final Logger LOG = LoggerFactory.getLogger(TestJdbi... | Multifarious/shiro-jdbi-realm | src/test/java/io/ifar/security/realm/TestJdbiShiroRealm2.java | Java | bsd-2-clause | 840 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-init-null.case
// - src/dstr-binding/error/gen-meth.template
/*---
description: Value specifed for object binding pattern must be object coercible (null) (generator method)
esid: sec-generator-function-definitions-runtime-sema... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/object/dstr-gen-meth-obj-init-null.js | JavaScript | bsd-2-clause | 1,850 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing.Printing;
using System.ComponentModel;
using WebKit.Interop;
using System.Drawing;
using System.Windows.Forms;
namespace WebKit
{
internal class PrintManager
{
private PrintDocument _document;
... | windygu/webkitdotnet | WebKitBrowser/PrintManager.cs | C# | bsd-2-clause | 2,909 |
// TestProgressDialog.java
// See copyright.txt for license and terms of use.
package util.swing;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.concurrent.ExecutionException;
import javax.swing.Box;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swi... | smcpeak/earthshape | src/util/swing/TestProgressDialog.java | Java | bsd-2-clause | 7,571 |
//====================================================================================
//DynamicRepresentation.cpp
//
//This code is part of Anubis Engine.
//
//Anubis Engine is a free game engine created as a fan project to be
//awesome platform for developing games!
//
//All sources can be found here:
// https://gith... | Solidstatewater/Anubis-Engine | Scene/Source/Representations/DynamicRepresentation.cpp | C++ | bsd-2-clause | 3,047 |
"""
Django settings for d3matt project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
imp... | d3matt/d3matt.com | src/d3matt/d3matt/settings.py | Python | bsd-2-clause | 2,826 |
# frozen_string_literal: true
# See LICENSE.txt at root of repository
# GENERATED FILE - DO NOT EDIT!!
require 'ansible/ruby/modules/base'
module Ansible
module Ruby
module Modules
# Create, destroy, or update access groups on Element Software Cluster.
class Na_elementsw_access_group < Base
#... | wied03/ansible-ruby | lib/ansible/ruby/modules/generated/storage/netapp/na_elementsw_access_group.rb | Ruby | bsd-2-clause | 1,981 |
package com.github.aview.api.mobile;
/*
* #%L
* iview-api
* %%
* Copyright (C) 2013 The aview 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:
*
* Redistributions of source... | aviewdevs/aview | iview-api/src/main/java/com/github/aview/api/mobile/MobileSeries.java | Java | bsd-2-clause | 4,784 |
/************************************************************************
*
* Flood Project © (2008-201x)
* Licensed under the simplified BSD license. All rights reserved.
*
************************************************************************/
#include "Engine/API.h"
#include "Engine/Input/InputManager.h"
... | FloodProject/flood | src/Engine/Input/InputManager.cpp | C++ | bsd-2-clause | 1,203 |
class CreateApiKeys < ActiveRecord::Migration
def change
create_table :api_keys do |t|
t.string :access_token
t.references :user
t.timestamps
end
add_index :api_keys, :user_id
add_index :api_keys, :access_token
end
end
| brewbit/brewbit-dashboard | db/migrate/20140104214015_create_api_keys.rb | Ruby | bsd-2-clause | 258 |
class Links < Formula
desc "Lynx-like WWW browser that supports tables, menus, etc."
homepage "http://links.twibright.com/"
url "http://links.twibright.com/download/links-2.14.tar.bz2"
sha256 "f70d0678ef1c5550953bdc27b12e72d5de86e53b05dd59b0fc7f07c507f244b8"
revision 1
bottle do
cellar :any
sha256 ... | robohack/homebrew-core | Formula/links.rb | Ruby | bsd-2-clause | 2,014 |
namespace DeOps.Services.Profile
{
partial class ProfileView
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | swax/DeOps | UI/Services/Profile/ProfileView.Designer.cs | C# | bsd-2-clause | 3,654 |
// Copyright 2015-2019 Elviss Strazdins. All rights reserved.
#ifndef OUZEL_GRAPHICS_D3D11RENDERTARGET_HPP
#define OUZEL_GRAPHICS_D3D11RENDERTARGET_HPP
#include "core/Setup.h"
#if OUZEL_COMPILE_DIRECT3D11
#include <d3d11.h>
#include <set>
#include <vector>
#include "graphics/direct3d11/D3D11RenderResource.hpp"
#inc... | elvman/ouzel | ouzel/graphics/direct3d11/D3D11RenderTarget.hpp | C++ | bsd-2-clause | 1,409 |
class Libxmlxx3 < Formula
desc "C++ wrapper for libxml"
homepage "https://libxmlplusplus.sourceforge.io/"
url "https://download.gnome.org/sources/libxml++/3.2/libxml++-3.2.0.tar.xz"
sha256 "b786fae7fd7820d356698069a787d107995c3efcbef50d8f4efd3766ab768e4f"
license "LGPL-2.1"
bottle do
cellar :any
sh... | rwhogg/homebrew-core | Formula/libxml++3.rb | Ruby | bsd-2-clause | 2,170 |
module VCLog
require 'vclog/core_ext'
require 'vclog/changelog'
require 'vclog/tag'
require 'vclog/release'
require 'erb'
# A Release History is very similar to a ChangeLog.
# It differs in that it is divided into releases with
# version, release date and release note.
#
# The release version, dat... | rubyworks/vclog | work/deprecated/history.rb | Ruby | bsd-2-clause | 3,524 |
(function() {
var LOAD_TIMEOUT = 60000;
var PLAY_BUTTON = [0, 173, 0];
var PAUSE_BUTTON = [0, 172, 1];
// Code taken from BurninRubber-v0.js.
function childAtPath(path) {
var child = ((window.game || {}).stage) || {};
path.forEach((x) => child = ((child || {}).children || [])[x]);
return child |... | unixpickle/muniverse | games/injections/BirdyRush-v0.js | JavaScript | bsd-2-clause | 1,488 |
//package com.pineone.icbms.so.servicemodel;
//
//import com.pineone.icbms.so.domain.entity.Domain;
//import com.pineone.icbms.so.service.ref.DeviceObject;
//import com.pineone.icbms.so.service.ref.Status;
//import com.pineone.icbms.so.service.ref.VirtualObject;
//import com.pineone.icbms.so.servicemodel.logic.ServiceM... | oblivion14/SO | so-servicemodel/src/test/java/com/pineone/icbms/so/servicemodel/ServiceModelExecuteTest.java | Java | bsd-2-clause | 1,696 |
package com.atlassian.jira.plugins.dvcs.listener;
import com.atlassian.crowd.embedded.api.CrowdService;
import com.atlassian.crowd.embedded.api.UserWithAttributes;
import com.atlassian.crowd.event.user.UserAttributeStoredEvent;
import com.atlassian.crowd.exception.OperationNotPermittedException;
import com.atlas... | edgehosting/jira-dvcs-connector | jira-dvcs-connector-plugin/src/main/java/com/atlassian/jira/plugins/dvcs/listener/DvcsAddUserListener.java | Java | bsd-2-clause | 10,226 |
/*
* Copyright (c) 2018, PandahRS <https://github.com/PandahRS>
* 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,... | KronosDesign/runelite | runelite-client/src/main/java/net/runelite/client/plugins/discord/DiscordAreaType.java | Java | bsd-2-clause | 1,506 |
// This file was procedurally generated from the following sources:
// - src/function-forms/dflt-params-arg-val-undefined.case
// - src/function-forms/default/async-func-expr-named.template
/*---
description: Use of initializer when argument value is `undefined` (async function named expression)
esid: sec-async-functio... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/async-function/named-dflt-params-arg-val-undefined.js | JavaScript | bsd-2-clause | 1,404 |
class HapiFhirCli < Formula
desc "Command-line interface for the HAPI FHIR library"
homepage "https://hapifhir.io/"
url "https://github.com/hapifhir/hapi-fhir/releases/download/v5.4.0/hapi-fhir-5.4.0-cli.zip"
sha256 "142022d1d5b1d849e9a894bac0a8269bfccf3be4b1364b3eaeb685c588966995"
license "Apache-2.0"
liv... | Linuxbrew/homebrew-core | Formula/hapi-fhir-cli.rb | Ruby | bsd-2-clause | 1,080 |
"""
Copyright (c) 2013 The Regents of the University of California, AMERICAN INSTITUTES FOR RESEARCH
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 abo... | CSSIP-AIR/PatentsProcessor | start.py | Python | bsd-2-clause | 7,205 |
// C++ General Utility Library (mailto:cgul@zethes.com)
// Copyright (C) 2012-2014, Joshua Brookover and Amber Thrall
// All rights reserved.
/** @file SocketTCP.hpp
*/
#pragma once
// Configuration
#include <CGUL/Config.hpp>
// CGUL Includes
#include "../Network/IPAddress.hpp"
#include "../Utility/String.hpp"
//... | Zethes/CGUL | src/CGUL/Network/SocketTCP.hpp | C++ | bsd-2-clause | 2,209 |
import json
import re
from kqml import KQMLString
from .kqml_list import KQMLList
from .kqml_token import KQMLToken
from .kqml_exceptions import KQMLException
class CLJsonConverter(object):
def __init__(self, token_bools=False):
self.token_bools = token_bools
def cl_from_json(self, json_obj):
... | bgyori/pykqml | kqml/cl_json.py | Python | bsd-2-clause | 6,768 |
package transform
import "github.com/twpayne/go-geom"
// UniqueCoords creates a new coordinate array (with the same layout as the inputs) that
// contains each unique coordinate in the coordData. The ordering of the coords are the
// same as the input.
func UniqueCoords(layout geom.Layout, compare Compare, coordData... | twpayne/go-geom | transform/transform.go | GO | bsd-2-clause | 740 |
import csv
import os
from json import loads
from os.path import exists
from old.project import CassandraInsert
from old.project import CassandraUtils
cassandra = CassandraUtils()
QTD_STS_KEY = 'quotedStatus'
RTD_STS_KEY = 'retweetedStatus'
MT_STS_KEY = 'userMentionEntities'
def check_mention_entities(tweet):
r... | jblupus/PyLoyaltyProject | old/project/integration/to_files2.py | Python | bsd-2-clause | 7,009 |
package org.gazebosim.transport;
public interface SubscriberCallback<T> {
void callback(T msg);
}
| FRC1296/CheezyDriver2016 | third_party/allwpilib_2016/simulation/JavaGazebo/src/main/java/org/gazebosim/transport/SubscriberCallback.java | Java | bsd-2-clause | 100 |
#include "operators/activation/elu_op.h"
#include "utils/math_functions.h"
#include "utils/op_kernel.h"
namespace dragon {
template <class Context> template <typename T>
void EluOp<Context>::RunWithType() {
auto* Xdata = input(0).template data<T, Context>();
auto* Ydata = output(0)->template mutable_data<T, C... | neopenx/Dragon | Dragon/src/operators/activation/elu_op.cc | C++ | bsd-2-clause | 1,854 |
var voxelPainter = require('./../')
// Options
var options = {
container: '#container'
}
var painter = voxelPainter(options)
var loopThrough = function(elements, cb) {
[].forEach.call(elements, function(item) {
cb(item)
})
}
// Color selector
var colorSelector = document.querySelectorAll('.color-selecto... | romainberger/voxel-painter-core | example/main.js | JavaScript | bsd-2-clause | 604 |
//-----------------------------------------------------------------------
// <copyright file="Th105Converter.cs" company="None">
// Copyright (c) IIHOSHI Yoshinori.
// Licensed under the BSD-2-Clause license. See LICENSE.txt file in the project root for full license information.
// </copyright>
//---------------------... | y-iihoshi/ThScoreFileConverter | ThScoreFileConverter/Models/Th105Converter.cs | C# | bsd-2-clause | 4,300 |
"""
Environment variable configuration loading class.
Using a class here doesn't really model anything but makes state passing (in a
situation requiring it) more convenient.
This module is currently considered private/an implementation detail and should
not be included in the Sphinx API documentation.
"""
import os
... | mkusz/invoke | invoke/env.py | Python | bsd-2-clause | 4,077 |
package org.randomcoder.taglibs.url;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* Tag class which adds a parameter to a URL.
*
* <pre>
* Copyright (c) 2006, Craig Condit. All rights res... | insideo/randomcoder-taglibs | src/main/java/org/randomcoder/taglibs/url/AddParamTag.java | Java | bsd-2-clause | 3,000 |
package ninchatapi
// AppendStrings duplicates the source slice while unwrapping the elements.
func AppendStrings(target []string, source []interface{}) []string {
if source != nil {
if target == nil || cap(target) < len(target)+len(source) {
t := make([]string, len(target), len(target)+len(source))
copy(t, t... | ninchat/ninchat-go | ninchatapi/params.go | GO | bsd-2-clause | 513 |
#
# Polymorphic Mixins
#
from silverflask import db
from sqlalchemy.ext.declarative import declared_attr
from silverflask.helper import classproperty
class PolymorphicMixin(object):
type = db.Column(db.String(50))
@declared_attr
def __mapper_args__(cls):
if hasattr(cls, '__versioned_draft_class__... | wolfv/SilverFlask | silverflask/mixins/PolymorphicMixin.py | Python | bsd-2-clause | 850 |
//===--- LiteralSupport.cpp - Code to parse and process literals ----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | epiqc/ScaffCC | clang/lib/Lex/LiteralSupport.cpp | C++ | bsd-2-clause | 66,118 |
// This file was procedurally generated from the following sources:
// - src/spread/obj-mult-spread.case
// - src/spread/default/super-call.template
/*---
description: Multiple Object Spread operation (SuperCall)
esid: sec-super-keyword-runtime-semantics-evaluation
es6id: 12.3.5.1
features: [object-spread]
flags: [gene... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/super/call-spread-obj-mult-spread.js | JavaScript | bsd-2-clause | 1,479 |
from speakeasy import app
app.run(debug=True)
| TinnedTuna/speakeasyspeeches | wsgi/run.py | Python | bsd-2-clause | 46 |
package geom
import "math"
type geom0 struct {
layout Layout
stride int
flatCoords []float64
srid int
}
type geom1 struct {
geom0
}
type geom2 struct {
geom1
ends []int
}
type geom3 struct {
geom1
endss [][]int
}
// Bounds returns the bounds of g.
func (g *geom0) Bounds() *Bounds {
return ... | twpayne/go-geom | flat.go | GO | bsd-2-clause | 9,818 |
#pragma once
#include <string>
#include <memory>
#include <deque>
#include "FAST/Object.hpp"
namespace fast {
/**
* @brief A class for runtime measurement
*
* Collect multiple runtimes over time, and calculates running average, running standard deviation,
* sum, max, min etc.
*
* All measurements are in millise... | smistad/FAST | source/FAST/RuntimeMeasurement.hpp | C++ | bsd-2-clause | 1,189 |
# Load the rails application
require File.expand_path('../application', __FILE__)
# Initialize the rails application
Media::Application.initialize!
| thomaseger/media | config/environment.rb | Ruby | bsd-2-clause | 149 |
package me.passtheheadphones.request;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.format.DateUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ExpandableListView;
import androi... | stuxo/PTHAndroid | PTHAndroid/src/main/java/me/passtheheadphones/request/RequestDetailFragment.java | Java | bsd-2-clause | 8,720 |
#ifndef FORM_HPP
#define FORM_HPP
#include <CtrlLib/CtrlLib.h>
#include <GridCtrl/GridCtrl.h>
using namespace Upp;
#include "Container.hpp"
#include "FormLayout.hpp"
class Form : public TopWindow
{
typedef Form CLASSNAME;
public:
Form();
~Form();
bool Load(const String& file);
bool Layout(... | dreamsxin/ultimatepp | bazaar/Form/Form.hpp | C++ | bsd-2-clause | 1,446 |
"""
OpenVZ containers
=================
"""
from contextlib import contextmanager
import hashlib
import os
import posixpath
import tempfile
from fabric.api import (
env,
hide,
output,
settings,
sudo,
)
from fabric.operations import (
_AttributeString,
_execute,
_prefix_commands,
_p... | bitmonk/fabtools | fabtools/openvz/contextmanager.py | Python | bsd-2-clause | 9,146 |
using System.Collections.Generic;
using System.Linq.Expressions;
using Microsoft.Extensions.Logging;
using Mozlite.Data.Query.Translators.Internal;
using System.Linq;
namespace Mozlite.Data.Query.Translators
{
/// <summary>
/// 方法调用转换实现基类。
/// </summary>
public abstract class RelationalCompositeMethod... | Mozlite/Mozlite.Core | Mozlite.Core/Data/Query/Translators/RelationalCompositeMethodCallTranslator.cs | C# | bsd-2-clause | 1,993 |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-29 07:17
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('crimeprediction', '0003_auto_20160406_1610'),
]
operations = [
migrations.RemoveFiel... | jayArnel/crimemapping | crimeprediction/migrations/0004_auto_20160429_0717.py | Python | bsd-2-clause | 586 |
#include <ngx_flags.h>
#include <ngx_generator.h>
#include <google/protobuf/descriptor.pb.h>
namespace google {
namespace protobuf {
namespace compiler {
namespace nginx {
void
Generator::GenerateSize(const Descriptor* desc, io::Printer& printer)
{
std::map<std::string, std::string> vars;
vars["name"] = desc->fu... | dbcode/protobuf-nginx | protongx/ngx_size.cc | C++ | bsd-2-clause | 12,102 |
var tap = require('tap'),
plan = tap.plan,
test = tap.test,
parser = require('../index');
var cfg53 = new parser.parser( { String: "got = 1\nhave = '$got'", InterPolateVars: true, AllowSingleQuoteInterpolation: true } );
var hash53 = cfg53.getall();
test("test AllowSingleQuoteInterpolation", function(t) {... | dshadowwolf/config-general | t/29-test-allowsinglequoteinterpolation.js | JavaScript | bsd-2-clause | 416 |
import unittest
import tempfile
import shutil
import os
from simlammps.io.lammps_data_file_parser import LammpsDataFileParser
from simlammps.io.lammps_simple_data_handler import LammpsSimpleDataHandler
class TestLammpsSimpleDataHandler(unittest.TestCase):
""" Tests the data reader class
"""
def setUp(se... | simphony/simphony-lammps-md | simlammps/io/tests/test_lammps_simple_data_handler.py | Python | bsd-2-clause | 2,811 |
from django.conf import settings
class Breadcrumb(object):
"""
A single breadcrumb, which is a 1:1 mapping to a view.
This is simply a wrapper class for the template tag.
"""
def __init__(self, name, url):
self.name = name
self.url = url
class Breadcrumbs(object):
"""
The s... | sjkingo/django-breadcrumbs3 | breadcrumbs3/middleware.py | Python | bsd-2-clause | 2,010 |
package com.pillowdrift.drillergame.entities.menu.buttons;
import com.pillowdrift.drillergame.framework.Scene;
/**
* Button to take you to the RecordsScene
* @author cake_cruncher_7
*
*/
public class RecordsMenuButton extends GenericMenuButton
{
//CONSTRUCTION
public RecordsMenuButton(Scene parent) ... | Pillowdrift/MegaDrillerMole | MegaDrillerMole/MDMWorkspace/DrillerGameAndroid/src/com/pillowdrift/drillergame/entities/menu/buttons/RecordsMenuButton.java | Java | bsd-2-clause | 600 |
cask "font-xanh-mono" do
version :latest
sha256 :no_check
url "https://github.com/google/fonts/trunk/ofl/xanhmono",
verified: "github.com/google/fonts/",
using: :svn,
trust_cert: true
name "Xanh Mono"
desc "Mono-serif typeface, designed by lam bao and duy dao"
homepage "https://fon... | alerque/homebrew-fonts | Casks/font-xanh-mono.rb | Ruby | bsd-2-clause | 418 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body style='color:red;'>
Sorry. This page is currently unvailable because your ISP is blocking access to this site!
<br />
The site is available, but your local network is preventing you from accessing it.
You can try using a proxy,... | willscott/activist-wp-plugin | views/warning.php | PHP | bsd-2-clause | 703 |
# -*- coding: utf-8 -*-
import json
import logging
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import last_modified as cache_last_modified
from django.views.decorators.cache import never_cache as force_cache_validation
from django.core.ca... | camillemonchicourt/Geotrek | geotrek/core/views.py | Python | bsd-2-clause | 6,257 |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
HardwareInfo.cpp: Implements the FHardwareInfo class
=============================================================================*/
#include "EnginePrivate.h"
#include "Hard... | PopCap/GameIdea | Engine/Source/Runtime/Engine/Private/HardwareInfo.cpp | C++ | bsd-2-clause | 1,215 |
// Generated by CoffeeScript 1.9.3
/**
*
* @module cnode/view
* @author vfasky <vfasky@gmail.com>
*/
(function() {
"use strict";
var api, mcore;
mcore = require('mcoreExt');
api = require('./api');
module.exports = mcore.View.subclass({
constructor: mcore.View.prototype.constructor,
beforeIn... | vfasky/mcore | example/cnodejs/js/pack/cnode/1.0.0/src/view.js | JavaScript | bsd-2-clause | 394 |
// Sorting the columns
/**
* @author zhixin wen <wenzhixin2010@gmail.com>
* version: 1.10.1
* https://github.com/wenzhixin/bootstrap-table/
*/
!function ($) {
'use strict';
// TOOLS DEFINITION
// ======================
var cachedWidth = null;
// it only does '%s', and return '' when argument... | ZombieHippie/cream | public/script/tablesorting.js | JavaScript | bsd-2-clause | 100,297 |
/*
* (C) 2011 Billy Brumley (billy.brumley@aalto.fi)
* (C) 2021 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/zfec.h>
#include <botan/internal/simd_32.h>
#if defined(BOTAN_SIMD_USE_SSE2)
#include <tmmintrin.h>
#endif
namespace Botan {
namespace {
/*
* the... | randombit/botan | src/lib/misc/zfec/zfec_vperm/zfec_vperm.cpp | C++ | bsd-2-clause | 51,390 |
class LimeError(Exception):
"""Raise for errors"""
| marcotcr/lime | lime/exceptions.py | Python | bsd-2-clause | 55 |
/**
* @module ol/layer/MapboxVector
*/
import BaseEvent from '../events/Event.js';
import EventType from '../events/EventType.js';
import GeometryType from '../geom/GeometryType.js';
import MVT from '../format/MVT.js';
import RenderFeature from '../render/Feature.js';
import SourceState from '../source/State.js';
imp... | ahocevar/ol3 | src/ol/layer/MapboxVector.js | JavaScript | bsd-2-clause | 18,944 |
//
// protocol.hpp
// ~~~~~~~~~~~~
//
// Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef PORTHOPPER_PROTOCOL_HPP
#define POR... | laeotropic/HTTP-Proxy | deps/asio-1.10.1/src/examples/cpp03/porthopper/protocol.hpp | C++ | bsd-2-clause | 4,270 |
/*
* Copyright (c) 2012, Alexander Tarnowski
* 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 condit... | alexander-t/selenium-samples | src/test/java/se/tarnowski/sample/async/ImplicitWaitTest.java | Java | bsd-2-clause | 2,200 |
class Fdclone < Formula
desc "Console-based file manager"
homepage "https://hp.vector.co.jp/authors/VA012337/soft/fd/"
url "http://www.unixusers.net/src/fdclone/FD-3.01h.tar.gz"
sha256 "24be8af52faa48cd6f123d55cfca45d21e5fd1dc16bed24f6686497429f3e2cf"
bottle do
sha256 "84cacf0bc5a76449dc1e0a00999424eed4e... | zmwangx/homebrew-core | Formula/fdclone.rb | Ruby | bsd-2-clause | 1,604 |
class Acpica < Formula
desc "OS-independent implementation of the ACPI specification"
homepage "https://www.acpica.org/"
url "https://acpica.org/sites/acpica/files/acpica-unix-20200717.tar.gz"
sha256 "cb99903ef240732f395af40c23b9b19c7899033f48840743544eebb6da72a828"
license any_of: ["Intel-ACPI", "GPL-2.0-onl... | maxim-belkin/homebrew-core | Formula/acpica.rb | Ruby | bsd-2-clause | 1,231 |
<?php
/**
* SorterDropDownColumn class file.
*
* @author Krivtsov Artur (wartur) <gwartur@gmail.com> | Made in Russia
* @copyright Krivtsov Artur © 2014
* @link https://github.com/wartur/yii-sorter-behavior
* @license New BSD license
*/
Yii::import('zii.widgets.grid.CGridColumn', true);
Yii::import('... | wartur/yii-sorter | widgets/SorterDropDownColumn.php | PHP | bsd-2-clause | 6,834 |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0">
<context>
<name>dialogWPAPersonal</name>
<message>
<source>WPA Personal Config</source>
<translation>WPA-Personal seadistus</translation>
</message>
<message>
<source>&Close</source>
<translation>... | NorwegianRockCat/pc-networkmanager | src/wificonfig/i18n/wificonfig_et.ts | TypeScript | bsd-2-clause | 14,175 |
/*
* Copyright (c) 2017, Loic Blot <loic.blot@unix-experience.fr>
* 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,
... | WinterWind/WinterWind | src/core/amqp/connection.cpp | C++ | bsd-2-clause | 9,314 |
var mongoose = require('mongoose');
module.exports = function (config) {
mongoose.connect(config.db);
var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error...'));
db.once('open', function callBack() {
console.log('multivision is opened');
});
var u... | dimylik/mean | server/config/mongoose.js | JavaScript | bsd-2-clause | 850 |
#nullable enable
using System;
using Esprima;
using Jint.Native;
using Jint.Native.Error;
using Jint.Native.Object;
using Jint.Pooling;
namespace Jint.Runtime
{
public class JavaScriptException : JintException
{
private string? _callStack;
public JavaScriptException(ErrorConstructor errorCons... | sebastienros/jint | Jint/Runtime/JavaScriptException.cs | C# | bsd-2-clause | 4,591 |
import re
from streamlink.plugin import Plugin
from streamlink.plugin.api import validate
YOUTUBE_URL = "https://www.youtube.com/watch?v={0}"
_url_re = re.compile(r'http(s)?://www\.skai.gr/.*')
_youtube_id = re.compile(r'<span\s+itemprop="contentUrl"\s+href="(.*)"></span>', re.MULTILINE)
_youtube_url_schema = validat... | back-to/streamlink | src/streamlink/plugins/skai.py | Python | bsd-2-clause | 889 |
/*
* Copyright (c) 2019, Kyle Sergio <https://github.com/ksergio39>
* Copyright (c) 2019, Bryce Altomare <https://github.com/Twinkiel0ver>
* Copyright (c) 2019, Kyle Stead <http://github.com/kyle1elyk>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, a... | runelite/runelite | runelite-client/src/main/java/net/runelite/client/plugins/worldmap/TransportationPointLocation.java | Java | bsd-2-clause | 15,466 |
from django.contrib.auth import authenticate, login, logout
from django.shortcuts import redirect, render
from users.forms import UserCreationForm
def create_user_account(request):
if request.method == 'POST':
form = UserCreationForm(request.POST)
if form.is_valid():
form.save()
... | kbarnes3/BaseDjangoSite | web/users/views.py | Python | bsd-2-clause | 696 |
/* Software SPAMS v2.1 - Copyright 2009-2011 Julien Mairal
*
* This file is part of SPAMS.
*
* SPAMS 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 3 of the License, or
* (at your opti... | wjbeksi/rgbd-covariance-descriptors | spams/dictLearn/mex/mexTrainDL.cpp | C++ | bsd-2-clause | 7,630 |
# The Nexus software is licensed under the BSD 2-Clause license.
#
# You should have recieved a copy of this license with the software.
# If you did not, you can find one at the following link.
#
# http://opensource.org/licenses/bsd-license.php
entitylist.append(["confetti",(x,y,z),6,6])
| TheArchives/Nexus | core/entities/confetti_create.py | Python | bsd-2-clause | 291 |
/* A Pseudo Random Number Generator - Mersenne twister
* http://en.wikipedia.org/wiki/Mersenne_twister
* http://my.opera.com/metrallik/blog/2013/04/19/c-class-for-random-generation-with-mersenne-twister-method
*/
#ifndef PSEUDORNG_HPP
#define PSEUDORNG_HPP
class PseudoRNG {
private:
static const unsign... | codeape/eye-engine | engine/PseudoRNG.hpp | C++ | bsd-2-clause | 637 |
package com.tvh.tricsql.test.load;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import org.junit.runner.Runner;
im... | teddym6/TricSqlLoad | TricSQlLoad/TricSqlLoad/src/com/tvh/tricsql/test/load/ParameterizedMultiThreadedRunner.java | Java | bsd-2-clause | 4,620 |
from .api import *
from .reduction import Reduce
from .cudadrv.devicearray import (device_array, device_array_like, pinned,
pinned_array, pinned_array_like, to_device, auto_device)
from .cudadrv import devicearray
from .cudadrv.devices import require_context, gpus
from .cudadrv.devices import get_co... | sklam/numba | numba/cuda/simulator/__init__.py | Python | bsd-2-clause | 1,170 |
/*
* Copyright (c) 2011-2022, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... | dartsim/dart | dart/dynamics/WeldJoint.hpp | C++ | bsd-2-clause | 3,722 |
from confduino.boardlist import boards_txt
from entrypoint2 import entrypoint
import logging
log = logging.getLogger(__name__)
@entrypoint
def remove_board(board_id):
"""remove board.
:param board_id: board id (e.g. 'diecimila')
:rtype: None
"""
log.debug('remove %s', board_id)
lines = boa... | ponty/confduino | confduino/boardremove.py | Python | bsd-2-clause | 452 |
/*
* Copyright (c) 2019, Dmitriy Shchekotin
* 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 ... | SupremeBeing/Silver-Hammer | silver-hammer-core/src/main/java/ru/silverhammer/processor/ControlProcessor.java | Java | bsd-2-clause | 5,459 |
require 'asdf'
require 'cgi'
require 'json'
module SpecTools
def run_server
$stdout.reopen("/dev/null", "a")
$stderr.reopen("/dev/null", "a")
Dir.chdir "./test_files"
Asdf::Server.start
end
def inner_html string
string.gsub(/^<html>/,"").gsub(/<\/html>/,"")
end
def e url
CGI.escape... | ptek/tofu-kozo | spec/spec_tools.rb | Ruby | bsd-2-clause | 1,231 |
/* blah_test.cpp -*- C++ -*-
Rémi Attab (remi.attab@gmail.com), 29 Mar 2014
FreeBSD-style copyright and disclaimer apply
Experimental tests
*/
#define BOOST_TEST_MAIN
#define BOOST_TEST_DYN_LINK
#define REFLECT_USE_EXCEPTIONS 1
#include "reflect.h"
#include "types/primitives.... | Remotion/reflect | tests/reflection_test.cpp | C++ | bsd-2-clause | 4,697 |
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({name: 'moment'})
/**
* Transforms a moment date value to a display value.
*
* @module common
* @class MomentPipe
*/
export class MomentPipe implements PipeTransform {
constructor() { }
/**
* Looks up the input value within the `choices.cfg` sect... | ohsu-qin/qiprofile | src/common/moment.pipe.ts | TypeScript | bsd-2-clause | 834 |
import time
import os
import threading
import collections
from xlog import getLogger
xlog = getLogger("cloudflare_front")
xlog.set_buffer(500)
import simple_http_client
from config import config
import http_dispatcher
import connect_control
import check_ip
class Front(object):
name = "cloudflare_front"
def ... | qqzwc/XX-Net | code/default/x_tunnel/local/cloudflare_front/front.py | Python | bsd-2-clause | 6,638 |
package com.grilledmonkey.niceql.structs;
import java.util.LinkedList;
import java.util.List;
import com.grilledmonkey.niceql.interfaces.SqlMigration;
public class Migration implements SqlMigration {
private final List<String> sql = new LinkedList<String>();
private int version;
public Migration() {
... | Auxx/niceql | niceql/src/com/grilledmonkey/niceql/structs/Migration.java | Java | bsd-2-clause | 707 |
/**
* Copyright 2015 Fabian Grutschus. 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 condition... | fabiang/mink-javascript-errors | src/ErrorHandler.js | JavaScript | bsd-2-clause | 3,639 |
package fr.sivrit.traceragent.options;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import fr.sivrit.tracingagent.options.AgentOptions;
public class AgentOptionsTe... | sivrit/TracingAgent | Agent/src/test/java/fr/sivrit/traceragent/options/AgentOptionsTest.java | Java | bsd-2-clause | 2,935 |
using System;
using System.Runtime.Serialization;
namespace Entr.Domain
{
[Serializable]
public class EntityNotFoundException : Exception
{
public EntityNotFoundException()
{
}
public EntityNotFoundException(string message) : base(message)
{
}
publ... | bradleyjford/entr | src/Entr.Domain/EntityNotFoundException.cs | C# | bsd-2-clause | 594 |
// Copyright (c) Steinwurf ApS 2016.
// All Rights Reserved
//
// Distributed under the "BSD License". See the accompanying LICENSE.rst file.
#include "tfhd.hpp"
#include <string>
namespace petro
{
namespace box
{
const std::string tfhd::TYPE = "tfhd";
}
}
| steinwurf/petro | src/petro/box/tfhd.cpp | C++ | bsd-3-clause | 260 |
//
// Copyright (c) 2009 Rutger ter Borg
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST_NUMERIC_BINDINGS_BLAS_LEVEL3_HPP
#define BOOST_NUMERIC_BINDINGS_BLAS_LEVEL3_HPP
#include <boost/numer... | quantmind/jflib | include/boost/numeric/bindings/blas/level3.hpp | C++ | bsd-3-clause | 356 |
<?php
namespace backend\models;
use Yii;
use yii\helpers\ArrayHelper;
use backend\models\Organization;
/**
* User model
*
* @property integer $id
* @property string $username
* @property string $password_hash
* @property string $password_reset_token
* @property string $email
* @property string $auth_key
* @p... | jinglinhu/cpp | backend/models/User.php | PHP | bsd-3-clause | 3,852 |
import warnings
import numpy as np
import numbers
import collections
from warnings import warn
from scipy.sparse import csr_matrix
from scipy.spatial.distance import cdist
from menpo.transform import WithDims
from .base import Shape
def bounding_box(closest_to_origin, opposite_corner):
r"""
Return a boundi... | grigorisg9gr/menpo | menpo/shape/pointcloud.py | Python | bsd-3-clause | 48,399 |
// This file was generated by silverstripe/cow from client/lang/src/el.js.
// See https://github.com/tractorcow/cow for details
if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
if (typeof(console) !== 'undefined') { // eslint-disable-line no-console
console.error('Class ss.i18n not defined'); ... | jonom/silverstripe-cms | client/lang/el.js | JavaScript | bsd-3-clause | 1,533 |
from typing import List, Iterable, Type
import gzip
import numpy as np
def get_string_vector_reader(dtype: Type = np.float32, columns: int = None):
"""Get a reader for vectors encoded as whitespace-separated numbers"""
def process_line(line: str, lineno: int, path: str) -> np.ndarray:
numbers = line.s... | bastings/neuralmonkey | neuralmonkey/readers/string_vector_reader.py | Python | bsd-3-clause | 1,449 |
#ifndef PYTHONIC_BUILTIN_STR_STRIP_HPP
#define PYTHONIC_BUILTIN_STR_STRIP_HPP
#include "pythonic/include/__builtin__/str/strip.hpp"
#include "pythonic/types/str.hpp"
#include "pythonic/utils/functor.hpp"
namespace pythonic
{
namespace __builtin__
{
namespace str
{
types::str strip(types::str cons... | pbrunet/pythran | pythran/pythonic/__builtin__/str/strip.hpp | C++ | bsd-3-clause | 744 |
using System;
using System.Net.Security;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Net;
using System.Security.Cryptography.X509Certificates;
using System.Security.Authentication;
using System.IO;
using System.IO.Compression;
using MsgPack.Serialization;
using MsgPack;
using zlib;
namesp... | brandonprry/gray_hat_csharp_code | ch12_automating_arachni_rpc/ArachniRPCSession.cs | C# | bsd-3-clause | 3,992 |
<?php
/**
* AistGitTools (http://mateuszsitek.com/projects/aist-git-tools)
*
* @link http://github.com/ma-si/aist-git-tools for the canonical source repository
* @copyright Copyright (c) 2006-2017 Aist Internet Technologies (http://aist.pl) All rights reserved.
* @license http://opensource.org/licenses/BSD... | ma-si/aist-git-tools | config/module.config.php | PHP | bsd-3-clause | 1,607 |