code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
/* * 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...
rareddy/olingo-odata4
fit/src/test/java/org/apache/olingo/fit/base/FilterFactoryTestITCase.java
Java
apache-2.0
2,425
/* * 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 i...
rnicoll/bitcoinj
core/src/main/java/org/bitcoinj/protocols/channels/PaymentChannelV2ServerState.java
Java
apache-2.0
9,869
<?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...
tsugiproject/tsugi
vendor/google/apiclient-services/src/Google/Service/CloudVideoIntelligence/GoogleCloudVideointelligenceV1LogoRecognitionAnnotation.php
PHP
apache-2.0
2,318
/* * 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/test/java/org/apache/geode/internal/cache/execute/LocalDataSetFunction.java
Java
apache-2.0
3,480
""" Helper module that will enable lazy imports of Cocoa wrapper items. This should improve startup times and memory usage, at the cost of not being able to use 'from Cocoa import *' """ __all__ = ('ObjCLazyModule',) import sys import re import struct from objc import lookUpClass, getClassList, nosuchclass_error, lo...
albertz/music-player
mac/pyobjc-core/Lib/objc/_lazyimport.py
Python
bsd-2-clause
10,756
/* * #%L * Simmetrics Core * %% * Copyright (C) 2014 - 2016 Simmetrics 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....
janmotl/linkifier
src/org/simmetrics/builders/StringMetrics.java
Java
bsd-2-clause
2,692
goog.provide('ol.test.format.WFS'); describe('ol.format.WFS', function() { describe('when parsing TOPP states GML from WFS', function() { var features, feature, xml; var config = { 'featureNS': 'http://www.openplans.org/topp', 'featureType': 'states' }; before(function(done) { pr...
NOAA-ORR-ERD/ol3
test/spec/ol/format/wfsformat.test.js
JavaScript
bsd-2-clause
18,764
#include <SFGUI/ResourceManager.hpp> #include <SFGUI/FileResourceLoader.hpp> #if defined( SFGUI_INCLUDE_FONT ) #include <SFGUI/DejaVuSansFont.hpp> #endif #include <SFML/Graphics/Font.hpp> namespace sfg { ResourceManager::ResourceManager( bool use_default_font ) : m_use_default_font( use_default_font ) { // Add fi...
Krozark/SFML-book
extlibs/SFGUI/src/SFGUI/ResourceManager.cpp
C++
bsd-2-clause
4,383
#ifndef Rice__Module_defn__hpp_ #define Rice__Module_defn__hpp_ #include "Object_defn.hpp" #include "Module_impl.hpp" #include "to_from_ruby_defn.hpp" #include <memory> namespace Rice { class Array; class Class; class String; //! A helper for defining a Module and its methods. /*! This class provides a C++-style in...
cout/rice
rice/Module_defn.hpp
C++
bsd-2-clause
2,025
cask "freetube" do version "0.13.2" sha256 "104b5718b54a0015453b934a58b333cb1336c6d5ec87148abb4722ada870b682" url "https://github.com/FreeTubeApp/FreeTube/releases/download/v#{version}-beta/freetube-#{version}-mac.dmg" name "FreeTube" desc "YouTube player focusing on privacy" homepage "https://github.com/F...
tjnycum/homebrew-cask
Casks/freetube.rb
Ruby
bsd-2-clause
636
cask 'docker' do version '1.12.0.10871' sha256 'f170610d95c188dee8433eff33c84696c1c8a39421de548a71a1258a458e1b21' url "https://download.docker.com/mac/stable/#{version}/Docker.dmg" appcast 'https://download.docker.com/mac/stable/appcast.xml', checkpoint: 'ee03f7c36b4192a64ba30e49a0fa1f8358cc3fe4a8a3a...
MoOx/homebrew-cask
Casks/docker.rb
Ruby
bsd-2-clause
477
# this: every_hour.py # by: Poul Staugaard (poul(dot)staugaard(at)gmail...) # URL: http://code.google.com/p/giewiki # ver.: 1.13 import cgi import codecs import datetime import difflib import glob import hashlib import logging import os import re import urllib import urlparse import uuid import xml.do...
wangjun/giewiki
every_hour.py
Python
bsd-2-clause
4,271
class Mediaconch < Formula desc "Conformance checker and technical metadata reporter" homepage "https://mediaarea.net/MediaConch" url "https://mediaarea.net/download/binary/mediaconch/18.03.2/MediaConch_CLI_18.03.2_GNU_FromSource.tar.bz2" sha256 "8f8f31f1c3eb55449799ebb2031ef373934a0a9826ce6c2b2bdd32dacbf5ec4c"...
zyedidia/homebrew-core
Formula/mediaconch.rb
Ruby
bsd-2-clause
2,757
from lino.api import dd class Persons(dd.Table): model = 'app.Person' column_names = 'name *' detail_layout = """ id name owned_places managed_places VisitsByPerson MealsByPerson """ class Places(dd.Table): model = 'app.Place' detail_layout = """ id name ceo owners ...
lino-framework/book
lino_book/projects/nomti/app/desktop.py
Python
bsd-2-clause
979
/* * 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...
alexchenzl/evernote-sdk-java
src/main/java/com/evernote/thrift/protocol/TList.java
Java
bsd-2-clause
1,107
"""Test module for wiring with invalid type of marker for attribute injection.""" from dependency_injector.wiring import Closing service = Closing["service"]
rmk135/dependency_injector
tests/unit/samples/wiringstringids/module_invalid_attr_injection.py
Python
bsd-3-clause
161
from datadog import initialize, api options = { 'api_key': '9775a026f1ca7d1c6c5af9d94d9595a4', 'app_key': '87ce4a24b5553d2e482ea8a8500e71b8ad4554ff' } initialize(**options) # Get a downtime api.Downtime.get(2910)
jhotta/documentation
code_snippets/api-monitor-get-downtime.py
Python
bsd-3-clause
224
/* This file is part of the Vc library. {{{ Copyright © 2011-2015 Matthias Kretz <kretz@kde.org> 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 not...
chr-engwer/Vc
src/avx_sorthelper.cpp
C++
bsd-3-clause
25,912
 /// <reference path="../lib/types.d.ts" /> import utils = require('../lib/utils'); import file = require('../lib/FileUtil'); import childProcess = require("child_process"); export function buildRunEmulate(callback: (code: number) => void) { exec(egret.args.command, [egret.args.platform], callback); } functio...
Lanfei/egret-core
tools/actions/Cordova.ts
TypeScript
bsd-3-clause
767
<?php class ObjectPath { static protected $type = array(0=>'main'); static function getType() { return self::$type; } } print_r(ObjectPath::getType()); $object_type = array_pop((ObjectPath::getType())); print_r(ObjectPath::getType()); ?>
JSchwehn/php
testdata/fuzzdir/corpus/Zend_tests_bug35393.php
PHP
bsd-3-clause
263
<?php Yii::import('application.modules.store.models.StoreCategory'); /** * Class CategoryWidget * * <pre> * <?php * $this->widget('application.modules.store.widgets.CategoryWidget'); * ?> * </pre> */ class CategoryWidget extends yupe\widgets\YWidget { public $parent = 0; public $depth = 1; pu...
RonLab1987/43berega
protected/modules/store/widgets/CategoryWidget.php
PHP
bsd-3-clause
609
/* * Portions of this file Copyright 1999-2005 University of Chicago * Portions of this file Copyright 1999-2005 The University of Southern California. * * This file or a portion of this file is licensed under the * terms of the Globus Toolkit Public License, found at * http://www.globus.org/toolkit/download/lice...
NCIP/cagrid2-wsrf
wsrf-jglobus/src/test/java/org/globus/util/tests/GlobusURLTest.java
Java
bsd-3-clause
4,887
import os import cStringIO as StringIO git_binary = "git" verbose_mode = False try: from subprocess import Popen, PIPE def run_cmd(cmd): p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE, close_fds=True) return p.stdin, p.stdout, p.stderr e...
slonopotamus/git_svn_server
GitSvnServer/vcs/git/data.py
Python
bsd-3-clause
2,086
/* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.opengl; import javax.annotation.*; import java.nio.*; import org.lwjgl.system.*; import static org.lwjgl.system.Checks.*; import static org.lwjgl.system.JNI.*; imp...
LWJGL-CI/lwjgl3
modules/lwjgl/opengl/src/generated/java/org/lwjgl/opengl/AMDPerformanceMonitor.java
Java
bsd-3-clause
13,606
<?php /** * @see https://github.com/zendframework/zend-uri for the canonical source repository * @copyright Copyright (c) 2005-2018 Zend Technologies USA Inc. (https://www.zend.com) * @license https://github.com/zendframework/zend-uri/blob/master/LICENSE.md New BSD License */ namespace Zend\Uri; /** * UR...
rongeb/anit_cms_for_zf3
vendor/zendframework/zend-uri/src/UriFactory.php
PHP
bsd-3-clause
3,567
// 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. #include "content/browser/background_sync/background_sync_manager.h" #include "base/barrier_closure.h" #include "base/bind.h" #include "base/location.h" ...
Chilledheart/chromium
content/browser/background_sync/background_sync_manager.cc
C++
bsd-3-clause
45,304
var http = require('http'); // check against public file to see if this is the current version of Mapbox Studio Classic module.exports = function (opts, callback) { var update = false; http.request({ host: opts.host, port: opts.port || 80, path: opts.path, method: 'GET' }, f...
mapbox/mapbox-studio
lib/version-check.js
JavaScript
bsd-3-clause
862
<?php /* * This file is part of Cachet. * * (c) Alt Three Services Limited * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace CachetHQ\Cachet\Composers; use CachetHQ\Cachet\Facades\Setting; use CachetHQ\Cachet\Models\Metr...
katzien/Cachet
app/Composers/MetricsComposer.php
PHP
bsd-3-clause
1,783
// $G $D/$F.go && $L $F.$A && // ./$A.out -pass 0 >tmp.go && $G tmp.go && $L -o $A.out1 tmp.$A && ./$A.out1 && // ./$A.out -pass 1 >tmp.go && errchk $G -e tmp.go && // ./$A.out -pass 2 >tmp.go && errchk $G -e tmp.go // rm -f tmp.go $A.out1 // Copyright 2010 The Go Authors. All rights reserved. // Use of this source c...
oopos/go
test/index.go
GO
bsd-3-clause
4,621
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
hainm/pythran
third_party/boost/simd/sdk/simd/extensions/powerpc/qpx.hpp
C++
bsd-3-clause
2,143
<?php error_reporting(E_ALL & ~E_NOTICE); $root = simplexml_load_string('<?xml version="1.0"?> <root xmlns:reserved="reserved-ns"> <child reserved:attribute="Sample" /> </root> '); $attr = $root->child->attributes('reserved-ns'); echo $attr['attribute']; echo "\n---Done---\n"; ?>
JSchwehn/php
testdata/fuzzdir/corpus/ext_simplexml_tests_profile06.php
PHP
bsd-3-clause
283
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/speech/speech_recognizer_impl_android.h" #include "base/android/jni_android.h" #include "base/android/jni_array.h" #include "ba...
hujiajie/pa-chromium
content/browser/speech/speech_recognizer_impl_android.cc
C++
bsd-3-clause
8,013
/***************************************************************************** * McPAT/CACTI * SOFTWARE LICENSE AGREEMENT * Copyright 2012 Hewlett-Packard Development Company, L.P. * All Rights Reserved * * Redistribution and ...
mlebeane/wattwatcher
fast_mcpat/cacti/technology.cc
C++
bsd-3-clause
143,090
# -*- coding: utf-8 -*- from functools import update_wrapper import os from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.utils import six from django.utils.translation import ugettext_lazy as _ from cms import constants from cms.utils.compat.urls import urljoin __a...
samirasnoun/django_cms_gallery_image
cms/utils/conf.py
Python
bsd-3-clause
9,303
// 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. #include "base/basictypes.h" #include "base/compiler_specific.h" #include "base/message_loop.h" namespace aura { class DispatcherWin : public base::...
JoKaWare/GViews
ui/aura/dispatcher_win.cc
C++
bsd-3-clause
805
<?php /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]]) * Description: Finds position of first occurrence of a string within another, case insensitive * Source code: ext/mbstring/mbstring.c * Alias to functions: */ /* * Pass mb_stripos different data types as $hay...
JSchwehn/php
testdata/fuzzdir/corpus/ext_mbstring_tests_mb_stripos_variation1.php
PHP
bsd-3-clause
1,760
# 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. """Runs Apple's SunSpider JavaScript benchmark.""" import collections import json import os from telemetry.core import util from telemetry.page import ...
jing-bao/pa-chromium
tools/perf/perf_tools/sunspider.py
Python
bsd-3-clause
1,597
// 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 "components/sync/test/fake_server/fake_server_http_post_provider.h" #include <utility> #include "base/bind.h" #include "base/location.h" #inclu...
scheib/chromium
components/sync/test/fake_server/fake_server_http_post_provider.cc
C++
bsd-3-clause
5,309
# -*- coding: utf-8 -*- """ Local settings - Run in Debug mode {% if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'y' %} - Use mailhog for emails {% else %} - Use console backend for emails {% endif %} - Add Django Debug Toolbar - Add django-extensions as app """ import socket import os from .common...
schacki/cookiecutter-django
{{cookiecutter.project_slug}}/config/settings/local.py
Python
bsd-3-clause
2,678
<?php /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]]) * Description: Return a formatted string * Source code: ext/standard/formatted_print.c */ echo "*** Testing sprintf() : basic functionality - using bool format ***\n"; // Initialise all required variables $format = "format"; $form...
JSchwehn/php
testdata/fuzzdir/corpus/ext_standard_tests_strings_sprintf_basic4.php
PHP
bsd-3-clause
771
# (C) Datadog, Inc. 2014-2016 # (C) Cory Watson <cory@stripe.com> 2015-2016 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) # stdlib from collections import defaultdict from urlparse import urlparse import re # 3rd party import requests # project from checks import AgentCheck DEFAULT_MAX...
varlib1/servermall
go_expvar/check.py
Python
bsd-3-clause
8,833
class CreateFireStations < ActiveRecord::Migration def change create_table :fire_stations do |t| t.string :address t.point :latlon, :geographic => true t.integer :zip t.timestamps end end end
cityofaustin/preparedly
db/migrate/20120426235805_create_fire_stations.rb
Ruby
bsd-3-clause
229
class Spree::PagesController < Spree::BaseController def show @page = current_page raise ActionController::RoutingError.new("No route matches [GET] #{request.path}") if @page.nil? if @page.root? @posts = Spree::Post.live.limit(5) if SpreeEssentials.has?(:blog) @articles = Spree::Articl...
hakhanhphuc/spree_essential_cms
app/controllers/spree/pages_controller.rb
Ruby
bsd-3-clause
497
var analytics = require('analytics') var d3 = require('d3') var hogan = require('hogan.js') var log = require('./client/log')('help-me-choose') var modal = require('./client/modal') var RouteModal = require('route-modal') var routeResource = require('route-resource') var routeSummarySegments = require('route-summary-se...
miraculixx/modeify
client/help-me-choose-view/index.js
JavaScript
bsd-3-clause
7,412
goog.provide('goog.testing.PseudoRandom'); goog.require('goog.Disposable'); goog.testing.PseudoRandom = function(opt_seed, opt_install) { goog.Disposable.call(this); this.seed_ = opt_seed || goog.testing.PseudoRandom.seedUniquifier_ ++ + goog.now(); if(opt_install) { this.install(); } }; goog.inhe...
johnjbarton/qpp
traceur/test/closurebaseline/third_party/closure-library/closure/goog/testing/pseudorandom.js
JavaScript
bsd-3-clause
1,713
# Copyright (c) 2017,2018 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """ =============================== Sigma to Pressure Interpolation =============================== By using `metpy.calc.log_interp`, data with sigma as the vertical coordinate...
metpy/MetPy
v1.1/_downloads/0f93e682cc461be360e2fd037bf1fb7e/sigma_to_pressure_interpolation.py
Python
bsd-3-clause
3,493
<?php // autoload_real.php @generated by Composer class ComposerAutoloaderInit074aee1d4233eb5f2c56ebdb549dbef4 { private static $loader; public static function loadClassLoader($class) { if ('Composer\Autoload\ClassLoader' === $class) { require __DIR__ . '/ClassLoader.php'; } ...
kidbai/d4t
vendor/composer/autoload_real.php
PHP
bsd-3-clause
1,585
# # cocos2d # http://cocos2d.org # from __future__ import division, print_function, unicode_literals import sys import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) from cocos.director import director from cocos.layer import Layer, ColorLayer from cocos.scene import Scene from cocos.scenes.tra...
Alwnikrotikz/los-cocos
samples/demo_transitions.py
Python
bsd-3-clause
4,303
class PlasmaException(Exception): pass class IncompleteAtomicData(PlasmaException): def __init__(self, atomic_data_name): message = ('The current plasma calculation requires {0}, ' 'which is not provided by the given atomic data'.format( atomic_data_name)) super(P...
rajul/tardis
tardis/plasma/exceptions.py
Python
bsd-3-clause
640
#pragma once #include <memory> #include <arbor/context.hpp> #include "distributed_context.hpp" #include "threading/threading.hpp" #include "gpu_context.hpp" namespace arb { // execution_context is a simple container for the state relating to // execution resources. // Specifically, it has handles for the distribut...
halfflat/nestmc-proto
arbor/execution_context.hpp
C++
bsd-3-clause
1,041
<?php /** * This file is part of phpUnderControl. * * PHP Version 5.2.0 * * Copyright (c) 2007-2011, Manuel Pichler <mapi@phpundercontrol.org>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * a...
phpundercontrol/phpUnderControl-UNMAINTAINED
src/Graph/ChartFactory.php
PHP
bsd-3-clause
3,807
# 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. """Presubmit script for mojo See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit API built into...
zhangxq5012/sky_engine
mojo/PRESUBMIT.py
Python
bsd-3-clause
11,467
/* * Copyright (c) 2015, University of Oslo * * 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 condition...
arthurgwatidzo/dhis2-android-sdk
app/src/main/java/org/hisp/dhis/android/sdk/utils/StringUtils.java
Java
bsd-3-clause
2,060
/** * Copyright (c) 2015-present, 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. */ package co...
mihaigiurgeanu/react-native
ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java
Java
bsd-3-clause
22,305
<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the Revised BSD License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR...
GameMaker2k/UPC-Database
inc/ean8.php
PHP
bsd-3-clause
11,580
using System.Globalization; using System.Collections.Generic; using ServiceStack.Common; using ServiceStack.Common.Web; using ServiceStack.ServiceHost; using ServiceStack.Configuration; using ServiceStack.FluentValidation; using ServiceStack.Text; using System; using System.Net; using System.Security.Cryptography; usi...
fanta-mnix/ServiceStack
src/ServiceStack.ServiceInterface/Auth/DigestAuthProvider.cs
C#
bsd-3-clause
6,338
<?php namespace mageekguy\atoum\fs; use mageekguy\atoum\fs\path\exception; class path { protected $drive = ''; protected $components = ''; protected $directorySeparator = DIRECTORY_SEPARATOR; public function __construct($value, $directorySeparator = null) { $this ->setDriveAn...
jubianchi/atoum
classes/fs/path.php
PHP
bsd-3-clause
7,037
from energenie import switch_off switch_off()
rjw57/energenie
examples/simple/off.py
Python
bsd-3-clause
47
require "og/store/sql/utils" module Og module SqliteUtils include SqlUtils # works fine without any quote. #-- # Is this verified? #++ def quote_column(val) return val end alias_method :quote_table, :quote_column end end
oxywtf/og
lib/og/adapter/sqlite/utils.rb
Ruby
bsd-3-clause
255
""" WSGI config for {{ cookiecutter.project_name }} project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via t...
aeikenberry/cookiecutter-django-rest-babel
{{cookiecutter.project_slug}}/config/wsgi.py
Python
bsd-3-clause
2,232
<?php require_once('connect.inc'); require_once('table.inc'); $references = array(); if (!(mysqli_real_query($link, "SELECT id, label FROM test ORDER BY id ASC LIMIT 2")) || !($res = mysqli_store_result($link))) printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); $idx = 0; while ($row = m...
stephens2424/php
testdata/fuzzdir/corpus/ext_mysqli_tests_mysqli_result_references.php
PHP
bsd-3-clause
2,068
// // Mono.Security.Cryptography.SymmetricTransform implementation // // Authors: // Thomas Neidhart (tome@sbox.tugraz.at) // Sebastien Pouliot <sebastien@ximian.com> // // Portions (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com) // Copyright (C) 2004-2008 Novell, Inc (http://www.novell.com) // ...
ngs-doo/revenj
csharp/Core/Revenj.Core/Security/Mono.Security/Mono.Security.Cryptography/SymmetricTransform.cs
C#
bsd-3-clause
16,384
using System; using System.Collections.Generic; using System.Linq; using OrchardCore.ContentManagement.Routing; namespace OrchardCore.Autoroute.Services { public class AutorouteEntries : IAutorouteEntries { private readonly Dictionary<string, AutorouteEntry> _paths; private readonly Dictionary<...
petedavis/Orchard2
src/OrchardCore.Modules/OrchardCore.Autoroute/Services/AutorouteEntries.cs
C#
bsd-3-clause
3,716
require File.join(File.dirname(__FILE__), '../test_helper.rb') class PaymentTest < Test::Unit::TestCase include TestHelper # Tests that a payment can be converted into XML that Xero can understand, and then converted back to a payment def test_build_and_parse_xml payment = create_test_payment # Generat...
armstrjare/xero_gateway
test/unit/payment_test.rb
Ruby
isc
1,445
/// <reference path="../../defs/tsd.d.ts"/> /// <reference path="./interfaces.d.ts"/> var path = require('path'); var fs = require('fs'); var _ = require('lodash'); var utils = require('./utils'); var cache = require('./cacheUtils'); var Promise = require('es6-promise').Promise; exports.grunt = require('grunt'); //////...
Softpagehomeware/grunt-ts
tasks/modules/compile.js
JavaScript
mit
9,276
using System; using System.ComponentModel.DataAnnotations; namespace Models.NorthwindIB.NH { [AttributeUsage(AttributeTargets.Class)] // NEW public class CustomerValidator : ValidationAttribute { public override Boolean IsValid(Object value) { var cust = value as Customer; if (cust != null && cust...
gilesbradshaw/breeze.server.net
Tests/Model_NorthwindIB_NH/Customer.extended.cs
C#
mit
1,202
require 'spec_helper' feature 'Users' do around do |ex| old_url_options = Rails.application.routes.default_url_options Rails.application.routes.default_url_options = { host: 'example.foo' } ex.run Rails.application.routes.default_url_options = old_url_options end scenario 'GET /users/sign_in cre...
yuyue2013/ss
spec/features/users_spec.rb
Ruby
mit
1,114
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AdminService.Controller { using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.ServiceFab...
mcollier/ServiceFabricPubSub
src/ServiceFabricPubSub/Admin/Controllers/KeysController.cs
C#
mit
2,935
<?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...
buzzengine/buzzengine
vendor/zend-framework/library/Zend/Feed/Writer/Extension/Atom/Renderer/Feed.php
PHP
mit
3,543
/******************************************************************************* * Copyright (c) 2015 * * 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 withou...
Peter-Maximilian/settlers-remake
jsettlers.logic/src/main/java/jsettlers/algorithms/heap/MinHeap.java
Java
mit
6,973
/* Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.help.console"]){ dojo._hasResource["dojox.help.console"]=true; dojo.provide("dojox.help.consol...
bjorns/logger
src/main/webapp/js/dojox/help/console.js
JavaScript
mit
1,517
import * as React from 'react'; import Checkbox from '@material-ui/core/Checkbox'; import FormGroup from '@material-ui/core/FormGroup'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import FormControl from '@material-ui/core/FormControl'; import FormLabel from '@material-ui/core/FormLabel'; export...
callemall/material-ui
docs/src/pages/components/checkboxes/FormControlLabelPosition.tsx
TypeScript
mit
1,165
package backup // Copyright (c) Microsoft and contributors. 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 // // Unle...
seuffert/rclone
vendor/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2017-07-01/backup/protectionintent.go
GO
mit
7,908
<?php /** * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyrig...
FlopySwitzerland/nessi
tmp/bake/Bake-Element-Controller-edit-ctp.php
PHP
mit
2,438
version https://git-lfs.github.com/spec/v1 oid sha256:b386bb4d8bf9eb9e8099152a3eb963073051fb960b30cd512b6a07bd1f751d3d size 734
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.2.0/datatype/lang/datatype_it-IT.js
JavaScript
mit
128
class MergeRequestObserver < BaseObserver def after_create(merge_request) notification.new_merge_request(merge_request, current_user) end def after_close(merge_request, transition) Note.create_status_change_note(merge_request, current_user, merge_request.state) notification.close_mr(merge_request, c...
Aruiwen/gitlabhq
app/observers/merge_request_observer.rb
Ruby
mit
724
using System; using System.Text; using System.Web; using System.Web.Http.Description; namespace TheBigCatProject.Server.Areas.HelpPage { public static class ApiDescriptionExtensions { /// <summary> /// Generates an URI-friendly ID for the <see cref="ApiDescription"/>. E.g. "Get-Values-id_name" ...
EmilMitev/Telerik-Academy
Single Page Applications/07. AngularJS Workshop/TheBigCatProject/TheBigCatProject.Server/Areas/HelpPage/ApiDescriptionExtensions.cs
C#
mit
1,513
package com.xeiam.xchange.taurus.dto; import si.mazi.rescu.HttpStatusExceptionSupport; import com.fasterxml.jackson.annotation.JsonProperty; public class TaurusException extends HttpStatusExceptionSupport { public TaurusException(@JsonProperty("error") Object error) { super(error.toString()); } }
cinjoff/XChange-1
xchange-taurus/src/main/java/com/xeiam/xchange/taurus/dto/TaurusException.java
Java
mit
309
using System; using System.Threading; using Microsoft.Extensions.Options; using Microsoft.Extensions.Logging; using Orleans.Configuration; namespace Orleans.Transactions { internal class ActiveTransactionsTracker : IDisposable { private readonly TransactionsOptions options; private readonly Tra...
ashkan-saeedi-mazdeh/orleans
src/Orleans.Transactions/InClusterTM/ActiveTransactionsTracker.cs
C#
mit
4,965
// 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. #include "pal_config.h" #include "pal_uid.h" #include "pal_utilities.h" #include <assert.h> #include <errno.h> #inc...
shmao/corefx
src/Native/Unix/System.Native/pal_uid.cpp
C++
mit
1,762
using System.Reflection; [assembly: AssemblyTitle("Cedar.EventStore.Tests")] [assembly: AssemblyDescription("")]
dcomartin/Cedar.EventStore
src/Cedar.EventStore.Tests/Properties/AssemblyInfo.cs
C#
mit
113
// +build linux package libcontainer import ( "fmt" "io" "io/ioutil" "os" "os/exec" "path" "path/filepath" "strings" "syscall" "time" "github.com/docker/docker/pkg/mount" "github.com/docker/docker/pkg/symlink" "github.com/opencontainers/runc/libcontainer/cgroups" "github.com/opencontainers/runc/libcont...
thaJeztah/binctr
vendor/github.com/opencontainers/runc/libcontainer/rootfs_linux.go
GO
mit
19,935
<?php namespace Lexik\Bundle\JWTAuthenticationBundle; /** * Events. * * @author Dev Lexik <dev@lexik.fr> */ final class Events { /** * Dispatched after the token generation to allow sending more data * on the authentication success response. */ const AUTHENTICATION_SUCCESS = 'lexik_jwt_auth...
DevKhater/symfony2-testing
vendor/lexik/jwt-authentication-bundle/Events.php
PHP
mit
2,311
<?php global $_MODULE; $_MODULE = array(); $_MODULE['<{gridhtml}prestashop>gridhtml_cf6b972204ee563b4e5691b293e931b6'] = 'Visualització simple taula HTML'; $_MODULE['<{gridhtml}prestashop>gridhtml_05ce5a49b49dd6245f71e384c4b43564'] = 'Permet que el sistema d\'estadístiques mostri les dades en una quadrícula.'; retu...
insbadia-dawm8/gitteam
proyecto/modules/gridhtml/translations/ca.php
PHP
mit
336
var fs = require('fs') var path = require('path') var util = require('util') var semver = require('semver') exports.checkEngine = checkEngine function checkEngine (target, npmVer, nodeVer, force, strict, cb) { var nodev = force ? null : nodeVer var eng = target.engines var opt = { includePrerelease: true } if ...
giovannic/giovannic.github.com
node_modules/npm/node_modules/npm-install-checks/index.js
JavaScript
mit
4,201
package main import ( "fmt" "time" "github.com/google/jsonapi" ) // Blog is a model representing a blog site type Blog struct { ID int `jsonapi:"primary,blogs"` Title string `jsonapi:"attr,title"` Posts []*Post `jsonapi:"relation,posts"` CurrentPost *Post `jsonapi:"...
aren55555/jsonapi
examples/models.go
GO
mit
2,237
require File.expand_path('../../../enumerable/shared/enumeratorized', __FILE__) describe :keep_if, :shared => true do it "deletes elements for which the block returns a false value" do array = [1, 2, 3, 4, 5] array.send(@method) {|item| item > 3 }.should equal(array) array.should == [4, 5] end it "r...
benlovell/rubyspec
core/array/shared/keep_if.rb
Ruby
mit
1,516
define(["bin/core/naviPageView"], function(Base) { var Class = {}; Class.onViewPush = function(pushFrom, pushData) { this._config = pushData; } Class.genHTML = function() { Base.prototype.genHTML.call(this); this.setTitle("示例 "+this._config.name); } return Base.extend(Class); });
weizhiwu/BIN
demo/common/demoView.js
JavaScript
mit
316
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using Orleans.Metadata; namespace Orleans.Runtime.Versions { /// <summary> /// Functionality for querying the declared version of grain interfaces. /// </summary> internal class GrainVersionManifest ...
veikkoeeva/orleans
src/Orleans.Core/Manifest/GrainVersionManifest.cs
C#
mit
14,080
//===---- include/gcinfo/gcinfoutil.cpp -------------------------*- C++ -*-===// // // LLILC // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // See LICENSE file in the project root for full license information. // //===--------------------------------------------------------------...
tempbottle/llilc
lib/GcInfo/GcInfoUtil.cpp
C++
mit
3,819
using System; namespace ClosedXML.Excel { internal class XLSheetView : IXLSheetView { public XLSheetView() { View = XLSheetViewOptions.Normal; ZoomScale = 100; ZoomScaleNormal = 100; ZoomScalePageLayoutView = 100; ZoomScaleSheetLayout...
b0bi79/ClosedXML
ClosedXML/Excel/XLSheetView.cs
C#
mit
2,252
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
DDoS/SpongeForge
src/main/java/org/spongepowered/mod/mixin/entityactivation/MixinWorld_Activation.java
Java
mit
2,737
module Danger class ExampleManyMethodsPlugin < Plugin def one end # Thing two # def two(param1) end def two_point_five(param1 = nil) end # Thing three # # @param [String] param1 # A thing thing, defaults to nil. # @return [void] # def three(pa...
KrauseFx/danger
spec/fixtures/plugins/plugin_many_methods.rb
Ruby
mit
995
namespace MYOB.AccountRight.SDK.Contracts.Version2.Company { /// <summary> /// Purchase preferences /// </summary> public class CompanyPurchasesPreferences { /// <summary> /// Purchases' terms preferences /// </summary> public CompanyPurchasesPreferencesTerms Terms {...
MYOB-Technology/AccountRight_Live_API_.Net_SDK
MYOB.API.SDK/SDK/Contracts/Version2/Company/CompanyPurchasesPreferences.cs
C#
mit
343
/* * Websock: high-performance binary WebSockets * Copyright (C) 2012 Joel Martin * Licensed under MPL 2.0 (see LICENSE.txt) * * Websock is similar to the standard WebSocket object but Websock * enables communication with raw TCP sockets (i.e. the binary stream) * via websockify. This is accomplished by base64 e...
jerry-0824/017_stone
web/vnc/include/websock.js
JavaScript
mit
15,502
module Lotus module View module Rendering # Null Object pattern for layout template # # It's used when a layout doesn't have an associated template. # # A common scenario is for non-html requests. # Usually we have a template for the application layout # (eg `templates/ap...
farrel/view
lib/lotus/view/rendering/null_template.rb
Ruby
mit
2,669
package service import ( "encoding/json" "strings" "code.cloudfoundry.org/cli/cf" "code.cloudfoundry.org/cli/cf/flagcontext" "code.cloudfoundry.org/cli/cf/flags" . "code.cloudfoundry.org/cli/cf/i18n" "code.cloudfoundry.org/cli/cf/uihelpers" "fmt" "code.cloudfoundry.org/cli/cf/api" "code.cloudfoundry.org/c...
odlp/antifreeze
vendor/github.com/cloudfoundry/cli/cf/commands/service/create_user_provided_service.go
GO
mit
5,467
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; using Micro...
dwnichols/Mobius
csharp/Adapter/Microsoft.Spark.CSharp/Proxy/Ipc/StatusTrackerIpcProxy.cs
C#
mit
3,621
/* Copyright 2016 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...
skuid/helm-value-store
vendor/k8s.io/helm/pkg/helm/helm_test.go
GO
mit
10,604
<?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\Filesystem; use Symfony\Component\Filesystem\Exceptio...
gonzalovilaseca/symfony
src/Symfony/Component/Filesystem/Filesystem.php
PHP
mit
28,366