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 |
|---|---|---|---|---|---|
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// re... | yugangw-msft/azure-sdk-for-net | sdk/datafactory/Microsoft.Azure.Management.DataFactory/src/Generated/Models/GlobalParameterType.cs | C# | apache-2.0 | 823 |
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.buildout.config;
import com.intellij.openapi.editor.colors.TextAttributesKey;
import com.intellij.openapi.fileTypes.SyntaxHighlighter;
import com.int... | siosio/intellij-community | python/src/com/jetbrains/python/buildout/config/BuildoutCfgColorsPage.java | Java | apache-2.0 | 2,920 |
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jitsi.impl.neomedia.transform.zrtp;
import gnu.java.zrtp.*;
import gnu.java.zrtp.utils.*;
import java.util.*;
import org.jitsi.impl.neomedia.*;
import org.ji... | HappyYang/libjitsi | src/org/jitsi/impl/neomedia/transform/zrtp/ZrtpControlImpl.java | Java | apache-2.0 | 11,256 |
/*
* L.GridLayer is used as base class for grid-like layers like TileLayer.
*/
L.GridLayer = L.Layer.extend({
options: {
pane: 'tilePane',
tileSize: 256,
opacity: 1,
updateWhenIdle: L.Browser.mobile,
updateInterval: 200,
attribution: null,
zIndex: null,
bounds: null,
minZoom: 0
// maxZoom: ... | AndBicScadMedia/Leaflet | src/layer/tile/GridLayer.js | JavaScript | bsd-2-clause | 15,707 |
class Mdp < Formula
desc "Command-line based markdown presentation tool"
homepage "https://github.com/visit1985/mdp"
url "https://github.com/visit1985/mdp/archive/1.0.9.tar.gz"
sha256 "893e13a9a61a89bacf29ee141bd9f6e8935710323701e3d36584a4bb90e1372d"
head "https://github.com/visit1985/mdp.git"
bottle do
... | kuahyeow/homebrew-core | Formula/mdp.rb | Ruby | bsd-2-clause | 832 |
<?php
/**
* @package sapphire
* @subpackage tests
*/
class DataObjectTest extends SapphireTest {
static $fixture_file = 'sapphire/tests/DataObjectTest.yml';
protected $extraDataObjects = array(
'DataObjectTest_Team',
'DataObjectTest_Fixture',
'DataObjectTest_SubTeam',
'OtherSubclassWithSameField',
'Da... | benbruscella/vpcounselling.com | sapphire/tests/DataObjectTest.php | PHP | bsd-3-clause | 41,032 |
// Copyright 2015 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_PASSWORDS_ACCOUNT_CHOOSER_VIEW_CONTROLLER_H_
#define CHROME_BROWSER_UI_COCOA_PASSWORDS_ACCOUNT_CHOOSER_VIEW_CONTROLLER_H_
... | hujiajie/chromium-crosswalk | chrome/browser/ui/cocoa/passwords/account_chooser_view_controller.h | C | bsd-3-clause | 1,917 |
<!doctype html>
<meta charset="utf-8" />
<title>textarea POST empty content</title>
<p>
Click the submit button. The following page should return “PASS”.
</p>
<form action="../res/empty_post.php" method="post">
<p>
<textarea name="test"></textarea>
<input name="submit" type="submit" />
</p>
</form>
| frivoal/presto-testo | core/standards/wf1/interactive/textarea-002.html | HTML | bsd-3-clause | 315 |
/* $OpenBSD: getentropy_freebsd.c,v 1.3 2016/08/07 03:27:21 tb Exp $ */
/*
* Copyright (c) 2014 Pawel Jakub Dawidek <pjd@FreeBSD.org>
* Copyright (c) 2014 Brent Cook <bcook@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provi... | GaloisInc/hacrypto | src/C/libressl/libressl-2.7.2/crypto/compat/getentropy_freebsd.c | C | bsd-3-clause | 1,621 |
var _CURRENT_FORM;
var _FIRST_ERRORED_FIELD = null;
function initialiseForm(form, fromAnOnBlur) {
_CURRENT_FORM = form;
_FIRST_ERRORED_FIELD = null;
if(fromAnOnBlur) {
limitValidationErrorsTo(fromAnOnBlur);
} else {
clearValidationErrorLimit();
}
_HAS_HAD_FORM_ERROR = false;
clearValidationErrorCache();
}... | melechi/s3.net.au | sapphire/javascript/Validator.js | JavaScript | bsd-3-clause | 7,731 |
"""Test inter-conversion of different polynomial classes.
This tests the convert and cast methods of all the polynomial classes.
"""
import operator as op
from numbers import Number
import pytest
import numpy as np
from numpy.polynomial import (
Polynomial, Legendre, Chebyshev, Laguerre, Hermite, HermiteE)
from ... | anntzer/numpy | numpy/polynomial/tests/test_classes.py | Python | bsd-3-clause | 18,331 |
//===- AsmParser.cpp - Parser for Assembly Files --------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | dededong/goblin-core | riscv/llvm/3.5/llvm-3.5.0.src/lib/MC/MCParser/AsmParser.cpp | C++ | bsd-3-clause | 148,779 |
// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef XWALK_RUNTIME_RENDERER_XWALK_CONTENT_RENDERER_CLIENT_H_
#define XWALK_RUNT... | jpike88/crosswalk | runtime/renderer/xwalk_content_renderer_client.h | C | bsd-3-clause | 3,138 |
/*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013,2014 Andy Brown <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#include "config/stm32plus.h"
#if defined(STM32PLUS_F4)
#include "config/exti.h"
using namespace stm32plus;
// static initialiser fo... | phynex/stm32plus | lib/src/exti/interrupts/f4/Exti0InterruptHandler.cpp | C++ | bsd-3-clause | 859 |
// Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/
using System;
using System.Linq;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using Pash.Implementation;
using System.Management.Automation;
using Pash.ParserIntrinsics;
using I... | WimObiwan/Pash | Source/System.Management/Pash/Implementation/ScriptBlockProcessor.cs | C# | bsd-3-clause | 8,405 |
from django.conf.global_settings import PASSWORD_HASHERS
from django.contrib.auth import get_user_model
from django.contrib.auth.hashers import get_hasher
from django.contrib.auth.models import (
AbstractUser, Group, Permission, User, UserManager,
)
from django.contrib.contenttypes.models import ContentType
from dj... | vincepandolfo/django | tests/auth_tests/test_models.py | Python | bsd-3-clause | 10,053 |
# frozen_string_literal: true
module Spree
module Admin
class ShippingCategoriesController < ResourceController
end
end
end
| pervino/solidus | backend/app/controllers/spree/admin/shipping_categories_controller.rb | Ruby | bsd-3-clause | 137 |
// Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "tools/fiddle/examples.h"
// HASH=72d41f890203109a41f589a7403acae9
REG_FIDDLE(Paint_getColor, 256, 256, true, 0) {
void draw(SkCanvas* canvas) {
SkPaint paint;
paint.setCol... | youtube/cobalt | third_party/skia_next/third_party/skia/docs/examples/Paint_getColor.cpp | C++ | bsd-3-clause | 567 |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\validators;
use Yii;
/**
* RequiredValidator validates that the specified attribute does not have null or empty value.
*
* @author Qian... | nikn/it-asu.ru | vendor/yiisoft/yii2/validators/RequiredValidator.php | PHP | bsd-3-clause | 3,936 |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/css/style_rule_keyframe.h"
#include <memory>
#include "third_party/blink/renderer/core/css/css_property_value_s... | scheib/chromium | third_party/blink/renderer/core/css/style_rule_keyframe.cc | C++ | bsd-3-clause | 2,030 |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/feed/core/v2/public/feed_api.h"
namespace feed {
FeedApi::FeedApi() = default;
FeedApi::~FeedApi() = default;
} // namespace feed... | scheib/chromium | components/feed/core/v2/public/feed_api.cc | C++ | bsd-3-clause | 321 |
// 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 TOOLS_ANDROID_FORWARDER2_SOCKET_H_
#define TOOLS_ANDROID_FORWARDER2_SOCKET_H_
#include <fcntl.h>
#include <netinet/in.h>
#include <stddef.h>
... | chromium/chromium | tools/android/forwarder2/socket.h | C | bsd-3-clause | 4,699 |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/resource_coordinator/lifecycle_unit.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace res... | ric2b/Vivaldi-browser | chromium/chrome/browser/resource_coordinator/lifecycle_unit_unittest.cc | C++ | bsd-3-clause | 1,030 |
// 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_SSL_SSL_CLIENT_AUTH_REQUESTOR_MOCK_H_
#define CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_REQUESTOR_MOCK_H_
#include <memory>
#include... | ric2b/Vivaldi-browser | chromium/chrome/browser/ssl/ssl_client_auth_requestor_mock.h | C | bsd-3-clause | 1,350 |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Validator\Constraints;
use Symfony\Component\Expressi... | KaberMohamed/Symfony2015 | vendor_bis/symfony/symfony/src/Symfony/Component/Validator/Constraints/ExpressionValidator.php | PHP | mit | 4,126 |
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// re... | brjohnstmsft/azure-sdk-for-net | sdk/websites/Microsoft.Azure.Management.WebSites/src/Generated/IDeletedWebAppsOperations.cs | C# | mit | 6,915 |
version https://git-lfs.github.com/spec/v1
oid sha256:6d892a968416beb2a729a7a7c70ce98f5ecc460471aa6fce2bcc1c2d8d880865
size 3104
| yogeshsaroya/new-cdnjs | ajax/libs/pace/0.7.1/themes/white/pace-theme-mac-osx.css | CSS | mit | 129 |
<!-- Your new widget html -->
| stewartmckee/dashing-rails | lib/generators/templates/widgets/new.html | HTML | mit | 30 |
import {ListWrapper} from '@angular/facade';
import {OpaqueToken} from '@angular/core/src/di';
import {Validator} from '../validator';
import {Statistic} from '../statistic';
import {MeasureValues} from '../measure_values';
/**
* A validator that checks the regression slope of a specific metric.
* Waits for the reg... | hterkelsen/angular | modules/benchpress/src/validator/regression_slope_validator.ts | TypeScript | mit | 2,380 |
export const EXAMPLE_REPOSITORIES = {
clock: { repo: 'https://github.com/meteor/clock' },
leaderboard: { repo: 'https://github.com/meteor/leaderboard' },
localmarket: { repo: 'https://github.com/meteor/localmarket' },
'simple-todos': { repo: 'https://github.com/meteor/simple-todos' },
'simple-todos-react': {
... | mjmasn/meteor | tools/cli/example-repositories.js | JavaScript | mit | 717 |
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\wellknown\cli.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\wellknown\cli.js" %*
) | cdeerr/esportsMKE | web/node_modules/sequelize/node_modules/.bin/wellknown.cmd | Batchfile | mit | 174 |
<html lang="en">
<head>
<title>fmax - Untitled</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Untitled">
<meta name="generator" content="makeinfo 4.8">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Math.html#Math" title="Math">
<link rel="prev"... | ChangsoonKim/STM32F7DiscTutor | toolchain/osx/gcc-arm-none-eabi-6-2017-q1-update/share/doc/gcc-arm-none-eabi/html/libm/fmax.html | HTML | mit | 2,234 |
require File.dirname(__FILE__) + '/../../../../spec_helper'
require 'net/http'
require File.dirname(__FILE__) + "/shared/request_put"
describe "Net::HTTP#put2" do
it_behaves_like :net_ftp_request_put, :put2
end | luccastera/rubyspec | library/net/http/http/put2_spec.rb | Ruby | mit | 213 |
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "model_types.h"
#include "vcollide.h"
#include "vcollide_parse.h"
#include "solidsetdefaults.h"
#incl... | scen/ionlib | src/sdk/hl2_ob/game/client/c_breakableprop.cpp | C++ | mit | 1,477 |
# Bootstrappable Bitcoin Core Builds
This directory contains the files necessary to perform bootstrappable Bitcoin
Core builds.
[Bootstrappability][b17e] furthers our binary security guarantees by allowing us
to _audit and reproduce_ our toolchain instead of blindly _trusting_ binary
downloads.
We achieve bootstrapp... | sstone/bitcoin | contrib/guix/README.md | Markdown | mit | 16,633 |
// (C) Copyright John Maddock 2007.
// Use, modification and distribution are subject to 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)
//
// This file is machine generated, do not edit by hand
// Unrolled polynomial evaluatio... | satya-das/common | third_party/boost_tp/boost/math/tools/detail/polynomial_horner3_11.hpp | C++ | mit | 4,947 |
package net.sf.jabref.gui.filelist;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.StringJoiner;
import javax.swing.JLabel;
import javax.swing.SwingUtilities;
import javax.swing.event.TableModelEvent;
import javax.swing.table.AbstractTableModel;
import net.sf.jabref.gu... | Mr-DLib/jabref | src/main/java/net/sf/jabref/gui/filelist/FileListTableModel.java | Java | mit | 7,241 |
/*
* $Id: JavaFunction.java,v 1.6 2006-12-22 14:06:40 thiago Exp $
* Copyright (C) 2003-2007 Kepler Project.
*
* 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, inclu... | bunnyblue/AndroLua | src/org/keplerproject/luajava/JavaFunction.java | Java | mit | 3,034 |
{% from 'events/timetable/display/indico/_common.html' import render_speakers, render_references,
render_description %}
{% from 'attachments/_display.html' import render_attachments_folders %}
{# Do not forget to update the conditions in the parent template... | indico/indico | indico/modules/events/templates/display/indico/_details.html | HTML | mit | 2,912 |
<?php return unserialize('a:1:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Column":9:{s:4:"name";s:3:"cin";s:4:"type";s:7:"integer";s:6:"length";N;s:9:"precision";i:0;s:5:"scale";i:0;s:6:"unique";b:0;s:8:"nullable";b:0;s:7:"options";a:0:{}s:16:"columnDefinition";N;}}'); | orlk/hopitrepo | app/cache/prod/annotations/75e5fdab246307ff8551aacf4481389716bc3adc$cin.cache.php | PHP | mit | 260 |
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
class Tribe__Events__Pro__Shortcodes__Tribe_Events__Map {
protected $shortcode;
protected $date = '';
public function __construct( Tribe__Events__Pro__Shortcodes__Tribe_Events $shortcode ) {
$this->shortcode = $shortcode;
$this->setup();
$this->hooks();
... | mandino/nu | wp-content/plugins/events-calendar-pro/src/Tribe/Shortcodes/Tribe_Events/Map.php | PHP | mit | 1,784 |
1.27.0 / 2017-03-16
===================
* Add `application/emergencycalldata.control+xml`
* Add `application/emergencycalldata.ecall.msd`
* Add `application/emergencycalldata.veds+xml`
* Add `application/geo+json-seq`
* Add `application/n-quads`
* Add `application/n-triples`
* Add `application/v... | Moccine/global-service-plus.com | web/libariries/bootstrap/node_modules/mime-db/HISTORY.md | Markdown | mit | 11,684 |
import EmptyObject from 'ember-data/-private/system/empty-object';
import parseResponseHeaders from 'ember-data/-private/utils/parse-response-headers';
import { module, test } from 'qunit';
const CRLF = '\u000d\u000a';
module('unit/adapters/parse-response-headers');
test('returns an EmptyObject when headersString is... | danmcclain/data | tests/unit/utils/parse-response-headers-test.js | JavaScript | mit | 2,834 |
#
# Author:: Daniel DeLeo (<dan@kallistec.com>)
# Author:: Seth Falcon (<seth@opscode.com>)
# Copyright:: Copyright (c) 2009 Daniel DeLeo
# Copyright:: Copyright (c) 2010 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file... | higanworks/chef-with-ruby_precise-x86_64 | lib/ruby/gems/1.9.1/gems/chef-10.16.0/lib/chef/index_queue/indexable.rb | Ruby | mit | 3,943 |
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Query\AST;
/**
* CollectionMemberExpression ::= EntityExpression ["NOT"] "MEMBER" ["OF"] CollectionValuedPathExpression
*/
class CollectionMemberExpression extends Node
{
/** @var mixed */
public $entityExpression;
/** @var PathExpression */
pu... | localheinz/doctrine2 | lib/Doctrine/ORM/Query/AST/CollectionMemberExpression.php | PHP | mit | 865 |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Collections.Immutable
Imports System.Composition
Imports System.Threading
Imports Microsoft.CodeAnalysi... | jmarolf/roslyn | src/Features/VisualBasic/Portable/Completion/CompletionProviders/ObjectCreationCompletionProvider.vb | Visual Basic | mit | 3,736 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>buffered_stream</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="../../boost_asio.html" title="Boos... | mxrrow/zaicoin | src/deps/boost/doc/html/boost_asio/reference/buffered_stream.html | HTML | mit | 14,180 |
# encoding: UTF-8
from eventEngine import *
# 默认空值
EMPTY_STRING = ''
EMPTY_UNICODE = u''
EMPTY_INT = 0
EMPTY_FLOAT = 0.0
# 方向常量
DIRECTION_NONE = u'无方向'
DIRECTION_LONG = u'多'
DIRECTION_SHORT = u'空'
DIRECTION_UNKNOWN = u'未知'
DIRECTION_NET = u'净'
# 开平常量
OFFSET_NONE = u'无开平'
OFFSET_OPEN = u'开仓'
OFFSET_CLOSE = u'平仓'
OFF... | drongh/vnpy | vn.trader/gateway.py | Python | mit | 14,192 |
# Create an Azure VM with a new AD Forest (from a module)

</title>
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link... | mxrrow/zaicoin | src/deps/boost/doc/html/boost_asio/reference/basic_deadline_timer/basic_deadline_timer/overload3.html | HTML | mit | 4,964 |
//
// SPDatabaseData.h
// sequel-pro
//
// Created by Stuart Connolly (stuconnolly.com) on May 20, 2009.
// Copyright (c) 2009 Stuart Connolly. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "S... | treejames/sequelpro | Source/SPDatabaseData.h | C | mit | 2,911 |
Please take a look in the sub-folders in this directory in order to see the main features.
The really critical ones are in the home_page directory, but other important ones are also in the superadmin directory.
Features without scenarios are in the pending sub-directories. Whenever adding a new feature please check t... | Aleks4ndr/LocalSupport | features/README.md | Markdown | mit | 466 |
// //////////////////////////////////////////////////////////////////////////////
//
// RMG - Reaction Mechanism Generator
//
// Copyright (c) 2002-2011 Prof. William H. Green (whgreen@mit.edu) and the
// RMG Team (rmg_dev@mit.edu)
//
// Permission is hereby granted, free of charge, to any person obtaining a
//... | keceli/RMG-Java | source/RMG/jing/chem/ChemElementDictionary.java | Java | mit | 3,323 |
#include <stdio.h>
extern FILE *path_fopen(const char *mode, int exit_on_err, const char *path, ...)
__attribute__ ((__format__ (__printf__, 3, 4)));
extern void path_getstr(char *result, size_t len, const char *path, ...)
__attribute__ ((__format__ (__printf__, 3, 4)));
extern int path_writestr(const char *str,... | imx6uldev/depedency_tools | util-linux/util-linux-2.21.2/include/path.h | C | mit | 879 |
module FindIndex
extend ActiveSupport::Concern
attr_accessor :applicant_collection_method
included do
def self.part_of applicant_collection_method
define_method :my_number do
applicant.send(applicant_collection_method).find_index(self)+1
end
... | uncompiled/districthousing | app/models/concerns/find_index.rb | Ruby | mit | 342 |
/*
* Copyright (C) 2013 Glyptodon LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... | AIexandr/guacamole-server | src/protocols/rdp/rdp_disp.c | C | mit | 5,311 |
# MongoDB - Aula 04 - Exercício
autor: Felipe Cabianchi de Oliveira
## **Adicionar** 2 ataques ao mesmo tempo para os seguintes pokemons: Pikachu, Squirtle, Bulbassauro e Charmander.
```js
var query = {name : {$in : poke}}
var poke = [/pikachu/i, /bulbasaur/i, /squirtle/i, /charmander/i]
var attacks = ['invest... | netoabel/be-mean-instagram-mongodb-exercises | class-04/class-04-resolved-fecabianchi-felipe-cabianchi.md | Markdown | cc0-1.0 | 7,911 |
/**
* Copyright (c) 2010-2014, openHAB.org and others.
*
* 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, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org... | hubermi/openhab | bundles/io/org.openhab.io.gcal/src/main/java/org/openhab/io/gcal/internal/util/ExecuteCommandJob.java | Java | epl-1.0 | 4,778 |
<?php
namespace Drupal\layout_builder\Plugin\Block;
use Drupal\Component\Plugin\Factory\DefaultFactory;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Entity\EntityDisplayBase;
use Drupal\Core\Ent... | wheelercreek/faithblog | core/modules/layout_builder/src/Plugin/Block/FieldBlock.php | PHP | gpl-2.0 | 13,279 |
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code 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 Softwa... | md-5/jdk10 | test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/multienv/MA03/ma03t001/libma03t001.cpp | C++ | gpl-2.0 | 1,325 |
# encoding: utf-8
require 'katello_test_helper'
module Katello
class OrganizationTestDelete < ActiveSupport::TestCase
def test_org_being_deleted
Organization.any_instance.stubs(:being_deleted?).returns(true)
User.current = User.find(users(:admin).id)
org = get_organization(:organization2)
... | komidore64/katello | test/models/organization_test.rb | Ruby | gpl-2.0 | 823 |
/*
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* 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 ... | Tiuz90/TrinityCore | src/server/scripts/EasternKingdoms/SunkenTemple/instance_sunken_temple.cpp | C++ | gpl-2.0 | 7,077 |
/***************************************************************************
file : schedulespy.cpp
author : Jean-Philippe Meuret (jpmeuret@free.fr)
A tool to study the way some special code sections (named "events" here)
in the program are actually scheduled at a fine grain level.
Abs... | kumar003vinod/SpeedDreams | src/libs/tgf/schedulespy.cpp | C++ | gpl-2.0 | 13,156 |
/*
* Copyright (C) 2004 Nathan Lutchansky <lutchann@litech.org>
*
* 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 License, or
* (at your option) any later version.
... | BrandoJS/Paparazzi_vtol | sw/in_progress/videolizer/spook/encoder-mp2.c | C | gpl-2.0 | 7,249 |
<?php
namespace TYPO3\CMS\Version\Dependency;
/**
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license i... | demonege/sutogo | typo3/sysext/version/Classes/Dependency/DependencyEntityFactory.php | PHP | gpl-2.0 | 2,674 |
#include <harness.h>
int main(int argc, char** argv){
int i;
char buffer[256];
char* tk;
FILTERCHAIN* tmp_chn;
FILTERCHAIN* del_chn;
HARNESS_INSTANCE* hinstance;
if(harness_init(argc,argv,&hinstance)){
printf("Error: Initialization failed.\n");
skygw_log_write(LOGFILE_ERROR,"Error: Initialization fa... | sjmudd/MaxScale | server/modules/filter/test/harness_ui.c | C | gpl-2.0 | 8,833 |
using MediaBrowser.Controller.Drawing;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Library;
using MediaBrowser.Model.Entities;
using System;
using System.IO;
using System.Linq;
using MediaBrowser.Model.Configuration;
using MediaBrowser.Model.IO;
namespace Emby.Server.Implementations.Library.... | razzfazz/Emby | Emby.Server.Implementations/Library/Resolvers/PhotoResolver.cs | C# | gpl-2.0 | 4,211 |
/* Test the `vreinterpretQp16_s16' ARM Neon intrinsic. */
/* This file was autogenerated by neon-testgen. */
/* { dg-do assemble } */
/* { dg-require-effective-target arm_neon_ok } */
/* { dg-options "-save-temps -O0 -mfpu=neon -mfloat-abi=softfp" } */
#include "arm_neon.h"
void test_vreinterpretQp16_s16 (void)
{
... | intervigilium/cs259-or32-gcc | gcc/testsuite/gcc.target/arm/neon/vreinterpretQp16_s16.c | C | gpl-2.0 | 483 |
!
! Copyright (C) 2005 Eyvaz Isaev
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
! Program is designed to map the Fermi Surface using XCrySDen
! Se... | nvarini/espresso_adios | PW/tools/bands_FS.f90 | FORTRAN | gpl-2.0 | 10,793 |
label#toggle-icon {
display: none; }
.l-responsive-page-container, #menu, #menu .sub-nav {
-webkit-transform: translate(0, 0) !important;
-ms-transform: translate(0, 0) !important;
transform: translate(0, 0) !important; }
#menu label,
#menu .sub-nav,
#menu .sub-heading,
#header label {
display: none; }
#me... | kbulloch/blog_drupals | sites/all/modules/responsive_menu/css/responsive_menu_desktop.css | CSS | gpl-2.0 | 3,096 |
/***************************************************************
CAMERA Power control
****************************************************************/
#include <mach/gpio.h>
#include <asm/gpio.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <mach/board.h>
#include <mach/msm_iomap.h>
#include <linux/re... | yajnab/android_kernel_samsung_msm8625 | drivers/media/video/msm/sensors/sec_cam_pmic.c | C | gpl-2.0 | 36,158 |
<?php
namespace Drupal\Tests\field\Functional;
use Drupal\Component\Utility\Html;
use Drupal\Core\Entity\Entity\EntityFormDisplay;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Form\FormState;
use Drupal\entity_test\Entity\EntityTest;
use Drupal\entity_test\Entity\EntityTestBaseFieldDisplay;
... | wheelercreek/faithblog | core/modules/field/tests/src/Functional/FormTest.php | PHP | gpl-2.0 | 29,293 |
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code 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 Softwa... | md-5/jdk10 | test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetFrameCount/framecnt002/libframecnt002.cpp | C++ | gpl-2.0 | 1,328 |
<?php
namespace Drupal\yamlform;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;
/**
* Service Provider for Yamlform.
*/
class YamlformServicePro... | akorkot/copieubl | modules/yamlform/src/YamlformServiceProvider.php | PHP | gpl-2.0 | 1,163 |
/*
* drivers/media/video/isp/omap_resizer.c
*
* Wrapper for Resizer module in TI's OMAP3430 ISP
*
* Copyright (C) 2008 Texas Instruments, Inc.
*
* Contributors:
* Sergio Aguirre <saaguirre@ti.com>
* Troy Laramy <t-laramy@ti.com>
*
* This package is free software; you can redistribute it and/or modify
* it... | csolanol/kernel-morrison | drivers/media/video/oldisp/omap_resizer.c | C | gpl-2.0 | 45,921 |
<?php
namespace TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and licen... | morinfa/TYPO3.CMS | typo3/sysext/core/Tests/Unit/Cache/Fixtures/BackendDefaultFixture.php | PHP | gpl-2.0 | 721 |
<?php
/**
* BuddyPress Groups Actions.
*
* Action functions are exactly the same as screen functions, however they do
* not have a template screen associated with them. Usually they will send the
* user back to the default screen after execution.
*
* @package BuddyPress
* @subpackage GroupsActions
*/
// Exit ... | NYCPrepared/v2 | wp-content/plugins/buddypress/bp-groups/bp-groups-actions.php | PHP | gpl-2.0 | 20,259 |
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code 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 Softwa... | YouDiSN/OpenJDK-Research | jdk9/jdk/test/java/lang/ClassLoader/securityManager/ClassLoaderTest.java | Java | gpl-2.0 | 12,452 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="up" title="FatFs" href="../00index_j.html">
<link rel="alternate... | felis/UHS30 | libraries/UHS_FS/FAT/FatFS/doc/ja/getlabel.html | HTML | gpl-2.0 | 2,551 |
/*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code 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 Softwa... | md-5/jdk10 | test/jdk/sun/security/tools/keytool/SecurityToolsTest.java | Java | gpl-2.0 | 2,451 |
/* lzo1b_xx.c -- LZO1B compression public entry point
This file is part of the LZO real-time data compression library.
Copyright (C) 2011 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 2010 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 2009 Markus Franz Xaver Johannes Oberhumer
Copyright (C)... | zarboz/XBMC-PVR-mac | tools/darwin/depends/liblzo2/src/lzo1b_xx.c | C | gpl-2.0 | 3,211 |
INSERT INTO spell_bonus_data VALUE (51723, -1, -1, 0.14, -1, 'Rogue - Fan of Knives'); | MistCore/MistCore | sql/updates/world/worldpanda_old_world_updates_2012_2013/2012/2012_01_08_world_spell_bonus_data.sql | SQL | gpl-2.0 | 86 |
<html lang="en">
<head>
<title>Xtensa Relaxation - Using as</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using as">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Xtensa_002dDependent.html#Xtensa... | trlsmax/rk3188_kernel_tinyastro | rktools/toolchain/linaro/share/doc/gcc-linaro-arm-linux-gnueabihf/html/as.html/Xtensa-Relaxation.html | HTML | gpl-2.0 | 3,400 |
/*
Copyright (C) 2011 - 2018 by Mark de Wever <koraq@xs4all.nl>
Part of the Battle for Wesnoth Project https://www.wesnoth.org/
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 v... | spixi/wesnoth | src/gui/auxiliary/iterator/walker_grid.hpp | C++ | gpl-2.0 | 1,729 |
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* Copyright (C) 2005 Novell, Inc.
*
* Nemo 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
* License... | AlirezaNaghizadeh/nemo | libnemo-private/nemo-search-engine.h | C | gpl-2.0 | 3,078 |
# machten.sh
# This file has been put together by Mark Pease <peasem@primenet.com>
# Comments, questions, and improvements welcome!
#
# MachTen does not support dynamic loading. If you wish to, you
# can fetch, compile, and install the dld package.
# This ought to work with the ext/DynaLoader/dl_dld.xs in the
# perl5 ... | rhuitl/uClinux | user/perl/hints/machten_2.sh | Shell | gpl-2.0 | 3,127 |
// MESSAGE POWER_STATUS PACKING
package com.MAVLink.Messages.ardupilotmega;
import com.MAVLink.Messages.MAVLinkMessage;
import com.MAVLink.Messages.MAVLinkPacket;
import com.MAVLink.Messages.MAVLinkPayload;
//import android.util.Log;
/**
* Power supply status
*/
public class msg_power_status extends MAVLinkMessage{
... | TShapinsky/droidplanner | Mavlink/src/com/MAVLink/Messages/ardupilotmega/msg_power_status.java | Java | gpl-3.0 | 2,315 |
/* Copyright (c) 2001-2009, The HSQL Development Group
* 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... | apavlo/h-store | src/hsqldb19b3/org/hsqldb/StatementSimple.java | Java | gpl-3.0 | 9,776 |
/*
SPC5 HAL - Copyright (C) 2013 STMicroelectronics
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 ... | netik/chibios-orchard | os/hal/ports/SPC5/SPC5xx/ESCI_v1/hal_serial_lld.c | C | gpl-3.0 | 9,199 |
<?php
/*
* Copyright 2014 Google 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 agreed t... | ftisunpar/BlueTape | vendor/google/apiclient-services/src/Google/Service/SecretManager/Resource/Projects.php | PHP | gpl-3.0 | 898 |
/* Copyright (c) 2006-2008 MetaCarta, Inc., published under the Clear BSD
* license. See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Handler.js
* @requires OpenLayers/Geometry/Point.js
*/
/**
* Class: OpenLayers.Handler.Point
* Hand... | guolivar/totus-niwa | web/js/libs/openlayers/lib/OpenLayers/Handler/Point.js | JavaScript | gpl-3.0 | 10,858 |
/***********************************************
Copyright 2010, Chris Winberry <chris@winberry.net>. All rights reserved.
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, inclu... | tfe/cloud9 | support/ace/support/node-htmlparser/lib/node-htmlparser.js | JavaScript | gpl-3.0 | 30,455 |
/*
* test-svn-fe: Code to exercise the svn import lib
*/
#include "git-compat-util.h"
#include "vcs-svn/svndump.h"
#include "vcs-svn/svndiff.h"
#include "vcs-svn/sliding_window.h"
#include "vcs-svn/line_buffer.h"
static const char test_svnfe_usage[] =
"test-svn-fe (<dumpfile> | [-d] <preimage> <delta> <len>)";
st... | TextusData/Mover | thirdparty/git-1.7.11.3/test-svn-fe.c | C | gpl-3.0 | 1,336 |
/*
** Bytecode dump definitions.
** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h
*/
#ifndef _LJ_BCDUMP_H
#define _LJ_BCDUMP_H
#include "lj_obj.h"
#include "lj_lex.h"
/* -- Bytecode dump format ------------------------------------------------ */
/*
** dump = header proto+ 0U
** header = ESC ... | huncrys/mtasa-blue | vendor/luajit/src/lj_bcdump.h | C | gpl-3.0 | 2,011 |
"""
Internal subroutines for e.g. aborting execution with an error message,
or performing indenting on multiline output.
"""
import sys
import textwrap
def abort(msg):
"""
Abort execution, print ``msg`` to stderr and exit with error status (1.)
This function currently makes use of `sys.exit`_, which rais... | apavlo/h-store | third_party/python/fabric/utils.py | Python | gpl-3.0 | 4,636 |
<?php namespace App\Repositories\Criteria\Error;
use Bosnadev\Repositories\Criteria\Criteria;
use Bosnadev\Repositories\Contracts\RepositoryInterface as Repository;
class ErrorByCreatedDateDescending extends Criteria {
/**
* @param $model
* @param Repository $repository
*
* @return mixed
... | eddieluis37/lesk | app/Repositories/Criteria/Error/ErrorByCreatedDateDescending.php | PHP | gpl-3.0 | 479 |
/*
Copyright 2013 Google 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 agreed to in writing, software
dis... | galets/SelfDecryptingImage | postsdi/Google/OAuth2/Responses/TokenErrorResponse.cs | C# | gpl-3.0 | 2,488 |
/*
Copyright (C) 2014,2015,2016 The ESPResSo project
This file is part of ESPResSo.
ESPResSo 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 l... | KonradBreitsprecher/espresso | src/core/actor/HarmonicOrientationWell.hpp | C++ | gpl-3.0 | 1,456 |
<html>
<head>
<script src='underscore.js'></script>
<script src='slate-mock.js'></script>
<script src='initialize.js'></script>
</head>
<body>
</body>
</html>
| raxbg/slate | Slate/slate-test.html | HTML | gpl-3.0 | 179 |
##Changelog
###v1.1.3
- removed IDE stuff from npm package
###v1.1.2
- Added deprecation warning for client-side bundlers
- Updated package.json for node v0.10
###v1.1.1
- Fixed bug with modules that had a comment on the last line
###v1.1.0
- Added Coffee-Script support
- Removed Makefile: Use `npm test` instead.
... | sneumann/shiny-server | node_modules/rewire/CHANGELOG.md | Markdown | agpl-3.0 | 865 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.