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 |
|---|---|---|---|---|---|---|---|---|
e855562caf40ed9e5857617504cdf437d0badb569ab1ad8ad6f85262169b4b9d | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using Internal.Text;
namespace ILCompiler.DependencyAnalysis
{
... | C# | src/ILCompiler.Compiler/src/Compiler/DependencyAnalysis/ArrayOfEmbeddedPointersNode.cs | gregkalapos/corert | mit | 4,820 | 124 | codeparrot/github-code |
03890e95ec9963fa40d1a8f934e57b2d1485a307bc39751dc5c5e416a689ad67 | """
Support the OwnTracks platform.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/device_tracker.owntracks/
"""
import json
import logging
import threading
from collections import defaultdict
import homeassistant.components.mqtt as mqtt
from homeassist... | Python | homeassistant/components/device_tracker/owntracks.py | mikaelboman/home-assistant | mit | 7,427 | 212 | codeparrot/github-code |
2182cdd9a2133b47fbe7b4e66cd79e5457856b79d0aeec328a5a7900e1c6c415 | #!/usr/bin/python
# Author: Jon Trulson <jtrulson@ics.com>
# Copyright (c) 2015 Intel Corporation.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without l... | Python | examples/python/gprs.py | whbruce/upm | mit | 3,287 | 90 | codeparrot/github-code |
0fa64796beab98622f84f3e7de8826712e73d4dd567b59ddb84bea76dcc22652 | <?php
/**
* PHPMailer RFC821 SMTP email transport class.
* PHP Version 5
* @package PHPMailer
* @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
* @author Andy P... | PHP | secure/classes/phpmailer/smtp.php | DasSheep/Massivesoft_ITE220 | mit | 29,636 | 936 | codeparrot/github-code |
79f98441b323abbd0d5c954d650110e57523f89af6be291946eb48c4bbb18527 | // esets
var fs = require('fs');
var child_process = require('child_process');
var virus_re = new RegExp('virus="([^"]+)"');
exports.hook_data_post = function (next, connection) {
var plugin = this;
var txn = connection.transaction;
var cfg = this.config.get('esets.ini');
// Write message to temporary... | JavaScript | plugins/esets.js | baudehlo/Haraka | mit | 2,517 | 75 | codeparrot/github-code |
3658a6f00f74b1ef1be30a175db3beb60c40a02cf0fc5bc15312366503cbdd59 | import React from 'react';
import { Container } from 'elemental';
var Footer = React.createClass({
displayName: 'Footer',
propTypes: {
appversion: React.PropTypes.string,
backUrl: React.PropTypes.string,
brand: React.PropTypes.string,
user: React.PropTypes.object,
User: React.PropTypes.object, // eslint-di... | JavaScript | admin/client/components/Footer.js | andreufirefly/keystone | mit | 1,273 | 46 | codeparrot/github-code |
921550d8540a2e50f3de4c9ece9170bd9c4473835ca4a7a3072268606cf33e83 | /**
* Copyright (c) 2014-2017 by the respective copyright holders.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
pa... | Java | bundles/core/org.eclipse.smarthome.core.thing/src/main/java/org/eclipse/smarthome/core/thing/link/ItemThingLink.java | philomatic/smarthome | epl-1.0 | 1,026 | 39 | codeparrot/github-code |
e4c3fbc8f1d1d795d8a0446488a33d2f95790e87b80150b1d832894423103fdf | /**
* @file node_type.c node type handling
*
* Copyright (C) 2007-2008 Lars Windolf <lars.windolf@gmx.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Licen... | C | src/node_type.c | hugoArregui/liferea | gpl-2.0 | 2,996 | 110 | codeparrot/github-code |
0c265815be9b9acc62e2ade173a59c781d082f02e2e0231cb809ecfa6f86b8f4 | /****************************************************************************
* ip_conntrack_h323_asn1.h - BER and PER decoding library for H.323
* conntrack/NAT module.
*
* Copyright (c) 2006 by Jing Min Zhao <zhaojingmin@users.sourceforge.net>
*
* This source code is licensed under General Public Licen... | C | include/linux/netfilter/nf_conntrack_h323_asn1.h | holyangel/LGE_G3 | gpl-2.0 | 3,378 | 99 | codeparrot/github-code |
e4764d38744459dc14c8301d9a79294279708f207bd150b08344c7183baf2f0f | /*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | plugin/messaging/src/main/java/org/gradle/messaging/remote/internal/ChannelRegistrationProtocol.java | cams7/gradle-samples | gpl-2.0 | 3,865 | 91 | codeparrot/github-code |
0773e1d1dfc006c9d091df69e8995e2498c176b8d5b7fbfbce1681ba45f93c30 | <?php
/**
* File containing the eZPackageHandler class.
*
* @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
* @version 2012.6
* @package kernel
*/
/*!
\class eZPackageHandler ezpackagehandler.php
\brief ... | PHP | kernel/classes/ezpackagehandler.php | crevillo/ezc | gpl-2.0 | 7,967 | 242 | codeparrot/github-code |
0802fc15d64580fee8c312ca282bdc99a5b6fa1f3de3ee2cbc0c71ea5218d295 | /*
* Empty machine
*
* Copyright IBM, Corp. 2012
*
* Authors:
* Anthony Liguori <aliguori@us.ibm.com>
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*
*/
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/error... | C | qemu/hw/core/null-machine.c | Cisco-Talos/pyrebox | gpl-2.0 | 1,437 | 60 | codeparrot/github-code |
928b6276e74f872b1c873da11883171314602d1ff33694087bf5386f418f81d3 | <?php
/**
* Social networks hooks
*
*
* @package Customizr
* @subpackage classes
* @since 3.0.10
* @author Nicolas GUILLAUME <nicolas@themesandco.com>
* @copyright Copyright (c) 2013, Nicolas GUILLAUME
* @link http://themesandco.com/customizr
* @license http://www.gnu.org/licenses/o... | PHP | wp-content/themes/customizr/parts/class-content-socials.php | vivekkothari/thefairdice | gpl-2.0 | 2,163 | 72 | codeparrot/github-code |
7af6910cedfd35907938786973bef7f6344c11f93f7b6190210a4e70f3f64f64 | /*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | plugin/core/src/main/groovy/org/gradle/api/internal/artifacts/dependencies/DefaultExternalModuleDependency.java | cams7/gradle-samples | gpl-2.0 | 2,536 | 75 | codeparrot/github-code |
ddcdb363210622ef7a2fed4f1acf63af234d6cc262e3861b12d414ba37e71db0 | /***********************************************************************
Menu - Subclass of RowColumn that only contains buttons and acts as a
pop-up menu.
Copyright (c) 2001-2005 Oliver Kreylos
This file is part of the GLMotif Widget Library (GLMotif).
The GLMotif Widget Library is free software; you can redistribut... | C++ | src/Vrui-3.1-002/GLMotif/Menu.cpp | museolab/augmented_sandbox | gpl-2.0 | 3,146 | 105 | codeparrot/github-code |
cd0d0921253fdc6dbbea814317c3b23ed3d11ce0e6c478b83d6eaddd594b6cb4 | <?php
/**
* @file
* Contains \Drupal\imce\Form\ImceProfileDeleteForm.
*/
namespace Drupal\imce\Form;
use Drupal\Core\Entity\EntityConfirmFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
/**
* Provides a deletion confirmation form for Imce Profile.
*/
class ImceProfileDeleteForm extends E... | PHP | tmp/update-extraction-7c31d87a/imce/src/Form/ImceProfileDeleteForm.php | jeff-purtle/purtle_drupal8 | gpl-2.0 | 1,051 | 50 | codeparrot/github-code |
7d1ea9924d705c81b34368a43c5f70ae2eae4fc1c6ea6fc53be0d906ab22391e | <?php
new WPCOM_JSON_API_Site_Settings_V1_2_Endpoint( array(
'description' => 'Get detailed settings information about a site.',
'group' => '__do_not_document',
'stat' => 'sites:X',
'min_version' => '1.2',
'method' => 'GET',
'path' => '/sites/%s/settings',
'path_labels' => array(
'$... | PHP | wp-content/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-v1-2-endpoint.php | kanei/vantuch.cz | gpl-2.0 | 9,585 | 165 | codeparrot/github-code |
eaca7eacc51674667ac23cdac8c5b6d86f9a9b21defa2bf1ce99b5e2b507884a | <?php
/**
* @package Joomla.Administrator
* @subpackage com_banners
*
* @copyright (C) 2005 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Component\Banners\Administrator\Table;
\defined('_JEXEC') or die... | PHP | administrator/components/com_banners/src/Table/BannerTable.php | viocassel/joomla-cms | gpl-2.0 | 9,494 | 395 | codeparrot/github-code |
f92b5887fdc02527a4f3dff79c2a88a3d306706bd5dfada08a0c45c6405cb841 | /***************************************************************
*Copyright (C), 2017, Shanghai Eastsoft Microelectronics Co., Ltd
*ÎļþÃû£º lib_timer.c
*×÷ Õߣº Liut
*°æ ±¾£º V1.00
*ÈÕ ÆÚ£º 2017/07/14
*Ãè Êö£º ADCÄ£¿é¿âº¯Êý
*±¸ ×¢£º ÊÊÓÃÓÚ ES8P508xоƬ
±¾Èí¼þ½ö¹©Ñ§Ï°ºÍÑÝʾʹÓ㬶ÔÓû§Ö±½ÓÒýÓôúÂëËù´... | C | bsp/essemi/es8p508x/libraries/Library/Source/lib_adc.c | grissiom/rt-thread | gpl-2.0 | 8,837 | 302 | codeparrot/github-code |
8f022476c65d87f93f83181f19aab62e96038db423efee2789987f6e54132484 | /*
* Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
*/
/*
* 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 licen... | Java | jdk9/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/jaxp/validation/XMLSchemaValidatorComponentManager.java | YouDiSN/OpenJDK-Research | gpl-2.0 | 26,089 | 619 | codeparrot/github-code |
aad9f2e2fa38b09cfe3327bf200005e4db9e140173affeff126948ec104dee00 | (function ($) {
'use strict';
Drupal.Nodejs.callbacks.nodejsUltimateCron = {
disabled: false,
runningJobs: {},
callback: function (message) {
if (this.disabled) {return;}
var action = message.data.action;
var job = message.data.job;
var elements = message.data.elements;
sw... | JavaScript | profiles/varbase/profiles/varbase/modules/contrib/ultimate_cron/js/ultimate_cron.nodejs.js | jagnoha/website | gpl-2.0 | 2,267 | 77 | codeparrot/github-code |
50e35f7b3646c0f7f53a1aea50aaea34a4064746b3614e2b7a22bd41b8cb2f2d | /*
* zebra_fpm_protobuf.c
*
* @copyright Copyright (C) 2016 Sproute Networks, Inc.
*
* @author Avneesh Sachdev <avneesh@sproute.com>
*
* This file is part of Quagga.
*
* Quagga 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 | zebra_fpm_protobuf.c | karpoorakrishnan/quagga- | gpl-2.0 | 6,889 | 312 | codeparrot/github-code |
270c2967215352f62e0f56fa2fb910ab5fee388f3552c0fe35ba245a547c4878 | /*
* This confidential and proprietary software may be used only as
* authorised by a licensing agreement from ARM Limited
* (C) COPYRIGHT 2009-2010, 2012-2013 ARM Limited
* ALL RIGHTS RESERVED
* The entire notice above must be reproduced on all authorised
* copies and copies may only be made to the extent permit... | C | drivers/gpu/mali400/r4p0/ump/include/ump_uk_types.h | nian0114/AGNi-pureCM-SC03E | gpl-2.0 | 6,801 | 208 | codeparrot/github-code |
4a6c86b4add1e70a317c6e38d75945aa574b323b8c4e54c990e10b5213c0f88a | describe("Ext", function() {
describe("Ext.global", function() {
it("should return the global scope", function() {
expect(Ext.global).toBe((function(){ return this;}).call());
});
});
describe("Ext.apply", function() {
var origin, o;
beforeEach(function() {
... | JavaScript | web/ext/packages/sencha-core/test/specs/Ext.js | ybbkd2/publicweb | gpl-2.0 | 67,277 | 2,009 | codeparrot/github-code |
7b0d85c89edb6e5694c302903971f64be3ed167837963f67c28718b702834871 | /*
*
* Support for the mpeg transport stream transfers
* PCI function #2 of the cx2388x.
*
* (c) 2004 Jelle Foks <jelle@foks.us>
* (c) 2004 Chris Pascoe <c.pascoe@itee.uq.edu.au>
* (c) 2004 Gerd Knorr <kraxel@bytesex.org>
*
* This program is free software; you can redistribute it and/or modify
* ... | C | drivers/media/video/cx88/cx88-mpeg.c | grate-driver/linux-2.6 | gpl-2.0 | 24,162 | 895 | codeparrot/github-code |
bac4e63b6f5676e1f9f65b72aa91f088e2590445d3a50ea0ada80109350138f5 | /*
This file is part of VK/KittenPHP-DB-Engine.
VK/KittenPHP-DB-Engine is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
... | C | cache/cache-data.h | vk-com/kphp-kdb | gpl-2.0 | 9,670 | 256 | codeparrot/github-code |
7bad2fc17d1b5310eee305fc050fd6791135fadab834865d483fb24c94192c5f | // license:BSD-3-Clause
// copyright-holders:Bryan McPhail
/***************************************************************************
video.c
***************************************************************************/
#include "emu.h"
#include "includes/nemesis.h"
#include "video/resnet.h"
static const struct... | C++ | src/mame/video/nemesis.cpp | RJRetro/mame | gpl-2.0 | 10,339 | 428 | codeparrot/github-code |
97c1bff82d3899993f419c919d05f02ae3465678b1d26e30cd03708084b5ab01 | # -*- coding: utf-8 -*-
"""
***************************************************************************
r_li_padcv.py
-------------
Date : February 2016
Copyright : (C) 2016 by Médéric Ribreux
Email : medspx at medspx dot fr
********************************... | Python | python/plugins/processing/algs/grass7/ext/r_li_padcv.py | drnextgis/QGIS | gpl-2.0 | 1,318 | 38 | codeparrot/github-code |
e2f27e5d4ed390cc3aa268bbd2b458d9a3ac9847f2457da46267a51b52cf4b51 | /*
* Copyright (c) International Business Machines Corp., 2000-2002
* Portions Copyright (c) Christoph Hellwig, 2001-2002
*
* 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; eithe... | C | fs/jfs/inode.c | Picture-Elements/linux-2.4-peijse | gpl-2.0 | 9,683 | 402 | codeparrot/github-code |
a085b11cf1fc9353bf17d1c1e94ae08231963cd36a27d25cf0111329ab028520 | /*
* multipath.c : Multiple Devices driver for Linux
*
* Copyright (C) 1999, 2000, 2001 Ingo Molnar, Red Hat
*
* Copyright (C) 1996, 1997, 1998 Ingo Molnar, Miguel de Icaza, Gadi Oxman
*
* MULTIPATH management functions.
*
* derived from raid1.c.
*
* This program is free software; you can redistribute it and... | C | linux-2.6.x/drivers/md/multipath.c | kidmaple/CoolWall | gpl-2.0 | 15,496 | 596 | codeparrot/github-code |
684854f6dfa457dafda5bc9bfe6e602a48fc795f0b7f0ded2834511a2e6d27d3 | /*
* PCI Backend - Provides restricted access to the real PCI bus topology
* to the frontend
*
* Author: Ryan Wilson <hap9@epoch.ncsc.mil>
*/
#include <linux/list.h>
#include <linux/pci.h>
#include <linux/spinlock.h>
#include "pciback.h"
struct passthrough_dev_data {
/* Access to dev_list must b... | C | drivers/xen/xen-pciback/passthrough.c | davidepianca98/u8500_kernel | gpl-2.0 | 4,292 | 179 | codeparrot/github-code |
26675c56b45169b6ce52282f474afbbd47097936fc3ec8da38ba10ba8a815ad9 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
* Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
*******... | C++ | src/3dparty/qwt-5.2.0/src/qwt_event_pattern.cpp | christianurich/VIBe2GUI | gpl-2.0 | 7,317 | 289 | codeparrot/github-code |
d502c8d432852c11fb71dd9e4697055ac56734711cc4efedc1aa7178f5687daf | /**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... | C++ | Marlin/src/lcd/extui/mks_ui/draw_machine_settings.cpp | LVD-AC/Marlin | gpl-3.0 | 2,534 | 76 | codeparrot/github-code |
92f7158c1067a9e9d030aa6e9d6d7cf3b43658c9c44e3c695c7007ea7012924e | package org.zarroboogs.weibo.widget;
import org.zarroboogs.weibo.R;
import org.zarroboogs.weibo.bean.data.DataItem;
import org.zarroboogs.weibo.bean.data.DataListItem;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Context;
import android.os.Bundle;
import ... | Java | app/src/main/java/org/zarroboogs/weibo/widget/TopTipsView.java | liuxing1992/iBeebo | gpl-3.0 | 7,397 | 331 | codeparrot/github-code |
1a84de0fdf08e6d15a0c34904f19b2d4eae64cce574bc6f26e0e358b68f7ac1e | """CherryPy Benchmark Tool
Usage:
benchmark.py [options]
--null: use a null Request object (to bench the HTTP server only)
--notests: start the server but do not run the tests; this allows
you to check the tested pages with a browser
--help: show this help ... | Python | lib/cherrypy/test/benchmark.py | JonnyWong16/plexpy | gpl-3.0 | 12,563 | 426 | codeparrot/github-code |
6bb6c98035c077c5ac8e73ed2f6bcd584f2d997bb8cbb7f439c520bd121df2b6 | /*******************************************************************************
*
* Copyright (c) 2010-2015 Edans Sandes
*
* This file is part of MASA-Core.
*
* MASA-Core 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... | C++ | masa-serial-1.0.1.1024/libs/masa-core/src/common/io/TeeCellsReader.cpp | edanssandes/MASA-Serial | gpl-3.0 | 2,388 | 95 | codeparrot/github-code |
ec2824fc48ad67df0ba4bf91a06d66afd4305802e75c0bbd5eda7b2f919e2392 | /*
* QEMU PPC PREP hardware System Emulator
*
* Copyright (c) 2003-2007 Jocelyn Mayer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitatio... | C | qemu/hw/ppc/prep.c | SurajAnil/KernelVirtualMachine | gpl-3.0 | 20,385 | 681 | codeparrot/github-code |
2cb876ac26866f984327fed6aa0f0ade592438b60721bee80336c9a41ec0d9f4 | /*
Copyright (C) 2014-2015 de4dot@gmail.com
This file is part of dnSpy
dnSpy 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 late... | C# | ILSpy/AsmEditor/DnlibDialogs/DeclSecuritiesControl.xaml.cs | jorik041/dnSpy | gpl-3.0 | 1,315 | 44 | codeparrot/github-code |
8cbe53a6ebd68d03a8f0a027169364a7c81bb8bdcfc506e0267a48c6988566a1 | /* This file is part of Clementine.
Copyright 2012, David Sansome <me@davidsansome.com>
Clementine 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 optio... | C++ | src/ui/appearancesettingspage.cpp | Team-NullPointer/Clementine | gpl-3.0 | 11,943 | 322 | codeparrot/github-code |
2e6dda57a0e21886980a2d7047f03fdd50f0a97b04a4cd226c023eaf7f4b47f4 | /**
* This class was created by <Vazkii>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under the
* Botania License: http://botaniamod.net/license.php
*
* File Created @ [Jun 27, 2015, 7:48:47 PM (GM... | Java | src/main/java/vazkii/botania/api/lexicon/multiblock/IMultiblockRenderHook.java | Tombenpotter/Icarus | gpl-3.0 | 1,027 | 33 | codeparrot/github-code |
0ee62df5db2a9dc485f9ffe75b94bd34c15b01d6056fe73639ea916b8918a4ed | /*
Copyright (C) 2011-2015 de4dot@gmail.com
This file is part of de4dot.
de4dot 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... | C# | de4dot.code/deobfuscators/Eazfuscator_NET/DynocodeService.cs | CreateAndInject/de4dot | gpl-3.0 | 4,371 | 150 | codeparrot/github-code |
41877d576ba5deed8251e6bdd1dad5fc43e5bdcce4a80a93e4bf73207e8d6f2e | /**
* Aptana Studio
* Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
* Please see the license.html included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
... | Java | plugins/com.aptana.git.ui/src/com/aptana/git/ui/actions/DeleteRemoteItem.java | HossainKhademian/Studio3 | gpl-3.0 | 2,347 | 89 | codeparrot/github-code |
80482850b834a11aad9857074c6382918bf0c072b918f27a35d3d0b00ff844bd | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | Python | openerp/addons/hr_attendance/wizard/hr_attendance_error.py | mrshelly/openerp71313 | agpl-3.0 | 2,918 | 70 | codeparrot/github-code |
97053c99ba40bbd4150b62035518e475c6cdd81de82dff804bbdff24f0e9d8ae | class UsersController < ApplicationController
after_action :track_referrer, only: :show
skip_before_action :require_registration, only: [:edit, :update]
def new
return redirect_to(destination_url) if signed_in?
return redirect_to(new_session_url) if oauth.blank?
@user = User.for_omniauth(oauth)
en... | Ruby | app/controllers/users_controller.rb | frootloops/coderwall | agpl-3.0 | 9,055 | 308 | codeparrot/github-code |
ee0b9fbdccefa5fd61cbcfafcaf35b13d513ffa8cd86038bbc0ce73f9d512f00 | """
Mixin to support editing in Studio.
"""
from xmodule.x_module import AUTHOR_VIEW, STUDENT_VIEW, module_attr
class StudioEditableBlock(object):
"""
Helper methods for supporting Studio editing of XBlocks.
This class is only intended to be used with an XBlock!
"""
has_author_view = True
de... | Python | common/lib/xmodule/xmodule/studio_editable.py | pepeportela/edx-platform | agpl-3.0 | 2,287 | 68 | codeparrot/github-code |
77751b612def2dd74bc52408136e9b55634f14ab3a041d4dd0fea1ab8495fd88 | /*
gs2_vfd.c
Copyright (C) 2013 Sebastian Kuzminsky
Copyright (C) 2009 John Thornton
Copyright (C) 2007, 2008 Stephen Wille Padnos, Thoth Systems, Inc.
Based on a work (test-modbus program, part of libmodbus) which is
Copyright (C) 2001-2005 Stéphane Raimbault <stephane.raimbault@free.fr>
... | C | src/hal/user_comps/gs2_vfd.c | bmwiedemann/linuxcnc-mirror | lgpl-2.1 | 31,147 | 821 | codeparrot/github-code |
4694121a29b7f67c1484c254bf887292eaadb7e99ca93c9e9c733241926e78de | // *
// * Copyright (C) 2005 Roger Johansson : http://www.puzzleframework.com
// *
// * This library is free software; you can redistribute it and/or modify it
// * under the terms of the GNU Lesser General Public License 2.1 or later, as
// * published by the Free Software Foundation. See the included license.txt... | C# | Dependencies/Syntaxbox/SyntaxDocument/Document/Pattern/PatternCollection.cs | BradFuller/pspplayer | lgpl-2.1 | 10,101 | 498 | codeparrot/github-code |
fae4880a4d87299a18a7b552517a79ec14945cbb562220a5e8744aff22063f0a | // @(#)root/mathcore:$Id$
// Authors: Rene Brun, Anna Kreshuk, Eddy Offermann, Fons Rademakers 29/07/95
/*************************************************************************
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
* All rights reserved. ... | C | math/mathcore/inc/TMath.h | bbockelm/root | lgpl-2.1 | 41,060 | 1,402 | codeparrot/github-code |
1304f5dd667e27ea228579d099d795b949359ecfdf55023f44c4d1b58db5aa5a | using System;
using System.Drawing;
using System.Drawing.Design;
using System.Windows.Forms;
using System.Windows.Forms.Design;
namespace Be.Windows.Forms.Design
{
/// <summary>
/// Display only fixed-piched fonts
/// </summary>
internal class HexFontEditor : FontEditor
{
object value;
/// <su... | C# | Dependencies/Be.Windows.Forms.HexBox/Design/HexFontEditor.cs | bin-y/pspplayer | lgpl-2.1 | 1,674 | 71 | codeparrot/github-code |
0cbf34353f6ee2261420ecfbe87421b0548a281bdd58e00d749f256738f37e85 | /****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commer... | C | src/plugins/wmf/mfactivate.h | nezticle/qtmultimedia | lgpl-2.1 | 6,614 | 217 | codeparrot/github-code |
aecc5fd5074d0e0e84908f16ce83299157d1f5a191519cbdc1c06de56ec08a86 | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
* Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
**************... | C++ | src/libpcp_qwt/src/qwt_picker_machine.cpp | prasincs/pcp | lgpl-2.1 | 11,339 | 456 | codeparrot/github-code |
01d1e92b8742ba7667b1db5f4e8f570735cca4e578c77b42b30e517b89335ca4 | /*
* jQuery File Upload User Interface Plugin 6.0.2
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*jslint nomen: true, unparam: true, regexp: true */
/*global window, d... | JavaScript | wa-apps/photos/plugins/publicgallery/js/jquery.fileupload-ui.js | webasyst/webasyst-framework | lgpl-3.0 | 26,056 | 628 | codeparrot/github-code |
32744d00e5f592559e125412b6c14ddfa3b936a8a1e06906fb669d211de81c71 | /*
* Copyright (C) 2005-2011 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco 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 3 of the License, or
... | Java | projects/remote-api/source/test-java/org/alfresco/repo/web/scripts/nodelocator/NodeLocatorWebScriptTest.java | nguyentienlong/community-edition | lgpl-3.0 | 12,822 | 288 | codeparrot/github-code |
436b5e00ace1ea3f466e76335a6603a8b9d7e20d0199355269a1289ddb556226 | /*
* 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-bean/src/main/java/org/apache/camel/component/bean/BeanHelper.java | DariusX/camel | apache-2.0 | 4,614 | 137 | codeparrot/github-code |
7cdb2d6e78c66797b9087ef282ab45bb2e1b12f334a8536c90d65de967d5d87e | /*
* 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 | eagle-core/eagle-machinelearning/eagle-machinelearning-base/src/main/java/org/apache/eagle/ml/model/MLAlgorithm.java | eBay/Eagle | apache-2.0 | 1,721 | 61 | codeparrot/github-code |
1ff5fddd4e4b57a5758e03d6d6e71ed6fc4e8b8d9994bd6c5cbc3ffc2fee232b | // Copyright 2010-2014 Google
// 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 wri... | C++ | src/linear_solver/glpk_interface.cc | capturePointer/or-tools | apache-2.0 | 35,222 | 994 | codeparrot/github-code |
8fda777701b77fc8eccf35b26b215e6d91e25c04e9683587bae314a6b344deb3 | $("#SaveButton").click(function () {
function request(model) {
const url = "/dashboard/account/email-templates";
const data = JSON.stringify(model);
return window.getAjaxRequest(url, "POST", data);
};
function getModel() {
const editor = window.ace.edit("editor");
co... | JavaScript | src/Frapid.Web/Areas/Frapid.Account/scripts/email-template/editor.js | mban94/frapid | apache-2.0 | 1,211 | 47 | codeparrot/github-code |
ef498895554fd930b5bf78ee4e46ddfcba003821322ee4c3f9946614388ab1a4 | /*====================================================================*
- Copyright (C) 2001 Leptonica. All rights reserved.
- This software is distributed in the hope that it will be
- useful, but with NO WARRANTY OF ANY KIND.
- No author or distributor accepts responsibility to anyone for the
- consequence... | C | tess-two/jni/com_googlecode_leptonica_android/src/prog/cornertest.c | dominhhai/AndroidOCR | apache-2.0 | 2,713 | 94 | codeparrot/github-code |
85e0bed6a6464921341b057002e2f38a86e1b8f927807276a0a8d471501446be | /*
* 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 ... | Java | geode-core/src/main/java/org/apache/geode/management/internal/configuration/messages/SharedConfigurationStatusResponse.java | masaki-yamakawa/geode | apache-2.0 | 2,386 | 68 | codeparrot/github-code |
86966d4ceeb9423e94c6f2603de8579d6ab4b941c476ee555298a0070e468062 | // Copyright (C) 2013 The Android Open Source Project
//
// 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 | gerrit-server/src/main/java/com/google/gerrit/server/group/GetDescription.java | Team-OctOS/host_gerrit | apache-2.0 | 1,266 | 34 | codeparrot/github-code |
ab3bb87bf2d81a7ca926215b541a1a1e5180235ed45d4325dac04af068dbdc36 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Java | kie-server-parent/kie-server-api/src/main/java/org/kie/server/api/model/cases/CaseStage.java | droolsjbpm/droolsjbpm-integration | apache-2.0 | 3,427 | 134 | codeparrot/github-code |
6de6a3f87928b673dc5534e04b5ed13c735c14d188144ac42656ffd4ee0756cc | #
# 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/client/cli/cron.py | apache/aurora | apache-2.0 | 5,179 | 168 | codeparrot/github-code |
8515299a2e0b929d56f1108f01aa5310df1e80e6c9872775d33103f2cfb129ab | /**
* Copyright 2014 Nikita Koksharov, Nickolay Borbit
*
* 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... | Java | src/main/java/org/redisson/RedissonScoredSortedSet.java | xiexingguang/redisson | apache-2.0 | 11,315 | 323 | codeparrot/github-code |
a31f27bd34c96c739801bd20560d8606bf3f12621dca8fcbfbed90bcb0d04827 | #region CopyrightHeader
//
// Copyright by 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.txt
//
// Unless requ... | C# | mdws/src/svc/eRegService.cs | SeeCode/mdws | apache-2.0 | 4,755 | 125 | codeparrot/github-code |
68eae2099dd7d3c368a3787e1019c28ccc0d3199afc40cfd76d98a90997871a2 |
package org.dcm4chee.xds.common.infoset;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for RegistryPackageQueryType complex type.
*
* <p>The following schema fragment specifies the expected content ... | Java | dcm4chee-xds/tags/DCM4CHEE_XDS_0_0_3/dcm4chee-xds-common/src/main/java/org/dcm4chee/xds/common/infoset/RegistryPackageQueryType.java | medicayun/medicayundicom | apache-2.0 | 854 | 33 | codeparrot/github-code |
7ba7091a5d1b55b47b7d9bbcfbc52735043ef9b9cf33143377afb8b4007bc8ac | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | platform/platform-api/src/com/intellij/openapi/wm/IdeFocusManager.java | hurricup/intellij-community | apache-2.0 | 8,105 | 238 | codeparrot/github-code |
39262e0563637c2a97c8baa9d8e345499f569343e1b1506a63e5223b56c2c48e | /*
Copyright 2014 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | GO | pkg/controller/node/nodecontroller.go | megastef/kubernetes | apache-2.0 | 35,368 | 884 | codeparrot/github-code |
3e2f9b8fb4517ff22354ee49b716b385c940911a14f3f0f225143082aa7cfacc | /**
*
*/
package com.perforce.p4java.option.server;
import java.util.List;
import com.perforce.p4java.exception.OptionsException;
import com.perforce.p4java.option.Options;
import com.perforce.p4java.server.IServer;
/**
* Simple options for the IOptionsServer.getDepotFiles method.
*/
public class GetDepotFilesO... | Java | p4java/src/main/java/com/perforce/p4java/option/server/GetDepotFilesOptions.java | groboclown/p4ic4idea | apache-2.0 | 2,833 | 109 | codeparrot/github-code |
6801e6a6d0d92c649b206ef03d42734744b264ffa94c09d9bbb2375ba5c0aea4 | // ExtractGUI.cpp
#include "StdAfx.h"
#include "Common/IntToString.h"
#include "Common/StringConvert.h"
#include "Windows/Error.h"
#include "Windows/FileDir.h"
#include "Windows/FileFind.h"
#include "Windows/Thread.h"
#include "../FileManager/ExtractCallback.h"
#include "../FileManager/FormatUtils.h"
#include "../F... | C++ | jni/CPP/7zip/UI/GUI/ExtractGUI.cpp | Nathaniel1990/Amendroid7z | apache-2.0 | 5,810 | 213 | codeparrot/github-code |
6c4498105597b324af119b22c572e7c654521a02b1aed14212a47da1a3fc9b47 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Blob;
using NuGetGallery.Operations.Common;
namespace NuGetGallery.Operations
{
[Command("checkblob... | C# | src/NuGetGallery.Operations/Tasks/CheckBlobCopiesTask.cs | ScottShingler/NuGetGallery | apache-2.0 | 2,674 | 73 | codeparrot/github-code |
d9a462215226c2e4c94c46c7ef6c3655666dca002358e5b4d4c9f1e7e6a5377c | /**
* Copyright 2015-2016 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/licenses/LICENSE-2.0
*
* Unless require... | Java | core/spi/src/main/java/org/wildfly/swarm/spi/api/DefaultDeploymentFactory.java | emag/wildfly-swarm | apache-2.0 | 4,267 | 133 | codeparrot/github-code |
91c4712e2fbd4791f9b2ef32315c64d912032cc7706be51d3d755d3e9032659b | /*
* 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 | presto166/presto-main/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RemoveRedundantIdentityProjections.java | marsorp/blog | apache-2.0 | 1,913 | 54 | codeparrot/github-code |
38ecdbc733696dc0a18249d761d145faca756602bad4637f134a35062cd728bb | /**
* 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 | integration_test/src/java/org/apache/heron/integration_test/topology/windowing/count/TumblingCountWindowTest1.java | mycFelix/heron | apache-2.0 | 1,463 | 40 | codeparrot/github-code |
366ed5ff4c5649857cd57b6db8e105dcfb1187fd83fef8d22c63a69ed968ab6e | package epic.parser
package projections
import epic.constraints.ChartConstraints
/*
Copyright 2012 David Hall
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/LI... | Scala | src/main/scala/epic/parser/projections/ProjectingCoreGrammar.scala | maxim-rabinovich/epic | apache-2.0 | 1,251 | 50 | codeparrot/github-code |
9a05a2c4082f4ecd1b67aa2546a1c44ca2e36904d560f8c478026d30d2934228 | // Copyright (c) 2013 Jython Developers
package org.python.core;
import org.python.core.buffer.BaseBuffer;
import org.python.core.buffer.SimpleStringBuffer;
import org.python.core.util.StringUtil;
import org.python.expose.ExposedMethod;
import org.python.expose.ExposedNew;
import org.python.expose.ExposedType;
import ... | Java | jyhton/src/org/python/core/Py2kBuffer.java | phalax4/CarnotKE | apache-2.0 | 25,618 | 667 | codeparrot/github-code |
2c8f9a30ceced1ef72c5354ba1fa5b54de81297764d666aa75dcc7432217c931 | package com.hubspot.singularity.logwatcher;
import java.util.List;
import com.google.common.collect.Lists;
import com.google.inject.Module;
import com.hubspot.singularity.logwatcher.config.SingularityLogWatcherConfiguration;
import com.hubspot.singularity.logwatcher.config.SingularityLogWatcherModule;
import com.hubs... | Java | SingularityLogWatcher/src/main/java/com/hubspot/singularity/logwatcher/SingularityLogWatcherRunner.java | tejasmanohar/Singularity | apache-2.0 | 1,605 | 44 | codeparrot/github-code |
e378e17518a5043164259f0115a1dcb762418f96bd0b8f4a13bea0177cbd15ca | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
... | C# | src/Features/Core/Portable/UseObjectInitializer/AbstractUseObjectInitializerCodeFixProvider.cs | tmeschter/roslyn | apache-2.0 | 6,365 | 128 | codeparrot/github-code |
1171b5b6e906d23a85f3866a80a475beded292f607b92a7a88b7ad61baaf4ebe | #include <time.h>
#include <conio.h>
#include "bb/bba.h"
#include "thread_if.h"
#include "monitor.h"
#include "crc32.h"
#include "appext.h"
#include "thread_func.h"
#define INPUTBUF_SIZE (_M(16))
#define FrameBufferSize (_M(1))
static SORA_RADIO_RX_STREAM RxStream;
static BB11A_RX_CONTEXT RxContext;
... | C | kernel/bb/UMXDot11/dot11arx.c | hightoon/Sora | bsd-2-clause | 4,064 | 159 | codeparrot/github-code |
e7948cdf6c45582739204a0e9a80dc1eb4873819fc4df002bcdb911c4dda1df0 | // Copyright (c) 2015, Outercurve Foundation.
// 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
// ... | C# | WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Common/IPAddress.cs | ExpertServices/Websitepanel | bsd-3-clause | 9,430 | 239 | codeparrot/github-code |
9ba37da30ead4fad84addba22f9a457de7caa3ea6c3b00cae30136de7ce04689 | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | C++ | third_party/llvm-project/libcxx/test/std/containers/associative/multimap/multimap.cons/default_noexcept.pass.cpp | youtube/cobalt | bsd-3-clause | 1,712 | 59 | codeparrot/github-code |
4d870d1476121bd3de5a69314b0da11824c33d6a0dbda0dbd3af501db1d25b51 | // 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 "net/curvecp/client_packetizer.h"
#include "base/bind.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/base... | C++ | net/curvecp/client_packetizer.cc | rogerwang/chromium | bsd-3-clause | 10,968 | 391 | codeparrot/github-code |
70556e80392761eb44ab6a819e4e8fbb3f0bab40c047dadb6decddbccbbd9201 | // ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2016, Knut Reinert, FU Berlin
// All rights reserved.
//
// Redistribution and us... | C | statisticslibsvm/seqan-library-2.2.0/include/seqan/align/global_alignment_unbanded.h | AngelinaScheck/BachelorBioinfo | bsd-3-clause | 44,218 | 842 | codeparrot/github-code |
44707c3482e69a661b749215520b19dbf1ca03fee1eb55e166d5b2d901cc0eae | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_FEATURE_ENGAGEMENT_INTERNAL_AVAILABILITY_MODEL_IMPL_H_
#define COMPONENTS_FEATURE_ENGAGEMENT_INTERNAL_AVAILABILITY_MODEL_IMPL_H_
#incl... | C | components/feature_engagement/internal/availability_model_impl.h | scheib/chromium | bsd-3-clause | 2,405 | 71 | codeparrot/github-code |
6eda42a088324d8c34e0ed1adc8852bf612672488ef451000447ab25828ef9f6 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/settings/owner_flags_storage.h"
#include "base/command_line.h"
#include "base/prefs/pref_service.h"
#include "base/valu... | C++ | chrome/browser/chromeos/settings/owner_flags_storage.cc | js0701/chromium-crosswalk | bsd-3-clause | 2,646 | 74 | codeparrot/github-code |
d0c95fa8b37fbbb0235941e304a28b8596106d2fedbd3e6feb859fe37fc76169 | from __future__ import division, print_function, unicode_literals
# This code is so you can run the samples without installing the package
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../..'))
# stdlib
import copy
import random
# pyglet related
import pyglet
from pyglet.window imp... | Python | samples/tetrico/gamectrl.py | Alwnikrotikz/los-cocos | bsd-3-clause | 2,744 | 107 | codeparrot/github-code |
ea4382bf1f83be210dbdbed3f23cca8b808a99cc0172280b79a4b58dc0f879e6 | import unittest
import numpy as np
import pydrake
from pydrake.solvers import ik
import os.path
class TestRBTIK(unittest.TestCase):
def testPostureConstraint(self):
r = pydrake.rbtree.RigidBodyTree(os.path.join(pydrake.getDrakePath(), "examples/Pendulum/Pendulum.urdf"))
q = -0.9
posture_con... | Python | drake/bindings/python/pydrake/test/testRBTIK.py | billhoffman/drake | bsd-3-clause | 1,165 | 31 | codeparrot/github-code |
c67eef71f78125429c9c433ba69345ff78f2dfc4e3b19f8d9f26c48da9a7d472 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_PLUGINS_PLUGIN_METADATA_H_
#define CHROME_BROWSER_PLUGINS_PLUGIN_METADATA_H_
#include <map>
#include <memory>
#include <string... | C | chromium/chrome/browser/plugins/plugin_metadata.h | ric2b/Vivaldi-browser | bsd-3-clause | 4,523 | 128 | codeparrot/github-code |
e71b6f2a9fc1aec265aafaf1de31a2f354cdc8fc832583b9fa88ca0b8c896201 | var utils = require('../../lib/utils');
var assert = require('assert');
var JsFile = require('../../lib/js-file');
var esprima = require('esprima');
var path = require('path');
describe('utils', function() {
function createJsFile(source) {
return new JsFile({
filename: 'example.js',
... | JavaScript | test/specs/utils.js | irnc/node-jscs | mit | 6,278 | 158 | codeparrot/github-code |
939ad62129a1f7a5bf8d1bcda43bedc44e5cafb2f0a430a4adfcd2eb798cf976 |
/********************
* HTML CSS
*/
.chartWrap {
margin: 0;
padding: 0;
overflow: hidden;
}
/********************
Box shadow and border radius styling
*/
.nvtooltip.with-3d-shadow, .with-3d-shadow .nvtooltip {
-moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
-webkit-box-shadow: 0 5px 10px ... | CSS | web/assetsE/plugins/nvd3/src/nv.d3.css | hamid06/LIMS | mit | 13,603 | 769 | codeparrot/github-code |
eb0928348db620fcfea0a58c6d7555cef0ced338da839ccb1af4fc888020afb3 | # -*-coding:utf-8 -*-
'''
dac的@indicator版本
提供更简单的使用方式和实现方式
'''
import operator
from collections import (
deque,
)
from .base import (
BaseObject,
fcustom,
indicator,
icache,
t2order_if,
)
from .dac import (
XBASE, #100
... | Python | example/pyctp/dac2.py | blmousee/pyctp | mit | 20,000 | 733 | codeparrot/github-code |
6cedd3528a34558e6d5f34e925142e1f8192128c2cc270800a7b37abbb43a1a5 | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtWidgets module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid comm... | C | qrenderdoc/3rdparty/qt/include/QtWidgets/5.9.4/QtWidgets/private/qsidebar_p.h | etnlGD/renderdoc | mit | 5,329 | 164 | codeparrot/github-code |
03522fb796299dfd90f9245a0c9f647e8a28e773918577dce3708d6f9f49a57c | {% extends 'base/base.html' %}
{% block title %} {{ object.name }} {% endblock %}
{% load static %}
{% block script %}
<!-- Latest compiled and minified JavaScript -->
{% endblock %}
{% block body %}
{% include 'base/nav-bar.html' %}
<div id="wrap">
<div id="main">
<!-- content goes ... | HTML | clubManagement/templates/clubManagement/team_detail.html | akshayharidas/fosswebsite | mit | 6,526 | 156 | codeparrot/github-code |
76361ada00da256cd3744fdc2fb6b1e51d2082ecfc8721d11d7e1e6530276f97 | using System;
using SharpCompress.Common.Rar.Headers;
namespace SharpCompress.Common.Rar
{
public abstract class RarEntry : Entry
{
internal abstract FileHeader FileHeader { get; }
/// <summary>
/// The File's 32 bit CRC Hash
/// </summary>
public override ... | C# | SharpCompress/Common/Rar/RarEntry.cs | Wagnerp/sharpcompress | mit | 2,530 | 85 | codeparrot/github-code |
6a82d082fcfbf8f68446100dcb410bb42cdfefc2eca6be367392bbd0b8d47bff | /*
FreeRTOS V8.2.3 - Copyright (C) 2015 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the... | C | firmware/freertos/semaphore/lib/FreeRTOSV8.2.3/FreeRTOS-Plus/Demo/FreeRTOS_Plus_UDP_and_CLI_LPC1830_GCC/Examples/USB_CDC/CDCCommandConsole.c | PUCSIE-embedded-course/stm32f4-examples | mit | 12,764 | 344 | codeparrot/github-code |
cceeb755446365e9d582c43d6940ae61aa8a61ed93b50cd97366124f481de23a | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package auth
import (
"net/http"
"reflect"
"strings"
"github.com/Unknwon/com"
"github.com/Unknwon/macaron"
"github.com/macaron-contrib/binding"
"gith... | GO | modules/auth/auth.go | metadevfoundation/gogs | mit | 5,724 | 235 | codeparrot/github-code |
e02cee15f84fa251b112d0c5decaac28286f492ace6b2974bb32ad4b2a4cad0f | #*****************************************************************************
# Copyright 2004-2008 Steve Menard
#
# 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... | Python | win/Lib/site-packages/jpype/_jpackage.py | ktan2020/legacy-automation | mit | 1,988 | 54 | codeparrot/github-code |
30cd026c81cd16c394285532fb8a233e404e3efb213a9bc6f13952679fb3d671 | var request = require('supertest');
var app = require('../../app');
var support = require('../support/support');
describe('test/controllers/message.test.js', function () {
before(function (done) {
support.ready(done);
});
describe('index', function () {
it('should 403 without session', function (done) {... | JavaScript | test/controllers/message.test.js | zaiyu-dev/club | mit | 827 | 31 | codeparrot/github-code |
d5f974bdd1dc8a3682e0a97ddbc3755049e942091234f01325fbc878e27d1622 | //******************************************************************************
//
// Copyright (c) 2016 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | C | include/UIKit/NSString+UIKitAdditions.h | yweijiang/WinObjC | mit | 3,600 | 76 | codeparrot/github-code |
1f0ad983831cb9f9c09b86bdae8a180510a9e85d81a52ae68f7fdf34dbe634a1 | /**
* Copyright (c) 2014-2017 by the respective copyright holders.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
pa... | Java | extensions/extensionservice/org.eclipse.smarthome.extensionservice.marketplace.test/src/test/java/org/eclipse/smarthome/extensionservice/marketplace/internal/MarketplaceExtensionServiceTest.java | philomatic/smarthome | epl-1.0 | 3,610 | 111 | codeparrot/github-code |
4df70b6be77588cec9867b005bdbad97d96b571ed485976ae60f41d7dcf6082d | /**
* Copyright (c) 2014,2019 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is av... | Java | bundles/core/org.eclipse.smarthome.core/src/main/java/org/eclipse/smarthome/core/internal/events/EventHandler.java | Snickermicker/smarthome | epl-1.0 | 6,058 | 147 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.