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 |
|---|---|---|---|---|---|---|---|---|
8c0ddc9efc45039083db5e7e35b274725fffc2ed57f7b47a23509546792d3233 | from django import http
from django.apps import apps
from django.conf import settings
from django.contrib import admin
from django.core.exceptions import PermissionDenied
from django.core.files.storage import default_storage as storage
from django.shortcuts import get_object_or_404, redirect
from django.views import de... | Python | src/olympia/zadmin/views.py | kumar303/addons-server | bsd-3-clause | 9,220 | 276 | codeparrot/github-code |
23e9724c76e2f1a6028983fc1662b48dc82d413d885a8a3339cfae2429de69df | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "platform/globals.h"
#if defined(HOST_OS_LINUX)
#include "bin/socket.h"
#include <errno.h> ... | C++ | runtime/bin/socket_linux.cc | dartino/dart-sdk | bsd-3-clause | 6,542 | 229 | codeparrot/github-code |
9291072f990a4433396f050e5a29014ab4d926f213f41ec6efea4065b6e71e1d | <!--
Automatically generated HTML file from DocOnce source
(https://github.com/hplgit/doconce/)
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="DocOnce: https://github.com/hplgit/doconce/" />
<meta name="description" content="Scientific Writing and... | HTML | doc/pub/slides/._scientific_writing-plain040.html | dragly/doconce | bsd-3-clause | 11,223 | 281 | codeparrot/github-code |
4d5ded037b18a953dd62b01e9ac63d00ec49002803f00c3f8eba16cf706b3c0a | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of th... | C++ | src/chrono_vehicle/wheeled_vehicle/utils/ChWheeledVehicleAssembly.cpp | andrewseidl/chrono | bsd-3-clause | 4,240 | 96 | codeparrot/github-code |
3fb2983f081332afe362b2b92e89396e3d030ef8d17654fb815cec56c82463ce | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE563_Unused_Variable__unused_init_variable_int_81.h
Label Definition File: CWE563_Unused_Variable__unused_init_variable.label.xml
Template File: source-sinks-81.tmpl.h
*/
/*
* @description
* CWE: 563 Unused Variable
* BadSource: Initialize data
* Sinks:
* ... | C | xcc/test/juliet/testcases/CWE563_Unused_Variable/CWE563_Unused_Variable__unused_init_variable_int_81.h | JianpingZeng/xcc | bsd-3-clause | 1,224 | 52 | codeparrot/github-code |
bdbd1762d7dbf0695a3d1059403f1f025cb171b3236db7b0ed5dc1ac0e6a8f0f | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE124_Buffer_Underwrite__new_char_ncpy_81a.cpp
Label Definition File: CWE124_Buffer_Underwrite__new.label.xml
Template File: sources-sink-81a.tmpl.cpp
*/
/*
* @description
* CWE: 124 Buffer Underwrite
* BadSource: Set data pointer to before the allocated memory... | C++ | xcc/test/juliet/testcases/CWE124_Buffer_Underwrite/s03/CWE124_Buffer_Underwrite__new_char_ncpy_81a.cpp | JianpingZeng/xcc | bsd-3-clause | 2,630 | 96 | codeparrot/github-code |
5f59ef55cc06684ae912b1abcc70f960b6ea57144cbc5251bde09639897aab73 |
package org.cipres.treebase.util;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Collection;
import org.cipres.treebase.ContextManager;
import org.cipres.treebase.auxdata.AuxData;
import org.cipres.treebase.auxdata.AuxiliaryDataParser;
import... | Java | treebase-core/src/main/java/org/cipres/treebase/util/RepatriateAuthors.java | TreeBASE/treebase | bsd-3-clause | 3,161 | 105 | codeparrot/github-code |
26ec6cdf276296c056ab674952f4c9356dd636fd991d73c6ec66d8b155efa706 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE590_Free_Memory_Not_on_Heap__delete_struct_declare_31.cpp
Label Definition File: CWE590_Free_Memory_Not_on_Heap__delete.nonpointer.label.xml
Template File: sources-sink-31.tmpl.cpp
*/
/*
* @description
* CWE: 590 Free Memory Not on Heap
* BadSource: declare Da... | C++ | xcc/test/juliet/testcases/CWE590_Free_Memory_Not_on_Heap/s03/CWE590_Free_Memory_Not_on_Heap__delete_struct_declare_31.cpp | JianpingZeng/xcc | bsd-3-clause | 2,808 | 106 | codeparrot/github-code |
6a00e7c0cd969cc2e06114f64e4eca74e316bfb8d5d65609da592cea95d16d88 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE415_Double_Free__malloc_free_wchar_t_54c.c
Label Definition File: CWE415_Double_Free__malloc_free.label.xml
Template File: sources-sinks-54c.tmpl.c
*/
/*
* @description
* CWE: 415 Double Free
* BadSource: Allocate data using malloc() and Deallocate data using... | C | xcc/test/juliet/testcases/CWE415_Double_Free/s01/CWE415_Double_Free__malloc_free_wchar_t_54c.c | JianpingZeng/xcc | bsd-3-clause | 1,597 | 53 | codeparrot/github-code |
427ccaee9dcb95573f0399c7999e9ca0ad4a5ced8606e223934aaa5ce16fa031 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE124_Buffer_Underwrite__new_wchar_t_memcpy_16.cpp
Label Definition File: CWE124_Buffer_Underwrite__new.label.xml
Template File: sources-sink-16.tmpl.cpp
*/
/*
* @description
* CWE: 124 Buffer Underwrite
* BadSource: Set data pointer to before the allocated mem... | C++ | xcc/test/juliet/testcases/CWE124_Buffer_Underwrite/s03/CWE124_Buffer_Underwrite__new_wchar_t_memcpy_16.cpp | JianpingZeng/xcc | bsd-3-clause | 3,595 | 125 | codeparrot/github-code |
4a3c66ebc0290ac3e19f024656a00ea634cdf5c457595c807e0e8aea944757a5 | <?php
/*
* FileSender www.filesender.org
*
* Copyright (c) 2009-2014, AARNet, Belnet, HEAnet, SURFnet, UNINETT
* 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 so... | PHP | includes/ConfigValidation.php | jornane/filesender | bsd-3-clause | 4,658 | 119 | codeparrot/github-code |
e09347405c8013ba17750c32646e24e0e4bbc0a4820285b4da33382593a9258a | // Copyright 2014, Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package etcdtopo
import (
"flag"
"path"
"strings"
"github.com/youtube/vitess/go/flagutil"
topodatapb "github.com/youtube/vitess/go/vt/proto/topodata"
"git... | GO | go/vt/etcdtopo/config.go | guokeno0/vitess | bsd-3-clause | 3,430 | 115 | codeparrot/github-code |
3cf44777f44bbc0c3ad1268d22943715f129929a3db6f61c68642591525b1daf | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE23_Relative_Path_Traversal__char_listen_socket_ofstream_84_goodG2B.cpp
Label Definition File: CWE23_Relative_Path_Traversal.label.xml
Template File: sources-sink-84_goodG2B.tmpl.cpp
*/
/*
* @description
* CWE: 23 Relative Path Traversal
* BadSource: listen_soc... | C++ | xcc/test/juliet/testcases/CWE23_Relative_Path_Traversal/s02/CWE23_Relative_Path_Traversal__char_listen_socket_ofstream_84_goodG2B.cpp | JianpingZeng/xcc | bsd-3-clause | 1,545 | 44 | codeparrot/github-code |
b23733cc74663c658123bf596453ef1375881c0a4ae83fe44005415b71db4350 | var Backbone = require('backbone');
var _ = require('underscore');
var QueryColumnModel = require('./query-column-model');
module.exports = Backbone.Collection.extend({
model: function (attrs, opts) {
var self = opts.collection;
return new QueryColumnModel(attrs, {
configModel: self._configModel,
... | JavaScript | lib/assets/javascripts/cartodb3/data/query-columns-collection.js | splashblot/dronedb | bsd-3-clause | 1,944 | 79 | codeparrot/github-code |
d6d4a39a7d0c2e5edd067a1d448bf012767de9533a7727ac6c4168a71f8f2ddc | /*
*
* University of Luxembourg
* Laboratory of Algorithmics, Cryptology and Security (LACS)
*
* FELICS - Fair Evaluation of Lightweight Cryptographic Systems
*
* Copyright (C) 2015 University of Luxembourg
*
* Written in 2015 by Daniel Dinu <dumitru-daniel.dinu@uni.lu>
*
* This file is part of FELICS.
*
*... | C | src/C/FELICS/block_ciphers/source/ciphers/SPARX_128_128_v24/source/encrypt.c | GaloisInc/hacrypto | bsd-3-clause | 13,008 | 598 | codeparrot/github-code |
769291708a6038847175fe3fb41a1a943674480bc622dde35a571cff31de66d5 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__char_rand_multiply_68b.c
Label Definition File: CWE190_Integer_Overflow.label.xml
Template File: sources-sinks-68b.tmpl.c
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: rand Set data to result of rand()
* GoodSource: Set ... | C | xcc/test/juliet/testcases/CWE190_Integer_Overflow/s01/CWE190_Integer_Overflow__char_rand_multiply_68b.c | JianpingZeng/xcc | bsd-3-clause | 2,383 | 73 | codeparrot/github-code |
f6637c2dfa7931905eafd00c3de63d12fd1c50faaeb7d46ee03866be6a1f0e6c | @ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
set I18NSPHINXOPTS=%SPHINXOPTS% .
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
set I18N... | Batchfile | docs/make.bat | voxelbrain/dibble | bsd-3-clause | 5,096 | 191 | codeparrot/github-code |
0ddfc807194d716e8f16908f742a407d196f9599a3d215c66c721ed8a28f0593 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE789_Uncontrolled_Mem_Alloc__new_wchar_t_connect_socket_68a.cpp
Label Definition File: CWE789_Uncontrolled_Mem_Alloc__new.label.xml
Template File: sources-sinks-68a.tmpl.cpp
*/
/*
* @description
* CWE: 789 Uncontrolled Memory Allocation
* BadSource: connect_soc... | C++ | xcc/test/juliet/testcases/CWE789_Uncontrolled_Mem_Alloc/s02/CWE789_Uncontrolled_Mem_Alloc__new_wchar_t_connect_socket_68a.cpp | JianpingZeng/xcc | bsd-3-clause | 6,927 | 248 | codeparrot/github-code |
8cce7f3618a97fbf76dd2db8620625fc811482e7a6a3e3245f746d4b624cc617 | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBitmapCache.h"
#include "SkBitmapProcState.h"
#include "SkColorPriv.h"
#include "SkFilterProc.h"
#include "SkPaint.h"
#include "SkShader.h" // for tilemodes
#inc... | C++ | third_party/skia/src/core/SkBitmapProcState.cpp | CTSRD-SOAAP/chromium-42.0.2311.135 | bsd-3-clause | 36,660 | 1,043 | codeparrot/github-code |
86564e7db62a4a03345937a793d22e18b9429814ecb8cdf6e2e36f3c3f9aeace | <?php
/**
* osCommerce Online Merchant
*
* @copyright Copyright (c) 2011 osCommerce; http://www.oscommerce.com
* @license BSD License; http://www.oscommerce.com/bsdlicense.txt
*/
namespace osCommerce\OM\Core\Site\Admin\Module\OrderTotal;
use osCommerce\OM\Core\OSCOM;
class Tax extends \osCommerce\OM\Core... | PHP | osCommerce/OM/Core/Site/Admin/Module/OrderTotal/Tax.php | haraldpdl/oscommerce | bsd-3-clause | 2,046 | 57 | codeparrot/github-code |
3938d9590ab50f38dd9e4defc54fe0a481b6e424b02380abd984330f3a76c117 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkDijkstraGraphGeodesicPath.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... | C | graphics/VTK-7.0.0/Filters/Modeling/vtkDijkstraGraphGeodesicPath.h | hlzz/dotfiles | bsd-3-clause | 5,071 | 147 | codeparrot/github-code |
0a293b5113b3125f3ade2f06d945f01d1b1f7b99ec0317a72c2d7a6960a9f7f0 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__new_array_delete_class_54e.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_array_delete.label.xml
Template File: sources-sinks-54e.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory ... | C++ | xcc/test/juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s04/CWE762_Mismatched_Memory_Management_Routines__new_array_delete_class_54e.cpp | JianpingZeng/xcc | bsd-3-clause | 1,616 | 54 | codeparrot/github-code |
454a167be3338b08b1569dd7a250f4f8afd89ed6ac59719f3762a1f16f334fe7 | <?php
/*
* ircPlanet Services for ircu
* Copyright (c) 2005 Brian Cline.
* 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 copyrig... | PHP | Channel/db_badchan.php | briancline/googlecode-ircplanet | bsd-3-clause | 2,343 | 59 | codeparrot/github-code |
0a54d6d39b4f8298a075f446eb1323da43c4d16238433a9f672ea09360752986 | /**
* Created by Mauriel on 3/9/2017.
*/
// Disable carousel auto slide
$('.carousel').carousel({
interval: 10000
});
$.fn.visible = function (partial) {
var $t = $(this),
$w = $(window),
viewTop = $w.scrollTop(),
viewBottom = viewTop + $w.height(),
_top = $t.of... | JavaScript | theme/static/js/home-page.js | RENCI/xDCIShare | bsd-3-clause | 1,431 | 58 | codeparrot/github-code |
54b78f9320f64cce604c6a0b08ecf0794c5c008c3d9f0fb9f721b9c298f2fdd5 | package org.basex.util;
import static org.junit.Assert.*;
import org.basex.util.hash.*;
import org.basex.util.list.*;
import org.junit.*;
/**
* Token set tests.
*
* @author BaseX Team 2005-15, BSD License
* @author Christian Gruen
*/
public class TokenSetTest {
/** Number of tests. */
private static final i... | Java | basex-core/src/test/java/org/basex/util/TokenSetTest.java | ksclarke/basex | bsd-3-clause | 1,765 | 63 | codeparrot/github-code |
d6c370c41988b4707906ed8f479e47b5fd766d61b9718b891bb1efb73170d7d6 | // Scintilla source code edit control
/** @file SparseVector.h
** Hold data sparsely associated with elements in a range.
**/
// Copyright 2016 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#ifndef SPARSEVECTOR_H
#define SPARSEVEC... | C | update_notifier/thirdparty/wxWidgets/src/stc/scintilla/src/SparseVector.h | ric2b/Vivaldi-browser | bsd-3-clause | 5,698 | 187 | codeparrot/github-code |
e9afc655124d2d0f30979f4e9413a2cbf46090c18ac1fce68bce684a3de6fc72 | package org.basex.query.expr.constr;
import static org.basex.query.QueryText.*;
import org.basex.query.*;
import org.basex.query.expr.*;
import org.basex.query.value.node.*;
import org.basex.util.*;
/**
* Node constructor.
*
* @author BaseX Team 2005-15, BSD License
* @author Christian Gruen
*/
public abstract ... | Java | basex-core/src/main/java/org/basex/query/expr/constr/CNode.java | ksclarke/basex | bsd-3-clause | 1,195 | 53 | codeparrot/github-code |
a084df379f86de484efe8ecacb5a6f8b9c8f20a77e9a17b388166c48cde20c52 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE401_Memory_Leak__int64_t_realloc_61a.c
Label Definition File: CWE401_Memory_Leak.c.label.xml
Template File: sources-sinks-61a.tmpl.c
*/
/*
* @description
* CWE: 401 Memory Leak
* BadSource: realloc Allocate data using realloc()
* GoodSource: Allocate data on... | C | xcc/test/juliet/testcases/CWE401_Memory_Leak/s01/CWE401_Memory_Leak__int64_t_realloc_61a.c | JianpingZeng/xcc | bsd-3-clause | 2,629 | 97 | codeparrot/github-code |
9331d158af36f5f629b9f26cfe61fab33828fb372123ae7ec5a95e8028fdbb6c | /*
* Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
* Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Softwa... | C | third_party/WebKit/Source/core/svg/SVGPathElement.h | ds-hwang/chromium-crosswalk | bsd-3-clause | 2,539 | 77 | codeparrot/github-code |
ac95bcef771e9521963fb703596bab2830a54b7b609da4b2d3fbf0c5823c25db | /*global assert*/
'use strict';
import mapSequence from '../mapSequence';
function* generator(data) {
for (var i = 0; i < data.length; i++) {
yield data[i];
}
}
export var testMapSequence = {
'from array': function() {
assert.deepEqual(mapSequence([1,2,3], x => x * 3), [3,6,9]);
},
'from array-lik... | JavaScript | src/_internals/__tests__/mapSequence-test.js | aureooms/JSNetworkX | bsd-3-clause | 802 | 40 | codeparrot/github-code |
419cfd8160e77f29b54a1b54548d55ce352cbcfa934db1d70eaba4c752569890 | using System;
using System.Linq;
using log4net;
using Orchard.Data;
using Orchard.Logging;
using Orchard.Recipes.Events;
using Orchard.Recipes.Models;
namespace Orchard.Recipes.Services {
public class RecipeManager : Component, IRecipeManager {
private readonly IRecipeStepQueue _recipeStepQueue;... | C# | src/Orchard.Web/Modules/Orchard.Recipes/Services/RecipeManager.cs | arminkarimi/Orchard | bsd-3-clause | 2,550 | 64 | codeparrot/github-code |
1ec720e9bfc1250c08899725a9a13cd54be9de5f13d41b44422393b581f39697 | {-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TupleSections #-}
-- | Resolving a build plan for... | Haskell | src/Stack/BuildPlan.hs | AndrewRademacher/stack | bsd-3-clause | 47,672 | 1,109 | codeparrot/github-code |
50e56d4365629d5665bdc7e006956e70b5105da6d103e839831f2cca52b0976d | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
/**
* @fileoverview Provides the ObjectCollection class.
*/
base.require('base.range');
base.require('base.sorted_array_utils');
base... | JavaScript | chromium/src/third_party/trace-viewer/src/tracing/trace_model/object_collection.js | windyuuy/opera | bsd-3-clause | 5,975 | 188 | codeparrot/github-code |
c8288146eb93318d65333c4ace351879488241309ca628307f1a14a6f0dcf3d4 | #ifndef COIN_SCXMLASSIGNELT_H
#define COIN_SCXMLASSIGNELT_H
/**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted ... | C | include/Inventor/scxml/ScXMLAssignElt.h | Alexpux/Coin3D | bsd-3-clause | 3,114 | 83 | codeparrot/github-code |
99817ee4d0dae9e9db915164f59ac6c8059e41608f79587300c9843658bc573d | using System.Text.RegularExpressions;
namespace SQLCC.Core.Helpers
{
public class DataScrubber
{
private readonly DbTraceCodeFormatter _traceCodeFormatter;
public DataScrubber(DbTraceCodeFormatter traceCodeFormatter)
{
_traceCodeFormatter = traceCodeFormatter;
}
... | C# | SQLCC.Core/Helpers/DataScrubber.cs | jbarker7/sqlcc | bsd-3-clause | 1,384 | 42 | codeparrot/github-code |
b517a81607ba0e67f8cb10f954485958d68fafc5c76af88df6fe987fc6e564f4 | /*
Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
Copyright (C) 2008 Apple Inc. All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; eith... | C | chromium/src/third_party/WebKit/Source/core/plugins/DOMMimeTypeArray.h | windyuuy/opera | bsd-3-clause | 1,861 | 55 | codeparrot/github-code |
ebe7163ce74df6400839268abe8f308a29687ccbb51517297fae8fc44feecbfd | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/policy/cloud/user_info_fetcher.h"
#include "base/json/json_reader.h"
#include "base/logging.h"
#include "base/strings/string... | C++ | chrome/browser/policy/cloud/user_info_fetcher.cc | cvsuser-chromium/chromium | bsd-3-clause | 3,244 | 90 | codeparrot/github-code |
17ec3fce943c227dc846f62d01c16cd6efbc0261a63e3c414c42f5d3fd0ea52f | from __future__ import division, print_function, absolute_import
import threading
import warnings
from . import _minpack
import numpy as np
from numpy import (atleast_1d, dot, take, triu, shape, eye,
transpose, zeros, product, greater, array,
all, where, isscalar, asarray, inf, a... | Python | scipy/optimize/minpack.py | Eric89GXL/scipy | bsd-3-clause | 33,497 | 896 | codeparrot/github-code |
85d07dd3bbf96507afcba39dbd47c88867b0e3011ed96d03a6b753e7fd10d166 | /*****************************************************************************
*
* Copyright (c) 2010-2011, the Trustees of Indiana University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:... | C | Modeling/ParabolicRamp.h | bbgw/Klampt | bsd-3-clause | 7,114 | 173 | codeparrot/github-code |
ec87e6b8e5284fde71667401c60c60f1345215c8126539c222950cbde9613cfc | // 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.
#ifndef MEDIA_BASE_WIN_MF_HELPERS_H_
#define MEDIA_BASE_WIN_MF_HELPERS_H_
#include <mfapi.h>
#include <stdint.h>
#include <wrl/client.h>
#include "base/... | C | media/base/win/mf_helpers.h | scheib/chromium | bsd-3-clause | 3,858 | 97 | codeparrot/github-code |
e02162d43cec6ea58d5dff67b0219a9d547514bff2dcc0878d934d7edeadcee5 | /*
* This file is part of the Soletta Project
*
* Copyright (C) 2015 Intel Corporation. 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 ... | C | src/lib/common/sol-platform.c | ceolin/soletta | bsd-3-clause | 11,542 | 460 | codeparrot/github-code |
fc062b52be0e83e6c87126668c60aa56e6ffd86952599a1e39f1c94d1f58c608 |
create or replace function pgq_ext.set_batch_done(
a_consumer text,
a_subconsumer text,
a_batch_id bigint)
returns boolean as $$
-- ----------------------------------------------------------------------
-- Function: pgq_ext.set_batch_done(3)
--
-- Marks a batch as "done" for certain consumer and subco... | SQL | sql/pgq_ext/functions/pgq_ext.set_batch_done.sql | tarvip/skytools | isc | 2,039 | 71 | codeparrot/github-code |
b9bf4819d58e096b67bdbaf4070cb1721e3441b2614a62832eec267e6f5721dc | import { Version } from '@microsoft/sp-core-library';
import {
BaseClientSideWebPart,
IPropertyPaneConfiguration,
PropertyPaneTextField
} from '@microsoft/sp-webpart-base';
import { escape } from '@microsoft/sp-lodash-subset';
import styles from './ModernThemeManagerWebPart.module.scss';
import * as strings from... | TypeScript | samples/js-theme-manager-2019/src/webparts/modernThemeManager/ModernThemeManagerWebPart.ts | AJIXuMuK/sp-dev-fx-webparts | mit | 14,557 | 413 | codeparrot/github-code |
e4699617207ea6fab3b7c6d18e7b791628a7fef798c166b77efd16c5d53fe912 | <?php
/**
* @copyright 2014 Integ S.A.
* @license http://opensource.org/licenses/MIT The MIT License (MIT)
* @author Javier Lorenzana <javier.lorenzana@gointegro.com>
* @author Juan Deladoey <juan.deladoey@gointegro.com>
*/
namespace GoIntegro\Hateoas\Http;
/**
* Simple HTTP client.
* @see http://php.net/manua... | PHP | Http/Client.php | skqr/hateoas | mit | 5,357 | 214 | codeparrot/github-code |
e49476175b2b8676531e621eb4814395c79f960637fc0fb76e02bf0c41316f00 | /**
* @license
* Copyright Google Inc. 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 {APP_INITIALIZER, ApplicationInitStatus} from './application_init';
import {ApplicationRef} from './applicati... | TypeScript | packages/core/src/application_module.ts | Toxicable/angular | mit | 4,885 | 136 | codeparrot/github-code |
9d4f4fba45092911cbaeee8af2b23d79fabc135645b13ff6b4eb90556d0bd112 | // -------------------------------
// Copyright (c) Corman Technologies Inc.
// See LICENSE.txt for license information.
// -------------------------------
//
// File: MemoryReport.cpp
// Contents: Process (stack/memory) report for Corman Lisp.
// Used to diagnose memory violations and ot... | C++ | CormanLispServer/src/MemoryReport.cpp | arbv/cormanlisp | mit | 40,971 | 1,230 | codeparrot/github-code |
7334254ed722bff3b8c59a278c864769a5ceac077b6ad0949637b67883b57c5e | define(function (require) {
describe("removeEventListener tests", function () {
var removeEventListener = require("src/modules/helpers/remove_event_listener");
var events = require("src/modules/component/events/events");
var clickFunction1 = function () { console.log("click function 1"); };
var clickF... | JavaScript | test/unit/specs/modules/helpers/remove_event_listener.js | stormpython/jubilee | mit | 1,448 | 46 | codeparrot/github-code |
26d6752ec660dc6de0866192a30a4712cb3df9d7fceba6d14d484a554a8ca6ec | /*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const { ConcatSource } = require("webpack-sources");
const Template = require("../Template");
const propertyAccess = require("../util/propertyAccess");
const AbstractLibraryPlugin = require("./AbstractLib... | JavaScript | lib/library/ModuleLibraryPlugin.js | webpack/webpack | mit | 3,081 | 105 | codeparrot/github-code |
f9899c0b5b7652b691283aef587fef34e1c3b22b7c4ccba20a12380538cdc2d6 | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>AdminLTE 2 | Fixed Layout</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.4 -->
<link href="... | HTML | pages/layout/fixed.html | hfl/ALTEonRails | mit | 26,771 | 577 | codeparrot/github-code |
4b05b685225ac077542a51a97f647f05fb2c4adb5ec47cb76db69fe3c6c1eceb | <?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\Behat\Page\Shop\Cart;
use Behat\Mink\Exception\ElementNotFoundException;
use Sylius\... | PHP | src/Sylius/Behat/Page/Shop/Cart/SummaryPage.php | steffenbrem/Sylius | mit | 8,336 | 314 | codeparrot/github-code |
9ea969a4d3dab8374938c0bf3471e14e391f00875f108e0e861d54c5d00e4c08 | <?php namespace Sorskod\Larasponse;
use Illuminate\Support\ServiceProvider;
class LarasponseServiceProvider extends ServiceProvider {
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
/**
* Register the service provider.
*
... | PHP | src/Sorskod/Larasponse/LarasponseServiceProvider.php | brendan-roche/larasponse | mit | 784 | 36 | codeparrot/github-code |
e9b676d1f2ed6843be808e5276899a88440a8fb15d22aa46c4682b86fd70e040 | #!/bin/bash
RM_DIR=${PREFIX}/share/RepeatMasker
RM_OTHER_PROGRAMS="DateRepeats DupMasker ProcessRepeats RepeatProteinMask util/queryRepeatDatabase.pl util/queryTaxonomyDatabase.pl util/rmOutToGFF3.pl util/calcDivergenceFromAlign.pl util/createRepeatLandscape.pl util/dupliconToSVG.pl util/getRepeatMaskerBatch.pl util/r... | Shell | recipes/repeatmasker/build.sh | Luobiny/bioconda-recipes | mit | 2,729 | 63 | codeparrot/github-code |
b722b5617921d3701e7142b902fd7289d1bd701f17010ff388e1595ad4fdb7d9 | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2010-2017 Intel Corporation
*/
#include <string.h>
#include <stdio.h>
#include <rte_common.h>
#include <rte_malloc.h>
#include <rte_log.h>
#include "rte_table_hash.h"
#include "rte_lru.h"
#define KEY_SIZE 8
#define KEYS_PER_BUCKET 4
#ifdef RTE_TABL... | C | lib/table/rte_table_hash_key8.c | john-mcnamara-intel/dpdk | mit | 31,007 | 1,153 | codeparrot/github-code |
dd047cd405959613942e0d200810e3c09bace8e91c139322e094608100c0c35c | /* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2013, ITU/ISO/IEC
* All rights reser... | C++ | source/Lib/TLibCommon/TComSampleAdaptiveOffset.cpp | daewook/video_compression | mit | 42,206 | 1,506 | codeparrot/github-code |
afda274f02cd65bafe715695a1dd742fe75cac590a74f4d713c9b93eb449536d | import {routes as routeArray} from '../config'
import React from 'react'
import Debug from 'debug'
let debug = Debug('keystone:pages:component:util');
// build a route object
let routes = {}
for (let v of routeArray) {
routes[v.path] = v
}
export function getFileName(url) {
/**
* return an object with filename ... | JavaScript | public/systemjs/app/common/util.js | snowkeeper/keystonejs-site | mit | 2,632 | 87 | codeparrot/github-code |
fd7b1aae944cf9e8b8003da28f70bd8a6f9e6cf59deabe73a29a3a0f17c67a4d | /*
* Licensed to the University Corporation for Advanced Internet Development,
* Inc. (UCAID) under one or more contributor license agreements. See the
* NOTICE file distributed with this work for additional information regarding
* copyright ownership. The UCAID licenses this file to You under the Apache
* Lic... | Java | kombit-opensaml-2.5.1/src/org/opensaml/saml2/metadata/impl/ServiceNameUnmarshaller.java | Safewhere/kombit-web-java | mit | 2,437 | 66 | codeparrot/github-code |
1b10e985e876795ae403cf6ede33487f965789922a31e5ea24ba367d1da6dc0f | L.Control.Sidebar = L.Control.extend({
includes: L.Mixin.Events,
options: {
closeButton: true,
position: 'left',
autoPan: true,
},
initialize: function (placeholder, options) {
L.setOptions(this, options);
// Find content container
var content = this._... | JavaScript | client/ferramenta/js/leaflet-sidebar.js | paulovieira/aps | mit | 5,325 | 183 | codeparrot/github-code |
199f492a3ff8d302829f2b01fce4aaabbf623b9406bd48b483480d59976805c5 | 'use strict';
var URL_REGEXP = /^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/;
var EMAIL_REGEXP = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/;
var NUMBER_REGEXP = /^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/;
var inputType = {
/**
* @ngdoc inputType
* @name ng.directive... | JavaScript | src/ng/directive/input.js | romiem/angular.js | mit | 45,592 | 1,303 | codeparrot/github-code |
07866aed2409eeb6d7af68fb5ebbb17eaa56b887ad8c93a373c48f840a4a5bcf | <?php
namespace TYPO3\Flow\Command;
/*
* This file is part of the TYPO3.Flow package.
*
* (c) Contributors of the Neos Project - www.neos.io
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with this
* source code.
*/... | PHP | TYPO3.Flow/Classes/TYPO3/Flow/Command/ResourceCommandController.php | chewbakartik/flow-development-collection | mit | 13,529 | 320 | codeparrot/github-code |
58a095bfd93f498225b2a7bc2564a9a4cb4e4dbfb1a407fd5f3524d04dd43271 | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | JavaScript | src/ngLocale/angular-locale_dje.js | mikec/angular.js | mit | 2,393 | 121 | codeparrot/github-code |
eddf274c9de9a21550c7e69c67a1655b93c7a4399658968312d660843158bf28 | namespace DanTup.DartVS.ProjectSystem.PropertyPages
{
using CultureInfo = System.Globalization.CultureInfo;
using Guid = System.Guid;
using Version = System.Version;
using VSCOMPONENTTYPE = Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTTYPE;
public class ComponentSelectorData
{
/// <summary>
/// String co... | C# | DanTup.DartVS.Vsix/ProjectSystem/PropertyPages/ComponentSelectorData.cs | modulexcite/DartVS | mit | 1,594 | 92 | codeparrot/github-code |
7a21a59b269a0e826ef425754b7d29b480de53d41b510f33e6873e7b9a593138 | var React = require('react');
var joinClasses = require('./utils/joinClasses');
var classSet = require('./utils/classSet');
var BootstrapMixin = require('./BootstrapMixin');
var constants = require('./constants');
var Glyphicon = React.createClass({displayName: 'Glyphicon',
mixins: [BootstrapMixin],
propTypes: {
... | JavaScript | Glyphicon.js | Cellule/react-bootstrap-tmp | mit | 820 | 33 | codeparrot/github-code |
53504b9e6d9926aaaeeb7e35dfa7eaaa590c67a04972cd2b42b9aacc41c52e37 | Basic Thresholding Operations {#tutorial_threshold}
=============================
Goal
----
In this tutorial you will learn how to:
- Perform basic thresholding operations using OpenCV function @ref cv::threshold
Cool Theory
-----------
@note The explanation below belongs to the book **Learning OpenCV** by Brads... | Markdown | opencv/doc/tutorials/imgproc/threshold/threshold.markdown | zzjkf2009/Midterm_Astar | mit | 6,443 | 158 | codeparrot/github-code |
6a260c8088232a4d66d229325e3d44ede9521e79c40c7b8918dc537931585a8a | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
namespace ODataValidator.Rule
{
#region Namespaces
using System;
using System.ComponentModel.Composition;
using System.Web;
using OD... | C# | src/CodeRules/Feed/FeedCore2005.cs | OData/ValidationTool | mit | 6,481 | 236 | codeparrot/github-code |
bbea25edfeb73a253e7baf0a709bf558af3efd73a67e025ae900fd2c86e052f7 | # Time: O(logn)
# Space: O(1)
#
# Follow up for "Search in Rotated Sorted Array":
# What if duplicates are allowed?
#
# Would this affect the run-time complexity? How and why?
#
# Write a function to determine if a given target is in the array.
#
class Solution(object):
def search(self, nums, target):
"... | Python | Python/search-in-rotated-sorted-array-ii.py | yiwen-luo/LeetCode | mit | 1,138 | 41 | codeparrot/github-code |
8739d77385083ec439d241e6e500901708e95bb70601921977377dbe69045e93 | #ifndef _VALUES_LIST_H
#define _VALUES_LIST_H
#include <QWidget>
#include <QString>
#include <QList>
#include <QModelIndex>
#include <QItemDelegate>
class QTreeWidget;
class QTreeWidgetItem;
class Values_delegate : public QItemDelegate
{
Q_OBJECT
public:
Values_delegate(QWidget* parent);
signals:
void new_col... | C | external/CGAL-4.4-beta1/demo/Surface_mesher/values_list.h | alexandrustaetu/natural_editor | mit | 1,991 | 80 | codeparrot/github-code |
83ff7deaa21d5843a37158b09e789f321f2d276a34157c570ee81da2d6c91e7b | <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width,height=device-height,user-scalable=no,maximum-scale=1.0,initial-scale=1.0" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> <!-- ISO-8859-1 -->
<title>Cordova Mobile Spec</title>
<link rel="styleshee... | HTML | phonegap/2.6.0/windows8/test/events/index.html | OneMoreCheckin/mobile-app | mit | 4,077 | 90 | codeparrot/github-code |
e591492fa0e0082d31c094982ee8c0d72fa5356d4cc2804c3d928665e56c9fc5 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bundle\FrameworkBundle\Templating;
@trigger_error('The '.PhpEng... | PHP | src/Symfony/Bundle/FrameworkBundle/Templating/PhpEngine.php | Taluu/symfony | mit | 2,275 | 83 | codeparrot/github-code |
fa078f6c56d0d30b7e41dc2408a4139cef0e65e646081694e70c58d16e3f11cb | namespace Moviq.Controllers
{
using Moviq.Interfaces.Services;
using Nancy;
using Nancy.Authentication.Forms;
using Nancy.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
public class AuthModule : NancyModule
{
public ... | C# | dotnet/Moviq/Controllers/AuthModule.cs | losandes/Heinz95729 | mit | 1,288 | 46 | codeparrot/github-code |
9388617508100896318042f79111734493cdc4ec5f0aa38cea9d94d605b543a7 | #!/usr/bin/env python
# Standard packages
import sys
import cyvcf2
import argparse
import geneimpacts
from cyvcf2 import VCF
def get_effects(variant, annotation_keys):
effects = []
effects += [geneimpacts.SnpEff(e, annotation_keys) for e in variant.INFO.get("ANN").split(",")]
return effects
def get_t... | Python | specialist/scan_multi-gene_annotated_snpEff.py | GastonLab/ddb-scripts | mit | 1,956 | 69 | codeparrot/github-code |
a788d9ee13e16f3926ca86e8b84af877ddc43637037bbf311625b2aac8664056 | ///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2010) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... | C++ | src/CompressedSequence.cc | bayolau/discovar | mit | 2,223 | 68 | codeparrot/github-code |
3e35390a5bc3cc72bc7081cc1db6336bf98386b307402d026223fef1ccb0b310 | namespace SimpleInjector.CodeSamples
{
using System;
using System.Threading;
using SimpleInjector.Advanced;
public static class PerResolveLifestyleExtensions
{
public static void EnablePerResolveLifestyle(this ContainerOptions options)
{
PerResolveLifestyle.EnablePerRe... | C# | SimpleInjector.CodeSamples/PerResolveLifestyle.cs | jamesqo/SimpleInjector | mit | 2,593 | 89 | codeparrot/github-code |
ca19fad3e432f0ff379e10237a782ad159b6fe14340b70721c1fc37719313cde | define([
"dojo",
"dijit",
"dojox",
"dijit/_editor/_Plugin",
"dijit/_editor/html",
"dojo/_base/connect",
"dojo/_base/declare"
], function(dojo, dijit, dojox, _Plugin, editorHtml) {
dojo.declare("dojox.editor.plugins.NormalizeStyle", _Plugin,{
// summary:
// This plugin provides NormalizeStyle capability to th... | JavaScript | lobtool/src/main/webapp/resources/javascript/dojox/editor/plugins/NormalizeStyle.js | synico/springframework | mit | 16,542 | 563 | codeparrot/github-code |
ec7b8bc0542a1bd2d0306fbae923f4c0c50aa45de020c598f8e9afbec146337b | // This sample program demonstrates how to create customized loggers.
package main
import (
"io"
"io/ioutil"
"log"
"os"
)
var (
Trace *log.Logger // Just about anything
Info *log.Logger // Important information
Warning *log.Logger // Be concerned
Error *log.Logger // Critical problem
)
func init() {
... | GO | src/goinaction/chapter8/listing11/listing11.go | a233894432/Golang-lesson | mit | 1,034 | 48 | codeparrot/github-code |
a867eaff6f17b29caec0a8f5582f9392b580c720e879f142c9c00e0d3dc6899f | 'use strict';
import parseLogs from '../client/parse-logs';
describe('parseLogs', function () {
let logs = function () {
return `
Running target/debug/lib-a8870084aab755f9
running 5 test
test tests::some_test ... ok
test tests::some_other_test ... ok
test tests::just_another_... | JavaScript | specs/parse-logs-spec.js | yggie/mach-test-browser | mit | 758 | 31 | codeparrot/github-code |
85b1e3b38d3ed35a266cb89d5bda2681324eb8344b78ab8194d92d28e7e8b247 | /* global menu */
let isLoading;
let filterText = '';
let usernamesFromClient;
let resultsFromClient;
Meteor.startup(() => {
isLoading = new ReactiveVar(false);
});
const toolbarSearch = {
shortcut: false,
clear() {
const $inputMessage = $('textarea.input-message');
if (0 === $inputMessage.length) {
return... | JavaScript | packages/rocketchat-ui-sidenav/client/toolbar.js | ealbers/Rocket.Chat | mit | 4,809 | 219 | codeparrot/github-code |
d306b4f4e90d9aee347a4a9598e021c902b4589695c2804be0691ad2a51c96cf | /***************************************************************************
* @file binary_search_tree_succ.hpp
* @author Alan.W
* @date 26 June 2014
* @remark Algorithims implementation for CLRS, using C++ templates.
***********************************************************************... | C++ | ch12/binary_search_tree_succ.hpp | tushar2708/CLRS | mit | 9,378 | 386 | codeparrot/github-code |
d8d68c089b4e5a3c62070993c5f0d09be479adabaefa97a8344dd2e9854adacc | from GeoHealthCheck.probe import Probe
from GeoHealthCheck.result import Result
from owslib.wms import WebMapService
class MyWMSProbe(Probe):
"""
Example Probe for WMS Probe user plugin. This is a free-form Probe
that overrides perform_request with custom checks.
To configure a probe, use Docker Cont... | Python | docker/plugins/user/mywmsprobe.py | tomkralidis/GeoHealthCheck | mit | 1,652 | 58 | codeparrot/github-code |
28c7443884efdffce09be0f7b2937610ac717e7fe980ebf1e0d462391ba415be | "use strict";
const path = require("path");
const webpack = require("..");
describe("NodeTemplatePlugin", () => {
jest.setTimeout(20000);
it("should compile and run a simple module", done => {
webpack(
{
mode: "production",
context: path.join(__dirname, "fixtures", "nodetest"),
target: "node",
... | JavaScript | test/NodeTemplatePlugin.test.js | EliteScientist/webpack | mit | 2,247 | 87 | codeparrot/github-code |
2990820407a4ccbccc5f0b26eb73723ad7ba9f7a6830bec9d802476abd292af3 | /*
* Basic Allocators
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_BASIC_ALLOC_H__
#define BOTAN_BASIC_ALLOC_H__
#include <botan/internal/mem_pool.h>
namespace Botan {
/**
* Allocator using malloc
*/
class Malloc_Allocator : public Allocator
{
public:
... | C | src/main/cpp/src/alloc/system_alloc/defalloc.h | devsunny/common-tools | mit | 845 | 47 | codeparrot/github-code |
8481917fde36013eeeb5e27422db4976a1b07509100420a8ab06d9dc0d5540d8 | #include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "parser.h"
static paramtype paramtypes[] =
{
{ "float", PARAM_FLOAT },
{ "float2", PARAM_FLOAT2 },
{ "float3", PARAM_FLOAT3 },
{ "float4", PARAM_FLOAT4 },
{ "float4x4", PARAM_FLOAT4x4 },
{ "sampler1D", PARAM_SAMPLER1D },
{ "... | C++ | tools/cgcomp/source/parser.cpp | HACKERCHANNEL/PSL1GHT | mit | 5,330 | 253 | codeparrot/github-code |
8953d2bb9b8aad38c5d196cd33826134566094f3119fc28ddb492bcf3dfff84a | <?php
/*
* This file is part of the puli/repository package.
*
* (c) Bernhard Schussek <bschussek@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Puli\Repository;
use ArrayIterator;
use Puli\Repository\Api\E... | PHP | src/InMemoryRepository.php | stof/repository | mit | 7,618 | 299 | codeparrot/github-code |
77c2a7ed012764e76b965e293c571c00d1529b45676cb8e69a2b5c9ac47af362 | /**
* View for a collection of tracks
*
* @file Views.Tracks.js
* @author Jan Myler <honza.myler[at]gmail.com>
* @copyright Copyright 2012, Jan Myler (http://janmyler.com)
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*
* Licensed under The MIT License
* Redistri... | JavaScript | js/Audiee/Views.Tracks.js | janmyler/web-audio-editor | mit | 1,968 | 66 | codeparrot/github-code |
d47ebe7a41e9bc35d7c3d5bebf5448c33d88fbb9642c9c429b36dfd20998d38c | package server
import (
"errors"
"net/url"
)
type getFluxLinksResponse struct {
AST string `json:"ast"`
Self string `json:"self"`
Suggestions string `json:"suggestions"`
}
type getConfigLinksResponse struct {
Self string `json:"self"` // Location of the whole global application configuration
Au... | GO | chronograf/server/links.go | mark-rushakoff/influxdb | mit | 1,809 | 60 | codeparrot/github-code |
35156e532f4416a351f6e6381d2c920b7d65a7b52f3640d96e2fd4a533047bb6 | <?php
namespace Kunstmaan\SeoBundle\Form;
use Symfony\Component\Form\CallbackTransformer;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\FormBuilderInterface;
... | PHP | src/Kunstmaan/SeoBundle/Form/SeoType.php | jverdeyen-forks/KunstmaanBundlesCMS | mit | 3,524 | 99 | codeparrot/github-code |
8b03a508bef52283d6f302037fd672ca9d379a1901d72baa59418484071b8cbf | (function ($) {
var methods = {
init : function() {
return this.each(function() {
// For each set of tabs, we want to keep track of
// which tab is active and its associated content
var $this = $(this),
window_width = $(window).width();
$this.width('100%');
// Set ... | JavaScript | app/assets/javascripts/materialize/tabs.js | nolds9/materialize-sass | mit | 4,457 | 137 | codeparrot/github-code |
4e39eceeebf675a183da01ef305842d9e3e0e9ccf4995a4bb76744a537a04a51 | package org.atdl4j.data.converter;
import java.math.BigDecimal;
import java.math.BigInteger;
import org.atdl4j.data.ParameterTypeConverter;
import org.atdl4j.fixatdl.core.BooleanT;
public class BooleanConverter
extends AbstractTypeConverter<Boolean>
{
public static final String BOOLEAN_FALSE = "N";
public stati... | Java | src/main/java/org/atdl4j/data/converter/BooleanConverter.java | rob3rtb/atdl4j | mit | 6,047 | 239 | codeparrot/github-code |
c3cc3e4afa7f30f915ea949ddda2efa5023ad1e8fceb8b1d1b75a4885200fc6d | package com.robrua.orianna.type.core.staticdata;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.robrua.orianna.type.core.OriannaObject;
public class Block extends OriannaObject<com.robrua.orianna.type.dto.staticdata.Block> {
private static final long serialVe... | Java | src/com/robrua/orianna/type/core/staticdata/Block.java | prefanatic/Orianna | mit | 1,533 | 64 | codeparrot/github-code |
e7cc8d6aefe0e85dfe3c2a634d5e8539a2548667a5cab8b5e2b698e9ed0e43aa | namespace LastfmScrobbler
{
using Api;
using Configuration;
using MediaBrowser.Common.Net;
using MediaBrowser.Controller.Entities.Audio;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Plugins;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.Entit... | C# | Lastfm-Scrobbler/ServerEntryPoint.cs | SvenVandenbrande/Emby.Plugins | mit | 7,138 | 220 | codeparrot/github-code |
d487dd0f1b1f3babe605834e2f63e9acefa4d78417886ed201c00a4d01f846ea | .charsheet input {
display: inline-block;
width: 165px;
}
.charsheet input.sheet-tiny {
display: inline-block;
width: 20px;
}
.charsheet input.sheet-small {
display: inline-block;
width: 30px;
}
.charsheet input.sheet-cent {
display: inline-block;
width: 47px;
}
.charsheet input.sheet-tr... | CSS | AD&D 2E Revised/2EStyle.css | Thalar/roll20-character-sheets | mit | 34,089 | 1,199 | codeparrot/github-code |
344a8787fa73bc565f94d5a9f8b6bd51110fe888da5582377345d38e8169c4a7 |
#ifdef WIN32
#include <windows.h> /* necessary because of the Microsoft OpenGL headers dependency */
#endif
#include <GL/gl.h>
#include <GL/glu.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <iup.h>
#include <iupgl.h>
#include <im.h>
#include <im_image.h>
#include <im_util.h>
#... | C | test/iupglview.c | kmx/mirror-im | mit | 6,252 | 238 | codeparrot/github-code |
d51c876ce506341d4ea2d0d0f599e6c9f65f27df55795b7832911888f01f7f85 | /*
* Copyright © 2010 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, pub... | C++ | src/glsl/hir_field_selection.cpp | Unity-Technologies/glsl-optimizer | mit | 3,959 | 103 | codeparrot/github-code |
421c42fc0c97097d05a47d89c159d67c9c65a718465f6bdb9a0304e8fcf17c5e | /*!
* BarCode Coder Library (BCC Library)
* BCCL Version 2.0
*
* Porting : jQuery barcode plugin
* Version : 2.0.3
*
* Date : 2013-01-06
* Author : DEMONTE Jean-Baptiste <jbdemonte@gmail.com>
* HOUREZ Jonathan
*
* Web site: http://barcode-coder.com/
* dual licence... | JavaScript | prjGogisticsWINEVER/src/static/javascripts/plugin_jq/jquery-barcode.js | Gogistics/prjGogistics | mit | 54,913 | 1,298 | codeparrot/github-code |
1ee55babfa3c765c621262c9f9d75f5142374a0f23d48ae427c9f6cbc2010176 | // Copyright (c) 2014-2015 The Darkcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef DARKSEND_H
#define DARKSEND_H
//#include "primitives/transaction.h"
#include "main.h"
#include "masternode.h"
#inclu... | C | src/darksend.h | Infernoman/Neutroncoin | mit | 12,559 | 433 | codeparrot/github-code |
26d8a8b9dec7a0cc31f72a89f64e363e0dcee370e91df000ca632344944b9083 | angular.module('vr.directives.nlForm.text',[])
.directive('nlText', function(){
return {
restrict: 'EA',
replace: true,
scope: {
placeholder: '@',
subline: '@',
name: '@',
value: '='
},
template:
'<div ng-form class="nl-field nl-ti-text" ng-cl... | JavaScript | web/app/themes/mfh/bower_components/angular-natural-language/src/nlForm.text.js | matthewkeath/mfh-theme | mit | 2,420 | 77 | codeparrot/github-code |
b6810637d183ec34af1040ad86e1c72a620f85fc11af16b3e84fbf78b972e9d8 | jest.mock(`fs`, () => {
return {
existsSync: jest.fn(),
readFileSync: jest.fn(),
}
})
const fs = require(`fs`)
const Remark = require(`remark`)
const plugin = require(`../index`)
const {
PROTOCOL_BABEL,
PROTOCOL_CODEPEN,
PROTOCOL_CODE_SANDBOX,
PROTOCOL_RAMDA,
} = require(`../constants`)
const REM... | JavaScript | packages/gatsby-remark-code-repls/src/__tests__/index.js | fk/gatsby | mit | 5,636 | 186 | codeparrot/github-code |
5214af0774029553ac24214786704d25c55f6a8e1d180d4abdaebe481b51adf8 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TextAdventures.Quest.Scripts
{
public abstract class ScriptConstructorBase : IScriptConstructor
{
#region IScriptConstructor Members
public abstract string Keyword { get; }
pu... | C# | WorldModel/WorldModel/Scripts/ScriptConstructorBase.cs | F2Andy/quest | mit | 1,781 | 63 | codeparrot/github-code |
6689ef6724ff3894ab822f232460869522b26ef0b14ba2d113b988d297a18d94 | 'use strict';
function from(source) {
return {
to: function (target) {
return {
imply: function (mappings, overwrite) {
Object.keys(mappings).forEach(function (sourceProperty) {
var targetProperty;
if (source.hasOwnProperty(sourceProperty)) {
targetProperty = mappings[sourceProperty]... | JavaScript | lib/helpers/dataflow.js | amobiz/configurable-gulp-recipes | mit | 839 | 37 | codeparrot/github-code |
f7ceba47ded812ef287e886f24445e456ab55ec2928f621249210234a8566d08 | import {Carousel} from './carousel';
import {waitForAsync, ComponentFixture, fakeAsync, flush, TestBed} from '@angular/core/testing';
import {DocsAppTestingModule} from '../../testing/testing-module';
import {Component, ViewChild} from '@angular/core';
import {CarouselModule} from './carousel-module';
describe('Horiz... | TypeScript | src/app/shared/carousel/carousel.spec.ts | crisbeto/material.angular.io | mit | 2,180 | 75 | codeparrot/github-code |
0cf87e83a8dbb4c0f3d0260f97fa765da31fa61a69893be8f2c0d206a13f4e80 | import {lineBreakG} from "./whitespace.js"
// These are used when `options.locations` is on, for the
// `startLoc` and `endLoc` properties.
export class Position {
constructor(line, col) {
this.line = line
this.column = col
}
offset(n) {
return new Position(this.line, this.column + n)
}
}
export... | JavaScript | libs/acorn-8.0.5/src/locutil.js | xyz252631m/web | mit | 1,058 | 43 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.