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 |
|---|---|---|---|---|---|---|---|---|
b1cd4eb0bc4d35e94b6dd38360f76e07b124c2950c2e57d9cdb9918a6a2b449b | // -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#include "Copter.h"
#if LOGGING_ENABLED == ENABLED
// Code to Write and Read packets from DataFlash log memory
// Code to interact with the user to dump or erase logs
#if CLI_ENABLED == ENABLED
// Creates a constant array of structs repre... | C++ | ArduCopter/Log.cpp | yuange250/diydrones | gpl-3.0 | 27,600 | 870 | codeparrot/github-code |
cdee27f2eca45b803df2a8ad43ecfac843ca3b0c3789f7fe7a8965197356983d | /*
* Copyright (C) 2011 Tuomo Penttinen, all rights reserved.
*
* Author: Tuomo Penttinen <tp@herqq.org>
*
* This file is part of Herqq UPnP Av (HUPnPAv) library.
*
* Herqq UPnP Av is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by... | C++ | hupnp_av/src/transport/hmediainfo.cpp | 0xd34df00d/hupnp-ng | gpl-3.0 | 7,757 | 320 | codeparrot/github-code |
dae675da3eeb895e734ecd97a796a2783eb0ba2b7b5e1eb32f96cdc5194fae5a | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#include "cbase.h"
#include "c_baseentity.h"
#include "hud.h"
#include "hudelement.h"
#include "clientmode.h"
#include <vgui_controls/Panel.h>
#... | C++ | src/game/client/c_point_commentary_node.cpp | OnePointSeven/onepointseven | gpl-3.0 | 19,047 | 586 | codeparrot/github-code |
7a4ee9380b5712073c9f58fd83b91e5a37157b4d3639b03e2d58c0074088184f | // Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_WASM_ENCODER_H_
#define V8_WASM_ENCODER_H_
#include "src/signature.h"
#include "src/zone-containers.h"
#include "src/base/smart-pointers.h"... | C | v8_5_1/src/wasm/encoder.h | zero-ui/miniblink49 | gpl-3.0 | 4,762 | 157 | codeparrot/github-code |
d13b05e6ef5c5216445bff3e8358bc27eb9d947fa06458c07a70c87200d6336f | /* Definitions of target machine for GNU compiler,
for IBM RS/6000 POWER running AIX.
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Publ... | C | osprey-gcc-4.2.0/gcc/config/rs6000/aix.h | uhhpctools/openuh | gpl-3.0 | 9,653 | 261 | codeparrot/github-code |
71fd590970b1974e704176d6c125a403bf7841c58c2abf255abc98602b48ed0e | // Copyright (C) 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
*
* Copyright (C) 2000-2015, International Business Machines
* Corporation and others. All Rights Reserved.
... | C | oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/third_party/icu/source/tools/toolutil/uoptions.c | geminy/aidear | gpl-3.0 | 5,111 | 134 | codeparrot/github-code |
07268f97435b5cae78f47c8843abfa940c0d842eabb7e0b4b633bb0647cd9cc2 | namespace ShareX.ScreenCaptureLib
{
partial class FFmpegOptionsForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summ... | C# | ShareX.ScreenCaptureLib/Screencast/FFmpegOptionsForm.Designer.cs | WesselKuipers/ShareX | gpl-3.0 | 35,636 | 714 | codeparrot/github-code |
663651af0a9bb93d20090a167ca183cd2a692a3f0c7e5056c7c0573a09fb9fa2 | // Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim... | C | Detectors/ITSMFT/ITS/tracking/include/ITStracking/ClusterLines.h | sawenzel/AliceO2 | gpl-3.0 | 10,320 | 268 | codeparrot/github-code |
65f2b4ea5b4c5f1c8c23bbce0d72bdc2295ce2456afc655a466525809e33e014 |
#ifndef BOOST_MPL_LOWER_BOUND_HPP_INCLUDED
#define BOOST_MPL_LOWER_BOUND_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2001-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.... | C++ | src/boost/boost/mpl/lower_bound.hpp | kbogert/madp-win | gpl-3.0 | 3,814 | 144 | codeparrot/github-code |
ede681a67cf8ac53405fdd99ff1c3c3d504ea83ad89ab17c882be377bbee3e87 | /*=============================================================================
Copyright (c) 2001-2006 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
====================================... | C++ | win32/library3rd/boost_1_47/boost/fusion/container/vector/vector.hpp | beiko-lab/gengis | gpl-3.0 | 4,543 | 152 | codeparrot/github-code |
6574e55c1e36bcfd3216484fd73af70f65c114a3c446313d6cc52db18247881d | /* GIMP - The GNU Image Manipulation Program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* gimppluginprocframe.c
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either versi... | C | app/plug-in/gimppluginprocframe.c | mirecta/gimp | gpl-3.0 | 6,605 | 222 | codeparrot/github-code |
fb39c9fb5df2f3c47055a969ea86737c34f491a122bd4d90d3b624e233e53268 | -----------------------------------------
-- Spell: Tornado II
-- Deals wind damage to an enemy and lowers its resistance against ice.
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
-----------------------------------------
function onMagicCastingCheck(cast... | Lua | scripts/globals/spells/tornado_ii.lua | TeoTwawki/darkstar | gpl-3.0 | 1,270 | 38 | codeparrot/github-code |
1c9369fe0b8f195c0e69b9ee9171249542bc72588f3b4239200cb9b962090cc8 | package info.novatec.inspectit.agent.connection;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
/**
* <b>IMPORTANT:</b> The class code is copied/taken from <a
* href="http://www.onjava.com/pub/a/onjava/2001/10/17/rmi.html.">O'REILLY onJava.com</a>... | Java | Agent/src/info/novatec/inspectit/agent/connection/ServerUnavailableException.java | kugelr/inspectIT | agpl-3.0 | 888 | 36 | codeparrot/github-code |
d934e5fdea5dc9129609329f23e88e4b4a79ee78495ad6f84920db76f58ed964 | (function () {
var ns = $.namespace('pskl.utils');
ns.Dom = {
/**
* Check if a given HTML element is nested inside another
* @param {HTMLElement} node Element to test
* @param {HTMLElement} parent Potential Ancestor for node
* @param {Boolean} excludeParent set to true if the par... | JavaScript | src/js/utils/Dom.js | mako05/piskel | agpl-3.0 | 1,049 | 40 | codeparrot/github-code |
70648eeae8ab3645c8e635e7f05c3e0f421ebb4dbb42ccba112c012e7dfeddb4 | //#############################################################################
//# #
//# Copyright (C) <2014> <IMS MAXIMS> #
//# #
... | Java | openmaxims_workspace/DomainObjects/src/ims/core/vitals/domain/objects/Metrics.java | open-health-hub/openMAXIMS | agpl-3.0 | 17,592 | 555 | codeparrot/github-code |
63b87b09dc9a10454dfff645fdbb9d45a5b39c4c28e1e182d2e08d39a7c84597 | # This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from decimal import Decimal
from numbers import Number
from django.forms import DecimalField
clas... | Python | shoop/admin/forms/fields.py | lawzou/shoop | agpl-3.0 | 1,234 | 36 | codeparrot/github-code |
efb9d4fb849803c30f6538748483fcfd6e723a529fa02f2033a4a03ed195a168 | /****************************************************************/
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* All contents are licensed under LGPL V2.1 */
/* See LICENSE for full restrictions ... | C | moose/modules/navier_stokes/include/kernels/NSMassInviscidFlux.h | gleicher27/Tardigrade | lgpl-2.1 | 884 | 32 | codeparrot/github-code |
c0cdf337a2d879256e624fe42885e5c3e54a7118fed0480bf4458b2b060b2e35 | <?php
/**
* @package dompdf
* @link http://dompdf.github.com/
* @author Benj Carson <benjcarson@digitaljunkies.ca>
* @author Fabien Ménager <fabien.menager@gmail.com>
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
*/
namespace Dompdf\FrameReflower;
use Dompdf\FrameDecor... | PHP | src/FrameReflower/Text.php | BrunoDeBarros/dompdf | lgpl-2.1 | 19,333 | 544 | codeparrot/github-code |
47c052202ddc3ef8da4a7073449cbdd89d7b8fcd635df37fa50f5c8c1d35b50c | /*
* Copyright (C) 2014, Evolved Binary Ltd
*
* This file was originally ported from FusionDB to eXist-db by
* Evolved Binary, for the benefit of the eXist-db Open Source community.
* Only the ported code as it appears in this file, at the time that
* it was contributed to eXist-db, was re-licensed under The GNU
... | Java | exist-core/src/main/java/org/exist/xquery/functions/map/MapType.java | wolfgangmm/exist | lgpl-2.1 | 10,095 | 314 | codeparrot/github-code |
d6e0d505ef4b11af071bfbe832fe0463f3e73939b581db32e7ce9e3a2d975c64 | <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1.0, minimum-scale=1"/>
<title>tadpolefordb - AXGrid</title>
<link rel="stylesheet" type="tex... | HTML | samples/tadpolefordb/index.html | thomasJang/axisj | lgpl-2.1 | 9,975 | 236 | codeparrot/github-code |
8986798571604838087dae24806b43ad9f6304f14dfb40565f472673441e7127 | /****************************************************************/
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* All contents are licensed under LGPL V2.1 */
/* See LICENSE for full restrictions ... | C++ | modules/tensor_mechanics/src/materials/ComputeFiniteStrainElasticStress.C | mellis13/moose | lgpl-2.1 | 1,894 | 49 | codeparrot/github-code |
84978ac4063f06a0b34122a8ffeffd79f67e86e6ec0124dae204f90e2b9f03f7 | /*
* Created on 03.12.2008
*
*/
package org.jdesktop.swingx.util;
import java.awt.CardLayout;
import java.awt.Component;
import java.awt.Container;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JComponent;
/**
* Quick stateful subclass: not shareable. With convenience
* card navigation ... | Java | swingx-demos/swingx-demos-content/src/main/java/org/jdesktop/swingx/util/XCardLayout.java | syncer/swingx | lgpl-2.1 | 1,241 | 63 | codeparrot/github-code |
5a2d5de69450323763f51dcb800242595a8fbd9e17f862809699d7526b268163 | /*
* bytestream.cpp - base class for bytestreams
* Copyright (C) 2003 Justin Karneges
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at... | C++ | src/irisnet/noncore/cutestuff/bytestream.cpp | tfar/iris-gsoc2010 | lgpl-2.1 | 7,314 | 260 | codeparrot/github-code |
0b4988275522b1643284ae01d5ec81078180ff31433cee5a9bc7140fe9c447ca | /* -*- c-basic-offset: 2; coding: utf-8 -*- */
/* Copyright(C) 2009 Brazil
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any la... | C | test/unit/core/test-expr.c | kenhys/groonga | lgpl-2.1 | 14,165 | 416 | codeparrot/github-code |
d847fe9840252412597b968efa859b2ec8fd3e975ccf1127ea6ecc24eb9cbb57 | function doDisplaySkinColorset(sel, colorset)
{
var skin = sel.options[sel.selectedIndex].value;
var params = new Array();
params["skin"] = skin;
params["colorset"] = colorset;
var response_tags = ['error', 'message', 'colorset_list'];
exec_xml('ncenterlite', 'getColorsetList', params, completeGetSkinColorset,... | JavaScript | modules/ncenterlite/tpl/js/ncenter_admin.js | xetown/xe-core | lgpl-2.1 | 958 | 32 | codeparrot/github-code |
ff6c2687faa6e8971c078e834911019377cfc1850e03ebd4caeaa5a9f65a0869 | #region License
// Copyright (c) 2007 James Newton-King
//
// 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,
/... | C# | trunk/tools/Json.Net/Source/Src/Newtonsoft.Json/Serialization/DynamicValueProvider.cs | consumentor/Server | lgpl-3.0 | 4,137 | 111 | codeparrot/github-code |
8fa2666d42389aae67ee18d900fd31e861dc70bc8659a13d1f4466d816fb3b5d | /** @addtogroup adc_file ADC peripheral API
@ingroup peripheral_apis
@author @htmlonly © @endhtmlonly
2009 Edward Cheeseman <evbuilder@users.sourceforge.net>
@author @htmlonly © @endhtmlonly
2012 Ken Sarkies <ksarkies@internode.on.net>
@author @htmlonly © @endhtmlonly
2014 Karl Palsson <karlp@tweak.net.... | C | lib/stm32/common/adc_common_v1.c | florolf/libopencm3 | lgpl-3.0 | 24,758 | 780 | codeparrot/github-code |
2bc53795701921117263ce12bd508612549015816c9225ac17b7daf90d4b25a3 | /**
* Copyright (c) 2006-2010 Spotify Ltd
*
* 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, merge, p... | C | ext/spotify_ruby/playtrack.c | robertcurtiscole/spotify_ruby | unlicense | 8,860 | 351 | codeparrot/github-code |
0bf40ea127d2d46ddc057d5b1d90845030345f6972bf9e8ab5edd11ed4cb79d3 | /*
* 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 | core/camel-management/src/test/java/org/apache/camel/management/ManagedInlinedProcessorTest.java | adessaigne/camel | apache-2.0 | 2,618 | 67 | codeparrot/github-code |
03462d7230f65cf7e4c9fd66c68a5a947b0b2b0bc0d20eee743f80ae10d66b20 | /*
* 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 ... | JavaScript | modules/web-console/frontend/app/components/page-queries/index.js | irudyak/ignite | apache-2.0 | 3,603 | 107 | codeparrot/github-code |
41332c633cb26646ecc456afd0c3c334c48c22a293df8f65e74f61ff86bebaf9 | // Õâ¸öÎļþ¶¨ÒåÁËEasyPRÀïËùÓÐÌØÕ÷Éú³ÉµÄº¯Êý
// ËùÊôÃüÃû¿Õ¼äΪeasypr
// Õâ¸ö²¿·ÖÖеÄÌØÕ÷ÓÉeasyprµÄ¿ª·¢ÕßÐÞ¸Ä
#include "../include/prep.h"
#include "../include/features.h"
/*! \namespace easypr
Namespace where all the C++ EasyPR functionality resides
*/
namespace easypr {
//! Ö±·½Í¼¾ùºâ
Mat histeq(Mat in)
{
Mat o... | C++ | src/core/features.cpp | linuxxx/EasyPR | apache-2.0 | 2,555 | 123 | codeparrot/github-code |
dc29cba350f1bed23fc13dec29a5fffc706dca8e307f2b986e6054ed96648b8f | /**
* 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-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/datadictionary/AttributeSecurity.java | mztaylor/rice-git | apache-2.0 | 6,439 | 194 | codeparrot/github-code |
ca6f9532d85d2bbfe9c7acb77dcd83f633e2fbed6f69e9f0819d8ee7b2d31059 | /*
* Copyright 2003-2017 Dave Griffith, Bas Leijdekkers
*
* 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 applicab... | Java | plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/initialization/StaticVariableUninitializedUseInspection.java | ingokegel/intellij-community | apache-2.0 | 3,664 | 110 | codeparrot/github-code |
60f1586980cd2cb30216c956aff5f42f43c9fc86e5ecddc501a344ebbea956c1 | /*
* 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 ... | Java | server/base/src/main/java/org/apache/accumulo/server/metadata/RootTabletMutatorImpl.java | milleruntime/accumulo | apache-2.0 | 3,977 | 123 | codeparrot/github-code |
c9a56183b849dc2c1f07c511c7aafac3506936760854ed65c8bddf4c30dc6d51 | /*
* Copyright 2008 ZXing 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 ... | Java | zxinglib/src/main/java/com/google/zxing/oned/Code128Reader.java | WangZzzz/Selection | apache-2.0 | 17,152 | 540 | codeparrot/github-code |
6b40a9e89f0a2bd76b58b7b4c5f9c8c7db63c84d0a477112d4cc22ac083c1145 | /*
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <string>
#include <utility>
#include <algorithm>
#include <vector>
#include "util/optional.h"
#include "util/name.h"
#include "util/rb_map.h"
#incl... | C++ | src/frontends/lean/calc.cpp | johoelzl/lean | apache-2.0 | 6,884 | 177 | codeparrot/github-code |
b5ff3dedea2c9351944a33447b8c4dd801e4ea6b59cdfddb063d424b65cec8d7 | /*
*
* Copyright 2018 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 agree... | C++ | third_party/grpc/src/core/lib/security/security_connector/alts/alts_security_connector.cc | dslomov/bazel | apache-2.0 | 10,570 | 265 | codeparrot/github-code |
00282926e99edf60b25f95f9c8b47cfd19811d9fd5438ca54a21e2e0cb73108f | package client
import (
"bytes"
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
gosignal "os/signal"
"strconv"
"strings"
log "github.com/Sirupsen/logrus"
"github.com/docker/docker/api"
"github.com/docker/docker/dockerversion"
"github.com/docker/docker/engin... | GO | api/client/utils.go | caofangkun/docker-docker | apache-2.0 | 7,375 | 277 | codeparrot/github-code |
84afd09a162e74531576213a82ba62d22def50e819f4a7c9585a69196dccd188 | /*
* Copyright 2015-present Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Java | protocols/ovsdb/api/src/main/java/org/onosproject/ovsdb/controller/driver/DefaultOvsdbClient.java | Phaneendra-Huawei/demo | apache-2.0 | 53,186 | 1,438 | codeparrot/github-code |
155407605801a1369e9653c2b7b49f96e7cb81bcce07ad86119092002421c20d | /*
* 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 | core/src/main/scala/org/apache/spark/api/python/PythonWorkerFactory.scala | WindCanDie/spark | apache-2.0 | 12,965 | 380 | codeparrot/github-code |
d1da2306949dc905c2e09975b3b40859eaa8e4c8105b492e37424987c24cd606 | /*
* Copyright (C) 2009 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 conditio... | C++ | third_party/WebKit/Source/web/WebElement.cpp | weolar/miniblink49 | apache-2.0 | 5,624 | 174 | codeparrot/github-code |
2d30d202bc5abed5fb359c7acdc8023fb9bbf1a2f8aafaf806d9460e12ce0662 | package com.yammer.tenacity.core.logging;
import com.netflix.hystrix.HystrixInvokableInfo;
import io.dropwizard.util.Generics;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static com.google.common.base.Preconditions.checkState;
/**
* Logs exceptions that are of (or a subclass of) the specified cl... | Java | tenacity-core/src/main/java/com/yammer/tenacity/core/logging/ExceptionLogger.java | yammer/tenacity | apache-2.0 | 1,824 | 55 | codeparrot/github-code |
328fc4eba4a03f6fb58244408cfabadf3f32556665db555c819df3e65e29798b | #! /usr/bin/env bash
#
# 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
# "L... | Shell | assemble/src/main/scripts/create-jshell.sh | milleruntime/accumulo | apache-2.0 | 3,388 | 98 | codeparrot/github-code |
8ff297792bd544e49d329cff55d997198d8f23e81a49e31bca5254c8f0540f9c | /*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this f... | Java | api/topology/src/main/java/org/apache/edgent/topology/services/TopologyBuilder.java | dlaboss/incubator-quarks | apache-2.0 | 1,543 | 48 | codeparrot/github-code |
5ebf5eaf8cecc2a2be6581469133720bcb7b41f6b0203fcdbaf3d555a6baa2d8 | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.functiondoc;
import java.util.ArrayList;
import java.util.Collection;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Linked... | Java | projects/OG-Financial/src/main/java/com/opengamma/financial/functiondoc/PortfolioDocumentation.java | DevStreet/FinanceAnalytics | apache-2.0 | 5,103 | 129 | codeparrot/github-code |
a5a0c8b8ac5fd5e326b0a6efde94a46f9255b32608c4ce9b46532fa9d3c1da4a | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
* Softwa... | JavaScript | lib/rhino/examples/SwingApplication.js | dound/google-closure-compiler | apache-2.0 | 4,126 | 111 | codeparrot/github-code |
b02d014a1268576a5f4e23f72424795bf74f70a00a7408f1accbd7934da86a12 | function Controller() {
function __alloyId9() {
var models = __alloyId8.models;
var len = models.length;
var rows = [];
for (var i = 0; len > i; i++) {
var __alloyId4 = models[i];
__alloyId4.__transform = {};
var __alloyId5 = Ti.UI.createTableViewR... | JavaScript | Resources/alloy/controllers/index.js | intelij/toDoList-1 | apache-2.0 | 6,013 | 160 | codeparrot/github-code |
6dec4ecc9773c3b1f75e15efc5c5169e42b3ef1d5b4b92c29b5a2bdc2eb48495 | /*
* 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... | Java | core/src/main/java/org/elasticsearch/action/bulk/BulkRequest.java | danielmitterdorfer/elasticsearch | apache-2.0 | 24,690 | 569 | codeparrot/github-code |
32f116098598a103210c5119f5c523533f51946ab4b9ce9ec9711fdf8b3f9bb9 | """Support for Legacy MQTT vacuum."""
import json
import logging
import voluptuous as vol
from homeassistant.components import mqtt
from homeassistant.components.mqtt import (
MqttAttributes,
MqttAvailability,
MqttDiscoveryUpdate,
MqttEntityDeviceInfo,
subscription,
)
from homeassistant.components... | Python | homeassistant/components/mqtt/vacuum/schema_legacy.py | sdague/home-assistant | apache-2.0 | 19,424 | 568 | codeparrot/github-code |
4496d523e4ec70b187c6f155231231a9ea643574ea8183e429a4acee8b85bcdf | /*****************************************************************************
* *
* OpenNI 1.x Alpha *
* Copyright (C) 2012 PrimeSense Ltd. *
... | C++ | Source/OpenNI/FilesOnly/FilesOnlyEvents.cpp | rxl194/OpenNI | apache-2.0 | 3,664 | 107 | codeparrot/github-code |
1e92b902d2dd8fd1ff4b67de92cc8c997a70d9f1837829eccaedcfb7c6548b85 | /*
* Copyright 2015 NEC 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 or agreed ... | Java | src/main/java/org/o3project/odenos/remoteobject/message/OdenosMessage.java | nis-sdn/odenos | apache-2.0 | 2,240 | 82 | codeparrot/github-code |
0989b9f182d785c0108bf86e8421a0a45c52d4b5d1eb33326c21608d53338e27 | package org.zstack.test.storage.ceph;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.componentloader.ComponentLoader;
import org.zstack.core.db.DatabaseFacade;
import org.zstack.header.identity.SessionInventory;
i... | Java | test/src/test/java/org/zstack/test/storage/ceph/TestCeph3.java | myxyz/zstack | apache-2.0 | 2,652 | 69 | codeparrot/github-code |
5c51853ddd07efd727f3d46c9f2b2e0f57407256f8e8f54e1b0e16a9ac4f243a | /* mbed Microcontroller Library
* Copyright (c) 2013-2014 ARM Limited
*
* 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 re... | C++ | yotta_modules/mbed-drivers/test/blinky/main.cpp | lbk003/mbed-cortexm | apache-2.0 | 1,145 | 39 | codeparrot/github-code |
af0fa6329be7080a9462cbbcc84592e5938185173ce271d2339dcf0d575bbe8f | // 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 RemoteFrameClient_h
#define RemoteFrameClient_h
#include "core/frame/FrameClient.h"
#include "core/frame/FrameTypes.h"
#include "core/loader/Fram... | C | third_party/WebKit/Source/core/frame/RemoteFrameClient.h | weolar/miniblink49 | apache-2.0 | 910 | 33 | codeparrot/github-code |
2500f4d95e640c831334e7579cce59678bfb3c78e0fe535b0ae113e50f4fe3ff | /******************************************
* *
* dcm4che: A OpenSource DICOM Toolkit *
* *
* Distributable under LGPL license. *
* See terms of license at gnu.org. *
* *
***********... | Java | dcm4jboss-all/tags/DCM4JBOSS_2_5_3/dcm4jboss-hl7/src/java/org/dcm4chex/archive/hl7/HL7Exception.java | medicayun/medicayundicom | apache-2.0 | 1,008 | 37 | codeparrot/github-code |
ad9b57672e1ee6e1e02ee54f7cf1172bfddcf38f48ae57d36e569ad61994f1c6 | /*
* 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... | Java | core/src/main/java/org/elasticsearch/action/admin/indices/stats/CommonStatsFlags.java | danielmitterdorfer/elasticsearch | apache-2.0 | 7,442 | 263 | codeparrot/github-code |
647d662caafb3427659aed004faa7628f3bfb4d9f40c46115cb1a3f45debb7c6 | /**
* 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... | Java | heron/storm/src/java/backtype/storm/testing/TestWordSpout.java | wangli1426/heron | apache-2.0 | 1,997 | 65 | codeparrot/github-code |
f9fe94f2b085a8053c1dcf83ce5a73080932177ea6546ea87b46e15e4a44aa1c | /*
* Copyright 2013 Stephane Godbillon (@sgodbillon)
*
* 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 applicabl... | Scala | bson/src/main/scala/typeclasses.scala | reactific/ReactiveMongo | apache-2.0 | 4,418 | 110 | codeparrot/github-code |
045a72edba0759da26fe5333c28685a79157a64363b572d0211c6a4bcafeb19f | package org.littleshoot.proxy;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.URL;
import org.eclipse.jetty.server.Server;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.littleshoot.proxy.impl.DefaultHttpProxyServer;
import static org.hamcrest.Matchers.l... | Java | src/test/java/org/littleshoot/proxy/IdleTest.java | isururanawaka/LittleProxy | apache-2.0 | 3,669 | 97 | codeparrot/github-code |
da5e9e3b68122533b985496634715fb804474162ccdb12329e94fcb4188a067a | /**
* 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... | Java | src/core/org/apache/hadoop/fs/FSClientReadProfilingData.java | shakamunyi/hadoop-20 | apache-2.0 | 5,733 | 185 | codeparrot/github-code |
7ad3f5ead9d0b366969ba00f9ba82500060276d03a38f0f4b9efdb9cec791bd4 | /*
Derby - Class org.apache.derby.iapi.store.raw.Corruptable
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 und... | Java | java/engine/org/apache/derby/iapi/store/raw/Corruptable.java | lpxz/grail-derby104 | apache-2.0 | 1,191 | 36 | codeparrot/github-code |
f1c2316061f8616d5fb8a5132fde99082d96b4f95f32f3ef7502b5eb5976674f | /*
* Copyright 2018 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... | Java | kie-wb-common-screens/kie-wb-common-data-modeller/kie-wb-common-data-modeller-client/src/test/java/org/kie/workbench/common/screens/datamodeller/client/DataModelerScreenPresenterValidationTest.java | romartin/kie-wb-common | apache-2.0 | 3,788 | 92 | codeparrot/github-code |
f6449cbcb1d7057acc0c336574eafd1415c32054047533987bdbfc041c5d9368 | /*
* 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.sql.planner;
import org.elasticsea... | Java | x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/planner/QueryTranslator.java | jmluy/elasticsearch | apache-2.0 | 26,546 | 693 | codeparrot/github-code |
30dccd8f0e92f78df41fe7ac4f820c5bdf18dfd27c8f2c9b888fe71e34fb77d3 | <html>
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="width: 600px; height: 400px; margin: 0 auto"></div>
<script>
$(function ... | HTML | visualization/metadata-retrieved(1).html | sumedha-12/evaluate_content_analysis_CSCI599 | apache-2.0 | 4,837 | 163 | codeparrot/github-code |
65c5f03d6e86cfeb5c0a75226857b8b71cf8fc8807d60846b8dd728eb6c166de | /*
* 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 ... | C | src/operator/tensor/elemwise_unary_op.h | saurabh3949/mxnet | apache-2.0 | 11,377 | 295 | codeparrot/github-code |
02a89e0049d9d90227a0f6fa88cbcd3ce8a6d21b01bb39653e320d6085abac91 | /*
* 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-cxf/src/test/java/org/apache/camel/component/cxf/spring/CxfEndpointBeanWithBusTest.java | adessaigne/camel | apache-2.0 | 3,103 | 71 | codeparrot/github-code |
aaa6b3b96c7031fa4ac6758f98c39988383a77e758750d67887d185fcf842196 | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.master.historicaltimeseries.impl;
import java.net.URI;
import javax.ws.rs.GET;
import javax.ws.rs.HEAD;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
impo... | Java | projects/OG-Master/src/main/java/com/opengamma/master/historicaltimeseries/impl/DataHistoricalTimeSeriesLoaderResource.java | jeorme/OG-Platform | apache-2.0 | 3,478 | 112 | codeparrot/github-code |
7b00f12b2bd133060d4327f4229d186898f3dc746ddd1606ca3177678276a659 | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.integration.tool.portfolio;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.Options;
import com.opengamma.component.tool.AbstractTool... | Java | projects/OG-Integration/src/main/java/com/opengamma/integration/tool/portfolio/PortfolioGeneratorTool.java | jeorme/OG-Platform | apache-2.0 | 2,205 | 60 | codeparrot/github-code |
200879e79ab9d525127f054c3c507f92fcc18326186da3f80ca7177fc180e557 | /*
* Copyright 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | Java | spring-cloud-starter-dataflow-server/src/test/java/org/springframework/cloud/dataflow/server/single/security/DataFlowClientAutoConfigurationAgaintstServerTests.java | trisberg/spring-cloud-dataflow | apache-2.0 | 6,448 | 156 | codeparrot/github-code |
2e1f89bee12595680ee42f32cd5173571e5f3f260da6fa979e397a513dcffe92 | /*
* 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... | Java | src/test/java/org/elasticsearch/indices/cache/CacheTests.java | arowla/elasticsearch | apache-2.0 | 11,785 | 178 | codeparrot/github-code |
1e04dd941fdd9da68ab9e490b7bf23fd5c9c050ee205e3500153325fbebc7a90 | /*
* Copyright (C) 2010 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 Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any ... | C | third_party/webrtc/include/chromium/src/third_party/WebKit/Source/modules/accessibility/AXProgressIndicator.h | ssaroha/node-webrtc | bsd-2-clause | 1,747 | 56 | codeparrot/github-code |
ae5b81bead01c15e9e3adc56988648b827e5cf2c676a2e40fb5515861b456e9f | class Nlopt < Formula
desc "A free/open-source library for nonlinear optimization"
homepage "http://ab-initio.mit.edu/nlopt"
url "http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz"
sha256 "8099633de9d71cbc06cd435da993eb424bbcdbded8f803cdaa9fb8c6e09c8e89"
head "https://github.com/stevengj/nlopt.git"
bottle ... | Ruby | nlopt.rb | ge11232002/homebrew-science | bsd-2-clause | 2,461 | 83 | codeparrot/github-code |
7b3944b48e416e66a6275a906706aef0d4d8ca0be76148a2455f9af57b472fef | cask 'cocktail' do
if MacOS.version == :snow_leopard
version '5.1'
sha256 '630fc5236e95d5ec36c0de4b487f8ece76d8f02ecd00ec4b37124ddd0eed0f34'
url "https://www.maintain.se/downloads/sparkle/snowleopard/Cocktail_#{version}.zip"
appcast 'https://www.maintain.se/downloads/sparkle/snowleopard/snowleopard.x... | Ruby | Casks/cocktail.rb | deanmorin/homebrew-cask | bsd-2-clause | 2,457 | 52 | codeparrot/github-code |
bc1b225a512dce39f5e5630a345485079bf778a1f6d2e43b10965af4ce54349f | // 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.
#ifndef TransformComponent_h
#define TransformComponent_h
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/CoreExport.h"
#include "core/css/C... | C | third_party/WebKit/Source/core/css/cssom/TransformComponent.h | js0701/chromium-crosswalk | bsd-3-clause | 1,360 | 48 | codeparrot/github-code |
da649f71f08c1a577a638d918241cef72fdd8a9b95c285241b73fd392352e032 | // 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.
/** @fileoverview Suite of tests for site-settings-category. */
cr.define('site_settings_category', function() {
function registerTests() {
suite('S... | JavaScript | chrome/test/data/webui/settings/site_settings_category_tests.js | js0701/chromium-crosswalk | bsd-3-clause | 3,296 | 100 | codeparrot/github-code |
b52302b66eb1968d045828ed88916d27902a47b73b6669879afa1c7d59a99b87 | from __future__ import unicode_literals
from threading import local
from django.utils import six
from django.utils.encoding import force_text, iri_to_uri
from django.utils.functional import lazy
from django.utils.six.moves.urllib.parse import urlsplit, urlunsplit
from django.utils.translation import override
from .e... | Python | django/urls/base.py | ABaldwinHunter/django-clone-classic | bsd-3-clause | 5,754 | 186 | codeparrot/github-code |
b1e085a225bc23f25375b0d03fd6a1208c0b1e2835a9bf4566539f110d0c5f19 | // 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/progress_bar.h"
#include <algorithm>
#include <string>
#include "base/logging.h"
#include "base/macros.h"
#include "thir... | C++ | ui/views/controls/progress_bar.cc | axinging/chromium-crosswalk | bsd-3-clause | 10,152 | 320 | codeparrot/github-code |
25da9d56445eae6becaf1d82f849adfd6f58ab440694cc873ed636b2d13d011f | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This file implements the Windows service controlling Me2Me host processes
// running within user sessions.
#include "remoting/host/desktop_proce... | C++ | remoting/host/desktop_process.cc | danakj/chromium | bsd-3-clause | 6,445 | 194 | codeparrot/github-code |
eac3996d380015345554a0371f51e032006e835210447e1495cc649501d5eaa5 | ////////////////////////////////////////////////////////////////////////////////
// //
// AliFemtoCorrFctnGammaMonitor - A correlation function that analyzes //
// two particle correlations with respect to the azimuthal angle (phi) ... | C | PWGCF/FEMTOSCOPY/AliFemtoUser/AliFemtoCorrFctnGammaMonitor.h | dlodato/AliPhysics | bsd-3-clause | 1,875 | 50 | codeparrot/github-code |
7b9b03d152f2e31ebe6840aafb0f63b2c0ff7c42d1358355a561be5575e78d70 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/message_loop.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/autocomplete/autocomplete_match.h"
#include "chrome/b... | C++ | chrome/browser/autocomplete/builtin_provider_unittest.cc | robclark/chromium | bsd-3-clause | 10,623 | 228 | codeparrot/github-code |
17aa5f1a1ba1ee06b0c92134b84508c1a0f746dc9f9bde3ff227bf12483a07b3 | #ifndef _DEPOOLSET_H
#define _DEPOOLSET_H
/*-------------------------------------------------------------------------
* drawElements Memory Pool Library
* --------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you ... | C | third_party/angle/third_party/VK-GL-CTS/src/framework/delibs/depool/dePoolSet.h | endlessm/chromium-browser | bsd-3-clause | 17,448 | 578 | codeparrot/github-code |
0b48bc7a361957196578360fe1dfbcc1f3635d8e2e22a05e80be3326cc3372c1 | /*
* Copyright (c) 2006 The Regents of The University of Michigan
* 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, ... | C++ | src/dev/i8254xGBe.cc | xiaoyuanW/gem5 | bsd-3-clause | 77,203 | 2,571 | codeparrot/github-code |
4af505c5b39f60b1dec79929a618c63c407030f6ec9df46ef78df4a9639de6f6 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/spdy/bidirectional_stream_spdy_impl.h"
#include <utility>
#include "base/bind.h"
#include "base/location.h"
#include "base/logging.h"
#inc... | C++ | net/spdy/bidirectional_stream_spdy_impl.cc | chromium/chromium | bsd-3-clause | 13,051 | 423 | codeparrot/github-code |
ce6517473e438c6cec06fccf77f0d6542d5c87101b1a34f980ec2629619dd8a4 |
#include "toonzqt/schematicnode.h"
#include <QGraphicsSceneMouseEvent>
#include <QStyleOptionGraphicsItem>
#include <QKeyEvent>
#include <algorithm>
#include <QApplication>
#include <QTextDocument>
#include <QTextCursor>
#include <QTextBlock>
#include <QMenuBar>
#include <QPolygonF>
#include "tundo.h"
#include "toonz... | C++ | toonz/sources/toonzqt/schematicnode.cpp | tomosu/opentoonz | bsd-3-clause | 28,059 | 901 | codeparrot/github-code |
d98de66223c48823b9377479491bcd11e006df7b123d9ac7e18678fa2adc2f0d | // FileStreams.h
#ifndef __FILESTREAMS_H
#define __FILESTREAMS_H
#ifdef _WIN32
#define USE_WIN_FILE
#endif
#ifdef USE_WIN_FILE
#include "../../Windows/FileIO.h"
#else
#include "../../Common/C_FileIO.h"
#endif
#include "../../Common/MyCom.h"
#include "../IStream.h"
class CInFileStream:
public IInStream,
public... | C | plugins/newarc/src/plugins/7z.all/7z.headers/7zip/Common/FileStreams.h | FarGroup/FarManager | bsd-3-clause | 2,991 | 145 | codeparrot/github-code |
866c26f4191583d38e277d63b233e64b4ed9258338f500dc60c419e39c361fba | // 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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_CANVAS_RESOURCE_PROVIDER_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_CANVAS_RESOURCE_PROV... | C | third_party/blink/renderer/platform/graphics/canvas_resource_provider.h | chromium/chromium | bsd-3-clause | 16,594 | 424 | codeparrot/github-code |
ccbf9b13750b2a6ce9ffbda5338c15aefac9aa19c9f01d1cbb1fb3e0563a2d06 | // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "db/version_edit.h"
#include "db/version_set.h"
#include "util/coding.h"
namespace leveldb {... | C++ | third_party/leveldatabase/src/db/version_edit.cc | endlessm/chromium-browser | bsd-3-clause | 6,749 | 258 | codeparrot/github-code |
d9c417f1c2a3d39d568840c8bfc18bed83e7c7415eabc71343467e5e42d3d70c | # 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.
import json
from profile_chrome import chrome_startup_tracing_agent
from systrace import decorators
from systrace.tracing_agents import agents_unittest
cl... | Python | third_party/catapult/systrace/profile_chrome/chrome_startup_tracing_agent_unittest.py | endlessm/chromium-browser | bsd-3-clause | 1,066 | 33 | codeparrot/github-code |
1150e3a276be1acccaf49ba1d9a641d01ae1edcd3bdd216e0e4b65448ece2722 | // 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/apps/app_service/instance_registry_updater.h"
#include "components/services/app_service/public/cpp/instance_registry.h"
namespa... | C++ | chromium/chrome/browser/apps/app_service/instance_registry_updater.cc | ric2b/Vivaldi-browser | bsd-3-clause | 4,008 | 114 | codeparrot/github-code |
5120513bf8752afb1b39ecd1b202b69ae85d7bf3eda53e339d62f116d741e868 | <!DOCTYPE html>
<!--
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
-->
<html>
<head>
<meta charset="utf-8">
<title>Using API to Customize Dialog Windows — CKEditor Sample</title>
<script src="../../../ckeditor.js"></scri... | HTML | yaycrawler.admin/src/main/resources/static/assets/global/plugins/ckeditor/samples/plugins/dialog/dialog.html | liushuishang/YayCrawler | lgpl-3.0 | 6,976 | 188 | codeparrot/github-code |
35faa2c2f7a1c5856c6f8ea41c8d3d62b509e2f3329e8d82ba8c4b0396029844 | // JSLint settings:
/*global
alert,
clearTimeout,
console,
jQuery,
setTimeout,
Zepto
*/
var APP = (function($, window, document, undefined) {
'use strict';
$(document).ready(function() {
APP.go();
});
// "Private constant" vars.
var body;
return {
// APP.go
go: function() {
... | JavaScript | web/public_html/themes/unsemantic/assets/javascripts/demo.js | allengaller/zenx-tmall | mit | 1,614 | 76 | codeparrot/github-code |
7d391f171b1cef33eaa52015682ce2e5674e499a30c04317976c2f26cc677507 | //
// PlaybackErrorQueryValueEntry.cs
//
// Author:
// Alexander Kojevnikov <alexander@kojevnikov.com>
//
// Copyright (C) 2009 Alexander Kojevnikov
//
// 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... | C# | src/Core/Banshee.ThickClient/Banshee.Query.Gui/PlaybackErrorQueryValueEntry.cs | mono-soc-2011/banshee | mit | 2,955 | 90 | codeparrot/github-code |
6c11787df8034489d9a9c291e0a20915f38e09f6360ed1a418bcc4d94f756dab | // $Header$
/* ----------------------------------------------------------------------------
parameters.C
mbwall 28jul94
Copyright (c) 1995 Massachusetts Institute of Technology
all rights reserved
DESCRIPTION:
Definition of the parameter object and a container list for it. I did this
as ... | C++ | pcl-qt_widgets/galib/ga/GAParameter.C | isnow4ever/pcl | mit | 16,600 | 637 | codeparrot/github-code |
ec7c029f89aae28fba90c204f8d4de638e47edee0439b6299f7aefeb58cdd5c7 | // Helper function to call MS Graph API endpoint
// using authorization bearer token scheme
function callMSGraph(endpoint, accessToken, callback) {
const headers = new Headers();
const bearer = `Bearer ${accessToken}`;
headers.append("Authorization", bearer);
const options = {
method: "GET",
... | JavaScript | samples/msal-browser-samples/VanillaJSTestApp2.0/app/ssoSilentNoHint/graph.js | AzureAD/microsoft-authentication-library-for-js | mit | 2,160 | 65 | codeparrot/github-code |
31d6d951cb7406a8505c79641f9c0ae7cc53631445b65cb0a9fc69ae0b2b6b29 | using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
namespace Microsoft.Xna.Framework.Media
{
public sealed class Album : IEquatable<Album>, IDisposable
{
private string name;
private int hashcode;
MediaSource mediaSourc... | C# | src/Microsoft.Xna.Framework/Media/Album.cs | mjs513/monoxna | mit | 3,081 | 130 | codeparrot/github-code |
09f4c902dfd3b2ce196d0a5626bdc5515501f6bc435eaa6dade3a357c1d490e2 | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | Java | src/main/java/org/spongepowered/common/mixin/core/world/gen/populators/MixinWorldGenTrees.java | DDoS/SpongeCommon | mit | 4,112 | 115 | codeparrot/github-code |
7f94acb290fd9be73ae387ccb58f1a8f93be50543dfca80d207d50d1a63c5de0 | /* global $, d3 */
/* global tab7content, tab10_1_1content, tab10_1_2content, tab10_1_2contenttp,
tab10_1_3content, tab10_1_3contenttp, tab10_1_4content, tab10_2_1content,
tab10_2_2content, tab10_2_3content, tab10_2_3contenttp, tab10_2_4content,
tab13_1content, tab13_1contenttp, tab13_2content, tab13_3content,
tab13_3c... | JavaScript | external/survey-2018/full.js | nodejs/new.nodejs.org | mit | 34,915 | 776 | codeparrot/github-code |
129d739004cdf8cf1a11294876c301ddd30fe9c85cbc1d8e2b070a3a837c0d55 | <!DOCTYPE HTML>
<html>
<head>
<title>Timeline | Grid styling</title>
<script src="../../../dist/vis.js"></script>
<link href="../../../dist/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body, html {
font-family: sans-serif;
}
/* alternating column... | HTML | views/js/vis-4.18.0/examples/timeline/styling/gridStyling.html | AnttiKurittu/kirjuri | mit | 1,467 | 54 | codeparrot/github-code |
66ea80a4ad2ca179a715adc8615596996ce9b0d26b5169c3bb1e62968899c155 | <html>
<head>
<script type="text/javascript" src="../libs/jquery/jquery-2.1.4.min.js"></script>
<script src="../src/kickstart/ks-core.js"></script>
<script src="../src/kickstart/ks-route.js"></script>
</head>
<body>
See console
<script>
//<![CDATA[
$(function () {
app.define({
"main": {
"start": "app/ma... | HTML | test/ks.html | cristianofx/w2ui | mit | 1,798 | 84 | codeparrot/github-code |
4942ca25d10dfb8aacba24f7b99dee10b97e2b0082e7825996cf383ba0b187f6 | /*
* 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 | tomcat_files/7.0.61/JspUtil.java | plumer/codana | mit | 35,684 | 1,013 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.