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 |
|---|---|---|---|---|---|---|---|---|
84a503eec3f9844e8a03f6dc1d4fdd4c93d9cd33755cc801934cf5cba9301538 | // Copyright 2008 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "Core/HLE/HLE.h"
#include <algorithm>
#include <array>
#include <map>
#include "Common/CommonTypes.h"
#include "Core/ConfigManager.h"
#include "Core/GeckoCode.h"
#include "Core/HLE/HLE_Misc.h"
#in... | C++ | Source/Core/Core/HLE/HLE.cpp | booto/dolphin | gpl-2.0 | 9,006 | 278 | codeparrot/github-code |
c36d03fa48b3b12f2c7ecdadaed2ade3e84d0afc8383c014454602f4e112aec0 | /*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2012, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following condition... | C | Client/trunk/externals/assimp-3.1.1/code/FBXDocument.h | hetter/NPLRuntime | gpl-2.0 | 35,609 | 1,438 | codeparrot/github-code |
bc3cb5a745268b36366512d52b6e5522d86ec8922f910479e37e85b91bc00340 | /**
* 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 | program_learning/Java/MyEclipseProfessional2014/mr/src/main/java/org/apache/mahout/vectorizer/collocations/llr/LLRReducer.java | huran2014/huran.github.io | gpl-2.0 | 6,168 | 171 | codeparrot/github-code |
97667e30d5e49efbb421a2d086726a10d1883fd6166ee1e4da54f8fce2b9bd26 | /* Copyright (C) 2003-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2003.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published b... | C | oss/glibc/glibc-2.24/nptl/tst-key4.c | geminy/aidear | gpl-3.0 | 2,795 | 137 | codeparrot/github-code |
28fbd2b12aa3edd1d1f98d8944407c8fc1dcee0a513754938ff41d05d4e8e1b6 | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Combat behaviors for AIs in a relatively self-preservationist mode.
// Lots of cover taking and attempted shots out of cover.
//
//=============================================================================//
#ifndef AI_BEH... | C | src/game/server/ai_behavior_standoff.h | OnePointSeven/onepointseven | gpl-3.0 | 5,574 | 233 | codeparrot/github-code |
dda6c63cf57ac782705d7c5b673a07229a3cdd2b8049e10e22cc3861149d3da6 | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
// This file was modified by Oracle on 2014, 2015, 2017.
// Modifications copyrig... | C++ | thirdparty/boost_1_75_0/boost/geometry/algorithms/detail/overlaps/interface.hpp | zcobell/QADCModules | gpl-3.0 | 3,428 | 130 | codeparrot/github-code |
5df346aa88d0a270cd6d7243f6f1e66b2a5ac8882d89f617533bd00bb59b9bd1 | /*
* Input.h
*
* Created on: 05.12.2015
* Author: pavel
*/
#ifndef SAMPLES_COMMON_INCLUDE_INPUT_H_
#define SAMPLES_COMMON_INCLUDE_INPUT_H_
#include <OgreBuildSettings.h>
#include <OgreBitesPrerequisites.h>
#if OGRE_BITES_HAVE_SDL
#include <SDL.h>
#endif
/** \addtogroup Optional
* @{
*/
/** \addtogroup B... | C | ogre/Components/Bites/include/OgreInput.h | GDevs/mission-farpoint | gpl-3.0 | 3,484 | 169 | codeparrot/github-code |
d5e5d256a56043d35a0df2bf67170f75597bd534a42c9f575c3b3275b26ac5f3 | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
//Gamestats was built for ep1, so this file is going to be amazingly short seeing as how ep1 set the standard
#include "cbase.h"
#include "ep1... | C++ | src/game/server/episodic/ep1_gamestats.cpp | OnePointSeven/onepointseven | gpl-3.0 | 1,729 | 75 | codeparrot/github-code |
5ba55ad5c45e7d78ea9581bac850600983aedfd295e3e14c3df8189c11df7a1d |
import sys
import math
from pimath import *
from PyQt4 import QtCore, QtGui, QtOpenGL
from camera import Camera
import grind
#-----------------------------------------------------------------------------
from rodin import logging
log = logging.get_logger('grind.mangle.gl_widget')
try:
from OpenGL.GL import *
... | Python | grind/python/util/glWidget.py | mstreatfield/anim-studio-tools | gpl-3.0 | 11,356 | 359 | codeparrot/github-code |
b10b4aae18ac356b577cccd02f0e7d0b4e644dce49883ef6126c8664e5d2ba86 | /**
******************************************************************************
* @file stm32h7xx_hal_dac.c
* @author MCD Application Team
* @version V1.2.0
* @date 29-December-2017
* @brief DAC HAL module driver.
* This file provides firmware functions to manage the following
* ... | C | mchf-eclipse/basesw/ovi40-h7/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dac.c | db4ple/mchf-github | gpl-3.0 | 40,780 | 1,179 | codeparrot/github-code |
be1806160c0805e1a35992a86a95e4b13fdcb8eceb22f33d33ad983b2b3bee0e | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Alternatives</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../index.html" title="Chapter ... | HTML | dependencies/boost-1.46.0/libs/scope_exit/doc/html/scope_exit/alternatives.html | gorkinovich/DefendersOfMankind | gpl-3.0 | 27,371 | 304 | codeparrot/github-code |
e585c771a4d0a2a4fdd89d361fab7b72af8b82af89682f15a3dfd579dc9292c2 | /* Copyright 2012 the SumatraPDF project authors (see AUTHORS file).
License: Simplified BSD (see COPYING.BSD) */
#ifndef ByteReader_h
#define ByteReader_h
class ByteReader {
const uint8_t *d;
size_t len;
// Unpacks a structure from the data according to the given format
// e.g. the for... | C | src/utils/ByteReader.h | fire-eggs/sumatrapdf-new | gpl-3.0 | 3,130 | 101 | codeparrot/github-code |
6feea1839c06eccf3ecc490d934f23f33fe62044bb77acd24f31958c6dc0df53 | // Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim... | C | Detectors/ITSMFT/common/reconstruction/include/ITSMFTReconstruction/DigitPixelReader.h | sawenzel/AliceO2 | gpl-3.0 | 3,544 | 123 | codeparrot/github-code |
5cbf185a832003f1070feaae77748b3b698ae73ea34be55c5c193693c84f6467 | /**
* @file configure.c
* @brief configure monitor
* @author John Melton, G0ORX/N6LYT
* @version 0.1
* @date 2009-10-13
*/
/* Copyright (C)
* 2009 - John Melton, G0ORX/N6LYT
* 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 t... | C | trunk/src/monitor/configure.c | kd0oss/ghpsdr3-kd0oss | gpl-3.0 | 5,684 | 137 | codeparrot/github-code |
9f135ec4277a14f47fabf0c9bd2c525d87248646b56cedcb74596ab8b8835960 | /*
Copyright (c) 2003 by Stefan Kurtz and The Institute for
Genomic Research. This is OSI Certified Open Source Software.
Please see the file LICENSE for licensing information and
the file ACKNOWLEDGEMENTS for names of contributors to the
code base.
*/
//\Ignore{
#include <string.h>
#include "debugdef.h"
#... | C | strainest/MUMmer323/src/kurtz/libbasedir/safescpy.c | compmetagen/strainest | gpl-3.0 | 983 | 40 | codeparrot/github-code |
0252ddf96170f97513ad1ea081874cdb1d49689e93b3e684772d5c647d4a44da | <?php
/* Copyright (C) 2009 Laurent Destailleur <eldy@users.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 Foundation; either version 3 of the License, or
* (at your option) any la... | PHP | htdocs/core/lib/emailing.lib.php | xav335/dolibarrPROD | gpl-3.0 | 1,877 | 63 | codeparrot/github-code |
e8e8a829c7385096ca9babcff02efb5deb5f97abcd166a36bfea1d4a44f8f87a | /*
Copyright (c) 2013 OpenSourceRF.com. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
Th... | C | firmware/hardware/arduino/RFduino/cores/arduino/syscalls.h | mogorman/closed_sesame | gpl-3.0 | 2,976 | 87 | codeparrot/github-code |
2534fd162fcb4f71d5c45e2ddeb8e820b6ef5215e0ab288d610cefa59dfae4c9 | package org.thoughtcrime.securesms.registration.viewmodel;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.i18n.phonenumbers.NumberParseException;
import com.google.i18n.phonenumbers.PhoneNumberUtil;
import com.google.... | Java | app/src/main/java/org/thoughtcrime/securesms/registration/viewmodel/NumberViewState.java | WhisperSystems/Signal-Android | gpl-3.0 | 5,492 | 187 | codeparrot/github-code |
81a75cd555eb93c4d65365729fc3b81759a95d54eda49a1c1102bcf521b9efa5 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
--------... | C++ | src/sampling/sampledSurface/sampledCuttingPlane/sampledCuttingPlane.H | ccopsey/ccFOAM | gpl-3.0 | 6,826 | 263 | codeparrot/github-code |
4179e6fc2a5d29b993cea21785ab289e668fc41b1364d87ff30240153da4f75f | #ifndef INC_ANALYSIS_LIFETIME_H
#define INC_ANALYSIS_LIFETIME_H
#include "Analysis.h"
#include "Array1D.h"
class Analysis_Lifetime : public Analysis {
public:
Analysis_Lifetime();
DispatchObject* Alloc() const { return (DispatchObject*)new Analysis_Lifetime(); }
void Help() const;
Analysis::RetType Ex... | C | src/Analysis_Lifetime.h | hainm/cpptraj | gpl-3.0 | 1,240 | 39 | codeparrot/github-code |
118e036d1bab0c98e36366411ce7f83bb4b6e570d48074337bb0b09eb01f7fb4 | <?php
/**
* Add Lister and make children of admin /page/ hidden
*
*/
class SystemUpdate5 extends SystemUpdate {
public function execute() {
$this->wire()->addHookAfter('ProcessWire::init', $this, 'executeAtInit');
return 0; // indicates we will update system version ourselves when ready
}
public function... | PHP | wire/modules/System/SystemUpdater/SystemUpdate5.php | e-gob/modernizacion | mpl-2.0 | 4,519 | 140 | codeparrot/github-code |
970449af2412fb189339929b97d93e0319f3a8ec721751ea1e9dacd733cdcbc7 | // Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.ui.form.on('Account', {
setup: function(frm) {
frm.add_fetch('parent_account', 'report_type', 'report_type');
frm.add_fetch('parent_account', 'root_type', 'root_type');
},
onlo... | JavaScript | erpnext/accounts/doctype/account/account.js | indictranstech/erpnext | agpl-3.0 | 3,734 | 141 | codeparrot/github-code |
0230ff0732910ddf7f9bd222cd4972d40f54a6e359ffa845e419fed22cb2361c | /** @jsx React.DOM */
/*
* Copyright (C) 2014 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
... | JavaScript | client_apps/canvas_quizzes/apps/events/js/views/answer_matrix/cell.js | djbender/canvas-lms | agpl-3.0 | 2,899 | 100 | codeparrot/github-code |
200f4d9c390526e567167cfdf6aa5a34c8341931744796ee9ce73cb47f44784f | """
PLN representation of the "smokes" sample from Tuffy Markov Logic Networks
More details on this sample are available here:
https://github.com/opencog/opencog/tree/master/opencog/python/pln_old/examples/tuffy/smokes
https://github.com/cosmoharrigan/tuffy/tree/master/samples/smoke
http://hazy.cs.wisc.edu/hazy/tuffy/... | Python | opencog/python/pln_old/examples/tuffy/smokes/smokes_agent.py | ruiting/opencog | agpl-3.0 | 5,370 | 139 | codeparrot/github-code |
5f4d91cc4122a3c5c64c187c2dd7d26678ae9cefd96a6ec15dd291932479101f | /*
* eXist Open Source Native XML Database
* Copyright (C) 2001-2009 Wolfgang M. Meier
* wolfgang@exist-db.org
* http://exist.sourceforge.net
*
* This program 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 S... | Java | src/org/exist/xquery/functions/util/LogFunction.java | opax/exist | lgpl-2.1 | 7,949 | 209 | codeparrot/github-code |
3fb39f5cd891f3e840d85fc0d5e37a722bf69e07324b858acb93860dd3c9c7f8 | /*************************************************
* SQLInstallDriverManager
*
* I return the default dir for core components.. but
* thats it.
* This may differ slightly from the spec.
*
**************************************************
* This code was created by Peter Harvey @ CodeByDesign.
* Released under... | C | odbcinst/SQLInstallDriverManager.c | kadler/unixODBC | lgpl-2.1 | 1,586 | 67 | codeparrot/github-code |
fe7991a563a5681143b26d0f00844222a0fdd4962129b2846ff0f1f44e0c5362 | /*
Copyright (c) 2009 Stephen Kelly <steveire@gmail.com>
Copyright (C) 2010 Klarälvdalens Datakonsult AB,
a KDAB Group company, info@kdab.net,
author Stephen Kelly <stephen@kdab.com>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Libra... | C++ | src/lib/marble/kdescendantsproxymodel.cpp | probonopd/marble | lgpl-2.1 | 32,056 | 1,010 | codeparrot/github-code |
9eb6c05b5a955fae8f26a07ad41933b3a16147e0d6d26b41e5886b41540d5a2e | /******************************************************************************
* $Id: ogrwalk.h
*
* Project: OpenGIS Simple Features Reference Implementation
* Purpose: Definition of classes for OGR Walk driver.
* Author: Xian Chen, chenxian at walkinfo.com.cn
*
*********************************************... | C | share/gdal/gdal-2.0.0/ogr/ogrsf_frmts/walk/ogrwalk.h | kctan0805/vdpm | lgpl-2.1 | 7,435 | 212 | codeparrot/github-code |
2fc9c6ab3877bd66c7f0bf71f817c9d96d831f31bef9f22b44a836e6bceb6d2c | /*
* Copyright (C) 2017, 2019 Ken Rabold, JP Bonn
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup cpu_fe310
* @{
*
* @file cpu.c
* @brief Implementatio... | C | cpu/fe310/clock.c | aabadie/RIOT | lgpl-2.1 | 3,395 | 103 | codeparrot/github-code |
8fdf7ab60f33ecdf3e59fbd57b96939504c6310093a340ca87cff8c4822a65da | /*
* Do not modify this file; it is automatically
* generated and any modifications will be overwritten.
*
* @(#) xdc-A71
*/
/*
* ======== GENERATED SECTIONS ========
*
* PROLOGUE
* INCLUDES
*
* INTERNAL DEFINITIONS
* MODULE-WIDE CONFIGS
* VIRTUAL FUNCTIONS
* FUNCTION... | C | hardware/common/ti/sysbios/hal/CoreNull.h | cevatbostancioglu/Energia | lgpl-2.1 | 11,599 | 335 | codeparrot/github-code |
3554ddcc72da5a18add1e60084c2596e7f18a1ffd545b70ab9e067f19ae830fd | /* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXDE-Qt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org
*
* Copyright: 2010-2011 Razor team
* Authors:
* Petr Vanek <petr@scribus.info>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms ... | C++ | plugin-showdesktop/showdesktop.cpp | jeremywh7/lxqt-panel | lgpl-2.1 | 2,620 | 80 | codeparrot/github-code |
0c100c4a07aaa018dac85aae6bcf45bc749d8786e34353a677e344e5aea347f1 | /*
* BioJava development code
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. If you do not have a copy,
* see:
*
* http://www.gnu.org/copyleft/lesser.html
*
* Copyright for t... | Java | biojava-structure/src/main/java/demo/DemoMMCIFReader.java | pwrose/biojava | lgpl-2.1 | 2,788 | 119 | codeparrot/github-code |
941afdc51ed303d68265552cfec730e60be30dc58e88956a13b78a1c64e13ef7 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2018, 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 | clustering/common/src/main/java/org/jboss/as/clustering/controller/ResourceCapabilityReference.java | jstourac/wildfly | lgpl-2.1 | 4,975 | 104 | codeparrot/github-code |
d2bba110258344abfd4ddbdd2f234374e9e7a2d9e6e2452530bc525cac7d8e68 | /*
* 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 | testsuite/shared/src/main/java/org/wildfly/test/security/common/elytron/CredentialReference.java | xasx/wildfly | lgpl-2.1 | 3,257 | 106 | codeparrot/github-code |
63db09d788bf58c7a6fbbd9fe47cd393522c107dbf044e1d44cecb7bab98a235 | /*
* #%L
* Alfresco Repository
* %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the... | Java | src/main/java/org/alfresco/repo/discussion/cannedqueries/GetDiscussionTopcisWithPostsCannedQueryParams.java | Alfresco/alfresco-repository | lgpl-3.0 | 2,505 | 72 | codeparrot/github-code |
8d85df5fb4e2c421dcba3ec85c508f515fbd0c76f29c4197c40a6ff048397ae9 | <?php
/*
* This file is part of the GetOptionKit package.
*
* (c) Yo-An Lin <cornelius.howl@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/
namespace GetOptionKit;
use GetOptionKit\OptionSpec;
use Iterator;
class Opt... | PHP | src/module/GetOptionKit/src/GetOptionKit/OptionSpecCollection.php | matyhtf/framework | lgpl-3.0 | 4,612 | 198 | codeparrot/github-code |
57501b24496ee5833819fa1222243e17d4407b12014679c294494f5ca34f6d42 | /***
* ASM: a very small and fast Java bytecode manipulation framework
* Copyright (c) 2000-2005 INRIA, France Telecom
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redist... | Java | src/main/java/com/googlecode/aviator/asm/tree/analysis/SimpleVerifier.java | coolking70/aviator | lgpl-3.0 | 10,577 | 286 | codeparrot/github-code |
f10b77b5081f8e87d31da6dca3280663d037a8e3bfb026c3b3779682ebeb3b15 | /**
*
* Phantom OS
*
* Copyright (C) 2005-2008 Dmitry Zavalishin, dz@dz.ru
*
* Kernel ready: yes
* Preliminary: no
*
*
**/
#include <assert.h>
#include <phantom_libc.h>
// Will trigger const definitions in pvm_object_flags.h
#define POSF_CONST_INIT
#include "vm/root.h"
#include "vm/ex... | C | phantom/vm/root.c | tectronics/phantomuserland | lgpl-3.0 | 22,224 | 720 | codeparrot/github-code |
6e4c8a3a7f15e56abee0091449c951cff250ead9b8432822cc6bfbba6e963881 | /**
*
* Phantom OS
*
* Copyright (C) 2005-2010 Dmitry Zavalishin, dz@dz.ru
*
* VESA video support
*
**/
#define DEBUG_MSG_PREFIX "vesa"
#include "debug_ext.h"
#define debug_level_flow 0
#define debug_level_error 10
#define debug_level_info 1
#include <phantom_libc.h>
#include <ia32/pc/vesa.h... | C | oldtree/kernel/phantom/i386/vesa.c | kandeshvari/phantomuserland | lgpl-3.0 | 8,425 | 340 | codeparrot/github-code |
933315b62adb4f8d6120b6e1d782e48f2a6fa723361c904bf98ca6ae2997e84d | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
compat_str,
float_or_none,
int_or_none,
smuggle_url,
str_or_none,
try_get,
)
class STVPlayerIE(InfoExtractor):
IE_NAME = 'stv:player'
_VALID_URL = r'https?://play... | Python | youtube_dl/extractor/stv.py | rg3/youtube-dl | unlicense | 3,447 | 96 | codeparrot/github-code |
f936caaa47585ec0b5de79b1cf98f5c7057548ed9afafbe2bd947af133ac3eaf | """Support for information from HP iLO sensors."""
from datetime import timedelta
import logging
import hpilo
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import (
CONF_HOST,
CONF_MONITORED_VARIABLES,
CONF_NAME,
CONF_PASSWORD,
CONF_P... | Python | homeassistant/components/hp_ilo/sensor.py | leppa/home-assistant | apache-2.0 | 6,330 | 197 | codeparrot/github-code |
c3f9d0283de2fef16bed0f334f78370c1f64ac78536c60b912d88c1599b9708d | -- @@@ START COPYRIGHT @@@
--
-- 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... | SQL | core/sql/regress/newregr/rowsets/teste201.sql | apache/incubator-trafodion | apache-2.0 | 10,500 | 331 | codeparrot/github-code |
9d2c54df7b39d1a94b7f1407e8ba74959760d39215e483da2cee801501331e3e | /* Copyright 2015 Samsung Electronics Co., 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 applicable law... | Java | GVRf/Sample/model-viewer/src/org/gearvrf/modelviewer/DiffuseShader2.java | cesarramirez/GearVRf | apache-2.0 | 4,386 | 110 | codeparrot/github-code |
6028eaf533463edc7caf001d7a1aa966624584a75506fbc7f0b991267d2156cc | #
# 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 under ... | Python | src/main/python/apache/aurora/executor/common/announcer.py | shahankhatch/aurora | apache-2.0 | 8,388 | 259 | codeparrot/github-code |
fbf06b79601abda57ffbab3e94768d4f9a5c8b0dcc443142dfd18eb2f6ba3afa | ##########################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.org/li... | Ruby | server/webapp/WEB-INF/rails.new/app/controllers/admin/plugins/plugins_controller.rb | xli/gocd | apache-2.0 | 3,289 | 81 | codeparrot/github-code |
e63e0d37c022ee53542439ec4e29cffc53c1c78279a9273664ebaa2bed150828 | /**
* JBoss, Home of Professional Open Source
* Copyright Red Hat, Inc., and individual contributors.
*
* 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/licens... | Java | library/src/main/java/org/jboss/aerogear/android/pipe/http/HeaderAndBody.java | secondsun/aerogear-android-pipe | apache-2.0 | 1,481 | 51 | codeparrot/github-code |
3388e239d32882a480ff9843996ef52d0f93451b9094495d1ab4c0a4244bbce3 | #include "mwm_version.hpp"
#include "coding/files_container.hpp"
#include "coding/reader_wrapper.hpp"
#include "coding/varint.hpp"
#include "coding/writer.hpp"
#include "base/assert.hpp"
#include "base/gmtime.hpp"
#include "base/string_utils.hpp"
#include "base/timegm.hpp"
#include "base/timer.hpp"
#include "defines... | C++ | platform/mwm_version.cpp | matsprea/omim | apache-2.0 | 3,587 | 131 | codeparrot/github-code |
89f80b146f8fd4c8b850f85b5d474bbc86995bae8c6755ed415aef55afb7dfee | /* Copyright 2015 Samsung Electronics Co., 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 applicable law... | Java | GVRf/Sample/gvrf_controls_sample/src/org/gearvrf/controls/menu/MenuFrame.java | danke-sra/GearVRf | apache-2.0 | 5,067 | 150 | codeparrot/github-code |
73c6ae3061d78f582dd0af089b5fe68f46390105cf8f0ba4f9df7471c5114877 | /*
* Copyright 2009 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | Java | src/com/google/javascript/jscomp/ParallelCompilerPass.java | bramstein/closure-compiler-inline | apache-2.0 | 6,937 | 227 | codeparrot/github-code |
aa3e68d3dcdc45f6f4e9e989864baca06d72149824e08f70e6e40b2621327ac5 | // Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.jps.builders.java.dependencyView;
import com.intellij.util.io.DataExternalizer;
import com.intellij.util.io.DataInputOutputUtil;
import gnu.trove.THashSet;
... | Java | jps/jps-builders/src/org/jetbrains/jps/builders/java/dependencyView/ModulePackageRepr.java | jk1/intellij-community | apache-2.0 | 3,668 | 121 | codeparrot/github-code |
548bc78a860226e8830b49c30608dab3e1c64de6c13cfdf0cdb64467fbe1aa1e | /*
* Copyright 2013 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | Java | third_party/closure-compiler/src/com/google/javascript/jscomp/fuzzing/StringFuzzer.java | zombiezen/cardcpx | apache-2.0 | 1,622 | 62 | codeparrot/github-code |
549e5bd0aaa53e9153eebd06a53b3198bf1b8d308cd69d4b2ab6a079132990dd | /* 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 | modules/flowable-content-engine/src/main/java/org/flowable/content/engine/impl/cmd/GetContentItemStreamCmd.java | dbmalkovsky/flowable-engine | apache-2.0 | 2,209 | 57 | codeparrot/github-code |
bb046a30ec3e2538b86bb413fb0892567f668835be97ab125004db48911c8b80 | /* Copyright 2017 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/compiler/xla/service/hlo_computation.cc | jart/tensorflow | apache-2.0 | 34,754 | 911 | codeparrot/github-code |
14be659744918d0b27db24c56b41c618b0f0484b6761da46561023d96c4c120f | use std::cell::UnsafeCell;
use std::collections::HashMap;
use std::fmt;
use std::marker::PhantomData;
use std::mem;
use std::ops::{Deref, DerefMut};
use std::panic::{RefUnwindSafe, UnwindSafe};
use std::sync::{LockResult, PoisonError, TryLockError, TryLockResult};
use std::sync::{Mutex, RwLock, RwLockReadGuard, RwLockW... | Rust | crossbeam-utils/src/sync/sharded_lock.rs | aturon/crossbeam | apache-2.0 | 20,325 | 631 | codeparrot/github-code |
ef6792fdc6576353f30185609a93b000cbb92e97e50ed0fc23e4960716a71036 | /*
* Copyright (c) 2008-2021, Hazelcast, 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 ... | Java | hazelcast/src/test/java/com/hazelcast/internal/diagnostics/SystemPropertiesPluginTest.java | emre-aydin/hazelcast | apache-2.0 | 2,510 | 77 | codeparrot/github-code |
fb6e9e8dfb3f060fcb2da6213abfd81901bf2873ce39379c91632cb7cf563bea | /*
* 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 ... | C++ | src/xercesc/validators/datatype/DateTimeDatatypeValidator.hpp | xin3liang/platform_external_xerces-cpp | apache-2.0 | 3,496 | 103 | codeparrot/github-code |
79d6fe79a19698749d1de4d43d98c9b446e68d8cd332e4db0ca50cce9bdfaa55 | package org.apache.rya.indexing.pcj.fluo.app;
/*
* 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... | Java | extras/rya.pcj.fluo/pcj.fluo.app/src/test/java/org/apache/rya/indexing/pcj/fluo/app/ConstructGraphTest.java | meiercaleb/incubator-rya | apache-2.0 | 6,222 | 146 | codeparrot/github-code |
c7ae59d933cf2f8589cdfa9eb21e26d95753c6f7b37ce83d7557a23f49921988 | # QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 Licen... | Python | Algorithm.Python/BrokerageModelAlgorithm.py | StefanoRaggi/Lean | apache-2.0 | 3,724 | 73 | codeparrot/github-code |
00aa1b7e82fdeb7a981cc534ebb182c1d4735c89db024c9dcbd35a4fa77f14ba | module MysqlCookbook
class MysqlServiceManagerUpstart < MysqlServiceBase
resource_name :mysql_service_manager_upstart
provides :mysql_service_manager, platform_family: 'debian' do |_node|
Chef::Platform::ServiceHelpers.service_resource_providers.include?(:upstart) &&
!Chef::Platform::ServiceHel... | Ruby | libraries/mysql_service_manager_upstart.rb | nkadel-skyhook/nkadel-mysql-cookbook | apache-2.0 | 3,070 | 104 | codeparrot/github-code |
08d0c8f4b6b0889d9e178afc7fb26c9cb52a983a7ae62b9094a56c87bc1689b0 | /* minIni - Multi-Platform INI file parser, suitable for embedded systems
*
* Copyright (c) CompuPhase, 2008-2015
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* ... | C | dev/minIni.h | mabl/mini | apache-2.0 | 5,892 | 153 | codeparrot/github-code |
19b41fb3f9e4e4ffd8762d669c11e7a8d6573fb91c410e577a2a678c328e2da0 | /*
* 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 ... | C# | modules/platforms/dotnet/Apache.Ignite/Service/IgniteService.cs | dmagda/incubator-ignite | apache-2.0 | 7,474 | 220 | codeparrot/github-code |
0241f65851768a4e5a8bb73bd29a6b9f27b3e0511647a891645afd5aa4639300 | /*----------------------------------------------------------------------------
* File: UI.h
*
* UML Component (Module) Declaration (Operations and Signals)
*
* your copyright statement can go here (from te_copyright.body)
*--------------------------------------------------------------------------*/
#ifn... | C | src/org.xtuml.bp.welcome/models/GPS Watch/src/UI.h | john-tornblom/bridgepoint | apache-2.0 | 1,078 | 37 | codeparrot/github-code |
712727a10a6b5e4439c623e23b1fbc5beb19d9ca5fc430b400f6db1731e57df9 | /*
* JBoss, Home of Professional Open Source
*
* Copyright 2013 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/lic... | Java | saml/saml-core/src/main/java/org/keycloak/dom/saml/common/CommonAssertionType.java | eugene-chow/keycloak | apache-2.0 | 1,491 | 52 | codeparrot/github-code |
fe3e9b4b54071352597b8b7085d05f7a6e66a1b5c49ac0a66849e0e3167320b0 | // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... | Rust | src/test/run-pass/sendfn-spawn-with-fn-arg.rs | j16r/rust | apache-2.0 | 863 | 31 | codeparrot/github-code |
2205bc578a351dfb52687eeb6a7cfd2a5b364d7c6e8bf663fbe5d7db366b4b89 | // LzmaEncoder.cpp
#include "StdAfx.h"
#include "../../../C/Alloc.h"
#include "../Common/CWrappers.h"
#include "../Common/StreamUtils.h"
#include "LzmaEncoder.h"
namespace NCompress {
namespace NLzma {
static void *SzBigAlloc(void *, size_t size) { return BigAlloc(size); }
static void SzBigFree(voi... | C++ | src/lzma920/CPP/7zip/Compress/LzmaEncoder.cpp | qwename/qwiffer | apache-2.0 | 4,302 | 150 | codeparrot/github-code |
f210fa7e33a3938c2753649baaee04b62097758384821290ce480138d0e35dc8 | /**
* 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 | sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/log/util/Constants.java | joshuayao/incubator-sentry | apache-2.0 | 7,526 | 148 | codeparrot/github-code |
9927800c5ed538b8d0f157c6e08cdc15b41ca9db9a8f9ede88c9da243b1eef8c | /*
* Copyright 2013 Red Hat Inc. and/or its affiliates and other contributors.
*
* 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 req... | Java | components/soap/src/main/java/org/switchyard/component/soap/endpoint/BaseWebService.java | tadayosi/switchyard | apache-2.0 | 4,382 | 118 | codeparrot/github-code |
14d8b0e38d5a9b7a608c108598d6fbe7626bb01d704c6ec497fbecff090343c6 | import '../amp-accordion';
import {ActionTrust_Enum} from '#core/constants/action-constants';
import {subscribe, unsubscribe} from '#core/context';
import {htmlFor} from '#core/dom/static-template';
import {toggleExperiment} from '#experiments';
import {CanRender} from '#preact/contextprops';
import {ActionInvocatio... | JavaScript | extensions/amp-accordion/1.0/test/test-amp-accordion.js | alanorozco/amphtml | apache-2.0 | 30,159 | 828 | codeparrot/github-code |
eb0997c85c674945e0d4793fe154843a6d7dc9b0717f683151e57db0e3e9880e | /*
* Copyright 2009-2011 Red Hat, 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 agr... | C++ | src/condor_contrib/mgmt/qmf/plugins/Utils.cpp | djw8605/htcondor | apache-2.0 | 8,031 | 311 | codeparrot/github-code |
caf68e7bc0ed80ff915d6a750642ef72ebb0aa6ccd64a32c0587043a4ff39210 | /*
* 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 | contrib/extensions/distribution/core/src/test/java/org/apache/sling/distribution/packaging/impl/importer/RemoteDistributionPackageImporterTest.java | dulvac/sling | apache-2.0 | 2,345 | 51 | codeparrot/github-code |
6643ea5834b2f8d466bed0f50e2ef744680e823f292db022004ef8be68db068a | /*
* 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 | server/src/test/java/org/elasticsearch/index/mapper/ExternalMapper.java | fred84/elasticsearch | apache-2.0 | 10,035 | 255 | codeparrot/github-code |
766bb220f95f54cb1ecbcb4df53075d8845a3c0888bc9966d7400c9797f7ce51 | /*
* Copyright 2014 - 2015 Real Logic 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 applicable law or agr... | C | aeron-client/src/main/cpp/concurrent/logbuffer/TermAppender.h | buybackoff/Aeron | apache-2.0 | 8,864 | 230 | codeparrot/github-code |
625d80d028e8bc092a68ccb5fff4f5ac38e20844ca8cac316bc0fd5ce7f4131a | // ========================================================================
// Copyright (c) 2008-2009 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the terms of th... | Java | jetty-client/src/main/java/org/eclipse/jetty/client/webdav/WebdavListener.java | jamiepg1/jetty.project | apache-2.0 | 10,873 | 328 | codeparrot/github-code |
f4502b77338c20a1d6875ace2e023a5745cd986ed7615241ff63accf2bfddf1e | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | Java | src/java/main/org/apache/zookeeper/server/quorum/LeaderZooKeeperServer.java | wangread-git/zookeeper-trunk | apache-2.0 | 7,368 | 210 | codeparrot/github-code |
81ad56efa52c7f90ce87c969c39874b7dd8c68122184137568e3234fb03f9ffa | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | Java | hbase-server/src/test/java/org/apache/hadoop/hbase/http/TestHttpServer.java | grokcoder/pbase | apache-2.0 | 24,327 | 614 | codeparrot/github-code |
47d6fedca67d571f897ec94213ba417bbf2440de7240db3e7204fb15037ad32c | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | platform/core-impl/src/com/intellij/lang/folding/NamedFoldingDescriptor.java | jk1/intellij-community | apache-2.0 | 2,676 | 69 | codeparrot/github-code |
810fb134783507c18cbe74fa776f2452130bcf0ad98e611c1a1dfb1414ee9e04 | /**
* Copyright 2005-2014 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version
* 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | Java | sandbox/fabric/fabric-commands/src/test/java/io/fabric8/commands/ContainerLifecycleCommandsTest.java | hekonsek/fabric8 | apache-2.0 | 10,345 | 250 | codeparrot/github-code |
2f850223b62cc6246652227267c0c9847ffb214cdc2dd36f616fb8ff4c04e5e6 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2013 OpenStack Foundation. 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.apach... | Python | neutron/db/loadbalancer/loadbalancer_db.py | Juniper/neutron | apache-2.0 | 34,064 | 794 | codeparrot/github-code |
d76ebfcfc5bf9b1fa2984e16ea6d70209ce495948f5226116ce8d4c92485e06e | /* Copyright (C) 2013-2014 Computer Sciences Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | ezgraph/rexster-server/src/test/java/ezbake/data/graph/rexster/VisibilityFilterGraphWrapperIntegrationTest.java | infochimps-forks/ezbake-data-access | apache-2.0 | 16,453 | 413 | codeparrot/github-code |
a6dc8ffa823e4e24a1e7e549827eb5a33a619d41fe5ff05a539096d39e52a013 | /*
* Scala.js (https://www.scala-js.org/)
*
* Copyright EPFL.
*
* Licensed under Apache License 2.0
* (https://www.apache.org/licenses/LICENSE-2.0).
*
* See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*/
package org.scalajs.testsuite.utils
import or... | Scala | test-suite/js/src/test/scala/org/scalajs/testsuite/utils/Requires.scala | scala-js/scala-js | apache-2.0 | 711 | 32 | codeparrot/github-code |
0af8b2fe5279e69076b3314edff2cdea332cedc2ebbdf9743b0db7e53a757322 | package org.apache.lucene.demo.html;
/**
* Copyright 2004 The Apache Software Foundation
*
* 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 | src/demo/org/apache/lucene/demo/html/Entities.java | lpxz/grail-lucene358684 | apache-2.0 | 8,563 | 328 | codeparrot/github-code |
2997359e28dedc12219add404aef515b66078d887d4fafdc906a8a5ceafd5b4a | /*
Copyright 2007-2009 WebDriver committers
Copyright 2007-2009 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 appli... | Java | common/test/java/org/openqa/selenium/environment/webserver/SleepingServlet.java | mfazekas/safaridriver | apache-2.0 | 1,339 | 45 | codeparrot/github-code |
c8ec131f757ebcf1db6473717d24d9d7bb8af67b1f8abee8e9943f2ead32ef74 | /**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
'use strict';
let PropTypes;
let React;
let ReactDOM;
let ReactTestUtils;
function StatelessComponent(props) ... | JavaScript | packages/react-dom/src/__tests__/ReactStatelessComponent-test.js | syranide/react | apache-2.0 | 12,629 | 430 | codeparrot/github-code |
147a93c571bf92e237c80b00a374d8f0d7ed0c6181227930c6c3bee005830539 | /*
* Copyright © 2012-2015 VMware, 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... | C | vmafd/server/include/vecsdb.h | schatt/lightwave | apache-2.0 | 6,185 | 337 | codeparrot/github-code |
2f88915cb55a03dbc2210497da98061237828bed70dcac97dcac378d551090de | var drafts = (function () {
var exports = {};
var draft_model = (function () {
var exports = {};
// the key that the drafts are stored under.
var KEY = "drafts";
var ls = localstorage();
ls.version = 1;
function getTimestamp() {
return new Date().getTime();
}
function get() ... | JavaScript | static/js/drafts.js | amanharitsh123/zulip | apache-2.0 | 14,002 | 413 | codeparrot/github-code |
af7a0571f2734bc763ee0fba323f1e6161ffea29adc23833f24389e8a2f456b7 | /*
* Licensed to ElasticSearch and Shay Banon 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... | Java | src/main/java/org/elasticsearch/monitor/network/NetworkInfo.java | Kreolwolf1/Elastic | apache-2.0 | 5,030 | 162 | codeparrot/github-code |
e8d7b6542df51b3716dad325f93041278cd3f700dbc9c3031c6f0a4b8f8527bc | /*
* Copyright 2017 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Java | common/src/main/java/com/thoughtworks/go/server/domain/ElasticAgentMetadata.java | varshavaradarajan/gocd | apache-2.0 | 3,097 | 96 | codeparrot/github-code |
738843259c4b4c2c16baff56c9dfa2925023b1227338610cdd3ba8f8277065a1 | // Copyright 2012 Cloudera 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 wr... | C | be/src/statestore/simple-scheduler.h | andybab/Impala | apache-2.0 | 11,558 | 261 | codeparrot/github-code |
bac0952cf9342ca6ff00a9c69860ec6db2f2ef2a271a8fa07e6119f758c1956e | """
Test lldb-vscode setBreakpoints request
"""
from __future__ import print_function
import unittest2
import vscode
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
import lldbvscode_testcase
class TestVSCode_setExceptionBreakpoints(
lldbvsco... | Python | packages/Python/lldbsuite/test/tools/lldb-vscode/breakpoint/TestVSCode_setExceptionBreakpoints.py | apple/swift-lldb | apache-2.0 | 2,075 | 51 | codeparrot/github-code |
575f4094ce66fb0d9b59b94af212f5ba05b45c794a3e5c94f6250c19e8c4a018 | /*
* Copyright 2000-2013 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/javaFX/src/org/jetbrains/plugins/javaFX/fxml/descriptors/JavaFxBuiltInAttributeDescriptor.java | leafclick/intellij-community | apache-2.0 | 6,840 | 191 | codeparrot/github-code |
7bd73627fa3bce3650b2fddb7b997f83a3dce111dffa4d8442c22a1b8dbb8a33 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | Python | pylib/cqlshlib/test/run_cqlsh.py | beobal/cassandra | apache-2.0 | 12,091 | 358 | codeparrot/github-code |
621727124cc1e290f03ced8e4cd22c3f1e5d9c486293355c43510f9d5587cbbe | /*
* Copyright (c) 2005-2011 Grameen Foundation USA
* 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
*
* Unl... | Java | organization/src/main/java/org/mifos/customers/personnel/business/PersonnelNotesEntity.java | madhav123/gkmaster | apache-2.0 | 2,083 | 75 | codeparrot/github-code |
1b00de98d7435682c845cf2a1f4683a0f67b91b0d175f3fb37ab85a6854fa5fe | /*
* Copyright (C) 2006 - 2010 René Rebe
* (C) 2006, 2007 Archivista GmbH, CH-8042 Zuerich
*
* 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. A copy of the GNU General... | C++ | hocr2pdf/src/codecs/jpeg.cc | hujiaweibujidao/textfairy | apache-2.0 | 25,832 | 895 | codeparrot/github-code |
5b458d603ef3a3df9b8c9f535700fb1e5c30e23a37ca861864eed638da215e0a | /*
* Copyright Terracotta, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Java | management/src/test/java/org/ehcache/management/providers/settings/EhcacheSettingsProviderTest.java | AbfrmBlr/ehcache3 | apache-2.0 | 5,205 | 139 | codeparrot/github-code |
4c5835a6fa3477619a27ca26281343b39708b5a9189629c9f34b8174f0ae6be0 | //===- HexagonRemoveExtendArgs.cpp - Remove unecessary argument sign extends =//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C++ | llvm/lib/Target/Hexagon/HexagonRemoveSZExtArgs.cpp | hoangt/ScaffCC | bsd-2-clause | 2,561 | 83 | codeparrot/github-code |
6b350d94258f0b153163612b7ab26e28fa32c0eae734590b5c7cbbb2d217693c | /* Copyright (c) 2014, Vsevolod Stakhov
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list o... | C | libpkg/repo/binary/query.c | junovitch/pkg | bsd-2-clause | 13,943 | 533 | codeparrot/github-code |
0b7144a7b702f1f536e5809084394d23b27267355553f414338c2b94aca86fa8 | // Copyright 2013, ARM Limited
// 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 a... | C | src/a64/decoder-a64.h | geekboxzone/lollipop_external_vixl | bsd-3-clause | 7,649 | 199 | codeparrot/github-code |
fa7b2a96120d3604e5fe4c6fdded5a8a804ad7c8f8cdd209f6d7613a6d085a69 | from __future__ import unicode_literals
from uuid import uuid4
from django import forms
from django.template.loader import render_to_string
from django.utils.translation import ugettext as _
from .. import PaymentError
from ..forms import CreditCardPaymentFormWithName
class FingerprintWidget(forms.HiddenInput):
... | Python | pysar_payments/cybersource/forms.py | imakin/pysar-payments | bsd-3-clause | 2,581 | 71 | codeparrot/github-code |
a27377c6d7aa7f61b92202b04426031b456e728418f2c0933142749e1739413d | #!/usr/bin/env python
"""
cpuinfo
Copyright 2002 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@cens.ioc.ee>
Permission to use, modify, and distribute this software is given under the
terms of the NumPy (BSD style) license. See LICENSE.txt that came with
this distribution for specifics.
NO WARRANTY IS EXP... | Python | numpy/distutils/cpuinfo.py | MSeifert04/numpy | bsd-3-clause | 23,013 | 694 | codeparrot/github-code |
1c976bc8958ef8db1c21f7dcfe7ae64cea416eb0c770d1bf875675a6f3dbdbf5 | ##########################################################################
#
# Copyright (c) 2013, Image Engine Design 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:
#
# * Redistrib... | Python | python/GafferImageTest/FormatDataTest.py | hradec/gaffer | bsd-3-clause | 3,696 | 107 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.