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 |
|---|---|---|---|---|---|
using System.Linq.Expressions;
using JetBrains.Annotations;
using Microsoft.EntityFrameworkCore.Query.Expressions;
using Microsoft.EntityFrameworkCore.Utilities;
using EFCore.SqlCe.Infrastructure.Internal;
using Microsoft.EntityFrameworkCore.Query.ExpressionVisitors;
using Microsoft.EntityFrameworkCore.Query;
namespa... | ErikEJ/EntityFramework.SqlServerCompact | src/Provider40/Query/ExpressionVisitors/SqlCeTranslatingExpressionVisitorFactory.cs | C# | apache-2.0 | 2,569 |
[//]: # (title: Using builders with builder type inference)
Kotlin supports _builder type inference_ (or builder inference), which can come in useful when you are working with
generic builders. It helps the compiler infer the type arguments of a builder call based on the type information
about other calls inside its ... | hltj/kotlin-web-site-cn | docs/topics/using-builders-with-builder-inference.md | Markdown | apache-2.0 | 9,704 |
<html lang='und'>
<!--
**
** Copyright 2006, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Un... | googlei18n/noto-source | test/CanadianAboriginal/fontdiff-und-Cans_chars.html | HTML | apache-2.0 | 900 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | tgroh/incubator-beam | sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsub/PubsubMessagePayloadOnlyCoder.java | Java | apache-2.0 | 2,160 |
$packageName = 'drivergenius'
$installerType = 'exe'
$silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'
$url = 'http://www.driver-soft.com/products/DG_Setup.exe'
$checksum = '115aea224d55e3235f2a783df2aafc269b5c2a44ba5e77bd752cb122594d3bc2'
$checksumType = 'sha256'
$validExitCodes = @(0)
Install-Chocolatey... | dtgm/chocolatey-packages | automatic/_output/drivergenius/17.0.0.139/tools/chocolateyInstall.ps1 | PowerShell | apache-2.0 | 674 |
---
layout: docwithnav
assignees:
- ashvayka
title: Tenants
description: ThingsBoard Tenants management
---
{% include docs/user-guide/ui/tenants.md %} | volodymyr-babak/thingsboard.github.io | docs/user-guide/ui/tenants.md | Markdown | apache-2.0 | 153 |
#
# Author:: AJ Christensen (<aj@hjksolutions.com>)
# Copyright:: Copyright (c) 2008 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... | ccope/chef | lib/chef/provider/service/init.rb | Ruby | apache-2.0 | 2,775 |
package com.ctrip.xpipe.redis.console.migration.status.migration.statemachine;
/**
* @author wenchao.meng
* <p>
* Aug 31, 2017
*/
public interface StateActionState {
void tryAction();
void tryRollback();
void actionDone();
void rollbackDone();
boolean allowTimeout();
v... | Yiiinsh/x-pipe | redis/redis-console/src/main/java/com/ctrip/xpipe/redis/console/migration/status/migration/statemachine/StateActionState.java | Java | apache-2.0 | 337 |
/*
* Copyright 2001-2016 Artima, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | scalatest/scalatest | jvm/common-test/src/main/scala/org/scalatest/prop/Classification.scala | Scala | apache-2.0 | 2,414 |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); ... | adufilie/flex-falcon | compiler/src/org/apache/flex/compiler/tree/ASTNodeID.java | Java | apache-2.0 | 9,795 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y... | antoinesd/weld-core | tests-arquillian/src/test/java/org/jboss/weld/tests/observers/pseudoscope/CustomScopedBean.java | Java | apache-2.0 | 1,286 |
package provision
import (
"bufio"
"fmt"
"net/http"
"strings"
"github.com/docker/machine/commands/mcndirs"
"github.com/docker/machine/libmachine/auth"
"github.com/docker/machine/libmachine/drivers"
"github.com/docker/machine/libmachine/engine"
"github.com/docker/machine/libmachine/log"
"github.com/docker/ma... | pdxjohnny/machine | libmachine/provision/rancheros.go | GO | apache-2.0 | 6,316 |
Bridge.merge(new System.Globalization.CultureInfo("quc", true), {
englishName: "K'iche'",
nativeName: "K'iche'",
numberFormat: Bridge.merge(new System.Globalization.NumberFormatInfo(), {
nanSymbol: "NeuN",
negativeSign: "-",
positiveSign: "+",
negativeInfinitySymbol: "-Infin... | AndreyZM/Bridge | Bridge/Resources/Locales/quc.js | JavaScript | apache-2.0 | 3,111 |
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | annarev/tensorflow | tensorflow/python/data/util/nest.py | Python | apache-2.0 | 16,774 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... | milliondreams/brisk | demos/portfolio_manager/resources/thrift.js | JavaScript | apache-2.0 | 18,902 |
use v5.18;
$_ = <<'HERE';
Out "Top 'Middle "Bottom" Middle' Out"
HERE
my @matches;
say "Matched!" if m/
(?(DEFINE)
(?<QUOTE_MARK> ['"])
(?<NOT_QUOTE_MARK> [^'"])
(?<QUOTE>
(
(?<quote>(?"E_MARK))
... | mishin/presentation | regex_recursion/amelia_9.pl | Perl | apache-2.0 | 589 |
package docs.home.persistence;
//#imports
import akka.NotUsed;
import com.lightbend.lagom.javadsl.api.ServiceCall;
import com.lightbend.lagom.javadsl.persistence.jdbc.JdbcSession;
import org.pcollections.PSequence;
import org.pcollections.TreePVector;
import javax.inject.Inject;
import java.sql.PreparedStatement;
imp... | edouardKaiser/lagom | docs/manual/java/guide/cluster/code/docs/home/persistence/JdbcReadSideQuery.java | Java | apache-2.0 | 1,645 |
// Source :- https://gist.github.com/czue/464479
// Param "o": JavaScript object
// Param "tab": tab or indent string for pretty output formatting omit or use empty string "" to supress.
// Returns: XML string
function json2xml(o, tab) {
var toXml = function(v, name, ind) {
var xml = "";
if (v inst... | prabushi/devstudio-tooling-esb | plugins/org.wso2.developerstudio.visualdatamapper.diagram/HTMLPages/js/DataTypeConverter.js | JavaScript | apache-2.0 | 7,930 |
package cn.itcast_02;
import java.util.HashMap;
import java.util.Set;
/*
* HashMap<String,Student>
* 键:String 学号
* 值:Student 学生对象
*/
public class HashMapDemo3 {
public static void main(String[] args) {
// 创建集合对象
HashMap<String, Student> hm = new HashMap<String, Student>();
// 创建学生对象
Student s1 = new Stu... | aircjm/JavaSE | day18/code/day18_Map_Son/src/cn/itcast_02/HashMapDemo3.java | Java | apache-2.0 | 907 |
/*
* Copyright (c) 2009-2014 Kazuho Oku, Tokuhiro Matsuno, Daisuke Murase,
* Shigeo Mitsunari
*
* The software is licensed under either the MIT License (below) or the Perl
* license.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and a... | billlin0904/librapid | thirdparty/picohttpparser/picohttpparser.c | C | apache-2.0 | 25,002 |
/**********************************************************************
// @@@ START COPYRIGHT @@@
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. ... | apache/incubator-trafodion | core/sql/ustat/hs_const.h | C | apache-2.0 | 11,346 |
if AUTOTAUNT_ENABLED then
local function runAutoTaunter()
local players = team.GetPlayers(TEAM_PROPS)
local pRange = TAUNT_MAX_PITCH - TAUNT_MIN_PITCH
--Render the Auto-taunt HUD
for _,ply in pairs(players) do
local taunt = table.Random( PROP_TAUNTS )
if ply:Alive() && ply:Team() == TEAM_PROPS then
... | Newbrict/ObjHunt | gamemode/server/autotaunt.lua | Lua | apache-2.0 | 1,520 |
/*
Copyright 2015 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | diditaxi/kubernetes | test/e2e/scheduler_predicates.go | GO | apache-2.0 | 15,042 |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <db/db.h>
#include <cmn/agent_cmn.h>
#include <oper/interface_common.h>
#include <oper/interface.h>
#include <oper/mirror_table.h>
#include "vr_genetlink.h"
#include "vr_interface.h"
#include "vr_types.h"
#include "nl_util.h"
#include... | rombie/contrail-controller | src/vnsw/agent/vrouter/stats_collector/agent_stats_collector.cc | C++ | apache-2.0 | 5,121 |
/*
* Copyright (C) 2005-2017 Qihoo 360 Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | dstmath/RePlugin | replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/loader2/PluginNativeLibsHelper.java | Java | apache-2.0 | 7,301 |
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gmf.runtime.common.core.command.CommandResu... | prabushi/devstudio-tooling-esb | plugins/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/commands/RouterMediatorOutputConnectorCreateCommand.java | Java | apache-2.0 | 3,162 |
// ----------------------------------------------------------------------------------
//
// Copyright 2011 Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://ww... | aidancasey/azure-sdk-tools | WindowsAzurePowershell/src/Management/Model/SubscriptionDataExtended.cs | C# | apache-2.0 | 3,858 |
<?php
/*
* Copyright 2013 Johannes M. Schmitt <johannes@scrutinizer-ci.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | Ocramius/php-analyzer | src/Scrutinizer/PhpAnalyzer/Model/Type/PhpTypeType.php | PHP | apache-2.0 | 8,557 |
<?php
namespace Laravel\Lumen\Http;
use Illuminate\Http\Request as BaseRequest;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use RuntimeException;
class Request extends BaseRequest
{
/**
* Determine if the route name matches a given pattern.
*
* @param mixed $patterns
* @return b... | tsugiproject/tsugi | vendor/laravel/lumen-framework/src/Http/Request.php | PHP | apache-2.0 | 1,845 |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Net.Http.Headers;
namespace System.Net.Http
{
internal static class HttpHeaderExtensions
{
... | Terminator-Aaron/Katana | aspnetwebsrc/System.Net.Http.Formatting/HttpHeaderExtensions.cs | C# | apache-2.0 | 799 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | guozhangwang/kafka | raft/src/test/java/org/apache/kafka/raft/internals/RecordsIteratorTest.java | Java | apache-2.0 | 8,200 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache/uima-uimafit | uimafit-core/src/test/java/org/apache/uima/fit/factory/testAes/Annotator3.java | Java | apache-2.0 | 2,107 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | smgoller/geode | geode-core/src/main/java/org/apache/geode/distributed/ServerLauncher.java | Java | apache-2.0 | 106,858 |
/*
* Copyright (c) 2008-2020, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | mesutcelik/hazelcast | hazelcast/src/main/java/com/hazelcast/cp/internal/session/SessionAccessor.java | Java | apache-2.0 | 1,432 |
/// Package log provides a useful logging subsystem for Hologram tools.
//
// By default, it will log INFO-level messages to the system log and standard out,
// but DEBUG-level messages can be output to these sinks as well. By defaut DEBUG
// messages are suppressed.
//
// Messages emitted to the terminal are colourise... | copumpkin/hologram | log/log.go | GO | apache-2.0 | 3,311 |
/* <![CDATA[ */
(function($){
"use strict";
$(document).ready(function(){
/* FitVid
================================================== */
$(".ut-video").fitVids();
/* Animated Skillbar
================================================== */
$(".ut-skill-active").each(function(i, e... | carlagiannina/cg | wp-content/plugins/ut-shortcodes/js/ut.scplugin.js | JavaScript | artistic-2.0 | 5,711 |
/*
¿´³ÌÐòд½á¹û
*/
class SwitchTest {
public static void main(String[] args) {
/*
int x = 2;
int y = 3;
switch(x){
default:
y++;
break;
case 3:
y++;
case 4:
y++;
}
System.out.println("y="+y);
*/
int x = 2;
int y = 3;
switch(x){
default:
y++;
case 3:
y++;
... | DuGuQiuBai/Java | day03/code/06_选择结构(switch语句)/SwitchTest.java | Java | artistic-2.0 | 377 |
package Zeta::IPC::SHM;
use strict;
use warnings;
use Errno;
use IPC::SysV qw(S_IRUSR S_IWUSR IPC_CREAT IPC_EXCL);
use Carp qw/confess/;
use Data::Dump;
#####################################################
# $class->($key,$size);
#####################################################
sub new {
my $class = shift;
... | epiphyllum/zeta | lib/Zeta/IPC/SHM.pm | Perl | artistic-2.0 | 2,732 |
//----------------------------------------------
// Behaviour Machine
// Copyright © 2014 Anderson Campos Cardoso
//----------------------------------------------
using UnityEngine;
using System.Collections;
namespace BehaviourMachine {
/// <summary>
/// OnCollisionStay is called once per frame fo... | maxrevilo/Mazzaroth | Assets/Plugins/BehaviourMachine/Source/Nodes/Functions/OnCollisionStay.cs | C# | artistic-2.0 | 1,820 |
---
id: 160-Zend_Form-Webinar-Wednesday
author: matthew
title: 'Zend_Form Webinar Wednesday'
draft: false
public: true
created: '2008-03-03T17:00:26-05:00'
updated: '2008-03-06T06:29:49-05:00'
tags:
- php
- webinar
- 'zend framework'
---
Just an FYI for anyone interested: I'll be performing a webinar for th... | vrkansagara/mwop.net | data/blog/2008/160-Zend_Form-Webinar-Wednesday.md | Markdown | bsd-2-clause | 789 |
<div>
<b>{{ obj }}</b>
{{ tostring(*ar.summary_row(obj)) }}
(<a href="{{ obj.publisher_url() }}">permalink</a> | {{ tostring(ar.obj2html(obj, "edit")) }})
</div>
| lino-framework/lino | lino/modlib/publisher/config/publisher/item.pub.html | HTML | bsd-2-clause | 162 |
<!DOCTYPE html>
<html>
<head>
<title>Phantomas Web Designer</title>
<meta charset="utf-8">
<link rel="icon" href="icons/favicon.ico">
<link rel="stylesheet" href="css/normalize.css" />
<link rel="stylesheet" href="css/w3.css" />
<link rel="stylesheet" href="css/main.css" />
<link rel="styleshee... | ecaruyer/phantomas-web | phantomas.html | HTML | bsd-2-clause | 4,294 |
/**
******************************************************************************
* File Name : DAC.h
* Date : 18/01/2015 10:00:30
* Description : This file provides code for the configuration
* of the DAC instances.
***************************************... | jirik09/Instrulab | V2/Projects/STM32F303 Nucleo32/Inc/dac.h | C | bsd-2-clause | 2,832 |
# $FreeBSD: soc2013/dpl/head/usr.bin/rwall/Makefile 125476 2004-02-04 11:59:08Z ru $
PROG = rwall
.include <bsd.prog.mk>
| dplbsd/zcaplib | head/usr.bin/rwall/Makefile | Makefile | bsd-2-clause | 123 |
class Libsndfile < Formula
desc "C library for files containing sampled sound"
homepage "http://www.mega-nerd.com/libsndfile/"
url "https://github.com/erikd/libsndfile/releases/download/v1.0.30/libsndfile-1.0.30.tar.bz2"
sha256 "ec898634766595438142c76cf3bdd46b77305d4a295dd16b29d024122d7a4b3f"
license "LGPL-2... | jvillard/homebrew-core | Formula/libsndfile.rb | Ruby | bsd-2-clause | 1,273 |
/*
* Copyright (C) 2014 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 conditions a... | aosm/WebCore | Modules/mediastream/RTCOfferAnswerOptions.cpp | C++ | bsd-2-clause | 4,306 |
#region FreeBSD
// Copyright (c) 2013, The Tribe
// 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... | TheTribe/hadoop-client | src/HBase.Stargate.Client/Api/ResourceBuilder.cs | C# | bsd-2-clause | 8,148 |
-- Copyright (C) 2017-2018 by chrono
-- curl 127.1/req_body -d 'xxxx'
ngx.req.read_body()
local data = ngx.req.get_body_data()
if data then
ngx.say("body: ", data)
else
local name = ngx.req.get_body_file()
local f = io.open(name, "r")
data = f:read("*a")
f:close()
end
ngx.req.set_body_data('yyy... | chronolaw/openresty_guide | service/http/req_body.lua | Lua | bsd-2-clause | 771 |
# typed: false
# frozen_string_literal: true
require "cmd/shared_examples/args_parse"
describe "Homebrew.deps_args" do
it_behaves_like "parseable arguments"
end
describe "brew deps", :integration_test do
it "outputs all of a Formula's dependencies and their dependencies on separate lines" do
setup_test_formu... | konqui/brew | Library/Homebrew/test/cmd/deps_spec.rb | Ruby | bsd-2-clause | 609 |
// 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 CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_
#define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_VIEW_MAC_H_
#import <Cocoa/Cocoa.h>
#incl... | ssaroha/node-webrtc | third_party/webrtc/include/chromium/src/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h | C | bsd-2-clause | 9,138 |
package cn.com.newcapec.citycard.common.po;
import cn.com.newcapec.citycard.common.po.base.BaseTLog;
public class TLog extends BaseTLog {
private static final long serialVersionUID = 1L;
/*[CONSTRUCTOR MARKER BEGIN]*/
public TLog () {
super();
}
/**
* Constructor for primary key
*/
public TLog (java.la... | zhangjunfang/eclipse-dir | eCardCity2.0/0.ecardcity-makecard/src/main/java/cn/com/newcapec/citycard/common/po/TLog.java | Java | bsd-2-clause | 698 |
from django.test import TestCase
from threadlocals.threadlocals import set_current_user
from django.contrib.auth import get_user_model
from powerdns.models import (
Domain,
DomainRequest,
Record,
RecordRequest,
)
from .utils import (
ServiceFactory,
assert_does_exist,
assert_not_exists,
)
... | dominikkowalski/django-powerdns-dnssec | powerdns/tests/test_requests.py | Python | bsd-2-clause | 2,984 |
/*-
* Copyright (C) 2010-2014, Centre National de la Recherche Scientifique,
* Institut Polytechnique de Bordeaux,
* Universite de Bordeaux.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitte... | jorik041/insight | src/kernel/Architecture_SPARC.hh | C++ | bsd-2-clause | 1,831 |
<?xml version="1.0" encoding="utf-8" ?>
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="g... | iveteran/xapian-scws | xapian-core_scws-1.2.18/docs/tests.html | HTML | bsd-2-clause | 12,511 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE TupleSections #-}
#if MIN_VERS... | Gabriel439/succinct | src/Succinct/Sequence.hs | Haskell | bsd-2-clause | 19,162 |
/****************************************************************************
* mm/mm_heap/mm_realloc.c
*
* Copyright (C) 2007, 2009, 2013-2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, ar... | IUTInfoAix/terrarium_2015 | nuttx/mm/mm_heap/mm_realloc.c | C | bsd-2-clause | 11,301 |
import os
import csv
import pickle
from indra.literature import id_lookup
from indra.sources import trips, reach, index_cards
from assembly_eval import have_file, run_assembly
if __name__ == '__main__':
pmc_ids = [s.strip() for s in open('pmcids.txt', 'rt').readlines()]
# Load the REACH reading output
wit... | pvtodorov/indra | indra/benchmarks/assembly_eval/combine4/run_combined.py | Python | bsd-2-clause | 1,490 |
/* ---------------------------------------------------------------------------- */
/* Atmel Microcontroller Software Support */
/* SAM Software Package License */
/* --------------------------------------------------------------------... | AtmelUniversityFrance/SAM4E-XPRO | Examples/CMSIS/Device/ATMEL/sam4c32/include/instance/matrix0.h | C | bsd-2-clause | 6,543 |
//
// ColumnCanvasElement.hpp
// G3MiOSSDK
//
// Created by Diego Gomez Deck on 4/12/13.
//
//
#ifndef __G3MiOSSDK__ColumnCanvasElement__
#define __G3MiOSSDK__ColumnCanvasElement__
#include "GroupCanvasElement.hpp"
#include "ICanvasUtils.hpp"
class ColumnCanvasElement : public GroupCanvasElement {
private:
cons... | AeroGlass/g3m | iOS/G3MiOSSDK/Commons/Basic/ColumnCanvasElement.hpp | C++ | bsd-2-clause | 1,017 |
/*-
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Rick Macklem at The University of Guelph.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... | dplbsd/soc2013 | head/sys/nfsserver/nfs_srvsubs.c | C | bsd-2-clause | 31,853 |
from django import template
from django.template.defaultfilters import stringfilter
register = template.Library()
STATUS_COLORS = {
'default': 'blue',
'queued': 'blue',
'undetermined': 'blue',
'infected': 'red',
'uninfected': 'green',
'deposited': 'blue',
'rejected': 'red',
'accepted':... | gustavofonseca/penne-core | frontdesk/templatetags/frontdesk.py | Python | bsd-2-clause | 1,931 |
template <>
class TypeInfoOf<OptName>: public TypeInfo {
static constexpr UUID uuid() {
return UUID();
}
public:
TypeInfoOf() : TypeInfo("OptName", uuid(), false, false, false, sbTokenEq, 0) {}
static const TypeInfoOf<OptName>* const instance() {
return &RawType<OptName>::rawType;
}
static Type t... | mozart/mozart2 | vm/vm/main/cached/OptName-implem-decl-after.hh | C++ | bsd-2-clause | 2,105 |
;Testname=test; Arguments=-O0 -fbin -opinsr16.bin; Files=stdout stderr pinsr16.bin
bits 16
pinsrw mm0,eax,0
pinsrw mm1,si,0
pinsrw mm2,[bx],0
pinsrw mm3,word [bx],0
pinsrb xmm0,eax,0
pinsrb xmm1,sil,0
; pinsrb xmm1,bh,0
pinsrb xmm2,[bx],0
pinsrb xmm3,byte [bx],0
pinsrw xmm0,eax,0
pinsrw xmm... | coapp-packages/nasm | test/pinsr16.asm | Assembly | bsd-2-clause | 1,081 |
class Strace < Formula
desc "Diagnostic, instructional, and debugging tool for the Linux kernel"
homepage "https://strace.io/"
url "https://github.com/strace/strace/releases/download/v5.15/strace-5.15.tar.xz"
sha256 "ebcac22f297335294dc654425cbc3ce013343bece6da2699e3aec86aee8d72dc"
license "LGPL-2.1-or-later"... | sjackman/homebrew-core | Formula/strace.rb | Ruby | bsd-2-clause | 1,141 |
#include "RotLib.h"
#include "Exception.h"
using namespace std;
RotLib::RotLib(PRECISION p, STORAGE s, int b, bool ph)
: lib_p(p), lib_s(s), basis(b), phase(ph)
{
int N = p -> base;
if (N != 2 && N != 10) {
cout << "non base-2 or base-10 target precision." << endl;
exit(1);
}
}
RotLib::RotLib(const char* file... | ajavadia/ScaffCC | scripts/gen_rotations/src/RotLib.cpp | C++ | bsd-2-clause | 12,194 |
/*
* Copyright (c) 2012, NTT Multimedia Communications Laboratories, Inc. and Koushik Sen
*
* 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 re... | handysama/janala2-csit6910 | src/janala/logger/inst/L2D.java | Java | bsd-2-clause | 1,784 |
/* $FreeBSD: soc2013/dpl/head/contrib/ipfilter/ipsend/.OLD/ip_compat.h 145562 2005-04-25 18:20:15Z darrenr $ */
/*
* (C)opyright 1995 by Darren Reed.
*
* This code may be freely distributed as long as it retains this notice
* and is not changed in any way. The author accepts no responsibility
* for the use of th... | dplbsd/zcaplib | head/contrib/ipfilter/ipsend/.OLD/ip_compat.h | C | bsd-2-clause | 5,247 |
default_app_config = 'comet.apps.CometIndicatorConfig' | LegoStormtroopr/comet-indicator-registry | comet/__init__.py | Python | bsd-2-clause | 54 |
// Copyright (C) 2018 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.flatMap
description: >
array-like objects can be flattened (typedArrays)
info: |
Array.prototype.flatMap ( mapperFunction [ , thisArg ] )
1. Let O be ? ToO... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Array/prototype/flatMap/array-like-objects-typedarrays.js | JavaScript | bsd-2-clause | 1,689 |
# Copyright 2012 Energid Technologies
from energid_nlp import logic
GENERATION_PROPOSITION = '$generate'
class Error(Exception):
pass
class Generator:
def __init__(self, kb):
self.kb = kb
def generate_prim(self, concept):
if isinstance(concept, logic.Description):
return self.generate_prim(c... | wiseman/energid_nlp | energid_nlp/generation.py | Python | bsd-2-clause | 1,810 |
/*
ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... | nameless1379/rplidar_3d | embedded/os/hal/ports/STM32/LLD/xWDGv1/wdg_lld.h | C | bsd-2-clause | 5,393 |
<?php
namespace NicklasW\PkmGoApi\Authentication\Config;
use NicklasW\PkmGoApi\Authentication\AccessToken;
use NicklasW\PkmGoApi\Authentication\Factory\Factory;
class Config {
/**
* @var string
*/
protected $user;
/**
* @var string
*/
protected $password;
/**
* @var st... | voxx/PokemonGoAPI-PHP | src/Authentication/Config/Config.php | PHP | bsd-2-clause | 2,395 |
cask 'mullvadvpn' do
version '2018.2'
sha256 '9a3436e566cd7577e78cfe87a77b874ce631da1502dc09914e14ca49ad26642f'
# github.com/mullvad/mullvadvpn-app was verified as official when first introduced to the cask
url "https://github.com/mullvad/mullvadvpn-app/releases/download/#{version}/MullvadVPN-#{version}.pkg"
... | cliffcotino/homebrew-cask | Casks/mullvadvpn.rb | Ruby | bsd-2-clause | 607 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The valueOf method returns its "this" value
es5id: 15.2.4.4_A1_T3
description: "\"this\" value is a string"
---*/
//CHECK#1
if (typeof Object.prototype.valueOf !== "function"... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Object/prototype/valueOf/S15.2.4.4_A1_T3.js | JavaScript | bsd-2-clause | 608 |
#include <QDebug>
#include <cdio/cdio.h>
#include "CdromManager.h"
#include "MetadataManager.h"
#include "Player.h"
#ifdef EMS_CDROM_RIPPER
#include "CdromRipper.h"
#endif
#define INTERFACE "com.EnnaMediaServer.Cdrom"
#define SIGNAL_NAME_INSERT "inserted"
#define SIGNAL_NAME_REMOVE "removed"
/* ---------------------... | raoulh/Enna-Media-Server | src/ems/CdromManager.cpp | C++ | bsd-2-clause | 10,171 |
package com.wut.resources.file;
import com.wut.datasources.CrudSource;
import com.wut.datasources.aws.S3FileSource;
import com.wut.model.Data;
import com.wut.model.map.MessageData;
import com.wut.model.scalar.BooleanData;
import com.wut.model.scalar.IdData;
import com.wut.model.scalar.StringData;
import com.wut.model.... | rpalmite/webutilitykit | queue/src/main/java/com/wut/resources/file/FileResource.java | Java | bsd-2-clause | 1,397 |
using System;
using System.IO;
namespace RestSharp.Portable.Content
{
/// <summary>
/// A stream that encapsulates another and avoids calling the <see cref="IDisposable.Dispose"/>
/// </summary>
internal class NonDisposableStream : Stream
{
private readonly Stream _baseStream;
///... | gabornemeth/restsharp.portable | src/FubarCoder.RestSharp.Portable.Core/Content/NonDisposableStream.cs | C# | bsd-2-clause | 1,941 |
"""Magic functions for running cells in various scripts."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
import errno
import os
import sys
import signal
import time
from subprocess import Popen, PIPE
import atexit
from IPython.core import magic_arguments
from I... | unnikrishnankgs/va | venv/lib/python3.5/site-packages/IPython/core/magics/script.py | Python | bsd-2-clause | 8,835 |
package org.ontoware.semweb4j.lessons.lesson6;
import org.ontoware.jrest.RestParams;
import org.ontoware.jrest.RestServer;
import org.ontoware.jrest.annotation.RestAddressByParameter;
import org.ontoware.jrest.response.RestResponse;
/*
* implements a RESTful web server with an integer adding restlet
*/
public clas... | semweb4j/semweb4j | org.semweb4j.tutorial/src/main/java/org/ontoware/semweb4j/lessons/lesson6/Step1.java | Java | bsd-2-clause | 2,151 |
#include "catch.hpp"
#include <osmium/builder/attr.hpp>
#include <osmium/memory/buffer.hpp>
#include <osmium/tags/matcher.hpp>
#include <iterator>
#include <string>
#include <type_traits>
#include <utility>
static_assert(std::is_default_constructible<osmium::TagMatcher>::value, "TagMatcher should be default construc... | Project-OSRM/osrm-backend | third_party/libosmium/test/t/tags/test_tag_matcher.cpp | C++ | bsd-2-clause | 4,540 |
///////////////////////////////////////////////////////////////////////////////
// Name: tests/controls/itemcontainertest.h
// Purpose: wxItemContainer unit test
// Author: Steven Lamerton
// Created: 2010-06-29
// Copyright: (c) 2010 Steven Lamerton
///////////////////////////////////////////////... | adouble42/nemesis-current | wxWidgets-3.1.0/tests/controls/itemcontainertest.h | C | bsd-2-clause | 2,093 |
cask "rhinoceros" do
version "6.32.20340.21002"
sha256 "60108e98e2354a063210b18d046378f96ba4fc0060c332c7524f86c350742750"
url "https://files.mcneel.com/rhino/#{version.major}/mac/releases/rhino_#{version}.dmg",
verified: "mcneel.com/"
name "Rhinoceros"
homepage "https://www.rhino3d.com/"
livecheck d... | kingthorin/homebrew-cask | Casks/rhinoceros.rb | Ruby | bsd-2-clause | 768 |
package introspect
import (
"encoding/xml"
"strings"
"github.com/godbus/dbus/v5"
)
// Call calls org.freedesktop.Introspectable.Introspect on a remote object
// and returns the introspection data.
func Call(o dbus.BusObject) (*Node, error) {
var xmldata string
var node Node
err := o.Call("org.freedesktop.DBus... | godbus/dbus | introspect/call.go | GO | bsd-2-clause | 585 |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use kartik\date\DatePicker;
use yii\web\JsExpression;
use yii\widgets\Pjax;
use app\models\Maestros;
//use kartik\select2\Select2;
/* @var $this yii\web\View */
/* @var $nuevo app\models\TblPersonaSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<!--<fo... | lhuapaya/pnia | views/-proyecto/datosgenerales.php | PHP | bsd-3-clause | 27,697 |
#!/bin/bash
_term() {
echo "Caught TERM signal"
kill -TERM "$SERVICE"
kill -TERM "$KBFS"
exit 0
}
trap _term SIGTERM
if [ -z "$KEYBASE_TEST_ROOT_CERT_PEM" ]; then
export KEYBASE_TEST_ROOT_CERT_PEM="$(echo $KEYBASE_TEST_ROOT_CERT_PEM_B64 | base64 -d)";
fi
if [ -z "$KBFS_METADATA_VERSION" ]; then
... | keybase/kbfs | kbfsfuse/kbfsfuse.sh | Shell | bsd-3-clause | 1,119 |
<!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.5.0_22) on Wed Mar 02 16:46:13 EST 2011 -->
<TITLE>
Uses of Class gov.nih.nci.cabig.caaers.web.rule.notification.EditReportDefinitionController
</... | CBIIT/caaers | caAERS/software/docs/gov/nih/nci/cabig/caaers/web/rule/notification/class-use/EditReportDefinitionController.html | HTML | bsd-3-clause | 6,544 |
# flake8: NOQA
from . import datasets
from . import evaluations
from . import extensions
from . import models
from . import utils
| start-jsk/jsk_apc | demos/grasp_fusion/grasp_fusion_lib/contrib/grasp_fusion/__init__.py | Python | bsd-3-clause | 131 |
/*
* Check decoding of migrate_pages syscall.
*
* Copyright (c) 2016 Dmitry V. Levin <ldv@altlinux.org>
* 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 co... | cuviper/strace | tests/migrate_pages.c | C | bsd-3-clause | 1,969 |
/*
* Copyright (c) 2009, Swedish Institute of Computer Science.
* 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
* n... | miarcompanies/sdn-wise-contiki | contiki/tools/cooja/java/org/contikios/cooja/dialogs/CompileContiki.java | Java | bsd-3-clause | 20,398 |
/*******************************************************************************
* Copyright (C) 2015 Brocade Communications Systems, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution,... | brocade/vTM-eclipse | plugin/src/com/zeus/eclipsePlugin/project/operations/NewRuleOp.java | Java | bsd-3-clause | 2,149 |
<?php
/**
* TOP API: taobao.tmc.messages.produce request
*
* @author auto create
* @since 1.0, 2016.01.29
*/
class TmcMessagesProduceRequest
{
/**
* tmc消息列表, 最多50条,元素结构与taobao.tmc.message.produce一致,用json表示的消息列表。例如:[{"content": "{\"tid\":1234554321,\"status\":\"X_LOGISTICS_PRINTED\",\"action_time\":\"2014-08-0... | jasonzhangxian/scanner | common/components/topsdk/top/request/TmcMessagesProduceRequest.php | PHP | bsd-3-clause | 1,222 |
package com.oracle.xmlns.apps.crmcommon.activities.activitiesservice._transient.types;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation... | dushmis/Oracle-Cloud | PaaS_SaaS_Accelerator_RESTFulFacade/FusionProxy_ActivityAppointmentService/src/com/oracle/xmlns/apps/crmcommon/activities/activitiesservice/_transient/types/MergeAppointmentAsyncResponse.java | Java | bsd-3-clause | 1,815 |
<?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... | magicobject/zf2 | library/Zend/GData/App/MediaFileSource.php | PHP | bsd-3-clause | 3,784 |
'use strict';
const test = require('tape'),
routes = require('../lib/app/routes.js');
test('Routes tests', t => {
t.plan(2);
t.test('should use room from params for route redir', st => {
st.plan(4);
const query = { room: 'random' },
redir = routes.findRedirect(query),
url = 'htt... | dhcodes/camperbot | test/routes.spec.js | JavaScript | bsd-3-clause | 915 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0;">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>Tableviews 1</title>
<link rel="stylesheet" href="chui/chui.css">
<script src="ch... | rbiggs/chocolatechip-ui.com | downloads/examples/tableview-with-tablefooter.html | HTML | bsd-3-clause | 1,318 |
<?php
/**
* PHPFrame/Mapper/SQLPersistenceFactory.php
*
* PHP version 5
*
* @category PHPFrame
* @package Mapper
* @author Lupo Montero <lupo@e-noise.com>
* @copyright 2010 The PHPFrame Group
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @link http://github.com/P... | PHPFrame/PHPFrame | src/PHPFrame/Mapper/SQLPersistenceFactory.php | PHP | bsd-3-clause | 2,946 |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace common\filters;
use yii\base\Component;
use yii\base\Action;
use yii\web\User;
use yii\web\Request;
use yii\web\Controller;
/**
* This class represents an ... | rajanishtimes/basicyii | common/filters/AccessRule.php | PHP | bsd-3-clause | 6,212 |
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe UserAcknowledgementsHelper do
#Delete this example and add some real ones or delete this file
it "should be included in the object returned by #helper" do
included_modules = (class << helper; self; end).send :included_modules
... | camelpunch/simply_agile | spec/helpers/user_acknowledgements_helper_spec.rb | Ruby | bsd-3-clause | 391 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE23_Relative_Path_Traversal__char_environment_ofstream_16.cpp
Label Definition File: CWE23_Relative_Path_Traversal.label.xml
Template File: sources-sink-16.tmpl.cpp
*/
/*
* @description
* CWE: 23 Relative Path Traversal
* BadSource: environment Read input from ... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE23_Relative_Path_Traversal/s02/CWE23_Relative_Path_Traversal__char_environment_ofstream_16.cpp | C++ | bsd-3-clause | 3,250 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><TITLE
>Graphics.UI.SDL</TITLE
><LINK HREF = "haddock.css" REL = "stylesheet" TYPE = "text/css"
></HEAD
><BODY
><TABLE CLASS = "vanil... | vincenthz/hs-sdl | doc/Graphics.UI.SDL.html | HTML | bsd-3-clause | 4,975 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.