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 |
|---|---|---|---|---|---|
'use strict';
var gulp = tars.packages.gulp;
var cache = tars.packages.cache;
var plumber = tars.packages.plumber;
var notifier = tars.helpers.notifier;
var browserSync = tars.packages.browserSync;
var staticFolderName = tars.config.fs.staticFolderName;
/**
* Move fonts-files to dev directory
*/
module.exports = f... | mik639/TZA | tars/tasks/other/move-fonts.js | JavaScript | mit | 923 |
# require 'analytic/response_analytic'
module AssignmentTeamAnalytic
#======= general ==========#
def num_participants
self.participants.count
end
def num_reviews
self.responses.count
end
#========== score ========#
def average_review_score
if self.num_reviews == 0
return 0
else
... | akshayjain114/expertiza | expertiza-master/app/models/analytic/assignment_team_analytic.rb | Ruby | mit | 2,250 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autofac.Builder;
using Autofac.Core.Registration;
using Autofac.Core.Lifetime;
using Autofac.Core.Activators.Reflection;
using Autofac.Core;
using System.Reflection;
using Autofac.Core.Activators.ProvidedInstance;
namespace Au... | oconics/Autofac | test/Autofac.Test/Factory.cs | C# | mit | 3,512 |
/******************************************************************************
*
*
*
* Copyright (C) 1997-2015 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
* granted. No representat... | chintal/doxygen | src/define.cpp | C++ | gpl-2.0 | 1,325 |
<?php
namespace Drupal\jsonapi\JsonApiResource;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Field\EntityReferenceFieldItemListInterface;
use Drupal\Core\Url;
use Drupal\jsonapi\JsonApiSpec;
use Drupal\jsonapi\ResourceType\ResourceType;
use Drupal\jsonapi\Routing\... | maskedjellybean/tee-prop | web/core/modules/jsonapi/src/JsonApiResource/Relationship.php | PHP | gpl-2.0 | 9,807 |
/*___Generated_by_IDEA___*/
package com.facebook.android;
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
public final class R {
} | TharinduKetipe/easywish | libraries/facebook/gen/com/facebook/android/R.java | Java | gpl-2.0 | 176 |
t = db.capped1;
t.drop();
db.createCollection("capped1" , {capped:true, size:1024 });
v = t.validate();
assert( v.valid , "A : " + tojson( v ) ); // SERVER-485
t.save( { x : 1 } )
assert( t.validate().valid , "B" )
| barakav/robomongo | src/third-party/mongodb/jstests/capped1.js | JavaScript | gpl-3.0 | 220 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Data/PokemonData.proto
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using sc... | zzdragonjaizz/RocketBot | src/POGOProtos/Data/PokemonData.cs | C# | gpl-3.0 | 33,667 |
// 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 <sys/socket.h>
#include "base/bind.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "base/posix/eintr_wrapper.h"
#in... | michaelforfxhelp/fxhelprepo | third_party/chromium/ipc/unix_domain_socket_util_unittest.cc | C++ | mpl-2.0 | 5,234 |
/*
* Copyright 2000-2014 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 | python/src/com/jetbrains/python/codeInsight/imports/ImportCandidateHolder.java | Java | apache-2.0 | 7,544 |
/*
* #%L
* Native ARchive plugin for Maven
* %%
* Copyright (C) 2002 - 2014 NAR Maven Plugin developers.
* %%
* 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.or... | dugilos/nar-maven-plugin | src/main/java/com/github/maven_nar/cpptasks/types/ConditionalPath.java | Java | apache-2.0 | 2,393 |
/*
* 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... | gingerwizard/elasticsearch | client/rest-high-level/src/test/java/org/elasticsearch/client/ml/dataframe/evaluation/regression/MeanSquaredErrorMetricResultTests.java | Java | apache-2.0 | 1,999 |
module MiqReport::Generator::Html
def build_html_rows(clickable_rows = false)
tz = get_time_zone(Time.zone.name) if Time.zone
html_rows = []
group_counter = 0
row = 0
self.rpt_options ||= {}
self.col_formats ||= [] # Backward compat - create empty array for formats
group_... | mfeifer/manageiq | app/models/miq_report/generator/html.rb | Ruby | apache-2.0 | 8,450 |
/**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.L... | fpringvaldsen/config | config/src/main/java/com/typesafe/config/impl/ConfigParser.java | Java | apache-2.0 | 19,298 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 4.3.2 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2010, EllisLab, Inc.
* @license http://codei... | prashants/webzash-v1-defunct | system/codeigniter/CodeIgniter.php | PHP | apache-2.0 | 7,665 |
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --harmony-do-expressions
function f(x) {
switch (x) {
case 1: return "one";
case 2: return "two";
case d... | macchina-io/macchina.io | platform/JS/V8/v8/test/mjsunit/regress/regress-osr-in-case-label.js | JavaScript | apache-2.0 | 502 |
/*******************************************************************************
* Copyright (c) 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is a... | nwnpallewela/developer-studio | jaggery/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/preferences/AbstractPreferencesPropagator.java | Java | apache-2.0 | 3,408 |
/*
* Copyright 2009-2010 WSO2, Inc. (http://wso2.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... | nwnpallewela/developer-studio | data-services/plugins/org.wso2.developerstudio.eclipse.ds.editor/src/org/wso2/developerstudio/eclipse/ds/presentation/custom/CustomAdapterFactoryContentProvider.java | Java | apache-2.0 | 1,569 |
/*
* Copyright 2016-present Open Networking Laboratory
*
* 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 appli... | donNewtonAlpha/onos | apps/cpman/app/src/main/java/org/onosproject/cpman/cli/ResourceNameCompleter.java | Java | apache-2.0 | 3,366 |
/*
* Copyright 2014-present Open Networking Laboratory
*
* 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 appli... | donNewtonAlpha/onos | core/api/src/main/java/org/onosproject/net/provider/AbstractProvider.java | Java | apache-2.0 | 1,074 |
package com.thinkaurelius.titan.graphdb.types.system;
import com.thinkaurelius.titan.graphdb.internal.InternalVertexLabel;
import org.apache.tinkerpop.gremlin.structure.Vertex;
/**
* @author Matthias Broecheler (me@matthiasb.com)
*/
public class BaseVertexLabel extends EmptyVertex implements InternalVertexLabel {
... | CYPP/titan | titan-core/src/main/java/com/thinkaurelius/titan/graphdb/types/system/BaseVertexLabel.java | Java | apache-2.0 | 987 |
/*1*/ try /*2*/ { /*3*/
/*4*/ throw /*5*/ "no" /*6*/;
/*7*/} /*8*/ catch /*9*/ ( /*10*/ e /*11*/ ) /*12*/ { /*13*/
/*14*/} /*15*/ finally /*16*/ { /*17*/
/*18*/} /*19*/ | basarat/TypeScript | tests/cases/compiler/tryStatementInternalComments.ts | TypeScript | apache-2.0 | 180 |
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'OrderAndItemCharges.code'
db.alter_column(u'shipping_o... | jinnykoo/christmas | src/oscar/apps/shipping/south_migrations/0006_auto__chg_field_orderanditemcharges_code__chg_field_weightbased_code.py | Python | bsd-3-clause | 5,032 |
import imghdr
import json
import logging
from django.conf import settings
from django.db.models import Q
from django.http import (HttpResponse, HttpResponseRedirect,
HttpResponseBadRequest, Http404)
from django.shortcuts import get_object_or_404, render
from django.views.decorators.clickjackin... | orvi2014/kitsune | kitsune/gallery/views.py | Python | bsd-3-clause | 9,805 |
// Squarified Treemaps by Mark Bruls, Kees Huizing, and Jarke J. van Wijk
// Modified to support a target aspect ratio by Jeff Heer
d3.layout.treemap = function() {
var hierarchy = d3.layout.hierarchy(),
round = Math.round,
size = [1, 1], // width, height
padding = null,
pad = d3_layout_treema... | zziuni/d3 | src/layout/treemap.js | JavaScript | bsd-3-clause | 6,511 |
#!/usr/bin/env python
#
# Copyright 2006, Google 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 code must retain the above copyright
# notice, this list... | paoloach/zdomus | zigbee_lib/googletest/googletest/test/gtest_xml_test_utils.py | Python | gpl-2.0 | 8,876 |
// 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.
using System.Buffers;
namespace System.Text.Json
{
public ref partial struct Utf8JsonWriter
{
/// ... | ptoonen/corefx | src/System.Text.Json/src/System/Text/Json/Writer/Utf8JsonWriter.WriteValues.Double.cs | C# | mit | 1,839 |
// Type definitions for non-npm package @ember/component 3.0
// Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Fcomponent
// Definitions by: Mike North <https://github.com/mike-north>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
/// <reference types="jquery"... | borisyankov/DefinitelyTyped | types/ember__component/index.d.ts | TypeScript | mit | 4,009 |
# Copyright 2016 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... | jjas0nn/solvem | tensorflow/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/export_strategy.py | Python | mit | 1,195 |
version https://git-lfs.github.com/spec/v1
oid sha256:cdaff690080dec73e2f9044eb89e1426fd2645ea6d8b253cd51cd992717b8a06
size 1772
| yogeshsaroya/new-cdnjs | ajax/libs/codemirror/5.1.0/mode/shell/test.js | JavaScript | mit | 129 |
// 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.
using System.Diagnostics;
using System.IO;
namespace System.Net.NetworkInformation
{
internal class LinuxIPGlob... | shimingsg/corefx | src/System.Net.NetworkInformation/src/System/Net/NetworkInformation/LinuxIPGlobalStatistics.cs | C# | mit | 4,754 |
package com.wirelesspienetwork.overview.views;
import android.animation.ValueAnimator;
import android.graphics.Rect;
import android.view.View;
import android.view.ViewPropertyAnimator;
import android.view.animation.Interpolator;
/* The transform state for a task view */
public class OverviewCardTransform {
publi... | ppamorim/StackOverView | lib/src/main/java/com/wirelesspienetwork/overview/views/OverviewCardTransform.java | Java | mit | 3,895 |
#!/usr/bin/env python
import sys
import re
from helpers import *
PROGRAM_USAGE = """
SeqAn script to replace invalid identifiers (previously collected) in the SeqAn
codebase.
USAGE: replace_identifiers.py BASE_PATH [REPLACEMENTS]
BASE_PATH is the root path of all the folders to be searched.
REPLACEMENTS is a file ... | bkahlert/seqan-research | raw/workshop13/workshop2013-data-20130926/trunk/misc/renaming/replace_identifiers.py | Python | mit | 2,256 |
/* This file was generated by SableCC (http://www.sablecc.org/). */
package wolf.node;
import wolf.analysis.*;
@SuppressWarnings("nls")
public final class TStringBody extends Token
{
public TStringBody(String text)
{
setText(text);
}
public TStringBody(String text, int line, int pos)
{
... | dittma75/compiler-design | wolf_compiler/wolf/src/wolf/node/TStringBody.java | Java | mit | 616 |
<?php
// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
/**
* Toc rule end renderer for Xhtml
*
* PHP versions 4 and 5
*
* @category Text
* @package Text_Wiki
* @author Paul M. Jones <pmjones@php.net>
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
* @version CVS: ... | idoxlr8/HVAC | xataface/lib/Text/Wiki/Render/Xhtml/Toc.php | PHP | gpl-2.0 | 2,899 |
module Rails
module VERSION #:nodoc:
MAJOR = 2
MINOR = 1
TINY = 0
STRING = [MAJOR, MINOR, TINY].join('.')
end
end
| YSATools/The-Ward-Menu | vendor/railties/lib/rails/version.rb | Ruby | gpl-2.0 | 136 |
/*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* ... | onetechgenius/XBMCast2TV | xbmc/interfaces/legacy/Control.cpp | C++ | gpl-2.0 | 49,424 |
namespace WikiFunctions.Profiles
{
partial class AWBLogUploadProfilesForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... | svn2github/autowikibrowser | tags/ServerPlugin/WikiFunctions/Profiles/AWBLogUploadProfilesForm.designer.cs | C# | gpl-2.0 | 14,307 |
/*
*------------------------------------------------------------------------------
* Copyright (C) 2006-2014 University of Dundee & Open Microscopy Environment.
* All rights reserved.
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Lic... | simleo/openmicroscopy | components/blitz/src/omero/gateway/util/NetworkChecker.java | Java | gpl-2.0 | 6,574 |
/* Delegate.java --
Copyright (C) 2005, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)... | taciano-perez/JamVM-PH | src/classpath/org/omg/CORBA/portable/Delegate.java | Java | gpl-2.0 | 15,054 |
/*
* Copyright (C) 2005-2012 Team XBMC
* http://www.xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
... | koying/xbmc-pivos | xbmc/music/tags/MusicInfoTagLoaderMidi.cpp | C++ | gpl-2.0 | 2,164 |
<?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... | dvh11er/mage-cheatcode | magento/lib/Varien/Image.php | PHP | gpl-2.0 | 7,490 |
/*
* Copyright (c) 1998, 2010, 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 ... | BobZhao/HotSpotResearch | src/share/vm/utilities/histogram.hpp | C++ | gpl-2.0 | 3,519 |
/**
* Authentication controller.
*
* Here we just bind together the Docs.Auth and AuthForm component.
*/
Ext.define('Docs.controller.Auth', {
extend: 'Ext.app.Controller',
requires: [
'Docs.Auth',
'Docs.Comments'
],
refs: [
{
ref: "authHeaderForm",
s... | ckeditor/jsduck | template/app/controller/Auth.js | JavaScript | gpl-3.0 | 2,613 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @license http://codei... | Karplyak/avtomag.url.ph | system/libraries/Session.php | PHP | gpl-3.0 | 19,399 |
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
package model
import (
"strings"
"testing"
)
func TestInitialLoadJson(t *testing.T) {
u := &User{Id: NewId()}
o := InitialLoad{User: u}
json := o.ToJson()
ro := InitialLoadFromJson(strings.NewReader(json))
... | rahulltkr/platform | model/initial_load_test.go | GO | agpl-3.0 | 385 |
/***************************************************************************
* Copyright (c) 2009 Jürgen Riegel <juergen.riegel@web.de> *
* *
* This file is part of the FreeCAD CAx development system. *
* ... | sanguinariojoe/FreeCAD | src/Gui/TaskView/TaskDialog.cpp | C++ | lgpl-2.1 | 3,435 |
// Copyright 2012 Cloudera 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 wr... | brightchen/Impala | be/src/util/metrics.cc | C++ | apache-2.0 | 7,566 |
/*
* Copyright 2000-2014 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... | diorcety/intellij-community | platform/core-api/src/com/intellij/openapi/application/ModalityState.java | Java | apache-2.0 | 2,089 |
/*
* 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 ... | u2009cf/spark-radar | launcher/src/main/java/org/apache/spark/launcher/LauncherServer.java | Java | apache-2.0 | 11,989 |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('estraverse')) :
typeof define === 'function' && define.amd ? define(['estraverse'], factory) :
(global = global || self, global.esquery = factory(global.estraverse));
}(this, (function (e... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/esquery/dist/esquery.lite.js | JavaScript | apache-2.0 | 105,133 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* The production x ^= y is the same as x = x ^ y
*
* @path ch11/11.13/11.13.2/S11.13.2_A4.10_T2.2.js
* @description Type(x) is different from Type(y) and both types vary between N... | hippich/typescript | tests/Fidelity/test262/suite/ch11/11.13/11.13.2/S11.13.2_A4.10_T2.2.js | JavaScript | apache-2.0 | 1,611 |
/**
* Copyright 2011, Big Switch Networks, Inc.
* Originally created by David Erickson, Stanford University
*
* 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://w... | alberthitanaya/floodlight-dnscollector | src/main/java/net/floodlightcontroller/topology/web/SwitchClustersResource.java | Java | apache-2.0 | 2,712 |
cask "lynx" do
version "7.5.2.0"
sha256 :no_check
url "https://download.saharasupport.com/lynx#{version.major}/production/macx/Lynx#{version.major}-install.dmg",
verified: "download.saharasupport.com"
name "LYNX Whiteboard by Clevertouch"
desc "Cross platform presentation and productivity app"
homepa... | nrlquaker/homebrew-cask | Casks/lynx.rb | Ruby | bsd-2-clause | 649 |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.modules.i18nmanager;
import android.content.Context;
import android.content.SharedPreferences;
import a... | exponent/exponent | android/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nUtil.java | Java | bsd-3-clause | 3,388 |
cdb.admin.overlays.LayerSelector = cdb.core.View.extend({
tagName: 'div',
className: 'cartodb-layer-selector-box',
events: {
"click": '_openDropdown',
"dblclick": 'killEvent',
"mousedown": 'killEvent'
},
default_options: {
timeout: 0,
msg: ''
},
initialize: function() {
_... | nyimbi/cartodb | lib/assets/javascripts/cartodb/table/overlays/layer_selector.js | JavaScript | bsd-3-clause | 6,825 |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
'use strict';
const React = require('react');
const ReactDOM = require('react-dom');
describe('ReactMou... | jdlehman/react | packages/react-dom/src/__tests__/ReactMountDestruction-test.js | JavaScript | mit | 2,971 |
//------------------------------------------------------------------------------
// <copyright file="XmlReservedNS.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <owner current="true" primary="true">[....]</owner>
//-----------------------------------------... | sekcheong/referencesource | System.Xml/System/Xml/XmlReservedNs.cs | C# | mit | 2,890 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {ReflectiveInjector, ɵglobal as global} from '@angular/core';
import {ApplicationRef, ApplicationRef_} from '... | souvikbasu/angular | packages/platform-browser/test/browser/tools/spies.ts | TypeScript | mit | 921 |
// This code is in the public domain -- Ignacio Castaño <castano@gmail.com>
#include "Debug.h"
#include "Array.inl"
#include "StrLib.h" // StringBuilder
#include "StdStream.h" // fileOpen
#include <stdlib.h>
// Extern
#if NV_OS_WIN32 //&& NV_CC_MSVC
# define WIN32_LEAN_AND_MEAN
# define VC_EXTRALEA... | dmsovetov/nvidia-texture-tools | src/nvcore/Debug.cpp | C++ | mit | 40,281 |
module Fog
module Compute
class XenServer
module Models
class Vlans < Collection
model Fog::Compute::XenServer::Models::Vlan
end
end
end
end
end | jonpstone/portfolio-project-rails-mean-movie-reviews | vendor/bundle/ruby/2.3.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/models/vlans.rb | Ruby | mit | 194 |
/**
@module ember-data
*/
import Ember from 'ember';
import Model from "ember-data/model";
var get = Ember.get;
var capitalize = Ember.String.capitalize;
var underscore = Ember.String.underscore;
const { assert } = Ember;
/*
Extend `Ember.DataAdapter` with ED specific code.
@class DebugAdapter
@namespace DS
... | r0zar/ember-rails-stocks | stocks/node_modules/ember-data/addon/-private/system/debug/debug-adapter.js | JavaScript | mit | 3,163 |
<?php
/**
* @package wpml-core
* @subpackage wpml-user-language
*/
class WPML_User_Language_Switcher_UI {
/**
* WPML_User_Language_Switcher_UI constructor.
*
* @param WPML_User_Language_Switcher $WPML_User_Language_Switcher
* @param WPML_User_Language_Switcher_Resources $WPML_User_Language_Sw... | Bamboo3000/searchit | wp-content/plugins/sitepress-multilingual-cms/classes/user-language/class-wpml-user-language-switcher-ui.php | PHP | gpl-2.0 | 1,231 |
from PyQt5.uic import properties
| drnextgis/QGIS | python/PyQt/PyQt5/uic/properties.py | Python | gpl-2.0 | 33 |
<?php
/**
* Date Exception
*
* PHP version 5
*
* Copyright (C) Villanova University 2011.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed ... | ubtue/KrimDok | module/VuFind/src/VuFind/Exception/Date.php | PHP | gpl-2.0 | 1,319 |
<?php
/**
* This class is used for Manages all the options related With Magic Fields
*
*/
class RCCWP_Options {
/**
* Update the options of Magic Fields
*
* @params array $options is a array with the options of Magic Fields
*/
function Update($options) {
$options = serialize($options);
update_opt... | matthewbirtch/birtchfarms.com | wp-content/plugins/magic-fields/RCCWP_Options.php | PHP | gpl-2.0 | 1,237 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation |
--------... | Atizar/RapidCFD-dev | src/TurbulenceModels/phaseIncompressible/PhaseIncompressibleTurbulenceModel/PhaseIncompressibleTurbulenceModel.H | C++ | gpl-3.0 | 4,433 |
/*!
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
(function () {
describe('startFromFilter', function() {
var startFrom;
beforeEach(module('piwikApp.filter'));
beforeEach(inject(function($inject... | befair/soulShape | wp/soulshape.earth/piwik/plugins/CoreHome/angularjs/common/filters/startfrom.spec.js | JavaScript | agpl-3.0 | 1,121 |
// AForge Image Processing Library
// AForge.NET framework
// http://www.aforgenet.com/framework/
//
// Copyright © Andrew Kirillov, 2005-2010
// andrew.kirillov@aforgenet.com
//
namespace AForge.Imaging.Filters
{
using System;
using System.Collections.Generic;
using System.Drawing;
using ... | AnnaPeng/framework | Sources/Accord.Imaging/AForge/Filters/Color Filters/LevelsLinear.cs | C# | lgpl-2.1 | 10,124 |
/**
* Vosao CMS. Simple CMS for Google App Engine.
*
* Copyright (C) 2009-2010 Vosao development team.
*
* 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 t... | vosaocms/vosao | api/src/org/vosao/business/PageBusiness.java | Java | lgpl-2.1 | 6,389 |
namespace AForge.Video.DirectShow
{
partial class VideoCaptureDeviceForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... | AnnaPeng/framework | Sources/Accord.Video.DirectShow/VideoCaptureDeviceForm.Designer.cs | C# | lgpl-2.1 | 11,285 |
<?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... | dbashyal/MagentoStarterBase | trunk/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Main.php | PHP | lgpl-3.0 | 11,823 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OfficeDevPnP.Core;
using Contoso.Provisioning.Hybrid.Contract;
using System.IO;
using System.Diagnostics;
using Microsoft.SharePoint.Client;
using OfficeDevPnP.Core.Entities;
using Microsoft.Window... | stijnneirinckx/PnP | Solutions/Provisioning.Hybrid/Provisioning.Hybrid.Core/SiteTemplates/SiteProvisioningBase.cs | C# | apache-2.0 | 8,236 |
// Go support for Protocol Buffers - Google's data interchange format
//
// Copyright 2010 The Go Authors. All rights reserved.
// http://code.google.com/p/goprotobuf/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// m... | cvik/etcd | third_party/code.google.com/p/gogoprotobuf/proto/text_parser_test.go | GO | apache-2.0 | 10,773 |
/* ****************************************************************************
*
* Copyright (c) Microsoft Corporation.
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A
* copy of the license can be found in the License.html file at the root of this distribution... | dut3062796s/PTVS | Common/Tests/Utilities.UI/UI/VisualStudioApp.cs | C# | apache-2.0 | 42,155 |
/* ------------------------------------------------------------------
* Copyright (C) 1998-2009 PacketVideo
*
* 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... | dAck2cC2/m3e | src/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/d_gain_p.cpp | C++ | apache-2.0 | 6,349 |
/*
Copyright 2016 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, ... | Stackdriver/heapster | vendor/k8s.io/kubernetes/pkg/kubelet/kubelet_pods_test.go | GO | apache-2.0 | 61,774 |
package org.keycloak.provider;
import org.jboss.logging.Logger;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.ServiceLoader;
/**
* @author <a href="mailto:sthorger@redhat.com">Stian Thorgersen</a>
*/
public class ProviderManager {
private ... | matzew/keycloak | services/src/main/java/org/keycloak/provider/ProviderManager.java | Java | apache-2.0 | 2,461 |
/*
* 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... | marsorp/blog | presto166/presto-parser/src/main/java/com/facebook/presto/sql/tree/GroupingSets.java | Java | apache-2.0 | 3,087 |
/*
* 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 ... | samaitra/ignite | modules/core/src/test/java/org/apache/ignite/cache/store/jdbc/CacheJdbcStoreSessionListenerSelfTest.java | Java | apache-2.0 | 6,111 |
// +build !windows
package devices
import (
"errors"
"golang.org/x/sys/unix"
)
func (d *Rule) Mkdev() (uint64, error) {
if d.Major == Wildcard || d.Minor == Wildcard {
return 0, errors.New("cannot mkdev() device with wildcards")
}
return unix.Mkdev(uint32(d.Major), uint32(d.Minor)), nil
}
| xychu/kubernetes | vendor/github.com/opencontainers/runc/libcontainer/devices/device_unix.go | GO | apache-2.0 | 301 |
package com.salesmanager.web.entity.shop;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;
public class ContactForm {
@NotEmpty
private String name;
@NotEmpty
private String subject;
@Email
private String email;
@NotEmpty
private String comment;
priv... | asheshsaraf/ecommerce-simple | sm-shop/src/main/java/com/salesmanager/web/entity/shop/ContactForm.java | Java | apache-2.0 | 1,264 |
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInitcdf72ff6e7f034c7d87f9bb5bd53f8da::getLoader();
| ThreePeple/xjqjsjpgldjkkuiloojjloj | vendor/autoload.php | PHP | bsd-3-clause | 183 |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restrictio... | elfprince13/Torque3D | Engine/source/platformWin32/winTime.cpp | C++ | mit | 4,979 |
require 'spec_helper'
describe SCSSLint::Linter::DeclarationOrder do
context 'when rule is empty' do
let(:scss) { <<-SCSS }
p {
}
SCSS
it { should_not report_lint }
end
context 'when rule contains only properties' do
let(:scss) { <<-SCSS }
p {
background: #000;
... | ingdir/scss-lint | spec/scss_lint/linter/declaration_order_spec.rb | Ruby | mit | 10,847 |
/**
* Module dependencies
*/
var fs = require('fs-extra')
, _ = require('lodash')
, path = require('path')
, reportback = require('reportback')();
/**
* Generate a JSON file
*
* @option {String} rootPath
* @option {Object} data
* [@option {Boolean} force=false]
*
* @handlers success
* @handlers error
*... | harindaka/node-mvc-starter | node_modules/sails/node_modules/sails-generate/lib/helpers/jsonfile/index.js | JavaScript | mit | 1,395 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
using WebStack.QA.Share.Controllers.TypeLibrary;
namespace WebStack.QA.Share.Controllers
{
public class CollectionController : ApiController
{
#region IEnumerable, IEnumerable<T>
... | lungisam/WebApi | OData/test/E2ETestV3/WebStack.QA.Share/Controllers/CollectionController.cs | C# | mit | 2,854 |
require 'active_support/execution_wrapper'
module ActiveSupport
#--
# This class defines several callbacks:
#
# to_prepare -- Run once at application startup, and also from
# +to_run+.
#
# to_run -- Run before a work run that is reloading. If
# +reload_classes_only_on_change+ is true (the defau... | afuerstenau/daily-notes | vendor/cache/ruby/2.5.0/gems/activesupport-5.0.6/lib/active_support/reloader.rb | Ruby | mit | 2,922 |
// 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.
using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using Roslyn.Utilities;
namespace M... | AlekseyTs/roslyn | src/Compilers/Core/Portable/InternalUtilities/FailFast.cs | C# | mit | 3,898 |
/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
*
* Copyright (c) 2005-2010, Nitobi Software Inc.
* Copyright (c) 2010, IBM Corporation
*/
package com.phonegap;
import org.json.JSONArray... | roadlabs/android | appMobiLib/src/com/phonegap/ContactManager.java | Java | mit | 3,535 |
/*
Copyright_License {
XCSoar Glide Computer - http://www.xcsoar.org/
Copyright (C) 2000-2016 The XCSoar Project
A detailed list of copyright holders can be found in the file "AUTHORS".
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
... | matthewturnbull/xcsoar | src/Engine/Trace/Trace.cpp | C++ | gpl-2.0 | 10,776 |
/*
* 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 ... | zagnix/Mycat-Server | src/main/java/io/mycat/util/ByteBufferUtil.java | Java | gpl-2.0 | 14,659 |
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of ... | lordhoto/scummvm | engines/mohawk/cstime_ui.cpp | C++ | gpl-2.0 | 38,280 |
class PermalinkSerializer < ApplicationSerializer
attributes :id, :url, :topic_id, :topic_title, :topic_url,
:post_id, :post_url, :post_number, :post_topic_title,
:category_id, :category_name, :category_url, :external_url
def topic_title
object&.topic&.title
end
def topic_url
... | andriy-kravchuck/discourse9323 | app/serializers/permalink_serializer.rb | Ruby | gpl-2.0 | 670 |
package info.novatec.inspectit.indexing.aggregation.impl;
import info.novatec.inspectit.communication.IAggregatedData;
import info.novatec.inspectit.communication.data.ThreadInformationData;
import info.novatec.inspectit.indexing.aggregation.IAggregator;
import java.io.Serializable;
/**
* {@link IAggregator} for th... | kugelr/inspectIT | CommonsCS/src/info/novatec/inspectit/indexing/aggregation/impl/ThreadInformationDataAggregator.java | Java | agpl-3.0 | 1,820 |
/*
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, ... | dobbymoodge/origin | vendor/k8s.io/kubernetes/pkg/kubectl/cmd/apply_set_last_applied.go | GO | apache-2.0 | 7,729 |
/*
Copyright 2012 Harri Smatt
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 wri... | yytang2012/android_page_curl | src/fi/harism/curl/CurlPage.java | Java | apache-2.0 | 5,100 |
/*
* 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 ... | lincoln-lil/flink | flink-core/src/main/java/org/apache/flink/api/common/serialization/SimpleStringEncoder.java | Java | apache-2.0 | 2,282 |
<?php
final class PhabricatorApplicationEditEngine
extends PhabricatorEditEngine {
const ENGINECONST = 'application.application';
public function getEngineApplicationClass() {
return 'PhabricatorApplicationsApplication';
}
public function getEngineName() {
return pht('Applications');
}
public... | folsom-labs/phabricator | src/applications/meta/editor/PhabricatorApplicationEditEngine.php | PHP | apache-2.0 | 1,428 |
/*
* 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 ... | forcedotcom/aura | aura-components/src/test/components/iterationTest/iterationArrayValueChange_ObjectFromAttribute_PassThroughValue/iterationArrayValueChange_ObjectFromAttribute_PassThroughValueController.js | JavaScript | apache-2.0 | 919 |