id stringlengths 64 64 | content stringlengths 500 100k | language stringclasses 29
values | path stringlengths 4 333 | repo stringlengths 5 116 | license stringclasses 15
values | size int64 500 100k | lines int64 26 8.06k | source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|
316bb837be0785043a6afc83f14d007d125d93ec12a6415009a7d2ea1e2b5045 | /*!
* # Range slider for Semantic UI.
*
*/
;(function ( $, window, document, undefined ) {
"use strict";
$.fn.range = function(parameters) {
var
$allModules = $(this),
offset = 10,
query = arguments[0],
methodInvoked = (typeof query == 'string'),
queryArguments = [].sl... | JavaScript | src/main/resources/static/plugins/uiRange/range.js | ITBCat/itbcatBoot | gpl-3.0 | 6,321 | 234 | codeparrot/github-code |
c621ae5b74f7a034df5c68a0144aaebed273c5a0343d1be7ef337192d2df4e2b | package org.ovirt.engine.core.aaa.filters;
import java.io.IOException;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
... | Java | ovirt/3.6_source/backend/manager/modules/aaa/src/main/java/org/ovirt/engine/core/aaa/filters/SessionValidationFilter.java | jtux270/translate | gpl-3.0 | 3,129 | 86 | codeparrot/github-code |
d01e317a600832e9cadaf456384913cf72bf48a4aaa29fd6e7327a7c8f6000a1 | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... | C | src/plugins/scxmleditor/plugin_interface/undocommands.h | Philips14171/qt-creator-opensource-src-4.2.1 | gpl-3.0 | 6,386 | 233 | codeparrot/github-code |
b58afed259f7f4ea657b4c414af57c38252c5686866647d6c49c59518a205eef | <html lang="en">
<head>
<title>Xtensa Immediate Relaxation - Using as</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using as">
<meta name="generator" content="makeinfo 4.8">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Xtensa-Relaxation.html#... | HTML | buildtools/gcc-arm-none-eabi-5_4-2016q2-osx/share/doc/gcc-arm-none-eabi/html/as.html/Xtensa-Immediate-Relaxation.html | seemoo-lab/nexmon | gpl-3.0 | 6,055 | 116 | codeparrot/github-code |
c10a3af2045d750fcac0e1b83b78cfef6724b6e0302b152d2f58d61d958bc206 | /******************************************************************************
*
* Copyright (C) 1997-2013 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 representations ar... | C++ | thirdparty/doxygen-1.8.4/src/eclipsehelp.cpp | TextusData/Mover | gpl-3.0 | 5,726 | 238 | codeparrot/github-code |
26001608fe7c9cf05f7b44935ac5561a9f6b165fbe3d1834549570bc198424f6 | /*************************************************************************
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or... | Java | odk/examples/DevelopersGuide/Drawing/FillAndLineStyleDemo.java | jvanz/core | gpl-3.0 | 5,391 | 130 | codeparrot/github-code |
4b75625dae1f8e87099e70da28ecf035fb6819b03fbab41bfeb432cf78c15aab | /*
* Copyright 2004, Irene Ruengeler <i.ruengeler [AT] fh-muenster.de>
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
... | C | utilities/wireshark/ui/gtk/sctp_byte_graph_dlg.c | FabianKnapp/nexmon | gpl-3.0 | 46,767 | 1,550 | codeparrot/github-code |
1138b6c41902744389938277ed45ef59b9a2b377023c28f9a69bbe6b2cbf2db7 | /*
Copyright (C) 2014-2015 de4dot@gmail.com
This file is part of dnSpy
dnSpy 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 late... | C# | dnspc/Program.cs | AmesianX/dnSpy | gpl-3.0 | 14,488 | 476 | codeparrot/github-code |
ad9793ce8b51d589d80472b29ccda23f6b579d731d86956437f9cc15cf61a07b | #region Copyright & License Information
/*
* Copyright 2007-2015 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
* see COP... | C# | OpenRA.Mods.Common/Traits/Air/Helicopter.cs | deniz1a/OpenRA | gpl-3.0 | 4,998 | 154 | codeparrot/github-code |
998c281f94e17c07d0a964e017aec7b601b9304cd9edeeae529e1921553a4525 | //https://raw.githubusercontent.com/oliverfoster/SCORMSuspendDataSerializer 2015-06-27
(function(_) {
function toPrecision(number, precision) {
if (precision === undefined) precision = 2
var multiplier = 1 * Math.pow(10, precision);
return Math.round(number * multiplier) / multiplier;
}
function BinaryToNumb... | JavaScript | src/extensions/adapt-contrib-spoor/js/serializers/scormSuspendDataSerializer.js | lc-thomasberger/mlTest | gpl-3.0 | 19,529 | 692 | codeparrot/github-code |
c104b1f2464b463a14dd7904bb24b0e4f32c1720dcb751ad90f854785316171a | /*
Copyright (c) 2013 yvt
This file is part of OpenSpades.
OpenSpades 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.
OpenSpades... | C | Sources/Client/FallingBlock.h | Chameleonhider/noleafclover | gpl-3.0 | 1,232 | 49 | codeparrot/github-code |
69f4525aeaf3fbaa5ef0335f7c01028e852777cf4089acf1293078848b16f1df | function _renderImageOnCanvas( data, formattype, rerendercallable ) {
'use strict'
// #1. Do NOT rely on this. No worky on IE
// (url max len + lack of base64 decoder + possibly other issues)
// #2. This does NOT affect what is captured as "signature" as far as vector data is
// concerned. This ... | JavaScript | addons/web/static/src/legacy/js/libs/jSignatureCustom.js | jeremiahyan/odoo | gpl-3.0 | 2,095 | 50 | codeparrot/github-code |
d648b3f7960af59c75ffd052464c0b8ea8e43dea3b93e01c9f5e769a9d1c76f0 | package aws
import (
"fmt"
"log"
"strings"
"github.com/hashicorp/go-cleanhttp"
"github.com/hashicorp/go-multierror"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/a... | GO | builtin/providers/aws/config.go | savaki/terraform | mpl-2.0 | 10,062 | 319 | codeparrot/github-code |
6029f58f3379506db9d3ed446bcfe5eb06eeeb2be37ddce8dc054d806ee7498d | package googlecomputeexport
var StartupScript string = `#!/bin/bash
GetMetadata () {
echo "$(curl -f -H "Metadata-Flavor: Google" http://metadata/computeMetadata/v1/instance/attributes/$1 2> /dev/null)"
}
IMAGENAME=$(GetMetadata image_name)
NAME=$(GetMetadata name)
DISKNAME=${NAME}-toexport
PATHS=($(GetMetadata pat... | GO | post-processor/googlecompute-export/startup.go | bryson/packer | mpl-2.0 | 1,952 | 75 | codeparrot/github-code |
27c153dec81defaa083cd544719baf5288eaa7f575f4a83c983b153ae662cbe8 | from xblock.fragment import Fragment
from xmodule.x_module import XModule
from xmodule.seq_module import SequenceDescriptor
from xmodule.progress import Progress
from pkg_resources import resource_string
# HACK: This shouldn't be hard-coded to two types
# OBSOLETE: This obsoletes 'type'
class_priority = ['video', 'pro... | Python | common/lib/xmodule/xmodule/vertical_module.py | XiaodunServerGroup/ddyedx | agpl-3.0 | 2,477 | 80 | codeparrot/github-code |
764c80e690c986b63ab78563ca0487bccac029b0ccda9f3acfea3edf91d2c1d0 | //#############################################################################
//# #
//# Copyright (C) <2014> <IMS MAXIMS> #
//# #
... | Java | openmaxims_workspace/ValueObjects/src/ims/ocrr/vo/domain/OcsReportToVoAssembler.java | open-health-hub/openMAXIMS | agpl-3.0 | 17,205 | 454 | codeparrot/github-code |
8032361c393fb8359131590c3e1bc17224a5994646585392a373f1efbf76997d | # Fat Free CRM
# Copyright (C) 2008-2011 by Michael Dvorkin
#
# This program 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, either version 3 of the License, or
# (at your option) any later version.
#
#... | Ruby | lib/fat_free_crm/exportable.rb | mwhagedorn/fat_free_crm | agpl-3.0 | 1,775 | 62 | codeparrot/github-code |
13c3cb4422cc82b3e855c9a98714d0c60303dade41f34ae732029c3e8d6a84ac | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading;
using NHibernate.Criterion.Lambda;
using NHibernate.Engine;
using NHibernate.Impl;
using NHibernate.Loader;
using NHibernate.SqlCommand;
using NHibernate.Transform;
using NHibernate.Util;
namespace... | C# | src/NHibernate/Criterion/QueryOver.cs | RogerKratz/nhibernate-core | lgpl-2.1 | 36,407 | 1,017 | codeparrot/github-code |
e15da66ae933265dbd27c96d17f6a2f240bdac85946531934931749f7de1abfd | /*
* This file is part of Cockpit.
*
* Copyright (C) 2014 Red Hat, Inc.
*
* Cockpit 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 l... | C | src/common/cockpittransport.h | matobet/cockpit | lgpl-2.1 | 4,263 | 113 | codeparrot/github-code |
669c0f2e56fca6d8ffd3d514cf94adfcba0cdd8ee0095d8a1f8aa115af771257 | /**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file may be used unde... | C++ | src/shared/qrceditor/undocommands.cpp | ostash/qt-creator-i18n-uk | lgpl-2.1 | 5,234 | 190 | codeparrot/github-code |
161f8f5a1d49ca0777f91e3da85c231444b0f733073da26fb14e0bf943e480ac | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
** Author: Frank Osterfeld, KDAB (frank.osterfeld@kdab.com)
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** L... | C | src/plugins/valgrind/xmlprotocol/announcethread.h | richardmg/qtcreator | lgpl-2.1 | 2,381 | 69 | codeparrot/github-code |
d610b8fe106066092a7656e8291a4f65a9c87f5bd1c602535f6e51d69f12c6d8 | /*
CsoundSwitchBinding.h:
Copyright (C) 2014 Steven Yi, Aurelius Prochazka
This file is part of Csound for iOS.
The Csound for iOS 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; eithe... | C | iOS/Csound iOS Swift Examples/Csound iOS SwiftExamples/csound-iOS/classes/bindings/ui/CsoundSwitchBinding.h | ketchupok/csound | lgpl-2.1 | 1,072 | 35 | codeparrot/github-code |
16f895da148664a1841e762de235516de84e12722188594ce1a3b8fc88f86e89 | /*
* Forge Mod Loader
* Copyright (c) 2012-2013 cpw.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
... | Java | src/main/java/net/minecraftforge/fml/common/InjectedModContainer.java | blay09/MinecraftForge | lgpl-2.1 | 4,876 | 230 | codeparrot/github-code |
64f8e5974103dc531049c064090da05f88dd33661c0450c3620920e13512f468 | /*
* Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
*
* 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 of the License, or (at your option) an... | C | webkit/Source/WebCore/bridge/qt/qt_instance.h | nawawi/wkhtmltopdf | lgpl-3.0 | 3,386 | 121 | codeparrot/github-code |
08ff82f8b1043942398127eeb9c2d51bbd8954388e6916c5ef6b6081e43954c0 | package lab.s2jh.core.security;
import lab.s2jh.core.security.SourceUsernamePasswordToken.AuthSourceEnum;
import lab.s2jh.module.auth.entity.User;
import lab.s2jh.module.auth.service.UserService;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import or... | Java | src/main/java/lab/s2jh/core/security/BearerTokenRealm.java | leontius/s2jh4net | lgpl-3.0 | 2,393 | 60 | codeparrot/github-code |
bd5fa2c3a60cef5eeaa60eea609efa99c52d956b95639f3555f4ccd5fce92f32 | <?php
class Translations_SegmentTranslationDao extends DataAccess_AbstractDao {
public static $primary_keys = array(
'id_job',
'id_segment'
);
const TABLE = "segment_translations";
/**
* @param $id_segment
* @param $id_job
* @return Translations_SegmentTranslationStruc... | PHP | lib/Model/Translations/SegmentTranslationDao.php | danizero/MateCat | lgpl-3.0 | 5,185 | 172 | codeparrot/github-code |
ca7f0b8b7d5abc41691511913ae63aed3cef6dd266818c517e06c867a934af86 | package Genome::Model::Tools::DetectVariants2::Filter::FalsePositiveVcfBase;
use warnings;
use strict;
use Genome;
use Carp;
use Data::Dumper;
use Genome::Utility::Vcf ('parse_vcf_line', 'deparse_vcf_line', 'get_samples_from_header');
use Genome::Utility::Text;
use File::Spec;
class Genome::Model::Tools::DetectVaria... | Perl | lib/perl/Genome/Model/Tools/DetectVariants2/Filter/FalsePositiveVcfBase.pm | genome/genome | lgpl-3.0 | 33,110 | 777 | codeparrot/github-code |
ec1f8b6267902b1efb84781b9d8b22f0bd39c5086935f65b7424637207d70ab0 | //===--- ARCAnalysis.h - SIL ARC Analysis -----------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C | include/swift/SILOptimizer/Analysis/ARCAnalysis.h | karwa/swift | apache-2.0 | 18,157 | 471 | codeparrot/github-code |
3b7d6f1846705607ecd3c58e47d1f40ccbfba38cde839af6d1d4733f3bab74d2 | /*
* 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... | Java | plugins/junit/src/com/intellij/execution/junit/TestCategory.java | idea4bsd/idea4bsd | apache-2.0 | 3,763 | 89 | codeparrot/github-code |
2fd4e89b8e3c4bd4e7c17d7943c4b7ac5d3e279355e8644dd2e4091a58c6c692 | /*
* 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 ... | Java | gobblin-metrics-libs/gobblin-metrics-base/src/main/java/gobblin/metrics/InnerMetricContext.java | lbendig/gobblin | apache-2.0 | 14,174 | 399 | codeparrot/github-code |
64467befe9aecddb2be24082c6358543778c563cc25f43047dd810a0695eae4b | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may... | Java | JavaSource/org/unitime/timetable/tags/CourseNumberSuggestBox.java | rafati/unitime | apache-2.0 | 3,275 | 84 | codeparrot/github-code |
c22950b4c3cd3c11dd69eb82ff256099ab0060223bcdc4a73819c15b691269d6 | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.math.interpolation;
import static org.testng.AssertJUnit.assertEquals;
import org.apache.commons.lang.NotImplementedException;
import org.testng.an... | Java | projects/OG-Analytics/src/test/java/com/opengamma/analytics/math/interpolation/TimeSquareInterpolator1DTest.java | codeaudit/OG-Platform | apache-2.0 | 9,007 | 206 | codeparrot/github-code |
495ccba0c16f9d468c2b73daeecc285ff42071ba5e5ca870257d909867292c9a | /*
* FlagClusteringStrategy - Implements a clustering strategy for a field which is a single integer
* containing an XOR'ed collection of bit flags
*
* Author: Phillip Piper
* Date: 23-March-2012 8:33 am
*
* Change log:
* 2012-03-23 JPP - First version
*
* Copyright (C) ... | C# | source/ObjectListView/Filtering/FlagClusteringStrategy.cs | Klocman/Bulk-Crap-Uninstaller | apache-2.0 | 6,349 | 160 | codeparrot/github-code |
f6f23a7ad04e3367a67879f26b72700aefcdb875be21b7744871eb84f8d238f2 | //====== Copyright © 1996-2005, Valve Corporation, All rights reserved. =======
//
// Purpose: An entity that spawns and controls a particle system
//
//=============================================================================
#include "cbase.h"
#include "particles/particles.h"
#include "networkstringtable_gamedll... | C++ | src/game/server/particle_system.cpp | TheCallSign/Clifton-Source | apache-2.0 | 11,343 | 245 | codeparrot/github-code |
7c8188fae6acd092033d8ae76c2b4d5aac7e23f2d7ecf171fe67b56dfb50adff | /*
* 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 ... | Java | components/camel-aws2-ec2/src/test/java/org/apache/camel/component/aws2/ec2/localstack/EC2ComponentLocalstackTest.java | adessaigne/camel | apache-2.0 | 3,936 | 89 | codeparrot/github-code |
fc170158c24d2634965282b0aaaa0f124397f12e276751f8a0844e66fdae8a7c | // 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 agreed to in... | C++ | earth_enterprise/src/fusion/fusionui/ProviderEdit.cpp | tst-ppenev/earthenterprise | apache-2.0 | 1,594 | 60 | codeparrot/github-code |
e9e233a72a82b36efd96accfb146b54019d14ed74386241c1de55453e96dd7b8 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | Java | server/src/main/java/org/elasticsearch/tasks/TaskCancellationService.java | robin13/elasticsearch | apache-2.0 | 12,886 | 250 | codeparrot/github-code |
954dbbd49082c273ab924dd31992c8160e93ca405140d431f9949167c270a82c | // bsls_asserttest.cpp -*-C++-*-
#include <bsls_asserttest.h>
#include <bsls_ident.h>
BSLS_IDENT("$Id$ $CSID$")
#include <bsls_asserttestexception.h>
#include <bsls_bsltestutil.h> // for testing purposes only
#include <bsls_platform.h>
#include <stdio.h>
#include <std... | C++ | groups/bsl/bsls/bsls_asserttest.cpp | idispatch/bde | apache-2.0 | 11,054 | 339 | codeparrot/github-code |
365c5d8de8bb0e88c9ada6a8834d2c995488e9a483498fecfd7caac5a793ccde | import chai from 'chai'
import sinon from 'sinon'
import sinonChai from 'sinon-chai'
const { expect } = chai
chai.use(sinonChai)
global.callNative = function () {}
global.callAddElement = function () {}
import * as bundle from '../../../../frameworks/legacy/app/bundle'
import * as register from '../../../../framework... | JavaScript | html5/test/unit/default/app/bundle.js | namedlock/weex | apache-2.0 | 12,869 | 480 | codeparrot/github-code |
f0a4ad347a563892d24711881cf86d98fe85267ee167611014ce14a846ac4cab | #!/usr/bin/env python
# pylint: disable=missing-docstring
# flake8: noqa: T001
# ___ ___ _ _ ___ ___ _ _____ ___ ___
# / __| __| \| | __| _ \ /_\_ _| __| \
# | (_ | _|| .` | _|| / / _ \| | | _|| |) |
# \___|___|_|\_|___|_|_\/_/_\_\_|_|___|___/_ _____
# | \ / _ \ | \| |/ _ \_ _| | __| \_ ... | Python | roles/lib_openshift/library/oc_route.py | mmahut/openshift-ansible | apache-2.0 | 63,067 | 1,861 | codeparrot/github-code |
9cf2665bfa8ecff7d97cca5524564a457c720d358593571b8544e91a5bd1b734 | /*
* 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... | Java | plugin/trino-hive/src/main/java/io/trino/plugin/hive/rubix/RubixInitializer.java | electrum/presto | apache-2.0 | 14,386 | 336 | codeparrot/github-code |
46804d1feb8751ad0c28c524bbe7d0d120a53528f29d48a3856d193ce7668f9b | package org.wso2.carbon.apimgt.rest.api.publisher.impl;
import java.util.List;
import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.Response;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.wso2.carbon.apimgt.core.exception.APIManagementException... | Java | components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/impl/PoliciesApiServiceImpl.java | dewmini/carbon-apimgt | apache-2.0 | 5,453 | 115 | codeparrot/github-code |
c57ba425bdb274cbf58e707ecf9ab39d50a1a61404bd82f1b96a58294c87e712 | # -*- coding: utf-8 -*-
#
# 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
#... | Python | airflow/contrib/operators/jenkins_job_trigger_operator.py | adamhaney/airflow | apache-2.0 | 11,480 | 250 | codeparrot/github-code |
7e00a9fe27c6dafbc858d2279b3deb73873e7f08197d211179a121f8ccecc67a | /*
* 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 ... | Java | gobblin-metrics-libs/gobblin-metrics-base/src/main/java/gobblin/metrics/event/MultiPartEvent.java | ydai1124/gobblin-1 | apache-2.0 | 3,230 | 95 | codeparrot/github-code |
84dc35f99aafcecd896852674147adae297ec62260b489cfab5f78e9147861d0 | /*******************************************************************************
* Copyright (c) Intel Corporation
* Copyright (c) 2017
*
* 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
... | Java | osc-server/src/main/java/org/osc/core/server/websocket/WebSocketRunner.java | opensecuritycontroller/osc-core | apache-2.0 | 11,704 | 275 | codeparrot/github-code |
b966811ec914ea20ba029ae9b6f7f0babd4c498fa6a861ee7077fa0baeb46d1b | /*
* Copyright 2009-2012 Odbayar Nyamtseren <odbayar.n@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | C++ | CompString.cpp | sbatbayar/buuz | apache-2.0 | 5,760 | 191 | codeparrot/github-code |
21ff01802eaf452c00792eea900ba5d323419e5fc1516d7a0dcf7cc47cb34b1d | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.CodeAnalysis.CodeStyle;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Options;
namespace Microsoft.CodeAnalysis.Use... | C# | src/Features/Core/Portable/UseInferredMemberName/AbstractUseInferredMemberNameDiagnosticAnalyzer.cs | DustinCampbell/roslyn | apache-2.0 | 1,833 | 41 | codeparrot/github-code |
f2c7a62cfd56354ebfabae900f0a0ca83461de4c69d2fd50a74b63e3f4a13830 | /*
* Copyright (c) Facebook, Inc. and 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 applic... | Java | src/com/facebook/buck/slb/ThriftUtil.java | facebook/buck | apache-2.0 | 5,035 | 145 | codeparrot/github-code |
8a918cedbe2d99cf2b85cfca2e9fa706e2f1701245ab0b412ad5d2469016fe82 | # Copyright 2015 Intel 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.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | Python | cinder/objects/backup.py | CloudServer/cinder | apache-2.0 | 5,187 | 149 | codeparrot/github-code |
9e6511c9135b1443075352bfc4e1b1e1ebca126bc5bc83ec31d7d6f8393f743a | /*
* Copyright (c) 2015 AsyncHttpClient Project. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.or... | Java | extras/rxjava/src/main/java/org/asynchttpclient/extras/rxjava/AsyncHttpObservable.java | ooon/async-http-client | apache-2.0 | 3,339 | 89 | codeparrot/github-code |
1bc5f9f4efcb5113c3672ad68cc2da944d015092e562e9fbc89d6cba46b797b6 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | TypeScript | webui/worker/src/store/blockInfo/types.tsx | EvilMcJerkface/alluxio | apache-2.0 | 1,302 | 43 | codeparrot/github-code |
5101598647680f1ce65403624abd20ed15629d22c80af2d254a59300025ec51b | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.eas.client.forms.components.model.grid.columns;
import com.eas.client.forms.components.model.grid.ModelGrid;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.event.ActionListener;
imp... | Java | platypus-js-forms/src/main/java/com/eas/client/forms/components/model/grid/columns/ServiceCellEditor.java | altsoft/PlatypusJS | apache-2.0 | 2,070 | 65 | codeparrot/github-code |
10ed23bd1034456a26f82485691ec0d2f4b13bfea20d62e5d4ed4080fc97a62b | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2019 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 ... | Java | engine/src/main/java/org/pentaho/di/core/util/ConnectionUtil.java | ddiroma/pentaho-kettle | apache-2.0 | 2,344 | 70 | codeparrot/github-code |
9ce4da40a4c252230ef8e3331fd2d63f113878e84ae3262fdbbead494f3d8f82 | package com.taobao.tddl.optimizer.core.datatype;
import com.taobao.tddl.common.exception.TddlRuntimeException;
/**
* {@link Byte} 类型
*
* @author jianghang 2014-1-21 下午3:28:17
* @since 5.0.0
*/
public class ByteType extends CommonType<Byte> {
private final Calculator calculator = new Calculator() {
... | Java | tddl-optimizer/src/main/java/com/taobao/tddl/optimizer/core/datatype/ByteType.java | beebeandwer/TDDL | apache-2.0 | 6,669 | 156 | codeparrot/github-code |
2f831aa522917aa1446fb5f2b5887d63ba69600b43cae2816e967cf0a737dc80 | /*
* Copyright 2015 gRPC 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 t... | C++ | src/cpp/server/server_cc.cc | ctiller/grpc | apache-2.0 | 50,564 | 1,372 | codeparrot/github-code |
4e0f742f1fba7669b61efbae6ef7df266f429987f2bccd53a22f8debdf9fa8a0 | /**
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl2.php
*
* Unless requ... | Java | rice-middleware/kns/src/main/java/org/kuali/rice/kns/service/KNSServiceLocator.java | mztaylor/rice-git | apache-2.0 | 9,153 | 215 | codeparrot/github-code |
a613ec30ee1cf8fc54bed960a0f14100c417b844061fc5acef8f43d74d5cc5cb | /*
* Copyright 2012 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 ap... | Java | jbpm-human-task/jbpm-human-task-core/src/main/java/org/jbpm/services/task/commands/TaskCommand.java | bxf12315/jbpm | apache-2.0 | 2,200 | 82 | codeparrot/github-code |
c0cf12173106d592215588e9e5eb857f2d2a69844341ddef879ecfc99dcc2163 | /*
Copyright (c) 2015, salesforce.com, inc. All rights reserved.
Redistribution and use of this software in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of con... | C | libs/SalesforceNetwork/SalesforceNetwork/SalesforceNetwork/Classes/Protocols/CSFIndexedEntity.h | bodefuwa/SalesforceMobileSDK-iOS | apache-2.0 | 2,445 | 54 | codeparrot/github-code |
efa3c4852d5ce2073aef2f027046b59c0685583824176ed2ca6dcb024fd8352d | /*
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Java | gcloud-java-storage/src/test/java/com/google/gcloud/storage/OptionTest.java | aglne/gcloud-java | apache-2.0 | 1,134 | 39 | codeparrot/github-code |
ce1d7fe77934147c879330afaf41fd240b5cb6fa816b2f486ad2986337a4ec0f | /**
* Copyright 2005-2015 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version
* 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | Java | components/docker-api/src/main/java/io/fabric8/docker/api/image/ImageInfo.java | PhilHardwick/fabric8 | apache-2.0 | 1,037 | 31 | codeparrot/github-code |
f6bce55679c360e209a1db4e162264358f95be61a8fca61febabe3b4164dbdb3 | package com.thinkaurelius.titan.graphdb.database.idassigner.placement;
import com.google.common.base.Preconditions;
import com.thinkaurelius.titan.graphdb.internal.InternalElement;
import com.thinkaurelius.titan.graphdb.internal.InternalVertex;
import java.util.Map;
/**
* @author Matthias Broecheler (me@matthiasb.c... | Java | titan-core/src/main/java/com/thinkaurelius/titan/graphdb/database/idassigner/placement/DefaultPlacementStrategy.java | boorad/titan | apache-2.0 | 1,749 | 59 | codeparrot/github-code |
2e9ecc10c17da477f36ab534237fb312d3b8f4255cf6bf2acb13790c5e142e64 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.core.ml.inference.persistence;
imp... | Java | x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/persistence/InferenceIndexConstants.java | robin13/elasticsearch | apache-2.0 | 1,999 | 54 | codeparrot/github-code |
3ccb6798d7581057e9cfd20d61e3d0c238327705b94b8319297cbeb84c02bf61 | /*
* Copyright 2016 The BigDL 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 agr... | Scala | spark/dl/src/main/scala/com/intel/analytics/bigdl/optim/Regularizer.scala | yiheng/BigDL | apache-2.0 | 5,507 | 194 | codeparrot/github-code |
f3e52eee8e270758eafd7302aa742f79eac6230cc3f24f37ba24a9e86c11aa13 | /*
* 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... | Java | plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/typeEnhancers/GrBooleanTypeConverter.java | asedunov/intellij-community | apache-2.0 | 2,099 | 58 | codeparrot/github-code |
6e6852cdd3b3c34190ff2ac776bbd5a9aa533cb530dc7346d91936ef1f4ebe70 | /**
* 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 compli... | Java | uPortal-rendering/src/main/java/org/apereo/portal/portlet/registry/PortletWindowRegistryImpl.java | cousquer/uPortal | apache-2.0 | 41,520 | 913 | codeparrot/github-code |
2ef5f4fcb85160e115b447841933c46d54de6cd219522d0f52c9ebe24d2895ea | # Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""GGRC notification SQLAlchemy layer data model extensions."""
from sqlalchemy.orm import backref
from ggrc import db
from ggrc.models.mixins import Base
from ggrc.models import utils
class Notification... | Python | src/ggrc/models/notification.py | plamut/ggrc-core | apache-2.0 | 1,986 | 62 | codeparrot/github-code |
838acfe8f8332975809fafe9c19d23a9dbe78932f0cea90cb7627744b4341b02 | package swarm
import (
"fmt"
"io"
"github.com/docker/cli/cli"
"github.com/docker/cli/cli/command"
"github.com/docker/docker/api/types/swarm"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context"
)
type unlockKeyOptions struct {
rotate bool
quiet bool
}
func newUnlockKeyCommand(docke... | GO | cli/command/swarm/unlock_key.go | ashfall/cli | apache-2.0 | 2,173 | 90 | codeparrot/github-code |
cc84c3d956ea44897a18286d75023396026f27dfab320bcbdbf7506f7315d9f1 | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | Java | plugins/kettle-dummy-plugin/core/src/main/java/org/pentaho/di/pdi/jobentry/dummy/DummyJob.java | alina-ipatina/pentaho-kettle | apache-2.0 | 2,866 | 94 | codeparrot/github-code |
cd720004dd0f735207734e52eb17ce388982823cec2a8032e7f80abf49a6cb4b | /*
* 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 ... | Scala | graphx/src/test/scala/org/apache/spark/graphx/GraphOpsSuite.scala | practice-vishnoi/dev-spark-1 | apache-2.0 | 7,728 | 217 | codeparrot/github-code |
c1198afa8d2124631580cb37a7e9da1b7208155a7f061d2d07c9fbdbe32f8313 | /**
* 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 m... | Java | common/mahout-distribution-0.7-hadoop1/math/target/generated-test-sources/org/apache/mahout/math/map/OpenByteFloatHashMapTest.java | BigData-Lab-Frankfurt/HiBench-DSE | apache-2.0 | 11,741 | 368 | codeparrot/github-code |
a3ed3428dfd489d9352c5afeead877e704a52b2055cd40e2f6db62c1be3bff03 | // Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | GO | src/app/backend/handler/confighandler.go | taimir/dashboard | apache-2.0 | 2,219 | 70 | codeparrot/github-code |
eee3dd4dde9257d3b110269804a6ba40a577e3200bd35a603f2f81fe37a766da | /******************************************************************************
* Copyright 2018 The Apollo 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
... | C++ | modules/canbus/vehicle/lexus/protocol/rear_lights_rpt_418.cc | xiaoxq/apollo | apache-2.0 | 3,710 | 99 | codeparrot/github-code |
825d50b50d38ec562c3cee9f9634b494219f78ccb81b5304b60e4a38e7514c90 | // This file was procedurally generated from the following sources:
// - src/async-generators/yield-promise-reject-next-catch.case
// - src/async-generators/default/async-expression.template
/*---
description: yield Promise.reject(value) is treated as throw value (Unnamed async generator expression)
esid: prod-AsyncGen... | JavaScript | Jint.Tests.Test262/test/language/expressions/async-generator/yield-promise-reject-next-catch.js | sebastienros/jint | bsd-2-clause | 1,256 | 44 | codeparrot/github-code |
f123e7607de49562c11043fbba5488fcb1969dc4e51fc787df6ddbe204c36294 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LayoutAnalyzer_h
#define LayoutAnalyzer_h
#include "platform/LayoutUnit.h"
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
#include <memo... | C | third_party/webrtc/include/chromium/src/third_party/WebKit/Source/core/layout/LayoutAnalyzer.h | ssaroha/node-webrtc | bsd-2-clause | 2,480 | 100 | codeparrot/github-code |
32042dc488310ba2f016dc4495bed505854c1a810bce6652923620c0dcd57f01 | <?php
/**
* @file
* Default theme implementation to display a node.
*
* Available variables:
* - $title: the (sanitized) title of the node.
* - $content: An array of node items. Use render($content) to print them all,
* or print a subset such as render($content['field_example']). Use
* hide($content['field_... | PHP | www/sites/all/modules/features/uclalib_staff_profile/templates/node--staff_profile.tpl.php | shridharsahil/libraryweb-site | bsd-3-clause | 7,711 | 186 | codeparrot/github-code |
bba5f7ddc4505e40356e9c97bcf19f6bf52f88a42558cc0c0acd5b57803a8b33 | // 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.
#ifndef COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_FETCHER_IMPL_H_
#define COMPONENTS_NTP_SNIPPETS_REMOTE_REMOTE_SUGGESTIONS_FETCHER_IMPL_H_
#incl... | C | components/ntp_snippets/remote/remote_suggestions_fetcher_impl.h | chromium/chromium | bsd-3-clause | 5,511 | 153 | codeparrot/github-code |
378abcf671c8c713a426efdac16c09b7cc2ea4182dfb29480b7c24bffcc4d043 | r"""Fixer for unicode.
* Changes unicode to str and unichr to chr.
* If "...\u..." is not unicode literal change it into "...\\u...".
* Change u"..." into "...".
"""
from ..pgen2 import token
from .. import fixer_base
_mapping = {u"unichr" : u"chr", u"unicode" : u"str"}
class FixUnicode(fixer_base... | Python | win32/bin/Lib/lib2to3/fixes/fix_unicode.py | nmercier/linux-cross-gcc | bsd-3-clause | 1,311 | 43 | codeparrot/github-code |
6e209ad4682e127659eeaa55f067cdb47bb4bf10891ca69dfca4c82930861389 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_
#define CHROME_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_
#includ... | C | chrome/browser/notifications/persistent_notification_delegate.h | Chilledheart/chromium | bsd-3-clause | 1,643 | 53 | codeparrot/github-code |
8027fa069be200ccf5fdf3983b7a7720842d38d7583d32915a2a10f76a877674 | __ace_shadowed__.define('ace/ext/spellcheck', ['require', 'exports', 'module' , 'ace/lib/event', 'ace/editor', 'ace/config'], function(require, exports, module) {
var event = require("../lib/event");
exports.contextMenuHandler = function(e){
var host = e.target;
var text = host.textInput.getElement();
if ... | JavaScript | textarea/src/ext-spellcheck.js | kang/ace-builds | bsd-3-clause | 2,432 | 73 | codeparrot/github-code |
3c2d6ab7affa5c175ae41ee1700f6e6d627b26af61e9c8e254d244bf196283da |
/* Pane */
var PANE_UNLOAD_LOCK = false;
function paneGoto(pane, step, initOnly) {
var $item,
numeric;
initOnly = typeof initOnly == 'boolean' ? initOnly : false;
if (ADMIN_PANES[pane].active === null)
ADMIN_PANES[pane].callbacks.init();
if (!step || ADMIN_PANES[pane].callbacks['st... | JavaScript | cmd/facette/js/pane.js | vovkasm/facette | bsd-3-clause | 2,692 | 98 | codeparrot/github-code |
10ad1bd84e278fa3f35f1b25fcf821efc1447387d3b696a7b29773c46d6d21fe | import functools
from django.db.models.sql import EmptyResultSet
import commonware.log
from rest_framework.decorators import api_view
from rest_framework.exceptions import ParseError
from rest_framework.mixins import ListModelMixin
from rest_framework.routers import Route, SimpleRouter
from rest_framework.response im... | Python | mkt/api/base.py | ingenioustechie/zamboni | bsd-3-clause | 8,836 | 265 | codeparrot/github-code |
0bec65f38cb59e6c93db5e779460c2a186bcb3d848e303f1b21ed1ab33124301 | // 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 "ui/events/keycodes/dom4/keycode_converter.h"
#include <map>
#include "base/basictypes.h"
#include "testing/gtest/include/gtest/gtest.h"
#inclu... | C++ | ui/events/keycodes/dom4/keycode_converter_unittest.cc | CTSRD-SOAAP/chromium-42.0.2311.135 | bsd-3-clause | 6,034 | 156 | codeparrot/github-code |
935a600beb10e022d4cfacb5e5be3a720428668733584303f98be715332ad6c3 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/download/download_item_view.h"
#include <stddef.h>
#include <algorithm>
#include <vector>
#include "base/bind.h"
... | C++ | chrome/browser/ui/views/download/download_item_view.cc | hujiajie/chromium-crosswalk | bsd-3-clause | 53,547 | 1,395 | codeparrot/github-code |
4decf295eddb10ffc2cd57b1464c988ddd5ba595a34ff4502403c2b6d226b294 | /* Copyright (c) 2001-2010, The HSQL Development Group
* 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... | Java | src/org/hsqldb/test/TestTypeConversion.java | ThangBK2009/android-source-browsing.platform--external--hsqldb | bsd-3-clause | 5,519 | 179 | codeparrot/github-code |
f96447479872a066865411d4142d4882be52c11deeede37fc3f6738fed049006 | #region License
//
// Copyright (c) 2013, Kooboo team
//
// Licensed under the BSD License
// See the file LICENSE.txt for details.
//
#endregion
using System.Collections.Generic;
namespace Kooboo.Collections
{
/// <summary>
///
/// </summary>
/// <typeparam name="T"></typeparam>
public class ... | C# | Kooboo.CMS/Kooboo/Collections/Matrix.cs | techwareone/Kooboo-CMS | bsd-3-clause | 3,163 | 124 | codeparrot/github-code |
361e5e963ea02f389a8a2c08fc614882b2c51dd10f5f6cb5157446f2dee56350 | # (C) Datadog, Inc. 2010-2016
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
# 3p
import requests
# project
from checks import AgentCheck
from util import headers
class PHPFPMCheck(AgentCheck):
"""
Tracks basic php-fpm metrics via the status module
Requires php-fpm pools to ... | Python | checks.d/php_fpm.py | manolama/dd-agent | bsd-3-clause | 4,587 | 125 | codeparrot/github-code |
ad979d72721b7a621fc5306ea3751bfde66d85746fdd3f361e5dec93bd86b249 | // Copyright 2016 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 "third_party/blink/renderer/core/animation/css_interpolation_type.h"
#include <memory>
#include <utility>
#include "base/memory/ptr_util.h"
#in... | C++ | third_party/blink/renderer/core/animation/css_interpolation_type.cc | chromium/chromium | bsd-3-clause | 14,979 | 367 | codeparrot/github-code |
bdb347860357ef3f7b5f7532a308411674480b19cb685b5676fbc8a79389ceae | // 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 "chrome/browser/extensions/api/feedback_private/feedback_private_api.h"
#include "base/lazy_instance.h"
#include "base/memory/scoped_ptr.h"
#inc... | C++ | chrome/browser/extensions/api/feedback_private/feedback_private_api.cc | sgraham/nope | bsd-3-clause | 8,390 | 240 | codeparrot/github-code |
933fb4b7f0c82fa36dec97f734984d067823a5f33d82b7cc29dcc366dac2d11a | package org.broadinstitute.hellbender.metrics;
import htsjdk.samtools.metrics.MetricBase;
import org.broadinstitute.hellbender.utils.Utils;
import org.broadinstitute.hellbender.utils.read.GATKRead;
import org.broadinstitute.hellbender.utils.read.ReadUtils;
import java.io.Serializable;
/** A set of metrics used to de... | Java | src/main/java/org/broadinstitute/hellbender/metrics/QualityYieldMetrics.java | broadinstitute/hellbender | bsd-3-clause | 5,407 | 154 | codeparrot/github-code |
23f878209236ebe5161de28dee119ff9d4b03910cd45fd9a2b58531f93de2c84 | // Copyright 2021 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.
#ifndef COMPONENTS_SEGMENTATION_PLATFORM_INTERNAL_SELECTION_SEGMENTATION_RESULT_PREFS_H_
#define COMPONENTS_SEGMENTATION_PLATFORM_INTERNAL_SELECTION_SEGME... | C | components/segmentation_platform/internal/selection/segmentation_result_prefs.h | chromium/chromium | bsd-3-clause | 2,305 | 67 | codeparrot/github-code |
418f977b26f808acc080ead35a5552f27f082fe2fd6f4b97983e1ca1f19c51f7 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromecast/media/cdm/cast_cdm_factory.h"
#include "base/bind.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/task/single... | C++ | chromium/chromecast/media/cdm/cast_cdm_factory.cc | ric2b/Vivaldi-browser | bsd-3-clause | 3,224 | 85 | codeparrot/github-code |
3d075e6fa2782a763f97899db67d7b7c892d31783c58997a4c0398dc7f875ce1 | #region License
//
// Copyright (c) 2013, Kooboo team
//
// Licensed under the BSD License
// See the file LICENSE.txt for details.
//
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Kooboo.CMS.Membership.OAuthClients
{
[Kooboo.CMS.Common.Runtime.Depen... | C# | Kooboo.CMS/Kooboo.CMS.Membership/OAuthClients/YahooClient.cs | lingxyd/CMS | bsd-3-clause | 996 | 43 | codeparrot/github-code |
b97715f06dcf55574357e9511b5c5c2e95edb19e35dcd43d72381f2bd1251205 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/views/controls/image_view.h"
#include <utility>
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
#include "th... | C++ | ui/views/controls/image_view.cc | axinging/chromium-crosswalk | bsd-3-clause | 6,745 | 236 | codeparrot/github-code |
c3ac8925c871e53cb1d961b5882936e9b6c862261b9303b4ed0159f4c79d9e00 | // Copyright 2021 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/shared_highlighting/shared_highlighting_promo.h"
#include <memory>
#include "chrome/browser/ui/browser.h"
#include "chrome/b... | C++ | chromium/chrome/browser/ui/shared_highlighting/shared_highlighting_promo.cc | ric2b/Vivaldi-browser | bsd-3-clause | 2,741 | 79 | codeparrot/github-code |
217e3cc2cd5b10bb1644d1f79ae56c2c41ba5f8e7f8cec119b1f3704edcb8bab | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_DOWNLOAD_ANDROID_CHROME_DUPLICATE_DOWNLOAD_INFOBAR_DELEGATE_H_
#define CHROME_BROWSER_DOWNLOAD_ANDROID_CHROME_DUPLICATE_DOWNLOAD_IN... | C | chromium/chrome/browser/download/android/chrome_duplicate_download_infobar_delegate.h | ric2b/Vivaldi-browser | bsd-3-clause | 2,835 | 74 | codeparrot/github-code |
8c26b51ada0cd0035712ebdd4c07d4342c3dd12989d8d4fa4a738df6e37579e2 | //
// CustomWidgetBackend.cs
//
// Author:
// Alex Corrado <corrado@xamarin.com>
//
// Copyright (c) 2013 Xamarin Inc
//
// 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 ... | C# | Xwt.XamMac/Xwt.Mac/CustomWidgetBackend.cs | residuum/xwt | mit | 2,941 | 99 | codeparrot/github-code |
0abf25eb046ecd51021f2382fc1715f492df6f1475f4b346c7a80305610a9caa | //========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose: Namespace for functions dealing with Debug Overlays
//
// $Workfile: $
// $Date: $
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"... | C++ | src/sdk/hl2_ob/game/server/ndebugoverlay.cpp | scen/ionlib | mit | 8,126 | 267 | codeparrot/github-code |
dc302106b6020aaa11b14a4195eaf870cc51d1e8cc3abc4609a3fce02edcfb3a | /* Copyright (c) 2010-2013, The Linux Foundation. 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 o... | C | platform/msm_shared/crypto_hash.c | t2m-foxfone/kernel_lk | mit | 11,286 | 407 | codeparrot/github-code |
e57fb9f5d97507cf6b282bf864c6e2b63bbe9661cde6b5a8a128361ab608cbc9 | /*
Copyright 2010, 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 of conditions and the following dis... | Java | main/src/com/google/refine/model/Record.java | DTL-FAIRData/FAIRifier | mit | 1,906 | 51 | codeparrot/github-code |
3030991bd53221576fa112c64269dc72ad6b1d5b3e29dad1c4da9ea3127c5de1 | var host = jQuery("#host").val(),
assets = host+'assets/',
url = jQuery("#url").val()
site = host+"index.php/";
var token = jQuery('#token'),
token_val = token.val(),
token_name = token.attr('name');
$("#username").on("keypress", function(event) {
// Disallow anything not mat... | JavaScript | assets/js/login.js | fajar125/mpd_ci | mit | 2,597 | 80 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.