repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
apiman/apiman
test/common/src/main/java/io/apiman/test/common/resttest/IGatewayTestServer.java
1286
/* * Copyright 2015 JBoss 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...
apache-2.0
cloudbau/glance
glance/db/sqlalchemy/migrate_repo/versions/027_checksum_index.py
1195
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 Rackspace Hosting # 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.o...
apache-2.0
nugget/home-assistant
homeassistant/components/sensor/geizhals.py
3083
""" Parse prices of a device from geizhals. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.geizhals/ """ import logging from datetime import timedelta import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA import ho...
apache-2.0
mdanielwork/intellij-community
plugins/IntelliLang/java-support/org/intellij/plugins/intelliLang/inject/java/ConcatenationInjector.java
22416
/* * Copyright 2000-2017 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...
apache-2.0
k82/kubernetes
cmd/kube-controller-manager/app/controllermanager.go
25770
/* Copyright 2014 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, ...
apache-2.0
ndimiduk/hbase
hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestServerCrashProcedureCarryingMetaStuck.java
4073
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
apache-2.0
littlezhou/hadoop
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/ShortCircuitRegistry.java
14657
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
apache-2.0
ThorbenLindhauer/activiti-engine-ppi
modules/activiti-engine/src/test/java/org/activiti/engine/test/api/runtime/DummySerializable.java
847
/* 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...
apache-2.0
ftomassetti/java-symbol-solver
java-symbol-solver-testing/src/test/resources/javassist_symbols/main_jar/src/com/github/javaparser/javasymbolsolver/javassist_symbols/main_jar/EnumInterfaceUserIncludedJar.java
269
package com.github.javaparser.javasymbolsolver.javassist_symbols.main_jar; import com.github.javaparser.javasymbolsolver.javassist_symbols.included_jar.InterfaceIncludedJar; public enum EnumInterfaceUserIncludedJar implements InterfaceIncludedJar { OWN_ENUM_VAL }
apache-2.0
arehart13/smile
core/src/test/java/smile/wavelet/SymmletWaveletTest.java
1862
/******************************************************************************* * Copyright (c) 2010 Haifeng Li * * 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-2.0
archerjd/modularcombat_v3.0.0
3.0.0/src/vgui2/vgui_controls/DirectorySelectDialog.cpp
18525
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // //=============================================================================// #define PROTECTED_THINGS_DISABLE #include <vgui_controls/Button.h> #include <vgui_controls/ComboBox.h> #include <vgui_controls/DirectorySele...
artistic-2.0
TheTypoMaster/SPHERE-Framework
Library/MathJax/2.5.0/localization/ast/MathMenu.js
5826
/* * /MathJax/localization/ast/MathMenu.js * * Copyright (c) 2009-2015 The MathJax Consortium * * 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/lice...
bsd-2-clause
ericbn/homebrew-cask
Casks/qqlive.rb
776
cask "qqlive" do version "2.18.2.52825" sha256 "5d0b53ff0f95605c306326a531ffc5341842aa8231db8abc1491d3eadeb7b335" url "https://dldir1.qq.com/qqtv/mac/TencentVideo_V#{version}.dmg" appcast "https://v.qq.com/biu/download#Mac" name "QQLive" name "腾讯视频" homepage "https://v.qq.com/download.html#mac" auto_u...
bsd-2-clause
neilbu/osrm-backend
third_party/libosmium/include/osmium/area/detail/proto_ring.hpp
8174
#ifndef OSMIUM_AREA_DETAIL_PROTO_RING_HPP #define OSMIUM_AREA_DETAIL_PROTO_RING_HPP /* This file is part of Osmium (http://osmcode.org/libosmium). Copyright 2013-2017 Jochen Topf <jochen@topf.org> and others (see README). Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free o...
bsd-2-clause
moyogo/robofab
Docs/Examples/objects/RGlyph_03.py
645
# robofab manual # Glyph object # method examples # In FontLab the baseglyph of a component can't be changed easily. # This assumes that there will only be # one component that needs to be remapped. def remapComponent(glyph, oldBaseGlyph, newBaseGlyph): foundComponent = None for component in glyph.components:...
bsd-3-clause
endlessm/chromium-browser
tools/idl_parser/idl_node.py
5635
#!/usr/bin/env python # 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. import sys # # IDL Node # # IDL Node defines the IDLAttribute and IDLNode objects which are constructed # by the parser as it proc...
bsd-3-clause
Bysmyyr/chromium-crosswalk
third_party/WebKit/Source/core/css/CSSQuadValue.cpp
1453
// 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 "config.h" #include "core/css/CSSQuadValue.h" #include "wtf/text/StringBuilder.h" namespace blink { String CSSQuadValue::customCSSText() const...
bsd-3-clause
danakj/chromium
components/domain_reliability/header.cc
8759
// 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 "components/domain_reliability/header.h" #include <stdint.h> #include <string> #include "base/memory/ptr_util.h" #include "base/strings/string...
bsd-3-clause
endlessm/chromium-browser
third_party/llvm/parallel-libs/acxxel/tests/status_test.cpp
1414
//===--- status_test.cpp - Tests for the Status and Expected classes ------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
bsd-3-clause
chromium/chromium
chrome/browser/captive_portal/captive_portal_browsertest.cc
136347
// 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 <algorithm> #include <atomic> #include <iterator> #include <map> #include <memory> #include <set> #include <string> #include <tuple> #include...
bsd-3-clause
chromium/chromium
extensions/common/constants.cc
10542
// 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 "extensions/common/constants.h" #include "base/cxx17_backports.h" #include "base/strings/string_piece.h" #include "build/build_config.h" #in...
bsd-3-clause
felixmulder/scala
test/files/run/reflection-modulemirror-inner-badpath.scala
528
import scala.reflect.runtime.universe._ import scala.reflect.runtime.{currentMirror => cm} import scala.reflect.ClassTag class Foo{ object R { override def toString = "R" } def foo = { val classTag = implicitly[ClassTag[R.type]] val sym = cm.moduleSymbol(classTag.runtimeClass) try { val cls = cm.reflectMod...
bsd-3-clause
google-code-export/pysal
pysal/spreg/tests/test_ols.py
4988
import unittest import numpy as np import pysal import pysal.spreg as EC PEGP = pysal.examples.get_path class TestBaseOLS(unittest.TestCase): def setUp(self): db = pysal.open(PEGP('columbus.dbf'),'r') y = np.array(db.by_col("HOVAL")) self.y = np.reshape(y, (49,1)) X = [] X....
bsd-3-clause
sevenbitbyte/mongodb_store
mongodb_store/scripts/config_manager.py
10274
#!/usr/bin/env python import roslib; roslib.load_manifest('mongodb_store') import rospy import sys import os import collections import json import xmlrpclib from bson.binary import Binary import mongodb_store.util from mongodb_store.srv import * from std_srvs.srv import * import rosparam if not mongodb_store.util.c...
bsd-3-clause
lanselin/pysal
pysal/network/network.py
42024
from collections import defaultdict, OrderedDict import math import os import cPickle import copy import numpy as np import pysal as ps from pysal.weights.util import get_ids from analysis import NetworkG, NetworkK, NetworkF import util __all__ = ["Network", "PointPattern", "NetworkG", "NetworkK", "NetworkF"] clas...
bsd-3-clause
dammeheli75/blx
vendor/telerik/kendoui/Kendo/Data/DataSourceTransportDestroy.php
2397
<?php namespace Kendo\Data; class DataSourceTransportDestroy extends \Kendo\SerializableObject { //>> Properties /** * If set to false the request result will not be cached by the browser. Setting cache to false will only work correctly with HEAD and GET requests. It works by appending "_={timestamp}" to the...
bsd-3-clause
quantopian/odo
odo/into.py
4965
from __future__ import absolute_import, division, print_function import functools from toolz import merge from multipledispatch import Dispatcher from .convert import convert from .append import append from .resource import resource from .utils import ignoring import datashape from datashape import discover from d...
bsd-3-clause
lortnus/ezc
Webdav/tests/client_cadaver_lock_test.php
734
<?php /** * Client test for Cadaver (with locking). * * @package Webdav * @subpackage Tests * @version 1.1.4 * @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved. * @license http://ez.no/licenses/new_bsd New BSD License */ require_once 'client_test_suite.php'; require_once 'client_test_conti...
bsd-3-clause
timorieber/wagtail
wagtail/admin/rich_text/editors/hallo.py
5475
import json from collections import OrderedDict from django.forms import Media, widgets from django.utils.functional import cached_property from wagtail.admin.edit_handlers import RichTextFieldPanel from wagtail.admin.rich_text.converters.editor_html import EditorHTMLConverter from wagtail.admin.staticfiles import ve...
bsd-3-clause
ghedsouza/django
django/db/models/query.py
69428
""" The main QuerySet implementation. This provides the public API for the ORM. """ import copy import sys import warnings from collections import OrderedDict, deque from django.conf import settings from django.core import exceptions from django.db import ( DJANGO_VERSION_PICKLE_KEY, IntegrityError, connections, ...
bsd-3-clause
phergie/phergie
Phergie/Plugin/Ping.php
3865
<?php /** * Phergie * * PHP version 5 * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE. * It is also available through the world-wide-web at this URL: * http://phergie.org/license * * @category Phergie * @package Phergie_Plugin_Pi...
bsd-3-clause
exocad/exotrac
trac/upgrades/db17.py
1475
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2013 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.com/license.html. # # This software consists ...
bsd-3-clause
Sampa/PP
vendor/yiisoft/yii2/db/sqlite/Schema.php
8310
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yii\db\sqlite; use yii\db\TableSchema; use yii\db\ColumnSchema; /** * Schema is the class for retrieving metadata from a SQLite (2/3) database. * * @auth...
bsd-3-clause
DasIch/django
django/contrib/admin/static/admin/js/change_form.js
1756
/*global showAddAnotherPopup, showRelatedObjectLookupPopup showRelatedObjectPopup updateRelatedObjectLinks*/ (function($) { 'use strict'; $(document).ready(function() { var modelName = $('#django-admin-form-add-constants').data('modelName'); $('.add-another').click(function(e) { e.p...
bsd-3-clause
michaelrice/yavijava
src/main/java/com/vmware/vim25/DrsResourceConfigureFailedEvent.java
2050
/*================================================================================ Copyright (c) 2013 Steve Jin. 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 re...
bsd-3-clause
qtmdev/u2f-ref-code
u2f-chrome-extension/messagetypes.js
572
// Copyright 2014 Google Inc. All rights reserved // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd /** * @fileoverview U2F message types. */ 'use strict'; /** * Message types for messsages to/fr...
bsd-3-clause
fregaham/KiWi
src/action/kiwi/api/user/MailServiceLocal.java
1913
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2008-2009, The KiWi Project (http://www.kiwi-project.eu) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: *...
bsd-3-clause
devilcoders/solidus
core/app/models/spree/payment.rb
10552
module Spree class Payment < Spree::Base include Spree::Payment::Processing IDENTIFIER_CHARS = (('A'..'Z').to_a + ('0'..'9').to_a - %w(0 1 I O)).freeze NON_RISKY_AVS_CODES = ['B', 'D', 'H', 'J', 'M', 'Q', 'T', 'V', 'X', 'Y'].freeze RISKY_AVS_CODES = ['A', 'C', 'E', 'F', 'G', 'I', 'K', 'L', 'N'...
bsd-3-clause
quyen/site_announcements
app/models/site_announcement_category.rb
88
class SiteAnnouncementCategory < ActiveRecord::Base has_many :site_announcements end
bsd-3-clause
taydakov/cefgluesimpleajax
CefGlue/Classes.Handlers/CefFocusHandler.cs
2277
namespace Xilium.CefGlue { using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.InteropServices; using Xilium.CefGlue.Interop; /// <summary> /// Implement this interface to handle events related to focus. The methods of /// this class will be ca...
mit
v5developer/maven-framework-project
hibernate-tutorials/hibernate-inheritance-table-per-concrete-class-xml-example/src/main/java/org/hibernate/inheritance/table/per/concrete/xml/example/Owner.java
671
package org.hibernate.inheritance.table.per.concrete.xml.example; public class Owner extends Person { private Long stocks; private Long partnershipStake; public Owner() { } public Owner(String firstname, String lastname, Long stocks, Long partnershipStake) { super(firstname, lastname); this.stock...
mit
EstebanVerbel/XamarinCert
5_ResourcesAndStyles/1_TipCalculator/TipCalculator/TipCalculator.Droid/MainActivity.cs
609
using System; using Android.App; using Android.Content.PM; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; namespace TipCalculator.Droid { [Activity(Label = "TipCalculator", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChan...
mit
enclose-io/compiler
lts/test/parallel/test-async-hooks-http-agent.js
2919
'use strict'; // Flags: --expose-internals const common = require('../common'); const assert = require('assert'); const { async_id_symbol } = require('internal/async_hooks').symbols; const http = require('http'); // Regression test for https://github.com/nodejs/node/issues/13325 // Checks that an http.Agent properly a...
mit
slamperone/consolidador
assets/bower/perfect-scrollbar/src/js/lib/helper.js
2163
'use strict'; var cls = require('./class') , d = require('./dom'); exports.toInt = function (x) { return parseInt(x, 10) || 0; }; exports.clone = function (obj) { if (obj === null) { return null; } else if (typeof obj === 'object') { var result = {}; for (var key in obj) { result[key] = thi...
mit
hoka-plus/p-01-web
tmp/babel-output_path-MNyU5yIO.tmp/modules/lodash/internal/isLength.js
641
/** * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer) * of an array-like value. */ var MAX_SAFE_INTEGER = 9007199254740991; /** * Checks if `value` is a valid array-like length. * * **Note:** This function is based on [`ToLength`](http://ecma-international.or...
mit
samsonasik/Slim
tests/Http/ResponseTest.php
8638
<?php /** * Slim Framework (http://slimframework.com) * * @link https://github.com/slimphp/Slim * @copyright Copyright (c) 2011-2015 Josh Lockhart * @license https://github.com/slimphp/Slim/blob/master/LICENSE.md (MIT License) */ namespace Slim\Tests\Http; use ReflectionProperty; use Slim\Http\Body; use S...
mit
eslint/eslint
lib/rules/template-curly-spacing.js
4767
/** * @fileoverview Rule to enforce spacing around embedded expressions of template strings * @author Toru Nagashima */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ co...
mit
praecipula/mongoid
spec/mongoid/relations/referenced/many_to_many_spec.rb
83444
require "spec_helper" describe Mongoid::Relations::Referenced::ManyToMany do before(:all) do Mongoid.raise_not_found_error = true Person.autosave(Person.relations["preferences"].merge!(autosave: true)) Person.synced(Person.relations["preferences"]) end after(:all) do Person.reset_callbacks(:sav...
mit
chapter-three/AppleNewsAPI
tests/Document/Components/BodyTest.php
536
<?php /** * @file * Tests for ChapterThree\AppleNewsAPI\Document\Components\Body. */ use ChapterThree\AppleNewsAPI\Document\Components\Body; /** * Tests for the Body class. */ class BodyTest extends PHPUnit_Framework_TestCase { /** * Setting properties and outputting json. */ public function testSett...
mit
mokelab/pkgname
Godeps/_workspace/src/github.com/google/go-github/github/github.go
16317
// Copyright 2013 The go-github AUTHORS. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package github import ( "bytes" "encoding/json" "errors" "fmt" "io" "io/ioutil" "net/http" "net/url" "reflect" "strconv" "strings" "time"...
mit
tuminitumina/magentobasic
app/code/core/Mage/Adminhtml/controllers/Sales/Order/CreateController.php
21852
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
mit
erikzhouxin/CSharpSolution
OSS/Alipay/F2FPayDll/Projects/alipay-sdk-NET20161213174056/AopResponse.cs
1702
using System; using System.Xml.Serialization; namespace Aop.Api { [Serializable] public abstract class AopResponse { private string code; private string msg; private string subCode; private string subMsg; private string body; /// <summary> /// 错误码 ...
mit
NestorSegura/operationcode_frontend
stories/components/iconCard/index.js
1134
import React from 'react'; import { storiesOf } from '@storybook/react'; import IconCard from 'shared/components/iconCard/iconCard'; storiesOf('shared/components/iconCard', module) .add('Default', () => ( <IconCard title="Title" fontAwesomeIcon="FaRoad" /> )) .add('With subText', () => ( ...
mit
azri/Insoshi-Rails-3
db/migrate/20081015002258_migrate_photo_data.rb
968
class MigratePhotoData < ActiveRecord::Migration def self.up # For each person, create a gallery and put all their photos there. Person.find(:all).each do |person| gallery = person.galleries.new gallery.title = "Primary" primary_photo = person.photos.detect(&:primary?) gallery.prima...
mit
cultofmetatron/mephisto
lib/authenticated_system.rb
3046
module AuthenticatedSystem protected def logged_in? current_user != :false end # Accesses the current user from the session. def current_user @current_user ||= (session[:user] && User.find_by_site(site, session[:user])) || :false end # Store the given user in the session....
mit
wieslawsoltes/Perspex
src/Avalonia.Animation/Animators/UInt64Animator.cs
631
using System; namespace Avalonia.Animation.Animators { /// <summary> /// Animator that handles <see cref="UInt64"/> properties. /// </summary> public class UInt64Animator : Animator<UInt64> { const double maxVal = (double)UInt64.MaxValue; /// <inheritdocs/> public override...
mit
magicaner/n98-magerun
tests/N98/Magento/Command/Developer/Translate/InlineShopCommandTest.php
1163
<?php namespace N98\Magento\Command\Developer\Translate; use Symfony\Component\Console\Tester\CommandTester; use N98\Magento\Command\PHPUnit\TestCase; class InlineShopCommandTest extends TestCase { public function testExecute() { $application = $this->getApplication(); $application->add(new I...
mit
rbalda/neural_ocr
env/lib/python2.7/site-packages/mpl_toolkits/axes_grid1/colorbar.py
27919
''' Colorbar toolkit with two classes and a function: :class:`ColorbarBase` the base class with full colorbar drawing functionality. It can be used as-is to make a colorbar for a given colormap; a mappable object (e.g., image) is not needed. :class:`Colorbar` the derived class ...
mit
insiders/KunstmaanBundlesCMS
src/Kunstmaan/NodeBundle/Tests/Entity/NodeVersionTest.php
2884
<?php namespace Kunstmaan\NodeBundle\Tests\Entity; use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityRepository; use Kunstmaan\NodeBundle\Entity\HasNodeInterface; use Kunstmaan\NodeBundle\Entity\NodeTranslation; use Kunstmaan\NodeBundle\Entity\NodeVersion; use PHPUnit\Framework\TestCase; class NodeVersionTest e...
mit
mizoki/shirasagi
spec/features/cms/node/nodes_spec.rb
1564
require 'spec_helper' describe "cms_node_nodes", type: :feature, dbscope: :example do let(:site) { cms_site } let(:node) { create :cms_node } let(:item) { create :cms_node, filename: "#{node.filename}/name" } let(:index_path) { node_nodes_path site.id, node } let(:new_path) { "#{index_path}/new" } let(...
mit
ggoral/whitehall
features/step_definitions/topic_steps.rb
9575
Given /^a topic called "([^"]*)" exists$/ do |name| @topic = create(:topic, name: name) end Given /^a topic called "([^"]*)" with description "([^"]*)"$/ do |name, description| create(:topic, name: name, description: description) end Given(/^the publication "(.*?)" is associated with the topic "(.*?)"$/) do |publ...
mit
quyixia/BeeFramework_Android
src/com/example/adapter/TrendAdapter.java
2668
package com.example.adapter; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.BeeFramework.example.R; import com.BeeFramework.adapter.BeeBaseAdapter; import java.util.ArrayList; /* * ______ ______ ______ * /\ __ \ /\ ___\ ...
mit
ddaspit/libpalaso
SIL.Windows.Forms.WritingSystems/WSIdentifiers/VoiceIdentifierView.Designer.cs
1963
using SIL.Windows.Forms.Widgets; namespace SIL.Windows.Forms.WritingSystems.WSIdentifiers { partial class VoiceIdentifierView { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. ...
mit
ortroyaner/GithubFinder
node_modules/ionic-angular/umd/components/tabs/tabs.js
25756
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { ext...
mit
rokn/Count_Words_2015
testing/openjdk2/nashorn/src/jdk/nashorn/internal/runtime/linker/NashornLinker.java
14387
/* * Copyright (c) 2010, 2013, 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 ...
mit
ralfonso/spree
vendor/go.uber.org/zap/zaptest/observer/observer.go
4455
// Copyright (c) 2016 Uber Technologies, 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, merge...
mit
mclark--/mclark--.github.io
_posts/2020-03-23-covid/covid_files/highcharts-7.0.1/modules/variable-pie.js
3104
/* Highcharts JS v7.0.1 (2018-12-19) Variable Pie module for Highcharts (c) 2010-2018 Grzegorz Blachliski License: www.highcharts.com/license */ (function(c){"object"===typeof module&&module.exports?module.exports=c:"function"===typeof define&&define.amd?define(function(){return c}):c("undefined"!==typeof Highc...
mit
tiaozi0912/apn_on_rails
spec/active_record/setup_ar.rb
489
require 'rubygems' require 'activerecord' logger = Logger.new(STDOUT) logger.level = Logger::INFO ActiveRecord::Base.logger = logger db_file = File.join(File.dirname(__FILE__), 'test.db') FileUtils.rm(db_file) if File.exists?(db_file) # File.open(db_file, 'w') ActiveRecord::Base.establish_connection({ :adapter => ...
mit
chenfengzi/do_WebView
src/designer/do_WebView/do_WebView/Properties/AssemblyInfo.cs
1308
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的常规信息通过以下 // 特性集控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("UIViewBase")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: Assembl...
mit
r22016/azure-sdk-for-net
src/ResourceManagement/Compute/Compute.Tests/ScenarioTests/VMImageTests.cs
9569
// // Copyright (c) Microsoft. 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 l...
mit
guxuede/gm
src/main/java/com/badlogic/gdx/tests/VibratorTest.java
1414
/******************************************************************************* * Copyright 2011 See AUTHORS file. * * 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.a...
mit
gruberro/Sylius
src/Sylius/Component/Core/Repository/ProductRepositoryInterface.php
1831
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Sylius\Component\Core\Repository; use Doctrine\ORM\QueryBuilder; ...
mit
AbraaoAlves/ionic
src/components/infinite-scroll/infinite-scroll-content.ts
1180
import { Component, Input, ViewEncapsulation } from '@angular/core'; import { Config } from '../../config/config'; import { InfiniteScroll } from './infinite-scroll'; /** * @private */ @Component({ selector: 'ion-infinite-scroll-content', template: '<div class="infinite-loading">' + '<div class="infi...
mit
MrMaidx/godot
scene/2d/line_builder.cpp
17241
/*************************************************************************/ /* line_builder.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
mit
janhenke/corefx
src/System.Diagnostics.Debug/src/System/Diagnostics/Debug.Public.cs
440
// 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. namespace System.Diagnostics { // Intentionally empty class, which is only used to define the public visibility ...
mit
kidney/guido
examples/template-helper/webpack.config.js
329
'use strict'; module.exports = { mode: 'development', entry: { index: './src/js/index.js', }, externals: [ { 'handlebars/runtime': { root: 'window.handlebars', var: 'window.handlebars', commonjs2: 'handlebars', commonjs: 'handlebars', amd: 'handlebars', umd: 'handlebars', }, }...
mit
wieslawsoltes/Perspex
src/Skia/Avalonia.Skia/Helpers/DrawingContextHelper.cs
1157
using Avalonia.Platform; using Avalonia.Rendering; using SkiaSharp; namespace Avalonia.Skia.Helpers { public class DrawingContextHelper { /// <summary> /// Wrap Skia canvas in drawing context so we can use Avalonia api to render to external skia canvas /// this is useful in scenarios w...
mit
sevoku/oxyplot
Source/OxyPlot/Rendering/OxyColorExtensions.cs
6281
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="OxyColorExtensions.cs" company="OxyPlot"> // Copyright (c) 2014 OxyPlot contributors // </copyright> // <summary> // Provides extension methods for <see cref="OxyColor" />. //...
mit
awakener1986/myPetrolApp
node_modules/ionic-angular/es2015/platform/query-params.d.ts
358
import { OpaqueToken } from '@angular/core'; /** * @private */ export declare class QueryParams { data: { [key: string]: any; }; constructor(url: string); get(key: string): any; } /** * @private */ export declare const UrlToken: OpaqueToken; /** * @private */ export declare function setupQ...
mit
colinskow/material
src/components/checkbox/checkbox.js
6894
/** * @ngdoc module * @name material.components.checkbox * @description Checkbox module! */ angular .module('material.components.checkbox', ['material.core']) .directive('mdCheckbox', MdCheckboxDirective); /** * @ngdoc directive * @name mdCheckbox * @module material.components.checkbox * @restrict E * * ...
mit
seblm/design-pattern-reloaded
src/main/java/monad/monad3.java
1823
package monad; import java.util.Objects; import java.util.function.Function; import java.util.function.Predicate; public interface monad3 { public class Validator<T> { private final T t; private final IllegalStateException error; private Validator(T t, IllegalStateException error) { this.t = t; ...
mit
skygr/angular.js
src/ng/directive/ngEventDirs.js
12027
'use strict'; /** * @ngdoc directive * @name ngClick * * @description * The ngClick directive allows you to specify custom behavior when * an element is clicked. * * @element ANY * @priority 0 * @param {expression} ngClick {@link guide/expression Expression} to evaluate upon * click. ({@link guide/expressio...
mit
laijingtao/landlab
docs/model_grid_guide/diffusion_with_radial_model_grid.py
2826
#! /usr/env/python """ 2D numerical model of diffusion, implemented using ModelGrid. Provides example of a radial grid. Last updated GT May 2014 """ from landlab import RadialModelGrid import pylab def main(): """ In this simple tutorial example, the main function does all the work: it sets the paramet...
mit
brendankowitz/azure-webjobs-sdk
src/Microsoft.Azure.WebJobs.ServiceBus/Listeners/ServiceBusTriggerExecutor.cs
1102
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Threading; using System.Threading.Tasks; using Microsoft.Azure.WebJobs.Host.Executors; using Microsoft.ServiceBus.Messaging; namespace Micr...
mit
sunyardtc/git
node_modules/strong-agent/lib/node-measured/test/unit/util/test-Stopwatch.js
1132
var common = require('../../common'); var test = require('utest'); var assert = require('assert'); var Stopwatch = common.measured.Stopwatch; var sinon = require('sinon'); var watch; var clock; test('Stopwatch', { before: function() { clock = sinon.useFakeTimers(); watch = new Stopwatch(); }...
mit
Yasu31/TK_1720
app/loverduck_app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/callbacks.rb
28923
require "active_support/concern" require "active_support/descendants_tracker" require "active_support/core_ext/array/extract_options" require "active_support/core_ext/class/attribute" require "active_support/core_ext/kernel/reporting" require "active_support/core_ext/kernel/singleton_class" require "active_support/core...
mit
bmac/ember-cli
blueprints/adapter/index.js
1159
var fs = require('fs'); var path = require('path'); var stringUtil = require('../../lib/utilities/string'); var SilentError = require('../../lib/errors/silent'); module.exports = { description: 'Generates an ember-data adapter.', availableOptions: [ { name: 'base-class', type: String } ], ...
mit
viral810/ngSimpleCMS
vendor/jackalope/jackalope/tests/Jackalope/Observation/EventFilterTestCase.php
981
<?php namespace Jackalope\Observation; use Jackalope\TestCase; use Jackalope\Observation\EventFilter; /** * Unit tests for the EventFilter */ abstract class EventFilterTestCase extends TestCase { /** * @var EventFilter */ protected $eventFilter; /** * @var \Jackalope\FactoryInterface ...
mit
cdnjs/cdnjs
ajax/libs/flot/3.2.5/jquery.flot.hover.js
11242
/* global jQuery */ /** ## jquery.flot.hover.js This plugin is used for mouse hover and tap on a point of plot series. It supports the following options: ```js grid: { hoverable: false, //to trigger plothover event on mouse hover or tap on a point clickable: false //to trigger plotclick event on mouse hover }...
mit
dukenguyen/Rapture
Libs/RaptureField/src/test/java/rapture/field/StructureLoaderTest.java
591
package rapture.field; import static org.junit.Assert.assertTrue; import org.junit.Test; import rapture.common.RaptureStructure; public class StructureLoaderTest { @Test public void testLoadStructure() { ResourceLoader loader = new ResourceLoader(); RaptureStructure s = loader.getStructure("...
mit
gkeane/wp-auth0
lib/WP_Auth0_Ip_Check.php
1222
<?php class WP_Auth0_Ip_Check { public static function init(){ if( !WP_Auth0_Options::get( 'ip_range_check' ) || is_admin() ) return; new WP_Auth0_Ip_Check(); } private function __construct() { add_filter( 'wp_auth0_get_option', array($this, 'check_activate' ), 10, 2 ); } public function check_activate...
mit
2ndkauboy/platform
src/Oro/Bundle/TagBundle/Tests/Selenium/TagsAcl.php
8724
<?php namespace Oro\Bundle\TagBundle\Tests\Selenium; use Oro\Bundle\TagBundle\Tests\Selenium\Pages\Tags; use Oro\Bundle\TestFrameworkBundle\Test\Selenium2TestCase; use Oro\Bundle\UserBundle\Tests\Selenium\Pages\Roles; use Oro\Bundle\UserBundle\Tests\Selenium\Pages\Users; class TagsAcl extends Selenium2TestCase { ...
mit
rhalff/storybook
addons/options/src/shared/index.js
176
// addons, panels and events get unique names using a prefix export const ADDON_ID = 'storybooks/storybook-addon-options'; export const EVENT_ID = `${ADDON_ID}/options-event`;
mit
ALTELMA/asset_manager
application/libraries/PHPExcel/branches/v1.7.3b/Tests/01simple.php
2848
<?php /** * PHPExcel * * Copyright (C) 2006 - 2010 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
mit
tajddin/voiceplay
node_modules/airplay2/node_modules/mdns/src/mdns_utils.hpp
1349
#ifndef NODE_MDNS_UTILS_INCLUDED #define NODE_MDNS_UTILS_INCLUDED #include <sstream> #include <errno.h> #include <fcntl.h> namespace node_mdns { const char * errorString(DNSServiceErrorType error); v8::Local<v8::Value> buildException(DNSServiceErrorType error_code); inline v8::Handle<v8::Value> throwError(const cha...
mit
cdnjs/cdnjs
ajax/libs/simple-icons/4.15.0/sahibinden.min.js
839
module.exports={title:"Sahibinden",slug:"sahibinden",svg:'<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>Sahibinden icon</title><path d="M0 0v24h24V0zm11.517 4.723c.563-.007 1.13-.004 1.69.063 2.412.054 4.853 2.18 4.879 4.508h-3.319c.009-.694-.603-1.555-1.279-1.732-1.105-.269-2.46-.355-3....
mit
RallySoftware/eclipselink.runtime
jpa/eclipselink.jpa.wdf.test/src/org/eclipse/persistence/testing/models/wdf/jpa1/types/UserDefinedEnum.java
789
/******************************************************************************* * Copyright (c) 2005, 2015 SAP. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 * which accompanies this...
epl-1.0
menghanli/ice
org.eclipse.ice.reactor.plant/src/org/eclipse/ice/reactor/plant/Subchannel.java
6601
/******************************************************************************* * Copyright (c) 2014 UT-Battelle, LLC. * 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 a...
epl-1.0
NeilBryant/check_mk
web/plugins/wato/userdb.py
2026
#!/usr/bin/python # -*- encoding: utf-8; py-indent-offset: 4 -*- # +------------------------------------------------------------------+ # | ____ _ _ __ __ _ __ | # | / ___| |__ ___ ___| | __ | \/ | |/ / | # | | | | '_ \ / _ \/ __| |/ /...
gpl-2.0
Gurgel100/gcc
gcc/testsuite/g++.dg/parse/pragma-recovery.C
512
/* { dg-additional-options -fopenmp } */ /* { dg-require-effective-target fopenmp } */ // Make sure error recovery doesn't get confused by tokens inside a // deferred pragma. // OpenMP is a convenient deferred pragma insertion mechanism. void foo () { 1 * "" // { dg-error "invalid" } #pragma omp atomic { ; ...
gpl-2.0