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 |
|---|---|---|---|---|---|---|---|---|
af998da984244275d439c7a38a8dd235df6eb9e1ae1b7da97e287ac467389030 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/webshare/win/fake_data_transfer_manager.h"
#include <wrl/module.h>
#include "base/bind.h"
#include "base/callback_helpers.h"
#i... | C++ | chromium/chrome/browser/webshare/win/fake_data_transfer_manager.cc | ric2b/Vivaldi-browser | bsd-3-clause | 18,470 | 517 | codeparrot/github-code |
cde65ee625b8eef5faeeb4574f247f73f5f4e7ac42a6f7dbabea323e36dc48db | /* Copyright (c) 2008-2015, Avian Contributors
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice appear
in all copies.
There is NO WARRANTY for this software. See l... | C | src/avian/jnienv.h | bgould/avian | isc | 1,066 | 35 | codeparrot/github-code |
2944ebae54f26c51494f1f1900a25367fed3f9fa91ab020b5b65dfa52f5fcbe8 | // wrapped by build app
define("FileSaver/demo/demo", ["dojo","dijit","dojox"], function(dojo,dijit,dojox){
/* FileSaver.js demo script
* 2012-01-23
*
* By Eli Grey, http://eligrey.com
* License: X11/MIT
* See LICENSE.md
*/
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/demo/demo.js */
(... | JavaScript | public/js/release/FileSaver/demo/demo.js | dawenx/p3_web | mit | 5,888 | 218 | codeparrot/github-code |
d6effb7f00c3708091ce3486f6de27a12327ccf928f3631cea4da12b49dd98ca | /* ****************************************************************************
* Start Flags series code *
*****************************************************************************/
var symbols = SVGRenderer.prototype.symbols;
// 1 - set default options
defaultPlotOptions.flags = merge(defaultPlotO... | JavaScript | htdocs/lib/highcharts.com/js/parts/FlagsSeries.js | Ecodev/gims | mit | 8,576 | 327 | codeparrot/github-code |
8a8d00d0dd0f0f275f2a7b2fa56d5251c1946d500c63273d37b71f01d6ef16e1 | -- @docfuncs @{
function print(...)
local msg = ""
local args = {...}
local appendSpace = #args > 1
for i,v in ipairs(args) do
msg = msg .. tostring(v)
if appendSpace and i < #args then
msg = msg .. ' '
end
end
g_logger.log(LogInfo, msg)
end
function pinfo(msg)
g_logger.log(LogInfo,... | Lua | modules/corelib/util.lua | Cavitt/otclient_mapgen | mit | 7,510 | 365 | codeparrot/github-code |
8352549231f8a645902adf285cd41291a9a435f8c6f03732aab348c0fe6f309e | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
using Nuwa;
using WebStack.QA.Test.OData.Common;
using Xunit;
using System.Net.Http;
using Newtonsoft.Json.Linq;
using System.Net;
using System.Web.Http.OData;
using System.Net.Http.Headers;
namespace WebStack.QA.Test.OData.Quer... | C# | OData/test/E2ETestV3/WebStack.QA.Test.OData/QueryComposition/JsonSingleResultSelectExpandTests.cs | lungisam/WebApi | mit | 16,113 | 373 | codeparrot/github-code |
9a0377a4bc2789f10813cc525bfd32a562e77ff62a01065ab47e0556c0f5006b | if (typeof (QP) == "undefined" || !QP) {
var QP = {}
};
(function() {
/* Draws the lines linking nodes in query plan diagram.
root - The document element in which the diagram is contained. */
QP.drawLines = function(root) {
if (root === null || root === undefined) {
// Try... | JavaScript | src/main/webapp/javascripts/libs/xplans/mssql.js | jemmy655/sqlfiddle | mit | 3,160 | 80 | codeparrot/github-code |
f357df53e48059ece37e9aa80684c0b63533923667c97991e67c9a6296fceec8 | # frozen_string_literal: true
class Pirate < ActiveRecord::Base
belongs_to :parrot, validate: true
belongs_to :non_validated_parrot, class_name: "Parrot"
has_and_belongs_to_many :parrots, -> { order("parrots.id ASC") }, validate: true
has_and_belongs_to_many :non_validated_parrots, class_name: "Parrot"
has_a... | Ruby | activerecord/test/models/pirate.rb | baerjam/rails | mit | 3,929 | 101 | codeparrot/github-code |
005c9ef19245e6d734a7da6d85163b0d3a2e7eaccb809c164b93f12c33178a15 | import {
describe,
ddescribe,
it,
iit,
xit,
xdescribe,
expect,
beforeEach,
el
} from 'angular2/testing_internal';
import {EventManager, EventManagerPlugin} from 'angular2/platform/common_dom';
import {DomEventsPlugin} from 'angular2/src/platform/dom/events/dom_events';
import {NgZone} from 'angular2/s... | TypeScript | modules/angular2/test/platform/dom/events/event_manager_spec.ts | robertmesserle/angular | mit | 4,328 | 112 | codeparrot/github-code |
e2ebfd04f2043d1d13ba04cf8571fb09a1dbb56753cb0f54f1fe94515ea69316 | /**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v18.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var LinkedList = (function () {
function LinkedList() {
... | JavaScript | ajax/libs/ag-grid/18.0.0/lib/misc/linkedList.js | sashberd/cdnjs | mit | 1,186 | 48 | codeparrot/github-code |
7a6cc8119d9e72281faa7c2f8b94a384a3035fea3d3e1079c15305146ca5d1a5 | /**
* This pagination style shows Previous/Next buttons, and page numbers only
* for "known" pages that are visited at least once time using [Next>] button.
* Initially only Prev/Next buttons are shown (Prev is initially disabled).
*
* [<Previous] [Next>]
*
* When user navigates through the pages using [Next>... | JavaScript | ajax/libs/datatables-plugins/1.11.5/pagination/simple_incremental_bootstrap.js | cdnjs/cdnjs | mit | 6,797 | 161 | codeparrot/github-code |
712450c3ba659d83a555ec1c9719e214352e836d0622a435aa5bfd2f48280c0a | class PassengerStatus < Scout::Plugin
def build_report
cmd = option(:passenger_status_command) || "passenger-status"
data = `#{cmd} 2>&1`
if $?.success?
stats = parse_data(data)
report(stats)
else
error "Could not get data from command", "Error: #{data}"
end
end
private
... | Ruby | passenger_status/passenger_status.rb | pingdomserver/scout-plugins | mit | 830 | 38 | codeparrot/github-code |
43573561e6fbb32ed67678c660dfe43e125ff3466c41a64f9998331717665581 |
%% bare_conf.tex
%% V1.3
%% 2007/01/11
%% by Michael Shell
%% See:
%% http://www.michaelshell.org/
%% for current contact information.
%%
%% This is a skeleton file demonstrating the use of IEEEtran.cls
%% (requires IEEEtran.cls version 1.7 or later) with an IEEE conference paper.
%%
%% Support sites:
%% http://www.mi... | TeX | papers/templates/ieeetran/bare_conf.tex | andrewbolster/thesis | epl-1.0 | 22,389 | 602 | codeparrot/github-code |
2f2dfd84f7a66a0f4456fdff8bb8e6d06257a350993e6a21931b5a9060311d09 | /* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later versi... | C | user/mysql/sql/ha_myisam.h | nmacs/lm3s-uclinux | gpl-2.0 | 5,183 | 133 | codeparrot/github-code |
0fda4e445650056d4647fc351bbf53d8ad7c9db10205a9c98ca1ff4bc9638090 | // license:BSD-3-Clause
// copyright-holders:Jim Stolis
/*
Arachnid - English Mark Darts
Driver by Jim Stolis.
--- Technical Notes ---
Name: English Mark Darts
Company: Arachnid, Inc.
Year: 1987/88/89/90
--- Hardware ---
A 6809 CPU (U3) is clocked by a 556 (U2) circuit with 3 Pi... | C++ | src/mame/drivers/arachnid.cpp | h0tw1r3/mame | gpl-2.0 | 14,284 | 474 | codeparrot/github-code |
8ee7e3bd948adc325889cbb46e15e9dc2607886191d1ce318b95bafc04fd067b | /*
* Driver for keys on TCA6416 I2C IO expander
*
* Copyright (C) 2010 Texas Instruments
*
* Author : Sriramakrishnan.A.G. <srk@ti.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software F... | C | drivers/input/keyboard/tca6416-keypad.c | huzl008/zeda-android-kernel | gpl-2.0 | 8,045 | 351 | codeparrot/github-code |
c24d477653c501cbdca480a12792fc7b2b7b2ba4338b3487083a46332f395321 | /* Mapping table for IBM1133.
Copyright (C) 2001-2013 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Masahide Washizawa <washi@jp.ibm.com>, 2001.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General ... | C | uefi/userspace/glibc/iconvdata/ibm1133.h | SanDisk-Open-Source/SSD_Dashboard | gpl-2.0 | 7,403 | 128 | codeparrot/github-code |
c08f0b1237e9d09c42d51caa04dfaf289c4018d3e63aba314e0b2661ce004cf0 | package org.checkerframework.checker.regex.qual;
import org.checkerframework.qualframework.poly.SimpleQualifierParameterAnnotationConverter;
import org.checkerframework.qualframework.poly.qual.Wildcard;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retent... | Java | checker/src/org/checkerframework/checker/regex/qual/Var.java | renatoathaydes/checker-framework | gpl-2.0 | 1,075 | 37 | codeparrot/github-code |
810870c0c37409be50102fac3ce5c111fa07077cb2fd24fd1886066fe559c840 | /*
* drivers/gpu/ion/ion_chunk_heap.c
*
* Copyright (C) 2012 Google, Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed ... | C | linux/linux-3.4.y/drivers/gpu/ion/ion_chunk_heap.c | csolg/hi35xx-buildroot | gpl-2.0 | 4,826 | 179 | codeparrot/github-code |
280e4a8bbcc82bb127602fb47ff213c7bb3dfb27ef7b01609d8773367e82c17b | <?php
/*
* @package Joomla.Framework
* @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* @component Phoca Component
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
* @license http://www.gnu.org/c... | PHP | tmp/install_56542e012168b/site/views/map/view.html.php | xbegault/clrh-idf | gpl-2.0 | 9,126 | 250 | codeparrot/github-code |
4f886b4f86f3d695dc8f0ee550fae520b266e9b5edcda4978153a065182732ed | /*
This file is part of Cyclos (www.cyclos.org).
A project of the Social Trade Organisation (www.socialtrade.org).
Cyclos is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of th... | Java | src/nl/strohalm/cyclos/controls/access/transactionpassword/ManageTransactionPasswordAction.java | robertoandrade/cyclos | gpl-2.0 | 5,153 | 120 | codeparrot/github-code |
0ae0ac9dee068028ffaf28b642befb1bf8018d284de47fdf2ec072b7e50be8a3 | #ifndef GTIA_H_
#define GTIA_H_
#include "atari.h"
#include "screen.h"
#define GTIA_OFFSET_HPOSP0 0x00
#define GTIA_OFFSET_M0PF 0x00
#define GTIA_OFFSET_HPOSP1 0x01
#define GTIA_OFFSET_M1PF 0x01
#define GTIA_OFFSET_HPOSP2 0x02
#define GTIA_OFFSET_M2PF 0x02
#define GTIA_OFFSET_HPOSP3 0x03
#define GTIA_OFFSET_M3PF 0x03... | C | src/gtia.h | lutris/atari800 | gpl-2.0 | 3,876 | 139 | codeparrot/github-code |
d3801f636508089dc8568ce85ae974dac2306321a73be15ccd082683ff008efc | /* Copyright (c) 2009-2010, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the ho... | C | lge/com_device/display/lcd_mipi_sharp_video_wvga_pt.c | mtmichaelson/LG_Spectrum_Kernel | gpl-2.0 | 4,795 | 140 | codeparrot/github-code |
e46fbf4ff937b4f164c1b19da932bff0068fdb8b580c6b6526d60d505b6e50d4 | /* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04... | C++ | src/USER-FEP/pair_coul_cut_soft.cpp | slitvinov/lammps-swimmer | gpl-2.0 | 10,990 | 377 | codeparrot/github-code |
fc483956bf1974bb2c41dd868054ed4349bdcde437387b6760937c243ed29291 | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>StartupApplications Class Reference</title>
<link href="classic.css" rel="stylesheet" type="text/css" />... | HTML | doc/html/startupapplications.html | liuyanghejerry/qtextended | gpl-2.0 | 9,247 | 111 | codeparrot/github-code |
9664b71e4a870987b310a4b7b0e64f769c3011681994ebd9e023ee73f97139d5 | /*
* Written by Oron Peled <oron@actcom.co.il>
* Copyright (C) 2011, Xorcom
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or... | C | linux/drivers/dahdi/xpp/card_echo.c | Evangileon/dahdi | gpl-2.0 | 9,045 | 365 | codeparrot/github-code |
a22fa376ccb54cfee6d551b130da92406694800e753094049d05d8e5f78abdb1 | /*
* lec.c: Lan Emulation driver
*
* Marko Kiiskila <mkiiskila@yahoo.com>
*/
#define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/bitops.h>
#include <linux/capability.h>
/* We are ethernet device */
#include <linux/if_ether.h>
#include <linux/... | C | net/atm/lec.c | bas-t/linux_media | gpl-2.0 | 61,120 | 2,277 | codeparrot/github-code |
37c64abf6111592f6e877feb586ebe875c0c13c70d18a510c228ad1c33c1be35 | #ifndef _ASM_GENERIC_BITOPS_FLS64_H_
#define _ASM_GENERIC_BITOPS_FLS64_H_
#include <asm/types.h>
/*
... | C | include/asm-generic/bitops/fls64.h | holyangel/LGE_G3 | gpl-2.0 | 821 | 37 | codeparrot/github-code |
2a42ce2bdb8ed64bb539c82fe1482fca09028dbc7e1645e7d14a90b1a1010a9b | // license:GPL-2.0+
// copyright-holders:Dirk Best,Carl
/***************************************************************************
Intel 8089 I/O Processor
***************************************************************************/
#include "i8089.h"
#include "i8089_channel.h"
//****************************... | C++ | src/devices/cpu/i8089/i8089.cpp | RJRetro/mame | gpl-2.0 | 12,156 | 381 | codeparrot/github-code |
24ffe5d24c6b8d4fee659b4a7ef4e868453c246fdb68671b0056f2e57e095d89 | /*
* ac_generator.h
*
* This file is part of NEST.
*
* Copyright (C) 2004 The NEST Initiative
*
* NEST is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at... | C | models/ac_generator.h | SepehrMN/nest-simulator | gpl-2.0 | 6,410 | 269 | codeparrot/github-code |
86a82351b66a42d4e34d2b275540078d0a32479a9e00c66ac6cc20cb5003929a | -- Copyright 2009-2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local type, next, pairs, ipairs, loadfile, table
= type, next, pairs, ipairs, loadfile, table
local tonumber, tostring, math = tonumber, tostring, math
local require = require
local nxo = require "nixio... | Lua | package/luci/modules/luci-base/luasrc/model/network.lua | Irdroid/Irdroid-WiFi | gpl-2.0 | 33,786 | 1,580 | codeparrot/github-code |
358b04d14dabf4db66bc9be002f3fd7f0cc06cb5a99bce23f8bfbb492d4fd0e9 | /* Definitions of target machine for GNU compiler for Xilinx MicroBlaze.
Copyright (C) 2009-2014 Free Software Foundation, Inc.
Contributed by Michael Eager <eager@eagercon.com>.
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... | C | gcc/config/microblaze/microblaze.h | embecosm/avr-gcc | gpl-2.0 | 33,730 | 947 | codeparrot/github-code |
bc16b7a133456af84d76c468f1c93256123afa06e234ea12fc7509b055877563 | /* COVERAGE: sendfile */
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/sendfile.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
int main ()
{
int fd, read_fd;
int write_fd;
struct stat stat_buf;
off_t offset = 0;
char buff[22]; // Note below 22 == ... | C | testsuite/systemtap.syscall/sendfile.c | amitkr/systemtap | gpl-2.0 | 1,044 | 48 | codeparrot/github-code |
f8378360f0c23af77a5e153fb5fd9aa9a781a120eb1e5c18def392e49e3a50d0 | #!/usr/bin/perl -w
#==========================================================
#
# plot_surf_model.pl
# Carl Tape
# 15-Jan-2010
#
# Plot the source time function, the velocity model for the synthetics,
# and the velocity model for the data (optional).
# This program can executed from wave2d.f90.
#
# iopt = 1 : ... | Perl | utils/ADJOINT_TOMOGRAPHY_TOOLS/iterate_adj/SEM2D_iterate/PLOTTING/plot_surf_model.pl | kbai/specfem3d | gpl-2.0 | 13,293 | 345 | codeparrot/github-code |
8f5c7887be1f982c48428def5846bfdefc858aeb677fc36aaea2fc342286ae17 | /* Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2003.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publ... | C | nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c | stephenR/glibc-fpp | gpl-2.0 | 2,817 | 95 | codeparrot/github-code |
f5a3fe9b00fa5ac437a189a39ab752a9f1d08b99254436b9919f2f04d84cbbfc | /*****************************************************************************
* loadsave.c : Playlist loading / saving functions
*****************************************************************************
* Copyright (C) 1999-2004 VLC authors and VideoLAN
* $Id$
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
* ... | C | vlc/src/playlist/loadsave.c | qenter/vlc-android | gpl-2.0 | 7,210 | 231 | codeparrot/github-code |
332e2bcf84f939b621e9a826f4b73233be41908e00e806c1b17126fb4954fcd0 | /****************************************************************************
**
** This file is part of the Qt Extended Opensource Package.
**
** Copyright (C) 2009 Trolltech ASA.
**
** Contact: Qt Extended Information (info@qtextended.org)
**
** This file may be used under the terms of the GNU General Public License
... | C | src/settings/hwsettings/pensettingswidget.h | radekp/qtmoko | gpl-2.0 | 2,632 | 95 | codeparrot/github-code |
c167346073a5cbc7e7ed0db0a8432e98801c534a7629c6da20b001148a92851f | /*
* Copyright 2010-2016 OpenXcom Developers.
*
* This file is part of OpenXcom.
*
* OpenXcom 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 ... | C++ | src/Geoscape/DogfightErrorState.cpp | Darineth/OpenXcom | gpl-3.0 | 3,044 | 108 | codeparrot/github-code |
abfdbea60f53f005fc4fa4d273a88d1e21f0b362bb67efb3236e02822ae01360 | /*
* StaticChartXAxisInverse.java of project jchart2d, a demonstration
* of the minimal code to set up a chart with static data and an
* inverse x axis.
* Copyright (C) 2007 - 2011 Achim Westermann, created on 10.12.2004, 13:48:55
*
* This library is free software; you can redistribute it and/or
* modif... | Java | third_party/lcm/lcm-java/jchart2d-code/src/info/monitorenter/gui/chart/demos/StaticChartXAxisInverse.java | cheshirekow/codebase | gpl-3.0 | 3,599 | 116 | codeparrot/github-code |
8cd77a18102a8101db9b912ccc0a4d9dbbb4c9d27052f3b404ecb1538ad073ac | // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#ifndef _INSTANCE_H_
#define _INSTANCE_H_
#define MAX_MAP_PER_INSTANCE 10
#define MAX_INSTANCE 500
typedef enum instance_state { INSTANCE_FREE, INSTANCE_IDLE, INSTANCE_BUSSY } instance_state;
struct s_... | C | src/map/instance.h | elvisete/emulador | gpl-3.0 | 1,356 | 49 | codeparrot/github-code |
ce424731981d92545a164df8312cfa59eebed5993ffcf1592c513c5bacb726d6 | /*
SPC5 HAL - Copyright (C) 2013 STMicroelectronics
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 ... | C | os/hal/ports/SPC5/SPC56ELxx/hal_lld.c | bhimebau/ChibiOS | gpl-3.0 | 10,673 | 307 | codeparrot/github-code |
8664065111d72f49be56affc44bd9d844f74e7cd6fd61029c7d098aaf57abfd6 | #!/usr/bin/python
#
# Copyright (c) 2017 Ansible Project
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = """
---
mod... | Python | lib/ansible/modules/cloud/amazon/elasticache.py | wrouesnel/ansible | gpl-3.0 | 20,816 | 559 | codeparrot/github-code |
1b7aa1ce0d3d3e164ad973cd99b63e02204e86c774b04909aa0d7a58142eb269 | <?php
// PDU - Phase
$oids = snmp_walk($device, 'rPDUStatusPhaseIndex', '-OsqnU', 'PowerNet-MIB');
if (empty($oids)) {
$oids = snmp_walk($device, 'rPDULoadPhaseConfigIndex', '-OsqnU', 'PowerNet-MIB');
}
if ($oids) {
d_echo($oids."\n");
$oids = trim($oids);
if ($oids) {
echo 'APC PowerNet-MIB ... | PHP | includes/discovery/sensors/current/apc.inc.php | wrgeorge1983/librenms | gpl-3.0 | 9,157 | 244 | codeparrot/github-code |
948b97a0673673df16934ce102f218657ea7474da370663621ccd57f8898d53d | /**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.3.1 (2020-05-27)
*/
(function () {
'use strict';
... | JavaScript | geonode/static/lib/js/plugins/noneditable/plugin.js | francbartoli/geonode | gpl-3.0 | 4,286 | 119 | codeparrot/github-code |
d4620e01680da3836512282992c4ce75dbcf40224108167aad96065dcbd5b3d4 | <?php
namespace Sabre\HTTP;
/**
* HTTP Digest Authentication handler
*
* Use this class for easy http digest authentication.
* Instructions:
*
* 1. Create the object
* 2. Call the setRealm() method with the realm you plan to use
* 3. Call the init method function.
* 4. Call the getUserName() function. Th... | PHP | zarafa-sabre/lib/SabreDAV/lib/Sabre/HTTP/DigestAuth.php | stefjakobs/cgp2zarafa | gpl-3.0 | 6,672 | 241 | codeparrot/github-code |
6556fd7575a7f0affdd157a2bfa06aa6707c155105590f26e42656dfb6177a00 | import {helper} from 'ember-helper';
import {htmlSafe} from 'ember-string';
import ghostPaths from 'ghost-admin/utils/ghost-paths';
// Handlebars Helper {{gh-path}}
// Usage: Assume 'http://www.myghostblog.org/myblog/'
// {{gh-path}} or {{gh-path 'blog'}} for Ghost's root (/myblog/)
// {{gh-path 'admin'}} for Ghost's ... | JavaScript | core/client/app/helpers/gh-path.js | Elektro1776/latestEarthables | gpl-3.0 | 1,375 | 55 | codeparrot/github-code |
3c71b467b9f2c0360723dc87c245df9facb9042563b78151b1be85ab3276083b | #!/usr/bin/perl
# Copyright 2000-2002 Katipo Communications
# copyright 2010 BibLibre
#
# This file is part of Koha.
#
# Koha 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... | Perl | admin/smart-rules.pl | eskaaren/koha-dev | gpl-3.0 | 23,818 | 565 | codeparrot/github-code |
893a6ae1e4d324cfad2eb6a426913098c8bc8acef1f19ca3362817ecdf77f464 | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2015 Evan Debenham
*
* 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 ver... | Java | src/com/shatteredpixel/shatteredpixeldungeon/ui/Tag.java | 5AMW3155/shattered-pixel-dungeon | gpl-3.0 | 1,948 | 84 | codeparrot/github-code |
633e88a9517dee6fb036979e4ba0d037a5e05ee9ef80301691ebb4bc72b4df9e | // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#ifndef _INTIF_H_
#define _INFIF_H_
//#include "../common/mmo.h"
struct party_member;
struct guild_member;
struct guild_position;
struct s_pet;
struct s_homunculus;
struct s_mercenary;
struct mail_messag... | C | src/map/map/intif.h | Aeromesi/PkRO_Translation | gpl-3.0 | 4,951 | 105 | codeparrot/github-code |
51e16831f00655487e154ac3ac3a8755f0df3e1df943e54e3888f39e5bc3abfb | /*
* Pixel Dungeon
* Copyright (C) 2012-2014 Oleg Dolya
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ... | Java | src/com/shatteredpixel/shatteredpixeldungeon/ui/CheckBox.java | Lobz/reforged-pixel-dungeon | gpl-3.0 | 1,771 | 64 | codeparrot/github-code |
d6c014cdfdea09399845d989114194ac751c4b18d45a93a82dc80b28da13aab3 | odoo.define('website_sale.s_products_searchbar', function (require) {
'use strict';
const concurrency = require('web.concurrency');
const publicWidget = require('web.public.widget');
const { qweb } = require('web.core');
/**
* @todo maybe the custom autocomplete logic could be extract to be reusable
*/
publicWidge... | JavaScript | addons/website_sale/static/src/snippets/s_products_searchbar/000.js | ddico/odoo | agpl-3.0 | 4,128 | 137 | codeparrot/github-code |
42531b700ae0216cb4d04cf1f81ef6e9edeea55b43d74fafe136fd62adc7792e | <?php
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
* @author Joas Schilling <coding@schilljs.com>
* @author Lukas Reschke <lukas@statuscode.ch>
*
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, ver... | PHP | apps/updatenotification/lib/Controller/AdminController.php | jbicha/server | agpl-3.0 | 5,211 | 176 | codeparrot/github-code |
ef80eafe9ab3075e719f335e44627e127f3bf57fccd8226185ebec633965fb85 | /*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2012-2014 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2014 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | Java | opennms-tools/ireport-resource-query-provider/src/test/java/org/opennms/netmgt/jasper/resource/ResourceQueryFieldsProviderTest.java | roskens/opennms-pre-github | agpl-3.0 | 6,860 | 176 | codeparrot/github-code |
7b4ff71a38d2284f847c79523be4585c897ad5b5f7eced59c28869b100be8c68 | """Model managers for Reversion."""
try:
set
except NameError:
from sets import Set as set # Python 2.3 fallback.
from django.contrib.contenttypes.models import ContentType
from django.db import models
class VersionManager(models.Manager):
"""Manager for Version models."""
def get_for_obj... | Python | wsgi/snowy/snowy/lib/reversion/managers.py | jaredjennings/snowy | agpl-3.0 | 2,511 | 60 | codeparrot/github-code |
8ecf37d5806879c8b2b7456ae47f091ecdafae656fd9c41c85849129c53e8ee4 | /*
* The Kuali Financial System, a comprehensive financial management system for higher education.
*
* Copyright 2005-2014 The Kuali Foundation
*
* 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 Softw... | Java | kfs-tem/src/main/java/org/kuali/kfs/module/tem/document/web/struts/TravelStrutsObservable.java | bhutchinson/kfs | agpl-3.0 | 2,543 | 80 | codeparrot/github-code |
b5ecadf55e095daf1a152eface2af68c4c70d42879580196bdf5878ef97a73c9 | /****************************************************************/
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* All contents are licensed under LGPL V2.1 */
/* See LICENSE for full restrictions ... | C++ | modules/solid_mechanics/src/materials/NonlinearRZ.C | danielru/moose | lgpl-2.1 | 4,391 | 151 | codeparrot/github-code |
c2ac84f722959e00d56f179b9048a913d33e83cbedf998d7a960e5a379c99f69 | /* radare - LGPL - Copyright 2013-2016 - pancake, sghctoma */
#include <r_cons.h>
R_API void r_cons_pal_free () {
int i;
RCons *cons = r_cons_singleton ();
for (i = 0; i < R_CONS_PALETTE_LIST_SIZE; i++) {
if (cons->pal.list[i]) R_FREE (cons->pal.list[i]);
}
}
R_API void r_cons_pal_init (const char *foo) {
RCo... | C | libr/cons/pal.c | lionaneesh/radare2 | lgpl-3.0 | 13,642 | 484 | codeparrot/github-code |
39eaeb0e2226a7e7e11a1a563c2075f41be653aac33bab8ac4501fbde460d856 | package edu.harvard.iq.dataverse.authorization.providers.oauth2.impl;
import com.github.scribejava.apis.GoogleApi20;
import com.github.scribejava.core.builder.api.BaseApi;
import edu.harvard.iq.dataverse.authorization.AuthenticatedUserDisplayInfo;
import edu.harvard.iq.dataverse.authorization.providers.oauth2.Abstract... | Java | src/main/java/edu/harvard/iq/dataverse/authorization/providers/oauth2/impl/GoogleOAuth2AP.java | ekoi/DANS-DVN-4.6.1 | apache-2.0 | 2,685 | 72 | codeparrot/github-code |
1db74fae18c26776c8b7a40eb4b590d118395769307aefa8bc063e91e5c0ce83 | /*
* Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz>
* Copyright (C) 2006 Apple Inc. All rights reserved.
* Copyright (C) Research In Motion Limited 2010. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General P... | C++ | third_party/WebKit/Source/core/layout/svg/LayoutSVGInline.cpp | weolar/miniblink49 | apache-2.0 | 5,510 | 154 | codeparrot/github-code |
786e4add58d485d2399f539cdb5084c2549f9fb88610ad3d30d98a44929559c7 | #!/usr/bin/perl
use Data::Dumper;
use strict;
use File::Basename;
###
### This 'ugly' perl script creates the wiki page for JsUpload
### It inspects the java classes looking for comments and put them in the wiki page.
###
my $author = "[http://manolocarrasco.blogspot.com/ Manuel Carrasco Moñino]";
# Folder with so... | Perl | jsupload/gjslib.pl | cyrilmhansen/gwtupload | apache-2.0 | 8,385 | 320 | codeparrot/github-code |
d9100c39614310ca810607be3f7cdf25b8c564fa0af9c5addb63b9c00e002e2b | /**
******************************************************************************
* @file stm32f7xx_hal_can.c
* @author MCD Application Team
* @brief CAN HAL module driver.
* This file provides firmware functions to manage the following
* functionalities of the Controller Area Netwo... | C | targets/TARGET_STM/TARGET_STM32F7/STM32Cube_FW/STM32F7xx_HAL_Driver/stm32f7xx_hal_can.c | kjbracey-arm/mbed | apache-2.0 | 81,334 | 2,465 | codeparrot/github-code |
37aa0822dbe2220f5d0997c4dd63dcaabd73ee90670b7d6345a0905ab060b4a6 | /*
* 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 | hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/MasterCoprocessorRpcChannel.java | Guavus/hbase | apache-2.0 | 3,362 | 83 | codeparrot/github-code |
55a555803433f5d8b16d62644c8ebb208f753a340d99f009b2432dab3b0d8e07 | #!/usr/bin/env node
//
// Copyright 2012 Iris Couch, all rights reserved.
//
// Test displaying DNS records
var fs = require('fs')
var tap = require('tap')
var test = tap.test
var util = require('util')
var Message = require('../message')
test('Display a message', function(t) {
var file = 'oreilly.com-response'
... | JavaScript | test/print.js | jhs/dnsd | apache-2.0 | 1,173 | 39 | codeparrot/github-code |
799d59c785826f4e25d942ae77fe426d57abaeaebe3ed993ef6e5e87e306614f | /**
* Copyright 2014 The PlayN Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Java | robovm/src/playn/robovm/RoboCanvasState.java | tinkerstudent/playn | apache-2.0 | 978 | 35 | codeparrot/github-code |
948e29643f1e8076a99fcf981e0c0cb593873308492d22c5e1d424a269efc659 | /*
* Copyright (C) 2015 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 ... | Java | sdk/src/test/java/com/google/cloud/dataflow/sdk/util/GroupAlsoByWindowsDoFnTest.java | haonaturel/DataflowJavaSDK | apache-2.0 | 13,007 | 334 | codeparrot/github-code |
e07f17f9b4d3e00ab7a08dde7019351362cce1cb3f52e53522ef52a52eb933cc | #!/bin/bash
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | Shell | cluster/ubuntu/util.sh | andrewosh/kubernetes | apache-2.0 | 23,255 | 861 | codeparrot/github-code |
a640edd191c98756a56454acdedc30c5a7849dd475a1d4434d659a14392731c5 | /**************************************************************************//**
*
* @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-3-16 YH First version
*
*****************************... | C | bsp/nuvoton/libraries/m480/rtt_port/drv_epwm.c | armink/rt-thread | apache-2.0 | 6,997 | 232 | codeparrot/github-code |
24203cd392bfabb2243bc1555a1872093f801af9d0c009a2b658d6f2420c2a36 | /*
* 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 | tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java | Nimco/sling | apache-2.0 | 25,793 | 608 | codeparrot/github-code |
1add8cd2029580acfd4b889f9ebb176c080194cb8c3813ae11b8133ba4f2eb80 | //========================================================================
// 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
//
... | Java | src/org.xtuml.bp.debug.ui/src/org/xtuml/bp/debug/ui/model/BPBreakpoint.java | rmulvey/bridgepoint | apache-2.0 | 10,881 | 339 | codeparrot/github-code |
3b0edb3fb07baaaa15beb4fa429ea12eeb72a68b8522586404ff2dbad6339527 | using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Core;
using UnityEditor;
using UnityEngine;
using Event = UnityEngine.Event;
namespace UnityTest
{
public abstract class UnitTestRendererLine : IComparable<UnitTestRendererLine>
{
public static Action<TestFilter> RunTest;
... | C# | client/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Renderer/UnitTestRendererLine.cs | thurn/swapdrop | apache-2.0 | 3,115 | 102 | codeparrot/github-code |
5a6471dab4fc6d0fc4fd46c09e3ed9c44d9191bcc4ac954ffc8858e02403af10 | // Copyright 2014 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... | C++ | syzygy/agent/memprof/system_interceptors.cc | sebmarchand/syzygy | apache-2.0 | 2,923 | 84 | codeparrot/github-code |
04139c0d84a3d85dd36690f77b2c5ea0a79c784376a28fa1c8aa9971e267f1c2 | /*
* 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 | drools-ruleunit/src/test/java/org/drools/ruleunit/SimpleFact.java | droolsjbpm/drools | apache-2.0 | 887 | 31 | codeparrot/github-code |
b186e4a8c3d202d52af4c61d3403e0530062e67664ece5b397a60d8c64371fb0 | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | Java | ui/src/org/pentaho/di/ui/trans/steps/mapping/MappingDialog.java | gretchiemoran/pentaho-kettle | apache-2.0 | 70,861 | 1,766 | codeparrot/github-code |
434ad1ff3802c94185bc0919aaaf525f84579bec74c28b1b1eb0dbc20d1b2540 | /*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2008, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following ... | C++ | smartbody/src/assimp-3.1.1/code/Q3BSPZipArchive.cpp | gsi-upm/SmartSim | apache-2.0 | 9,518 | 318 | codeparrot/github-code |
c10bfef3470d07a377d7378f1a4798b3e703246ccd04425996139945b43b1bf6 | define("dojo/robot", ["dojo", "doh/robot", "dojo/window"], function(dojo) {
dojo.experimental("dojo.robot");
(function(){
// users who use doh+dojo get the added convenience of dojo.mouseMoveAt,
// instead of computing the absolute coordinates of their elements themselves
dojo.mixin(doh.robot,{
_resolveNode: functi... | JavaScript | training-web/src/main/webapp/js/dojotoolkit/dojo/robot.js | sulistionoadi/belajar-springmvc-dojo | apache-2.0 | 6,577 | 177 | codeparrot/github-code |
1381448fc342b243c3be0591b2f9cdfc356c4ff1c33a6d8b5988ec0cb87152f9 | (function($) {
$.fn.toc = function(options) {
var self = this;
var opts = $.extend({}, jQuery.fn.toc.defaults, options);
var container = $(opts.container);
var headings = $(opts.selectors, container);
var activeClassName = opts.prefix+'-active';
var scrollTo = function(e) {
if (opts.smoothScrolling) {... | JavaScript | js/scroll-magic/docs/scripts/toc.js | sconway/pulley-scroll | apache-2.0 | 6,511 | 216 | codeparrot/github-code |
e525efd9a3f1e3bdb6a7eafb3dfa553a9cb8301214acac734440c7c750306040 | /**
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in co... | Java | uportal-war/src/main/java/org/jasig/portal/portlet/container/services/PersonDirectoryUserInfoService.java | pspaude/uPortal | apache-2.0 | 9,940 | 229 | codeparrot/github-code |
9e76f5aa11a5c1f032a005ed141442b3034a946c288438aa142edd4ea3fea37f | /*
*
* IP-address/hostname to country converter.
*
* Problem; you want to know where IP a.b.c.d is located.
*
* Use ares_gethostbyname ("d.c.b.a.zz.countries.nerd.dk")
* and get the CNAME (host->h_name). Result will be:
* CNAME = zz<CC>.countries.nerd.dk with address 127.0.x.y (ver 1) or
* CNAME = <a.b.c.d... | C | native_src/third_party/cares/cares/src/tools/acountry.c | grpc/grpc-ios | apache-2.0 | 26,724 | 653 | codeparrot/github-code |
ac4fda1ac4fc28567d64f75027a7405bb75968584235e74a986d93eef00d840e | <?php
final class PhabricatorConfigDatabaseStatusController
extends PhabricatorConfigDatabaseController {
private $database;
private $table;
private $column;
private $key;
private $ref;
public function handleRequest(AphrontRequest $request) {
$viewer = $request->getViewer();
$this->database = $... | PHP | src/applications/config/controller/PhabricatorConfigDatabaseStatusController.php | devurandom/phabricator | apache-2.0 | 22,570 | 866 | codeparrot/github-code |
dfa0f8e9f601c34bc7d5116d3418c460d9543b3df574f53816ab09992a5aefbb | /*
* 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/test/java/org/elasticsearch/search/suggest/AbstractSuggestionBuilderTestCase.java | robin13/elasticsearch | apache-2.0 | 14,348 | 294 | codeparrot/github-code |
c66230a48238dea7f84ea3ec02e77f26b18ea953d7b01160b3e3c0c39fa80143 | from math import exp
from collections import defaultdict
@outputSchema("scaled: double")
def logistic_scale(val, logistic_param):
return -1.0 + 2.0 / (1.0 + exp(-logistic_param * val))
@outputSchema("t: (item_A, item_B, dist: double, raw_weight: double)")
def best_path(paths):
return sorted(paths, key=lambda ... | Python | udfs/jython/recsys.py | ShadySQL/mortar-recsys | apache-2.0 | 1,151 | 37 | codeparrot/github-code |
0872e48f6a9b4d1e25fd78ccdb9ca08a7618aaf33f3a25d7bf45f4884d43ced9 | /*
* 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/src/main/java/org/apache/carbondata/core/readcommitter/ReadCommittedIndexFileSnapShot.java | ravipesala/incubator-carbondata | apache-2.0 | 2,076 | 56 | codeparrot/github-code |
aa2aa132d922defbfc9cc7beae22b50d338e96b0dbb2220bb4c76343315766d9 | /*
* 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 | python/python-psi-impl/src/com/jetbrains/python/validation/AssignTargetAnnotator.java | smmribeiro/intellij-community | apache-2.0 | 11,767 | 295 | codeparrot/github-code |
944ac6fc9ec1782b53efb4efe113edcb58a168a9fb5804bf46f2dbd8a9d14099 | /**
* 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 | camel-core/src/main/java/org/apache/camel/model/ConvertBodyDefinition.java | skinzer/camel | apache-2.0 | 3,784 | 130 | codeparrot/github-code |
f4b01eb11497a26ea1a57ca539eafc632faf02eab759a6e750dfa47f7d2cb6a6 | /* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | tensorflow/core/kernels/lookup_util.cc | Mistobaan/tensorflow | apache-2.0 | 13,450 | 371 | codeparrot/github-code |
ecb4266189967feb4ed1856286c0e7f19776ca9d6b12642276eebfd3e26c33a1 | /*
Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
Copyright (C) 2001 Dirk Mueller <mueller@kde.org>
Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
This library is free software; you can redistribute it and/or
mod... | C | webkit/Source/WebCore/loader/cache/CachedResource.h | mogoweb/webkit_for_android5.1 | apache-2.0 | 10,972 | 301 | codeparrot/github-code |
6ff1e723d4b4f507018c3e1df2753a3f0f02f8de9045a4752f9785f98cd68797 | // 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 System.Collections.Generic;
using System.Linq;
using System.Threading;
using Microsoft.CodeAnalysis.Formatting;
using Microsoft.CodeAnalysis.Formatting.... | C# | src/EditorFeatures/Core/Implementation/SmartIndent/AbstractIndentationService.cs | MatthieuMEZIL/roslyn | apache-2.0 | 2,846 | 60 | codeparrot/github-code |
94a8b3987cb50d4f9866f8c3efdc9b27ddec0ff58ec418d89659c9930287e3a8 | FREEBSD_XDEV_PREFIX=
# freebsd_xdev_test: Verify that xdev tools exist.
#
# TODO: Add a freebsd_xdev_gcc_test() that explicitly
# checks that the xdev tools are GCC. Seems we need
# this for some versions of U-Boot.
#
freebsd_xdev_test ( ) {
XDEV_ARCH=${TARGET_ARCH}
case ${XDEV_ARCH} in
arm*) XDEV=arm... | Shell | lib/freebsd_xdev.sh | rm4rty/crochet-freebsd | bsd-2-clause | 1,659 | 47 | codeparrot/github-code |
dd2af22a63c6fc8b136cb8671d73af0578d8c4700e731ea53f24c6b623504063 | /******************************************************************************
* Copyright (c) 2014, Hobu Inc. (hobu@hobu.co)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions are met:
*
* * Redistr... | C++ | include/pdal/DbWriter.hpp | DougFirErickson/PDAL | bsd-3-clause | 3,146 | 91 | codeparrot/github-code |
b49e7573ec5460ca28fba9df5fdb64c565bd898604b3f20164187542b249f649 | /*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013,2014 Andy Brown <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
namespace stm32plus {
/**
* Helper class to read from an STL string using the InputStream interface
*/
class StlStringInputS... | C | lib/include/stream/StlStringInputStream.h | trigrass2/stm32plus | bsd-3-clause | 3,141 | 153 | codeparrot/github-code |
f141a1c5c57a5f9a778ccf2aa356b5cf3c6c8ef4a54fdf0473e45f0d6b552d0f | /* C Includes */
#include <stdio.h>
#include <stdlib.h>
/* HyperDex Includes */
#include <hyperdex/datastructures.h>
int
main(int argc, const char* argv[])
{
int64_t num;
const char* value = "\x01\x00\x00\x00\x00\x00\x00\x00"
"\xff\xff\xff\xff\xff\xff\xff\xff"
"\xef... | C | doc/c/client/iterate.c | cactorium/HyperDex | bsd-3-clause | 715 | 32 | codeparrot/github-code |
228513e3a210fff1ea9671a9a0fcf50950b6d9146ba1e793f2de9b42079ca589 | // Copyright (c) 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 <stdint.h>
#include <utility>
#include <vector>
#include "base/command_line.h"
#include "base/memory/ref_counted.h"
#include "base/strings/... | C++ | chrome/common/extensions/permissions/permissions_data_unittest.cc | danakj/chromium | bsd-3-clause | 33,942 | 773 | codeparrot/github-code |
d13b4e67c08a6245c35ae7d0703c8b08ca8b68c0a82921132f11df3bfb5869cd | // Copyright 2018 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 "components/autofill_assistant/browser/chip.h"
#include "components/autofill_assistant/browser/user_action.h"
namespace autofill_assistant {
Ch... | C++ | components/autofill_assistant/browser/chip.cc | scheib/chromium | bsd-3-clause | 1,157 | 38 | codeparrot/github-code |
55da11d0ff28182bfe1471ed87697cbca569f584db14b01b31b7af16f4b3f1d9 | // 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.
#ifndef EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_SET_H_
#define EXTENSIONS_COMMON_PERMISSIONS_PERMISSION_SET_H_
#include <map>
#include <set>
#include <s... | C | extensions/common/permissions/permission_set.h | TeamEOS/external_chromium_org | bsd-3-clause | 6,568 | 171 | codeparrot/github-code |
9a43f42899cb98a30700dfbf489b409a3105edf8c1f13b617ac6d64dab85883a | // Copyright 2019 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 "components/paint_preview/browser/paint_preview_base_service.h"
#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/call... | C++ | components/paint_preview/browser/paint_preview_base_service.cc | chromium/chromium | bsd-3-clause | 4,255 | 106 | codeparrot/github-code |
b99310b55be1e4f01b7df43d33171537394fbc880d64ada1c3337e9bca49a0a6 | /*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... | C | third_party/ffmpeg/libavcodec/pthread_slice.c | endlessm/chromium-browser | bsd-3-clause | 7,565 | 243 | codeparrot/github-code |
1c2490fb94d6e65b10068547382ea143f1994b741ec0c2ad6ac279e59af431a7 | // 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.
/** @fileoverview Handles interprocess communication for the system page. */
// clang-format on
import {loadTimeData} from 'chrome://resources/js/load_ti... | TypeScript | chromium/chrome/browser/resources/settings/system_page/system_page_browser_proxy.ts | ric2b/Vivaldi-browser | bsd-3-clause | 1,163 | 41 | codeparrot/github-code |
71664641f6393843336ad2f5739d0b2cf4b10ab2ed3a30bb4b8d5beb85897901 | /*
* Copyright (c) 2013, Ford Motor Company
* 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 condit... | C++ | src/components/application_manager/src/commands/hmi/on_vr_language_change_notification.cc | BrandonHe/sdl_core | bsd-3-clause | 3,756 | 92 | codeparrot/github-code |
77f16354d1a1e514c70a36014a91084432e5c552a548d47016deed94d03bd55f | // Copyright 2018 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.
package org.chromium.chrome.browser.explore_sites;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import stat... | Java | chromium/chrome/android/junit/src/org/chromium/chrome/browser/explore_sites/ExploreSitesBackgroundTaskUnitTest.java | ric2b/Vivaldi-browser | bsd-3-clause | 11,676 | 275 | codeparrot/github-code |
3b450927cd9d1380291d6359a4724e879fa2cc10fce2869beadb1e37250a8111 | // 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 CHROME_BROWSER_VR_MODEL_LOCATION_BAR_STATE_H_
#define CHROME_BROWSER_VR_MODEL_LOCATION_BAR_STATE_H_
#include "chrome/browser/vr/vr_base_export.h"... | C | chromium/chrome/browser/vr/model/location_bar_state.h | ric2b/Vivaldi-browser | bsd-3-clause | 1,272 | 43 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.