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 |
|---|---|---|---|---|---|---|---|---|
38afa1529ab413f08dbd5080bd4a9aab3ea26c7e93203b4467ff2b0551e588da | /**
* Vosao CMS. Simple CMS for Google App Engine.
*
* Copyright (C) 2009-2010 Vosao development team.
*
* 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 t... | Java | api/src/org/vosao/entity/PluginResourceEntity.java | vosaocms/vosao | lgpl-2.1 | 2,280 | 89 | codeparrot/github-code |
63b488d3c3c724e1ecd8e689b1bcd2b002fd410dc25aa6db4eb9136487a42a89 | /**
* Copyright (C) 2014-2015 LinkedIn Corp. (pinot-core@linkedin.com)
*
* 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
*
* Unle... | Java | pinot-common/src/main/java/com/linkedin/pinot/common/exception/QueryException.java | fjy/pinot | apache-2.0 | 3,870 | 72 | codeparrot/github-code |
7f19fdcbff0df0162ca44b8a1436b318b01c98c031dd7d81bace98ec969008b4 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | Java | hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDataNodePeerMetrics.java | GeLiXin/hadoop | apache-2.0 | 3,517 | 93 | codeparrot/github-code |
285460b69977624875193ef46e01f3570fabc7abede5e974e12f5c046cc03d25 | /*
* Copyright 2008-2012 NVIDIA 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 applicable... | C | thrust/system/cpp/detail/copy_if.h | Vishwa07/thrust | apache-2.0 | 1,446 | 54 | codeparrot/github-code |
52cfc5358b5ba46ff211c1149d0e6c78567d8ed7b2c994d29397c234b89c3e7d | /*
* Copyright (C) 2007 Kevin Ollivier 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. Redistributions of source code must retain the above copyright
* notice, this list of conditi... | C++ | webkit/Source/WebKit/wx/WebFrame.cpp | mogoweb/webkit_for_android5.1 | apache-2.0 | 13,834 | 497 | codeparrot/github-code |
f9bb548c56bf244e152379ba726c6ac9274a82bebd57c6a83322fc6897344696 | /* 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/protobuf_util.h | kobejean/tensorflow | apache-2.0 | 2,087 | 50 | codeparrot/github-code |
721fc09b10cf03bbaadbe143959640f37bc4fa928b49d199cc29114a8922a736 | /*
Copyright 2019 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | GO | pkg/kubelet/cm/topologymanager/policy.go | deads2k/kubernetes | apache-2.0 | 12,291 | 326 | codeparrot/github-code |
df7511b6e6f830ebe977daccdaf0251447ae107ba46fd41978f1d452db5c8735 | package controllers
import java.util.concurrent._
import javax.inject.{Singleton, Inject}
import play.api.mvc._
import play.mvc.Http
import play.api.libs.json.Json
import models._
import scala.concurrent.{Future, ExecutionContext}
@Singleton()
class Application @Inject() (fortunesDAO: FortunesDAO, worldDAO: WorldDAO,... | Scala | frameworks/Scala/play2-scala/play2-scala-slick/app/controllers/Application.scala | saturday06/FrameworkBenchmarks | bsd-3-clause | 2,299 | 87 | codeparrot/github-code |
1537c52dce5486ff2b81a1087c5004a5d2b0f67bec077b585e045655a70aafe8 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_CONSTANTS_H_
#define IOS_CHROME_COMMON_APP_GROUP_APP_GROUP_CONSTANTS_H_
#import <Foundation/Foundation.h>
... | C | ios/chrome/common/app_group/app_group_constants.h | hujiajie/chromium-crosswalk | bsd-3-clause | 3,298 | 86 | codeparrot/github-code |
25c170d87d932fac68ac1779b1eef4a05fcf9c2a5e62013984de08a1f4e1684b | /* +++Date last modified: 05-Jul-1997 */
/*
** BITFILES.C - reading/writing bit files
**
** Public domain by Aare Tali
*/
#include <stdlib.h>
#include "bitops.h"
bfile *bfopen(char *name, char *mode)
{
bfile * bf;
bf = malloc(sizeof(bfile));
if (NULL == bf)
return NULL;
bf->fil... | C | xcc/test/mediabench4/bitcount/src/bitfiles.c | JianpingZeng/xcc | bsd-3-clause | 2,758 | 138 | codeparrot/github-code |
328eb64231c7c0baa91b4be1177426ead3396b2c92a894221a2fac06255bef79 | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | C | Engine/source/gfx/gfxVertexTypes.h | elfprince13/Torque3D | mit | 3,981 | 180 | codeparrot/github-code |
778cd370b74057c58e4e64bddaab6b78c73837dd3b465470c685e70da68616a4 | Clazz.declarePackage ("JM.FF");
Clazz.load (["JM.FF.Calculation"], "JM.FF.UFFTorsionCalc", ["JM.Util"], function () {
c$ = Clazz.declareType (JM.FF, "UFFTorsionCalc", JM.FF.Calculation);
Clazz.defineMethod (c$, "setData",
function (calc, t) {
var cosNPhi0 = -1;
var n = 0;
var V = 0;
this.a = this.calcs.minAtom... | JavaScript | rna_tools/tools/webserver-engine/app/static/app/jsmol/j2s/JM/FF/UFFTorsionCalc.js | m4rx9/rna-pdb-tools | mit | 2,448 | 99 | codeparrot/github-code |
2fcd2d22b1f30555e785105597cd8f57ed50300e213c4f1bbca6ae149f782c38 | // The main type definitions. Packages that do not want to pollute the global
// scope with Trusted Types (e.g. libraries whose users may not be using Trusted
// Types) can import the types directly from 'trusted-types/lib'.
export type FnNames = keyof TrustedTypePolicyOptions;
export type Args<Options extends Trusted... | TypeScript | types/trusted-types/lib/index.d.ts | markogresak/DefinitelyTyped | mit | 3,005 | 65 | codeparrot/github-code |
bbc3d1e3cd73bd4d6a720f636bed348beddabec1f4aca6b38eb8d20739445396 | var Checker = require('../../../lib/checker');
var assert = require('assert');
describe('rules/require-matching-function-name', function() {
var checker;
beforeEach(function() {
checker = new Checker();
checker.registerDefaultRules();
});
describe('option value true', function() {
... | JavaScript | test/specs/rules/require-matching-function-name.js | ronkorving/node-jscs | mit | 4,565 | 109 | codeparrot/github-code |
a4889c6cd2a8f45ce882393b56d0bc821cd1fa7bd3f33e1873bcaf394ee948c0 | #include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/fs.h>
#include <linux/file.h>
#include <linux/sem.h>
#include <linux/msg.h>
#include <linux/mm.h>
#include <linux/shm.h>
#include <linux/slab.h>
#include <linux/ipc.h>
#include <asm/mman.h>
#include <asm/types.h>
#include <asm/uaccess.h>
#include <asm... | C | linux-2.4.x/arch/x86_64/ia32/ipc32.c | sensysnetworks/uClinux | gpl-2.0 | 18,919 | 693 | codeparrot/github-code |
30b202c9d617afc1d4afc37817b97e39ff821e2d2c31544cf636109950ded248 | // -*- C++ -*-
// Testing utilities for the tr1 testsuite.
//
// Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public... | C | uefi/gcc/gcc-4.6.3/libstdc++-v3/testsuite/util/testsuite_tr1.h | SanDisk-Open-Source/SSD_Dashboard | gpl-2.0 | 6,757 | 289 | codeparrot/github-code |
5bd67296f3bc503a6ccb5b69f0770e2eb08511982dd630096114f1733a2aad08 | /* Definitions for rtems targeting a SPARC using ELF.
Copyright (C) 1996-2016 Free Software Foundation, Inc.
Contributed by Joel Sherrill (joel@OARcorp.com).
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by... | C | source/gcc-latest/gcc/config/sparc/rtemself.h | selmentdev/selment-toolchain | gpl-3.0 | 1,098 | 34 | codeparrot/github-code |
277a78d80a27aa1cf207226df705705714a93966f16a93f74190fc7dc513f0ee | """Printing subsystem driver
SymPy's printing system works the following way: Any expression can be
passed to a designated Printer who then is responsible to return an
adequate representation of that expression.
The basic concept is the following:
1. Let the object print itself if it knows how.
2. Take the best f... | Python | sympy/printing/printer.py | NikNitro/Python-iBeacon-Scan | gpl-3.0 | 9,328 | 271 | codeparrot/github-code |
6f5e877525b0d9a166fa93a36a7ed89e1f0a0ffb544d08f548c3db27e675f3c2 | /* Functions shipped in the ppc64 and x86_64 version of libgcc_s.1.dylib
in older Mac OS X versions, preserved for backwards compatibility.
Copyright (C) 2006-2016 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU G... | C | source/gcc-latest/libgcc/config/darwin-64.c | selmentdev/selment-toolchain | gpl-3.0 | 2,923 | 73 | codeparrot/github-code |
3c610d3eabe9c3a694304d561e01e9ef887269cb929f6fb9378b691ccb31a0fc | /* GIMP - The GNU Image Manipulation Program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (... | C | app/core/gimpimage-convert-fsdither.h | mardy/gimb | gpl-3.0 | 32,733 | 560 | codeparrot/github-code |
8ec235e5c626ab4f9bcd9789956193651a18c6036259262db5408c5e6daae7fc | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Animated Kunai
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
functio... | Lua | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Kunai.lua | n0xus/darkstar | gpl-3.0 | 1,477 | 63 | codeparrot/github-code |
d1b7b8b766ea5a9b3e4872bf1f282314b1cb4470fe88878d0e293a184c18b298 | /**
* Copyright © 2002 Instituto Superior Técnico
*
* This file is part of FenixEdu Academic.
*
* FenixEdu Academic 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... | Java | src/main/java/org/fenixedu/academic/domain/accessControl/PersistentStudentSharingDegreeOfCompetenceOfExecutionCourseGroup.java | JNPA/fenixedu-academic | lgpl-3.0 | 1,782 | 41 | codeparrot/github-code |
f06637f5ff473c41f4b4dac0d88aab94cdbb8fcb0122368724d7f8847b0d2d1d | require 'pg'
require 'pg/logical_replication'
class MiqPglogical
include Vmdb::Logging
PUBLICATION_NAME = 'miq'.freeze
ALWAYS_EXCLUDED_TABLES = %w(ar_internal_metadata schema_migrations repl_events repl_monitor repl_nodes).freeze
def initialize
@pg_connection = ApplicationRecord.connection.raw_connection... | Ruby | lib/miq_pglogical.rb | aufi/manageiq | apache-2.0 | 1,923 | 77 | codeparrot/github-code |
c5f4c9479b1acfaf979b4647e5281d5e055741b3de0160e4442482aeebbbd3d1 | /*
* Copyright 2010 JBoss 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 i... | Java | drools-core/src/main/java/org/drools/core/util/debug/AbstractNetworkNodeVisitor.java | amckee23/drools | apache-2.0 | 1,476 | 47 | codeparrot/github-code |
a7991f73f3724550107523f036438d2774cc19c771d3ce8fe603ac10ed4aaa0b | """Denon HEOS Media Player."""
from functools import reduce, wraps
import logging
from operator import ior
from typing import Sequence
from pyheos import HeosError, const as heos_const
from homeassistant.components.media_player import MediaPlayerEntity
from homeassistant.components.media_player.const import (
ATT... | Python | homeassistant/components/heos/media_player.py | tchellomello/home-assistant | apache-2.0 | 12,782 | 385 | codeparrot/github-code |
999f396ca36aafebe9cf485ab791ddd06df4d72d0dd0ce2ab9ef74d6000c7681 | /**
* Copyright (c) 2015 - 2017, Nordic Semiconductor ASA
*
* 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. Redistributions of source code must retain the above copyright notice,... | C | bsp/nrf52832/nRF5_SDK_13.0.0_04a0bfd/components/ant/ant_encryption/ant_encrypt_config.c | igou/rt-thread | apache-2.0 | 8,751 | 240 | codeparrot/github-code |
caf8e38d0a0d772fb5af70eaa903daab1d06468870d94d5d6eb999eeb81d561b | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Scala | sql/core/src/main/scala/org/apache/spark/sql/execution/arrow/ArrowWriter.scala | michalsenkyr/spark | apache-2.0 | 10,086 | 345 | codeparrot/github-code |
15584d07bc5a6ce3f6fcc2ea06f2091f606fc9eb5a4638d8196d8f16adc0aa3e | /*
* Copyright 2011-2012 WSO2, Inc. (http://wso2.com)
*
* 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 | modules/samples/product/Jaxws-Jaxrs/handlers_jaxws/src/main/java/demo/handlers/client/Client.java | thusithathilina/product-as | apache-2.0 | 3,073 | 89 | codeparrot/github-code |
c022dfbd10a397af25bd6ad16df51c1f9aef368ddb79eacff9ae83d728381004 | /****************************************************************************
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation... | JavaScript | web/frameworks/cocos2d-html5/extensions/ccui/uiwidgets/UIButton.js | uldall/DartCocos2dTest | bsd-3-clause | 35,505 | 988 | codeparrot/github-code |
a63835fdc4cf328e0ecf921d60eda8b88dbce1ade5bd47624f8604979a3a2799 | # This is a helper for the win32trace module
# If imported from a normal Python program, it sets up sys.stdout and sys.stderr
# so output goes to the collector.
# If run from the command line, it creates a collector loop.
# Eg:
# C:>start win32traceutil.py (or python.exe win32traceutil.py)
# will start a process wit... | Python | third_party/python_26/Lib/site-packages/win32/lib/win32traceutil.py | leighpauls/k2cro4 | bsd-3-clause | 1,423 | 54 | codeparrot/github-code |
a4c78996462528c9c16855146d5bb14c82f85f81dee0b88456af127497d7b7d3 | <?php
//============================================================+
// File name : tcpdf_parser.php
// Version : 1.0.014
// Begin : 2011-05-23
// Last Update : 2014-02-18
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : http://www.tecnick.com/pagefiles/... | PHP | wp-content/themes/cdsko-theme/x_pdf/tcpdf/tcpdf_parser.php | betoarpi/elearning-cdsk-o | mit | 27,513 | 812 | codeparrot/github-code |
4b3c4d32ea53a2da436c9b0cd4ee26c47e4b20ff323a817da64ffa5ab52e9848 | {% extends "!layout.html" %}
{%- block extrahead %}
{{ super() }}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18486793-1']);
_gaq.push(['_setDomainName', '.fabfile.org']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.... | HTML | docs/source/_templates/layout.html | prologic/kdb | mit | 900 | 34 | codeparrot/github-code |
353beae125833ae4ed9fa42a0fa0b4a44461aa22448d951dd5685da61099fcd4 | import * as fs from 'fs';
import * as path from 'path';
import { stripIndent } from 'common-tags';
const stringUtils = require('ember-cli-string-utils');
const Command = require('../ember-cli/lib/models/command');
const lookupCommand = require('../ember-cli/lib/cli/lookup-command');
function extractOptions(opts: any... | TypeScript | packages/@angular/cli/commands/completion.ts | circplepix-demoapps/flyer-builder | mit | 5,683 | 213 | codeparrot/github-code |
34043474f8b1e6f71b743be06afb47cebf0a123c241ee090458dd7cdc041678a | //------------------------------------------------------------------------------
// <copyright file="HttpResponseInternalWrapper.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
na... | C# | System.Web.Extensions/HttpResponseInternalWrapper.cs | akoeplinger/referencesource | mit | 9,682 | 345 | codeparrot/github-code |
69c95c8de28ce0d738e305717f1db414db6ccf7e2c6fd0c43115736590c13b8f | /*
* Colorwheel
* Copyright (c) 2010 John Weir (http://famedriver.com)
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
*
* requires jQuery & Raphael
* http://jquery.com http://raphaeljs.com
*
* see http://jweir.github.com/colorwheel for Usage
*
*/
Raphael.colorwheel = function(... | JavaScript | webify/js/colorwheel.js | pranav15197/Mswebify | mit | 8,579 | 317 | codeparrot/github-code |
c5e5ddc87d6cd56c8465d81615d989762cf7f0e57bb383f1e6d0d019ab30b6c1 | /*******************************************************************************
* Copyright (c) 2000, 2011 IBM Corporation and others.
* 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, an... | Java | plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/ui/search/JavaMatchFilter.java | dhuebner/che | epl-1.0 | 19,865 | 658 | codeparrot/github-code |
51ea802023e17a2d45a99fe8b51a828292d05c3737c36d43b042ce88bbf797d5 | /*
* linux/arch/arm/kernel/setup.c
*
* Copyright (C) 1995-2001 Russell King
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/module.h>
#include <linux/ker... | C | arch/arm/kernel/setup.c | nobodyAtall/nAa-kernel-ics | gpl-2.0 | 23,234 | 999 | codeparrot/github-code |
ce4b6e8f4c94fdf0f5e8526f06f7514441809efe76510fd853a806085582b445 | <?php
$translations = array(
// label for database system selection (MySQL, SQLite, ...)
'System' => 'Sistem',
'Server' => 'Server',
'Username' => 'Pengguna',
'Password' => 'Sandi',
'Permanent login' => 'Masuk permanen',
'Login' => 'Masuk',
'Logout' => 'Keluar',
'Logged as: %s' => 'Masuk sebagai: %s',
'Logout... | PHP | wp-content/plugins/adminer/inc/adminer/lang/id.inc.php | rinodung/wordpress-demo | gpl-2.0 | 11,645 | 318 | codeparrot/github-code |
0e03c2b6da7ff43d6c6e9d9d3d9996dabbaed1e1b30cf0783f69a12b1b67ab56 | /******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it ... | Java | base/src/org/compiere/db/DBRes_th.java | erpcya/adempierePOS | gpl-2.0 | 3,927 | 64 | codeparrot/github-code |
ab2f45087dfca90c92b1e7fe6fc442b2e572eb7a7810377d6fa309aa31fe95d6 | /* Copyright (c) 2009-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | C | drivers/i2c/busses/i2c-qup.c | StefanescuCristian/hammerhead | gpl-2.0 | 50,441 | 1,863 | codeparrot/github-code |
df6798326e8c1a6a40b26dc7f417c834ef0a132355fbea3386a95a7d83afee02 | /* SPDX-License-Identifier: GPL-2.0-or-later */
/* Hisilicon Hibmc SoC drm driver
*
* Based on the bochs drm driver.
*
* Copyright (c) 2016 Huawei Limited.
*
* Author:
* Rongrong Zou <zourongrong@huawei.com>
* Rongrong Zou <zourongrong@gmail.com>
* Jianhua Li <lijianhua@huawei.com>
*/
#ifndef HIBMC_DRM_DRV_H... | C | drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | koct9i/linux | gpl-2.0 | 2,841 | 107 | codeparrot/github-code |
48562c1921959bed7dfaffb3e03deef12697299cf22d719bf269d0a34309b395 | /***************************************************************************
qgsthreadingutils.h
--------------------------------------
Date : 11.9.2018
Copyright : (C) 2018 by Matthias Kuhn
email ... | C | src/core/qgsthreadingutils.h | rduivenvoorde/QGIS | gpl-2.0 | 4,691 | 125 | codeparrot/github-code |
af47a776eb4258ef3b836b4cbc940df8a4e97d1aafd10c7185e5c52b320b9eb5 | /*
===========================================================================
Doom 3 GPL Source Code
Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 GPL Source Code ("Doom 3 Source Code").
Doom 3 Source Code is free software: you can redistribute it and/or modify
it... | C++ | neo/tools/guied/GEWorkspace.cpp | kphillisjr/DOOM-3-ID | gpl-3.0 | 48,051 | 2,065 | codeparrot/github-code |
fdac676660219350c418a7735f6e90a3912b3d407709e13e719d537837feb6d8 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (c) 2015, René Moser <mail@renemoser.net>
#
# This file is part of Ansible
#
# Ansible 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 Lice... | Python | lib/ansible/modules/extras/cloud/cloudstack/cs_securitygroup_rule.py | garyjyao1/ansible | gpl-3.0 | 14,211 | 429 | codeparrot/github-code |
aa5ab99adc5d8fc09f21c26c613f0545188351c0450c291366fd84fc6863fc1a | # -*- coding: utf-8 -*-
# Copyright 2013 Julien Goret <jgoret@gmail.com>
#
# This file is part of subliminal.
#
# subliminal 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 Licen... | Python | lib/subliminal/services/usub.py | kikokubo/Sick-Beard-TPB | gpl-3.0 | 4,305 | 100 | codeparrot/github-code |
a67ff657af5422228d6b967ca5de9988ab9b656a2f83371d7e52f3eb3d835252 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Ancient Magical Gizmo #3 (G out of E, F, G, H, I, J)
-- Involved In Mission: The Heart of the Matter
-----------------------------------
package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
re... | Lua | scripts/zones/Outer_Horutoto_Ruins/npcs/_5eg.lua | UnknownX7/darkstar | gpl-3.0 | 3,739 | 107 | codeparrot/github-code |
96b632eff09457d40f9726bc70243ff51021434e92cab2095868533f2b722d5e | /*
* RJsonRpc.hpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. Thi... | C++ | src/cpp/r/include/r/RJsonRpc.hpp | jar1karp/rstudio | agpl-3.0 | 1,003 | 43 | codeparrot/github-code |
b4b7c986f06d0a708e7ab3566a1f5293ed690674f7b73c581e39150ff707cd95 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Java | lang/java/reef-checkpoint/src/main/java/org/apache/reef/io/checkpoint/fs/FSCheckpointID.java | markusweimer/incubator-reef | apache-2.0 | 2,121 | 76 | codeparrot/github-code |
a4e56a79de5be597daffb02ed0c803d9c72b22d09202348bf4531ca0ac1a45f3 | /*
* 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 ma... | Java | deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/domain/dto/BooleanWrapper.java | LightGuard/incubator-deltaspike | apache-2.0 | 1,163 | 41 | codeparrot/github-code |
8fd10ddbc90203f34ccf8fa8a0ddf4c9446245eb1cdf5a41b91fe72869e271ab | #include <stdlib.h>
#include <string.h>
#ifndef WIN32
#include "config.h"
#endif
#ifdef ENABLE_NLS
#include <libintl.h>
#endif
#define _ISOC9X_SOURCE 1
#define _ISOC99_SOURCE 1
#define __USE_ISOC99 1
#define __USE_ISOC9X 1
#include <math.h>
#include "ladspa.h"
#ifdef WIN32
#... | C | universal-daw/plugins/LadspaEffect/swh/crossover_dist_1404.c | universalprojectfile/universal-project-file | apache-2.0 | 7,830 | 288 | codeparrot/github-code |
925e8839020092aaeed60ee3139d754a06a1d3abdb9caf60931102b62ea30179 | /*
*
* 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"); y... | Java | target/hbase-0.94.9/hbase-0.94.9/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationQueueFailover.java | zqxjjj/NobidaBase | apache-2.0 | 4,569 | 134 | codeparrot/github-code |
02e285df6d3930b106bed0d37831ff92b4082aabfcbf2b6acb55d4969b543954 | require 'formula'
class Ngspice < Formula
homepage 'http://ngspice.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/26/ngspice-26.tar.gz'
sha1 '7c043c604b61f76ad1941defeeac6331efc48ad2'
option "with-x", "Build with X support"
option "without-xspice", "Build without x-... | Ruby | Library/Formula/ngspice.rb | 0xbb/homebrew | bsd-2-clause | 770 | 34 | codeparrot/github-code |
ca9d010c7fff10fd883c35d1505a767742196eb1ef102fe4d6056e6de54aec3b | /****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees... | C++ | src/qt/src/corelib/animation/qparallelanimationgroup.cpp | underwriteme/phantomjs | bsd-3-clause | 11,392 | 348 | codeparrot/github-code |
f1d915c56560429535dc090f99a5baf7d32104714a091c581befc5ee8f9060ba | using System;
using System.Linq;
using UIKit;
using MonoTouch.Dialog;
using System.Collections.Generic;
using Xamarin.Code;
namespace Xamarin.Screens.NavTable
{
public class HomeNavController : UITableViewController
{
// declare vars
protected List<NavItemGroup> navItems = new List<NavItemGroup>();
protected N... | C# | Data/Screens/NavTable/HomeTableViewController.cs | davidrynn/monotouch-samples | mit | 1,735 | 62 | codeparrot/github-code |
008118cb9aa9a74d2199d99bc9f5ce6bd6c3c8e350e84cec201b9f7ba5bbea07 | //------------------------------------------------------------------------------
// <copyright file="ConfigXmlDocument.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace Sy... | C# | System/sys/system/configuration/ConfigXmlDocument.cs | sekcheong/referencesource | mit | 4,615 | 119 | codeparrot/github-code |
64740f109fb1b6a0bbf4c99f127c5317f4241c83bcff32007e387bde540c3d48 | {-# LANGUAGE FlexibleContexts #-}
-- | Implementation of Kahan summation algorithm that tests
-- performance of tight loops involving unboxed arrays and floating
-- point arithmetic.
module Main (main) where
import Control.Monad.ST
import Data.Array.Base
import Data.Array.ST
import Data.Bits
import Data.Word
import S... | Haskell | test/nofib/imaginary/kahan/Main.hs | k-bx/ghcjs | mit | 1,334 | 56 | codeparrot/github-code |
2b0148dc4060ab6575d5e8577b069a78ae84d21fbd0c74d6ff89f250e6430970 | using System;
using System.Collections.Generic;
using CoreGraphics;
using System.Linq;
using Foundation;
using UIKit;
namespace Popovers
{
public partial class PopoverContentViewController : UIViewController
{
public PopoverContentViewController (IntPtr handle) : base (handle)
{
}
//loads the PopoverContent... | C# | Popovers/PopoverContentViewController.cs | davidrynn/monotouch-samples | mit | 891 | 40 | codeparrot/github-code |
30e84a0d350dfc86831033bca3617d1adbbdfc5526d8e0ccf4b4378f2d0c11e3 | #!/usr/bin/env node
/**
* Module dependencies.
*/
import { app } from '../app';
import { serverPort } from '../config';
import * as http from 'http';
/**
* Get port from environment and store in Express.
*/
const port = normalizePort(process.env.PORT || serverPort);
app.set('port', port);
/**
* Create HTTP ser... | TypeScript | server/bin/www.ts | aBitNomadic/SaP500 | mit | 1,667 | 90 | codeparrot/github-code |
7c456a0485de519d14a83424845d812d6a5a8c0b10e387018fdc8a9cf0cc02ea | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\CoreBundle\Form\EventSubscriber;
use Sylius\Bundle\CurrencyBundle\Form\Type\C... | PHP | src/Sylius/Bundle/CoreBundle/Form/EventSubscriber/AddBaseCurrencySubscriber.php | MichaelKubovic/Sylius | mit | 1,802 | 72 | codeparrot/github-code |
eb5f1f360c905cf9e47f9756320c5a51d155606b6deea444fa7ee031a101d596 | /* Hop Limit matching module */
/* (C) 2001-2002 Maciej Soltysiak <solt@dns.toxicfilms.tv>
* Based on HW's ttl module
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#incl... | C | nsc/linux-2.6.18/net/ipv6/netfilter/ip6t_hl.c | binhqnguyen/lena | gpl-2.0 | 1,706 | 71 | codeparrot/github-code |
c280b3e9b664482894bc98d3c9ce730e0426497b5115fd9c95e7eb92345c1b69 | /*
* File: arch/blackfin/kernel/setup.c
* Based on:
* Author:
*
* Created:
* Description:
*
* Modified:
* Copyright 2004-2006 Analog Devices Inc.
*
* Bugs: Enter bugs at http://blackfin.uclinux.org/
*
* This program is free software; you can redistribute it and/or modify
* it... | C | arch/blackfin/kernel/setup.c | janrinze/loox7xxport.loox2624 | gpl-2.0 | 19,155 | 706 | codeparrot/github-code |
f47fcc008c8ad0fd726a474f33e53e344ad42fec922405d7ba7eaefcfaf87148 | /**
@file MemoryManager.cpp
@maintainer Morgan McGuire, http://graphics.cs.williams.edu
@created 2009-04-20
@edited 2009-05-29
Copyright 2000-2009, Morgan McGuire.
All rights reserved.
*/
#include "G3D/MemoryManager.h"
#include "G3D/System.h"
namespace G3D {
MemoryManager::MemoryManag... | C++ | dep/src/g3dlite/MemoryManager.cpp | natedahl32/portalclassic | gpl-2.0 | 1,646 | 92 | codeparrot/github-code |
092d8dc5dd2bf6eac7a8325647a7a8b331b68618e09e8f69c325aa70769692a6 | /*
* Driver for the i2c controller on the Marvell line of host bridges
* (e.g, gt642[46]0, mv643[46]0, mv644[46]0, and Orion SoC family).
*
* Author: Mark A. Greer <mgreer@mvista.com>
*
* 2005 (c) MontaVista, Software, Inc. This file is licensed under
* the terms of the GNU General Public License version 2. Th... | C | drivers/i2c/busses/i2c-mv64xxx.c | HarveyHunt/linux | gpl-2.0 | 28,247 | 1,015 | codeparrot/github-code |
c42ed5eddf089da20949e7babb5c81d98b6fafa5176e41448858d944948edbf0 | /*
** $Id: lvm.c,v 2.155.1.1 2013/04/12 18:48:47 roberto Exp $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
#ifdef SYSLINUX
#define strcoll strcmp
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define lvm_c
#define LUA_CORE
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#in... | C | com32/lua/src/lvm.c | ErwanAliasr1/syslinux | gpl-2.0 | 29,198 | 891 | codeparrot/github-code |
7c4d1a6a845d5e02f42b304fdc683acceb8df66284d3a4b6d64703c902926577 | /* ***** BEGIN LICENSE BLOCK *****
*
* $Id: frame_buffer.cpp 280 2005-01-30 05:11:46Z gabest $ $Name$
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in compliance
* with the License. Yo... | C++ | src/filters/parser/diracsplitter/libdirac/libdirac_common/frame_buffer.cpp | lanxy88/lanxy88-shooterplayer | gpl-2.0 | 12,817 | 392 | codeparrot/github-code |
dd2d7422c2bc53fe0a6a598b2ba26451ad1fcf792ee88b3064e813b399ccae8c | /*
* Driver for the PCM512x CODECs
*
* Author: Mark Brown <broonie@kernel.org>
* Copyright 2014 Linaro Ltd
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program... | C | sound/soc/codecs/pcm512x.c | Taeung/tip | gpl-2.0 | 46,738 | 1,740 | codeparrot/github-code |
3220c6e38951ed06a2f6fbe1781f52f5d6e3cd2919e728938a4ac09ff634c7a3 | # -*- coding: utf-8 -*-
# Copyright 2019 Red Hat
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
"""
The facts class for eos
this file validates each subset of facts and selectively
calls the appropriate facts gathering function
"""
from __future__ import (absolute_import, ... | Python | lib/ansible/module_utils/network/eos/facts/facts.py | simonwydooghe/ansible | gpl-3.0 | 2,719 | 67 | codeparrot/github-code |
ad82cad8bffed17ed4fe95c0d8a64b1cd5b56044982519476758b6223a6a3be0 | /*
* SmallButton.java
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License.... | Java | src/gwt/src/org/rstudio/core/client/widget/SmallButton.java | john-r-mcpherson/rstudio | agpl-3.0 | 3,382 | 122 | codeparrot/github-code |
4186eb30ad6d57f6204c33eedae57af86b3292776c0963523a1e59843ba6eb0c | package networks
import (
"errors"
"github.com/rackspace/gophercloud"
"github.com/rackspace/gophercloud/pagination"
)
// List returns a Pager which allows you to iterate over a collection of
// networks. It accepts a ListOpts struct, which allows you to filter and sort
// the returned collection for greater effic... | GO | Godeps/_workspace/src/github.com/rackspace/gophercloud/rackspace/compute/v2/networks/requests.go | nvoron23/kubernetes | apache-2.0 | 2,997 | 97 | codeparrot/github-code |
796c30a600af9479f978c37f573e86956309719ae5f91a9b66312f1db97ec42a | //===- COFFObjcopy.cpp ----------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C++ | tools/llvm-objcopy/COFF/COFFObjcopy.cpp | apple/swift-llvm | apache-2.0 | 8,394 | 217 | codeparrot/github-code |
e5caf9ea079ef82799f0d6b020aa81c70a3bd31bfd3a4485a9966a0efdeb8948 | import inspect
import sys
from collections import namedtuple
###############
# Structs #
###############
# Request payloads
ProduceRequest = namedtuple("ProduceRequest",
["topic", "partition", "messages"])
FetchRequest = namedtuple("FetchRequest",
["topic", "... | Python | eagle-external/hadoop_jmx_collector/lib/kafka-python/kafka/common.py | DadanielZ/incubator-eagle | apache-2.0 | 4,849 | 216 | codeparrot/github-code |
46925bfb6018700798d7199068402b56e02131f0bbdd921b662092ba70c6908c | package com.jetbrains.python.edu.debugger;
import com.intellij.execution.ExecutionResult;
import com.intellij.execution.Executor;
import com.intellij.execution.configurations.RunProfile;
import com.intellij.execution.configurations.RunProfileState;
import com.intellij.execution.filters.UrlFilter;
import com.intellij.e... | Java | python/edu/src/com/jetbrains/python/edu/debugger/PyEduDebugRunner.java | MichaelNedzelsky/intellij-community | apache-2.0 | 8,243 | 194 | codeparrot/github-code |
db0fa1ad2e34c5676d46cba9e0d74449442042cc17c45d9cb577174665a992ed | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_
#define UI_PLATFORM_WINDOW_PLATFORM_WINDOW_H_
#include "base/memory/scoped_ptr.h"
#include "ui/base/cursor/... | C | ui/platform_window/platform_window.h | guorendong/iridium-browser-ubuntu | bsd-3-clause | 1,576 | 57 | codeparrot/github-code |
e76b7e762d86147c3cd1a7b2b016204971ccfcb3a3e0efc6b012f7540bd32a75 | /*****************************************************************************
Copyright (c) 2011, Intel Corp.
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 cod... | C | lapack-netlib/lapacke/src/lapacke_ctrrfs.c | aliefweb/openblas | bsd-3-clause | 3,806 | 87 | codeparrot/github-code |
995ef8962e810ea1276be798e61fa20e01a95e6f73e8e247865bb48c1d72c561 | /*******************************************************************************
* Filename: rom_crypto.c
* Revised: 2017-02-02 12:00:37 +0100 (Thu, 02 Feb 2017)
* Revision: 48367
*
* Description: This is the implementation for the API to the AES, ECC and
* SHA256 functions bu... | C | third_party/ti/devices/cc26x0/driverlib/rom_crypto.c | erja-gp/openthread | bsd-3-clause | 12,254 | 307 | codeparrot/github-code |
74a7cc368d115352cecf3a88607bf8595ac0217489f248beeb0a9cd79d367fc3 | import Ember from 'ember';
import SlugGenerator from 'ghost/models/slug-generator';
import isNumber from 'ghost/utils/isNumber';
import boundOneWay from 'ghost/utils/bound-one-way';
import ValidationEngine from 'ghost/mixins/validation-engine';
const {Controller, RSVP, computed, inject} = Ember;
const {alias, and, not... | JavaScript | core/client/app/controllers/team/user.js | codeforgabon/jevisaugabon.com | mit | 7,847 | 216 | codeparrot/github-code |
00e074a16f976f21b988ae3a32bd4abe6c24008c38d688f62896bc507405e6c5 | /*
* Copyright (C) 2003 Christophe Saout <christophe@saout.de>
* Copyright (C) 2004 Clemens Fruhwirth <clemens@endorphin.org>
* Copyright (C) 2006-2009 Red Hat, Inc. All rights reserved.
*
* This file is released under the GPL.
*/
#include <linux/completion.h>
#include <linux/err.h>
#include <linux/module.h>
#in... | C | kernel/drivers/md/dm-crypt.c | KublaikhanGeek/fastsocket | gpl-2.0 | 34,182 | 1,473 | codeparrot/github-code |
8a9be7ce1239136326d0940f88874c409888fb2641f85fa1a172d17d258b2ea6 | /*
* Copyright (C) 2005-2016 Team XBMC
* http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* ... | C++ | xbmc/cores/VideoPlayer/Process/overrides/rbpi/ProcessInfoPi.cpp | holzingerm/xbmc | gpl-2.0 | 1,275 | 59 | codeparrot/github-code |
204ba35214c3fa0fe65438ff9c09d42f46758e6ead8ada6d5df14c24b8ca321c | /*
* Copyright (C) 2008-2017 TrinityCore <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later ve... | C++ | src/server/game/Maps/AreaBoundary.cpp | Poveda09/TrinityCore | gpl-2.0 | 6,939 | 125 | codeparrot/github-code |
add659536da075c7e09d7fca69090ccba897c68d2b9a7ec6341f9f4d588979d4 |
/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
* Copyright (C) 2012-2014 Sony Mobile Communications AB.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free So... | C | drivers/video/msm/mdss/mdss_dsi_panel_driver.c | jfdsmabalot/kernel_sony_msm8974 | gpl-2.0 | 61,063 | 2,216 | codeparrot/github-code |
f5a984da73ebbf06a074affd506551280dbbac1fc494d77c4d9bfe5757e70034 | <?php
/**
* Joomla! Content Management System
*
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\Toolbar;
\defined('_JEXEC') or die;
use Joomla\CMS\Filesystem\Path;
use Joomla\CMS\Filter... | PHP | libraries/src/Toolbar/ContainerAwareToolbarFactory.php | brianteeman/joomla-cms | gpl-2.0 | 2,892 | 124 | codeparrot/github-code |
1c456bee540551ecc4a19b8cec328011a38136bd46bc7196b377b6244121caf1 | #
# Copyright (C) 2010-2016 Jo-Philipp Wich <jo@mein.io>
#
# This is free software, licensed under the GPL 2 license.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libiwinfo
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(LEDE_GIT)/project/iwinfo.git
PKG_SOURCE_DATE:=2017-08-23
PKG_SOURCE_VERSION:=c1a03e8231a5d8b348b... | Makefile | package/network/utils/iwinfo/Makefile | devianceluka/source | gpl-2.0 | 3,158 | 121 | codeparrot/github-code |
1a33d5a0c366a9e19a327f447960e11f8cdb30c89cc4a65003a9995f92f0b103 | import unittest
import pickle
import cPickle
import StringIO
import cStringIO
import pickletools
import copy_reg
from test.test_support import TestFailed, have_unicode, TESTFN
# Tests that try a number of pickle protocols should have a
# for proto in protocols:
# kind of outer loop.
assert pickle.HIGHEST_PROTOCOL... | Python | src/python/stdlib/test/pickletester.py | antb/TPT----My-old-mod | gpl-2.0 | 39,620 | 1,260 | codeparrot/github-code |
20d2a7376cb03fba27aebd9eee9f8723c62eb25295a6b8049b7adbfe4dfba6bb | /* Natural loop analysis code for GNU compiler.
Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
So... | C | uefi/gcc/gcc-4.6.3/gcc/cfgloopanal.c | SanDisk-Open-Source/SSD_Dashboard | gpl-2.0 | 11,606 | 450 | codeparrot/github-code |
034639ea058931e106fe461fde4504c0f835b167a0b021212f16020f7c6914d5 | /* Copyright (C) 1991-2015 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the ... | C | termios/tcflush.c | tripleee/glibc-en-150 | gpl-2.0 | 1,169 | 45 | codeparrot/github-code |
2da102b076077de5525d7899f7e925a328ad04743524dd31e2405405f107c11f | #define _FILE_OFFSET_BITS 64
#include <linux/kernel.h>
#include <linux/compiler.h>
#include <byteswap.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/mman.h>
#include "evlist.h"
#include "evsel.h"
#include "session.h"
#include "tool.h"
#include "sort.h"
#include "util.h"
#include "cpumap.h"
#include "eve... | C | tools/perf/util/session.c | gukai/kernel | gpl-2.0 | 45,934 | 1,781 | codeparrot/github-code |
c3cb98c69d57f28256b7bbbb16cb11bd46fa411ce3b18b06aa38f699acfff7ea | /*
* Copyright (C) 2017 Oracle. All Rights Reserved.
*
* Author: Darrick J. Wong <darrick.wong@oracle.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the Li... | C | fs/xfs/scrub/rtbitmap.c | raumfeld/linux-am33xx | gpl-2.0 | 3,150 | 123 | codeparrot/github-code |
8edbf0bc5996eeb0d811459b39398eae5f81cb3de2c61c6428ed9f04aef9d1a4 | <?php
/**
* Generic Slider super class. Extended by library specific classes.
*/
class MetaImageSlide extends MetaSlide {
/**
* Register slide type
*/
public function __construct() {
add_filter( 'metaslider_get_image_slide', array( $this, 'get_slide' ), 10, 2 );
add_action( 'metasli... | PHP | wp-content/plugins/ml-slider/inc/slide/metaslide.image.class.php | hoangsu/maybom | gpl-2.0 | 18,984 | 464 | codeparrot/github-code |
399130a7d80e6bd17a4f1566f2515988b7ccf401d558fd3dd785224623989d47 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation |
--------... | C++ | src/OpenFOAM/meshes/polyMesh/zones/faceZone/faceZone.C | adrcad/OpenFOAM-2.3.x | gpl-3.0 | 14,320 | 586 | codeparrot/github-code |
8a0187c37e009c987573ddfd9b3ab97d4c71534d8b5ec24b83e16b460d00441c | #include <ipxe/io.h>
#include <registers.h>
/*
* Originally by Eric Biederman
*
* Heavily modified by Michael Brown
*
*/
FILE_LICENCE ( GPL2_OR_LATER );
/*
* The linker passes in the symbol _max_align, which is the alignment
* that we must preserve, in bytes.
*
*/
extern char _max_align[];
#define max_alig... | C | tools/ipxe/src/arch/i386/core/relocate.c | lindiyer/pxe | gpl-3.0 | 3,649 | 139 | codeparrot/github-code |
dfe31daa458c1a265903c65374d25b4c7e6539882163d4c171197f01262bd933 | """
A few practical conventions common to all printers.
"""
from __future__ import print_function, division
import re
import collections
_name_with_digits_p = re.compile(r'^([a-zA-Z]+)([0-9]+)$')
def split_super_sub(text):
"""Split a symbol name into a name, superscripts and subscripts
The first part ... | Python | sympy/printing/conventions.py | NikNitro/Python-iBeacon-Scan | gpl-3.0 | 2,504 | 84 | codeparrot/github-code |
03a0f55ab58ea6c2b4af99dc7f61a78b4234bddc98015de60b27374e087ebc65 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
\\/ M anipulation |
--------... | C++ | src/postProcessing/functionObjects/utilities/blendingFactor/blendingFactor.C | Atizar/RapidCFD-dev | gpl-3.0 | 3,383 | 135 | codeparrot/github-code |
99b1732fde485d6bb85500adb2e13bb45c7952ec6c64d184d5544029290600bd | /**
* Copyright (C) 2011 JTalks.org Team
* 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.
* This library ... | Java | jcommune-view/jcommune-web-controller/src/main/java/org/jtalks/jcommune/web/rememberme/ThrottlingRememberMeService.java | illerax/jcommune | lgpl-2.1 | 9,923 | 215 | codeparrot/github-code |
18431eb75947a9e703c05f52d56e1b8de4f8873260da7da354a0eff3f7381141 | #include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "ringbuf.h"
#include "serial.h"
#ifndef MIN
#define MIN(a,b)((a < b) ? a : b)
#endif
struct _BotRingBuf{
uint8_t * buf;
int readOffset;
int writeOffset;
int numBytes;
int maxSize;
u... | C | externals/libbot-drc/bot2-core/src/bot_core/ringbuf.c | Morbotic/pronto-distro | lgpl-2.1 | 6,229 | 226 | codeparrot/github-code |
38cf7f6da667d887d59fb7fc0d526f2689610ee2359e6d0bfb30e9a33ff82c48 | /*
* Copyright 2011 The Apache Software Foundation
*
* 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 ... | Java | target/hbase-0.94.9/hbase-0.94.9/src/main/java/org/apache/hadoop/hbase/client/coprocessor/AggregationClient.java | zqxjjj/NobidaBase | apache-2.0 | 19,588 | 558 | codeparrot/github-code |
93e1dc2aeedc8d6ff98fcbbb05cf3b4eff4b4d3ea63860ccd3d965dbb5ac3929 | /*
* 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 | giraph-core/target/munged/test/org/apache/giraph/zk/TestPredicateLock.java | zfighter/giraph-research | apache-2.0 | 4,325 | 149 | codeparrot/github-code |
5c30251780b13ddea71b0421540fe1564ac7c8ade20c8182fa5947a3a86d5fda | /*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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... | Java | core/src/main/java/io/undertow/io/AsyncReceiverImpl.java | rhusar/undertow | apache-2.0 | 27,161 | 624 | codeparrot/github-code |
daab1e5a3f0e06d46eeb73f9e9846e3b47a393c9070316b1582a89ce7201c453 | package com.fsck.k9.controller;
import java.util.Comparator;
import com.fsck.k9.mail.Message;
class UidReverseComparator implements Comparator<Message> {
@Override
public int compare(Message messageLeft, Message messageRight) {
Long uidLeft = getUidForMessage(messageLeft);
Long uidRight = g... | Java | qmail/src/main/java/com/fsck/k9/controller/UidReverseComparator.java | philipwhiuk/q-mail | apache-2.0 | 864 | 35 | codeparrot/github-code |
a3644003dc8a235da953c9cb71e10fb8e57ee5c3ecae2e55bee1554c8a4a2d9a | /**
* 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-common/src/main/java/org/apache/hadoop/hbase/types/RawLong.java | Jackygq1982/hbase_src | apache-2.0 | 2,750 | 88 | codeparrot/github-code |
bacf32e35bf6205c841e4d52786d2da120e300f52c76b6745859932951d58d09 | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... | C# | src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Models/CreatePSWorkspaceParameters.cs | yoavrubin/azure-powershell | apache-2.0 | 1,270 | 35 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.