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 |
|---|---|---|---|---|---|---|---|---|
05f87c0ed48fe5f4a569337a739b9ea6a5a7f46a555269a5c67658e7a1a3709a | #pragma once
#include "gloox/gloox.h"
#include "gloox/client.h"
#include "gloox/message.h"
#include "gloox/rostermanager.h"
#include "gloox/messagehandler.h"
#include "gloox/messagesession.h"
#include "gloox/rosterlistener.h"
#include "gloox/connectionlistener.h"
#include "gloox/presencehandler.h"
#include "gloox/mess... | C | src/XmppListener.h | calebjohnston/Cinder-XMPP | bsd-3-clause | 3,697 | 97 | codeparrot/github-code |
84ecc637ee3d52b5f9dd6877eb9764ad6f261c7532064342ad8042a652d3ceba | // Copyright 2015 The Loadcat Authors. All rights reserved.
package data
import (
"github.com/boltdb/bolt"
"gopkg.in/mgo.v2/bson"
)
type Server struct {
Id bson.ObjectId
BalancerId bson.ObjectId
Label string
Settings ServerSettings
}
type ServerSettings struct {
Address string
Weight ... | GO | data/server.go | hjr265/loadcat | bsd-3-clause | 1,576 | 85 | codeparrot/github-code |
2546a0f83b99b3b1c411a964d19a2181e2761786837f5c6a17a11b80e4b8193b | import math
from numba import njit
from tardis.montecarlo.montecarlo_numba import (
njit_dict_no_parallel,
)
import tardis.montecarlo.montecarlo_numba.numba_config as nc
from tardis.montecarlo.montecarlo_numba.numba_config import (
C_SPEED_OF_LIGHT,
MISS_DISTANCE,
SIGMA_THOMSON,
CLOSE_LINE_THRESH... | Python | tardis/montecarlo/montecarlo_numba/calculate_distances.py | tardis-sn/tardis | bsd-3-clause | 3,846 | 147 | codeparrot/github-code |
9a272215c047c6c6e8be8c3d7812f77bcc56b3a72b34f960a31ef2524581f006 | """URI API
This file contains the part of the blaze API dealing with URIs. The
"URI API". In Blaze persistence is provided by the means of this URI
API, that allows specifying a "location" for an array as an URI.
The URI API allows:
- saving existing arrays to an URI.
- loading an array into memory from an URI.
- ... | Python | blaze/io/storage.py | mwiebe/blaze | bsd-3-clause | 7,420 | 253 | codeparrot/github-code |
a47a4cdfe2af7852794a95044c771c809ca74db6f00f8709599705c08f7794ff | <!DOCTYPE html>
<html dir="ltr" lang="ru">
<head>
<title>Содержание - Rubinius</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content='ru' http-equiv='content-language'>
<meta content='Rubinius is an implementation of the Ruby programming langua... | HTML | web/_site/doc/ru/index.html | PragTob/rubinius | bsd-3-clause | 9,526 | 273 | codeparrot/github-code |
87e71b38720ad7cd2e5a46ff4cf4372590ce0138eb7f50be29664969edcd7496 | using System;
using System.Collections.Generic;
namespace ClassTools.Data.Hierarchy
{
[Serializable]
public class MetaClass : MetaType, IEquatable<MetaClass>
{
#region Fields
protected string module;
protected MetaClass superClass;
protected MetaList<MetaVariable... | C# | ClassTools.Data/Hierarchy/MetaClass.cs | borisblizzard/classtools | bsd-3-clause | 12,361 | 383 | codeparrot/github-code |
01ac6d1f91536ae4e22dfc64cc247ac70720bccb353898bcc4ad868413791a32 | // 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.
#include "base/command_line.h"
#include "base/path_service.h"
#include "chrome/browser/chrome_browser_main.h"
#include "chrome/browser/chrome_browser_... | C++ | chrome/browser/chromeos/login/oobe_browsertest.cc | loopCM/chromium | bsd-3-clause | 9,441 | 228 | codeparrot/github-code |
7e6e141c4bc19fd7c55be073c39fc2e639525d536a266975bbea4abd23552bc0 | /*
* Copyright (c) 2011 Alex Fort
* 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 conditio... | C# | src/Schemin/Schemin.AST/ScheminVector.cs | imphasing/schemin | bsd-3-clause | 2,618 | 103 | codeparrot/github-code |
fc408f86743ca0de164e8e75510edff56e7bcc4bc45807e1ead63aa224373706 | package user
import (
"context"
"regexp"
"time"
"github.com/go-gorp/gorp"
"github.com/rockbears/log"
"github.com/ovh/cds/engine/api/database/gorpmapping"
"github.com/ovh/cds/engine/gorpmapper"
"github.com/ovh/cds/sdk"
)
func getContacts(ctx context.Context, db gorp.SqlExecutor, q gorpmapping.Query) ([]sdk.U... | GO | engine/api/user/dao_contact.go | ovh/cds | bsd-3-clause | 3,280 | 112 | codeparrot/github-code |
08ed13f3cdcc5ff8461b08b38649ed38644466a3967205f29cd3baf9c77eb638 | # ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | Python | pyglet/app/cocoa.py | ardekantur/pyglet | bsd-3-clause | 7,023 | 161 | codeparrot/github-code |
ede3b96ed47510a3233a67f97b5f703558c60073af28985b14fd9a8530dad727 | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2013, PAL Robotics, S.L.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... | C++ | ridgeback/ridgeback_control/src/odometry.cpp | ibaranov-cp/ridgeback_ur10 | bsd-3-clause | 6,213 | 148 | codeparrot/github-code |
b3d73f9a7bf7acb577f8cdadc2efe6e86a03238a6eed15ac8cffcedfefa06e19 | #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/IO/Polyhedron_iostream.h>
#include <CGAL/boost/graph/graph_traits_Polyhedron_3.h>
#include <CGAL/Search_traits_3.h>
#include <CGAL/Search_traits_adapter.h>
#include <CGAL/Kd_tree.h>
#include <CGAL/Fuzzy_spher... | C++ | graphics/cgal/Spatial_searching/examples/Spatial_searching/searching_polyhedron_vertices_with_fuzzy_sphere.cpp | hlzz/dotfiles | bsd-3-clause | 1,694 | 56 | codeparrot/github-code |
2b14d7aaf132b7e00f42640f377799a86b35147ee3564dd031cfff52ad353cb6 |
namespace CGAL {
/*!
\ingroup PkgBoundingVolumes
An object of class `Approximate_min_ellipsoid_d` is an approximation to the
ellipsoid of smallest volume enclosing a finite multiset of points
in \f$ d\f$-dimensional Euclidean space \f$ \E^d\f$, \f$ d\ge 2\f$.
An <I>ellipsoid</I> in \f$ \E^d\f$ is a Cartesian poi... | C | graphics/cgal/Bounding_volumes/doc/Bounding_volumes/CGAL/Approximate_min_ellipsoid_d.h | hlzz/dotfiles | bsd-3-clause | 17,666 | 439 | codeparrot/github-code |
81b5394612cd0cf5da3952b07f30d18be58cb29f3e6540a1e4863dcd8b961401 | {-
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[RnExpr]{Renaming of expressions}
Basically dependency analysis.
Handles @Match@, @GRHSs@, @HsExpr@, and @Qualifier@ datatypes. In
general, all of these functions return a renamed thing, and a set of
free variables.
-}
{-# LANGUAGE CPP #-}
{-# LA... | Haskell | compiler/rename/RnExpr.hs | mcschroeder/ghc | bsd-3-clause | 78,620 | 1,944 | codeparrot/github-code |
219b63a91c686f76efb2be21365254ad4e80e2ff5367dd696f4120e3e04a4788 | /* SPDX-License-Identifier: BSD-3-Clause */
#include <errno.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "files.h"
#include "log.h"
#include "tpm2.h"
#include "tpm2_tool.h"
typedef struct tpm_activatecred_ctx tpm_activatecred_ctx;
#define MAX_AUX_S... | C | tools/tpm2_activatecredential.c | 01org/tpm2.0-tools | bsd-3-clause | 10,304 | 404 | codeparrot/github-code |
9c652ffe4e5c685a8368fb1f6bde665439e3090d4a374633d154f6f6845d6b77 | package cafe.analysis;
public class Autocorrelation {
private static double[] x,r;
public static double[] get_fr() {
return x;
}
public static double[] get_fi() {
return r;
}
public static void acorr(double[] _x, double[] _r, int l, int np) {
double d;
int k,i;
x = java.util.Arrays.copyOf(_x,... | Java | Cafe/src/cafe/analysis/Autocorrelation.java | piciuoka/cafe | bsd-3-clause | 507 | 32 | codeparrot/github-code |
04437dd73a5269f3ac6091194e69905327f155e565a826df5892346505f99c0a | /*
* Copyright (c) 2014 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | C | vp10/encoder/aq_complexity.c | zofuthan/libvpx | bsd-3-clause | 6,068 | 165 | codeparrot/github-code |
bcc19b069e946e984e84d772e17bd7a353f051128c2a5ce51bddbdf6696c4137 | #ifndef _FI_SYSTEM
#include <map>
#include <utility>
#include <iostream>
#include <fstream>
#include "config/full_system.hh"
#include "config/the_isa.hh"
#include "base/types.hh"
#include "arch/types.hh"
#include "base/trace.hh"
#include "debug/FaultInjection.hh"
class Fi_System;
extern Fi_System *fi_system;
clas... | C++ | src/fi/fi_system.hh | koparasy/faultinjection-gem5 | bsd-3-clause | 1,609 | 62 | codeparrot/github-code |
7ee58139d424deee21793b926156fdb88da906294127215ab5437f713e8b3071 | "use strict";
// https://codereview.chromium.org/api/148223004/70001/?comments=true
function PatchSet(issue, id, sequence)
{
this.files = []; // Array<PatchFile>
this.sourceFiles = []; // Array<PatchFile>
this.testFiles = []; // Array<PatchFile>
this.tryJobResults = []; // Array<tryJobResults>
this... | JavaScript | ui/model/patch_set.js | esprehn/chromium-codereview | bsd-3-clause | 3,280 | 113 | codeparrot/github-code |
2b5f6798865c032ff69b4db643214b6d8ff750e31babdbc4cbeb5eda1ff6cad0 | // Copyright 2013-2017 the u-root 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 cpio
import (
"bytes"
"encoding/binary"
"encoding/hex"
"fmt"
"io"
"os"
"github.com/u-root/u-root/pkg/uio"
)
const (
newcMagic = "0707... | GO | pkg/cpio/newc.go | u-root/u-root | bsd-3-clause | 7,491 | 325 | codeparrot/github-code |
a99fab3023cbc3b3aad8f4224a93c7871c4e1339674ac1c454037345996184cd |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.stats.outliers_influence.GLMInfluence.plot_index — statsmodels v0.10.1 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link rel="stylesh... | HTML | v0.10.1/generated/statsmodels.stats.outliers_influence.GLMInfluence.plot_index.html | statsmodels/statsmodels.github.io | bsd-3-clause | 9,274 | 190 | codeparrot/github-code |
3bc06d7e487101d0ad0d988261997bd78818ee8b997d90358891b3b674128f69 | {% load url from future %}
{% load admin_static i18n grp_tags %}
<!-- group -->
<div class="grp-group grp-stacked {% if inline_admin_formset.opts.classes %} {{ inline_admin_formset.opts.classes|join:" " }}{% endif %}"
id="{{ inline_admin_formset.formset.prefix }}-group">
<h2 class="grp-collapse-handler">{% if ... | HTML | homepage/homepage/django_packages/grappelli/templates/admin/edit_inline/stacked.html | xgfone/homepage | bsd-3-clause | 14,142 | 246 | codeparrot/github-code |
fcdf82544507c9ae001e92134ee3891b08d93ec5a096177454c0c028e78edb7e | import sys
import os
import commands
import nipype.pipeline.engine as pe
import nipype.algorithms.rapidart as ra
import nipype.interfaces.fsl as fsl
import nipype.interfaces.io as nio
import nipype.interfaces.utility as util
from utils import *
from CPAC.vmhc import *
from nipype.interfaces.afni import preprocess
from ... | Python | CPAC/vmhc/vmhc.py | sgiavasis/C-PAC | bsd-3-clause | 22,733 | 544 | codeparrot/github-code |
9285d90d88cf30933e8259a9f7990705d92ec52ec8a564ab71ca681630719ec1 | /******************************************************************************
* Copyright (c) 2012-2015, Vladimir Kravets *
* All rights reserved. *
* *
... | Java | binkp/binkp-common/src/main/java/org/fidonet/binkp/common/commands/CramOPTCommand.java | vkravets/Fido4Java | bsd-3-clause | 3,368 | 69 | codeparrot/github-code |
273184011c3f93f7e2e20ca1cbfb9317622d9d818b6f902c94a346242057ee7c | // (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.... | C# | Microsoft.Phone.Controls.Toolkit/ProgressBar/RelativeAnimatingContentControl.cs | nokiadatagathering/WP7-Official | bsd-3-clause | 19,500 | 468 | codeparrot/github-code |
715f851f961298335790c3d7a5d46ffb92c2ba8db63f1e886f702c94cb4f7c0d | /**
Copyright (c)
Audi Autonomous Driving Cup. 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 ... | C | src/aadcBase/src/arduino/AADC_ArduinoActuators/cArduinoActuators.h | AppliedAutonomyOffenburg/AADC_2015_A2O | bsd-3-clause | 10,747 | 187 | codeparrot/github-code |
21187f8a50fcfdba7ff59133bf0f5e832bbcd8afa26a0b8e283c38c6e7b10b86 | <?php
namespace app\modules\autoparts\controllers;
use Yii;
use yii\web\Controller;
use yii\web\UploadedFile;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use yii\helpers\FileHelper;
use app\modules\autoparts\models\PartProviderSearch;
use app\modules\autoparts\mode... | PHP | modules/autoparts/controllers/OverController.php | kd-brinex/kd | bsd-3-clause | 4,964 | 180 | codeparrot/github-code |
7ddb314dee5bc0f4723d10c46757ccdf0842912790f7015c526627dbdb44b073 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html><head>
<title> Date parsing</title>
</head>
<body>
<script type="text/javascript">
function test(){
var date;
var year;
var i;
var dateStrings = [
"100-1000-0",
"500-5000-45",
"999-9999-99",
"100-2007-2",
"250-3500-12",
"369-450... | HTML | core/features/dateParsing/ComparisionResults/TCsDashSeparator/TC_19.html | operasoftware/presto-testo | bsd-3-clause | 1,348 | 63 | codeparrot/github-code |
86f13eabd0822e02951c9a434c5d7edce0668a7ee6c29d712999a500df9fdb8e | /*
* Copyright (c) 2004-2021, 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 notice, this
* list o... | Java | core/src/main/java/org/hisp/dhis/android/core/trackedentity/TrackedEntityInstanceEventFilter.java | dhis2/dhis2-android-sdk | bsd-3-clause | 4,204 | 102 | codeparrot/github-code |
a853661d4adec8e31b9491d2755c323fe5a518d49e482a02a5b8d8fc23c1e748 | from django.utils.safestring import mark_safe
from corehq.apps.data_interfaces.dispatcher import EditDataInterfaceDispatcher
from corehq.apps.groups.models import Group
from django.core.urlresolvers import reverse
from corehq.apps.reports import util
from corehq.apps.reports.datatables import DataTablesHeader, DataTabl... | Python | corehq/apps/data_interfaces/interfaces.py | gmimano/commcaretest | bsd-3-clause | 3,559 | 80 | codeparrot/github-code |
7440dbafc529983dfdee874a9f0721c10dac4737a5ceb7697b9af264e66beae8 | /*
* logsumexp2_emxutil.c
*
* Code generation for function 'logsumexp2_emxutil'
*
* C source code generated on: Tue Jan 14 10:28:31 2014
*
*/
/* Include files */
#include "rt_nonfinite.h"
#include "logsumexp2.h"
#include "logsumexp2_emxutil.h"
/* Function Definitions */
void emxEnsureCapacity(const emlrtStack ... | C | test/codegen/mex/logsumexp2/logsumexp2_emxutil.c | cwcyau/oncosnpseq | bsd-3-clause | 5,240 | 191 | codeparrot/github-code |
e5613c8857e8d32a85bc6e9696d87a852d49e2fc8f9c9922209f313c227ae04c | {-# LANGUAGE CPP #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE TupleSections #-}
module Data.IP.Builder
( -- * 'P.BoundedPrim' 'B.Builder's for general, IPv4 and IPv6 addresses.
ipBuilder
, ipv4B... | Haskell | Data/IP/Builder.hs | kazu-yamamoto/iproute | bsd-3-clause | 10,407 | 281 | codeparrot/github-code |
f2449d7604d5718e1b26d3ba1555e0bb9b4a331ca4e6f02d1219f21bb297092e | /*
* [New BSD License]
* Copyright (c) 2011-2012, Brackit Project Team <info@brackit.org>
* 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 reta... | Java | brackitdb-server/src/main/java/org/brackit/server/util/IntList.java | x-clone/brackit.brackitdb | bsd-3-clause | 3,717 | 135 | codeparrot/github-code |
7dbaa678aa10fed0d2eab828392195d5978add8cd561f1c5caad6272c2ff92e4 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.tsa.statespace.dynamic_factor.DynamicFactorResults.fittedvalues — statsmodels v0.10.2 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<li... | HTML | v0.10.2/generated/statsmodels.tsa.statespace.dynamic_factor.DynamicFactorResults.fittedvalues.html | statsmodels/statsmodels.github.io | bsd-3-clause | 7,987 | 166 | codeparrot/github-code |
25a9b49dfedfa855c239afb3ca2dc0677c50d3299d6facb0bcfc734c4dc573d0 | // Copyright (c) 2009 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 VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_
#define VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_
#include "views/widget/root_view.h"
namespace ... | C | views/controls/menu/menu_host_root_view.h | rwatson/chromium-capsicum | bsd-3-clause | 1,864 | 57 | codeparrot/github-code |
3ee41fff668d99ebaf5e99021e7e0bf0bec661c86508226e022b747bac6a13cb | /*
* Copyright (c) 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* 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... | TypeScript | plugins/browser-plugin-browser-features/test/browser_features.test.ts | snowplow/snowplow-javascript-tracker | bsd-3-clause | 4,061 | 100 | codeparrot/github-code |
39a5924ea5f726c09cc03328dcc03ee905e4b5ceab6f335ec5f0f83c8ce0f072 | {% block meta %}
name: Base
description: SMACH base template.
language: Python
framework: SMACH
type: Base
tags: [core]
includes: []
extends: []
variables:
- - manifest:
description: ROS manifest name.
type: str
- - node_name:
description: ROS node name for the state machine.
type: str
- outcome... | Python | smacha/src/smacha/templates/Base.tpl.py | ReconCell/smacha | bsd-3-clause | 2,545 | 100 | codeparrot/github-code |
b8e94d6abca852db60e2e00dc541b441e5ff28b198b813372a3fcff5fc29eee9 | /*
* Copyright (c) 2015-2016, Technische Universität Dresden, Germany
* 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 n... | C++ | include/nitro/log/attribute/mpi_rank.hpp | tud-zih-energy/nitro | bsd-3-clause | 2,838 | 93 | codeparrot/github-code |
5085a6911b541893479c8473b0a2f205e974a463d51b5b9ea788771732377ca8 | # Copyright (C) 2014 - The MITRE Corporation
# For license information, see the LICENSE.txt file
#: Namespace map of namespaces libtaxii knows about
NS_MAP = {
'taxii': 'http://taxii.mitre.org/messages/taxii_xml_binding-1',
'taxii_11': 'http://taxii.mitre.org/messages/taxii_xml_binding-1.1',
'tdq': 'http:/... | Python | libtaxii/constants.py | Intelworks/libtaxii | bsd-3-clause | 13,355 | 339 | codeparrot/github-code |
25fc3f6fb397adb2aecd9ba64fbbe6d5b6eaeff2fb513dc51647568b2344a1b8 | /*-
* Copyright (c) 2005-2006 The FreeBSD Project
* All rights reserved.
*
* Author: Victor Cruceru <soc-victor@freebsd.org>
*
* Redistribution of this software and documentation and use in source and
* binary forms, with or without modification, are permitted provided that
* the following conditions are met:
... | C | usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c | jhbsz/OSI-OS | bsd-3-clause | 5,523 | 209 | codeparrot/github-code |
2a4ec2b9804ece1bba18a8387fc90765fd27bcea28d366404c464e186de69536 | /*
+-----------------------------------------------------------+
| Copyright (c) 2017 Collet Valentin |
+-----------------------------------------------------------+
| This source file is subject to version the BDS license, |
| that is bundled with this package in the file LICENSE ... | C | src/toolbar/gtoolbutton.h | Letargie/pggi | bsd-3-clause | 1,611 | 53 | codeparrot/github-code |
a5270fa197ee226ee2a9cd7fc31c05e74ed01109a3f94ebb0df15fd57f6ee68a | // TestValues.cpp : Test XML encoding and decoding of XmlRpcValues.
#include <stdlib.h>
#include "XmlRpcValue.h"
#include <assert.h>
#include <iostream>
using namespace XmlRpc;
void testBoolean()
{
XmlRpcValue booleanFalse(false);
XmlRpcValue booleanTrue(true);
int offset = 0;
XmlRpcValue booleanFalseXm... | C++ | lib/ros_comm-1.12.0/utilities/xmlrpcpp/test/TestValues.cpp | MangoMangoDevelopment/neptune | bsd-3-clause | 4,902 | 234 | codeparrot/github-code |
dd0d410f8c0fd0f4d9b6f682a36acff7e824f3afb71f6dcf3c32e287be9bcbba | package main
import (
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
flags "github.com/jessevdk/go-flags"
"code.xoeb.us/cryptdo/cryptdo"
"code.xoeb.us/cryptdo/cryptdo/internal/flag"
)
var opts struct {
Old string `short:"o" long:"old-passphrase" description:"old passphrase for file encryption"`
New string `... | GO | cryptdo/cmd/cryptdo-rekey/main.go | xoebus/cryptdo | bsd-3-clause | 1,647 | 89 | codeparrot/github-code |
1520be34400c9fcd8d0f66fef0cec1d4414062ce5997ca66d3a3408681a7e2bc | <?php
class PHPJoiner{
var $file;
var $dir;
function PHPJoiner($file)
{
$this->file = realpath($file);
$this->dir = dirname($this->file);
}
function join()
{
$source = file_get_contents($this->file);
$source = preg_replace_callback('/include\s(.*);/',
array($this,'real_load'),
$source);
return... | PHP | compiler.php | mrshu/Shlog | bsd-3-clause | 1,797 | 80 | codeparrot/github-code |
10de233ccac37e05ff724136150fc364c15f1c5f5c0825b128af3d0bf3af7ef3 | package ilearnrw.utils;
/*
* Copyright (c) 2015, iLearnRW. Licensed under Modified BSD Licence. See licence.txt for details.
*/
public enum LanguageCode {
EN, GR;
public static byte getEnglishCode(){
return 1;
}
public static byte getGreekCode(){
return 0;
}
public static LanguageCode fromString(String la... | Java | src/ilearnrw/utils/LanguageCode.java | mpakarlsson/ilearnrw | bsd-3-clause | 724 | 38 | codeparrot/github-code |
57f4b9a029928f3291f29ad21888f6c641a12f59573dbc606e1a065ed1d71a55 | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Thinktecture.IdentityModel.Web.Configuration
{
public class SecuritySessionSection : ConfigurationSection
{
public static SecuritySessionSection Ins... | C# | IdentityModel/Thinktecture.IdentityModel/Web/Configuration/SecuritySessionSection.cs | IdentityModel/Thinktecture.IdentityModel.40 | bsd-3-clause | 4,173 | 99 | codeparrot/github-code |
e6d60b974e96a466a0c9203dbe1e80c9e9c9144c71e229f5ef05bef89e286716 | // Copyright (c) 2009 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 "media/filters/bitstream_converter.h"
#include "media/filters/ffmpeg_common.h"
namespace media {
FFmpegBitstreamConverter::FFmpegBitstream... | C++ | media/filters/bitstream_converter.cc | rwatson/chromium-capsicum | bsd-3-clause | 2,049 | 69 | codeparrot/github-code |
545f5c3a96c3d55d042d46d072cfb3f65bde0102322f495aca20cec46ed60aba | #include <iostream>
using namespace std;
/**
* Definition for singly-linked list.
*/
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
class Solution {
public:
ListNode* deleteDuplicates(ListNode* head) {
if (!head)
return head;
ListNo... | C++ | 2nd/083_remove_duplicates_from_sorted_list.cpp | buptlxb/leetcode | bsd-3-clause | 696 | 39 | codeparrot/github-code |
b33a7edd35f97642c64771a7c62201dd8cff470b3ea41ac32b1305dab75d4131 | {-# LANGUAGE ScopedTypeVariables #-}
-- | This module is unstable; functions are not guaranteed to be the same or even to exist in future versions
--
-- It is intended primarily for use by this library itself.
module Data.Bitmap.Util
( tablespoon
, subStr
, padByte
) where
import Control.Exception
imp... | Haskell | src/Data/Bitmap/Util.hs | bairyn/bitmaps | bsd-3-clause | 1,643 | 47 | codeparrot/github-code |
f74e181fd141be06d9b3164db7e0904d44493f1020f451f5313b9ccb9e4fc02f | package org.liquidengine.legui.component.misc.animation.selectbox;
import org.joml.Vector2f;
import org.liquidengine.legui.animation.Animation;
import org.liquidengine.legui.component.SelectBox;
import org.liquidengine.legui.component.SelectBox.SelectBoxScrollablePanel;
import java.lang.ref.WeakReference;
/**
* @au... | Java | src/main/java/org/liquidengine/legui/component/misc/animation/selectbox/SelectBoxAnimation.java | LiquidEngine/legui | bsd-3-clause | 2,919 | 77 | codeparrot/github-code |
0458bd8806fae31b562f1ac275cb581538483a22328e6bb04ef0b050e2387356 | <?php
namespace appitnetwork\wpthemes\assets;
use Yii;
use yii\web\AssetBundle;
use yii\helpers\FileHelper;
class WP_Asset extends AssetBundle
{
public $sourcePath = '@vendor/appitnetwork/yii2-wordpress-themes/src/wordpress/wp-includes';
public $css = [];
public $js = [];
public $depends = [];
pu... | PHP | src/assets/WP_Asset.php | AppItNetwork/yii2-wordpress-themes | bsd-3-clause | 1,049 | 51 | codeparrot/github-code |
fd72e6ee335ed86d58efbbeea1674e37e6c20f9a4011c6c06f4ba8c82a2aa6e0 | var async = require('async');
Array.prototype.count = function() {
var amount = 0;
this.forEach(function(n) {
if( typeof n !== 'number' ) {
return;
}
amount += n;
});
return amount;
};
module.exports = function () {
return function (game) {
var iterateCu... | JavaScript | plugins-example/game/worldedit.js | dralletje/DeserverPlots | bsd-3-clause | 8,925 | 231 | codeparrot/github-code |
3d806f050cb7aa6b3b6f2df7fb6cd16e71e05f107de00ce52aadc554fcca5c9d | <!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http:/... | HTML | app/elements/kf-audiorecorder/kf-audiorecorder.html | kingflurkel/kimradio | bsd-3-clause | 11,800 | 410 | codeparrot/github-code |
d365ee7a73235ab485aba5afe2d7089bc6c95ca6bbe00937798cf0e1b18a3f06 | <?php
class SolrCodeBankSearchEngine implements ICodeBankSearchEngine {
/**
* Allows for hooking in to modify the table of the snippet class for the search engine
*/
public static function requireTable() {}
/**
* Performs the search against the snippets in the system
*
* @param... | PHP | code/search/SolrCodeBankSearchEngine.php | UndefinedOffset/silverstripe-codebank | bsd-3-clause | 2,193 | 61 | codeparrot/github-code |
5fa6c9c48fab7ed74d3e704b48974b29b31b6043832327782ecf175af9e6e57d | {-# LANGUAGE OverloadedStrings #-}
module Views.Common.SEO where
import Control.Monad
import qualified Data.Text as T
import Data.Text.Lazy(Text)
import Data.String (fromString)
import qualified Text.Printf as PF
import Network.URI
import Text.Blaze.Html5((!))
import qualified Text.Blaze.Html5 as H
import qualified ... | Haskell | src/Views/Common/SEO.hs | DavidAlphaFox/sblog | bsd-3-clause | 1,437 | 56 | codeparrot/github-code |
5420927f46e2ab75bb7ec0d76da6584a72397e62acd2b6a83d87ac054ac80d1e | <?php
defined('NELLIEL_VERSION') or die('NOPE.AVI');
use Nelliel\DatabaseConnector;
use Nelliel\API\Plugin\PluginAPI;
use Nelliel\Account\Session;
use Nelliel\Domains\DomainGlobal;
use Nelliel\Domains\DomainSite;
use Nelliel\Utility\Utilities;
use Monolog\Logger;
use Nelliel\Logging\NellielLogProcessor;
use Nelliel\Lo... | PHP | core/include/accessors.php | OtakuMegane/Nelliel | bsd-3-clause | 2,320 | 113 | codeparrot/github-code |
a18d7ac5d7bdc1c627bdd98fdfffb937b7cfd6190c17d538dfd1a1607a60e4bc | package BIDMach.networks.layers
import BIDMat.{Mat,SBMat,CMat,DMat,FMat,IMat,LMat,HMat,GMat,GDMat,GIMat,GLMat,GSMat,GSDMat,GND,ND,SMat,SDMat}
import BIDMat.MatFunctions._
import BIDMat.SciFunctions._
import BIDMach.datasources._
import BIDMach.updaters._
import BIDMach.mixins._
import BIDMach.models._
import ... | Scala | src/main/scala/BIDMach/networks/layers/MulLayer.scala | jamesjia94/BIDMach | bsd-3-clause | 2,478 | 86 | codeparrot/github-code |
ec2393b9bcb178d80563f2530a502bb5bbd9bec27153cf0bfb14ea5f970b09c8 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html lang="en-US">
<head>
<title>Introduction (The Java™ Tutorials >
Bonus > Generics)
</title>
<meta name="description" content="This Java tutorial describes generics, full screen mode API, and Java certification relat... | HTML | recodoc2/testdata/java70tutorial/extra/generics/intro.html | bartdag/recodoc2 | bsd-3-clause | 16,399 | 506 | codeparrot/github-code |
627773f8e1d171d1cbf38280e59864024722d1a712c940f2a8a8eeaed5b28eba | #!/usr/bin/env python
'''use marquise_telemetry to build throughput info as visible from the client
e.g.:
$ marquse_telemetry broker | marquise_throughput.py
'''
import sys
from time import *
import os
import fcntl
class TimeAware(object):
'''simple timing aware mixin
The default implementation of o... | Python | telemetry/marquise_throughput.py | anchor/vaultaire-tools | bsd-3-clause | 14,550 | 347 | codeparrot/github-code |
2279ce2e06ba802951a9a5ecfd01d972a778f1b2a3811898138b7a9a81cb9fd9 | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "order_detail".
*
* @property integer $id
* @property integer $ordersid
* @property string $name
* @property integer $quantity
* @property integer $price
* @property string $guarantee
* @property integer $orders_id
* @property int... | PHP | models/OrderDetail.php | DuongThanhMinh/INF205 | bsd-3-clause | 1,696 | 79 | codeparrot/github-code |
eba34c8aef1580d458fe2c1a5b1edfc2707dcde273454dab4d025ec9ae769a17 | <?php
namespace frontend\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\PermohonanEBantuanCadanganKertasKerja;
/**
* PermohonanEBantuanCadanganKertasKerjaSearch represents the model behind the search form about `app\models\PermohonanEBantuanCadanganKertasKerja`.
*/
class Permo... | PHP | frontend/models/PermohonanEBantuanCadanganKertasKerjaSearch.php | hung101/kbs | bsd-3-clause | 1,916 | 69 | codeparrot/github-code |
16610f36e324b66d754dc89af0cc53fb95cd7dc015a6b8af2d1120570f0521d2 | #pragma once
#include <Arduino.h>
#include <Wire.h>
#include "lightness.h"
/* Section 7.3: Register definitions */
#define PCA9685_BASE_ADDRESS 0x40
#define PCA9685_MODE1 0x00
#define PCA9685_MODE2 0x01
#define PCA9685_ALLCALLADR 0x05
#define PCA9685_PRESCALE 0xFE
#define PCA9685_LED0 0x06
class PCA9685_RGB {
publ... | C | arduino/PCA9685_RGB/PCA9685_RGB.h | edelooff/Lightbox | bsd-3-clause | 876 | 33 | codeparrot/github-code |
37c62712c43acfad7e24c7f8191f8bf63f102fd8d93d7051900be760b3fe560c | ;(function($){
var objects = {};
$.editlive.sync = function() {
$('editlive').each(function(){
var el = $(this);
if (el.attr('app-label') && el.attr('module-name') && el.attr('field-name') && el.attr('object-id')) {
var model = el.attr('app-label') +'.'+ el.attr... | JavaScript | editlive/static/editlive/js/jquery.editlive.sync.js | h3/django-editlive | bsd-3-clause | 1,264 | 39 | codeparrot/github-code |
80e08c5720d634e3b589494c3aeb5a2b3cac5b521035da502e740cb6fc641caa | // vim:filetype=java:ts=4
/*
Copyright (c) 2004-2007
Conor McDermottroe. 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
notic... | Java | src/com/mcdermottroe/exemplar/model/XMLDocumentTypeException.java | conormcd/exemplar | bsd-3-clause | 3,206 | 92 | codeparrot/github-code |
42e1f3acc15c36f24637dc546ea453ba81152e00804b0f52389884071499455a | //
// Copyright 2014-2017 Cristian Maglie. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
//
//go:build darwin && (amd64 || arm64)
// +build darwin
// +build amd64 arm64
package serial
import "golang.org/x/sys/unix"
// termios manipulatio... | GO | constants_darwin_64.go | albenik/go-serial | bsd-3-clause | 1,181 | 58 | codeparrot/github-code |
d8c54ca3c643d934de2a7561aaea92fa1a77ebbf204b86f4dbeb012bba3e069e | <?php
use yii\helpers\Url;
use yii\helpers\Html;
use yii\bootstrap\Modal;
use kartik\grid\GridView;
use johnitvn\ajaxcrud\CrudAsset;
use johnitvn\ajaxcrud\BulkButtonWidget;
/* @var $this yii\web\View */
/* @var $searchModel book\modules\test\models\Brand1Search */
/* @var $dataProvider yii\data\ActiveDataProvider */
... | PHP | book/modules/test/views/brand1/index.php | wodrowCVM/yeework | bsd-3-clause | 2,632 | 68 | codeparrot/github-code |
ee7df7be799a3faa83563035c4c971d0207a09078343ece175ab7f5d118c0297 | // 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.
#ifndef TOOLS_GN_IMPORT_MANAGER_H_
#define TOOLS_GN_IMPORT_MANAGER_H_
#include <map>
#include <memory>
#include <mutex>
#include <string>
#include <u... | C | tools/gn/src/gn/import_manager.h | endlessm/chromium-browser | bsd-3-clause | 1,402 | 55 | codeparrot/github-code |
fd3d20c994ecc974f9f811f53f352ba96d464d7d55caa107bdc1258de41d5b3e | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# 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
# ... | Python | src/primaires/scripting/actions/detruire_sortie.py | vlegoff/tsunami | bsd-3-clause | 2,721 | 62 | codeparrot/github-code |
5f02c277eb1b8028c29ae808dbde9cde8d9723cce55665ee8c237261046a5dbc | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... | C | libs/opengl/include/mrpt/opengl/CBox.h | MRPT/mrpt | bsd-3-clause | 4,285 | 131 | codeparrot/github-code |
63eec2cf830b3ab350855199d935fc1ba81cc194d58a8fac78088374bb18906c | WGL.internal.Filter = function() {
var manager = WGL.getManager();
var GLU = WGL.internal.GLUtils;
manager.setFilter(this);
this.rastersize = manager.r_size ;
this.lastDim ="";
this.filterProgram1d = GLU.compileShaders("filter1d_vShader", "filter1d_fShader",
this);
this.filterProgram2d = GLU.co... | JavaScript | src/internal/Filter.js | jezekjan/webglayer | bsd-3-clause | 11,235 | 328 | codeparrot/github-code |
1bdb0e5b048a3b230b63fc2ca66f60c7b69f747226589ebb02be0cddd4eafc66 | /**
* @name ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause
*
* This software is a derived product, based on:
*
* Simple Machines Forum (SMF)
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
* license: BSD, See included L... | JavaScript | Elkarte/www/themes/default/scripts/jquery.captcha.js | joshuaadickerson/Elkarte2 | bsd-3-clause | 2,693 | 100 | codeparrot/github-code |
391b8625947ba30dac4d53ac727bced2b802543cd03272a3e766da2b6d151dd2 | /*! \file IPFSystem.h
\brief Interface for Event-Driven Particle System. PF System has a system-specific parameters like a
maximum number of particles in the system, integration
step size etc. Operators and Tests may request values
of those parameters through the interface.
*/
/*************... | C | sbqgp/exp_3dsmax/include/ParticleFlow/IPFSystem.h | kshman/sblsp | bsd-3-clause | 9,687 | 235 | codeparrot/github-code |
9b5983b5170a8380aacf57d3863a9b335412a4a5b65bfdb8581c4fadf75e798d | /*********************************************************************
* Author: CrystalMapper (Generated)
* Date: Monday, April 01, 2013 8:25 PM
* Project: http://www.fanaticlab.com/projects/crystalmapper/
* Copyright (c) 2013 FanaticLab
*********************************************************************/
us... | C# | CrystalMapper.UnitTest/MySQL/Northwind/Mapping/Territory.cs | mysteryjeans/CrystalMapper | bsd-3-clause | 8,419 | 239 | codeparrot/github-code |
97ebf3b83d393c5c3cdfa5dcddf3347234729f43f9fc1395e46d6cfea0981463 | /*
Copyright (c) 2008-2013, Northwestern 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:
Redistributions of source code must retain the above copyright notice,
this list of conditions a... | C | AIMToolkit_v4.1.0_rv44/source/AIMLib/AIMXML/type_iso.CUVP_II.h | NCIP/annotation-and-image-markup | bsd-3-clause | 2,446 | 64 | codeparrot/github-code |
0a5a97e100afa893d6ce86f4937f69c0d84bea519c0b8804041ec20b8eb1b307 | <?php
namespace Bpost\BpostApiClient;
use Bpost\BpostApiClient\Exception\BpostLogicException\BpostInvalidLengthException;
use Bpost\BpostApiClient\Exception\BpostLogicException\BpostInvalidValueException;
/**
* bPost Form handler class
*
* @author Tijs Verkoyen <php-bpost@verkoyen.eu>
*/
class FormHandler
{
/... | PHP | src/FormHandler.php | tijsverkoyen/bpost | bsd-3-clause | 6,173 | 212 | codeparrot/github-code |
b240cf4bb2f594b175f85cd9395560ee9abf5079976b97e5c02b3b7f63a5cea7 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD Lic... | PHP | module/Wall/src/Wall/Controller/IndexController.php | crysthianophp/api | bsd-3-clause | 9,694 | 336 | codeparrot/github-code |
792a429bfee13a849a58336f3919ef8e96365578c124acc93dc76dae4fa66f03 | // validat2.cpp - written and placed in the public domain by Wei Dai
#include "pch.h"
#include "blumshub.h"
#include "rsa.h"
#include "md2.h"
#include "elgamal.h"
#include "nr.h"
#include "dsa.h"
#include "dh.h"
#include "mqv.h"
#include "luc.h"
#include "xtrcrypt.h"
#include "rabin.h"
#include "rw.h"
... | C++ | src/C++/crypto++/crypto++-5.0/validat2.cpp | GaloisInc/hacrypto | bsd-3-clause | 23,428 | 741 | codeparrot/github-code |
7366b926d1929d89b0bbeba4e384bac9360e032e3c5e8c47809fb02f76fdaeb8 | /**********************************************************************
* denki_blocks *
**********************************************************************
* *
*gui.c: ... | C | src/gfx.c | vsiles/LoutreBlocks | bsd-3-clause | 8,255 | 315 | codeparrot/github-code |
8c5118e47f420413cde9fbcbc2908196d5385eac033365d78d2f9c335be8b4e5 | /**
* Copyright (c) 2011, salesforce.com, 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:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | Java | src/main/java/canvas/SignedRequest.java | anandbn/tosho | bsd-3-clause | 6,472 | 153 | codeparrot/github-code |
d63548cceb0bc11ff14513827b699f68fbf1d685c6224814a23d547d9d99756c | import {ZoomBaseTool, ZoomBaseToolView} from "./zoom_base_tool"
import {tool_icon_zoom_out} from "styles/icons.css"
import * as p from "core/properties"
export class ZoomOutToolView extends ZoomBaseToolView {
override model: ZoomBaseTool
}
export namespace ZoomOutTool {
export type Attrs = p.AttrsOf<Props>
exp... | TypeScript | bokehjs/src/lib/models/tools/actions/zoom_out_tool.ts | bokeh/bokeh | bsd-3-clause | 1,198 | 43 | codeparrot/github-code |
bbb505d89f1cb9c11f705c2e04537aea487a81f6e15c740120204d905041ee81 | package com.groupon.novie.internal.engine;
/**
* This class represent an order/sort constraint. Dimension and information name are stored in upperCase
* @author thomas
* @since 10/01/2014.
*/
public class QuerySortConstraint {
private OrderByDirection orderByDirection;
private String dimensionName;
p... | Java | novie-core/src/main/java/com/groupon/novie/internal/engine/QuerySortConstraint.java | groupon/Novie | bsd-3-clause | 1,075 | 38 | codeparrot/github-code |
5929f67ffe2e61bf421a8494dde1f3a79549eee9ce4f9c6a272e8456b5861cea | // 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.
/**
* @fileoverview Offline message screen implementation.
*/
cr.define('login', function() {
// Screens that should have offline message overla... | JavaScript | chrome/browser/resources/chromeos/login/screen_error_message.js | gavinp/chromium | bsd-3-clause | 11,685 | 331 | codeparrot/github-code |
fdaa35d0f4890febf4b96648c6236e2b269b1513faacb68bd8aab3a7e3143ed9 | using System.Linq;
using System.Web.Mvc;
using Contrib.Foundation.Forum.Extensions;
using Contrib.Foundation.Forum.Models;
using Contrib.Foundation.Forum.Services;
using Orchard;
using Orchard.ContentManagement;
using Orchard.DisplayManagement;
using Orchard.Localization;
using Orchard.Mvc;
using Orchard.Security;
usi... | C# | Controllers/ThreadController.cs | teamgrapto/Contrib.Foundation.Forum | bsd-3-clause | 7,265 | 165 | codeparrot/github-code |
cc63f6dcd8f31d183074c517c2a52df6ef08453877835de0a512f573949d7a4d | /* $OpenBSD: phantomas.c,v 1.1 2002/12/18 23:52:45 mickey Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
* 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 sourc... | C | openbsd/sys/arch/hppa/dev/phantomas.c | MarginC/kame | bsd-3-clause | 2,761 | 84 | codeparrot/github-code |
189d318c7cadb7170d2cfa9493c9df7a4b890cec2d29ad107017903d2f22b53b | using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using NiL.JS;
using NiL.JS.Core;
using NiL.JS.Extensions;
using System.Collections;
using System.Collections.Generic;
using NiL.JS.Core.Interop;
namespace NetCoreTestApp
{
public class Program
{
public class MyObject
{... | C# | NetCoreTestApp/Program.cs | Oceanswave/NiL.JS | bsd-3-clause | 6,797 | 208 | codeparrot/github-code |
b5594a55f3b70f8eddd59146465f0b9991c53050dcd477e4d74fc66aae201421 | import collections
from .settings import preferences_settings
from .exceptions import CachedValueNotFound, DoesNotExist
class PreferencesManager(collections.Mapping):
"""Handle retrieving / caching of preferences"""
def __init__(self, model, registry, **kwargs):
self.model = model
self.re... | Python | dynamic_preferences/managers.py | willseward/django-dynamic-preferences | bsd-3-clause | 4,981 | 150 | codeparrot/github-code |
e37d01cd49672d8563d137c595383d5a0b64fcfd4c70cbb7b0ea6d2c877a4b37 | /**
******************************************************************************
* @file tsl_linrot.c
* @author MCD Application Team
* @version V2.2.0
* @date 01-february-2016
* @brief This file contains all functions to manage Linear and Rotary sensors.
*********************************... | C | stm32/STM32Cube_FW_F0_V1.9.0/Middlewares/ST/STM32_TouchSensing_Library/src/tsl_linrot.c | lpodkalicki/blog | bsd-3-clause | 61,160 | 2,102 | codeparrot/github-code |
f738681f1070e8ed9aa1f399d2ca70ff8bd5536888c7de80779d3c0178056eb2 | /*********************************************************************
*
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Robert Bosch LLC.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followin... | JavaScript | rcommander_web/html/js/ros/actionlib/commstatemachine.js | gt-ros-pkg/rcommander-pr2 | bsd-3-clause | 17,673 | 344 | codeparrot/github-code |
20275028045f037ca243cd2fa4e55c2c06d6bcb31369887e01f9e18246fbb83e | // Copyright (c) 2003-present, Jodd Team (jodd.org). All Rights Reserved.
package jodd.bean;
import jodd.util.StringTemplateParser;
/**
* Bean template is a string template with JSP-alike
* macros for injecting context values.
* This is a parser for such bean templates.
* <p>
* Once set, <code>BeanTe... | Java | jodd-bean/src/main/java/jodd/bean/BeanTemplateParser.java | wsldl123292/jodd | bsd-3-clause | 1,170 | 43 | codeparrot/github-code |
e21e678b78e94c3d6f643f1622224d950801e3dd7524ffb23d5f02fd509fc348 | <?php
/**
* SimplePie
*
* A PHP-Based RSS and Atom Feed Framework.
* Takes the hard work out of managing a complete RSS/Atom solution.
*
* Copyright (c) 2004-2012, Ryan Parman, Geoffrey Sneddon, Ryan McCue, and contributors
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or w... | PHP | library/SimplePie.php | Alkarex/simplepie | bsd-3-clause | 91,264 | 3,163 | codeparrot/github-code |
989fada9137510ae9b2e6dd1da150986b22ff1e7179391d7dc5470c85ad4fe2b | if (typeof require != 'undefined' || !jsyrup)
var jsyrup = require('../../../jsyrup');
describe('when creating', function() {
var ds, modelClass, callback;
beforeEach(function() {
ds = new jsyrup.SQLDataSource();
callback = jasmine.createSpy();
modelClass = jsyrup.ModelFactory({
... | JavaScript | test/unit/datasources/test.sql.js | russpos/jsyrup | bsd-3-clause | 1,737 | 68 | codeparrot/github-code |
2e0669946251e8eac2a18e0e223025a64519b616b2b1a588aab443e8ef5d60cd | <?php
namespace common\models;
use Yii;
class ArticleCat extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return '{{%article_cat}}';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['cat_na... | PHP | common/models/ArticleCat.php | wordnews/shop | bsd-3-clause | 3,883 | 155 | codeparrot/github-code |
753b7f77852b65f5b51c722a968244d0abca628a6d0f65e53f489275f44a6497 | /*================================================================================
Copyright (c) 2009 VMware, 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:
* Redistributions of source code must ... | Java | src/com/vmware/vim25/AlreadyExists.java | mikem2005/vijava | bsd-3-clause | 1,905 | 49 | codeparrot/github-code |
3ee821c6c92da67c33aea1b76e0c531f35912c3aa89eb61e428750b25c3b1e6e | <?php
namespace Api\Controller;
class InputoptionsController extends AppController {
public function __construct()
{
}
public function addAction()
{
return \Api\Bus\InputOptions\Add::getInstance()->execute(
$this->getServiceLocator()->get('InputOptions'),
... | PHP | module/Api/src/Api/Controller/InputoptionsController.php | thailvn/dev | bsd-3-clause | 2,165 | 84 | codeparrot/github-code |
441399386a343ae5c3083bfc5a0544d8f43f8962085f2600c8687a663be97c45 | /*
Copyright (c) 2011-2013, ESN Social Software AB and Jonas Tarnstrom
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list o... | C | pandas/_libs/src/ujson/lib/ultrajsondec.c | TomAugspurger/pandas | bsd-3-clause | 31,018 | 1,203 | codeparrot/github-code |
ceeefb0a8a52eee90fe4dafd836bbea47bd89659fc01f63a886031d86932e86a | /*
* npy_ctors.c -
*
* */
#include <stdlib.h>
#include <ctype.h>
#include <memory.h>
#include "npy_config.h"
#include "npy_utils.h"
#include "npy_api.h"
#include "npy_arrayobject.h"
#include "npy_internal.h"
/* TODO: Remove these declarations once PyArray_INCREF, etc refactored. */
extern int PyArray_INCREF(void... | C | libndarray/src/npy_ctors.c | teoliphant/numpy-refactor | bsd-3-clause | 53,012 | 1,919 | codeparrot/github-code |
58ae01fd07f345dcfbe6dbbb5a6f4e1e8c1d770cf75bd2bd4cb2cca4589455b4 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_LIFE_CYCLE_IMPL_H_
#define ASH_COMPONENTS_PROXIMITY_AUTH_REMOTE_DEVICE_LIFE_CYCLE_IMPL_H_
#include <m... | C | chromium/ash/components/proximity_auth/remote_device_life_cycle_impl.h | ric2b/Vivaldi-browser | bsd-3-clause | 4,255 | 117 | codeparrot/github-code |
60158c6b554c881aedfce7801d9010b86d3376c4c72e3403eb0a63a28c3aece7 | local SpatialDeconvolution, parent = torch.class('nn.SpatialDeconvolution', 'nn.Module')
function SpatialDeconvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padW, padH)
parent.__init(self)
dW = dW or 1
dH = dH or 1
self.nInputPlane = nInputPlane
self.nOutputPlane = nOutputPlane
self.kW ... | Lua | SpatialDeconvolution.lua | zchengquan/nn | bsd-3-clause | 4,374 | 138 | codeparrot/github-code |
b512c275bf279f8b8ff56711d52344f6ea921cc41547cd6fec4cf90ee9c26d8c | /* $This file is distributed under the terms of the license in /doc/license.txt$ */
package edu.cornell.mannlib.vitro.webapp.searchengine.elasticsearch;
import static edu.cornell.mannlib.vitro.webapp.searchengine.elasticsearch.JsonTree.EMPTY_JSON_MAP;
import static edu.cornell.mannlib.vitro.webapp.searchengine.elasti... | Java | api/src/main/java/edu/cornell/mannlib/vitro/webapp/searchengine/elasticsearch/QueryConverter.java | vivo-project/Vitro | bsd-3-clause | 6,254 | 173 | codeparrot/github-code |
426e7be5ccc7fa652e9675675fa41c79e93c66e52d1df8cccfad842ae139e216 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// The pure virtual class for send side loss detection algorithm.
#ifndef QUICHE_QUIC_CORE_CONGESTION_CONTROL_LOSS_DETECTION_INTERFACE_H_
#define QUICHE_... | C | quic/core/congestion_control/loss_detection_interface.h | google/quiche | bsd-3-clause | 2,680 | 76 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.