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 |
|---|---|---|---|---|---|---|---|---|
1248c329e50f78acf06e4361d8a1c4dd99babb0111d122198959329c8cda97d9 | //======================================================================
// Setting filenames
//======================================================================
int USERD_set_filenames
(
char filename_1[],
char filename_2[],
char the_path[],
int swapbytes
)
{
#ifdef ENSIGHTDEBUG
Info<< "Enter... | C++ | applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_set_filenames.H | morgoth541/of_realFluid | gpl-3.0 | 4,818 | 210 | codeparrot/github-code |
839a86adc3274bc758b212f1d6080f2620621003d9a7650f5ada3453a9804b51 | /* Copyright 2016 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/dilation_ops_gpu.cu.cc | karllessard/tensorflow | apache-2.0 | 12,289 | 306 | codeparrot/github-code |
8a7162b353211b882de2e9590d82b35ed879accf0774ac7f9d6c311655ca8724 | #ifndef ALIANALYSISTASKEMCALJETSPECTRA8TEVTRIGGERQA_H
#define ALIANALYSISTASKEMCALJETSPECTRA8TEVTRIGGERQA_H
/**********************************************************************************
* Copyright (C) 2018, Copyright Holders of the ALICE Collaboration *
* All rights reserved. ... | C | PWGJE/EMCALJetTasks/UserTasks/AliAnalysisTaskEmcalJetSpectra8TeVTriggerQA.h | fcolamar/AliPhysics | bsd-3-clause | 8,029 | 146 | codeparrot/github-code |
0bc7e1f95811de16d26ec1ff3a86460e9ff5f7f99d60d45771ddd7f9f3cc17f9 | """This is the Bokeh charts interface. It gives you a high level API to build
complex plot is a simple way.
This is the TimeSeries class which lets you build your TimeSeries charts just
passing the arguments to the Chart class and calling the proper functions.
"""
#-----------------------------------------------------... | Python | bokeh/charts/builder/timeseries_builder.py | carlvlewis/bokeh | bsd-3-clause | 6,252 | 166 | codeparrot/github-code |
50a6e2229a6e8c6108960a064ced4775b2529ab7c277a397250e8c9a7eb6609d | YUI.add('unicode-wordbreak', function(Y) {
/**
* Provides utility methods for splitting strings on word breaks and determining
* whether a character represents a word boundary, using the algorithm defined
* in the Unicode Text Segmentation guidelines
* (<a href="http://unicode.org/reports/tr29/#Word_Boundaries">Un... | JavaScript | ajax/libs/yui/3.3.0pr1/unicode/unicode-wordbreak.js | pcarrier/cdnjs | mit | 9,892 | 324 | codeparrot/github-code |
2835a5311e9f547aae5a3c70021729bc24885d8aeaccf9cb4ab70dd8fa8a08ba | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>db_en... | HTML | src/deps/db/docs/api_reference/C/db_env_set_func_open.html | mxrrow/zaicoin | mit | 4,991 | 121 | codeparrot/github-code |
329c7a9ff56be6bb185670c04a3d65a5e3eafd601782996fc810006fc6652afc | package sarama
import (
"crypto/tls"
"fmt"
"io"
"net"
"strconv"
"sync"
"sync/atomic"
"time"
)
// Broker represents a single Kafka broker connection. All operations on this object are entirely concurrency-safe.
type Broker struct {
id int32
addr string
conf *Config
correlationID int32
conn ... | GO | broker.go | LastManStanding/sarama | mit | 8,498 | 386 | codeparrot/github-code |
7c01223f2de0c69c68a7098848bc1d9e2bf691bafb4795e5636508b879427fc7 | /*
* drivers/usb/core/usb.c
*
* (C) Copyright Linus Torvalds 1999
* (C) Copyright Johannes Erdfelt 1999-2001
* (C) Copyright Andreas Gal 1999
* (C) Copyright Gregory P. Smith 1999
* (C) Copyright Deti Fliegl 1999 (new USB architecture)
* (C) Copyright Randy Dunlap 2000
* (C) Copyright David Brownell 2000-2004
... | C | drivers/usb/core/usb.c | pichina/linux-bcache | gpl-2.0 | 31,335 | 1,091 | codeparrot/github-code |
86fc9cda6397042cc0e773fbd5bbff000e9f5c23ebd8b5e864dff924049269ff | /* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
Copyright © 2014 Intel Corporation. All rights reserved.
***/
#include "sd-ndisc.h"
#include "time-util.h"
struct sd_ndisc_router {
unsigned n_ref;
triple_timestamp timestamp;
struct in6_addr address;
/* The raw packet si... | C | src/libsystemd-network/ndisc-router.h | walyong/systemd | gpl-2.0 | 1,305 | 49 | codeparrot/github-code |
a2b61b040d5cb0635d7704be9a4af030f16d83c9b85b1086512d309ba3e4833b | #===========================================================================
# This library is free software; you can redistribute it and/or
# modify it under the terms of version 2.1 of the GNU Lesser General Public
# License as published by the Free Software Foundation.
#
# This library is distributed in the hope tha... | Python | tools/python/xen/util/xsm/acm/acm.py | flexiant/xen | gpl-2.0 | 56,344 | 1,628 | codeparrot/github-code |
8fab4143c3f993d82151c1537693456f63a29490f98a2dcfb3aa11029231342d | Imports Microsoft.CodeAnalysis
Imports Microsoft.CodeAnalysis.CodeActions
Imports Microsoft.CodeAnalysis.CodeFixes
Imports Microsoft.CodeAnalysis.Diagnostics
Imports Microsoft.CodeAnalysis.Formatting
Imports Microsoft.VisualStudio.TestTools.UnitTesting
Imports System.Collections.Generic
Imports System.Threading
Names... | Visual Basic | src/dev/MvvmFormsAnalyzer/MvvmFormsAnalyzer.Test/Verifiers/CodeFixVerifier.vb | ActiveDevelop/MvvmForms | gpl-2.0 | 7,412 | 117 | codeparrot/github-code |
eacca357a0fdc4f2a06e44ddbb91d082422ba473f73366b91180ba6fbe1eaf27 | /*
---
name: Browser.Mobile
description: Provides useful information about the browser environment
authors: Christoph Pojer (@cpojer)
license: MIT-style license.
requires: [Core/Browser]
provides: Browser.Mobile
...
*/
(function(){Browser.Device={name:"other"};
if(Browser.Platform.ios){var a=navigator.userAgent.... | JavaScript | components/com_roksprocket/assets/js/mootools-mobile.js | L16jovenesTIC/portal-web | gpl-2.0 | 4,475 | 42 | codeparrot/github-code |
f8a43bb11a2b6a7bfcbd060cd5a8b3e28464a82a73752ed00fd07258c845ce80 | /* Quad-precision floating point cosine on <-pi/4,pi/4>.
Copyright (C) 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jj@ultra.linux.cz>
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Less... | C | sysdeps/ieee754/ldbl-128/k_cosl.c | davidlt/glibc-slc6 | gpl-2.0 | 5,247 | 129 | codeparrot/github-code |
0c1128e72fb8aea5a5af2a437e5683236f3eaf1b8c9a3f6d8a72b34ec9c04da0 | // -*- c-basic-offset: 4; related-file-name: "../../lib/variableenv.cc" -*-
#ifndef CLICK_VARIABLEENVIRONMENT_HH
#define CLICK_VARIABLEENVIRONMENT_HH
#include <click/string.hh>
#include <click/vector.hh>
CLICK_DECLS
class StringAccum;
class VariableExpander { public:
VariableExpander() { }
virtual ~Variable... | C++ | include/click/variableenv.hh | NetSys/click | gpl-2.0 | 1,461 | 51 | codeparrot/github-code |
f81665b1c205a2b13510abe7767cfb764f4e6142a893de67efa667cdc8cf2b53 | //===-- examples/clang-interpreter/main.cpp - Clang C Interpreter Example -===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C++ | llvm/tools/clang/examples/clang-interpreter/main.cpp | montimaj/ShaktiT_LLVM | gpl-3.0 | 6,361 | 176 | codeparrot/github-code |
25f3cd042ae5840eb3c54ae62d6eae2adafc82eb65f23d41ac8e04f7f6986ba5 | // ColourReconnectionHooks.h is a part of the PYTHIA event generator.
// Copyright (C) 2015 Torbjorn Sjostrand.
// PYTHIA is licenced under the GNU GPL version 2, see COPYING for details.
// Please respect the MCnet Guidelines, see GUIDELINES for details.
// This file contains two UserHooks that, along with the intern... | C | PYTHIA8/pythia8210dev/include/Pythia8Plugins/ColourReconnectionHooks.h | miranov25/AliRoot | bsd-3-clause | 33,585 | 965 | codeparrot/github-code |
2a47647135946d985d87e3d1addef6cae12fb8ff4ea00bd93aae3248897e7d4d | define("rollbar", [], function() { return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(in... | JavaScript | ajax/libs/rollbar.js/1.7.3/rollbar.named-amd.js | dakshshah96/cdnjs | mit | 75,744 | 2,447 | codeparrot/github-code |
a29c6162634e04ffbdca1981695fba3dbef0465a2e1f24246ee4d0dfb84751ff | /*******************************************************************************
* Copyright 2017-2018 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... | C++ | thirdparty/oidn/mkl-dnn/src/cpu/simple_sum.hpp | Paulloz/godot | mit | 2,165 | 75 | codeparrot/github-code |
6c3d4b5b195ec480bcd3a6dfb991f0863ae5af716022a7acd62d4c95d7a54a27 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Text;
using System.Globalization;
using System.Xml.Schema;
using System.Diagnostics;
using System.Colle... | C# | src/System.Private.Xml/src/System/Xml/XmlConvert.cs | BrennanConroy/corefx | mit | 62,488 | 1,703 | codeparrot/github-code |
e3784966b19f0f1f8dbff10b1f762927c8e3f53c60582886ed6fad2367a1aacb | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Xml.Linq;
using System.Xml.XPath;
using Umbraco.Core.Dynamics;
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Core.Models.PublishedContent
{
/// <summary>
/// Represents an <see cref=... | C# | src/Umbraco.Core/Models/PublishedContent/PublishedPropertyType.cs | Tronhus/Umbraco-CMS | mit | 25,548 | 526 | codeparrot/github-code |
25de1e04b20a452d524c809f16e70663cae278f24efa0974feb396e7fe179b4a | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./../../assets/css/combined.css">
<link rel="shortcut icon" href="./../../favicon.ico" />
<script src="http://www.google.com/jsapi" type="text/javascrip... | HTML | public/docs/packages/oil/generate.html | gman-guru/journal | mit | 27,878 | 902 | codeparrot/github-code |
244f7f80ccc4921f0ae01ab8b66927059768a2d474b6f3e1ce60bccbdd702c3b | /* { dg-require-effective-target vect_int } */
/* { dg-additional-options "-fno-ipa-icf" } */
#include "tree-vect.h"
#include <stdlib.h>
#define N 32
__attribute__ ((noinline)) void
foo (unsigned int *__restrict a,
unsigned short *__restrict b,
int n)
{
int i;
for (i = 0; i < n; i++)
a[i] = b[i] ... | C | gcc/testsuite/gcc.dg/vect/vect-widen-mult-const-u16.c | embecosm/gcc | gpl-2.0 | 1,599 | 78 | codeparrot/github-code |
2f1b50cd2096797500434342cf195a73c0ffef022480319e4ee8d1ef8dd4faf9 | /*
This file is provided under a dual BSD/GPLv2 license. When using or
redistributing this file, you may do so under either license.
GPL LICENSE SUMMARY
Copyright(c) 2011 Intel Corporation. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of v... | C | linux/modules/intel_media/otm_hdmi/os/android/include/android_hdmi.h | shakalaca/ASUS_ZenFone_A500CG_A600CG | gpl-2.0 | 9,434 | 349 | codeparrot/github-code |
9238ceb15be0e6592f122b8c5da20a4faa839c055d561125d708c65f578f4667 | <?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Set of functions used to run config authentication (ie no authentication).
*
* @package phpMyAdmin-Auth-Config
*/
/**
* Displays authentication form
*
* @return boolean always true
*
* @access public
*/
function PMA_auth()
{
return TRUE;
} // end... | PHP | www/phpmyadmin/libraries/auth/config.auth.lib.php | srosro/rachelpiOS | gpl-3.0 | 4,300 | 139 | codeparrot/github-code |
e21bd594a5640026ee08a6f185c3522ede03f70ff039839bfdd7783a12434937 | -----------------------------------
--
-- Zone: Grauberg_[S] (89)
--
-----------------------------------
package.loaded["scripts/zones/Grauberg_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Grauberg_[S]/TextIDs");
----------------------... | Lua | scripts/zones/Grauberg_[S]/Zone.lua | jono659/enko | gpl-3.0 | 1,315 | 54 | codeparrot/github-code |
9e12c3134f075792ab6d43442c870797fa31fbc9ea8d71c51e0109d466bd6430 | /*
* Druid - a distributed column store.
* Copyright 2012 - 2015 Metamarkets Group 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-... | Java | processing/src/main/java/io/druid/query/timeseries/TimeseriesResultBuilder.java | elijah513/druid | apache-2.0 | 1,684 | 63 | codeparrot/github-code |
7de28b6030f3951875e82c186bcc7d0b82b6d9330ccbc4bb2ba228118a2ed661 | /*
* 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 | zeppelin-jupyter/src/main/java/org/apache/zeppelin/jupyter/nbformat/ExecuteResult.java | r-kamath/incubator-zeppelin | apache-2.0 | 1,566 | 51 | codeparrot/github-code |
7e175467628e75d6a2f752d2f857e902112ec6ca1cd9da5d676a0590b320344b | /*
* 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 | lang/java/reef-io/src/main/java/org/apache/reef/io/network/group/impl/task/InitHandler.java | tcNickolas/incubator-reef | apache-2.0 | 1,815 | 55 | codeparrot/github-code |
e94efa9d37ddfc826e2f7338f2c8f37b37822d46467c37fc093c6939ee2c090d | /* Copyright (C) 1991,92,93,94,95,96,97,2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
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 published by the Free Software Foundation; either
v... | C | uclibc/include/netinet/icmp6.h | easion/os_sdk | apache-2.0 | 8,817 | 255 | codeparrot/github-code |
789f8ba151343816af444caf9cffdb2fe6517eb1fd580acac2ea3e00b34f965d | /*
* 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/tribe/TribeService.java | bestwpw/elasticsearch | apache-2.0 | 19,213 | 339 | codeparrot/github-code |
24d1d79de6ef30cc6c6ed0da3d946026b35b66786e3c96b163ccc2624a942059 | // 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.
#ifndef BASE_PREFS_TESTING_PREF_STORE_H_
#define BASE_PREFS_TESTING_PREF_STORE_H_
#include <string>
#include "base/basictypes.h"
#include "base/comp... | C | third_party/webrtc/src/chromium/src/base/prefs/testing_pref_store.h | Teamxrtc/webrtc-streaming-node | mit | 4,117 | 113 | codeparrot/github-code |
82c6aa964f119aa0571dc2d1e5c3093636c428ad3892049f69fb776fb058ce25 | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | PHP | www/lib/Zend/Log/Formatter/Simple.php | hansbonini/cloud9-magento | mit | 2,965 | 109 | codeparrot/github-code |
324a00109e32a7ed6382ab90084c7a6b5d7ebdb0e4e89cf6a09cff1a25d83864 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
namespace System.Diagnostics.Eventing.Reader
{
/// <summary>
/// Describe... | C# | src/System.Diagnostics.EventLog/src/System/Diagnostics/Reader/EventTask.cs | ViktorHofer/corefx | mit | 2,543 | 97 | codeparrot/github-code |
17a7cba2e0650c0196b8a0c4155d4980f6f8646130c89fad882419a56f437dcf | /* Copyright (c) 2013-2014, The Linux Foundation. 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... | C | sound/soc/codecs/wcd9xxx-common.c | CarbonROM/android_kernel_htc_msm8974 | gpl-2.0 | 46,383 | 1,433 | codeparrot/github-code |
29619ff17c6cc2b27dbc8a102e1511dd10c2d9697eefcb8c8e6cbd5e490488ad | /**
* Copyright 2015 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | JavaScript | decorators-es7/read-write/src/scripts/libs/ReadWrite/DOMManager.js | jpmedley/samples | apache-2.0 | 3,628 | 143 | codeparrot/github-code |
603b166d5db3c352983dc97db9ff35bbbd7518e5f16069294fc43dd6338cffef | /*************************GO-LICENSE-START*********************************
* Copyright 2014 ThoughtWorks, 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... | Java | common/src/com/thoughtworks/go/server/web/AbstractJsonRenderer.java | ffafara/gocd | apache-2.0 | 2,047 | 62 | codeparrot/github-code |
82e43709fb6c89ccf1e196ef366446a2ea2d93ad4dcd3038d8e9727843dde384 | /*************************GO-LICENSE-START*********************************
* Copyright 2014 ThoughtWorks, 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... | Java | server/src/com/thoughtworks/go/server/web/ArtifactFolder.java | ffafara/gocd | apache-2.0 | 3,801 | 114 | codeparrot/github-code |
e1837b83211ffccf65cc743076f50209e925190005aa43df18185bbd394b5ac6 | /**
* Copyright (c) 2008, http://www.snakeyaml.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | Java | src/test/java/org/yaml/snakeyaml/recursive/Human.java | marcuskara/snakeyaml | apache-2.0 | 1,756 | 74 | codeparrot/github-code |
037b9adb776e5e2120126dbe3b9ad233e64a3bd27c93d1205e3fda11170cd9ee | /*
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | plugins/InspectionGadgets/InspectionGadgetsAnalysis/src/com/siyeh/ig/junit/JUnit3MethodNamingConventionInspectionBase.java | asedunov/intellij-community | apache-2.0 | 2,572 | 92 | codeparrot/github-code |
c73c8455a033e67f243a924d08b2cd0897c004663f56e189eee5078bedd3b8d9 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/media_galleries/linux/mtp_device_task_helper.h"
#include "base/logging.h"
#include "chrome/browser/media_galleries/linux/mtp_dev... | C++ | chromium/src/chrome/browser/media_galleries/linux/mtp_device_task_helper.cc | espadrine/opera | bsd-3-clause | 7,372 | 187 | codeparrot/github-code |
68b4f1ffd794330b6b605486e96bff448a072384359599d4e6f34a4d63cb5f17 | /* StringReader.java -- permits a String to be read as a character input stream
Copyright (C) 1998, 1999, 2000, 2003 Free Software Foundation
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published ... | Java | tools/source/gcc-4.2.4/libjava/classpath/java/io/StringReader.java | shaotuanchen/sunflower_exp | bsd-3-clause | 6,492 | 210 | codeparrot/github-code |
635574c9cebb8f8c5b03f90fb9705923ca2180cdc9ce362dc335182f46f7e475 | import fs = require('fs');
import http = require('http');
import chai = require('chai');
import ChaiHttp = require('chai-http');
import when = require('when');
chai.use(ChaiHttp);
// ReSharper disable WrongExpressionStatement
// Add promise support if this does not exist natively.
if (!global.Promise) {
chai.reques... | TypeScript | types/chai-http/chai-http-tests.ts | laurentiustamate94/DefinitelyTyped | mit | 3,913 | 136 | codeparrot/github-code |
e8c9b51fa12baf7ac9b65838b4b975493e7d4c35c7c49f68ff9fa729dcb55eaf | /*Copyright (c) 2014, TT Labs, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following di... | JavaScript | ajax/libs/evaporate/1.2.0/evaporate.js | jdh8/cdnjs | mit | 54,895 | 1,385 | codeparrot/github-code |
af0da4d89fcb4b5708093bebf155ddfc33a01fd2da9620407f2c4ee0f044af87 | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2015 - ROLI Ltd.
Permission is granted to use this software under the terms of either:
a) the GPL v2 (or any later version)
b) the Affero GPL v3
Details... | C++ | wayverb/JuceLibraryCode/modules/juce_gui_basics/layout/juce_ComponentBoundsConstrainer.cpp | reuk/waveguide | gpl-2.0 | 10,710 | 302 | codeparrot/github-code |
f08391e634a334c3dd36389c2ca717f44814ef5e3322e440896d726951d15040 | /*
* This is a module which is used for logging packets to userspace via
* nfetlink.
*
* (C) 2005 by Harald Welte <laforge@netfilter.org>
* (C) 2006-2012 Patrick McHardy <kaber@trash.net>
*
* Based on the old ipv4-only ipt_ULOG.c:
* (C) 2000-2004 by Harald Welte <laforge@netfilter.org>
*
* This program is fre... | C | net/netfilter/nfnetlink_log.c | eva-oss/linux | gpl-2.0 | 29,075 | 1,163 | codeparrot/github-code |
ce3fdb81e0a97f28e1c2f3dc23f5f9aa1e908b5a5d5cf9a1d462aab88fd5e146 | // { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } }
// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } }
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
//... | C++ | uefi/gcc/gcc-4.6.3/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/2.cc | SanDisk-Open-Source/SSD_Dashboard | gpl-2.0 | 1,763 | 64 | codeparrot/github-code |
0f9243a49862899285558e42550e8ff67d90ad3e752e6769b5430c51023dac51 | /*
===========================================================================
Copyright (c) 2010-2015 Darkstar Dev Teams
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 | src/map/items/item_usable.h | jono659/enko | gpl-3.0 | 2,453 | 76 | codeparrot/github-code |
d75a8fe0139182b340ce111dd0c83c4fd4dc0b9a0b4580461b462156d07e58dc | // ---------------------------------------------------------------------
//
// Copyright (C) 2001 - 2014 by the deal.II authors
//
// This file is part of the deal.II library.
//
// The deal.II library is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesser General
// Pu... | C++ | source/lac/matrix_out.cc | natashasharma/dealii | lgpl-2.1 | 1,279 | 52 | codeparrot/github-code |
036f603c025c005f3284f00c390be17c442bef92f4eb47d9556148f4f14f8507 | /*
* 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/cluster/snapshots/get/GetSnapshotsResponse.java | fernandozhu/elasticsearch | apache-2.0 | 2,894 | 91 | codeparrot/github-code |
9b59fd7c00830bb7dce8e4ace33c5ff016679da8357cab290028b7cafb5f3064 | # Encoding: utf-8
# Cloud Foundry Java Buildpack
# Copyright 2013-2016 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
#
# http://www.apache.org/licenses/... | Ruby | lib/java_buildpack/component/environment_variables.rb | rajnishpandey/testApp | apache-2.0 | 2,049 | 63 | codeparrot/github-code |
a1fff31e188b76ac993755f464a342f1cd6c9f1d6d551010a0726ddc0c61e9a3 | //******************************************************************
//
// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except ... | C | external/iotivity/iotivity_1.2-rel/resource/include/OutOfProcClientWrapper.h | heejin-kim/TizenRT | apache-2.0 | 9,550 | 206 | codeparrot/github-code |
e3f4763bec4e6ac98ccb98facbc102a2680838b5a2483f7a638e294d9d452feb | /**
* $URL$
* $Id$
*
* Copyright (c) 2005-2009 The Sakai 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... | Java | basiclti/portlet-util/src/java/org/sakaiproject/portlet/util/PortletHelper.java | marktriggs/nyu-sakai-10.4 | apache-2.0 | 9,455 | 307 | codeparrot/github-code |
cc5bf3f8cb11a3278658bda0a5ed967ae1e2c9cd7cee1aed476f24da8e95f74e | // runoutput
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// terribly slow on wasm
// +build !wasm
package main
import (
"fmt"
"math/big"
"unsafe"
)
var one = big.NewInt(1)
type _type struct {
nam... | GO | test/fixedbugs/issue9604b.go | akutz/go | bsd-3-clause | 4,910 | 181 | codeparrot/github-code |
27c5d15d544be3782e73b564720fd3d69f4dcc08e1a9cf6060bca735d91b0c83 | /****************************************************************************
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2009 Leonardo Kasperavičius
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2011 Zynga Inc.
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Perm... | C++ | ikaszopa/cocos2d/cocos/2d/CCParticleSystemQuad.cpp | irontec/Ikaszopa | mit | 19,060 | 618 | codeparrot/github-code |
2f8b0056f7afce72402686223226205cd03bed85b8842cd532d7005c4b1dfcd4 | /* Check that sign/zero extensions are emitted where needed when the
tst Rm,Rn instruction is used. */
/* { dg-do compile } */
/* { dg-options "-O1" } */
/* { dg-final { scan-assembler-times "tst\tr" 8 } } */
/* { dg-final { scan-assembler-times "mov.b" 4 } } */
/* { dg-final { scan-assembler-times "mov.w" 4 } ... | C | gcc/testsuite/gcc.target/sh/pr53988-1.c | paranoiacblack/gcc | gpl-2.0 | 1,217 | 66 | codeparrot/github-code |
2f22f96861c686ec6551ca8696d016de38d99907b61cf43772e06863b469712c | /******************************************************************
*
* Copyright 2015 Samsung Electronics 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
*
... | Java | service/things-manager/sampleapp/android/Sample/src/com/tm/sample/ActionListener.java | kadasaikumar/iotivity-1.2.1 | gpl-3.0 | 4,949 | 124 | codeparrot/github-code |
cdf7954b74f2db6d622fc3be2394e2726778b762e2c291b8795ca5406c947d97 | /*
* 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 | resource-managers/mesos/src/main/scala/org/apache/spark/deploy/mesos/ui/DriverPage.scala | minixalpha/spark | apache-2.0 | 6,252 | 181 | codeparrot/github-code |
ae224d19807fb64a685afd954e9310d81179c7124b00b97e0e7d1f9084e2bda4 | /*
* 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/src/com/jetbrains/python/testing/PyRerunFailedTestsAction.java | caot/intellij-community | apache-2.0 | 5,449 | 141 | codeparrot/github-code |
ef5296a0c199aa78fe7f3524d2916d1a6fb3b11e958cf249ebd6c554ac516c03 | // 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 "content/browser/android/content_settings.h"
#include "base/android/jni_android.h"
#include "content/browser/android/content_view_core_impl.... | C++ | content/browser/android/content_settings.cc | aospx-kitkat/platform_external_chromium_org | bsd-3-clause | 1,947 | 59 | codeparrot/github-code |
ca7aa7b4d7300377231e6bba3d5b56067313487c947310ca3dfc84146affee9f | """
Exceptions
"""
# Author: Gael Varoquaux < gael dot varoquaux at normalesup dot org >
# Copyright: 2010, Gael Varoquaux
# License: BSD 3 clause
import sys
from ._compat import PY3_OR_LATER
class JoblibException(Exception):
"""A simple exception with an error message that you can get to."""
def __init__(se... | Python | sklearn/externals/joblib/my_exceptions.py | kashif/scikit-learn | bsd-3-clause | 3,690 | 106 | codeparrot/github-code |
57b977d5622e4d07272d6f2fdbe4d54df5f9a63e48e4336e8e52f891458d03dc | /*!
* mediawiki.feedback
*
* @author Ryan Kaldari, 2010
* @author Neil Kandalgaonkar, 2010-11
* @since 1.19
*/
( function ( mw, $ ) {
/**
* This is a way of getting simple feedback from users. It's useful
* for testing new features -- users can give you feedback without
* the difficulty of opening a whole ... | JavaScript | wiki/resources/src/mediawiki/mediawiki.feedback.js | RicochetSoftware/ricochetsoftware.github.io | gpl-2.0 | 9,179 | 321 | codeparrot/github-code |
0a05eedf9377e3ff07a6ecd37c463a3ec485a0d1d5f64d653843636483df0e30 | /* Copyright (C) 2003 MySQL 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; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT AN... | C++ | storage/ndb/include/kernel/signaldata/StartTo.hpp | prisamuel/mysql-5.5.29 | gpl-2.0 | 1,211 | 50 | codeparrot/github-code |
670dee26e60368ed89e1f8af9e58f143518888370439c77298e9a40500d3cf1d | // Copyright (c) 2011 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 <math.h>
#include <stdint.h>
#include <algorithm>
#include "ppapi/cpp/graphics_2d.h"
#include "ppapi/cpp/image_data.h"
#include "ppapi/cpp/... | C++ | ppapitest/sdk/ppapi/examples/2d/scroll.cc | blackenough/mediaAdapter | gpl-3.0 | 3,813 | 124 | codeparrot/github-code |
4fbf81f060b2f06cfbe0687db3f35bb4f6c79b726304c4235fbed224e5e2037f | import { PolyhedronBufferGeometry } from './PolyhedronBufferGeometry';
/**
* @author Mugen87 / https://github.com/Mugen87
*/
function DodecahedronBufferGeometry( radius, detail ) {
var t = ( 1 + Math.sqrt( 5 ) ) / 2;
var r = 1 / t;
var vertices = [
// (±1, ±1, ±1)
- 1, - 1, - 1, - 1, - 1, 1,
- 1, 1... | JavaScript | www/js/three/geometries/DodecahedronBufferGeometry.js | abetusk/pepacat | agpl-3.0 | 1,624 | 64 | codeparrot/github-code |
14ad239caeb8ee0951d7a1c3c0267bec3072c74411e846d62de3567d5e3877ca | <?php
final class AlmanacQueryDevicesConduitAPIMethod
extends AlmanacConduitAPIMethod {
public function getAPIMethodName() {
return 'almanac.querydevices';
}
public function getMethodDescription() {
return pht('Query Almanac devices.');
}
protected function defineParamTypes() {
return array(... | PHP | src/applications/almanac/conduit/AlmanacQueryDevicesConduitAPIMethod.php | codevlabs/phabricator | apache-2.0 | 1,360 | 64 | codeparrot/github-code |
970ae25c5650772c1b78fe748949cd8038f76f0bf86c5e3f5509dd9f6e5d5ec9 | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | Java | engine/src/main/java/org/pentaho/di/trans/steps/csvinput/UnnamedFieldsMapping.java | wseyler/pentaho-kettle | apache-2.0 | 1,491 | 48 | codeparrot/github-code |
fd29383cb7e507ed5c717442be4a9b6d356750f2cffb213d17895f8c7afee3cb | // 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.
#ifndef UI_APP_LIST_SEARCH_RESULT_H_
#define UI_APP_LIST_SEARCH_RESULT_H_
#include <vector>
#include "base/basictypes.h"
#include "base/observer_lis... | C | ui/app_list/search_result.h | 7kbird/chrome | bsd-3-clause | 4,646 | 165 | codeparrot/github-code |
ac3717b89cef488ff96efaa76d8697a26856ef86656b58db1abdbce96f0bc6e9 | /*
* Copyright (C) 2005 - 2013 Emulex
* 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
* as published by the Free Software Foundation. The full GNU General
* Public License is included in this distrib... | C | unionfs-3.10.y/drivers/net/ethernet/emulex/benet/be_ethtool.c | prasidh09/cse506 | gpl-2.0 | 30,198 | 1,124 | codeparrot/github-code |
6ec82708dd7d0488884a8b7c821457017ed58f2a7e897785ab3cf82553a404a6 | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("React"), require("_"));
else if(typeof define === 'function' && define.amd)
define(["React", "_"], factory);
else if(typeof exports === 'object')
exports["... | JavaScript | ajax/libs/griddle-react/0.1.14/griddle.js | dlueth/cdnjs | mit | 40,201 | 1,081 | codeparrot/github-code |
10b837714f9b01e697c102e87b3b461d3e66e5d45b2563068220430dfeb20668 | <!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8" lang="en"><![endif]-->
<!--[if gt IE 8]><!-->
<html lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Your action plan</title><!--[if gt IE 8]><!-->
<link href="./assets/stylesheets/govuk-template.css" media="screen" rel=
"st... | HTML | app/views/sprintbeta8-4/light-reg-t/your-action-plan.html | tyfairclough/das-aml-beta-ui | mit | 20,154 | 402 | codeparrot/github-code |
a94f98d803cfcc7de4db50502f10ca75907de50225a0348f46d17dd15b31d683 | //===-- msan_interface.h --------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | libsanitizer/include/sanitizer/msan_interface.h | Gurgel100/gcc | gpl-2.0 | 5,118 | 125 | codeparrot/github-code |
79c612e55d4188e36142e349176f2d0ffaf0cf2cdad35a2fe4be340a921f8325 | /* MI Command Set - output generating routines.
Copyright (C) 2000-2013 Free Software Foundation, Inc.
Contributed by Cygnus Solutions (a Red Hat company).
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Licen... | C | gdb/mi/mi-out.c | hzq1001/or1k-src | gpl-2.0 | 10,489 | 423 | codeparrot/github-code |
1e294d2babf08f09a8c080866e2fdc63dee07a65b45938c64ded20089af29443 | /**
* MojoShader; generate shader programs from bytecode of compiled
* Direct3D shaders.
*
* Please see the file LICENSE.txt in the source's root directory.
*
* This file written by Ryan C. Gordon.
*/
#define __MOJOSHADER_INTERNAL__ 1
#include "mojoshader_internal.h"
#if DEBUG_PREPROCESSOR
#define print_... | C | Source/ThirdParty/MojoShader/mojoshader_preprocessor.c | cyberix3d/Cyberix3D | gpl-3.0 | 68,047 | 2,363 | codeparrot/github-code |
44f53297526035aa4f065749e3d3062252887f603821b3db07e6073f53f6bfd9 | // 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 COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_
#define COMPONENTS_DOM_DISTILLER_CORE_VIEWER_H_
#include <string>
#include "base/basictypes.h"
#include ... | C | external/chromium_org/components/dom_distiller/core/viewer.h | s20121035/rk3288_android5.1_repo | gpl-3.0 | 3,483 | 90 | codeparrot/github-code |
f1784188753ef9c1d248cacfaa2a70938d70c4e1625f4c55de032d49e5115b9f | /*
* Copyright (c) 2006, 2007, 2008, 2009 QLogic Corporation. All rights reserved.
* Copyright (c) 2003, 2004, 2005, 2006 PathScale, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public L... | C | drivers/infiniband/hw/qib/qib_twsi.c | mlachwani/Android-4.4.3-HTC-M8-Kernel-ATT | gpl-2.0 | 7,908 | 369 | codeparrot/github-code |
c922e777ca92e54983eb39eb56da7d9f0663ed73648dd2af2cf57a1cc364b2a2 | /*
* GemTek radio card driver
*
* Copyright 1998 Jonas Munsin <jmunsin@iki.fi>
*
* GemTek hasn't released any specs on the card, so the protocol had to
* be reverse engineered with dosemu.
*
* Besides the protocol changes, this is mostly a copy of:
*
* RadioTrack II driver for Linux radio support (C) 1998 ... | C | drivers/media/radio/radio-gemtek.c | htc-msm8974/android_kernel_htc_msm8974 | gpl-2.0 | 8,043 | 289 | codeparrot/github-code |
6d65a23377a353a5dc9b71c578c65569c72724dc7a7b320794fc0304e4d4c88b | /*
* Copyright (c) 2004 Topspin Corporation. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this sour... | C | include/rdma/ib_pack.h | Evervolv/android_kernel_htc_msm8974 | gpl-2.0 | 7,558 | 257 | codeparrot/github-code |
e2da101d69480696ce788b01be51156275cb046febce9176fcc148a504d5655e | /*
* IBM Automatic Server Restart driver.
*
* Copyright (c) 2005 Andrey Panin <pazke@donpac.ru>
*
* Based on driver written by Pete Reynolds.
* Copyright (c) IBM Corporation, 1998-2004.
*
* This software may be used and distributed according to the terms
* of the GNU Public License, incorporated herein by refe... | C | drivers/watchdog/ibmasr.c | jameshilliard/m8-3.4.0-gb1fa77f | gpl-2.0 | 8,224 | 402 | codeparrot/github-code |
01bc8981253514b62a57bf1752c9ec6ddca370b439fe1738630ff3118394eb47 | /*
* S390 version
* Copyright IBM Corp. 1999
* Author(s): Hartmut Penner (hp@de.ibm.com)
*
* Derived from "arch/i386/mm/init.c"
* Copyright (C) 1995 Linus Torvalds
*/
#include <linux/signal.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#incl... | C | kernel/arch/s390/mm/init.c | tejaswanjari/SMR_FS-EXT4 | gpl-2.0 | 5,867 | 231 | codeparrot/github-code |
6e4170b972417c131224d2f13471355e27103590b8539543b3f81ab1f13dcb8a | /*
* Copyright (C) 2008-2015 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* 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 ... | C++ | src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_morogrim_tidewalker.cpp | amsjunior1/TrinityCore | gpl-2.0 | 11,549 | 371 | codeparrot/github-code |
52f0d2e9b05b51802ff4b54aa8f260a726eef75497c134b977a4d43d6b97057d | /*
Copyright (c) 2003, 2013, Oracle and/or its affiliates. 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; version 2 of the License.
This program is distributed i... | C++ | storage/ndb/src/kernel/vm/CArray.hpp | hasegaw/ref-mysql-labs-tplc | gpl-2.0 | 3,069 | 157 | codeparrot/github-code |
3b04c20bc63da2b44cf9dbd7765d2f8106294dfd09835f4d7417d122b5921d05 | /*
* sound/oss/v_midi.c
*
* The low level driver for the Sound Blaster DS chips.
*
*
* Copyright (C) by Hannu Savolainen 1993-1996
*
* USS/Lite for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)
* Version 2 (June 1991). See the "COPYING" file distributed with this software
* for more info.
*... | C | sound/oss/v_midi.c | jameshilliard/m8-3.4.0-gb1fa77f | gpl-2.0 | 5,733 | 279 | codeparrot/github-code |
97d514b3d51331afba4442c6e6497045e1428b2b1a18985b072ebd55014c3694 | #ifndef _ASM_X86_USER32_H
#define _ASM_X86_USER32_H
struct user_i387_ia32_struct {
u32 cwd;
u32 swd;
u32 twd;
u32 fip;
u32 fcs;
u32 foo;
u32 fos;
u32 st_space[20];
};
struct user32_fxsr_struct {
unsigned short cwd;
unsigned short swd;
unsigned short twd;
unsigned short fop;
int fip;
int fcs;
int f... | C | arch/x86/include/asm/user32.h | jameshilliard/m8-3.4.0-gb1fa77f | gpl-2.0 | 1,033 | 64 | codeparrot/github-code |
974390b258b9d2b33700c775fcc33b46e0c373f5405b0f0bc39b89b868732790 | //======================================================================
int USERD_get_var_value_at_specific
(
int which_var,
int which_node_or_elem,
int which_part,
int which_elem_type,
int time_step,
float values[3],
int imag_data
)
{
#ifdef ENSIGHTDEBUG
Info<< "Entering: USERD_get_var... | C++ | applications/utilities/postProcessing/graphics/ensightFoamReader/USERD_get_var_value_at_specific.H | adrcad/OpenFOAM-2.3.x | gpl-3.0 | 1,674 | 72 | codeparrot/github-code |
2bb135d70bc1651126dbbc8d776c256f344a310c79138d8cc248b0ce020efa28 | /**
* 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 | hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/JsonObjectMapperParser.java | dennishuo/hadoop | apache-2.0 | 2,745 | 90 | codeparrot/github-code |
2b224f59cfb3166d6a27676f1050c3396dd38194b467ead522b3dd227770f964 | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
# (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = '''
... | Python | scripts/ansible-play/.venv/lib/python2.7/site-packages/ansible/plugins/callback/full_skip.py | e-gob/plataforma-kioscos-autoatencion | bsd-3-clause | 2,289 | 73 | codeparrot/github-code |
82c1d80e54503ee90957c5c0150f34a3ec4acb57b936820a043b61368ae57195 | // { dg-do run }
// 2005-2-17 Matt Austern <austern@apple.com>
//
// Copyright (C) 2005-2014 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published... | C++ | libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/insert/multiset_range.cc | iains/darwin-gcc-4-9 | gpl-2.0 | 2,218 | 81 | codeparrot/github-code |
76611326bad839eacacfc786128f0a76522cecda429622c66902d767a9fad2bd | <?php
if (!class_exists('Google_Client')) {
require_once dirname(__FILE__) . '/autoload.php';
}
/**
* Extension to the regular Google_Model that automatically
* exposes the items array for iteration, so you can just
* iterate over the object rather than a reference inside.
*/
class Google_Collection extends Goo... | PHP | wp-content/plugins/syndicate-post/PublishDriver/Blogger/client/google-api-php-client/src/Google/Collection.php | damian-kociuba/wordpressSyndicatePostModule | gpl-2.0 | 2,588 | 102 | codeparrot/github-code |
d8f740f45805dd922fff73d8b9cb79e8a5b965c7348b3e91390b2f13521be206 | using System;
namespace Server.Items
{
public class CandleLarge : BaseLight
{
[Constructable]
public CandleLarge()
: base(0xA26)
{
if (Burnout)
this.Duration = TimeSpan.FromMinutes(25);
else
this.Duration = TimeSpan.Zer... | C# | Scripts/Items/Lights/CandleLarge.cs | Jascen/UOSmart | gpl-2.0 | 1,126 | 52 | codeparrot/github-code |
2b4ee29117bc6610488de1822e08b81e404f9fd894939eb4f23044ef02d416d5 | /*
* Copyright (C) 2008-2014 TrinityCore <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later ve... | C++ | src/server/scripts/EasternKingdoms/MagistersTerrace/boss_vexallus.cpp | PhoenixiaGaming/WoP-v3 | gpl-2.0 | 6,837 | 223 | codeparrot/github-code |
d0795918595112b7250720091ecbb0f45c5224b9e494631a2449ecd63c798031 | // (C) Copyright Howard Hinnant
// (C) Copyright 2011 Vicente J. Botet Escriba
// Use, modification and distribution are subject to 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).
//
/**
* Duration formatting facet fo... | C++ | vendors/boost/include/boost/chrono/io/duration_put.hpp | alexisVallet/animation-character-identification | gpl-3.0 | 10,213 | 265 | codeparrot/github-code |
1a03698f5c844aaa697a631e3d3675446b22d819a1698895c3dc9fb32b9b58e3 | /*
coreaudio: audio output on MacOS X
copyright ?-2006 by the mpg123 project - free software under the terms of the GPL 2
see COPYING and AUTHORS files in distribution or http://mpg123.org
initially written by Guillaume Outters
modified by Nicholas J Humfrey to use SFIFO code
modified by Taihei Monma to use Audi... | C | src/output/coreaudio.c | Distrotech/mpg123 | lgpl-2.1 | 9,831 | 371 | codeparrot/github-code |
e4361e46c4441fc738c466bbf88187e67f264a6dc4d4ff669ad42c36804c9ffa | """
figleaf is another tool to trace Python code coverage.
figleaf uses the sys.settrace hook to record which statements are
executed by the CPython interpreter; this record can then be saved
into a file, or otherwise communicated back to a reporting script.
figleaf differs from the gold standard of Python coverage t... | Python | tools/bin/ext/figleaf/__init__.py | hornn/interviews | apache-2.0 | 8,016 | 310 | codeparrot/github-code |
a1c1c9dd34e33f3077cb923b8f6031889d357be7af560591c44fc6f99a043a02 | <?php
/**
* CakeTestCaseTest file
*
* Test Case for CakeTestCase class
*
* CakePHP : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENS... | PHP | works/047/cakephp-2.7.5/lib/Cake/Test/Case/TestSuite/CakeTestCaseTest.php | seintoseiya/onesway | mit | 12,976 | 503 | codeparrot/github-code |
fea441a08f8647b3299806c57a25744440601855d7aa814198da53d9258bf7db | /* Copyright (c) 2012-2013, The Linux Foundation. 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... | C | sound/soc/codecs/wcd9320.h | KylinUI/android_kernel_lge_msm8974 | gpl-2.0 | 3,705 | 162 | codeparrot/github-code |
4e26eb15f67b8b868229a9a97d062454368fbfcd180d777c8677591c90fd0221 | /*
* Copyright (c) 2006 QLogic, Inc. All rights reserved.
* Copyright (c) 2003, 2004, 2005, 2006 PathScale, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, a... | C | release/src-rt/linux/linux-2.6/drivers/infiniband/hw/ipath/ipath_eeprom.c | mikewadsten/asuswrt | gpl-2.0 | 16,222 | 642 | codeparrot/github-code |
66dba88c2ea295fb58c32a7b39b54a1a86a1d98eb5468273b11bbd0eb02e79f7 | /*
* arch/m68k/q40/config.c
*
* Copyright (C) 1999 Richard Zidlicky
*
* originally based on:
*
* linux/bvme/config.c
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file README.legal in the main directory of this archive
* for more details.
*/
#include ... | C | linux-2.6.x/arch/m68k/q40/config.c | ipwndev/DSLinux-Mirror | gpl-2.0 | 8,877 | 366 | codeparrot/github-code |
5f8308a9aaa7316700111ebd4215f4d53e8db038aebdef7c8ee377c380124f29 | // SPDX-License-Identifier: GPL-2.0-only
/*
* acpi_processor.c - ACPI processor enumeration support
*
* Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
* Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
* Copyright (C) 2004 Dominik Brodowski <linux@brodo.de>
* Copyrigh... | C | drivers/acpi/acpi_processor.c | rperier/linux-rockchip | gpl-2.0 | 23,212 | 894 | codeparrot/github-code |
9f9fbbcb909c0660ee5100d2179ef55b826f563fdfed7499f88ead7ad64b9760 | // Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build plan9
package x509
import (
"io/ioutil"
"os"
)
// Possible certificate files; stop after finding one.
var certFiles = []string{
"/sys/lib/tls/ca... | GO | x509/root_plan9.go | daviddrysdale/certificate-transparency-go | apache-2.0 | 844 | 41 | codeparrot/github-code |
178f7e51905d1e3438d587d87c34d2c77b02aca93e9ee5c29d3d3c376cb84722 | package CPAN::HandleConfig;
use strict;
use vars qw(%can %keys $loading $VERSION);
$VERSION = sprintf "%.6f", substr(q$Rev: 2212 $,4)/1000000 + 5.4;
%can = (
commit => "Commit changes to disk",
defaults => "Reload defaults from disk",
help => "Short help about 'o conf' usage",
in... | Perl | third_party/cygwin/lib/perl5/vendor_perl/5.10/CPAN/HandleConfig.pm | leighpauls/k2cro4 | bsd-3-clause | 20,585 | 720 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.