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 |
|---|---|---|---|---|---|---|---|---|
cb5d817c21c6979cedf47ba650a2d4dd62b99c1905612383423a0033f102ae47 | package org.hisp.dhis.i18n;
/*
* Copyright (c) 2004-2016, University of Oslo
* 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... | Java | dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/i18n/I18nLocaleService.java | minagri-rwanda/DHIS2-Agriculture | bsd-3-clause | 2,638 | 72 | codeparrot/github-code |
827aa3f886d5ca2fb40f2c4a344bcc822787924aa84246aa3c3d882236514b27 | /*
Copyright (c) 2015, Apple Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the follow... | C | ResearchKit/ActiveTasks/ORKActiveStep.h | mluedke2/ResearchKit | bsd-3-clause | 8,299 | 220 | codeparrot/github-code |
ebfe1b93edee2018095cadd72a63af1143bd04ee27af8dfdfa055d581b744729 | /*=========================================================================
Date : $Date: 03.03.2009$
Changes : $Author: Laurent Risser $
=========================================================================*/
#include <irtkImage.h>
#include <irtkAnisoDiffusion.h>
template <class VoxelType> anisoDif... | C++ | image++/src/irtkAnisoDiffusion.cc | sk1712/IRTK | bsd-3-clause | 81,278 | 1,796 | codeparrot/github-code |
c700b456ed707da81ddb4356eb215b270a3fb1fb35908e9766b3777db6438c2c | // 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.
// Tests for GLES2Implementation.
#include "gpu/command_buffer/client/gles2_implementation.h"
#include <GLES2/gl2ext.h>
#include "gpu/command_buffer... | C++ | gpu/command_buffer/client/gles2_implementation_unittest.cc | ropik/chromium | bsd-3-clause | 89,759 | 2,522 | codeparrot/github-code |
d0c302a4b2a0d017bdd42eba042ec10a4d952605a3c14905a0c2c09083db7231 | //
// file RDKitSVPanel.cc
// David Cosgrove
// AstraZeneca
// 20th June 2014
//
#include "RDKitSVPanel.H"
#include "MolDisplay2DWidget.H"
#include <QLabel>
#include <QLayout>
#include <QSlider>
using namespace std;
namespace RDKitSV {
// ****************************************************************************... | C++ | Code/GraphMol/MolDraw2D/Qt/Demo/RDKitSVPanel.cc | bp-kelley/rdkit | bsd-3-clause | 2,666 | 102 | codeparrot/github-code |
489bccd275a4a4f1f001be8f4f98437318e385c8ec5f095203ffe2085ef13b40 | # Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved.
from __future__ import absolute_import
import imp
import os
import platform
import re
import subprocess
import sys
from . import option_list
from digits import device_query
from digits.utils import parse_version
def load_from_envvar(envvar):
"... | Python | digits/config/caffe.py | ethantang95/DIGITS | bsd-3-clause | 7,545 | 239 | codeparrot/github-code |
34f022e7061670d5c59189eb3dd713e15e5858b4585f7a3cca739f3329287399 | /* __ *\
** ________ ___ / / ___ __ ____ Scala.js Test Suite **
** / __/ __// _ | / / / _ | __ / // __/ (c) 2013-2015, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ |/_// /_\ \ http://scala-js.org/ **
** /____/\___/_/ |_/... | Scala | test-suite/src/test/scala/org/scalajs/testsuite/javalib/util/concurrent/ConcurrentLinkedQueueTest.scala | CapeSepias/scala-js | bsd-3-clause | 6,010 | 187 | codeparrot/github-code |
49db5cc6b9dab7028edfe3ecb41145f17bd3c4723ae579e90784657ef9123574 | // Copyright 2020 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 CONTENT_PUBLIC_TEST_FAKE_FRAME_WIDGET_H_
#define CONTENT_PUBLIC_TEST_FAKE_FRAME_WIDGET_H_
#include "base/i18n/rtl.h"
#include "build/build_config... | C | content/public/test/fake_frame_widget.h | chromium/chromium | bsd-3-clause | 4,353 | 101 | codeparrot/github-code |
b8d76514e9824b943d1565a4286e7867fb2c3c1f20e791266f0b92a8435bd02c | // Copyright 2021 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 "components/history_clusters/core/content_annotations_cluster_processor.h"
#include "base/containers/flat_map.h"
#include "base/containers/flat_... | C++ | components/history_clusters/core/content_annotations_cluster_processor.cc | chromium/chromium | bsd-3-clause | 6,985 | 169 | codeparrot/github-code |
b9f6c84e25f86410923b7e40d00248de33481b353945149b9bf26264db50e06d | /*
* Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
* Copyright (C) Research In Motion Limited 2009-2010. 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 s... | C++ | sky/engine/platform/SharedBuffer.cpp | mpcomplete/flutter_engine | bsd-3-clause | 10,622 | 371 | codeparrot/github-code |
18f008667e29af9fe1df92fad9ef4144e378d7746aaa73cba14cbbf2301ee38a | package de.plushnikov.intellij.plugin.thirdparty;
import de.plushnikov.intellij.plugin.processor.field.AccessorsInfo;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
public class... | Java | src/test/java/de/plushnikov/intellij/plugin/thirdparty/LombokUtilsAllGetterTest.java | AlexejK/lombok-intellij-plugin | bsd-3-clause | 2,868 | 92 | codeparrot/github-code |
cdb3cbf043fe8b77e1ecdf2f7242c9b016331843c3640897768e2242daeb4abc | package org.hisp.dhis.program;
/*
* Copyright (c) 2004-2016, University of Oslo
* 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 abov... | Java | dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/program/ProgramIndicatorDeletionHandler.java | minagri-rwanda/DHIS2-Agriculture | bsd-3-clause | 2,980 | 75 | codeparrot/github-code |
04d61debd157c107134e1969894c49c80fd180384296b26f14984f7c729f7e63 |
/*
Need to concatenate this file with something that defines:
LPTSTR path_dirs[];
LPTSTR progDll;
LPTSTR rtsDll;
int rtsOpts;
*/
#include <stdarg.h>
#include <stdio.h>
#include <windows.h>
#include <shlwapi.h>
#include "Rts.h"
void die(char *fmt, ...) {
va_list argp;
fprintf(stderr, "error: ");
va_star... | C | driver/utils/dynwrapper.c | sdiehl/ghc | bsd-3-clause | 4,642 | 197 | codeparrot/github-code |
7b6956fe5cb2988d36b8df2d4e485eabce2b0e46f555c5cb6c0a76239f2aea8f | // Copyright (c) 2008 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.
// Written in NSPR style to also be suitable for adding to the NSS demo suite
/* memio is a simple NSPR I/O layer that lets you decouple NSS from
* t... | C | net/base/nss_memio.c | leighpauls/k2cro4 | bsd-3-clause | 14,011 | 501 | codeparrot/github-code |
14e6dcd5c8cd851282e10bf2790b8fdde43fb6a60c490e82956c415ae2ee8306 | // 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.
package org.chromium.chrome.browser.download;
import android.graphics.Bitmap;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.c... | Java | chrome/browser/download/android/java/src/org/chromium/chrome/browser/download/DownloadInfo.java | chromium/chromium | bsd-3-clause | 20,987 | 611 | codeparrot/github-code |
883a626952209735a1e064b079671813a5c816893cfb2903704cc1f691c00c84 | // Copyright 2020 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 CONTENT_BROWSER_WEBUI_WEB_UI_MAIN_FRAME_OBSERVER_H_
#define CONTENT_BROWSER_WEBUI_WEB_UI_MAIN_FRAME_OBSERVER_H_
#include <stdint.h>
#include <st... | C | content/browser/webui/web_ui_main_frame_observer.h | chromium/chromium | bsd-3-clause | 2,603 | 78 | codeparrot/github-code |
94e48b00355a249a97f3c0f0bd3739622e91c4ded757663d88e30ce174d6a96b | // Copyright 2016 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.
cr.define('user_manager.import_supervised_user_tests', function() {
function registerTests() {
suite('ImportSupervisedUserTests', function() {
... | JavaScript | chrome/test/data/webui/md_user_manager/import_supervised_user_tests.js | danakj/chromium | bsd-3-clause | 4,857 | 128 | codeparrot/github-code |
bc4cf6457c3f6d42520ea7d91fdc74f8749bd8b6199146586722a35a164a4c19 | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_COCOA_APPLESCRIPT_WINDOW_APPLESCRIPT_H_
#define CHROME_BROWSER_UI_COCOA_APPLESCRIPT_WINDOW_APPLESCRIPT_H_
#import <Cocoa/Co... | C | chrome/browser/ui/cocoa/applescript/window_applescript.h | chromium/chromium | bsd-3-clause | 2,676 | 84 | codeparrot/github-code |
9c807a22e1316de4f6a34c6504a71607224ee3f16d4a94c564ede64f277eeef0 | //===-- SparcFrameLowering.h - Define frame lowering for Sparc --*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C | third_party/llvm/llvm/lib/Target/Sparc/SparcFrameLowering.h | endlessm/chromium-browser | bsd-3-clause | 2,461 | 68 | codeparrot/github-code |
fd0f230c423af908b56077bebb2440b54dd6251ce86279b33ca01cec87c2ef5d | /* **********************************************************
* Copyright (c) 2004-2007 VMware, Inc. All rights reserved.
* **********************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... | C | tools/DRload.c | DynamoRIO/drk | bsd-3-clause | 11,933 | 314 | codeparrot/github-code |
d8beac214d355e1a24fa8c0fbf93742d69cf4c044b66d71de8b81ddb52008505 | /* Copyright (C) 2009-2011, Stefan Hacker
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright notice,
this list of condi... | C | src/mumble/BonjourClient.h | mkrautz/mumble-sbcelt | bsd-3-clause | 1,935 | 52 | codeparrot/github-code |
7b37f7e9579f13881ac00bfa8bb179aa00424416c52ea8880c126c10dcbc0e9c | /*************************************************************************/
/* vset.h */
/*************************************************************************/
/* This file is part of: */
/* ... | C | core/vset.h | mikica1986vee/godot_build_fix | mit | 3,993 | 146 | codeparrot/github-code |
e2235d3c085270fa7603c6306385fd74cf3cc4f6dd58c3afa4e093cf2ec76bbd | /*
* HTML5 Boilerplate
*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*
* Detailed information about this CSS: h5bp.com/css
*
* ==|== normalize ================... | CSS | templates/css/style.css | MichaelBaker/zombie-picnic-randomizer | mit | 10,687 | 623 | codeparrot/github-code |
b1eb9c56785b09acad0bea230a63f387a8e1bc026e31284c16a979b714ed8010 | import threading
import time
from . import _impl
from .common import *
from .connection import *
from .networktablenode import NetworkTableNode
from .type import NetworkTableEntryTypeManager
import logging
logger = logging.getLogger('nt')
__all__ = ["NetworkTableServer"]
class ServerConnectionState:
"""Represen... | Python | src/org/usfirst/frc/team4915/stronghold/vision/jetson/imgExplore2/networktables2/server.py | schmirob000/2016-Stronghold | mit | 10,070 | 302 | codeparrot/github-code |
6925f3653397120c802d2bc615f85c1965e800075853a8b2055e2a462f96bff8 | // Type definitions for jasmine-ajax 3.1
// Project: https://github.com/jasmine/jasmine-ajax
// Definitions by: Louis Grignon <https://github.com/lgrignon>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
interface JasmineAjaxResponse {
status?: number;
statusText?: strin... | TypeScript | types/jasmine-ajax/index.d.ts | AgentME/DefinitelyTyped | mit | 2,475 | 91 | codeparrot/github-code |
4da53d554c2e6d7e9b138f1a35c892815eb319cc05f0ef59500e128b91725383 | package org.knowm.xchange.wex.v3.dto.trade;
import static org.assertj.core.api.Assertions.assertThat;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigDecimal;
import java.util.Map;
import java.util.Map.Entry;
import org.junit.Test;
/** @... | Java | xchange-wex/src/test/java/org/knowm/xchange/wex/v3/dto/trade/WexTradeHistoryJSONTest.java | LeonidShamis/XChange | mit | 1,753 | 41 | codeparrot/github-code |
46ae09a9d5ad3ee6b7bc1e9f56253504235486a17c80d93a5abaa0999e2f8da5 | var inspector = require('../');
// Custom type schema
var personValidation = {
type: 'object',
properties: {
firstname: { type: 'string', minLength: 1 },
lastname: { type: 'string', minLength: 1 },
age: { type: 'integer', gt: 0, lte: 120 }
}
};
// Custom Validation ($type)
var customValidation = {
// $type w... | JavaScript | misc/custom-type.js | biggora/schema-inspector | mit | 1,046 | 39 | codeparrot/github-code |
ceb509946e8b73361632c5937ad3fe9b1f0384567eec6217f65df3140ded8782 | /*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.com
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is grant... | C | _DEPENDENCIES/sources/bullet/Demos/HeightFieldFluidDemo/HfFluidDemo.h | core-code/Core3D | mit | 3,947 | 153 | codeparrot/github-code |
d1b015700581434b67dff2500e1a3897356c7e9403537c2da76f97e5a3f12734 | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Timing;
using osu.Game.Rulesets.Objects.Pooling;
using osuTK;
namespace osu.Game.Rulesets.Catch.UI
{
/// <summary>
... | C# | osu.Game.Rulesets.Catch/UI/CatcherTrail.cs | ppy/osu | mit | 2,331 | 69 | codeparrot/github-code |
cecf374a93e0f4556e7a9bf535d39044eae1b9e8d5a8e99363d6a90c3bf54c0f | //-----------------------------------------------------------------------------
// Copyright (c) 2013 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 restr... | C++ | engine/source/algorithm/crc.cc | greenfire27/Torque2D | mit | 2,930 | 94 | codeparrot/github-code |
56ed18a83a2c2e88c5cc1616792e9b1495d8f431c0409c9def8c123ec41d65c4 | /***** AVAILABLE JAVASCRIPT FUNCTIONS ******/
/* Function: GraphicsApp()
* --------------------------------
* Creates a new GraphicsApp object and returns it.
*
* Parameters: none
*/
function GraphicsApp() {}
/* Function: addButton(buttonName)
* -----------------------------------------------
* Creates and... | JavaScript | plugins/acmjs/graphicsapp.js | chrispiech/cs106b-fall-2016-website | mit | 9,210 | 315 | codeparrot/github-code |
8953a019da6340d6aab58a7175d1dc2fa347afc3bef6bde1c42a3d7bbf739a22 | /**
* Module dependencies.
*/
var Emitter = require('emitter');
var render = require('render');
var events = require('events');
var empty = require('empty');
var filter = require('laws-filter');
var template = require('./filter-container');
var o = require('query');
var closest = require('closest');
var classes = re... | JavaScript | lib/sidebar/filter.js | mxabierto/colaborativa | mit | 3,004 | 121 | codeparrot/github-code |
9474d4ab4def6d3680ceb51354637e66261c99d3304dd5abd4ceefd297c33658 | package types
import "github.com/traefik/paerser/types"
const (
// AccessLogKeep is the keep string value.
AccessLogKeep = "keep"
// AccessLogDrop is the drop string value.
AccessLogDrop = "drop"
// AccessLogRedact is the redact string value.
AccessLogRedact = "redact"
)
const (
// CommonFormat is the common ... | GO | pkg/types/logs.go | dtomcej/traefik | mit | 5,431 | 124 | codeparrot/github-code |
8399985a11c977b03dececc1cc9594543be56a5d916ffe9f364936457de93436 | <?php
defined('C5_EXECUTE') or die("Access Denied.");
/**
* An object representing a private message sent to a user
*
* @package Users
* @category Concrete
* @author Andrew Embler <andrew@concrete5.org>
* @copyright Copyright (c) 2003-2009 Concrete5. (http://www.concrete5.org)
* @license http://www.concret... | PHP | concrete/models/user_private_message.php | clejer/concrete_ | mit | 9,324 | 288 | codeparrot/github-code |
6cc46ee9132c1ad8bc9bc41bf707972681c6f534d46ede2a859ce60c285772e3 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Registry_model extends CI_Model
{
public function __construct()
{
$this->load->database();
$this->load->library('session');
}
public function add_company()
{
$data = array(
'company_name' => $_POST['company_name'],
'... | PHP | html/newsletters/sony/application/models/Registry_model.php | isaacBats/opemedios.cms.final | mit | 1,869 | 68 | codeparrot/github-code |
9a5a768909ec4f61350ea3c82394ae67023f85e63db420d1baefba4863f3b71c | using System;
using System.Threading.Tasks;
using Octokit;
using Octokit.Tests.Integration;
using Xunit;
using Octokit.Tests.Integration.Helpers;
public class DeploymentStatusClientTests : IDisposable
{
private readonly IDeploymentsClient _deploymentsClient;
private readonly RepositoryContext _context;
pr... | C# | Octokit.Tests.Integration/Clients/DeploymentStatusClientTests.cs | dampir/octokit.net | mit | 10,180 | 247 | codeparrot/github-code |
9f544218e72ae817d4d73692fa36106198dc00eb27b00924bd900d34c3aa51d1 | //-----------------------------------------------------------------------------
// Copyright (c) 2013 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 restr... | C++ | engine/source/gui/editor/guiInspector.cc | greenfire27/Torque2D | mit | 39,004 | 1,211 | codeparrot/github-code |
86389b7f3545214e51f6ceb5de9476b781bffbdcd5a530dc1c6648a61480a142 | # The MIT License (MIT)
#
# Copyright (c) 2015 aj-jester
#
# 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 limitation the rights
# to use, copy, modify,... | Ruby | lib/puppet/parser/functions/sensu_sorted_json.rb | jeffmccune/sensu-puppet | mit | 6,133 | 199 | codeparrot/github-code |
6f7a69c89ba177de8fd5a8987ce0c68ed348b155bba2560a68b62659ccb4dae6 | --[[/*
* (C) 2012-2013 Marmalade.
*
* 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 limitation the rights
* to use, copy, modify, merge, publish,... | Lua | resources/quicklua/QLabel.lua | simonrose121/slidinghome-prototype | mit | 3,718 | 114 | codeparrot/github-code |
efe90ba02e824201842a37bd3a78695e09487e572b3af814686d255e82edb3a7 | //
// PluralRules.cs
//
// Author:
// Aaron Bockover <abock@rd.io>
//
// Copyright 2012 Rdio, Inc.
//
// 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 with... | C# | Vernacular.Catalog/Vernacular/PluralRules.cs | dsuess/vernacular | mit | 9,238 | 219 | codeparrot/github-code |
dc8a9e98f75b4dc9a619ddd4501d668867db4cf606a07e46825d1ce424114182 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Route} from '../config';
import {defaultUrlMatcher, PRIMARY_OUTLET} from '../shared';
import {UrlSegment, Url... | TypeScript | packages/router/src/utils/config_matching.ts | blesh/angular | mit | 6,910 | 194 | codeparrot/github-code |
2f734bea5ab3d28a83354ce95347087e9065864d50419eed88e041caa2db7e71 | ;(function (global) {
if ("EventSource" in global) return;
var reTrim = /^(\s|\u00A0)+|(\s|\u00A0)+$/g;
var EventSource = function (url) {
var eventsource = this,
interval = 500, // polling interval
lastEventId = null,
cache = '';
if (!url || typeof url != 'string') {
throw new SyntaxE... | JavaScript | simpleai/search/web_viewer_resources/EventSource.js | matuu/simpleai | mit | 5,386 | 178 | codeparrot/github-code |
180a28252240f87bc1a7897b99c5a8aa3bdb9be8c2fdf27ec0c5204df7266ea3 | import { RocketChat } from 'meteor/rocketchat:lib';
import { Random } from 'meteor/random';
import _ from 'underscore';
import s from 'underscore.string';
import hljs from 'highlight.js';
import _marked from 'marked';
const renderer = new _marked.Renderer();
let msg = null;
renderer.code = function(code, lang, escap... | JavaScript | packages/rocketchat-markdown/parser/marked/marked.js | fatihwk/Rocket.Chat | mit | 2,435 | 109 | codeparrot/github-code |
90b5710cbbdd3ffaf616ba5675fc290ceb866d243265a2bfafdd262909928f4b | package org.jabref.gui.customentrytypes;
import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
import java.awt.event.Focu... | Java | src/main/java/org/jabref/gui/customentrytypes/FieldSetComponent.java | conde2/DC-UFSCar-ES2-201701-BoxTesters | mit | 11,648 | 356 | codeparrot/github-code |
645fed1039e2208e53095287db7c42903844520cc506d041f34ced5cd3ce6d2c | // 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.
#pragma once
#include "pal_types.h"
#include <curl/curl.h>
enum PAL_CURLMcode : int32_t
{
PAL_CURLM_CALL_MULT... | C | src/Native/System.Net.Http.Native/pal_multi.h | mokchhya/corefx | mit | 2,993 | 106 | codeparrot/github-code |
340ff2f9a975dea5328f539d669dfc16c36636d5bd72bee4846544ffc0d39726 | <?php
$form = Loader::helper('form');
$ih = Loader::helper("concrete/interface");
$valt = Loader::helper('validation/token');
$akName = '';
$akIsSearchable = 1;
$asID = 0;
if (is_object($key)) {
if (!isset($akHandle)) {
$akHandle = $key->getAttributeKeyHandle();
}
$akName = $key->getAttributeKeyName();
$akIsS... | PHP | concrete/elements/attribute/type_form_required.php | clejer/concrete_ | mit | 4,156 | 131 | codeparrot/github-code |
f0935d28d3a1588048335b64ce6b3ab72637b3deea338d8e747100eab0c0ebc7 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals, print_function
import logging
from collections import OrderedDict
import numpy as np
from monty.json import jsanitize
from pymatgen.phonon.bandstructure impo... | Python | pymatgen/phonon/plotter.py | matk86/pymatgen | mit | 15,693 | 457 | codeparrot/github-code |
e7c15fa11bf130c5a25e28c23a6dc4c250ddb79d56694579605f426ae4891730 | /*!
* VERSION: 0.2.1
* DATE: 2017-01-17
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
* This work is subject to the terms at http://greensock.com/standard-license or for
* Club GreenSock members, the software agreement that was issued with your ... | JavaScript | src/themes/theme-hugo-stackrox/scripts/greensock-js-shockingly-green 2/src/commonjs-flat/EaselPlugin.js | alanontheweb/kaldi-hugo-cms-template | mit | 10,530 | 324 | codeparrot/github-code |
aab9a257d59d7d0883163d12c5d0038b0bdd22f73167b31a2c8dab9fce0fae03 | /**
Breaks up a long string
@method breakUp
@for Handlebars
**/
Handlebars.registerHelper('breakUp', function(property, hint, options) {
var prop = Ember.Handlebars.get(this, property, options);
if (!prop) return "";
hint = Ember.Handlebars.get(this, hint, options);
return Discourse.Formatter.breakUp(pr... | JavaScript | app/assets/javascripts/discourse/helpers/application_helpers.js | tadp/learnswift | mit | 9,347 | 342 | codeparrot/github-code |
62cac77660d20159276d4c9ef066eb90c81cbddb808e8e157182c607625ad2eb | //! Implements vertical (lane-wise) floating-point `mul_add`.
macro_rules! impl_math_float_mul_add {
([$elem_ty:ident; $elem_count:expr]: $id:ident | $test_tt:tt) => {
impl $id {
/// Fused multiply add: `self * y + z`
#[inline]
pub fn mul_add(self, y: Self, z: Self) -> S... | Rust | collector/benchmarks/packed-simd/src/api/math/float/mul_add.rs | nrc/rustc-perf | mit | 1,700 | 45 | codeparrot/github-code |
e7b52475914f207540bd00d9c0b8af6ee94793be648d934146a6e929ce427b1b | <?php
/**
* module return as json_encode
* http://www.aa-team.com
* ======================
*
* @author Andrei Dinca, AA-Team
* @version 1.0
*/
function __pspTC_get_image_sizes() {
global $psp, $_wp_additional_image_sizes;
$cache_name = 'psp_tiny_compress_wp_sizes';
$cacheSizes = get_transient( $c... | PHP | wp-content/plugins/premium-seo-pack/modules/tiny_compress/options.php | mandino/nu | mit | 8,450 | 206 | codeparrot/github-code |
d5c5bee96e9fb99e4b41dee0062bd7aaf98534141b6fbdee24da91b281e98e41 | 'use strict'
const assert = require('assert')
const http = require('http')
const https = require('https')
const { kState, kOptions } = require('./symbols')
const {
codes: { FST_ERR_HTTP2_INVALID_VERSION }
} = require('./errors')
function createServer (options, httpHandler) {
assert(options, 'Missing options')
... | JavaScript | ajax/libs/fastify/2.15.3/lib/server.js | cdnjs/cdnjs | mit | 4,813 | 163 | codeparrot/github-code |
bf02dad84ca656e66cee2ef2382b9f63fa3e336e6618b8ae876bb7ead962bbfd | /**
* Copyright (c) 2010-2019 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.... | Java | addons/binding/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/eep/D2_01/D2_01.java | afuechsel/openhab2 | epl-1.0 | 9,134 | 252 | codeparrot/github-code |
4a55d257c8ce790ed5654256dfb5e9b15f2bad9fe7f693b27ddafb9c6f7ff898 | /*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | Java | foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/security/PrivilegedGetMethodParameterTypes.java | RallySoftware/eclipselink.runtime | epl-1.0 | 1,211 | 34 | codeparrot/github-code |
8fa7be1f78e4f181891f0af100b9807e65160b27ed84509fcd864812d9fc7700 | /*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | Java | foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/expressions/SQLUpdateStatement.java | RallySoftware/eclipselink.runtime | epl-1.0 | 4,367 | 107 | codeparrot/github-code |
1759cf381a7b6a0c892ff55cc56c2d2123a6d775946f0de1357301a493be2759 | /*
* Copyright (c) 2015 Cisco Systems, Inc. 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,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.... | Java | opendaylight/md-sal/messagebus-impl/src/main/java/org/opendaylight/controller/config/yang/messagebus/app/impl/MessageBusAppImplModule.java | Johnson-Chou/test | epl-1.0 | 2,549 | 58 | codeparrot/github-code |
f558317f769162e2d7e829f76c01ee9e96564e7dbc8705675000132853f24b29 |
OW_FriendRequest = function( itemKey, params )
{
var listLoaded = false;
var model = OW.Console.getData(itemKey);
var list = OW.Console.getItem(itemKey);
var counter = new OW_DataModel();
counter.addObserver(this);
this.onDataChange = function( data )
{
var newCount = data.get('n... | JavaScript | ow_static/plugins/friends/js/friend_request.js | seret/oxtebafu | gpl-2.0 | 2,629 | 122 | codeparrot/github-code |
3f01a42c95f7327c90053d09d7a207d5fedccf83c1080959a8ea44dae1b9ad68 | <?php
/**
* @package Joomla.Administrator
* @subpackage com_installer
*
* @copyright (C) 2008 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Component\Installer\Administrator\View\Manage;
\defined('_JEXE... | PHP | administrator/components/com_installer/src/View/Manage/HtmlView.php | Fedik/joomla-cms | gpl-2.0 | 2,446 | 119 | codeparrot/github-code |
b342e566391b574b34c844893d7ec0f15ebf6228ce5bc9e498efce02265ab8e2 | /*
* linux/fs/vfat/namei.c
*
* Written 1992,1993 by Werner Almesberger
*
* Windows95/Windows NT compatible extended MSDOS filesystem
* by Gordon Chaffee Copyright (C) 1995. Send bug reports for the
* VFAT filesystem to <chaffee@cs.berkeley.edu>. Specify
* what file operation caused you trouble and... | C | fs/fat/namei_vfat.c | samno1607/CyanPlus | gpl-2.0 | 26,124 | 1,106 | codeparrot/github-code |
da2decdf4b40b20431cecc829430644c27a4089c8c08114d87003b5f7f052994 | /**
* neuroConstruct
* Software for developing large scale 3D networks of biologically realistic neurons
*
* Copyright (c) 2009 Padraig Gleeson
* UCL Department of Neuroscience, Physiology and Pharmacology
*
* Development of this software was made possible with funding from the
* Medical Research Council... | Java | src/ucl/physiol/neuroconstruct/gui/InputRequestElement.java | rgerkin/neuroConstruct | gpl-2.0 | 2,112 | 90 | codeparrot/github-code |
623d01385ee8581abdac98c00f1f2beda24092b902d2a3d2c872723e61dc3b70 | <?php
/**
* HUBzero CMS
*
* Copyright 2005-2015 HUBzero Foundation, 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 restriction, including without limitation the rights
... | PHP | core/plugins/content/formathtml/macros/link.php | kevinwojo/hubzero-cms | gpl-2.0 | 2,750 | 104 | codeparrot/github-code |
dc72d2301710a459affc0c8b8ad3723e1890caaeee1b6cc7e0bc0d8fbaf4e3c9 | // clang-format off
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
https://www.lammps.org/, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of ... | C++ | src/OPENMP/fix_omp.cpp | akohlmey/lammps | gpl-2.0 | 10,683 | 358 | codeparrot/github-code |
978fe576c68fb70c37bf8536097e8ba1d361523599f7e949db47f797479d90d4 | /*
* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* 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 S... | C | target/linux/oxnas/image/boot/u-boot/board/ip860/ip860.c | ff94315/hiwifi-openwrt-HC5661-HC5761 | gpl-2.0 | 8,331 | 357 | codeparrot/github-code |
d93dff6a0124fff7164bd3b1270bfb47e99a9209ac9b9ed7fd924a88a84b77c8 | /*
* Driver for AMBA serial ports
*
* Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
*
* Copyright 1999 ARM Limited
* Copyright (C) 2000 Deep Blue Solutions Ltd.
* Copyright (C) 2010 ST-Ericsson SA
*
* This program is free software; you can redistribute it and/or modify
* it under the ... | C | drivers/tty/serial/amba-pl011.c | harryxue1999/linux | gpl-2.0 | 61,714 | 2,367 | codeparrot/github-code |
e6ce81166b05d5f66c74c24086ec2025758ced7d8b85b041e190c2dab57e181b | /*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "git2/credential_helpers.h"
int git_credential_userpass(
git_credential... | C | src/libgit2/src/transports/credential_helpers.c | ropensci/git2r | gpl-2.0 | 1,894 | 69 | codeparrot/github-code |
5b4c18cfedc925346e4e10c316124fb48e6a9733d4357ae9091c0c0189993332 | /* Copyright (C) 2015-2020 Sergey V. Mikayev
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 2.1 of the License, or
* (at your option) any later version.
*
* ... | C | src/sound/munt/srchelper/srctools/include/LinearResampler.h | TC1995/86Box | gpl-2.0 | 1,446 | 43 | codeparrot/github-code |
c958ea4035857bc63dca9d1cd86b09238e5134f45e5c653a39a8f5675bc23b67 | /*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Code to handle x86 style IRQs plus some generic interrupt stuff.
*
* Copyright (C) 1992 Linus Torvalds
* Copyright (C) 1994 - 2000 Ralf... | C | linux-2.6.x/arch/mips/kernel/irq.c | ipwndev/DSLinux-Mirror | gpl-2.0 | 2,980 | 141 | codeparrot/github-code |
a7ff95fdfbb791c085299dc6711b85a028c036cf89b02dcc9bc49a21b2ebed06 | /*
* Copyright (c) 2010-2011 Atheros Communications Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | C | drivers/net/wireless/ath/ath9k/hw-ops.h | dubkov/backports | gpl-2.0 | 7,347 | 283 | codeparrot/github-code |
4413b2fda5ac826d97f622b41aa170aabf4653ee4c66751c9f83d914452c778f | # -*- coding: utf-8 -*-
#
# papyon - a python client library for Msn
#
# Copyright (C) 2005-2006 Ali Sabil <ali.sabil@gmail.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 ... | Python | papyon/service/description/SingleSignOn/RequestMultipleSecurityTokens.py | billiob/papyon | gpl-2.0 | 4,656 | 123 | codeparrot/github-code |
91021ec1e278c2adffe1b857a57fb15b012affd55a06ec8f9f39439dc60eb21f | /*
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.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 ver... | C++ | src/server/authserver/Main.cpp | SectoR174/alterac-core | gpl-2.0 | 9,308 | 285 | codeparrot/github-code |
8652df071aaa94dad664dcd52532958e197501b5439473902548e4e59e3549a3 | C*PGCONX -- contour map of a 2D data array (non rectangular)
C+
SUBROUTINE PGCONX (A, IDIM, JDIM, I1, I2, J1, J2, C, NC, PLOT)
INTEGER IDIM, JDIM, I1, J1, I2, J2, NC
REAL A(IDIM,JDIM), C(*)
EXTERNAL PLOT
C
C Draw a contour map of an array using a user-supplied plotting
C routine. This rout... | FORTRAN | support/common/pgplot/src/pgconx.f | mads-bertelsen/McCode | gpl-2.0 | 5,388 | 131 | codeparrot/github-code |
96faf90e186f919b551ff416829cf362caa533754a1501f96bf5c5587d01053a | /****************************************************************************
This file is part of the GLC-lib library.
Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
http://glc-lib.sourceforge.net
GLC-lib is free software; you can redistribute it and/or modify
it under the terms of... | C | src/glc_lib/viewport/glc_trackballmover.h | liufangbao/serialport-gyroscope | gpl-2.0 | 3,291 | 95 | codeparrot/github-code |
dc172a88d26c15bc345584ddb3f398296800ce4d99bd8c832f23b94b3a8f3681 | /* vi: set sw=4 ts=4: */
/*
* Mini grep implementation for busybox using libc regex.
*
* Copyright (C) 1999,2000,2001 by Lineo, inc. and Mark Whitley
* Copyright (C) 1999,2000,2001 by Mark Whitley <markw@codepoet.org>
*
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
*/
/* BB_AUDIT SU... | C | release/src/router/busybox/findutils/grep.c | smx-smx/dsl-n55u-bender | gpl-2.0 | 23,707 | 779 | codeparrot/github-code |
09f34c865f076593d1785f7566215b2fa984dd04aa4b87b1a5bff158aa7079dd | /**********************************************************************
Protein - Protein class
Copyright (C) 2009 Tim Vandermeersch
This file is part of the Avogadro molecular editor project.
For more information, see <http://avogadro.cc/>
Avogadro is free software; you can redistribute it and/or modify
... | C++ | libavogadro/src/protein.cpp | psavery/avogadro | gpl-2.0 | 30,592 | 981 | codeparrot/github-code |
cbb9f574bec15611b94436ccacdee0ed34369ef31e028bcb4f337c151bfc8197 | <?php
/**
* The language switcher widget
*
* @since 0.1
*/
class PLL_Widget_Languages extends WP_Widget {
/**
* Constructor
*
* @since 0.1
*/
function __construct() {
parent::__construct(
'polylang',
__( 'Language Switcher', 'polylang' ),
array(
'description' => __( 'Displays a language s... | PHP | wp-content/plugins/polylang/include/widget-languages.php | leadershipdiamond/leadershipdiamond | gpl-2.0 | 4,934 | 158 | codeparrot/github-code |
058d565f6b6beeb24e57b036cabdc801a67dabdf19527998967498f9918b6dae | --エアジャチ
function c84747429.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(84747429,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCost... | Lua | c84747429.lua | mercury233/ygopro-scripts | gpl-2.0 | 2,181 | 58 | codeparrot/github-code |
9b259b80352b414e2222acb1a31ceecc9f3e9d243a033c70f7bfbe931a0fff31 | /* Copyright (c) 2018 Percona LLC and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2 of
the License.
This program is distributed in ... | C | plugin/keyring/common/system_keys_container.h | XeLabs/tokudb | gpl-2.0 | 3,626 | 92 | codeparrot/github-code |
b2b98a921c628742f64f16ab216cf8e23e60be7de053e9b053b215fe5177d0a0 | #!/bin/sh
#
# Git test helpers.
#
# Copyright (c) 2014 Jonas Fonseca <jonas.fonseca@gmail.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 License, or (at your op... | Shell | test/tools/libgit.sh | vojtarylko/tig | gpl-2.0 | 2,511 | 117 | codeparrot/github-code |
f9712b6b857d746e809b7073c6dfa98207a815e6c33acd91099ef2530c853ae4 | /*
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | Java | test/hotspot/jtreg/vmTestbase/nsk/jdi/ThreadReference/currentContendedMonitor/currentcm001.java | md-5/jdk10 | gpl-2.0 | 18,431 | 475 | codeparrot/github-code |
ec382e3b91fe9e8541f7215740db308c10084c21d24f453ffa3e3abd0d2c10db | /*
* Keyboard class input driver for the NVIDIA Tegra SoC internal matrix
* keyboard controller
*
* Copyright (c) 2009-2011, NVIDIA Corporation.
*
* 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 Fou... | C | drivers/input/keyboard/tegra-kbc.c | minghuadev/chromeos-kernel-3-8 | gpl-2.0 | 21,692 | 843 | codeparrot/github-code |
1a7847095c1ba32e94fd328de9487b5b088da88cc81e915495b9719656eded5a | /***************************************************************************
qgscurveeditorwidget.cpp
------------------------
begin : February 2017
copyright : (C) 2017 by Nyall Dawson
email : nyall dot dawson at gmail dot com
******************************... | C++ | src/gui/qgscurveeditorwidget.cpp | geopython/QGIS | gpl-2.0 | 11,754 | 424 | codeparrot/github-code |
e2a5f1791ce6cefa4340a2f4c1b8375d20b741a0ba79ec87b08ce46e611f8f26 | // License: GPL. For details, see LICENSE file.
package org.openstreetmap.josm.gui.widgets;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.beans.PropertyChangeEvent;
import java.beans.Pro... | Java | src/org/openstreetmap/josm/gui/widgets/AbstractTextComponentValidator.java | CURocketry/Ground_Station_GUI | gpl-3.0 | 6,645 | 185 | codeparrot/github-code |
6a8487189e77768d525f5ee50f7f5412db80a3154f47ad94e8a9c68cd4868c39 | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: sdk/core/CCommandsInterface.h
* PURPOSE: Dynamic command manager interface
*
* Multi Theft Auto is available from http://www.multitheftauto... | C | MTA10/sdk/core/CCommandsInterface.h | google-code-export/multitheftauto | gpl-3.0 | 2,272 | 57 | codeparrot/github-code |
45ac9d12ea41952a61c7b24bd4b5d9342358408b6d87989279cb5282740111c8 | package org.ovirt.engine.api.restapi.resource;
import static org.easymock.EasyMock.expect;
import javax.ws.rs.WebApplicationException;
import org.junit.Test;
import org.ovirt.engine.api.model.DiskProfile;
import org.ovirt.engine.core.common.action.DiskProfileParameters;
import org.ovirt.engine.core.common.action.Vdc... | Java | ovirt/3.6_source/backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendDiskProfileResourceTest.java | jtux270/translate | gpl-3.0 | 7,622 | 238 | codeparrot/github-code |
37fb97f3554bb4008ef5d3b1b1abcc81b286997cd43dbae1a6e3b90f699d5d4a | /* matrix/gsl_matrix_char.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman, Brian Gough
*
* 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, ... | C | support/win32/gsl/include/gsl/gsl_matrix_char.h | AndrewBuck/orsa | gpl-3.0 | 11,395 | 343 | codeparrot/github-code |
1a91b863d616741b35d7c551fec58d9f9a9334047755732fd20bad93e0485b91 | /*
* Copyright 2008 Free Software Foundation, Inc.
*
* This software is distributed under the terms of the GNU Public License.
* See the COPYING file in the main directory for details.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as p... | C++ | mysrc/openbtsstuff/GSML1FEC.cpp | r00tb0x/typhon-vx | gpl-3.0 | 8,424 | 274 | codeparrot/github-code |
b65dffea61226db811004922f3b1ddfaf970e3e9cbb42a1c673c6b43c5eb8110 | <?php echo get_header(); ?>
<?php echo get_partial('content_top'); ?>
<?php if ($this->alert->get()) { ?>
<div id="notification">
<div class="container">
<div class="row">
<div class="col-md-12">
<?php echo $this->alert->display(); ?>
</div>
... | PHP | main/views/themes/tastyigniter-orange/account/review_view.php | Delitex/test2 | gpl-3.0 | 2,971 | 93 | codeparrot/github-code |
8482117f76c568482b0753cea1fa3fecc284a72752ff0e99717194785b82b2e4 | /*
===========================================================================
Copyright (c) 2010-2015 Darkstar Dev Teams
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either versi... | C++ | src/map/lua/lua_ability.cpp | AresTao/darkstar | gpl-3.0 | 4,474 | 153 | codeparrot/github-code |
a74854c961f44bd7d5ce69ac8d875f5426ecfd9d92b6da61b691c87639186f38 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2012, Stephen Fromm <sfromm@gmail.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = '''
---
module: group
v... | Python | lib/ansible/modules/group.py | indrajitr/ansible | gpl-3.0 | 19,765 | 657 | codeparrot/github-code |
4b91bfb6e4906716c1d84a910330d285776512f2bb1a2eac00a282db18a9a654 | /*
* This file is subject to the terms and conditions defined in
* file 'license.txt', which is part of this source code package.
*/
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SteamKit2.Internal;
namespace SteamKit2
{
/// <summary>
/// This handler handles all interact... | C# | SteamKit2/Steam/Handlers/SteamFriends/SteamFriends.cs | HellsGuard/ARK-Dedicated-Server-Tool | gpl-3.0 | 32,666 | 839 | codeparrot/github-code |
ecff22d037ff6f2ce7888b357c771455a63d42a7ea3d98185ed7c1d6470be30e | package org.ovirt.engine.core.bll;
import java.util.Collection;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import org.ovirt.engine.core.bll.context.CommandContext;
import org.ovirt.engine.core.common.action.RemoveAllVmImagesParameters;
import org.ovirt.engine.c... | Java | ovirt/3.6_source/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveAllVmImagesCommand.java | jtux270/translate | gpl-3.0 | 5,661 | 128 | codeparrot/github-code |
4438dd2f9eab4d5509841a593fbda0d168495865e42b9d00c71ab3033ae50e78 | #include "flow-stats-in.hh"
namespace vigil {
Flow_stats::Flow_stats(const ofp_flow_stats* ofs)
{
*(ofp_flow_stats*) this = *ofs;
const ofp_action_header* headers = ofs->actions;
size_t n_actions = (ntohs(ofs->length) - sizeof *ofs) / sizeof *headers;
v_actions.assign(headers, headers + n_actions);
}
... | C++ | src/lib/flow-stats-in.cc | zainabg/NOX | gpl-3.0 | 1,114 | 36 | codeparrot/github-code |
4bfa8e1ac18e69f6d6dcb5563187bb940d9028d93159f0dd61780cb3421de9ca | // uniCenta oPOS - Touch Friendly Point Of Sale
// Copyright (c) 2009-2014 uniCenta & previous Openbravo POS works
// http://www.unicenta.com
//
// This file is part of uniCenta oPOS
//
// uniCenta oPOS is free software: you can redistribute it and/or modify
// it under the terms of the GNU General P... | Java | src-data/com/openbravo/data/user/BrowsableData.java | sbandur84/micro-Blagajna | gpl-3.0 | 11,396 | 411 | codeparrot/github-code |
8acf6aad3e3a0e90f89f3a38abb703578647adfd4cfb9e375128fc65f0ecc074 | #region license
// This file is part of Vocaluxe.
//
// Vocaluxe 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 later version.
//
// Vocaluxe i... | C# | VocaluxeLib/Menu/CStatic.cs | Shiroi/Vocaluxe | gpl-3.0 | 7,633 | 244 | codeparrot/github-code |
58e4571e9f981a33c31eefd4adfc4485d26b23be5d881befd65d72677dacfd9e | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//! Utilities to throw exceptions from Rust bindings.
use dom::bindings::codegen::PrototypeList::proto_id_to_name... | Rust | components/script/dom/bindings/error.rs | vks/servo | mpl-2.0 | 8,253 | 227 | codeparrot/github-code |
a065acf79e48fd6ca21204da916d13d7c469eaca9f80720d6fe48851acaa68da |
from openerp.osv import osv, fields
class attributes(osv.Model):
_name = "product.attribute"
def _get_float_max(self, cr, uid, ids, field_name, arg, context=None):
result = dict.fromkeys(ids, 0)
if ids:
cr.execute("""
SELECT attribute_id, MAX(value)
... | Python | website_sale/models/product_characteristics.py | ovnicraft/openerp-restaurant | agpl-3.0 | 3,642 | 88 | codeparrot/github-code |
dfe100ec877e6388c0d89a8f68cc4bc3d73072022a8bc46c7cc5b9660999c344 | //#############################################################################
//# #
//# Copyright (C) <2014> <IMS MAXIMS> #
//# #
... | Java | openmaxims_workspace/ValueObjects/src/ims/emergency/vo/domain/DNWForOutcomeVoAssembler.java | open-health-hub/openMAXIMS | agpl-3.0 | 14,908 | 402 | codeparrot/github-code |
51ed44078e78bcb57f7a2120172e6dfec1a279404567c062b49d749b2a0bc015 | //#############################################################################
//# #
//# Copyright (C) <2014> <IMS MAXIMS> #
//# #
... | Java | openmaxims_workspace/DomainObjects/src/ims/core/admin/pas/domain/objects/AllocatedWardHistory.java | open-health-hub/openMAXIMS | agpl-3.0 | 13,658 | 411 | codeparrot/github-code |
b2ec488f617743cbc3336d6e104d3c1a3e4df9171bc318c278f99a43d40b0997 | /*
* libtcod 1.5.2
* Copyright (c) 2008,2009,2010,2012 Jice & Mingos
* 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
... | C | src/libtcod-1.5.2/src/lex_c.c | yrmvgh/BrogueR | agpl-3.0 | 18,073 | 700 | codeparrot/github-code |
5ba2197adc9326216a426496c20540f03fdc902345e066bd67057030baf49196 | /*
* Copyright (C) 2009-2011 Red Hat, Inc.
*
* 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 l... | C | src/conf/netdev_vport_profile_conf.c | rmarwaha/libvirt1 | lgpl-2.1 | 10,018 | 280 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.