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 |
|---|---|---|---|---|---|
package com.sandwich.util.io;
import java.io.File;
import java.io.IOException;
public abstract class ForEachFileAction extends ExistingFileAction {
public ForEachFileAction(String... strings) {
super(strings);
}
public void onDirectory(File dir) throws IOException {
for (String fileName : dir.list()) {
op... | matyb/java-koans | lib/src/main/java/com/sandwich/util/io/ForEachFileAction.java | Java | apache-2.0 | 362 |
/*
* 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... | ThiagoGarciaAlves/intellij-community | java/compiler/impl/src/com/intellij/compiler/server/DefaultMessageHandler.java | Java | apache-2.0 | 18,505 |
package org.xbib.elasticsearch.action.ingest;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.ExceptionsHelper;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.ActionRequest;
import org.elasticsearch.action.DocumentRequest;
import org.elasticsearch.action.delet... | jprante/elasticsearch-helper | src/main/java/org/xbib/elasticsearch/action/ingest/TransportIngestAction.java | Java | apache-2.0 | 13,193 |
/*
* 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 u... | Sellegit/j2objc | translator/src/test/java/com/google/devtools/j2objc/translate/GwtConverterTest.java | Java | apache-2.0 | 4,120 |
# Copyright (c) 2007-2019 UShareSoft, 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 requi... | emuus/hammr | hammr/utils/scan_utils.py | Python | apache-2.0 | 1,969 |
/**
* 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
* distribu... | protochron/aurora | src/main/java/org/apache/aurora/scheduler/state/LockManager.java | Java | apache-2.0 | 2,134 |
(function() {
'use strict';
angular.module('newplayer.service', []);
})();
| thenewgroup/elx-newplayer | app/scripts/service/service.module.js | JavaScript | apache-2.0 | 80 |
<?php
/**
* @file
* Contains \Drupal\Component\Utility\SortArray.
*/
namespace Drupal\Component\Utility;
/**
* Provides generic array sorting helper methods.
*/
class SortArray {
/**
* Sorts a structured array by the 'weight' element.
*
* Note that the sorting is by the 'weight' array element, not b... | nickopris/musicapp | www/core/lib/Drupal/Component/Utility/SortArray.php | PHP | apache-2.0 | 3,665 |
namespace Xilium.CefGlue
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Xilium.CefGlue.Interop;
/// <summary>
/// Callback interface for CefBrowserHost::GetNavigationEntries. The methods of
/// this class will be ... | mindthegab/SFE-Minuet-DesktopClient | minuet/CefGlue/Classes.Handlers/CefNavigationEntryVisitor.cs | C# | apache-2.0 | 1,363 |
/*
* 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 ... | salyh/javamailspec | geronimo-el_2.2_spec/src/main/java/javax/el/ValueExpression.java | Java | apache-2.0 | 1,582 |
/*
* Copyright 2014 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 re... | gerdriesselmann/netty | codec-http2/src/main/java/io/netty/handler/codec/http2/Http2CodecUtil.java | Java | apache-2.0 | 16,850 |
/*
* 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/kylin | core-cube/src/main/java/org/apache/kylin/cube/kv/RowConstants.java | Java | apache-2.0 | 1,808 |
/*
* Copyright © 2012-2014 Cask Data, 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... | caskdata/coopr | coopr-server/src/main/java/co/cask/coopr/http/guice/HttpModule.java | Java | apache-2.0 | 2,568 |
/**
* Copyright 2005-2016 Red Hat, Inc.
* <p>
* Red Hat 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unles... | arquillian/arquillian-cube | kubernetes/kubernetes/src/main/java/org/arquillian/cube/kubernetes/impl/event/Stop.java | Java | apache-2.0 | 937 |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: combos/unmarshaler/theproto3.proto
package theproto3
import (
bytes "bytes"
compress_gzip "compress/gzip"
encoding_binary "encoding/binary"
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
github_com_gogo_protobuf_proto "github.com/gogo/protobuf/prot... | Miciah/origin | vendor/github.com/gogo/protobuf/test/theproto3/combos/unmarshaler/theproto3.pb.go | GO | apache-2.0 | 334,898 |
/*
* 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/syncope | client/idrepo/console/src/main/java/org/apache/syncope/client/console/policies/AccountPolicyDirectoryPanel.java | Java | apache-2.0 | 4,155 |
/*
* #%L
* ELK OWL Object Interfaces
*
* $Id$
* $HeadURL$
* %%
* Copyright (C) 2011 Department of Computer Science, University of Oxford
* %%
* 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 Li... | live-ontologies/elk-reasoner | elk-owl-parent/elk-owl-model/src/main/java/org/semanticweb/elk/owl/interfaces/ElkPropertyAxiom.java | Java | apache-2.0 | 2,035 |
/**
* 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 under ... | ChrisA89/assertj-core | src/test/java/org/assertj/core/api/byte_/ByteAssert_isCloseToPercentage_byte_Test.java | Java | apache-2.0 | 1,374 |
package razor.android.lib.core.holders;
import java.util.ArrayList;
import java.util.List;
import razor.android.lib.core.R;
import razor.android.lib.core.adapters.CoreViewModelListAdapter;
import razor.android.lib.core.adapters.CoreViewModelListAdapter.OnCoreViewModelListAdapterListener;
import razor.android.... | paulshemmings/pico | razor.lib.comms/target/unpack/apklibs/razor.android_razor.android.lib.core_apklib_1.0.0-SNAPSHOT/src/razor/android/lib/core/holders/ViewModelListViewHolder.java | Java | apache-2.0 | 3,778 |
package org.terracotta.sample.service;
import org.ehcache.Cache;
/**
* @author Aurelien Broszniowski
*/
public class CachedDataService implements DataService<byte[]> {
private final Cache<Long, byte[]> cache;
public CachedDataService(final Cache<Long, byte[]> cache) {
this.cache = cache;
}
@Override
... | ehcache/ehcache3-samples | scale-continuum/src/main/java/org/terracotta/sample/service/CachedDataService.java | Java | apache-2.0 | 396 |
define([
'../Core/Cartesian3',
'../Core/defined',
'../Core/Intersect',
'../Core/ManagedArray',
'../Core/Math',
'./Cesium3DTileOptimizationHint',
'./Cesium3DTileRefine'
], function(
Cartesian3,
defined,
Intersect,
ManagedArray,
... | geoscan/cesium | Source/Scene/Cesium3DTilesetTraversal.js | JavaScript | apache-2.0 | 28,819 |
/*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | android-ia/platform_tools_idea | plugins/maven/src/main/java/org/jetbrains/idea/maven/services/MavenRepositoryServicesManager.java | Java | apache-2.0 | 3,801 |
<?php
$max_age = 0;//600; //seconds this URL should be cached
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + $max_age) . ' GMT');
header("Cache-Control: public, max-age=$max_age");
header("Content-Type: application/json");
$response = [];
$included_fonts = glob("../fonts/*.ttf");//only ttf for now
foreach($... | wbmccool/bsd-txt | ajax/fonts.php | PHP | apache-2.0 | 473 |
package com.eas.client.utils.scalableui;
import java.awt.BorderLayout;
import java.awt.Component;
/**
*
* @author Marat
*/
public class ScalableBorderLayout extends BorderLayout{
public ScalableBorderLayout() {
super();
}
@Override
public void addLayoutComponent(Component comp, Object con... | altsoft/PlatypusJS | platypus-js-scalable-widget/src/main/java/com/eas/client/utils/scalableui/ScalableBorderLayout.java | Java | apache-2.0 | 467 |
var Main = function(){
this.domain = '';
this.pname = '免费版';
this.days = [];
this.months = [];
this.flowDayData = [];
this.cacheDayData = [];
this.flowMontyData = [];
this.cacheMonthData = [];
this.getInfo = function() {
var that = this;
$.ajax({
url : '/api/?c=record&a=getDomainInfo',
dataType : 'js... | zdchao/php_demo | wwwroot/wwwroot/user/view/new0807/record/cdnflow.js | JavaScript | apache-2.0 | 5,652 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot/model/DescribeAuditMitigationActionsTaskResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>... | awslabs/aws-sdk-cpp | aws-cpp-sdk-iot/source/model/DescribeAuditMitigationActionsTaskResult.cpp | C++ | apache-2.0 | 3,297 |
from __future__ import absolute_import
from __future__ import print_function
from typing import Any, Dict, List
from .template_parser import (
tokenize,
Token,
is_django_block_tag,
)
from six.moves import range
import os
def pretty_print_html(html, num_spaces=4):
# type: (str, int) -> str
# We us... | christi3k/zulip | tools/lib/pretty_print.py | Python | apache-2.0 | 8,553 |
/*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | blindpirate/gradle | subprojects/core/src/main/java/org/gradle/internal/filewatch/jdk7/WatchServiceFileWatcherBacking.java | Java | apache-2.0 | 7,361 |
/**
* Copyright 2016 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | Adtoma/amphtml | extensions/amp-a4a/0.1/amp-a4a.js | JavaScript | apache-2.0 | 54,093 |
/**
* Copyright 2010-2014 Axel Fontaine
*
* 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 o... | typischmann/flyway | flyway-core/src/main/java/org/flywaydb/core/internal/resolver/jdbc/package-info.java | Java | apache-2.0 | 718 |
/*
* Copyright 2013 Séven Le Mesle
*
* 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... | zouabimourad/selma | processor/src/test/java/fr/xebia/extras/selma/beans/LibraryDTO.java | Java | apache-2.0 | 925 |
package com.material.widget;
import android.content.Context;
import android.content.res.AssetManager;
import android.content.res.TypedArray;
import android.graphics.*;
import android.os.Build;
import android.support.annotation.NonNull;
import android.text.TextPaint;
import android.util.AttributeSet;
import android.vie... | 0359xiaodong/MaterialQQLite | MaterialWidget/src/main/java/com/material/widget/PaperButton.java | Java | apache-2.0 | 10,482 |
# Copyright 2018 The TensorFlow 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 applica... | kobejean/tensorflow | tensorflow/contrib/data/python/kernel_tests/filter_dataset_op_test.py | Python | apache-2.0 | 2,828 |
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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 app... | etirelli/kie-wb-common | kie-wb-common-stunner/kie-wb-common-stunner-core/kie-wb-common-stunner-commons/kie-wb-common-stunner-core-common/src/test/java/org/kie/workbench/common/stunner/core/graph/command/impl/UpdateElementPropertyValueCommandTest.java | Java | apache-2.0 | 5,093 |
package com.lidroid.xutils.sample;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.*;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.exception.DbExce... | zzspuck/SmartCity | xUtils-master/sample/src/com/lidroid/xutils/sample/DownloadListActivity.java | Java | apache-2.0 | 8,716 |
/*
* 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 ... | gridgain/apache-ignite | modules/urideploy/src/main/java/org/apache/ignite/spi/deployment/uri/scanners/ftp/GridUriDeploymentFtpException.java | Java | apache-2.0 | 1,580 |
/*
* Copyright 2012 Amadeus s.a.s.
* 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... | mlaval/ariatemplates | test/aria/html/HTMLTestSuite.js | JavaScript | apache-2.0 | 2,019 |
import { Nullable } from "babylonjs/types";
import { serializeAsVector3, serializeAsTexture, serialize, expandToProperty, serializeAsColor3, SerializationHelper } from "babylonjs/Misc/decorators";
import { Matrix, Vector3 } from "babylonjs/Maths/math.vector";
import { Color3 } from "babylonjs/Maths/math.color";
imp... | BabylonJS/Babylon.js | materialsLibrary/src/fur/furMaterial.ts | TypeScript | apache-2.0 | 19,590 |
// (C) Copyright 2015 Moodle Pty 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 agree... | FMCorz/moodlemobile2 | src/addon/mod/book/providers/list-link-handler.ts | TypeScript | apache-2.0 | 1,951 |
// Copyright 2008 The Closure Library 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 requ... | teppeis/closure-library | closure/goog/ui/dimensionpickerrenderer.js | JavaScript | apache-2.0 | 14,821 |
/*
* Copyright 2012 Timothy Lin <lzh9102@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | adrianommelo/qrcode-desktop | src/zxinggui/generator/PlainTextGenerator.java | Java | apache-2.0 | 2,466 |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | mmaracic/elasticsearch | core/src/main/java/org/elasticsearch/action/admin/cluster/allocation/ClusterAllocationExplanation.java | Java | apache-2.0 | 8,925 |
/*
Derby - Class com.pivotal.gemfirexd.internal.impl.sql.compile.LOBTypeCompiler
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 ... | papicella/snappy-store | gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/impl/sql/compile/LOBTypeCompiler.java | Java | apache-2.0 | 5,995 |
/*
* 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/syncope | core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/DefaultPropagationManager.java | Java | apache-2.0 | 27,232 |
/*
* Copyright 2002-2005 the original author or 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 ap... | springrichclient/springrcp | spring-richclient-core/src/main/java/org/springframework/binding/validation/ValidationMessage.java | Java | apache-2.0 | 1,409 |
/*
* Copyright 2002-2004 the original author or 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 appl... | springrichclient/springrcp | spring-richclient-core/src/main/java/org/springframework/binding/value/swing/SpinnerAdapter.java | Java | apache-2.0 | 1,821 |
# Copyright 2012 OpenStack Foundation
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011,2012 Akira YOSHIYAMA <akirayoshiyama@gmail.com>
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "Lic... | openstack/swift | swift/common/middleware/s3api/s3token.py | Python | apache-2.0 | 17,603 |
/*
* Copyright (c) 2010-2015 Pivotal Software, Inc. 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 req... | papicella/snappy-store | gemfire-core/src/main/java/com/gemstone/gemfire/lang/Identifiable.java | Java | apache-2.0 | 1,301 |
/*
* 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 |
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 |
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 |