repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
xmaruto/mcord
xos/synchronizers/base/steps/sync_controller_slices.py
4225
import os import base64 from collections import defaultdict from netaddr import IPAddress, IPNetwork from django.db.models import F, Q from xos.config import Config from synchronizers.base.openstacksyncstep import OpenStackSyncStep from synchronizers.base.syncstep import * from core.models import * from synchronizers.b...
apache-2.0
alien11689/aries
jndi/jndi-url/src/main/java/org/apache/aries/jndi/url/Activator.java
3962
/* * 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
rmmh/kubernetes-test-infra
mungegithub/mungers/owner-label.go
2788
/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
apache-2.0
huaban/phabricator
src/applications/conpherence/query/ConpherenceTransactionQuery.php
268
<?php final class ConpherenceTransactionQuery extends PhabricatorApplicationTransactionQuery { public function getTemplateApplicationTransaction() { return new ConpherenceTransaction(); } protected function getReversePaging() { return false; } }
apache-2.0
elkingtonmcb/oryx
common/src/main/java/com/cloudera/oryx/common/iterator/ArrayIterable.java
1536
/* * Copyright (c) 2013, Cloudera, Inc. All Rights Reserved. * * Cloudera, Inc. licenses this file to you 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/LICE...
apache-2.0
zjy1170/zjy
zheng/zheng-cms/zheng-cms-dao/src/main/java/com/zheng/cms/dao/Generator.java
1396
package com.zheng.cms.dao; import com.zheng.common.util.MybatisGeneratorUtil; import com.zheng.common.util.PropertiesFileUtil; import java.util.HashMap; import java.util.Map; /** * 代码生成类 * Created by ZhangShuzheng on 2017/1/10. */ public class Generator { // 根据命名规范,只修改此常量值即可 private static String MODULE = "zhe...
apache-2.0
robbiet480/home-assistant
homeassistant/components/openuv/config_flow.py
2114
"""Config flow to configure the OpenUV component.""" from pyopenuv import Client from pyopenuv.errors import OpenUvError import voluptuous as vol from homeassistant import config_entries from homeassistant.const import ( CONF_API_KEY, CONF_ELEVATION, CONF_LATITUDE, CONF_LONGITUDE, ) from homeassistant....
apache-2.0
stoksey69/googleads-java-lib
modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201502/DeleteContentMetadataKeyHierarchies.java
1024
package com.google.api.ads.dfp.jaxws.v201502; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * * The action used for deleting {@link ContentMetadataKeyHierarchy} objects. * * * <p>Java clas...
apache-2.0
josejulio/manageiq
spec/models/manageiq/providers/embedded_ansible/automation_manager/playbook_runner_spec.rb
13499
describe ManageIQ::Providers::EmbeddedAnsible::AutomationManager::PlaybookRunner do let(:manager) { FactoryGirl.create(:embedded_automation_manager_ansible) } let(:playbook) { FactoryGirl.create(:embedded_playbook, :manager => manager) } subject { ManageIQ::Providers::EmbeddedAnsible::AutomationManager::Playbook...
apache-2.0
mdanielwork/intellij-community
platform/util/src/com/intellij/ui/SeparatorComponent.java
3170
/* * Copyright 2000-2016 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
Rajik/gocd
server/webapp/WEB-INF/rails.new/spec/controllers/admin/package_repositories_controller_spec.rb
24139
##########################GO-LICENSE-START################################ # Copyright 2014 ThoughtWorks, 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/li...
apache-2.0
TribeMedia/aura
aura-components/src/test/components/test/libraryTest/libraryTestHelper.js
671
/* * Copyright (C) 2013 salesforce.com, 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 ...
apache-2.0
gyeongin/reef
lang/cs/Org.Apache.REEF.Bridge/InteropLogger.cpp
2006
/** * 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
ghik/intellij-scala
src/org/jetbrains/plugins/scala/components/TypeAwareHighlightingApplicationState.scala
1742
package org.jetbrains.plugins.scala package components import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.components._ import org.jetbrains.plugins.scala.statistics.CacheStatistics /** * User: Dmitry Naydanov * Date: 11/19/12 */ @State(name = "TypeAwareHighlightingApplicationSta...
apache-2.0
smmribeiro/intellij-community
java/java-tests/testData/inspection/dataFlow/jspecify/OverrideParametersThatAreTypeVariables.java
1402
/* * Copyright 2020 The JSpecify 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 ...
apache-2.0
nebril/fuel-web
fuelmenu/fuelmenu/common/modulehelper.py
9219
# -*- coding: utf-8 -*- # Copyright 2013 Mirantis, 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 requi...
apache-2.0
zaki50/droidkaigi2016
app/src/main/java/io/github/droidkaigi/confsched/model/Speaker.java
839
package io.github.droidkaigi.confsched.model; import com.google.gson.annotations.SerializedName; import com.github.gfx.android.orma.annotation.Column; import com.github.gfx.android.orma.annotation.PrimaryKey; import com.github.gfx.android.orma.annotation.Table; import org.parceler.Parcel; import android.support.ann...
apache-2.0
ya7lelkom/googleads-java-lib
modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201502/CollectionSizeErrorReason.java
1018
package com.google.api.ads.dfp.jaxws.v201502; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for CollectionSizeError.Reason. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType...
apache-2.0
BigBoss424/portfolio
v7/development/node_modules/date-fns/locale/fr/_lib/formatters/index.js
843
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var formatters = {}; // Special case for day of month ordinals in long date format context: // 1er mars, 2 mars, 3 mars, … // See https://github.com/date-fns/date-fns/issues/437 var monthsTokens = ['MMM', 'MMMM'];...
apache-2.0
NaNi-Z/manageiq
app/models/manageiq/providers/ansible_tower/shared/automation_manager/event_parser.rb
340
module ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::EventParser def event_to_hash(event, ems_id) { :event_type => "#{event['object1']}_#{event['operation']}", :source => "#{self.source}", :timestamp => event['timestamp'], :full_data => event, :ems_id => ems...
apache-2.0
lyy4j/rmq4note
tools/src/main/java/org/apache/rocketmq/tools/command/broker/CleanExpiredCQSubCommand.java
2790
/* * 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 ...
apache-2.0
robzor92/hops
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/AllocateRequest.java
9292
/** * 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
Melody/Webdav
tests/lock_if_header_tagged_list_test.php
8381
<?php /** * File containing the ezcWebdavFileBackendOptionsTestCase class. * * 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 ...
apache-2.0
wwjiang007/hadoop
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestFileCreationDelete.java
3265
/** * 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
objectiser/camel
platforms/commands/commands-core/src/main/java/org/apache/camel/commands/AbstractCamelCommand.java
1364
/* * 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 ...
apache-2.0
walteryang47/ovirt-engine
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/ApplicationModeHelper.java
3343
package org.ovirt.engine.ui.uicommonweb.models; import java.util.ArrayList; import java.util.List; import org.ovirt.engine.core.common.EventNotificationEntity; import org.ovirt.engine.core.common.businessentities.ActionGroup; import org.ovirt.engine.core.common.mode.ApplicationMode; import org.ovirt.engine.ui.uicommo...
apache-2.0
nssales/OG-Platform
projects/OG-Financial/src/main/java/com/opengamma/financial/comparison/PortfolioComparator.java
2172
/** * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.financial.comparison; import java.util.Collection; import java.util.LinkedList; import org.fudgemsg.FudgeContext; import com.opengamma.core.position.Portfoli...
apache-2.0
walteryang47/ovirt-engine
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmFromOvaCommand.java
1578
package org.ovirt.engine.core.bll; import org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil; import org.ovirt.engine.core.common.action.ConvertOvaParameters; import org.ovirt.engine.core.common.action.ImportVmFromOvaParameters; import org.ovirt.engine.core.common.action.VdcActionType; import org.ovirt.engine.core...
apache-2.0
pczarn/rust
src/test/run-pass/box-compare.rs
795
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or ...
apache-2.0
camilesing/zstack
utils/src/main/java/org/zstack/utils/data/ArrayHelper.java
2115
package org.zstack.utils.data; import java.io.IOException; import java.lang.reflect.Array; import java.lang.reflect.Field; import java.util.*; import static org.zstack.utils.ObjectUtils.serializableCopy; public class ArrayHelper { public static <T, K> T[] arrayFromField(Collection<K> c, String fieldName, Class<T...
apache-2.0
kabir/xnio
api/src/main/java/org/xnio/ChannelExceptionHandler.java
536
package org.xnio; import java.io.IOException; import java.nio.channels.Channel; import java.util.EventListener; /** * An exception handler for utility channel listeners. * * @author <a href="mailto:david.lloyd@redhat.com">David M. Lloyd</a> */ public interface ChannelExceptionHandler<T extends Channel> extends E...
apache-2.0
Squarespace/netty
transport/src/main/java/io/netty/channel/DefaultChannelConfig.java
16072
/* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you 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 ...
apache-2.0
cnopens/scrms
src/main/java/com/mossle/core/hibernate/HibernateUtils.java
8195
package com.mossle.core.hibernate; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Locale; import java.util.regex.Matcher; import java.util.regex.Pattern; import com.mossle.core.util.BeanUtils; import org.hibernate.Criteria; import org.hibernate.Query; import org.hib...
apache-2.0
nunezro2/cassandra_cs597
src/java/org/apache/cassandra/cql3/functions/FunctionCall.java
5914
/* * 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
craigyam/amalgam8
vendor/github.com/shirou/gopsutil/net/net_test.go
5046
package net import ( "fmt" "os" "runtime" "testing" "github.com/shirou/gopsutil/internal/common" ) func TestAddrString(t *testing.T) { v := Addr{IP: "192.168.0.1", Port: 8000} s := fmt.Sprintf("%v", v) if s != "{\"ip\":\"192.168.0.1\",\"port\":8000}" { t.Errorf("Addr string is invalid: %v", v) } } func ...
apache-2.0
ricepanda/rice-git2
rice-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/uif/view/ExpressionEvaluator.java
10859
/** * Copyright 2005-2014 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless requ...
apache-2.0
fouasnon/camunda-bpm-platform
engine/src/main/java/org/camunda/bpm/engine/FilterService.java
6062
/* 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 * distributed...
apache-2.0
nssales/OG-Platform
projects/OG-Master/src/main/java/com/opengamma/master/impl/AbstractSearchIterator.java
5327
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.master.impl; import java.util.Iterator; import java.util.NoSuchElementException; import com.opengamma.OpenGammaRuntimeException; import com.opengamma.master.A...
apache-2.0
calvinjia/tachyon
job/server/src/main/java/alluxio/job/plan/transform/format/orc/OrcRow.java
4887
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
apache-2.0
robbertvanginkel/buck
src/com/facebook/buck/apple/AbstractCodeSignIdentity.java
2751
/* * Copyright 2015-present Facebook, 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...
apache-2.0
scnakandala/derby
java/engine/org/apache/derby/iapi/types/UserDataValue.java
1214
/* Derby - Class org.apache.derby.iapi.types.UserDataValue 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...
apache-2.0
saydulk/horizon
openstack_dashboard/api/rest/nova.py
10595
# Copyright 2014, Rackspace, US, 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 ...
apache-2.0
kingthorin/zap-extensions
addOns/fuzz/src/test/java/org/zaproxy/zap/extension/fuzz/httpfuzzer/processors/RequestContentLengthUpdaterProcessorUnitTest.java
10958
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2016 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
apache-2.0
nssales/OG-Platform
projects/OG-Util/src/main/java/com/opengamma/transport/FudgeSynchronousClient.java
6779
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.transport; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUn...
apache-2.0
miarmak/CloudFerry
cloudferrylib/os/actions/map_compute_info.py
1797
# Copyright (c) 2014 Mirantis 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, so...
apache-2.0
Darsstar/framework
server/src/main/java/com/vaadin/ui/SingleSelect.java
887
/* * Copyright 2000-2016 Vaadin Ltd. * * 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...
apache-2.0
ftomassetti/java-symbol-solver
java-symbol-solver-testing/src/test/resources/javaparser_new_src/javaparser-core/com/github/javaparser/ast/expr/EnclosedExpr.java
1719
/* * Copyright (C) 2007-2010 Júlio Vilmar Gesser. * Copyright (C) 2011, 2013-2016 The JavaParser Team. * * This file is part of JavaParser. * * JavaParser can be used either under the terms of * a) the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the...
apache-2.0
stoksey69/googleads-java-lib
modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201505/ProposalLink.java
4513
package com.google.api.ads.dfp.jaxws.v201505; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * * A link that can be added as a resource to a {@link Proposal}. * * * <p>Java class for Propos...
apache-2.0
balloob/home-assistant
homeassistant/components/python_script/__init__.py
7610
"""Component to allow running Python scripts.""" import datetime import glob import logging import os import time from RestrictedPython import ( compile_restricted_exec, limited_builtins, safe_builtins, utility_builtins, ) from RestrictedPython.Eval import default_guarded_getitem from RestrictedPython....
apache-2.0
exosite-ready/libcoap
doc/html/search/groups_61.js
115
var searchData= [ ['asynchronous_20messaging',['Asynchronous Messaging',['../group__coap__async.html',1,'']]] ];
bsd-2-clause
wmorin/homebrew-cask
Casks/codekit.rb
472
cask :v1 => 'codekit' do version '2.3.7-18917' sha256 '5958b170026f37bb78b31a9251cd1ccafb2239d9a85e9729593948b9d00255fc' url "http://incident57.com/codekit/files/codekit-#{version.sub(%r{.*-},'')}.zip" appcast 'https://incident57.com/codekit/appcast/ck2appcast.xml', :sha256 => 'fba4e9552ebabca2b700f6...
bsd-2-clause
cfillion/homebrew-cask
Casks/mcedit.rb
570
cask 'mcedit' do version '1.5.4.1' sha256 '29bde806dc415435296e14613f9052a38891e87189f63a30bd69494e13708953' # github.com/Khroki/MCEdit-Unified was verified as official when first introduced to the cask url "https://github.com/Khroki/MCEdit-Unified/releases/download/#{version}/MCEdit.v#{version}.OSX.64bit.zip"...
bsd-2-clause
nmfzone/gopherjs
compiler/filter/assign.go
2415
package filter import ( "go/ast" "go/token" "github.com/gopherjs/gopherjs/compiler/analysis" "github.com/gopherjs/gopherjs/compiler/astutil" ) func Assign(stmt ast.Stmt, info *analysis.Info) ast.Stmt { if s, ok := stmt.(*ast.AssignStmt); ok && s.Tok != token.ASSIGN && s.Tok != token.DEFINE { var op token.Toke...
bsd-2-clause
alexg0/homebrew-cask
Casks/filemaker-pro.rb
576
cask "filemaker-pro" do version "19.2.1.14" sha256 "7e57f30e4f1a72063824240eff78b795de148a5233bfbfc6aaf10c101a269496" url "https://downloads.claris.com/esd/fmp_#{version}.dmg" appcast "https://www.filemaker.com/redirects/ss.txt" name "FileMaker Pro" desc "Relational database and rapid application developme...
bsd-2-clause
axodys/homebrew-cask
Casks/mailmate.rb
360
cask 'mailmate' do version :latest sha256 :no_check # app.com is the official download host per the vendor homepage url 'http://dl.mailmate-app.com/MailMate.tbz' name 'MailMate' homepage 'http://freron.com/' license :commercial app 'MailMate.app' binary 'MailMate.app/Contents/Resources/emate' cave...
bsd-2-clause
jirkadanek/Strongtalk
vm/recompiler/recompiler.hpp
3308
/* Copyright 1994, 1995 LongView Technologies L.L.C. $Revision: 1.12 $ */ /* Copyright (c) 2006, Sun Microsystems, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source c...
bsd-3-clause
pozdnyakov/chromium-crosswalk
chrome/browser/media_galleries/fileapi/native_media_file_util.cc
24084
// 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 "chrome/browser/media_galleries/fileapi/native_media_file_util.h" #include "base/bind.h" #include "base/file_util.h" #include "base/files/fi...
bsd-3-clause
jeffblack360/mojito
tests/func/examples/developerguide/test_hello.js
548
/* * This is a basic func test for a UseCase application. */ YUI({ useConsoleOutput: true, useBrowserConsole: true, logInclude: { TestRunner: true } }).use('node', 'node-event-simulate', 'test', 'console', function (Y) { var suite = new Y.Test.Suite("DeveloperGuide: hello"); suite.a...
bsd-3-clause
jp2masa/Cosmos
Users/Orvid/Orvid.Concurrent/WeakKeyDictionary.2.cs
11201
/* Copyright 2008 The 'A Concurrent Hashtable' development team (http://www.codeplex.com/CH/People/ProjectPeople.aspx) This library is licensed under the GNU Library General Public License (LGPL). You should have received a copy of the license along with the source code. If not, an online copy of the licen...
bsd-3-clause
ltilve/ChromiumGStreamerBackend
chrome/browser/custom_home_pages_table_model.cc
10521
// 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 "chrome/browser/custom_home_pages_table_model.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/i18n/rtl.h" #include "...
bsd-3-clause
ltilve/ChromiumGStreamerBackend
ash/wm/workspace/workspace_window_resizer.cc
38828
// 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 "ash/wm/workspace/workspace_window_resizer.h" #include <algorithm> #include <cmath> #include <utility> #include <vector> #include "ash/disp...
bsd-3-clause
kebot/GiBeans
application/uc_client/control/pm.php
7854
<?php /* [UCenter] (C)2001-2009 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: pm.php 836 2008-12-05 02:25:48Z monkey $ */ !defined('IN_UC') && exit('Access Denied'); define('PMLIMIT1DAY_ERROR', -1); define('PMFLOODCTRL_ERROR', -2); define('PMMSGTONOTFRIEND', -3); define('PMSENDREGDAYS...
bsd-3-clause
joone/chromium-crosswalk
chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc
16861
// 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 "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" #include <set> #include <utility> #include "base/bind.h" #include "ba...
bsd-3-clause
pozdnyakov/chromium-crosswalk
chromeos/dbus/shill_device_client_stub.cc
12584
// Copyright (c) 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 "chromeos/dbus/shill_device_client_stub.h" #include "base/bind.h" #include "base/message_loop.h" #include "base/stl_util.h" #include "base/v...
bsd-3-clause
chromium/chromium
third_party/blink/web_tests/wpt_internal/handwriting/resources/mock-handwriting-recognition-service.js
3396
import { CreateHandwritingRecognizerResult, HandwritingRecognitionService, HandwritingRecognitionServiceReceiver, HandwritingRecognizerReceiver, HandwritingRecognizerRemote, HandwritingRecognitionType, HandwritingInputType, } from '/gen/third_party/blink/public/mojom/handwriting/handwriting.mojom.m.js'; ...
bsd-3-clause
if1live/litesql
src/tests/test-datetime.cpp
883
/* LiteSQL - test-datetime * * The list of contributors at http://litesql.sf.net/ * * See LICENSE for copyright information. */ #include <assert.h> #include "litesql/datetime.hpp" /* Datetime unit tester TC1: test for equality on load/ save (see ticket #13) */ using namespace litesql; int main(int argc, ...
bsd-3-clause
amyefev/AnnaShop
vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/SemicolonSpacingSniff.php
2130
<?php /** * Ensure each style definition has a semi-colon and it is spaced correctly. * * @author Greg Sherwood <gsherwood@squiz.net> * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence */ namespace PHP_CodeSni...
bsd-3-clause
l8s/Eto
Source/Eto.Direct2D/Drawing/SolidBrushHandler.cs
918
using Eto.Drawing; using sd = SharpDX.Direct2D1; namespace Eto.Direct2D.Drawing { /// <summary> /// Handler for <see cref="ISolidBrush"/> /// </summary> /// <copyright>(c) 2013 by Vivek Jhaveri</copyright> /// <license type="BSD-3">See LICENSE for full terms</license> public class SolidBrushHandler : SolidBrush...
bsd-3-clause
chromium2014/src
chrome/browser/chromeos/file_manager/filesystem_api_util.cc
8916
// 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 "chrome/browser/chromeos/file_manager/filesystem_api_util.h" #include "base/callback.h" #include "base/files/file.h" #include "base/files/file_p...
bsd-3-clause
wuhengzhi/chromium-crosswalk
content/browser/media/midi_host.cc
9158
// Copyright (c) 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/media/midi_host.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/metrics/histogram_macros.h" #includ...
bsd-3-clause
sidred10/json
json_tests/benches/bench_json.rs
2200
use std::{f64, i64, u64}; use test::Bencher; use serde_json; #[bench] fn bench_deserializer_i64(b: &mut Bencher) { let s = serde_json::to_string(&i64::MIN).unwrap(); b.bytes = s.len() as u64; b.iter(|| { let _s: i64 = serde_json::from_str(&s).unwrap(); }); } #[bench] fn bench_deserializer_u64...
bsd-3-clause
hujiajie/chromium-crosswalk
content/renderer/p2p/ipc_network_manager_unittest.cc
4889
// 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 "base/memory/scoped_ptr.h" #include "content/renderer/p2p/ipc_network_manager.h" #include "content/renderer/p2p/network_list_manager.h" #include ...
bsd-3-clause
xizi-xu/Argus
ArgusWeb/app/js/services/tags.js
320
/*global angular:false */ angular.module('argus.services.tags', []) .service('Tags', ['CONFIG', '$http', function(CONFIG, $http) { this.getDropdownOptions = function(key) { var request = $http({ method: 'GET', url: CONFIG.wsUrl + 'schema/tags', params: { tagk: key } }); return request; }; }]);
bsd-3-clause
adobe/chromium
chrome/browser/ui/gtk/one_click_signin_dialog_gtk.cc
3877
// 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 "chrome/browser/ui/gtk/one_click_signin_dialog_gtk.h" #include <gtk/gtk.h> #include "base/basictypes.h" #include "base/callback.h" #include...
bsd-3-clause
akutz/go
src/net/http/http_test.go
4536
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Tests of internal functions and things with no better homes. package http import ( "bytes" "internal/testenv" "net/url" "os/exec" "reflect" "testing"...
bsd-3-clause
dwing4g/leveldb
db/version_edit_test.cc
1338
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/version_edit.h" #include "gtest/gtest.h" namespace leveldb { static void TestEncodeDeco...
bsd-3-clause
Livit/Mailbird.Gong.WPF.DragDrop
GongSolutions.Wpf.DragDrop/IDropInfo.cs
4514
using System; using System.Collections; using System.Windows; using System.Windows.Controls; using System.Windows.Data; namespace GongSolutions.Wpf.DragDrop { public interface IDropInfo { /// <summary> /// Gets the drag data. /// </summary> /// /// <remarks> /// If the drag came from with...
bsd-3-clause
hujiajie/chromium-crosswalk
third_party/WebKit/Source/core/svg/SVGFELightElement.cpp
5285
/* * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public ...
bsd-3-clause
ottramst/TamaraIntranet
user/plugins/login-oauth/vendor/lusitanian/oauth/examples/init.example.php
4522
<?php /** * This file sets up the information needed to test the examples in different environments. * * PHP version 5.4 * * @author David Desberg <david@daviddesberg.com> * @author Pieter Hordijk <info@pieterhordijk.com> * @copyright Copyright (c) 2012 The authors * @license http://www.opensource....
mit
mylibero/cli
test/crossgen.Tests/crossgen.Tests.cs
3199
// Copyright (c) .NET Foundation and contributors. 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.IO; using System.Linq; using System.Reflection.PortableExecutable; using Microsoft....
mit
kewaunited/passenger
ext/boost/smart_ptr/make_shared_object.hpp
39230
#ifndef BOOST_SMART_PTR_MAKE_SHARED_OBJECT_HPP_INCLUDED #define BOOST_SMART_PTR_MAKE_SHARED_OBJECT_HPP_INCLUDED // make_shared_object.hpp // // Copyright (c) 2007, 2008, 2012 Peter Dimov // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE_1_0.txt or copy at // http://...
mit
hyonholee/azure-sdk-for-net
sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/KeyEncryptionKeyInfo.cs
2007
// <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...
mit
adorr/mongoid
lib/mongoid/extensions/object/conversions.rb
515
# encoding: utf-8 module Mongoid #:nodoc: module Extensions #:nodoc: module Object #:nodoc: # This module converts objects into mongoid related objects. module Conversions #:nodoc: extend ActiveSupport::Concern module ClassMethods def set(value) value.respond_to?...
mit
kivatu/kivy-bak
kivy/animation.py
22342
''' Animation ========= :class:`Animation` and :class:`AnimationTransition` are used to animate :class:`~kivy.uix.widget.Widget` properties. You must specify at least a property name and target value. To use an Animation, follow these steps: * Setup an Animation object * Use the Animation object on a Widget ...
mit
yenbekbay/clinic
assets/components/tinymce/jscripts/tiny_mce/plugins/modxlink/langs/es.js
68
tinyMCE.addI18n('es.modxlink',{ link_desc:"Insert/edit link" });
mit
darshanhs90/Android-SuperUtiliser-App
ResideMenuDemo/src/com/vinsol/expensetracker/utils/DisplayTimeForChronometer.java
718
/** * Copyright (c) 2012 Vinayak Solutions Private Limited * See the file license.txt for copying permission. */ package com.vinsol.expensetracker.utils; public class DisplayTimeForChronometer { // ////// ******** Function which take time in millis and return time in 00:00 format ******* //////// public S...
mit
bitpay/bitcore
packages/bitcore-p2p/lib/messages/commands/headers.js
1915
'use strict'; var Message = require('../message'); var inherits = require('util').inherits; var bitcore = require('bitcore-lib'); var utils = require('../utils'); var BufferReader = bitcore.encoding.BufferReader; var BufferWriter = bitcore.encoding.BufferWriter; var _ = bitcore.deps._; var $ = bitcore.util.preconditio...
mit
hanjin66/communitycause
comments.php
4633
<?php /** * The template for displaying comments * * The area of the page that contains both current comments * and the comment form. * * @package FoundationPress * @since FoundationPress 1.0.0 */ if ( have_comments() ) : if ( (is_page() || is_single()) && ( ! is_home() && ! is_front_page()) ) : ?> <section ...
mit
mdoviedor/InscripcionVirtual
web/kendo/src/js/cultures/kendo.culture.ha-Latn.js
2567
/* * Kendo UI Web v2013.3.1119 (http://kendoui.com) * Copyright 2013 Telerik AD. All rights reserved. * * Kendo UI Web commercial licenses may be obtained at * https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx * If you do not own a commercial license, this file shall be governed by the * G...
mit
Azure/azure-sdk-for-net
sdk/search/Azure.Search.Documents/src/Generated/Models/SentimentSkill.Serialization.cs
4865
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using System.Text.Json; using Azure.Core; namespace Azure.Search.Documents.Indexes.Models { public partial class SentimentSkill : IUtf8JsonSeri...
mit
uhjish/bx-python
lib/bx/bbi/bigwig_tests.py
3467
import sys, os import unittest import numpy try: sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) except: sys.path.insert(0, os.path.dirname(os.path.abspath("."))) from bx.bbi.bigwig_file import BigWigFile def allclose( a, b, tol=0.00001 ): """ Like numpy.allclose but treat Nan == Nan ...
mit
jianpingw/sails
lib/hooks/http/start.js
6081
module.exports = function (sails) { /** * Module dependencies. */ var async = require('async'); return function startServer (cb) { // Used to warn about possible issues if starting the server is taking a long time var liftAbortTimer; var liftTimeout = sails.config.liftTimeout || 4000; ...
mit
ericmartinezr/angular
modules/@angular/compiler/test/directive_resolver_spec.ts
6317
import {ddescribe, describe, it, iit, expect, beforeEach} from '@angular/core/testing'; import {DirectiveResolver} from '@angular/compiler/src/directive_resolver'; import { DirectiveMetadata, Directive, Input, Output, HostBinding, HostListener, ContentChildren, ContentChildrenMetadata, ViewChildren, ...
mit
ealbertos/dotfiles
vscode.symlink/extensions/ms-mssql.mssql-1.11.1/node_modules/underscore/cjs/isMap.js
305
var _tagTester = require('./_tagTester.js'); var _stringTagBug = require('./_stringTagBug.js'); var _methodFingerprint = require('./_methodFingerprint.js'); var isMap = _stringTagBug.isIE11 ? _methodFingerprint.ie11fingerprint(_methodFingerprint.mapMethods) : _tagTester('Map'); module.exports = isMap;
mit
beni55/vektor
sonar-scan/public/js/node_modules/jeesh/node_modules/qwery/tests/tests.js
25258
// silly custom pseudo just for tests Q.pseudos.humanoid = function(e, v) { return Q.is(e, 'li:contains(human)') || Q.is(e, 'ol:contains(human)') } var hasQSA = !!document.querySelectorAll , sinkSuite = function (label, suite) { sink(label + (hasQSA ? ' [qSA]' : ''), function () { hasQSA && Q.configure(...
mit
knownasilya/ember-inspector
app/views/list.js
697
import Ember from "ember"; import ListItemView from "ember-inspector/views/list-item"; import ListView from "list-view/list-view"; const { computed } = Ember; export default ListView.extend({ classNames: ["list-tree"], contentHeight: Ember.computed.alias('controller.controllers.application.contentHeight'), hei...
mit
Mozan/Sylius
src/Sylius/Behat/Page/Shop/Checkout/AddressPage.php
14882
<?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\Behat\Page\Shop\Checkout; use Behat\Mink\Driver\Selenium2D...
mit
diimpp/Sylius
src/Sylius/Component/Core/Locale/Context/StorageBasedLocaleContext.php
2109
<?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\Locale\Context; use Sylius\Component\Channe...
mit
fcool/flow-development-collection
Neos.Utility.Unicode/Classes/Functions.php
8249
<?php namespace Neos\Utility\Unicode; /* * This file is part of the Neos.Utility.Unicode package. * * (c) Contributors of the Neos Project - www.neos.io * * This package is Open Source Software. For the full copyright and license * information, please view the LICENSE file which was distributed with this * sour...
mit
jslhs/Windows-Driver-Frameworks
src/framework/shared/irphandlers/pnp/km/fxpkgfdokm.cpp
15564
/*++ Copyright (c) Microsoft Corporation Module Name: FxPkgFdo.cpp Abstract: This module implements the pnp/power package for the driver framework. Author: Environment: Kernel mode only Revision History: --*/ #include "..\pnppriv.hpp" #include <initguid.h> #include <wdmguid.h> #if defi...
mit