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 |
|---|---|---|---|---|---|
# -------------------------------------------------------------------------------------------------
# Copyright (c) 2015 zsh-syntax-highlighting contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted
# provided that the following conditions... | codeprimate/arid | zsh/zsh-syntax-highlighting/highlighters/main/test-data/unbackslash.zsh | Shell | bsd-2-clause | 2,090 |
require 'shellwords'
require 'optparse'
require 'rake/task_manager'
require 'rake/file_list'
require 'rake/thread_pool'
require 'rake/thread_history_display'
require 'rake/trace_output'
require 'rake/win32'
module Rake
CommandLineOptionError = Class.new(StandardError)
##
# Rake main application object. When ... | jingyu91/jingyu91.github.io | vendor/cache/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb | Ruby | mit | 23,699 |
function gi() { curl http://gitignore.io/api/$@ ;}
_gitignireio_get_command_list() {
curl -s http://gitignore.io/api/list | tr "," "\n"
}
_gitignireio () {
compset -P '*,'
compadd -S '' `_gitignireio_get_command_list`
}
compdef _gitignireio gi | jeanlauliac/oh-my-zsh | plugins/gitignore/gitignore.plugin.zsh | Shell | mit | 252 |
import {Date, DateWrapper} from 'angular2/src/facade/lang';
import {Map} from 'angular2/src/facade/collection';
export class MeasureValues {
constructor(public runIndex: number, public timeStamp: Date,
public values: {[key: string]: any}) {}
toJson() {
return {
'timeStamp': DateWrapper.toJ... | erictsangx/angular | modules/benchpress/src/measure_values.ts | TypeScript | mit | 415 |
/*
* Copyright (C) 2009 Texas Instruments Inc
* Copyright (C) 2014 Lad, Prabhakar <prabhakar.csengg@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Lic... | bas-t/linux_media | drivers/media/platform/davinci/vpif_capture.c | C | gpl-2.0 | 44,209 |
// Copyright (C) 2011-2014 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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, or (at your op... | iains/darwin-gcc-4-9 | libstdc++-v3/testsuite/23_containers/multimap/modifiers/erase/47628.cc | C++ | gpl-2.0 | 1,145 |
/*
* linux/arch/arm/mach-realview/realview_eb.c
*
* Copyright (C) 2004 ARM Limited
* Copyright (C) 2000 Deep Blue Solutions Ltd
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; eithe... | zhengsjembest/linux_am335x | linux-3.2.0-psp04.06.00.08.sdk/arch/arm/mach-realview/realview_eb.c | C | gpl-2.0 | 13,095 |
/*
* linux/drivers/media/video/samsung/mfc5x/mfc_buf.h
*
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* Buffer manager for Samsung MFC (Multi Function Codec - FIMV) driver
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU... | OtherCrashOverride/linux | drivers/media/video/samsung/mfc5x/mfc_buf.h | C | gpl-2.0 | 7,152 |
/* A Bison parser, made by GNU Bison 1.875. */
/* Skeleton parser for Yacc-like parsing with Bison,
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as pub... | omelnic/sphinxsearch | src/yysphinxql.h | C | gpl-2.0 | 7,399 |
/*
* ISP1362 HCD (Host Controller Driver) for USB.
*
* Copyright (C) 2005 Lothar Wassmann <LW@KARO-electronics.de>
*
* Derived from the SL811 HCD, rewritten for ISP116x.
* Copyright (C) 2005 Olav Kongas <ok@artecdesign.ee>
*
* Portions:
* Copyright (C) 2004 Psion Teklogix (for NetBook PRO)
* Copyright (C) 200... | thanhnhiel/linux-emcraft | drivers/usb/host/isp1362-hcd.c | C | gpl-2.0 | 89,685 |
/* linux/drivers/i2c/busses/i2c-s3c2410.c
*
* Copyright (C) 2004,2005 Simtec Electronics
* Ben Dooks <ben@simtec.co.uk>
*
* S3C2410 I2C Controller
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software ... | ghmajx/asuswrt-merlin | release/src-rt/linux/linux-2.6/drivers/i2c/busses/i2c-s3c2410.c | C | gpl-2.0 | 20,842 |
/* Copyright (c) 2012, 2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in th... | kondors1995/Soviet-kernel | include/soc/qcom/memory_dump.h | C | gpl-2.0 | 2,708 |
/* { dg-do compile } */
/* { dg-options "-mavx512f -O2" } */
/* { dg-final { scan-assembler-times "vpmovzxbq\[ \\t\]+\[^\n\]*%xmm\[0-9\]\[^\n\]*%zmm\[0-9\]\[^\{\]" 1 } } */
/* { dg-final { scan-assembler-times "vpmovzxbq\[ \\t\]+\[^\n\]*%xmm\[0-9\]\[^\n\]*%zmm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 1 } } */
/* { dg-final { scan-a... | periclesroalves/gcc-conair | gcc/testsuite/gcc.target/i386/avx512f-vpmovzxbq-1.c | C | gpl-2.0 | 670 |
using System;
using System.Text;
namespace Server.Ethics.Evil
{
public sealed class UnholySense : Power
{
public UnholySense()
{
this.m_Definition = new PowerDefinition(
0,
"Unholy Sense",
"Drewrok Velgo",
"");
... | LeonG-ZA/JustUO-KR | Scripts/Services/Ethics/Evil/Powers/UnholySense.cs | C# | gpl-3.0 | 2,730 |
#!/bin/bash
export PATH=$HOME/.local/bin:/usr/local/bin:$HOME/prefix/bin:$HOME/APM/px4/gcc-arm-none-eabi-4_7-2014q2/bin:$PATH
export PYTHONUNBUFFERED=1
export PYTHONPATH=$HOME/APM
cd $HOME/APM || exit 1
test -n "$FORCEBUILD" || {
(cd APM && git fetch > /dev/null 2>&1)
newtags=$(cd APM && git fetch --tags | wc -l)
o... | raydtang/ardupilot | Tools/scripts/build_autotest.sh | Shell | gpl-3.0 | 4,629 |
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2010 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
package org.appcelerator.kroll;
public class KrollPropertyChange {
protected String n... | arnaudsj/titanium_mobile | android/titanium/src/org/appcelerator/kroll/KrollPropertyChange.java | Java | apache-2.0 | 846 |
/* Copyright (c) 2011 by The Authors.
* Published under the LGPL 2.1 license.
* See /license-notice.txt for the full text of the license notice.
* See /license.txt for the full text of the license.
*/
/**
* Supplies a set of utility methods for building Geometry objects from lists
* of Coordinates.
*
* Note th... | mileswwatkins/ABiteBetweenUs | utilities/scripts/jsts/src/jsts/geom/GeometryFactory.js | JavaScript | apache-2.0 | 8,870 |
class Ipcalc < Formula
homepage "http://jodies.de/ipcalc"
url "http://jodies.de/ipcalc-archive/ipcalc-0.41.tar.gz"
sha256 "dda9c571ce3369e5b6b06e92790434b54bec1f2b03f1c9df054c0988aa4e2e8a"
def install
bin.install "ipcalc"
end
test do
system "#{bin}/ipcalc", "--nobinary", "192.168.0.1/24"
end
end... | bendemaree/homebrew | Library/Formula/ipcalc.rb | Ruby | bsd-2-clause | 321 |
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the qmake spec of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees ho... | you21979/phantomjs | src/qt/qtbase/mkspecs/common/posix/qplatformdefs.h | C | bsd-3-clause | 5,472 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | chriszeng8/vowpal_wabbit | cs_test/Properties/AssemblyInfo.cs | C# | bsd-3-clause | 1,434 |
#!/usr/bin/env python
"""Sample Input Reader for map job."""
import random
import string
import time
from mapreduce import context
from mapreduce import errors
from mapreduce import operation
from mapreduce.api import map_job
# pylint: disable=invalid-name
# Counter name for number of bytes read.
COUNTER_IO_READ_BYT... | sahiljain/catapult | third_party/mapreduce/mapreduce/api/map_job/sample_input_reader.py | Python | bsd-3-clause | 3,468 |
<!DOCTYPE html>
<!--
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
-->
<html>
<head>
<meta charset="utf-8">
<title>Append To Page Element Using JavaScript Code — CKEditor Sample</title>
<script src="../../ckedit... | x-meta/xworker | xworker_explorer/xworker/webroot/fckeditor/4_1/samples/old/appendto.html | HTML | apache-2.0 | 2,259 |
/**
* angular-strap
* @version v2.1.6 - 2015-01-11
* @link http://mgcrea.github.io/angular-strap
* @author Olivier Louvignes (olivier@mg-crea.com)
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
"use strict";angular.module("mgcrea.ngStrap.helpers.dateFormatter",[]).service("$dateFormatter",["$lo... | spawashe/poc-mango-cad | www/lib/bower_components/angular-strap/dist/modules/date-formatter.min.js | JavaScript | mit | 873 |
/* AFS superblock handling
*
* Copyright (c) 2002, 2007 Red Hat, Inc. All rights reserved.
*
* This software may be freely redistributed under the terms of the
* GNU General Public License.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free... | KOala888/GB_kernel | linux_kernel_galaxyplayer-master/fs/afs/super.c | C | gpl-2.0 | 12,261 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2016 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* An Image is a light-weight object you can use to display anything that doesn't need physics or animation.
* It can s... | stoneman1/phaser | v2/src/gameobjects/Image.js | JavaScript | mit | 3,099 |
#ifndef _ASM_X86_PGTABLE_64_H
#define _ASM_X86_PGTABLE_64_H
#include <linux/const.h>
#include <asm/pgtable_64_types.h>
#ifndef __ASSEMBLY__
/*
* This file contains the functions and defines necessary to modify and use
* the x86-64 page table tree.
*/
#include <asm/processor.h>
#include <linux/bitops.h>
#include <... | bas-t/linux_media | arch/x86/include/asm/pgtable_64.h | C | gpl-2.0 | 5,183 |
/******************************************************************
*
* Copyright 2015 Samsung Electronics 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
*
... | kadasaikumar/iotivity-1.2.1 | service/simulator/inc/simulator_remote_resource.h | C | gpl-3.0 | 10,829 |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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 option) any later version.
//
// Moodle ... | marcusgreen/moodle | lib/classes/external/exporter.php | PHP | gpl-3.0 | 25,453 |
class Foo {
public void foo() {
int i;
}
} | asedunov/intellij-community | java/java-tests/testData/inspection/defUse/UnusedVariable.java | Java | apache-2.0 | 50 |
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build windows
package windows_test
import (
"fmt"
"internal/syscall/windows"
"os"
"os/exec"
"syscall"
"testing"
"unsafe"
)
func TestRunAtLowIntegr... | Cofyc/go | src/internal/syscall/windows/exec_windows_test.go | GO | bsd-3-clause | 2,860 |
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="author" content="{{ site.author.... | lachlanhurst/observedearth-web | _includes/head.html | HTML | mit | 2,326 |
#datatable-filter-form td,
#summary-filter-form td,
#datalist-filter-form td {
border: none;
}
.filter-controls {
clear: both;
}
/*button.btn.btn-primary.btn-filter,*/
input.btn.btn-primary.filter-submit {
width: 90%;
padding-right: 5px;
padding-left: 5px;
}
input.btn.btn-primary.filter-submit.fi... | devinbalkind/eden | static/themes/bootstrap/filter.css | CSS | mit | 1,219 |
<script>
// HACK: This is not an ideal way to deliver chrome messages
// to a innef frame content but seems only way that would
// make `event.source` an this (outer frame) window.
window.onmessage = function(event) {
var frame = document.querySelector("iframe");
var content = frame.contentWindow;
// If message i... | willium/browser-extension | tools/addon-sdk-1.16/lib/sdk/ui/frame/view.html | HTML | mit | 794 |
/*
* linux/fs/buffer.c
*
* Copyright (C) 1991, 1992, 2002 Linus Torvalds
*/
/*
* Start bdflush() with kernel_thread not syscall - Paul Gortmaker, 12/95
*
* Removed a lot of unnecessary code and simplified things now that
* the buffer cache isn't our primary cache - Andrew Tridgell 12/96
*
* Speed up hash,... | soap-DEIM/l4android | fs/buffer.c | C | gpl-2.0 | 87,133 |
/* Helper handling for netfilter. */
/* (C) 1999-2001 Paul `Rusty' Russell
* (C) 2002-2006 Netfilter Core Team <coreteam@netfilter.org>
* (C) 2003,2004 USAGI/WIDE Project <http://www.linux-ipv6.org>
* (C) 2006-2012 Patrick McHardy <kaber@trash.net>
*
* This program is free software; you can redistribute it and/or... | qzhuyan/linux | net/netfilter/nf_conntrack_helper.c | C | gpl-2.0 | 13,479 |
# Testing and Debugging
## Testing
[Moved here](faq_misc.md#testing)
## Debugging :id=debugging
[Moved here](faq_debug.md#debugging)
| kmtoki/qmk_firmware | docs/newbs_testing_debugging.md | Markdown | gpl-2.0 | 137 |
/*
* 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 agreed to in writing, software
* distribut... | kuzemchik/presto | presto-main/src/main/java/com/facebook/presto/metadata/SpecializedFunctionKey.java | Java | apache-2.0 | 2,138 |
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
package com.skia;
import javax.microedition.khronos.egl.EGL10;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.egl.EGLDisplay;
import javax... | zero-rp/miniblink49 | third_party/skia/platform_tools/android/app/src/com/skia/SkiaSampleView.java | Java | apache-2.0 | 10,208 |
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
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... | aweiteka/cri-o | vendor/k8s.io/kubernetes/pkg/apis/rbac/v1beta1/zz_generated.conversion.go | GO | apache-2.0 | 15,279 |
package org.apache.maven.repository.metadata;
/*
* 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 Apach... | apache/maven | maven-compat/src/main/java/org/apache/maven/repository/metadata/GraphConflictResolver.java | Java | apache-2.0 | 1,822 |
// FIXME: Tell people that this is a manifest file, real code should go into discrete files
// FIXME: Tell people how Sprockets and CoffeeScript works
//
//= require jquery
//= require jquery_ujs
//= require_tree .
| danielwanja/bulk_data_source_flex | testrailsapp/app/assets/javascripts/application.js | JavaScript | mit | 215 |
## m.sync
This method takes a list of promises and returns a promise that resolves when all promises in the input list have resolved. See [`m.deferred`](mithril.deferred.md) for more information on promises.
---
### Usage
```javascript
var greetAsync = function(delay) {
var deferred = m.deferred();
setTimeout(fun... | pingpp/community | vendor/flarum/core/js/bower_components/mithril/docs/mithril.sync.md | Markdown | mit | 1,114 |
/*
* Copyright (C) 2000-2003 Axis Communications AB
*
* Authors: Bjorn Wesen (bjornw@axis.com)
* Mikael Starvik (starvik@axis.com)
* Tobias Anderberg (tobiasa@axis.com), CRISv32 port.
*
* This file handles the architecture-dependent parts of process handling..
*/
#include <linux/sc... | aberlemont/linux | arch/cris/arch-v32/kernel/process.c | C | gpl-2.0 | 4,772 |
/*
* Copyright 2012-15 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify... | hannes/linux | drivers/gpu/drm/amd/display/dc/dce112/dce112_compressor.c | C | gpl-2.0 | 25,103 |
// @(#)root/tmva $Id$
// Author: Andreas Hoecker, Joerg Stelzer, Helge Voss
/**********************************************************************************
* Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
* Package: TMVA ... | beniz/root | tmva/tmva/inc/TMVA/Configurable.h | C | lgpl-2.1 | 8,255 |
/*
Copyright 2017 The Kubernetes Authors.
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 agreed to in writing, ... | aleksandra-malinowska/autoscaler | vertical-pod-autoscaler/vendor/k8s.io/kubernetes/pkg/volume/csi/csi_attacher.go | GO | apache-2.0 | 9,693 |
#include "debug.h"
#include <stdarg.h>
#include <windows.h>
#include <stdio.h> /* vsprintf */
#define DPRINTF_BUF_SZ 1024
void OutputDebugStringf(char *fmt, ...)
{
#ifdef _DEBUG
va_list args;
char buf[DPRINTF_BUF_SZ];
va_start(args, fmt);
vsprintf(buf, fmt, args);
OutputDebugString(buf);
#endif
}
| ninetian/ffmpeginstaller | xvidcore/dshow/src/debug.c | C | apache-2.0 | 307 |
/*
* 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 ... | WilliamNouet/nifi | nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/flow/FlowElection.java | Java | apache-2.0 | 3,255 |
<?php
/**
* This file is part of PHPWord - A pure PHP library for reading and writing
* word processing documents.
*
* PHPWord is free software distributed under the terms of the GNU Lesser
* General Public License version 3 as published by the Free Software Foundation.
*
* For the full copyright and license inf... | vikramraj87/refgen3 | vendor/phpoffice/phpword/tests/PhpWord/Tests/Exception/InvalidStyleExceptionTest.php | PHP | bsd-3-clause | 1,334 |
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-image-slice" />
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-image" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
div {
border: ... | scheib/chromium | third_party/blink/web_tests/external/wpt/css/css-backgrounds/border-image-slice-shorthand-reset.html | HTML | bsd-3-clause | 760 |
#include <sys/mman.h>
#include "syscall.h"
int mlockall(int flags)
{
return syscall(SYS_mlockall, flags);
}
| youtube/cobalt | third_party/musl/src/mman/mlockall.c | C | bsd-3-clause | 110 |
(function ($, Drupal) {
/**
* Toggle show/hide links for off canvas layout.
*/
Drupal.behaviors.omegaOffCanvasLayout = {
attach: function (context) {
$('#off-canvas').click(function(e) {
if (!$(this).hasClass('is-visible')) {
$(this).addClass('is-visible');
e.preventDefau... | sgurlt/drupal-sandbox | www/sites/all/themes/omega/omega/layouts/off-canvas/assets/off-canvas.js | JavaScript | gpl-2.0 | 827 |
/*************************************************************************/
/* reference.h */
/*************************************************************************/
/* This file is part of: */
/* ... | a12n/godot | core/reference.h | C | mit | 7,264 |
/// <reference path="MediaStream.d.ts" />
/// <reference path="RTCPeerConnection.d.ts" />
var config: RTCConfiguration =
{ iceServers: [{ urls: "stun.l.google.com:19302" }] };
var constraints: RTCMediaConstraints =
{ mandatory: { offerToReceiveAudio: true, offerToReceiveVideo: true } };
var peerConnection: RT... | ryan-codingintrigue/DefinitelyTyped | webrtc/RTCPeerConnection-tests.ts | TypeScript | mit | 3,396 |
/*!
* OOjs UI v0.12.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2015 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2015-08-13T21:01:12Z
*/
.oo-ui-icon-bigger {
background-image: url("themes/mediawiki/images/icons/bigger-rtl.png"... | brix/cdnjs | ajax/libs/oojs-ui/0.12.4/oojs-ui-mediawiki-icons-editing-styling.rtl.css | CSS | mit | 76,751 |
#!/usr/bin/env python2
#
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from test_framework.test_framework import ComparisonTestFramework
from test_framework.util import *
from test_framework.mininode import CTransaction, N... | octocoin-project/octocoin | qa/rpc-tests/bip65-cltv-p2p.py | Python | mit | 6,411 |
/*! MVW-Injection (0.2.5). (C) 2015 Xavier Boubert. MIT @license: en.wikipedia.org/wiki/MIT_License */
(function(root) {
'use strict';
var DependencyInjection = new (function DependencyInjection() {
var _this = this,
_interfaces = {};
function _formatFactoryFunction(factoryFunction) {
if (... | dlueth/cdnjs | ajax/libs/mvw-injection/0.2.5/dependency-injection.js | JavaScript | mit | 5,110 |
/**
* Copyright 2013-2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... | demns/todomvc-perf-comparison | todomvc/react/node_modules/react/lib/ReactCompositeComponent.js | JavaScript | mit | 48,272 |
<?php
/**
* System messages translation for CodeIgniter(tm)
*
* @author CodeIgniter community
* @author Mutasim Ridlo, S.Kom
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://opensource.org/licenses/MIT MIT License
* @link http://codeigniter.com
... | sbrodin/FolletXmasGifts | system/language/indonesian/ftp_lang.php | PHP | mit | 1,570 |
ALTER TABLE db_version CHANGE COLUMN required_z0792_s0103_02_mangos_command required_z0801_s0114_02_mangos_command bit;
DELETE FROM command WHERE name IN ('ticket');
INSERT INTO command (name, security, help) VALUES
('ticket',2,'Syntax: .ticket on\r\n .ticket off\r\n .ticket #num\r\n .ticket $char... | vanilla-wow/MaNGOSZero | sql/updates/z0801_s0114_02_mangos_command.sql | SQL | gpl-2.0 | 565 |
// SPDX-License-Identifier: GPL-2.0+
/*
* vsp1_drv.c -- R-Car VSP1 Driver
*
* Copyright (C) 2013-2015 Renesas Electronics Corporation
*
* Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
*/
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#incl... | apopple/linux | drivers/media/platform/vsp1/vsp1_drv.c | C | gpl-2.0 | 21,913 |
/*
* Copyright (C) 2012-2018 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#pragma once
#include "FileItem.h"
#include <string>
#include <Neptune/Source/Core/NptReferences.h>
#include <Neptune/Source/... | scbash/xbmc | xbmc/network/upnp/UPnPInternal.h | C | gpl-2.0 | 4,650 |
/*
* carlu - userspace testing utility for ar9170 devices
*
* Firmware parsers
*
* Copyright 2009-2011 Christian Lamparter <chunkeey@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Softwar... | PennartLoettring/Poettrix | rootfs/usr/lib/firmware/carl9170fw/tools/carlu/src/fw.c | C | gpl-2.0 | 3,649 |
// Copyright 2009 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <memory>
#include "AudioCommon/Mixer.h"
#include "Common/CommonTypes.h"
class SoundStream
{
protected:
std::unique_ptr<Mixer> m_mixer;
public:
SoundStream() : m_mixer(new Mixer(4... | degasus/dolphin | Source/Core/AudioCommon/SoundStream.h | C | gpl-2.0 | 643 |
/*
* Copyright (C) 2013 Intel 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | hmallat/bluez5 | bluez5/android/hal-a2dp.c | C | gpl-2.0 | 3,823 |
/**
* Copyright 2016 The AMP HTML 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 require... | DistroScale/amphtml | src/amp-shadow-babel.js | JavaScript | apache-2.0 | 799 |
@import Foundation;
@interface NSEntityDescription : NSObject
@end
@interface NSManagedObjectContext : NSObject
@end
@interface NSManagedObject : NSObject
- (__kindof NSManagedObject *)initWithEntity:(NSEntityDescription *)entity
insertIntoManagedObjectContext:(NSManagedObjectContext *)context;
@prope... | apple/swift | test/SILGen/Inputs/usr/include/CoreData.h | C | apache-2.0 | 421 |
cask "prezi-video" do
version "1.13.0"
sha256 "477a3d199b1f108e3e1e394a93787fde89f499dea273937c0c1f5fd410b66410"
url "https://desktopassets.prezi.com/mac/prezi-video/releases/Prezi_Video_#{version}.dmg"
name "Prezi Video"
desc "Lets you interact with your content live as you stream or record"
homepage "htt... | danielbayley/homebrew-cask | Casks/prezi-video.rb | Ruby | bsd-2-clause | 955 |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2012, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this file o... | nkhanhquoc/waterfactory | source/backend/web/js/ckfinder/core/connector/php/php5/Utils/Misc.php | PHP | mit | 12,722 |
angular
.module('menuDemoPosition', ['ngMaterial'])
.config(function($mdIconProvider) {
$mdIconProvider
.iconSet("call", 'img/icons/sets/communication-icons.svg', 24)
.iconSet("social", 'img/icons/sets/social-icons.svg', 24);
})
.controller('PositionDemoCtrl', function DemoCtrl($mdDialog) {
... | jelbourn/material | src/components/menu/demoMenuPositionModes/script.js | JavaScript | mit | 747 |
/* GLIB - Library of useful routines for C programming
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
*
* gpoll.c: poll(2) abstraction
* Copyright 1998 Owen Taylor
* Copyright 2008 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the ... | xbmc/atv2 | xbmc/lib/libmms/glib-2.20.4/glib/gpoll.c | C | gpl-2.0 | 11,289 |
/*!
* OOjs UI v0.9.7
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2015 OOjs Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2015-04-03T21:10:27Z
*/
.oo-ui-icon-bell {
background-image: /* @embed */ url(themes/mediawiki/images/icons/bell.png)... | jdloft/toolbar-proto | lib/oojs-ui/oojs-ui-mediawiki-icons-alerts.raster.css | CSS | gpl-2.0 | 1,218 |
/// <reference path="fourslash.ts" />
// @BaselineFile: getEmitOutputTsxFile_React.baseline
// @declaration: true
// @sourceMap: true
// @jsx: react
// @Filename: inputFile1.ts
// @emitThisFile: true
////// regular ts file
//// var t: number = 5;
//// class Bar {
//// x : string;
//// y : number
/... | plantain-00/TypeScript | tests/cases/fourslash/getEmitOutputTsxFile_React.ts | TypeScript | apache-2.0 | 646 |
/*
* Copyright 2000-2012 JetBrains s.r.o.
*
* 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... | akosyakov/intellij-community | jps/model-serialization/testSrc/org/jetbrains/jps/model/serialization/JpsProjectSerializationTest.java | Java | apache-2.0 | 11,503 |
//
// basic_socket.hpp
// ~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2015 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 ASIO_BASIC_SOCKET_HPP
#defi... | julien3/vertxbuspp | vertxbuspp/asio/include/asio/basic_socket.hpp | C++ | apache-2.0 | 50,601 |
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !cgo
package so_test
// Nothing to test.
| akutz/go | misc/cgo/testsovar/noso_test.go | GO | bsd-3-clause | 213 |
{{+partials.standard_apps_api api:apis.apps.document_scan intro:intros.documentScan chrome_os_only:true/}}
| Chilledheart/chromium | chrome/common/extensions/docs/templates/public/apps/documentScan.html | HTML | bsd-3-clause | 107 |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Z... | asheehan/zendTodo | vendor/zendframework/zendframework/tests/ZendTest/Validator/File/ExcludeMimeTypeTest.php | PHP | bsd-3-clause | 5,086 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" />
<title>DataTables example</titl... | stevemoore113/ch_web_- | 資源/Facemash/DataTables-1.9.4/examples/advanced_init/footer_callback.html | HTML | mit | 21,772 |
require "spec_helper"
describe Mongoid::Changeable do
describe "#attribute_change" do
context "when the attribute has changed from the persisted value" do
context "when using the setter" do
let(:person) do
Person.new(title: "Grand Poobah").tap(&:move_changes)
end
befo... | brixen/mongoid | spec/mongoid/changeable_spec.rb | Ruby | mit | 33,779 |
// SPDX-License-Identifier: GPL-2.0
#include <linux/perf_event.h>
#include <linux/nospec.h>
#include <asm/intel-family.h>
enum perf_msr_id {
PERF_MSR_TSC = 0,
PERF_MSR_APERF = 1,
PERF_MSR_MPERF = 2,
PERF_MSR_PPERF = 3,
PERF_MSR_SMI = 4,
PERF_MSR_PTSC = 5,
PERF_MSR_IRPERF = 6,
PERF_MSR_THERM = 7... | codeaurora-unoffical/linux-msm | arch/x86/events/msr.c | C | gpl-2.0 | 7,191 |
/*
* Copyright (C) 2008 Google, Inc.
* Copyright (c) 2008-2010, Code Aurora Forum. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
*... | sigma-random/asuswrt-merlin | release/src-rt-7.x.main/src/linux/linux-2.6.36/arch/arm/mach-msm/devices-qsd8x50.c | C | gpl-2.0 | 3,119 |
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* arch/sh64/kernel/sh_ksyms.c
*
* Copyright (C) 2000, 2001 Paolo Alberelli
*
*/
#include <linux/rwsem.h>
#include <linux/module.h>
#in... | ghmajx/asuswrt-merlin | release/src-rt/linux/linux-2.6/arch/sh64/kernel/sh_ksyms.c | C | gpl-2.0 | 1,687 |
/* Address ranges.
Copyright (C) 1998-2014 Free Software Foundation, Inc.
Contributed by Cygnus Solutions.
This file is part of the GNU Simulators.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundati... | tuliom/binutils-gdb | sim/common/sim-arange.c | C | gpl-2.0 | 7,244 |
/*
* Copyright (c) 2006 Jiri Benc <jbenc@suse.cz>
* Copyright 2007 Johannes Berg <johannes@sipsolutions.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linu... | wkritzinger/asuswrt-merlin | release/src-rt-7.x.main/src/linux/linux-2.6.36/net/mac80211/debugfs_netdev.c | C | gpl-2.0 | 12,386 |
/*=============================================================================
Copyright (c) 2010 Christopher Schmidt
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)
====================================... | beiko-lab/gengis | win32/library3rd/boost_1_47/boost/fusion/include/unfused.hpp | C++ | gpl-3.0 | 520 |
import { CompileIdentifierMetadata, CompileTokenMetadata } from './compile_metadata';
export interface IdentifierSpec {
name: string;
moduleUrl: string;
runtime: any;
}
export declare class Identifiers {
static ANALYZE_FOR_ENTRY_COMPONENTS: IdentifierSpec;
static ElementRef: IdentifierSpec;
stat... | DaanKrug/Rocker-Framework | samples/Rocker-Framework-Functional-Show-Case/node_modules/@angular/compiler/src/identifiers.d.ts | TypeScript | gpl-3.0 | 2,628 |
using System;
using System.Collections.Generic;
using UnityEngine;
namespace UnityTest
{
[Serializable]
public class UnitTestResult : ITestResult
{
public bool Executed { get; set; }
public string Name { get { return Test.MethodName; } }
public string FullName { get { return Test.Fu... | sabikku/unity-midi | unity-midi/Assets/UnityTestTools/UnitTesting/Editor/TestRunner/UnitTestResult.cs | C# | apache-2.0 | 1,727 |
/**********************************************************************************
*
* $Id$
*
***********************************************************************************
*
* Copyright (c) 2007, 2008 The Sakai Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* yo... | rodriguezdevera/sakai | edu-services/gradebook-service/api/src/java/org/sakaiproject/service/gradebook/shared/GradebookExternalAssessmentService.java | Java | apache-2.0 | 14,476 |
/******************************************************************************
*
* Name: acoutput.h -- debug output
*
*****************************************************************************/
/*
* Copyright (C) 2000 - 2013, Intel Corp.
* All rights reserved.
*
* Redistribution and use in source and binar... | prasidh09/cse506 | unionfs-3.10.y/include/acpi/acoutput.h | C | gpl-2.0 | 17,351 |
declare namespace jsrsasign.KJUR.asn1.csr {
/**
* ASN.1 CertificationRequestInfo structure class
* @param params associative array of parameters (ex. {})
* @description
* ```
* // -- DEFINITION OF ASN.1 SYNTAX --
* // CertificationRequestInfo ::= SEQUENCE {
* // version IN... | markogresak/DefinitelyTyped | types/jsrsasign/modules/KJUR/asn1/csr/CertificationRequestInfo.d.ts | TypeScript | mit | 3,178 |
<?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... | groundcall/jobeet | vendor/Zend/Tool/Project/Context/Zf/ControllersDirectory.php | PHP | mit | 1,595 |
#include "rr.h"
namespace rr {
void Context::Init() {
ClassBuilder("Context").
defineSingletonMethod("New", &New).
defineSingletonMethod("GetCurrent", &GetCurrent).
defineSingletonMethod("GetEntered", &GetEntered).
defineSingletonMethod("GetCalling", &GetCalling).
defineSingletonMethod("InContex... | ducktyper/bfnz | vendor/cache/ruby/2.3.0/gems/therubyracer-0.12.2/ext/v8/context.cc | C++ | mit | 4,054 |
// Type definitions for jsreport-html-embedded-in-docx 1.0
// Project: https://github.com/jsreport/jsreport-html-embedded-in-docx
// Definitions by: taoqf <https://github.com/taoqf>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import { ExtensionDefinition } from 'jsrepo... | borisyankov/DefinitelyTyped | types/jsreport-html-embedded-in-docx/index.d.ts | TypeScript | mit | 542 |
#include <stdio.h>
#include <assert.h>
#include <time.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
typedef const char *str_t;
#include "kbtree.h"
KBTREE_INIT(int, uint32_t, kb_generic_cmp)
KBTREE_INIT(str, str_t, kb_str_cmp)
static int data_size = 5000000;
static unsigned *int_data;
static char **s... | libnano/primer3-py | primer3/src/libprimer3/klib/test/kbtree_test.c | C | gpl-2.0 | 2,209 |
/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 only,
* as published by the Free Software Foundation.
*
* This program is distributed... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.14/drivers/staging/lustre/lustre/ldlm/ldlm_flock.c | C | gpl-2.0 | 18,498 |
//------------------------------------------------------------------------------
// <copyright file="dl_list.h" company="Atheros">
// Copyright (c) 2004-2008 Atheros Corporation. All rights reserved.
//
// The software source and binaries included in this development package are
// licensed, not sold. You, or your... | fards/Ainol_fire_kernel | drivers/amlogic/wifi/atheros_6302/include/dl_list.h | C | gpl-2.0 | 5,210 |
/*
* TI ADC081C/ADC101C/ADC121C 8/10/12-bit ADC driver
*
* Copyright (C) 2012 Avionic Design GmbH
* Copyright (C) 2016 Intel
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
... | geminy/aidear | oss/linux/linux-4.7/drivers/iio/adc/ti-adc081c.c | C | gpl-3.0 | 5,826 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Kairo Araujo <kairo@kairo.eti.br>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version':... | andmos/ansible | lib/ansible/modules/packaging/os/installp.py | Python | gpl-3.0 | 9,242 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | apratkin/pentaho-kettle | core/src/org/pentaho/di/core/vfs/configuration/KettleFileSystemConfigBuilderFactory.java | Java | apache-2.0 | 3,605 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.