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 |
|---|---|---|---|---|---|
/*
* 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 ... | ZhenyaM/veraPDF-pdfbox | pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/filespecification/PDFileSpecification.java | Java | apache-2.0 | 2,502 |
/*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | asedunov/intellij-community | xml/relaxng/src/org/intellij/plugins/relaxNG/compact/RncCompletionContributor.java | Java | apache-2.0 | 4,782 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2016 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | nicoben/pentaho-kettle | ui/src/org/pentaho/di/ui/trans/steps/zipfile/ZipFileDialog.java | Java | apache-2.0 | 22,737 |
/**
* 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... | jmandawg/camel | camel-core/src/main/java/org/apache/camel/model/Constants.java | Java | apache-2.0 | 1,441 |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/services/account_budget_service.proto
package services // import "google.golang.org/genproto/googleapis/ads/googleads/v1/services"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import resources "g... | pweil-/origin | vendor/google.golang.org/genproto/googleapis/ads/googleads/v1/services/account_budget_service.pb.go | GO | apache-2.0 | 8,224 |
#include <Eigen/Sparse>
#include <vector>
#include <iostream>
typedef Eigen::SparseMatrix<double> SpMat; // declares a column-major sparse matrix type of double
typedef Eigen::Triplet<double> T;
void buildProblem(std::vector<T>& coefficients, Eigen::VectorXd& b, int n);
void saveAsBitmap(const Eigen::VectorXd& x, int... | OSVR/OSVR-Core | vendor/eigen/doc/special_examples/Tutorial_sparse_example.cpp | C++ | apache-2.0 | 1,183 |
#include "drape/pointers.hpp"
#include "base/logging.hpp"
DpPointerTracker & DpPointerTracker::Instance()
{
static DpPointerTracker pointersTracker;
return pointersTracker;
}
DpPointerTracker::~DpPointerTracker()
{
ASSERT(m_alivePointers.empty(), ());
}
void DpPointerTracker::RefPtrNamed(void * refPtr, std::st... | alexzatsepin/omim | drape/pointers.cpp | C++ | apache-2.0 | 1,448 |
package snowballstem
// to regenerate these commands, run
// go run gengen.go /path/to/snowball/algorithms/directory
//go:generate $SNOWBALL/snowball $SNOWBALL/algorithms/arabic/stem_Unicode.sbl -go -o arabic/arabic_stemmer -gop arabic -gor github.com/blevesearch/snowballstem
//go:generate gofmt -s -w arabic/arabic_s... | heroiclabs/nakama | vendor/github.com/blevesearch/snowballstem/gen.go | GO | apache-2.0 | 4,281 |
/*
* Copyright 2012 MyBatis.org.
*
* 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... | shurun19851206/mybaties | src/main/java/org/apache/ibatis/reflection/SystemMetaObject.java | Java | apache-2.0 | 1,662 |
/*
* 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... | Asimov4/elasticsearch | src/test/java/org/elasticsearch/common/geo/GeoJSONShapeParserTests.java | Java | apache-2.0 | 47,639 |
class Clfft < Formula
desc "FFT functions written in OpenCL"
homepage "https://github.com/clMathLibraries/clFFT"
url "https://github.com/clMathLibraries/clFFT/archive/v2.12.2.tar.gz"
sha256 "e7348c146ad48c6a3e6997b7702202ad3ee3b5df99edf7ef00bbacc21e897b12"
bottle do
cellar :any
sha256 "1e3aca16a694b7... | robohack/homebrew-core | Formula/clfft.rb | Ruby | bsd-2-clause | 1,197 |
/**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Contains utility methods to extract text content from HTML.
* @supported IE 10+, Chrome 26+, Firefox 22+, Safari 7.1+, Opera 15+
*/
goog.provide('goog.html.textExtractor');
goog.require('goog.... | scheib/chromium | third_party/google-closure-library/closure/goog/html/textextractor.js | JavaScript | bsd-3-clause | 4,176 |
void AddTaskGammaDeltaPID(Int_t gFilterBit = 768,Double_t fPtMin=0.2,Double_t fPtMax=2.0,Double_t fEtaMin=-0.8, Double_t fEtaMax=0.8,Double_t fChi2max=4.0,Int_t gNclustTPC=70, Int_t fparticle=0,Double_t nSigTPC = 3.0, Double_t nSigTOF = 3.0, Bool_t bSkipPileUp=kFALSE, TString sCentEstimator="V0M", Float_t fVzMin = -10... | nschmidtALICE/AliPhysics | PWGCF/FLOW/macros/AddTaskGammaDeltaPID.C | C++ | bsd-3-clause | 7,275 |
/*
Copyright 2017 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 agreedto in writing, software
dist... | NazarethCollege/heweb2017-devops-presentation | sites/tweetheat/src/backend/vendor/src/github.com/youtube/vitess/go/mysql/gtid_test.go | GO | mit | 5,366 |
define({
root: ({
_widgetLabel: "Demo",
label1: "Ich bin ein Demo-Widget.",
label2: "Dies ist konfigurierbar."
}),
"ar": 0,
"cs": 0,
"da": 0,
"de": 0,
"el": 0,
"es": 0,
"et": 0,
"fi": 0,
"fr": 0,
"he": 0,
"it": 0,
"ja": 0,
"ko": 0,
"lt": 0,
"lv": 0,
"nb": 0,
"nl": 0,
... | cmccullough2/cmv-wab-widgets | wab/2.3/widgets/samplewidgets/Demo/nls/de/strings.js | JavaScript | mit | 443 |
//
// Device.cs
//
// Author:
// Alex Launi <alex.launi@gmail.com>
//
// Copyright (c) 2010 Alex Launi
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including w... | mono-soc-2011/banshee | src/Backends/Banshee.Gio/Banshee.Hardware.Gio/LowLevel/RawDevice.cs | C# | mit | 4,171 |
#if NETFX_CORE && !UNITY_EDITOR
//using Thread = MarkerMetro.Unity.WinLegacy.Threading.Thread;
//using ParameterizedThreadStart = MarkerMetro.Unity.WinLegacy.Threading.ParameterizedThreadStart;
#endif
using UnityEngine;
using System.Collections;
using System.Threading;
namespace Pathfinding.Threading {
} | MartinHartmannJensen/Unity2Dshooter | topdown shooter/Assets/AstarPathfindingProject/Utilities/AstarParallel.cs | C# | mit | 307 |
package org.knowm.xchange.lakebtc.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
/** User: cristian.lucaci Date: 10/3/2014 Time: 5:31 PM */
public class LakeBTCResponse<V> {
private final String id;
private final V result;
/**
* Constructor
*
* @param id
* @param result
*/
public ... | stachon/XChange | xchange-lakebtc/src/main/java/org/knowm/xchange/lakebtc/dto/LakeBTCResponse.java | Java | mit | 669 |
package org.knowm.xchange.bitcoinaverage.dto.marketdata;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
/** Data object repre... | stachon/XChange | xchange-bitcoinaverage/src/main/java/org/knowm/xchange/bitcoinaverage/dto/marketdata/BitcoinAverageTickers.java | Java | mit | 1,315 |
import { SQLValue } from "./prepSQLParams";
export interface SQLInsertParams {
insertColumns: string;
insertValues: string;
insertFields: Record<string, SQLValue>;
}
declare function prepSQLInsertParams<T extends Record<string, SQLValue>>(
params: T,
columns: Array<{ key: keyof T }>,
): SQLInsertP... | markogresak/DefinitelyTyped | types/lesgo/utils/prepSQLInsertParams.d.ts | TypeScript | mit | 364 |
package parser
import (
"regexp"
"strings"
)
var selfClosingTags = [...]string{
"meta",
"img",
"link",
"input",
"source",
"area",
"base",
"col",
"br",
"hr",
}
var doctypes = map[string]string{
"5": `<!DOCTYPE html>`,
"default": `<!DOCTYPE html>`,
"xml": `<?xml version="1.0" en... | grvcoelho/webhulk | vendor/gopkg.in/kataras/iris.v8/vendor/github.com/eknkc/amber/parser/nodes.go | GO | mit | 5,199 |
// { dg-do assemble }
// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 22 Apr 1999 <nathan@acm.org>
// derived from a bug report by <rch@larissa.sd.bi.ruhr-uni-bochum.de>
// http://gcc.gnu.org/ml/gcc-bugs/1999-04n/msg00631.html
// the code is wrong, but we fell o... | Gurgel100/gcc | gcc/testsuite/g++.old-deja/g++.other/decl5.C | C++ | gpl-2.0 | 2,264 |
/**
*
*/
package org.eevolution.model;
import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.util.CCache;
/**
* HR Period
* @author Teo Sarca, www.arhipac.ro
*/
public class MHRPeriod extends X_HR_Period
{
/**
*
*/
private static final long serialVersionUID = -7787966459848200539L;... | erpcya/adempierePOS | org.eevolution.hr_and_payroll/src/main/java/base/org/eevolution/model/MHRPeriod.java | Java | gpl-2.0 | 1,057 |
<?php
namespace GuzzleHttp;
use GuzzleHttp\Event\CompleteEvent;
use GuzzleHttp\Event\ErrorEvent;
use GuzzleHttp\Event\RequestEvents;
use GuzzleHttp\Message\ResponseInterface;
use GuzzleHttp\UriTemplate;
/**
* Send a custom request
*
* @param string $method HTTP request method
* @param string $url URL of the... | epoch365/rito-api-challenge | vendor/guzzlehttp/guzzle/src/functions.php | PHP | gpl-2.0 | 8,331 |
#
# Copyright 2013 Tim O'Shea
#
# This file is part of PyBOMBS
#
# PyBOMBS 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 3, or (at your option)
# any later version.
#
# PyBOMBS is distributed ... | scalable-networks/ext | pybombs/mod_pybombs/__init__.py | Python | gpl-2.0 | 852 |
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | PHP version 4.0 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997, 1998, 1999, ... | jenarroyo/moodle-repo | lib/pear/HTML/QuickForm/image.php | PHP | gpl-3.0 | 3,740 |
#ifndef ___SUT_TRACE_H___
#define ___SUT_TRACE_H___
/******************************************************************************/
/* */
/* X r d S u t T r a c e . h h */
/* ... | bbockelm/xrootd_old_git | src/XrdSut/XrdSutTrace.hh | C++ | gpl-3.0 | 2,936 |
#include <AP_HAL/AP_HAL.h>
#include <AP_Common/AP_Common.h>
#include <AP_Math/AP_Math.h>
#include <AP_Notify/AP_Notify.h>
#include "AP_BattMonitor.h"
#include "AP_BattMonitor_SMBus_SUI.h"
extern const AP_HAL::HAL& hal;
#define REG_CELL_VOLTAGE 0x28
#define REG_CURRENT 0x2a
// maximum number of cel... | squilter/ardupilot | libraries/AP_BattMonitor/AP_BattMonitor_SMBus_SUI.cpp | C++ | gpl-3.0 | 4,883 |
/**********************************************************************\
RageLib - Models
Copyright (C) 2009 Arushan/Aru <oneforaru at gmail.com>
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 Fou... | St0rmDev/gtaivtools | RageLib/Models/Data/MaterialParamVector4.cs | C# | gpl-3.0 | 1,264 |
# Copyright (c) 2009 Mitch Garnaat http://garnaat.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, m... | apavlo/h-store | third_party/python/boto/vpc/__init__.py | Python | gpl-3.0 | 17,897 |
/*!
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
(function () {
angular.module('piwikApp.filter').filter('htmldecode', htmldecode);
htmldecode.$inject = ['piwik'];
/**
* Be aware that this filter can cau... | befair/soulShape | wp/soulshape.earth/piwik/plugins/CoreHome/angularjs/common/filters/htmldecode.js | JavaScript | agpl-3.0 | 686 |
"""
Management command to resend all lti scores for the requested course.
"""
import textwrap
from django.core.management import BaseCommand
from opaque_keys.edx.keys import CourseKey
from lti_provider.models import GradedAssignment
from lti_provider import tasks
class Command(BaseCommand):
"""
Send all l... | caesar2164/edx-platform | lms/djangoapps/lti_provider/management/commands/resend_lti_scores.py | Python | agpl-3.0 | 1,857 |
#!/usr/bin/env python
#***************************************************************************
#* *
#* Copyright (c) 2009 Yorik van Havre <yorik@uncreated.net> *
#* ... | kkoksvik/FreeCAD | src/Tools/offlinedoc/buildqhelp.py | Python | lgpl-2.1 | 8,832 |
/*
* Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must... | RLovelett/qt | src/3rdparty/webkit/WebCore/inspector/front-end/ElementsPanel.js | JavaScript | lgpl-2.1 | 45,561 |
/*
** 2014 December 16
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
*/
package info.at... | catinred2/disunity | disunity-cli/src/main/java/info/ata4/disunity/cli/command/BundleBuildCommand.java | Java | unlicense | 1,357 |
/*
* 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/main/java/org/elasticsearch/client/slm/SnapshotLifecycleStats.java | Java | apache-2.0 | 11,928 |
package org.osmdroid.samplefragments;
public final class SampleFactory {
private final BaseSampleFragment[] mSamples;
private static SampleFactory _instance;
public static SampleFactory getInstance() {
if (_instance == null) {
_instance = new SampleFactory();
}
return _instance;
}
private SampleFacto... | DT9/osmdroid | OpenStreetMapViewer/src/org/osmdroid/samplefragments/SampleFactory.java | Java | apache-2.0 | 642 |
/**
* 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... | robzor92/hops | hadoop-tools/hadoop-extras/src/main/java/org/apache/hadoop/tools/DistCpV1.java | Java | apache-2.0 | 63,413 |
/**
* 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"... | fwassmer/aries | spi-fly/spi-fly-examples/spi-fly-example-provider3-bundle/src/main/java/org/apache/aries/spifly/mysvc/impl3/SPIProviderImpl.java | Java | apache-2.0 | 1,055 |
// Copyright 2018 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
(function() {
function foo(p) { return p.catch(); }
%PrepareFunctionForOptimization(foo);
foo(Promise.resolve(1)... | zero-rp/miniblink49 | v8_7_5/test/mjsunit/compiler/promise-prototype-catch.js | JavaScript | apache-2.0 | 872 |
/*
Copyright 2015 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, ... | ikropotov/kops | vendor/k8s.io/kubernetes/pkg/controller/namespace/namespace_controller_utils.go | GO | apache-2.0 | 20,246 |
/*
* 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 ... | jeffmart/incubator-trafficcontrol | traffic_portal/app/src/modules/public/login/LoginController.js | JavaScript | apache-2.0 | 1,916 |
import { j as _inherits, k as _createSuper, c as _classCallCheck, T as Type, b as _createClass, R as Range, N as Node, g as YAMLSemanticError, l as _get, m as _getPrototypeOf, Y as YAMLSyntaxError, C as Char, e as _defineProperty, P as PlainValue } from './PlainValue-b8036b75.js';
var BlankLine = /*#__PURE__*/function... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/yaml/browser/dist/parse-cst.js | JavaScript | apache-2.0 | 54,633 |
//-----------------------------------------------------------------------
// <copyright file="AkkaSpecExtensions.cs" company="Akka.NET Project">
// Copyright (C) 2009-2016 Lightbend Inc. <http://www.lightbend.com>
// Copyright (C) 2013-2016 Akka.NET project <https://github.com/akkadotnet/akka.net>
// </copyrig... | nanderto/akka.net | src/core/Akka.Tests.Shared.Internals/AkkaSpecExtensions.cs | C# | apache-2.0 | 4,207 |
//
// Copyright (c) Microsoft and contributors. 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... | nemanja88/azure-sdk-for-net | src/ResourceManagement/ApiManagement/ApiManagementManagement/Generated/ResourceProviderOperationsExtensions.cs | C# | apache-2.0 | 48,468 |
newparam(:destinationtype) do
include EasyType
desc 'The destination type of a jms resource (queue or topic)'
newvalues(:queue, :topic)
to_translate_to_resource do | raw_resource |
raw_resource['destinationtype']
end
end
| rcompos/biemond-orawls | orawls/lib/puppet/type/wls_jms_security_policy/destinationtype.rb | Ruby | apache-2.0 | 239 |
// Copyright The OpenTelemetry 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 agre... | containerd/containerd | vendor/go.opentelemetry.io/otel/trace.go | GO | apache-2.0 | 1,617 |
package org.apache.lucene.benchmark.byTask.tasks;
/*
* 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 Apach... | smartan/lucene | src/main/java/org/apache/lucene/benchmark/byTask/tasks/CommitIndexTask.java | Java | apache-2.0 | 1,724 |
interface B { default void foo() {} }
interface C { default void foo() {} }
class <error descr="D inherits unrelated defaults for foo() from types B and C">D</error> implements B, C {}
| android-ia/platform_tools_idea | java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/interfaceMethods/InheritUnrelatedDefaults.java | Java | apache-2.0 | 185 |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | svn2github/zend_framework | library/Zend/Pdf/Color/Html.php | PHP | bsd-3-clause | 16,236 |
#include "main.h"
#include "File.h"
#include "Geometry.h"
namespace ImageStack {
namespace FileTGA {
/*
typedef struct {
unsigned char identsize; // size of ID field that follows 18 byte header (0 usually)
unsigned char colormaptype; // type of colour map 0=none, 1=has palette
unsigned c... | ricoyoung345/imagestack | src/FileTGA.cpp | C++ | bsd-3-clause | 8,011 |
/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... | ghisvail/arrayfire | src/api/cpp/features.cpp | C++ | bsd-3-clause | 2,405 |
package org.javasimon.jdbcx4;
import java.sql.SQLException;
import javax.sql.StatementEventListener;
import javax.sql.XAConnection;
import javax.transaction.xa.XAResource;
/**
* Simon implementation of <code>XAConnection</code>, needed for
* Simon XADataSource implementation.
* <p/>
* All method invokes its real ... | karouani/javasimon | jdbc41/src/main/java/org/javasimon/jdbcx4/SimonXAConnection.java | Java | bsd-3-clause | 1,312 |
// 2005-04-26 Paolo Carlini <pcarlini@suse.de>
// Copyright (C) 2005 Free Software Foundation
//
// 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
// Free Software Found... | shaotuanchen/sunflower_exp | tools/source/gcc-4.2.4/libstdc++-v3/testsuite/22_locale/num_get/get/wchar_t/16.cc | C++ | bsd-3-clause | 5,193 |
import { Component, Input } from '@angular/core';
import { AllReadyEvent } from "../../pages/events/events";
import { NavController } from "ionic-angular";
import { EventDetailsPage } from "../../pages/eventdetails/eventdetails";
import { DateFilterPipe } from "../../pipes/datefilter/datefilter";
@Component({
select... | stevejgordon/allReady | AllReadyApp/Mobile-App/src/components/event-card/event-card.ts | TypeScript | mit | 897 |
version https://git-lfs.github.com/spec/v1
oid sha256:d57f539203e9219f4c43532d12ca16d51ce822bf08d658cabd06aa84fc61dda2
size 661
| yogeshsaroya/new-cdnjs | ajax/libs/dojo/1.5.4/cldr/nls/sv/number.js | JavaScript | mit | 128 |
// CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wit... | Microsoft/CodeContracts | Microsoft.Research/Contracts/MsCorlib/Sources/System.Runtime.Remoting.Channels.BaseChannelSinkWithProperties.cs | C# | mit | 2,271 |
using System;
using System.Diagnostics;
using System.Net;
using System.Web;
using Umbraco.Core;
using Umbraco.Core.Logging;
namespace umbraco.presentation
{
/// <summary>
/// Makes a call to /umbraco/ping.aspx which is used to keep the web app alive
/// </summary>
public class keepAliveService
{
... | Shazwazza/Umbraco-CMS | src/Umbraco.Web/umbraco.presentation/keepAliveService.cs | C# | mit | 909 |
// CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wit... | Microsoft/CodeContracts | Microsoft.Research/Contracts/System/Sources/System.Net.NetworkInformation.IPv4InterfaceProperties.cs | C# | mit | 2,729 |
'use strict';
var Promise = require('../../lib/ext/promise');
var conf = require('ember-cli-internal-test-helpers/lib/helpers/conf');
var ember = require('../helpers/ember');
var fs = require('fs-extra');
var outputFile = Promise.denodeify(fs.outputFile);
var path ... | lazybensch/ember-cli | tests/acceptance/generate-test.js | JavaScript | mit | 16,507 |
import Ember from 'ember';
import { module, test } from 'qunit';
import Confirmation from 'ember-validations/validators/local/confirmation';
import Mixin from 'ember-validations/mixin';
import buildContainer from '../../../helpers/build-container';
var model, Model, options, validator;
var get = Ember.get;
var set = E... | meszike123/ember-validations | tests/unit/validators/local/confirmation-test.js | JavaScript | mit | 2,746 |
<?php
namespace Oro\Bundle\IntegrationBundle\Exception;
interface IntegrationException
{
}
| MarkThink/OROCRM | vendor/oro/platform/src/Oro/Bundle/IntegrationBundle/Exception/IntegrationException.php | PHP | mit | 93 |
<?php
namespace Sirius\Validation\Rule;
class RequiredWhen extends Required
{
const OPTION_ITEM = 'item';
const OPTION_RULE = 'rule';
const OPTION_RULE_OPTIONS = 'rule_options';
protected static $defaultMessageTemplate = 'This field is required';
public function getItemRule()
{
/* @va... | frisbeesport/frisbeesport.nl | vendor/siriusphp/validation/src/Rule/RequiredWhen.php | PHP | mit | 2,149 |
'use strict';
const existsSync = require('exists-sync');
const path = require('path');
const LiveReloadServer = require('./server/livereload-server');
const ExpressServer = require('./server/express-server');
const RSVP = require('rsvp');
const Task = require('../models/task');
const Watcher = require('../models/watch... | gabz75/ember-cli-deploy-redis-publish | node_modules/ember-cli/lib/tasks/serve.js | JavaScript | mit | 2,076 |
<?php
/**
* @package Joomla.Platform
* @subpackage String
*
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die;
use Joomla\Uri\UriHelper;
JLoader::register('id... | demis-palma/joomla-cms | libraries/joomla/string/punycode.php | PHP | gpl-2.0 | 5,195 |
<?php
/**
* File containing the URLAliasCreate parser class.
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*
* @version //autogentag//
*/
namespace eZ\Publish\Core\REST\Server\Input\Pars... | flovntp/BikeTutorialWebsite | vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/REST/Server/Input/Parser/URLAliasCreate.php | PHP | gpl-2.0 | 2,782 |
__version_info__ = (0, 6, 1)
__version__ = '.'.join(map(str, __version_info__))
| NeuPhysics/NumSolTUn | docs/_themes/alabaster/_version.py | Python | gpl-2.0 | 80 |
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Form\Form;
extract($displayData);
/**
* Layout vari... | brianteeman/joomla-cms | layouts/joomla/form/field/subform/default.php | PHP | gpl-2.0 | 1,390 |
class AddIncludeTl0InDigestsToUserOptions < ActiveRecord::Migration[4.2]
def change
add_column :user_options, :include_tl0_in_digests, :boolean, default: false
end
end
| gfvcastro/discourse | db/migrate/20160317201955_add_include_tl0_in_digests_to_user_options.rb | Ruby | gpl-2.0 | 176 |
<?php
/**
* @file
* Contains \Drupal\Console\Command\Generate\PluginTypeYamlCommand.
*/
namespace Drupal\Console\Command\Generate;
use Drupal\Console\Generator\PluginTypeYamlGenerator;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Consol... | sgrichards/BrightonDrupal | vendor/drupal/console/src/Command/Generate/PluginTypeYamlCommand.php | PHP | gpl-2.0 | 3,969 |
<?php
use Action_Scheduler\WP_CLI\Migration_Command;
use Action_Scheduler\Migration\Controller;
/**
* Class ActionScheduler
* @codeCoverageIgnore
*/
abstract class ActionScheduler {
private static $plugin_file = '';
/** @var ActionScheduler_ActionFactory */
private static $factory = NULL;
/** @var bool */
pri... | rasken2003/fuga-it-business | wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler.php | PHP | gpl-2.0 | 8,752 |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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 3 of the License, or
// (at your option) any later version.
//
// Moodle ... | evltuma/moodle | mod/quiz/report/overview/report.php | PHP | gpl-3.0 | 28,104 |
import { ElementRef, EventEmitter, NgZone, Renderer } from '@angular/core';
import { Config } from '../../config/config';
import { Ion } from '../ion';
import { Platform } from '../../platform/platform';
import { SlideContainer, SlideElement, SlideTouchEvents, SlideTouches, SlideZoom } from './swiper/swiper-interfaces'... | chitranshi21/home_service_ionic | node_modules/ionic-angular/umd/components/slides/slides.d.ts | TypeScript | gpl-3.0 | 18,338 |
<?php
/**
* interface/therapy_groups/therapy_groups_controllers/participants_controller.php contains the participants controller for therapy groups.
*
* This is the controller for the groups' participant view.
*
* Copyright (C) 2016 Shachar Zilbershlag <shaharzi@matrix.co.il>
* Copyright (C) 2016 Amiel Elboim <a... | vaibhavgupta3110/openemr | interface/therapy_groups/therapy_groups_controllers/participants_controller.php | PHP | gpl-3.0 | 5,277 |
// { dg-do compile }
// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
// Copyright (C) 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 publish... | selmentdev/selment-toolchain | source/gcc-latest/libstdc++-v3/testsuite/special_functions/11_ellint_1/compile_2.cc | C++ | gpl-3.0 | 1,160 |
/**
* Copyright © 2002 Instituto Superior Técnico
*
* This file is part of FenixEdu Academic.
*
* FenixEdu Academic 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... | jcarvalho/fenixedu-academic | src/main/java/org/fenixedu/academic/domain/reports/GraduationReportFile.java | Java | lgpl-3.0 | 5,943 |
/**
*
*/
package org.sword.wechat4j;
import javax.servlet.http.HttpServletRequest;
/**
* @author ChengNing
* @date 2014年12月7日
*/
public class Wechat extends WechatSupport{
public Wechat(HttpServletRequest request) {
super(request);
}
@Override
protected void onText() {
// TODO Auto-generated method ... | liwanwei/wechat4j | test/org/sword/wechat4j/Wechat.java | Java | apache-2.0 | 2,327 |
/*
Copyright (c) 2011 Eli Grey, http://eligrey.com
This file is based on:
https://github.com/eligrey/FileSaver.js/blob/master/FileSaver.js ,
licensed under X11/MIT.
See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md
This file is part of SwitchySharp.
SwitchySharp is free software: you can redist... | FrankLiu/nscrapy | plugin/SwitchySharp/assets/libs/FileSaver.js | JavaScript | apache-2.0 | 9,450 |
/*
* 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 a... | droolsjbpm/drools | kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TRelation.java | Java | apache-2.0 | 1,338 |
// +build linux
package main
import (
"os"
"path/filepath"
"strings"
"syscall"
"github.com/docker/docker/integration-cli/checker"
"github.com/docker/docker/pkg/mount"
icmd "github.com/docker/docker/pkg/testutil/cmd"
"github.com/go-check/check"
)
// TestDaemonRestartWithPluginEnabled tests state restore for ... | jgsqware/clairctl | vendor/github.com/docker/docker/integration-cli/docker_cli_daemon_plugins_test.go | GO | apache-2.0 | 8,839 |
from lib.mmonit import MmonitBaseAction
class MmonitGetUptimeHost(MmonitBaseAction):
def run(self, host_id, uptime_range=0, datefrom=0, dateto=0):
self.login()
if datefrom != 0 and uptime_range != 12:
raise Exception("If datefrom is set, range should be 12")
data = {"id": host... | meirwah/st2contrib | packs/mmonit/actions/get_uptime_host.py | Python | apache-2.0 | 604 |
/**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | ASU-Capstone/uPortal-Forked | uportal-war/src/main/java/org/jasig/portal/rest/SubscribableTabsRESTController.java | Java | apache-2.0 | 8,245 |
// Copyright 2000-2020 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.util.text;
import com.intellij.openapi.util.text.CharSequenceWithStringHash;
import com.intellij.openapi.util.text.Strings;
import org.jetbrains.annotations.... | siosio/intellij-community | platform/util/strings/src/com/intellij/util/text/CharArrayCharSequence.java | Java | apache-2.0 | 2,636 |
module Api
class TenantsController < BaseController
INVALID_TENANT_ATTRS = %w(id href ancestry).freeze
include Subcollections::Tags
include Subcollections::Quotas
def create_resource(_type, _id, data)
bad_attrs = data_includes_invalid_attrs(data)
if bad_attrs.present?
raise BadRe... | fbladilo/manageiq | app/controllers/api/tenants_controller.rb | Ruby | apache-2.0 | 1,268 |
// Copyright 2000-2020 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.source.xml;
import com.intellij.lang.html.HTMLLanguage;
import com.intellij.lang.xhtml.XHTMLLanguage;
import com.intellij.openapi.fileTypes.FileType... | smmribeiro/intellij-community | xml/xml-psi-impl/src/com/intellij/psi/impl/source/xml/XmlFileImpl.java | Java | apache-2.0 | 3,408 |
/*
* Copyright 2016 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... | romartin/kie-wb-common | kie-wb-common-stunner/kie-wb-common-stunner-core/kie-wb-common-stunner-processors/src/main/java/org/kie/workbench/common/stunner/core/processors/ProcessingEntity.java | Java | apache-2.0 | 1,066 |
// Copyright 2000-2018 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.history.integration;
import com.intellij.history.LocalHistoryAction;
import com.intellij.openapi.util.NlsContexts;
public class LocalHistoryActionImpl impl... | siosio/intellij-community | platform/lvcs-impl/src/com/intellij/history/integration/LocalHistoryActionImpl.java | Java | apache-2.0 | 743 |
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | tubemogul/druid | server/src/test/java/io/druid/query/lookup/LookupIntrospectionResourceImplTest.java | Java | apache-2.0 | 4,150 |
/*
* Copyright 2000-2015 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... | jwren/intellij-community | python/python-psi-impl/src/com/jetbrains/python/documentation/docstrings/DocStringUpdater.java | Java | apache-2.0 | 5,669 |
// Copyright 2000-2020 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.tasks.jira.jql;
import com.intellij.lang.ASTNode;
import com.intellij.lang.ParserDefinition;
import com.intellij.lang.PsiParser;
import com.intellij.lexer.Le... | smmribeiro/intellij-community | plugins/tasks/tasks-core/jira/src/com/intellij/tasks/jira/jql/JqlParserDefinition.java | Java | apache-2.0 | 1,904 |
// Copyright 2000-2017 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.scope;
import com.intellij.openapi.util.Key;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.HashM... | siosio/intellij-community | platform/core-impl/src/com/intellij/psi/scope/ProcessorWithHints.java | Java | apache-2.0 | 758 |
// Copyright 2000-2020 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 org.jetbrains.jps.devkit.threadingModelHelper;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.incremental.BuilderService;
import org.jetbrains.jps.inc... | jwren/intellij-community | plugins/devkit/jps-plugin/src/org/jetbrains/jps/devkit/threadingModelHelper/TMHBuilderService.java | Java | apache-2.0 | 632 |
#!/usr/bin/env python
#
# Copyright (c) 2016 Intel Corporation.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of works must retain the original copyright notice, this
# list of conditions and t... | ibelem/crosswalk-test-suite | apptools/apptools-manifest-tests/comm.py | Python | bsd-3-clause | 8,359 |
/**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.webui.jsptag;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.t... | jamie-dryad/dryad-repo | dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/SidebarTag.java | Java | bsd-3-clause | 1,080 |
<?php
/**
* Base static class for performing query and update operations on the 'plugin_data' table.
*
*
*
* @package propel.generator.datawrapper.om
*/
abstract class BasePluginDataPeer
{
/** the default database name for this class */
const DATABASE_NAME = 'datawrapper';
/** the table name for t... | kendrick-k/datawrapper | lib/core/build/classes/datawrapper/om/BasePluginDataPeer.php | PHP | mit | 40,214 |
<?php
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
use App\Models\Role, App\Models\User, App\Models\Contact, App\Models\Post, App\Models\Tag, App\Models\PostTag, App\Models\Comment;
use App\Services\LoremIpsumGenerator;
class DatabaseSeeder extends Seeder {
/**
* Run the database seeds.... | sdlyhu/laravel5-example | database/seeds/DatabaseSeeder.php | PHP | mit | 9,256 |
(function(__global) {
var isWorker = typeof window == 'undefined' && typeof self != 'undefined' && typeof importScripts != 'undefined';
var isBrowser = typeof window != 'undefined' && typeof document != 'undefined';
var isWindows = typeof process != 'undefined' && typeof process.platform != 'undefined' && !!proc... | ApprecieOpenSource/Apprecie | public/a/node_modules/es6-module-loader/src/wrapper-start.js | JavaScript | mit | 2,575 |
import { Animation } from '../animations/animation';
import { isPresent } from '../util/util';
import { PageTransition } from './page-transition';
const /** @type {?} */ DURATION = 500;
const /** @type {?} */ EASING = 'cubic-bezier(0.36,0.66,0.04,1)';
const /** @type {?} */ OPACITY = 'opacity';
const /** @type {?} */ T... | ortroyaner/GithubFinder | node_modules/ionic-angular/es2015/transitions/transition-ios.js | JavaScript | mit | 8,705 |
// <copyright file="SparseMatrix.cs" company="Math.NET">
// Math.NET Numerics, part of the Math.NET Project
// http://numerics.mathdotnet.com
// http://github.com/mathnet/mathnet-numerics
// http://mathnetnumerics.codeplex.com
//
// Copyright (c) 2009-2013 Math.NET
//
// Permission is hereby granted, free of charge, t... | grovesNL/mathnet-numerics | src/Numerics/LinearAlgebra/Double/SparseMatrix.cs | C# | mit | 60,299 |
using System;
using System.Reflection;
class Program {
static void PrintFieldValues (FieldInfo[] fields, object obj) {
foreach (FieldInfo field in fields) {
// not printing field names because automatic property backing field names differ between .NET and JSIL
Console.WriteLine(fie... | TukekeSoft/JSIL | Tests/ReflectionTestCases/FieldGetValue.cs | C# | mit | 2,066 |