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 |
|---|---|---|---|---|---|---|---|---|
0124f3bdf934c5b0dab411a659134d36fa260d72814d352b3cc5bb0ddfe1b13d | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | JavaScript | openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/configuration/configuration.controller.js | damien-dg/horizon | apache-2.0 | 2,551 | 74 | codeparrot/github-code |
8d537fe8229d39dfa7484353343ba61a49fbcd59d5bd60fdc5e3eb5793ee0892 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java | components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastMapProducerForSpringTest.java | kevinearls/camel | apache-2.0 | 7,903 | 210 | codeparrot/github-code |
fc2fea9cee81fa48fd2d940c768d0d995e81ac79ea4406b68d9636c97257bd31 | /*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | C | third_party/openssl/openssl/crypto/x509/x509_cmp.c | openweave/openweave-core | apache-2.0 | 12,680 | 460 | codeparrot/github-code |
9624593b86e0dc421d8c367b9a340676937d5faa8fa34bfb329665fd26dbe9ae | /*
* 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 a... | Java | kie-pmml/src/test/java/org/kie/pmml/pmml_4_2/predictive/models/SimpleRegressionTest.java | droolsjbpm/drools | apache-2.0 | 6,861 | 169 | codeparrot/github-code |
9f9cfde2b90fcbd198bc8d76e9a2c48716a01ab332bbc70428634af76ead2f0a | # A wonderful hack by to draw package diagrams using the dot package.
# Originally written by Jah, team Enticla.
#
# You must have the V1.7 or later in your path
# http://www.research.att.com/sw/tools/graphviz/
require 'rdoc/dot'
module RDoc
##
# Draw a set of diagrams representing the modules and classes in th... | Ruby | tools/jruby-1.5.5/lib/ruby/1.9/rdoc/diagram.rb | ThoughtWorksStudios/mingle_hg_plugin | apache-2.0 | 12,140 | 341 | codeparrot/github-code |
b2812a83793c84e78e92930d66b4894fa2876966d3d2a1ef4238e31dc6b8512d | /**
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl2.php
*
* Unless required by a... | Java | rice-middleware/kim/kim-ldap/src/main/java/org/kuali/rice/kim/ldap/EntityTypeContactInfoDefaultMapper.java | ricepanda/rice-git3 | apache-2.0 | 3,414 | 103 | codeparrot/github-code |
3c151e50c8fe2cc45e77a5306c0ff2e874dc9258a8a4a29e56f376f8773b19e7 | // Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax
function get_thin_string(a, b) {
var str = a + b; // Make a ConsString.
var o = {};
o[str]; // Turn it into a ... | JavaScript | v8_7_5/test/mjsunit/thin-strings.js | weolar/miniblink49 | apache-2.0 | 2,138 | 91 | codeparrot/github-code |
3596fbf8a2cfcc319caf8a91f7d2776e2ab60d0c3e956619f90d9aa4bb75554b | /*
* 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 | platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/EditorTabbedContainer.java | Lekanich/intellij-community | apache-2.0 | 26,784 | 792 | codeparrot/github-code |
f2608dbfbbebcfcf537089fc1db94eaa912373102ea87f6fdf87f81032c8a55b | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | Java | presto-main/src/main/java/com/facebook/presto/metadata/StaticCatalogStoreConfig.java | facebook/presto | apache-2.0 | 2,010 | 65 | codeparrot/github-code |
b0d365ee3d4fa235acb2e088d501ba03eef981dac88e2001a4d9d810eac1b68c | // Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | C++ | earth_enterprise/src/fusion/autoingest/tools/geaddtovectorproject.cpp | tst-ppenev/earthenterprise | apache-2.0 | 4,713 | 159 | codeparrot/github-code |
ab0bbb999c41d6793692ed34a5fde5123ee555e74c93182f7864f41f8835097a | package water.api;
import java.util.*;
import dontweave.gson.*;
import water.DKV;
import water.Key;
import water.Request2;
import water.H2O;
import water.Value;
import water.Iced;
import water.fvec.Frame;
import water.util.Log;
public class ModelMetrics extends Request2 {
///////////////////////
// Request2 b... | Java | src/main/java/water/api/ModelMetrics.java | rowhit/h2o-2 | apache-2.0 | 2,364 | 88 | codeparrot/github-code |
4dfa763b52c8e1533c0e1828d300cf8142734a90d7747ab002e29c84d5c006aa | /*
* 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/index/fielddata/plain/GeoPointArrayAtomicFieldData.java | andrejserafim/elasticsearch | apache-2.0 | 5,647 | 151 | codeparrot/github-code |
af60311d986f5a4e49cdfdb611bd4870f90186820b60038e9a32b69ff5c6f871 | /*
* Copyright (C) 2009 University of Washington
*
* 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 ... | Java | third_party/odkcollect/src/main/java/org/odk/collect/android/tasks/SaveToDiskTask.java | projectbuendia/client | apache-2.0 | 18,120 | 435 | codeparrot/github-code |
b5fb5bcde28841e10f1aa3f1fc69db1f13a261f884a6213c6aa70b1b106b9da4 | =pod
=head1 NAME
i2t_ASN1_OBJECT,
OBJ_length, OBJ_get0_data, OBJ_nid2obj, OBJ_nid2ln,
OBJ_nid2sn, OBJ_obj2nid, OBJ_txt2nid, OBJ_ln2nid, OBJ_sn2nid, OBJ_cmp,
OBJ_dup, OBJ_txt2obj, OBJ_obj2txt, OBJ_create, OBJ_cleanup
- ASN1 object utility functions
=head1 SYNOPSIS
#include <openssl/objects.h>
ASN1_OBJECT *OBJ_nid... | Perl | third_party/openssl/openssl/doc/crypto/OBJ_nid2obj.pod | openweave/openweave-core | apache-2.0 | 6,933 | 199 | codeparrot/github-code |
67873f0dd9a4d17c447daf141eedadbe0d0136ecd2c278c48d0e854182598097 | /*
* Copyright 2015-present Facebook, 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... | Java | test/com/facebook/buck/android/AndroidBinaryDescriptionTest.java | Learn-Android-app/buck | apache-2.0 | 2,795 | 72 | codeparrot/github-code |
b86ddaf9b1bdd288529f18452a0eb675a1f34c6107e80f55ddb35e6e77bab521 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_MANAGER_H_
#define CHROME_BROWSER_EXTENSIONS_EXTERNAL_INSTALL_MANAGER_H_
#include <map>
#include <memo... | C | third_party/webrtc/include/chromium/src/chrome/browser/extensions/external_install_manager.h | ssaroha/node-webrtc | bsd-2-clause | 4,127 | 116 | codeparrot/github-code |
ac73a0d9158826ac90a6eeb55fae254e61f22fb65a2062459a0ab08eb896d9f9 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Microsoft.WindowsAzure;
using Orchard.Azure.Services.FileSystems;
using Orchard.Environment.Configuration;
using Orchard.FileSystems.Media;
using Orchard.Logging;
namespace Orchard.Azure.Services.Environment.Configurat... | C# | src/Orchard.Web/Modules/Orchard.Azure/Services/Environment/Configuration/AzureBlobShellSettingsManager.cs | Cphusion/Orchard | bsd-3-clause | 3,720 | 79 | codeparrot/github-code |
1a063fa266fb37aec84ea76ff4d83abcff258c3954c31700ff67fd1d868f6113 | /**
* Copyright (C) 2015 Dato, Inc.
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#include <flexible_type/string_escape.hpp>
namespace graphlab {
void escape_string(const std::string& val,
cha... | C++ | oss_src/flexible_type/string_escape.cpp | thirdwing/SFrame | bsd-3-clause | 7,827 | 255 | codeparrot/github-code |
1e26483b41c20ccad5a2eb7b24763892f870f9aeca8e8ba61fed6b5cd0469846 | // 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.
WebInspector.TimelineJSProfileProcessor = { };
/**
* @param {!ProfilerAgent.CPUProfile} jsProfile
* @param {!WebInspector.TracingModel.Thread} thread
... | JavaScript | third_party/WebKit/Source/devtools/front_end/timeline/TimelineJSProfile.js | mxOBS/deb-pkg_trusty_chromium-browser | bsd-3-clause | 5,200 | 143 | codeparrot/github-code |
c01d84b015d5b480a69969cc71934243a31605e270c06cc2ab52d41a110d225d | #ifndef ALIANAPARTICLEHADRONCORRELATION_H
#define ALIANAPARTICLEHADRONCORRELATION_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
//_________________________________________________________________________
/// \class AliAnaParticleHadronC... | C | PWGGA/CaloTrackCorrelations/AliAnaParticleHadronCorrelation.h | fcolamar/AliPhysics | bsd-3-clause | 56,392 | 747 | codeparrot/github-code |
78b868ed71ce6bd121e247bcc193413b3c2e1c0fad5368458fd7b910cc6262ee | /*
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | C | Source/platform/text/LocaleMac.h | temasek/android_external_chromium_org_third_party_WebKit | bsd-3-clause | 3,857 | 99 | codeparrot/github-code |
fee9c72b59627a72cee468c02dc3f05dfdc93228dd7bc23ab7207df0118f4a4f | <link rel="import" href="../../polymer/polymer.html">
<link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
<link rel="import" href="../chops-tree-status.html">
<demo-snippet>
<template>
<script>
let closedStatusJson = {
'username': 'nobody@chromium.org',
'general_state': 'cl... | HTML | third_party/polymer2/bower_components/chopsui/demo/chops-tree-status_demo.html | catapult-project/catapult | bsd-3-clause | 1,371 | 39 | codeparrot/github-code |
b0a8b3615f0e9173f710253747df635139bc0cb1c087bc296114180ff681acda | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.h"
#include <utility>
#include "base/strings/utf_string_conversions.h... | C++ | chrome/browser/ui/app_list/search/launcher_search/launcher_search_result.cc | js0701/chromium-crosswalk | bsd-3-clause | 3,735 | 113 | codeparrot/github-code |
851d80f2ddeb27cf19e66c4aab43a96aad2752ce0ae56f171c41f0f918cce88e |
#include "tools/stylepicker.h"
#include "tcolorstyles.h"
#include "tstroke.h"
#include "tofflinegl.h"
#include "tvectorrenderdata.h"
#include "tvectorimage.h"
#include "ttoonzimage.h"
#include "trasterimage.h"
#include "toonz/dpiscale.h"
#include "tpixelutils.h"
#include "tregion.h"
//-------------------------------... | C++ | toonz/sources/tnztools/stylepicker.cpp | tomosu/opentoonz | bsd-3-clause | 8,185 | 255 | codeparrot/github-code |
0a4f602de7923940d74c658b2de0d7b068755bcca22a9c5d490cf1fd2c182968 | package edu.gemini.pit.ui.util
import swing._
import java.awt
import javax.swing.BorderFactory
import scalaz._
import Scalaz._
import java.awt.Color
class ProposalSubmissionErrorDialog(msg: Seq[String]) extends StdModalEditor[String]("Proposal submission errors") { dialog =>
contents = Content
// Our main con... | Scala | bundle/edu.gemini.pit/src/main/scala/edu/gemini/pit/ui/util/ProposalSubmissionErrorDialog.scala | spakzad/ocs | bsd-3-clause | 1,604 | 63 | codeparrot/github-code |
eb4eb77b589beaf19cb78c8136a03bd2aba3bb5484c22f239954f6f1fef7ef78 | //===--- UseDefaultNoneCheck.cpp - clang-tidy -----------------------------===//
//
// 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++ | third_party/llvm/clang-tools-extra/clang-tidy/openmp/UseDefaultNoneCheck.cpp | endlessm/chromium-browser | bsd-3-clause | 2,294 | 61 | codeparrot/github-code |
b65c49be3cbcf56540072f24981b9f4efaeae3943d6c8ac03c1edc8241f7fb1a | // 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/renderer/gpu/mailbox_output_surface.h"
#include "base/logging.h"
#include "cc/output/compositor_frame.h"
#include "cc/output/compos... | C++ | content/renderer/gpu/mailbox_output_surface.cc | sgraham/nope | bsd-3-clause | 7,628 | 221 | codeparrot/github-code |
e0090f54bb5ce4402980eebf254ec08f3751a9664a0427b82dc8976cdc1e7f58 | // 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.
#ifndef COMPONENTS_IMAGE_FETCHER_CORE_FAKE_IMAGE_DECODER_H_
#define COMPONENTS_IMAGE_FETCHER_CORE_FAKE_IMAGE_DECODER_H_
#include <string>
#include "base... | C | components/image_fetcher/core/fake_image_decoder.h | chromium/chromium | bsd-3-clause | 1,329 | 45 | codeparrot/github-code |
512a71637761347d119622ad13af9fe62f87ab91b8cd730162f692cdcbe2f104 | // Google BSD license http://code.google.com/google_bsd_license.html
// Copyright 2012 Google Inc. wrightt@google.com
//
// A generic select-based socket manager.
//
#ifndef SOCKET_SELECTOR_H
#define SOCKET_SELECTOR_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <stddef.h>
// Bind a server p... | C | include/socket_manager.h | runt18/ios-webkit-debug-proxy | bsd-3-clause | 2,017 | 85 | codeparrot/github-code |
06eb44059006cbb9c054594afefd60c26fd1d5aa6e0271c3d67c067aa48dad33 | /*-------------------------------------------------------------------------
* drawElements Quality Program Test Executor
* ------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ... | C++ | third_party/angle/third_party/VK-GL-CTS/src/executor/xeContainerFormatParser.cpp | endlessm/chromium-browser | bsd-3-clause | 8,156 | 327 | codeparrot/github-code |
fda770171443773bf985cf6128da88635d02d1b6fb52b88a3fc52b7927f8c940 | // 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.
#ifndef CHROME_BROWSER_OFFLINE_PAGES_VISUALS_DECODER_IMPL_H_
#define CHROME_BROWSER_OFFLINE_PAGES_VISUALS_DECODER_IMPL_H_
#include <memory>
#include "co... | C | chromium/chrome/browser/offline_pages/visuals_decoder_impl.h | ric2b/Vivaldi-browser | bsd-3-clause | 1,511 | 42 | codeparrot/github-code |
823b8098917b0bc4edc6b7aea7fab122fcc7b96de24f5d42fc35b4e9d8723dcf | /*!
* @atlassian/aui - Atlassian User Interface Framework
* @version v7.5.0-alpha-1
* @link https://docs.atlassian.com/aui/latest/
* @license SEE LICENSE IN LICENSE.md
* @author Atlassian Pty Ltd.
*/
// src/js/aui/header-async.js
(typeof window === 'undefined' ? global : window).__2099962405af1a8893c5b00b1120bf59... | JavaScript | ajax/libs/aui/7.5.0-alpha-1/aui/js/aui-header-async.js | wout/cdnjs | mit | 1,604 | 62 | codeparrot/github-code |
14dfb4bf04287afeabfba40ba50ebfe4ca3300659991103b6cf583110d5df1d6 | require 'fileutils'
module Vagrant
module LXC
module Action
class SetupPackageFiles
def initialize(app, env)
@app = app
env["package.include"] ||= []
env["package.vagrantfile"] ||= nil
end
def call(env)
@env = env
create_packa... | Ruby | lib/vagrant-lxc/action/setup_package_files.rb | ccope/vagrant-lxc | mit | 1,687 | 61 | codeparrot/github-code |
c2593759fdfa6e0ccc81e3671a3e13f7d00a7dd68cbecdaa1f304c6721f157f4 | module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-conventional-changelog');
// Default task.
grunt.registerTask('default', ['jshint', 'karma']);
var testConfig = function(configFile, customOptions) {
var option... | JavaScript | www/lib/ui-date-master/gruntFile.js | lanyu-op/ionic-cordova-case | mit | 907 | 36 | codeparrot/github-code |
116b2e734cbe2a167cdfebccdefba6c72c209d172493b74212bcbec473b6efc3 |
#include "stdlib.h"
#include "string.h"
#include "ibxm.h"
const char *IBXM_VERSION = "ibxm/ac mod/xm/s3m replay 20191214 (c)mumart@gmail.com";
static const int FP_SHIFT = 15, FP_ONE = 32768, FP_MASK = 32767;
static const int exp2_table[] = {
32768, 32946, 33125, 33305, 33486, 33667, 33850, 34034,
34219, 34405, 3... | C | libretro/ibxm/ibxm.c | Javanaise/mrboom-libretro | mit | 65,363 | 1,943 | codeparrot/github-code |
32b81a2175f880f3b3737ea567ec8e196a3a008f62edf7b31809dce30d8829ab | /* Copyright ©2006-2010 Kris Maglione <maglione.k at Gmail>
* See LICENSE file for license details.
*/
#include "dat.h"
#include "fns.h"
static Handlers handlers;
#define foreach_bar(s, b) \
for(int __bar_n=0; __bar_n < nelem((s)->bar); __bar_n++) \
for((b)=(s)->bar[__bar_n]; (b); (b)=(b)->next)
void
bar_init(W... | C | cmd/wmii/bar.c | sigmavirus24/wmii | mit | 5,517 | 287 | codeparrot/github-code |
7b0e69bafa6fd668147dbecd0573c5cababc72b82e765028c7f5f30edea8a477 | """
Demo platform for the cover component.
For more details about this platform, please refer to the documentation
https://home-assistant.io/components/demo/
"""
from homeassistant.components.cover import CoverDevice
from homeassistant.helpers.event import track_utc_time_change
def setup_platform(hass, config, add_d... | Python | homeassistant/components/cover/demo.py | xifle/home-assistant | mit | 5,129 | 171 | codeparrot/github-code |
67ed4570c27835c95e08f5da7e574b2a77494043dea97bf2d55804b179c0319a | /*
* Block multiqueue core code
*
* Copyright (C) 2013-2014 Jens Axboe
* Copyright (C) 2013-2014 Christoph Hellwig
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/backing-dev.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/kmemleak.h>
#include <linux/mm.h>
#include <linux... | C | block/blk-mq.c | pratyushanand/linux | gpl-2.0 | 70,586 | 2,846 | codeparrot/github-code |
8e8c26a65cfb7d6b96467ea8349911122d0050718858d883436ee201162ec614 | /*
* This file is part of the coreboot project.
*
* Copyright (C) 2008 Advanced Micro Devices, Inc.
*
* 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 ... | C | src/southbridge/amd/sb600/smbus.c | BTDC/coreboot | gpl-2.0 | 5,310 | 215 | codeparrot/github-code |
31e716d2bf06908089bd1605981fa766ee97e5dec6d4dbe8fb2632318e9e1f86 | /***************************************************************************
tag: Peter Soetens Thu Jul 15 11:21:04 CEST 2004 PropertyBagIntrospector.cxx
PropertyBagIntrospector.cxx - description
-------------------
begin : Thu July 15 2004
... | C++ | rtt/marsh/PropertyBagIntrospector.cpp | snrkiwi/rtt | gpl-2.0 | 3,894 | 98 | codeparrot/github-code |
d0dcfc849b0912d0330450524f9255b1c4b81ce6db0ebafe65f2accf4bfb4083 | // license:BSD-3-Clause
// copyright-holders:R. Belmont
#ifndef MAME_CPU_F2MC16_MB9061X_H
#define MAME_CPU_F2MC16_MB9061X_H
#pragma once
#include "f2mc16.h"
//**************************************************************************
// CONSTANTS
//*******************************************************************... | C | src/devices/cpu/f2mc16/mb9061x.h | johnparker007/mame | gpl-2.0 | 2,864 | 104 | codeparrot/github-code |
68dba0c6f9d2f2e6584431c4d808a8fb3a57c3d4a0377477b00dda5a69f90149 | /*
* Copyright 2013 Freescale Semiconductor, Inc.
*
* Shengzhou Liu <Shengzhou.Liu@freescale.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <command.h>
#include <netdev.h>
#include <asm/mmu.h>
#include <asm/processor.h>
#include <asm/immap_85xx.h>
#include <asm/fsl_law.h>
#include... | C | u-boot15/board/freescale/t208xqds/eth_t208xqds.c | mdxy2010/forlinux-ok6410 | gpl-2.0 | 22,584 | 813 | codeparrot/github-code |
076d13f3580f6868f8be042d1c1916225f02caa9ff9335993c29b9b0caf85316 | // SPDX-License-Identifier: GPL-2.0-only
/*
* Intel Baytrail SST PCM Support
* Copyright (c) 2014, Intel Corporation.
*/
#include <linux/module.h>
#include <linux/dma-mapping.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include "sst-... | C | sound/soc/intel/baytrail/sst-baytrail-pcm.c | penberg/linux | gpl-2.0 | 12,434 | 460 | codeparrot/github-code |
64e90f6feebd0c55f1e96008bdeafb3da6d02947168662c4bedb9b96d131afa3 | package com.matburt.mobileorg.Gui;
import android.app.Activity;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
impo... | Java | src/com/matburt/mobileorg/Gui/CertificateConflictActivity.java | graham-m-dunn/mobileorg-android | gpl-2.0 | 2,531 | 65 | codeparrot/github-code |
281b27783df01708e9a9bbf446f2f3f650baab88c96def82597eeca9c3c76357 | /*
* Copyright (C) 2008-2018 TrinityCore <https://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/TempestKeep/Eye/boss_astromancer.cpp | Golrag/TrinityCore | gpl-2.0 | 19,647 | 550 | codeparrot/github-code |
e6f087283717815da4d05fc7aca98032fbf463efc86e7afe8c4fd46ac8c3b9ff | /* dlasq6.f -- translated by f2c (version 20061008) */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include <assert.h>
/* Subroutine */
int odsq6(int *i0, int *n0, double *z__,
int *pp, double *dmin__, double *dmin1, double *dmin2,
double *dn, double *dnm1, do... | C | src/madness/external/elemental/external/pmrrr/src/lapack/odsq6.c | kimjsung/madness-original | gpl-2.0 | 5,335 | 208 | codeparrot/github-code |
c8465a0264706d8c21d7c9b0c210c2c06f26dadf4d1ef8c962d74e5f697a6a29 | /*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | C | src/java.base/windows/native/libnet/NTLMAuthentication.c | md-5/jdk10 | gpl-2.0 | 4,590 | 132 | codeparrot/github-code |
ce9e8dd509030a6e505a27fbb20b68f1bbc417bd49a7e85752ff65f07ea29e47 | <?php
namespace Drupal\layout_builder;
use Drupal\Component\Plugin\DerivativeInspectionInterface;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Entity\Entity\EntityViewDisplay;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\FieldableEntityInterface;
use Drupal\Core\Plugin\Context\Context;
u... | PHP | web/core/modules/layout_builder/src/LayoutEntityHelperTrait.php | tobiasbuhrer/tobiasb | gpl-2.0 | 5,407 | 159 | codeparrot/github-code |
fec1ba6c633297fa07d3d8d68777eac374392d9d1c7938dc7f00da6cbfc3b140 | -- Mutates to the database are entered into the transaction log
-- so they can be sent to peers to replay against a cache of your DB.
-- This allows peers to get diffs/sync your collection easily.
CREATE TABLE IF NOT EXISTS oplog (
id INTEGER PRIMARY KEY AUTOINCREMENT,
source INTEGER REFERENCES source(id) ON D... | SQL | src/libtomahawk/database/Schema.sql | TheOneRing/tomahawk | gpl-3.0 | 12,591 | 304 | codeparrot/github-code |
ac1a5c13a9e4651d3b4ef4a95046e02f0fb00fee6b41a55aecbc3f3f1e03cd9b | <?php
/*
V5.07 18 Dec 2008 (c) 2000-2008 John Lim (jlim#natsoft.com). All rights reserved.
Released under both BSD license and Lesser GPL library license.
Whenever there is any discrepancy between the two licenses,
the BSD license will take precedence.
Set tabs to 8.
*/
class ADODB_pdo_pgsql extends AD... | PHP | lib/adodb5/drivers/adodb-pdo_pgsql.inc.php | stamit/food | gpl-3.0 | 8,465 | 231 | codeparrot/github-code |
37b0373acf70fec428b0374b6e50ffe2f7a795b387a3bfaa1f347b76463e7298 | package org.ovirt.engine.core.common.queries;
import org.ovirt.engine.core.common.businessentities.ConfigurationType;
public class GetVmFromConfigurationQueryParameters extends VdcQueryParametersBase {
private String vmConfiguration;
private ConfigurationType configurationType;
public GetVmFromConfigura... | Java | ovirt/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/GetVmFromConfigurationQueryParameters.java | jtux270/translate | gpl-3.0 | 1,013 | 34 | codeparrot/github-code |
4d1dfc860522ce5787cce126e5e59b347f7d27ec02280671418828111161f275 | #region License
// Copyright (c) 2013, ClearCanvas Inc.
// All rights reserved.
// http://www.clearcanvas.ca
//
// This file is part of the ClearCanvas RIS/PACS open source project.
//
// The ClearCanvas RIS/PACS open source project is free software: you can
// redistribute it and/or modify it under the terms... | C# | ImageServer/TestApp/CFindSCU.cs | testdoron/ClearCanvas | gpl-3.0 | 5,314 | 139 | codeparrot/github-code |
7687013cbd2f7919006f7e81f668f23d7154161aca25393f139f140e730499f7 | // (‑●‑●)> released under the WTFPL v2 license, by Gregory Pakosz (@gpakosz)
// https://github.com/gpakosz/whereami
// in case you want to #include "whereami.c" in a larger compilation unit
#if !defined(WHEREAMI_H)
#include <whereami.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#if !defined(WAI_MALLOC) || !defin... | C | codes/structsAndFunctions/src/whereami/whereami.c | AndersonMarco/cursoDeOpenCL_2016_UFABC | gpl-3.0 | 12,748 | 661 | codeparrot/github-code |
10044eeef68a3fddb69b115699f0f6c6df0cee1f0fb5945d577bf8c8b0d037a9 | /*
* copyright (c) 2007 Luca Abeni
*
* 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 ... | C | source/mplayer/ffmpeg/libavformat/sdp.c | SuperrSonic/WiiMC-SSLC | gpl-3.0 | 22,701 | 646 | codeparrot/github-code |
3206de6be93f630c33ce09bb152775c25e1ea4147eea23782390de3f4f9f464a | /*******************************************************************************
* Filename: rom_crypto.c
* Revised: 2015-09-09 11:55:59 +0200 (Wed, 09 Sep 2015)
* Revision: 44536
*
* Description: This is the implementation for the API to the AES, ECC and
* SHA256 functi... | C | hardware/cc2600emt/cores/cc2600emt/driverlib/rom_crypto.c | battosai30/Energia | lgpl-2.1 | 12,563 | 307 | codeparrot/github-code |
5924ee282e84af1ed7c5ca4d2baa8b94962f79ec5e91e4c8c92edc90e0ce4372 | //* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html
#pr... | C | framework/include/indicators/ElementIndicator.h | harterj/moose | lgpl-2.1 | 1,886 | 66 | codeparrot/github-code |
7fadf3d78443d6722d75d4d4add6704dd0397bfc8f5f9a0afadb04c1294a4b7d | /*
* JBoss, Home of Professional Open Source.
* Copyright 2017, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | Java | ejb3/src/main/java/org/jboss/as/ejb3/deployment/processors/DiscoveryService.java | xasx/wildfly | lgpl-2.1 | 2,561 | 67 | codeparrot/github-code |
b1c72dfd316a891475e675737b64edfb3760b5411bfe17e14694eb7e0499edcf | # Makefile to start Titanium Mobile project from the command line.
# This is the ONLY option you should / need to configure
ANDROID_SDK_PATH='~/Android'
# Please dont change settings below here
PROJECT_ROOT=$(shell pwd)
iphone=$(iphone)
android=$(android)
BUILD_TYPE=$(build_type)
DEVICE_TYPE=$(platform)
MAKETI_D... | Makefile | mobile-apps/app_pilot_bcn/Makefile | open-dai/bcn-lleida-opendai-pilots | lgpl-3.0 | 2,292 | 66 | codeparrot/github-code |
47a6b41175166f540bb8f3d13a8d3b7528ff3a535e6fd0e1bd95b530ae10d32d | /* Copyright 2007-2016 QReal Research Group
*
* 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... | C | qrgui/plugins/toolPluginInterface/usedInterfaces/details/modelsAssistInterface.h | danilaml/qreal | apache-2.0 | 2,349 | 72 | codeparrot/github-code |
82bad02f94dae2d50733d8b8f872f818d609d5901866889cf08d310f02bc768e | /*
* Copyright 2012 Research In Motion Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | JavaScript | platforms/blackberry10/native/simulator/chrome/lib/framework.js | zosiakropka/flat-calc | apache-2.0 | 5,918 | 173 | codeparrot/github-code |
9a809f49007aeff1a3a2896fe2891d3841319a6a99c59104d51c4ff982d601b5 | /*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | C# | AWS.XamarinSDK/AWSSDK_iOS/Amazon.AutoScaling/Model/Internal/MarshallTransformations/DescribePoliciesRequestMarshaller.cs | ykbarros/aws-sdk-xamarin | apache-2.0 | 2,995 | 76 | codeparrot/github-code |
f9559813b4533f285f2c32e99fa18563b17b3d4ee6978c77759b7d8ca77b22d8 | /*
* Copyright (C) 2017 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 ... | Java | kie-wb-common-screens/kie-wb-common-library/kie-wb-common-library-client/src/main/java/org/kie/workbench/common/screens/library/client/settings/sections/validation/ValidationItemPresenter.java | jomarko/kie-wb-common | apache-2.0 | 2,580 | 77 | codeparrot/github-code |
3bff8b9814ffa5df5d9930511ace4216564139f23502f64346fcfd165aff564d | import httplib as http
from dataverse import Connection
from dataverse.exceptions import ConnectionError, UnauthorizedError, OperationFailedError
from framework.exceptions import HTTPError
from addons.dataverse import settings
from website.util.sanitize import strip_html
def _connect(host, token):
try:
... | Python | addons/dataverse/client.py | aaxelb/osf.io | apache-2.0 | 3,545 | 122 | codeparrot/github-code |
cbc96f41454dbc29d52c2fdc5241051f1b3a6345f0cf09e5ded1b15ec2a05ab7 | /*
hello_world.c
Copyright (C) 2012 Adapteva, Inc.
Contributed by Yaniv Sapir <yaniv@adapteva.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(... | C | src/wrappers/erlang/erlpiphany/examples/hello-world/src/hello_world.c | mateunho/pal | apache-2.0 | 2,726 | 97 | codeparrot/github-code |
49222be972adb6006aef0a9dbbaef1fd3ac9011e62d247864b1f082afbc92fe9 | /*
* 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 | platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/AbstractFileType.java | MichaelNedzelsky/intellij-community | apache-2.0 | 16,503 | 418 | codeparrot/github-code |
994055b196cacaecbc2b9384a744b50a9e6a03a6c557d8ea4162da6ffacb94b0 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | C++ | src/operator/tensor/indexing_op.cc | kkk669/mxnet | apache-2.0 | 13,028 | 361 | codeparrot/github-code |
0a5b6923c611a3bc0be0e212397e5b45d1c164dc532a900b1d5b82599279ae64 | //========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef SCENEIMAGE_H
#define SCENEIMAGE_H
#ifdef _WIN32
#pragma once
#endif
class ISceneTokenProcessor;
clas... | C | trunk/src/game/shared/sceneimage.h | ppittle/AlienSwarmDirectorMod | apache-2.0 | 1,141 | 38 | codeparrot/github-code |
3cc167df2df26bdac29add2c1dc29c020093fcf5209b3c26efd321b61ef121b0 | /**
* Copyright © 2012-2013 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package com.thinkgem.jeesite.common.utils;
import java.io.Serializable;
import java.security.SecureRandom;
import java.util.UUID;
i... | Java | src/main/java/com/thinkgem/jeesite/common/utils/IdGen.java | leichunxin/jeesitedemo | apache-2.0 | 1,666 | 72 | codeparrot/github-code |
d1ea6ba98d11159070fe485bfcb90e9b68163ef34332a10489031e6fd8c4c3b0 | (function()
{
// Adds AWS 3D shapes
Sidebar.prototype.addAWS3DPalette = function()
{
var w = 100;
var h = 100;
var s = mxConstants.STYLE_VERTICAL_LABEL_POSITION + '=bottom;html=1;' + mxConstants.STYLE_VERTICAL_ALIGN + '=top;' + mxConstants.STYLE_STROKEWIDTH + '=1;dashed=0;shape=mxgraph.aws3d.';
var gn = 'mxg... | JavaScript | war/js/diagramly/sidebar/Sidebar-AWS3D.js | hongj0nas/pagesTest | apache-2.0 | 15,799 | 169 | codeparrot/github-code |
4c3ade4674bfe95937de50ef6625db0221b37cd256b941b446aad88581a9e71b | /*
* Copyright 2012 Amadeus s.a.s.
* 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 i... | JavaScript | src/aria/utils/css/PropertiesConfig.js | mlaval/ariatemplates | apache-2.0 | 7,979 | 233 | codeparrot/github-code |
30f4c15f7170da50c8631dda4e733d493cfd4fe4567e9b274905412f2a6cad1c | /*
* 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 | modules/indexing/src/test/java/org/apache/ignite/internal/processors/query/SqlTwoCachesInGroupWithSameEntryTest.java | samaitra/ignite | apache-2.0 | 5,269 | 146 | codeparrot/github-code |
50449d0d28734163a2092072c45ec82fabd989520494764bd4bb57711a4440ea | /*
* 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 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/ConstraintEnforcer.java | apache/flink | apache-2.0 | 14,918 | 362 | codeparrot/github-code |
c87e8e2da82305c602e942675aa49b0e7597e2cad5ab5e656e52ad7ddc878a53 | /*
* 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 ... | Scala | src/main/scala/org/apache/sysml/api/ml/ScriptsUtils.scala | deroneriksson/incubator-systemml | apache-2.0 | 2,505 | 79 | codeparrot/github-code |
dfefc338786fc3f0701faf082f880a7b9c0127531e2771632916a6eceb320560 | /*
* 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 | modules/debugger/src/java/flash/tools/debugger/concrete/DSuspendInfo.java | shyamalschandra/flex-sdk | apache-2.0 | 2,039 | 58 | codeparrot/github-code |
bbb7ba4072f9a4db85b5d78d55d15c1ad172b83e7acacca8dbac9a69997269d8 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2011 Citrix Systems, Inc.
# Copyright 2011 OpenStack LLC.
#
# 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
#
# htt... | Python | openstack F/nova/nova/virt/vmwareapi/io_util.py | tylertian/Openstack | apache-2.0 | 5,907 | 173 | codeparrot/github-code |
1364737c3d6351b5b4f7444620294528761d3e6791a727dd95e4fe09aca4abd2 | // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// 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... | C | components/ethernet/emac_dev.h | dschaefer/esp-idf | apache-2.0 | 2,872 | 117 | codeparrot/github-code |
9cb8766c54b0eb3ed32b1f65f45170efc4272daff701dec7cb0901d0a5893bd2 | /**
* Copyright (c) 2015, Jozef Stefan Institute, Quintelligence d.o.o. and contributors
* All rights reserved.
*
* This source code is licensed under the FreeBSD license found in the
* LICENSE file in the root directory of this source tree.
*/
module.exports = exports = require('assert');
exports.run = functio... | JavaScript | src/nodejs/scripts/assert.js | mkarlovc/qminer | bsd-2-clause | 881 | 32 | codeparrot/github-code |
88081d7ea2749d92280ea0ad55927713848db45ebfa890b9d93838ad03dfb723 | import json
import logging
import datetime
from celery import task
import mkt
from mkt.constants.regions import REGIONS_CHOICES_SLUG
from mkt.monolith.models import MonolithRecord
from mkt.site.decorators import use_master
from mkt.ratings.models import Review
from mkt.webapps.models import AddonUser, Webapp
from mkt... | Python | mkt/stats/tasks.py | ingenioustechie/zamboni | bsd-3-clause | 6,127 | 174 | codeparrot/github-code |
c20c4af694871984c04db73e1e16dfdfced69c167c06da3926dcfeebacf1ac12 | // 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.
#ifndef CHROME_BROWSER_UI_COCOA_GRADIENT_BUTTON_CELL_H_
#define CHROME_BROWSER_UI_COCOA_GRADIENT_BUTTON_CELL_H_
#import <Cocoa/Cocoa.h>
#include "ba... | C | chrome/browser/ui/cocoa/gradient_button_cell.h | js0701/chromium-crosswalk | bsd-3-clause | 4,415 | 129 | codeparrot/github-code |
53f5a696360db6bcfbca4b850768ad803f88aca3223619e7e2533bf8ccd6b7d8 | from taggit.forms import TagField as TaggitTagField
from taggit.models import Tag
from wagtail.admin.widgets import AdminTagWidget
class TagField(TaggitTagField):
"""
Extends taggit's TagField with the option to prevent creating tags that do not already exist
"""
widget = AdminTagWidget
def __in... | Python | wagtail/admin/forms/tags.py | zerolab/wagtail | bsd-3-clause | 1,354 | 42 | codeparrot/github-code |
a33de185ec9a6caad75996b72e9d616d71078766a678108456b626f5baab507d | // 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 DEVICE_HID_HID_SERVICE_WIN_H_
#define DEVICE_HID_HID_SERVICE_WIN_H_
#include <windows.h>
#include <hidclass.h>
extern "C" {
#include <hidsdi.h>
... | C | device/hid/hid_service_win.h | hujiajie/chromium-crosswalk | bsd-3-clause | 2,711 | 78 | codeparrot/github-code |
344a2f4055e683bb489693a6a7e3c73d80dda79afb73a17aa05a6d4df4cafa28 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/wm/core/nested_accelerator_dispatcher.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_pump_dispatcher.h"
#include... | C++ | ui/wm/core/nested_accelerator_dispatcher_win.cc | boundarydevices/android_external_chromium_org | bsd-3-clause | 2,497 | 75 | codeparrot/github-code |
4dc63fae19d2cad42fe962caacae0cbdc5a497641f54d8a862405259d5fb378f | #define GLM_FORCE_SWIZZLE
#include <glm/vector_relational.hpp>
#include <glm/vec2.hpp>
#include <vector>
#if GLM_HAS_TRIVIAL_QUERIES
# include <type_traits>
#endif
static glm::vec2 v1;
static glm::vec2 v2(1);
static glm::vec2 v3(1, 1);
int test_vec2_operators()
{
int Error = 0;
{
glm::vec2 A(1.0... | C++ | src/lib/glm-0.9.8.4/test/core/core_type_vec2.cpp | Rydgel/chip8 | bsd-3-clause | 6,666 | 319 | codeparrot/github-code |
1c4b5ea58e2c14bcaf248d2735d61c2d94b7e0d62467990d74bc3f12cc01c740 | // 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 "sync/sessions/nudge_tracker.h"
#include "base/basictypes.h"
#include "sync/internal_api/public/base/invalidation.h"
#include "sync/notifier... | C++ | sync/sessions/nudge_tracker.cc | TeamEOS/external_chromium_org | bsd-3-clause | 10,647 | 333 | codeparrot/github-code |
0ed871bac91dcd4611e0cfc9b5b4a67b9d609a82e308720f01e91e13ee94ac1e | // 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 DEVICE_USB_USB_CONTEXT_H_
#define DEVICE_USB_USB_CONTEXT_H_
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/s... | C | device/usb/usb_context.h | js0701/chromium-crosswalk | bsd-3-clause | 1,230 | 47 | codeparrot/github-code |
8b2b5a8f9cbfc9080d9e4a1230f9eee993318f7cf532c4067d073b9c1480dd6d | /* Copyright (c) 2019, Google Inc.
*
* 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.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS... | C | third_party/boringssl/src/crypto/evp/p_x25519_asn1.c | endlessm/chromium-browser | bsd-3-clause | 7,090 | 249 | codeparrot/github-code |
93d19348158d3582d50f558966cb185c8912e241543ca7b75eead17cad2c2ec1 | #ifndef _MATH_H_
#define _MATH_H_
#include <sys/reent.h>
#include <machine/ieeefp.h>
#include "_ansi.h"
_BEGIN_STD_C
/* __dmath, __fmath, and __ldmath are only here for backwards compatibility
* in case any code used them. They are no longer used by Newlib, itself,
* other than legacy. */
union __dmath
{
do... | C | libs/external/emscripten/system/include/libc/math.h | qq2588258/floweers | mit | 19,333 | 595 | codeparrot/github-code |
0a5a9ee02fae17b84e319c640b1f28d7202d0dc160c33535a879b29639fcfe84 | using System;
using System.Reflection;
using Glass.Mapper.Configuration;
using Glass.Mapper.Configuration.Attributes;
namespace Glass.Mapper.Sc.Configuration.Attributes
{
/// <summary>
/// Maps the Sitecore Item being mapped to a property.
/// </summary>
public class SitecoreItemAttribute : ItemAttrib... | C# | packages/Glass.Mapper.Sc.Core.4.2.0.184/src/Source/Glass.Mapper.Sc/Configuration/Attributes/SitecoreItemAttribute.cs | rmwatson5/Glass-Factory | mit | 1,222 | 37 | codeparrot/github-code |
4dca43ae7ed68b8626b12845ca5dc35676d699b9dc40bcd38b8eca6611448eb0 | 'use strict';
module.exports = function (t, a, d) {
var x = {}, fn;
fn = function (y, cb) {
setTimeout(function () {
if (cb) {
cb(null, 3);
}
}, 0);
return y;
};
t({}).invoke(fn, x)(function (r) {
a(r, x);
}).end(d, d);
};
var deferred = require('../../../lib/deferred');
module.exports = funct... | JavaScript | test/ext/promise/invoke.js | petkaantonov/deferred | mit | 2,046 | 101 | codeparrot/github-code |
cdd8bf6bd97a1f6de93d0389d0d3be8ff1bf72aa3337708fa1323aed75845422 | #include <stdio.h>
#include "applu_share.h"
void subdomain() {
int mm, errorcode=99;
//c x dimension
mm = nx0%xdim;
if (row <= mm) {
nx = nx0/xdim + 1;
ipt = (row-1)*nx;
}
else {
nx = nx0/xdim;
ipt = (row-1)*nx + mm;
}
//c y dimension
m... | C | usr/rcce/lu/subdomain.c | daleooo/barrelfish | mit | 1,892 | 70 | codeparrot/github-code |
44188a3a6f4468df35786370325ccdd39a9f7a4d3f23adbb7984feba4f97ba75 | //-------------------
// MV
// version WIN32 et POCKETPC
// Sylvain Huet
// Premiere version : 07/01/2003
// Derniere mise a jour : 07/01/2003
//
#include <stdio.h>
#include <string.h>
#include "param.h"
#include "terminal.h"
#include "prodbuffer.h"
#include "memory.h"
#include "util.h"
#include "interpreter.h"
#incl... | C++ | bytecode/src/mtl/vcomp/interpreter.cpp | inigoku/NabaztagHackKit | mit | 1,754 | 86 | codeparrot/github-code |
42644c8d80d01a52bc992e05205464de96fde4764e55e983fbb85fde860358e4 | <?php
namespace Kanboard\Formatter;
use Kanboard\Core\Filter\FormatterInterface;
/**
* Class TaskApiFormatter
*
* @package Kanboard\Formatter
*/
class TaskApiFormatter extends BaseFormatter implements FormatterInterface
{
protected $task = null;
public function withTask($task)
{
$this->task ... | PHP | app/Formatter/TaskApiFormatter.php | BlueTeck/kanboard | mit | 843 | 38 | codeparrot/github-code |
98cf4cbc192cae9585850f53b87ccdbb4bce2250f12eeee272ae5fca8e26dbc5 | package command
import (
"flag"
"fmt"
"strings"
"github.com/koding/kite"
"github.com/koding/kite/config"
"github.com/koding/kite/protocol"
"github.com/mitchellh/cli"
)
type Query struct {
KiteClient *kite.Kite
Ui cli.Ui
}
func NewQuery() cli.CommandFactory {
return func() (cli.Command, error) {
... | GO | kitectl/command/query.go | wingyplus/kite | mit | 2,002 | 91 | codeparrot/github-code |
48c554d293b2c6d3ce5e96ecf2ede5175c3d76d0fdbb8a44508164cf1fadcc3b | <!DOCTYPE html>
<!--
~ Copyright (c) 2016. tom@axisj.com
~ - github.com/thomasjang
~ - www.axisj.com
-->
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="../dist/ax5core.js"></script>
</head>
<bod... | HTML | test/addUI-test.html | ax5ui/ax5core | mit | 1,232 | 60 | codeparrot/github-code |
971573c708717b44c80ad9f3a3bcfa9da2095176606b39e2445453ef9d3d99e0 | /* Copyright (c) 2010-2012, 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 | drivers/video/msm/vidc/1080p/ddl/vcd_ddl_properties.c | lyfkevin/Wind_iproj_JB_kernel_old | gpl-2.0 | 64,164 | 2,119 | codeparrot/github-code |
85621e590138a46cfb496448ae60f484f1da4180397328a1e11861bfd8f66fbb | /*
* Copyright (C) 2005-2015 Team Kodi
* http://kodi.tv
*
* 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, or (at your option)
* any later version.
*
* T... | C++ | xbmc/video/VideoInfoScanner.cpp | jonfryd/xbmc | gpl-2.0 | 73,852 | 2,086 | codeparrot/github-code |
e999fa4a9e46befd8fcafba275d4fa0fa3d1c1c0cf3d1c1485509dc80ac91dc5 | // SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2014
* Texas Instruments Incorporated
* Refactored common functions in to gpimage-common.c.
*
* (C) Copyright 2010
* Linaro LTD, www.linaro.org
* Author: John Rigby <john.rigby@linaro.org>
* Based on TI's signGP.c
*
* (C) Copyright 2009
* Stefano Babic,... | C | tools/gpimage-common.c | Digilent/u-boot-digilent | gpl-2.0 | 1,932 | 81 | codeparrot/github-code |
639815a67e2128faf04948b43cb65f728f147d952437bf9e054cbd3fac9d596b | #pragma once
/*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.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, or (at your option)
* any later ver... | C | xbmc/peripherals/PeripheralTypes.h | hackthis02/xbmc | gpl-2.0 | 8,417 | 314 | codeparrot/github-code |
d49d8a74b87930577331e91ae9e518579fc24042c09b1db5bdab60b204346097 | <?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>Facets</title><meta... | HTML | libstdc++-v3/doc/html/manual/facets.html | pschorf/gcc-races | gpl-2.0 | 46,487 | 736 | codeparrot/github-code |
97d67f5abb90ed25d977d02d956859d907993ad3382729f72edb9633905144c8 | /*
* NET Generic infrastructure for INET6 connection oriented protocols.
*
* Authors: Many people, see the TCPv6 sources
*
* From code originally in TCPv6
*
* 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 ... | C | include/net/inet6_connection_sock.h | gbtian/mptcp | gpl-2.0 | 1,625 | 51 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.