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 |
|---|---|---|---|---|---|
@extends('layouts.loggedout')
@section('content')
@if(Session::has('error'))
<div class="clearfix">
<div class="alert alert-danger">
{{ Session::get('error') }}
</div>
</div>
@endif
<h1 class="col-sm-12">{{ trans('reminders.password_reset') }}</h1>
{{ Form::open(array('route' => ... | ubc/learninglocker | app/views/system/password/reset.blade.php | PHP | gpl-3.0 | 953 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Google
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
#
... | anryko/ansible | lib/ansible/modules/cloud/google/gcp_redis_instance_info.py | Python | gpl-3.0 | 9,179 |
#region References
using System;
using System.Collections.Generic;
using Server.Engines.ConPVP;
using Server.Items;
using Server.Misc;
using Server.Mobiles;
using Server.Network;
using Server.Spells.Bushido;
using Server.Spells.Necromancy;
using Server.Spells.Ninjitsu;
using Server.Spells.Second;
using Server.Spells.S... | zerodowned/JustUO | Scripts/Spells/Base/Spell.cs | C# | gpl-3.0 | 28,192 |
<?php
namespace App\Console\Commands;
use App\Console\LnmsCommand;
use App\Models\Device;
use Illuminate\Database\Eloquent\Builder;
use LibreNMS\Config;
use LibreNMS\Polling\ConnectivityHelper;
use Symfony\Component\Console\Input\InputArgument;
class DevicePing extends LnmsCommand
{
protected $name = 'device:pin... | arrmo/librenms | app/Console/Commands/DevicePing.php | PHP | gpl-3.0 | 1,546 |
package net.minecraft.server;
import org.bukkit.craftbukkit.event.CraftEventFactory; // CraftBukkit
public class EntityPig extends EntityAnimal {
private final PathfinderGoalPassengerCarrotStick bp;
public EntityPig(World world) {
super(world);
this.a(0.9F, 0.9F);
this.getNavigation(... | starlis/EMC-CraftBukkit | src/main/java/net/minecraft/server/EntityPig.java | Java | gpl-3.0 | 4,987 |
// Copyright 2018 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.
// Package protoreflect provides interfaces to dynamically manipulate messages.
//
// This package includes type descriptors which describe the structure of typ... | pberndro/smartpi_exporter | vendor/google.golang.org/protobuf/reflect/protoreflect/proto.go | GO | gpl-3.0 | 15,836 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.mozstumbler.service.stumblerthread.datahandling;
import org.json.JSONObject;
import org.mozil... | petercpg/MozStumbler | libraries/stumbler/src/main/java/org/mozilla/mozstumbler/service/stumblerthread/datahandling/ReportBatchBuilder.java | Java | mpl-2.0 | 1,691 |
/*
* ################################################################
*
* ProActive Parallel Suite(TM): The Java(TM) library for
* Parallel, Distributed, Multi-Core Computing for
* Enterprise Grids & Clouds
*
* Copyright (C) 1997-2012 INRIA/University of
* Nice-Sophia Antipolis/ActiveEon
... | moliva/proactive | src/Core/org/objectweb/proactive/core/util/ProActiveCounter.java | Java | agpl-3.0 | 2,303 |
/*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2013-2014 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2014 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | rdkgit/opennms | features/vaadin-node-maps/src/main/java/org/opennms/features/vaadin/nodemaps/internal/gwt/client/SearchResult.java | Java | agpl-3.0 | 2,174 |
/*
* ################################################################
*
* ProActive Parallel Suite(TM): The Java(TM) library for
* Parallel, Distributed, Multi-Core Computing for
* Enterprise Grids & Clouds
*
* Copyright (C) 1997-2012 INRIA/University of
* Nice-Sophia Antipolis/ActiveEon
... | moliva/proactive | src/Extensions/org/objectweb/proactive/extensions/annotation/common/BogusAnnotationProcessor.java | Java | agpl-3.0 | 2,065 |
<?php
/**
* @package api
* @subpackage filters.enum
*/
class KalturaFileAssetOrderBy extends KalturaStringEnum
{
const CREATED_AT_ASC = "+createdAt";
const CREATED_AT_DESC = "-createdAt";
const UPDATED_AT_ASC = "+updatedAt";
const UPDATED_AT_DESC = "-updatedAt";
}
| ratliff/server | api_v3/lib/types/fileAsset/filters/orderEnums/KalturaFileAssetOrderBy.php | PHP | agpl-3.0 | 272 |
/*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2007-2014 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2014 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | tdefilip/opennms | opennms-services/src/main/java/org/opennms/netmgt/vacuumd/AutomationException.java | Java | agpl-3.0 | 2,125 |
#
# Copyright (C) 2011 Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that ... | SaranNV/canvas-lms | spec/views/quizzes/submission_versions.html.erb_spec.rb | Ruby | agpl-3.0 | 1,143 |
/*
* Copyright (C) 2011 JTalks.org 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 the License, or (at your option) any later version.
* This library i... | illerax/jcommune | jcommune-view/jcommune-web-view/src/main/webapp/resources/javascript/app/utils.js | JavaScript | lgpl-2.1 | 4,376 |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="hr" sourcelanguage="en">
<context>
<name>CmdWebBrowserBack</name>
<message>
<location filename="../../Command.cpp" line="75"/>
<source>Web</source>
<translation type="unfinished">Web</translation>
</mess... | wood-galaxy/FreeCAD | src/Mod/Web/Gui/Resources/translations/Web_hr.ts | TypeScript | lgpl-2.1 | 6,073 |
'use strict';
/**
* @module br/util/Number
*/
var StringUtility = require('br/util/StringUtility');
/**
* @class
* @alias module:br/util/Number
*
* @classdesc
* Utility methods for numbers
*/
function NumberUtil() {
}
/**
* Returns a numeric representation of the sign on the number.
*
* @param {Number} n... | andreoid/testing | brjs-sdk/workspace/sdk/libs/javascript/br-util/src/br/util/Number.js | JavaScript | lgpl-3.0 | 4,499 |
/*
Copyright 2012 Twitter, 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, software
distr... | ogre0403/hraven | hraven-etl/src/main/java/com/twitter/hraven/etl/JobRunner.java | Java | apache-2.0 | 2,525 |
//// [tests/cases/compiler/moduleAugmentationsImports4.ts] ////
//// [a.ts]
export class A {}
//// [b.ts]
export class B {x: number;}
//// [c.d.ts]
declare module "C" {
class Cls {y: string; }
}
//// [d.d.ts]
declare module "D" {
import {A} from "a";
import {B} from "b";
module "a" {
... | weswigham/TypeScript | tests/baselines/reference/moduleAugmentationsImports4.js | JavaScript | apache-2.0 | 1,844 |
"""
Component-level Specification
This module is called component to mirror organization of storm package.
"""
from ..storm.component import Component
class Specification(object):
def __init__(self, component_cls, name=None, parallelism=1):
if not issubclass(component_cls, Component):
raise ... | hodgesds/streamparse | streamparse/dsl/component.py | Python | apache-2.0 | 976 |
/*
* 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 ... | adrapereira/jena | jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_QueryDataset.java | Java | apache-2.0 | 2,072 |
/*
* Copyright 2014 Click Travel 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 ... | clicktravel-james/Cheddar | cheddar/cheddar-rest/src/main/java/com/clicktravel/cheddar/rest/exception/mapper/cdm1/JsonParseExceptionMapper.java | Java | apache-2.0 | 1,551 |
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.psi.impl;
import com.intellij.lang.ASTFactory;
import com.intellij.lang.Commenter;
import com.intellij.lang.Language;
import com.intellij.lang.LanguageComme... | siosio/intellij-community | platform/core-impl/src/com/intellij/psi/impl/PsiParserFacadeImpl.java | Java | apache-2.0 | 4,617 |
/*
* Copyright 2015 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 applicable la... | Zhengzl15/onos-securearp | core/api/src/main/java/org/onosproject/net/intent/MplsPathIntent.java | Java | apache-2.0 | 5,350 |
interface JavaInterface {
void foo(Object p);
}
class JavaClass1 implements JavaInterface {
@Override
public void foo(Object <caret>p) {
System.out.println(<flown1>p);
}
}
class JavaClass2 implements JavaInterface {
@Override
public void foo(Object p) {
System.err.println(p);
}
} | siosio/intellij-community | java/java-tests/testData/codeInsight/slice/forward/OneInterfaceTwoImplementations.java | Java | apache-2.0 | 304 |
/*
* Copyright 2011 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 ... | oujesky/closure-templates | java/src/com/google/template/soy/msgs/restricted/SoyMsgPluralCaseSpec.java | Java | apache-2.0 | 3,688 |
/*
* Copyright 2019 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... | jomarko/kie-wb-common | kie-wb-common-dmn/kie-wb-common-dmn-client/src/test/java/org/kie/workbench/common/dmn/client/editors/included/IncludedModelsPageStateTest.java | Java | apache-2.0 | 3,116 |
/*
* Copyright 2017 NAVER Corp.
*
* 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 ... | barneykim/pinpoint | web/src/main/java/com/navercorp/pinpoint/web/dao/stat/DeadlockDao.java | Java | apache-2.0 | 825 |
/// <reference path='fourslash.ts' />
//@Filename: file.tsx
//// declare module JSX {
//// interface Element { }
//// interface IntrinsicElements {
//// [|[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}div|]: {
//// name?: string;
//// isOpen?... | microsoft/TypeScript | tests/cases/fourslash/tsxFindAllReferences1.ts | TypeScript | apache-2.0 | 600 |
/*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <assert.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <net/if.h>
#include <linux/if_ether.h>
#include <linux/if_tun.h>
#include <linux/if_packet.h>
#include "base/... | facetothefate/contrail-controller | src/vnsw/agent/contrail/linux/pkt0_interface.cc | C++ | apache-2.0 | 6,144 |
# Copyright 2013 Josh Durgin
# Copyright 2013 Red Hat, 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-... | ntt-sic/nova | nova/tests/api/openstack/compute/contrib/test_volumes.py | Python | apache-2.0 | 32,169 |
/*
* 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 ... | tmess567/syncope | core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/entity/anyobject/ARelationship.java | Java | apache-2.0 | 1,023 |
package org.apache.maven.plugins.install.stubs;
import java.io.File;
/*
* 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
... | apache/maven-plugins | maven-install-plugin/src/test/java/org/apache/maven/plugins/install/stubs/AttachedArtifactStub0.java | Java | apache-2.0 | 1,311 |
/*
* Copyright 2018 NAVER Corp.
*
* 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 w... | barneykim/pinpoint | commons-server/src/main/java/com/navercorp/pinpoint/common/server/cluster/zookeeper/exception/NoNodeException.java | Java | apache-2.0 | 1,056 |
//// [augmentedTypesExternalModule1.ts]
export var a = 1;
class c5 { public foo() { } }
module c5 { } // should be ok everywhere
//// [augmentedTypesExternalModule1.js]
define(["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
exports.a = 1;
var c5 = ... | domchen/typescript-plus | tests/baselines/reference/augmentedTypesExternalModule1.js | JavaScript | apache-2.0 | 467 |
/*
* 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 ... | AlienQueen/wicket | wicket-core/src/main/java/org/apache/wicket/resource/ResourceUtil.java | Java | apache-2.0 | 8,028 |
/* Copyright 2015 Samsung Electronics Co., 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... | rahul27/GearVRf | GVRf/Framework/framework/src/main/jni/vulkan/vulkanCore.cpp | C++ | apache-2.0 | 46,740 |
/*
* Copyright 2000-2013 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... | jk1/intellij-community | platform/vcs-impl/src/com/intellij/openapi/vcs/configurable/VcsGeneralConfigurationPanel.java | Java | apache-2.0 | 10,031 |
// 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... | cpcloud/arrow | csharp/test/Apache.Arrow.Tests/BitUtilityTests.cs | C# | apache-2.0 | 7,010 |
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | bmildner/aws-sdk-cpp | aws-cpp-sdk-ecs/source/model/RegisterContainerInstanceRequest.cpp | C++ | apache-2.0 | 2,594 |
/*
* Copyright 2019 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 ... | bryce-anderson/netty | common/src/main/java/io/netty/util/internal/svm/UnsafeRefArrayAccessSubstitution.java | Java | apache-2.0 | 1,194 |
/*
* Copyright 2000-2009 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 | platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/CustomizedBreakpointPresentation.java | Java | apache-2.0 | 1,141 |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 EMC Corp.
//
// @filename:
// CParseHandlerQueryOutput.cpp
//
// @doc:
// Implementation of the SAX parse handler class parsing the list of
// output column references in a DXL query.
//---------... | 50wu/gpdb | src/backend/gporca/libnaucrates/src/parser/CParseHandlerQueryOutput.cpp | C++ | apache-2.0 | 4,849 |
class PerlBuild < Formula
desc "Perl builder"
homepage "https://github.com/tokuhirom/Perl-Build"
url "https://github.com/tokuhirom/Perl-Build/archive/1.32.tar.gz"
sha256 "ba86d74ff9718977637806ef650c85615534f0b17023a72f447587676d7f66fd"
license any_of: ["Artistic-1.0", "GPL-1.0-or-later"]
head "https://gith... | sjackman/homebrew-core | Formula/perl-build.rb | Ruby | bsd-2-clause | 5,489 |
cask 'astropad' do
version '3.1'
sha256 '4082c09dd4aa440a2b8bd25104d98d3f431fbca2fc4f139d3e390632f4903f22'
url "https://astropad.com/downloads/Astropad-#{version}.zip"
appcast 'https://astropad.com/downloads/sparkle.xml'
name 'Astropad'
homepage 'https://astropad.com/'
app 'Astropad.app'
uninstall qu... | josa42/homebrew-cask | Casks/astropad.rb | Ruby | bsd-2-clause | 649 |
goog.provide('ol.test.extent');
goog.require('ol.extent');
goog.require('ol.proj');
describe('ol.extent', function() {
describe('buffer', function() {
it('buffers an extent by some value', function() {
var extent = [-10, -20, 10, 20];
expect(ol.extent.buffer(extent, 15)).to.eql([-25, -35, 25, 35]... | wet-boew/openlayers-dist | test/spec/ol/extent.test.js | JavaScript | bsd-2-clause | 27,991 |
/**
* Copyright (c) 2005-2007, Paul Tuckey
* All rights reserved.
* ====================================================================
* Licensed under the BSD License. Text as follows.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... | safarijv/urlrewritefilter | src/main/java/org/tuckey/web/filters/urlrewrite/Conf.java | Java | bsd-3-clause | 23,779 |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | youtube/cobalt | third_party/llvm-project/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/eof.pass.cpp | C++ | bsd-3-clause | 669 |
<?php
/**
* Manage views in a database
*
* $Id: views.php,v 1.75 2007/12/15 22:57:43 ioguix Exp $
*/
// Include application functions
include_once('./libraries/lib.inc.php');
include_once('./classes/Gui.php');
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : '';
if (!isset($msg)) $msg = ... | juanchi008/playa_auto | web/phppgadmin/views.php | PHP | bsd-3-clause | 27,911 |
# This migration comes from spree (originally 20130417120035)
class UpdateAdjustmentStates < ActiveRecord::Migration[4.2]
def up
Spree::Order.complete.find_each do |order|
order.adjustments.update_all(state: 'closed')
end
Spree::Shipment.shipped.includes(:adjustment).find_each do |shipment|
s... | andreinabgomezg29/spree_out_stock | spec/dummy/db/migrate/20170904174291_update_adjustment_states.spree.rb | Ruby | bsd-3-clause | 500 |
// 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.
/**
* This view displays options for exporting the captured data.
*/
var ExportView = (function() {
'use strict';
// We inherit from DivView.
... | zcbenz/cefode-chromium | chrome/browser/resources/net_internals/export_view.js | JavaScript | bsd-3-clause | 6,896 |
# frozen_string_literal: true
module Spree
module Admin
class PropertiesController < ResourceController
def index
respond_with(@collection)
end
private
def collection
return @collection if @collection
# params[:q] can be blank upon pagination
params[:q] =... | pervino/solidus | backend/app/controllers/spree/admin/properties_controller.rb | Ruby | bsd-3-clause | 601 |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Variable = void 0;
const variable_1 = __importDefault(require("eslint-scope/lib/variable"));
con... | ChromeDevTools/devtools-frontend | node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Variable.js | JavaScript | bsd-3-clause | 419 |
// Copyright 2020 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 "services/device/hid/hid_preparsed_data.h"
#include <cstddef>
#include <cstdint>
#include "base/debug/dump_without_crashing.h"
#include "base/m... | chromium/chromium | services/device/hid/hid_preparsed_data.cc | C++ | bsd-3-clause | 10,536 |
// Copyright 2017 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 <memory>
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
#include "base/timer/lap_timer.h"
#include "testing/perf/perf_test.h"
#inclu... | ric2b/Vivaldi-browser | chromium/ash/perftests/ash_background_filter_blur_perftest.cc | C++ | bsd-3-clause | 5,648 |
// Copyright 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.
//
// Mock ServerConnectionManager class for use in client regression tests.
#include "sync/test/engine/mock_connection_manager.h"
#include <map>
#inclu... | guorendong/iridium-browser-ubuntu | sync/test/engine/mock_connection_manager.cc | C++ | bsd-3-clause | 25,782 |
/*jslint sloppy: true, nomen: true */
/*global exports:true */
/*
This file is part of the PhantomJS project from Ofi Labs.
Copyright (C) 2013 Joseph Rollinson, jtrollinson@gmail.com
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following con... | tianzhihen/phantomjs | src/modules/cookiejar.js | JavaScript | bsd-3-clause | 2,651 |
// Copyright 2020 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/passwords/bubble_controllers/move_to_account_store_bubble_controller.h"
#include "chrome/browser/favicon/favicon_service_facto... | ric2b/Vivaldi-browser | chromium/chrome/browser/ui/passwords/bubble_controllers/move_to_account_store_bubble_controller.cc | C++ | bsd-3-clause | 4,892 |
# 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.
import base64
import hashlib
import os
import string
import win32api
import win32file
import win32com.client
from win32com.shell import shell, shellcon
impor... | ric2b/Vivaldi-browser | chromium/chrome/test/mini_installer/variable_expander.py | Python | bsd-3-clause | 17,079 |
<?php
namespace Drupal\Core\Render\Element;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element;
/**
* Provides an action button form element.
*
* When the button is pressed, the form will be submitted to Drupal, where it is
* validated and rebuilt. The submit handler is not invoked.
*
* Pr... | windtrader/drupalvm-d8 | web/core/lib/Drupal/Core/Render/Element/Button.php | PHP | gpl-2.0 | 3,071 |
import { Directive, EventEmitter } from '@angular/core';
import { KmlLayerManager } from './../services/managers/kml-layer-manager';
var layerId = 0;
export var SebmGoogleMapKmlLayer = (function () {
function SebmGoogleMapKmlLayer(_manager) {
this._manager = _manager;
this._addedToManager = false;
... | Oussemalaamiri/guidemeAngular | src/node_modules/angular2-google-maps/esm/core/directives/google-map-kml-layer.js | JavaScript | mit | 4,685 |
module CatsHelper
end
| metaminded/cruddler | test/dummy/app/helpers/cats_helper.rb | Ruby | mit | 22 |
<?php
return [
'Names' => [
'Aran' => 'nasta’liq',
'Armn' => 'arménio',
'Beng' => 'bengalês',
'Egyd' => 'egípcio demótico',
'Egyh' => 'egípcio hierático',
'Ethi' => 'etíope',
'Hanb' => 'han com bopomofo',
'Inds' => 'indus',
'Orya' => 'odia',
... | derrabus/symfony | src/Symfony/Component/Intl/Resources/data/scripts/pt_PT.php | PHP | mit | 493 |
<?php
namespace SMW;
use SMWQueryResult;
use Title;
/**
* Printer for embedded data.
*
* Embeds in the page output the contents of the pages in the query result set.
* Printouts are ignored: it only matters which pages were returned by the query.
* The optional "titlestyle" formatting parameter can be used to ... | owen-kellie-smith/mediawiki | wiki/extensions/SemanticMediaWiki/includes/queryprinters/EmbeddedResultPrinter.php | PHP | mit | 3,564 |
require File.dirname(__FILE__) + '/../spec_helper'
require 'mspec/guards/conflict'
describe Object, "#conflicts_with" do
before :each do
ScratchPad.clear
end
it "does not yield if Object.constants includes any of the arguments" do
Object.stub!(:constants).and_return(["SomeClass", "OtherClass"])
conf... | timfel/mspec | spec/guards/conflict_spec.rb | Ruby | mit | 1,789 |
# -*- encoding: ascii-8bit -*-
require File.expand_path('../../../spec_helper', __FILE__)
with_feature :encoding do
# TODO: add IO
describe "Encoding.compatible? String, String" do
describe "when the first's Encoding is valid US-ASCII" do
before :each do
@str = "abc".force_encoding Encoding::US... | askl56/rubyspec | core/encoding/compatible_spec.rb | Ruby | mit | 13,521 |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Mailer\Bridge\Amazon\Tests\Transport;
use PHPUnit\Fra... | localheinz/symfony | src/Symfony/Component/Mailer/Bridge/Amazon/Tests/Transport/SesApiTransportTest.php | PHP | mit | 4,500 |
function makeData() {
"use strict";
return [makeRandomData(10), makeRandomData(10)];
}
function run(svg, data, Plottable) {
"use strict";
var largeX = function(d, i){
d.x = Math.pow(10, i);
};
var bigNumbers = [];
deepCopy(data[0], bigNumbers);
bigNumbers.forEach(largeX);
var dataseri... | iobeam/plottable | quicktests/overlaying/tests/functional/formatter.js | JavaScript | mit | 3,212 |
JsonRoutes.add('post', '/' + Meteor.settings.private.stripe.webhookEndpoint, function (req, res) {
Letterpress.Services.Buy.handleEvent(req.body);
JsonRoutes.sendResult(res, 200);
}); | FleetingClouds/Letterpress | server/api/webhooks-api.js | JavaScript | mit | 187 |
'use strict';
var spawn = require('child_process').spawn;
var os = require('os');
var pathlib = require('path');
var fs = require('fs');
var net = require('net');
var crypto = require('crypto');
var which = require('which');
var pathOpenSSL;
var tempDir = process.env.PEMJS_TMPDIR || (os.tmpdir || os.tmpDir) ... | rishigb/NodeProject_IOTstyle | socketIo/VideoLiveStreamSockets/node_modules/exprestify/node_modules/pem/lib/pem.js | JavaScript | mit | 24,288 |
<?php
namespace Neos\Eel\Tests\Unit;
/*
* This file is part of the Neos.Eel 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
* source code.
*/
... | neos/eel | Tests/Unit/Helper/DateHelperTest.php | PHP | mit | 7,259 |
# Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
import argparse
import zipfile
from os import getcwd, listdir, makedirs, mkdir, rename
from os.path import isdir, isfile, join
from shutil import move, rmtree
from sys import exit as sys_exit
from sys import path
path.append("..")
from platfor... | mseroczynski/platformio | scripts/mbed_to_package.py | Python | mit | 3,667 |
<?php
namespace Concrete\Core\Attribute;
use Concrete\Core\Attribute\Key\SearchIndexer\SearchIndexerInterface;
interface AttributeKeyInterface
{
/**
* @return int
*/
public function getAttributeKeyID();
/**
* @return string
*/
public function getAttributeKeyHandle();
/**
... | jaromirdalecky/concrete5 | concrete/src/Attribute/AttributeKeyInterface.php | PHP | mit | 678 |
'''tzinfo timezone information for GMT_minus_0.'''
from pytz.tzinfo import StaticTzInfo
from pytz.tzinfo import memorized_timedelta as timedelta
class GMT_minus_0(StaticTzInfo):
'''GMT_minus_0 timezone definition. See datetime.tzinfo for details'''
zone = 'GMT_minus_0'
_utcoffset = timedelta(seconds=0)
... | newvem/pytz | pytz/zoneinfo/GMT_minus_0.py | Python | mit | 367 |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Lock\Tests\Store;
use Symfony\Component\Cache\Traits\... | mpdude/symfony | src/Symfony/Component/Lock/Tests/Store/AbstractRedisStoreTest.php | PHP | mit | 3,693 |
<?php
class PSU_Student_Finaid_Application_Factory {
public function fetch_by_pidm_aidy_seqno( $pidm, $aidy, $seqno ) {
$args = array(
'pidm' => $pidm,
'aidy' => $aidy,
'seqno' => $seqno,
);
$where = array(
'rcrapp1_pidm = :pidm',
'rcrapp1_aidy_code = :aidy',
'rcrapp1_seq_no = :seqno',
);
... | jbthibeault/plymouth-webapp | lib/PSU/Student/Finaid/Application/Factory.php | PHP | mit | 1,109 |
<head>
<meta charset=utf-8>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Recharge</title>
<!-- Load Roboto font -->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,300,700&subset=latin,latin-ext' rel='stylesheet' type='text/... | ankushrgv/tollbooth-management-system | tb_management1/laxmi/includes/head_recharge.php | PHP | mit | 1,662 |
<?php
return [
'Names' => [
'af' => 'Tiếng Afrikaans',
'af_NA' => 'Tiếng Afrikaans (Namibia)',
'af_ZA' => 'Tiếng Afrikaans (Nam Phi)',
'ak' => 'Tiếng Akan',
'ak_GH' => 'Tiếng Akan (Ghana)',
'am' => 'Tiếng Amharic',
'am_ET' => 'Tiếng Amharic (Ethiopia)',
... | derrabus/symfony | src/Symfony/Component/Intl/Resources/data/locales/vi.php | PHP | mit | 30,213 |
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Formatting;
namespace RefactoringEssentials.CSharp.CodeRefactorings
{
[ExportCodeRefactoringProvid... | mrward/RefactoringEssentials | RefactoringEssentials/CSharp/CodeRefactorings/Synced/ConvertCoalescingToConditionalExpressionCodeRefactoringProvider.cs | C# | mit | 2,856 |
// DOM elements
var $source;
var $photographer;
var $save;
var $textColor;
var $logo;
var $crop;
var $logoColor;
var $imageLoader;
var $imageLink;
var $imageLinkButton;
var $canvas;
var canvas;
var $qualityQuestions;
var $copyrightHolder;
var $dragHelp;
var $filename;
var $fileinput;
var $customFilename;
// Constants
... | mcclatchy/lunchbox | www/js/waterbug.js | JavaScript | mit | 18,520 |
/*
* Copyright (c) 2018, 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 Softwa... | md-5/jdk10 | test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetThreadState/thrstat003/libthrstat003.cpp | C++ | gpl-2.0 | 1,327 |
<?php
namespace Drupal\node\Plugin\views\row;
use Drupal\Core\Entity\EntityDisplayRepositoryInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\views\Plugin\views\row\RssPluginBase;
/**
* Plugin which performs a node_view on the resulting object
* and formats it as an RSS item.
*
* @ViewsRow... | enslyon/ensl | core/modules/node/src/Plugin/views/row/Rss.php | PHP | gpl-2.0 | 4,982 |
/* This file is part of the KDE project
Copyright (C) 2006-2007 Alfredo Beaumont Sainz <alfredo.beaumont@gmail.com>
2009 Jeremias Epperlein <jeeree@web.de>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as pu... | yxl/emscripten-calligra-mobile | plugins/formulashape/elements/TokenElement.cpp | C++ | gpl-2.0 | 12,060 |
<?php
/**
* Customer booking notification
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php do_action( 'woocommerce_email_header', $email_heading ); ?>
<?php echo wpautop( wptexturize( $notification_message ) ); ?>
<table cellspacing="0" cellpadding="6" style="width: 100%; border: 1px so... | snappermorgan/radaralley | wp-content/plugins/woocommerce-bookings/templates/emails/customer-booking-notification.php | PHP | gpl-2.0 | 2,299 |
<?php
/**
* @file
* Contains \Drupal\Console\Command\Generate\RouteSubscriber.
*/
namespace Drupal\Console\Command\Generate;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Command\Shared\... | lian-rr/Ecommerse-Drupal | vendor/drupal/console/src/Command/Generate/RouteSubscriberCommand.php | PHP | gpl-2.0 | 4,403 |
#!/usr/bin/python
#
# Copyright 2010, 2011 wkhtmltopdf authors
#
# This file is part of wkhtmltopdf.
#
# wkhtmltopdf 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 3 of the License, or
#... | anouschka42/starktheatreprod | sites/all/libraries/wkhtmltopdf-0.12.0/scripts/sourcefix.py | Python | gpl-2.0 | 4,292 |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HttpKernel\DependencyInjection;
use Symfony\Component... | nmacd85/drupal-nicoledawn | vendor/symfony/http-kernel/DependencyInjection/FragmentRendererPass.php | PHP | gpl-2.0 | 2,526 |
// license:BSD-3-Clause
// copyright-holders:Ville Linde
// TMS320C82 Master Processor core execution
#include "emu.h"
#include "tms32082.h"
#define OP_LINK() ((m_ir >> 27) & 0x1f)
#define OP_RD() ((m_ir >> 27) & 0x1f)
#define OP_RS() ((m_ir >> 22) & 0x1f)
#define OP_BASE() ((m_ir >> 22) & 0x1f)
#define OP_SIMM15() ... | johnparker007/mame | src/devices/cpu/tms32082/mp_ops.cpp | C++ | gpl-2.0 | 40,621 |
<?php
/* Copyright 2014 Sutherland Boswell (email : sutherland.boswell@gmail.com)
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 in the hope that it ... | trocvuong/izzfeed_us | wp-content/plugins/video-thumbnails/php/providers/class-youku-thumbnails.php | PHP | gpl-2.0 | 3,248 |
/*
* 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.
*
* ... | notspiff/xbmc | xbmc/cores/DllLoader/exports/util/EmuFileWrapper.cpp | C++ | gpl-2.0 | 5,290 |
/**
* @license @product.name@ JS v@product.version@ (@product.date@)
*
* Money Flow Index indicator for Highstock
*
* (c) 2010-2019 Grzegorz Blachliński
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../indicators/mfi.src.js';
| blue-eyed-devil/testCMS | externals/highcharts/es-modules/masters/indicators/mfi.src.js | JavaScript | gpl-3.0 | 258 |
// { dg-options "-std=gnu++14" }
// { dg-do compile }
// Copyright (C) 2015-2016 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Fre... | selmentdev/selment-toolchain | source/gcc-latest/libstdc++-v3/testsuite/experimental/memory/observer_ptr/requirements.cc | C++ | gpl-3.0 | 2,725 |
package nomad
import (
"fmt"
"time"
"github.com/armon/go-metrics"
"github.com/hashicorp/nomad/nomad/structs"
)
// Periodic endpoint is used for periodic job interactions
type Periodic struct {
srv *Server
}
// Force is used to force a new instance of a periodic job
func (p *Periodic) Force(args *structs.Period... | mkuzmin/terraform | vendor/github.com/hashicorp/nomad/nomad/periodic_endpoint.go | GO | mpl-2.0 | 1,256 |
<?php
/**
*@package plugins.inletArmada
*/
class InletArmadaPlugin extends KalturaPlugin implements IKalturaObjectLoader, IKalturaEnumerator
{
const PLUGIN_NAME = 'inletArmada';
public static function getPluginName()
{
return self::PLUGIN_NAME;
}
/**
* @param string $baseClass
* @param string $enumValue... | ratliff/server | plugins/transcoding/inlet_armada/InletArmadaPlugin.php | PHP | agpl-3.0 | 2,348 |
require 'spec_helper'
describe Spree::Admin::OverviewController do
include AuthenticationWorkflow
context "loading overview" do
let(:user) { create_enterprise_user(enterprise_limit: 2) }
before do
controller.stub spree_current_user: user
end
context "when user owns only one enterprise" do
... | levent/openfoodnetwork | spec/controllers/spree/admin/overview_controller_spec.rb | Ruby | agpl-3.0 | 2,772 |
<?php
return array(
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simpl... | ixmid/snipe-it | resources/lang/fil/pagination.php | PHP | agpl-3.0 | 547 |
////////////////////////////////////////////////////////////////////////////////
// Test case file for checkstyle.
// Created: 2001
////////////////////////////////////////////////////////////////////////////////
package com . puppycrawl
.tools.
checkstyle.checks.whitespace.nowhitespacebefore;
/**
* C... | AkshitaKukreja30/checkstyle | src/test/resources/com/puppycrawl/tools/checkstyle/checks/whitespace/nowhitespacebefore/InputNoWhitespaceBeforeDefault.java | Java | lgpl-2.1 | 5,995 |
/*
* SonarQube, open source software quality management tool.
* Copyright (C) 2008-2014 SonarSource
* mailto:contact AT sonarsource DOT com
*
* SonarQube 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 Found... | abbeyj/sonarqube | server/sonar-server/src/main/java/org/sonar/server/metric/ws/MetricsWs.java | Java | lgpl-3.0 | 1,515 |
require_dependency 'user_query'
class UsersController < ApplicationController
def index
if params[:followed_by] || params[:followers_of]
if params[:followed_by]
users = User.find(params[:followed_by]).following
elsif params[:followers_of]
users = User.find(params[:followers_of]).follo... | jcoady9/hummingbird | app/controllers/users_controller.rb | Ruby | apache-2.0 | 5,020 |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.apa... | zhencui/azure-powershell | src/ResourceManager/Insights/Commands.Insights/OutputClasses/PSLocalizableString.cs | C# | apache-2.0 | 1,909 |
//>>built
define("dgrid/extensions/nls/zh-cn/columnHider",{popupLabel:"\u663e\u793a\u6216\u9690\u85cf\u5217"}); | aconyteds/Esri-Ozone-Map-Widget | vendor/js/esri/arcgis_js_api/library/3.12/3.12compact/dgrid/extensions/nls/zh-cn/columnHider.js | JavaScript | apache-2.0 | 111 |