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
ad82c7cc65ce645a4500ddbdf3f35b0d5dcf56e7cc9672fec8b2208fdadd591b
<?php /** * @author Semenov Alexander <semenov@skeeks.com> * @link http://skeeks.com/ * @copyright 2010 SkeekS (СкикС) * @date 02.07.2015 */ namespace skeeks\cms\models\forms; use skeeks\cms\models\User; use Yii; use yii\base\Model; /** * Login form */ class BlockedUserForm extends Model { public $passwor...
PHP
src/models/forms/BlockedUserForm.php
skeeks-cms/cms
bsd-3-clause
1,877
83
codeparrot/github-code
4e2dea2b7bc69ed72e5ff1920de71d9556393d90e68016feb1f8bf05c603c18a
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title>statsmodels.regression.process_regression.ProcessMLEResults.bsejac &#8212; statsmodels v0.10.2 documentation</title> <link rel="stylesheet" href="../_static/nature.css" type="text/css" /> <link rel="s...
HTML
v0.10.2/generated/statsmodels.regression.process_regression.ProcessMLEResults.bsejac.html
statsmodels/statsmodels.github.io
bsd-3-clause
7,704
166
codeparrot/github-code
93c0b7d850e412965f05b184ecad62a94d45247b2d8a6a9ed7530984a6f43e05
-- | Here we use @dynamic-object@ to descibe the concept of point-like particles from -- classical mechanics. Also read the HSpec tests : -- <https://github.com/nushio3/dynamic-object/blob/master/test/ObjectSpec.hs> -- for more details. {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE...
Haskell
Data/Object/Dynamic/Examples/PointParticle.hs
nushio3/dynamic-object
bsd-3-clause
6,339
162
codeparrot/github-code
bdcd1fc96e6eddee22a72cad366d21299066ac76e568b2d9bbf16c12b933797d
<?php namespace Users\Controller; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; /** * Description of RegistrateController * * @author adam */ class RegistrateController extends AbstractActionController{ public function indexAction() { $form = $this->getServiceLo...
PHP
module/Users/src/Users/Controller/RegistrateController.php
devmetal/ClassPage
bsd-3-clause
1,884
72
codeparrot/github-code
36b35b6e57ed2a0a0c07966626db3907013be720793547a31ffa338b6648ab73
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ABI44_0_0AndroidProgressBarShadowNode.h" #include <ABI44_0_0React/ABI44_0_0renderer/components/progressbar/AndroidProgre...
C++
ios/versioned-react-native/ABI44_0_0/ReactNative/ReactCommon/react/renderer/components/progressbar/android/react/renderer/components/progressbar/ABI44_0_0AndroidProgressBarShadowNode.cpp
exponentjs/exponent
bsd-3-clause
1,135
36
codeparrot/github-code
6858b544e4d425e16d2ad21a21247b3223ee2c68f158e7991200b1e4d2883c0a
<?php namespace Sudoku\Model; class SudokuCell{ var $possibleValues; var $value; function __construct($possibleValues){ $this->init(); $this->setPossibleValues($possibleValues); } function init(){ $this->possibleValues = array(); $this->value = ""; } funct...
PHP
module/Sudoku/src/Sudoku/Model/SudokuCell.php
TobiKipp/SudokuZend
bsd-3-clause
1,440
62
codeparrot/github-code
d5061b25efc6186bbfc109c73c5519e9b4299d5cbaa91efe80f53e24beabb56d
/* * Zorbage: an algebraic data hierarchy for use in numeric processing. * * Copyright (c) 2016-2021 Barry DeZonia 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...
Java
src/main/java/nom/bdezonia/zorbage/type/real/float64/Float64MatrixMember.java
bdezonia/zorbage
bsd-3-clause
26,411
1,122
codeparrot/github-code
3976eb05cdaeb4e3c8c8cd797c30ccd06ff19e4a69c4de73b702c4e130d78be7
// 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/autofill/autofill_manager.h" #include <stddef.h> #include <limits> #include <map> #include <set> #include <utility> #inclu...
C++
chrome/browser/autofill/autofill_manager.cc
robclark/chromium
bsd-3-clause
52,549
1,361
codeparrot/github-code
52a68b94dcd079e1f581edf446bbfdcc69086f8ad00cb3b3a7802792f459bf45
const { addComment } = require('./add-comment'); const { rateLimiter } = require('../utils'); const { github: { owner, secret, freeCodeCampRepo, defaultBase } } = require('../config'); const { Octokit } = require('@octokit/rest'); const octokit = new Octokit({ auth: secret }); /* closes and reopens an open PR with...
JavaScript
tools/contributor/lib/pr-tasks/close-open.js
raisedadead/FreeCodeCamp
bsd-3-clause
1,545
58
codeparrot/github-code
f5fb31095ea55146eba289ec3ed9a020290f8d68d94cf8060850a13d267d54c6
<?php /** * Created by mice * To change this template use File | Settings | File Templates. */ namespace Application\UF; interface UFInterface { /** * Создает массив из N объектов * @param int $N */ public function __construct( $N); /** * Создает связь между $p и $q * @param int $p * @param int ...
PHP
module/Application/src/Application/UF/UFInterface.php
pyatachok/algs
bsd-3-clause
624
44
codeparrot/github-code
88fff208705740b419303a0105f7198ce70ccf15cd236aeca2e21424d1cd8180
/* * Copyright (C) 2004-2017, GoodData(R) Corporation. All rights reserved. * This source code is licensed under the BSD-style license found in the * LICENSE.txt file in the root directory of this source tree. */ package com.gooddata.md; import com.gooddata.AbstractService; import com.gooddata.GoodDataException; i...
Java
src/main/java/com/gooddata/md/MetadataService.java
standevgd/gooddata-java
bsd-3-clause
20,806
483
codeparrot/github-code
19b99aa7ed304bf32ebdcc641751ddb11583c9fd031bcd3965a4151ddae73d2f
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <? if ($data["error"]) { ?> <link rel="stylesheet" type="text/css" href="/css/bootstrap.css"> <div class="alert alert-danger"> <strong><?=Yii::t("admin","Error")?></strong><?=$data["message"]?> </div> <div class="pull-right"> <a href="...
PHP
protected/views/admin/pic/crop.php
jerry9032/xyzpedia
bsd-3-clause
4,231
151
codeparrot/github-code
112b39635860e9705b0a37bb05f1107863bf607bdb0df0cecc43582c630dc0b9
/* $KAME: sctp_output.h,v 1.14 2005/03/06 16:04:18 itojun Exp $ */ #ifndef __sctp_output_h__ #define __sctp_output_h__ /* * Copyright (C) 2002, 2003, 2004 Cisco Systems Inc, * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that t...
C
kame/sys/netinet/sctp_output.h
MarginC/kame
bsd-3-clause
5,006
153
codeparrot/github-code
ef0d38c2646dd316097c586ddfdfa462e53128b5357a0676a3dff08b2f1b46d2
/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2000 Dirk Mueller (mueller@kde.org) * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. * Copyright (C) 2012 Samsung Electronics. All rights reserved. * * This librar...
C
Source/core/html/HTMLInputElement.h
kurli/blink-crosswalk
bsd-3-clause
16,395
398
codeparrot/github-code
e6ab9ff3088aeb0c3114b59eff71221206e39174cdc6ade5016909b0f0c3b8aa
////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2004-2021 musikcube team // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redist...
C++
src/musikcore/audio/PlaybackService.cpp
clangen/musikcube
bsd-3-clause
37,691
1,163
codeparrot/github-code
27ddc4dad16fa19c17aecdaf26e467c36e4be0a67b820f14291593a916231025
/* 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://polymer.gi...
JavaScript
gulpfile.js
Tecm0/blog-app
bsd-3-clause
7,014
233
codeparrot/github-code
1896482a343bd23e66cf7b106ab130c5e92e6494a8f22d6f4c54c95d03a9afa3
{-# LANGUAGE CPP #-} ----------------------------------------------------------------------------- -- | -- Module : Distribution.Client.Init -- Copyright : (c) Brent Yorgey 2009 -- License : BSD-like -- -- Maintainer : cabal-devel@haskell.org -- Stability : provisional -- Portability : portable -- -...
Haskell
faction/Distribution/Client/Init.hs
IreneKnapp/Faction
bsd-3-clause
22,401
604
codeparrot/github-code
92ad2288a2804130190b70996caec7ef3159a923e40bab2053c0082fa14138f5
package minewebsocket.org.java_websocket.server; import java.io.IOException; import java.net.InetSocketAddress; import java.net.ServerSocket; import java.net.Socket; import java.net.UnknownHostException; import java.nio.ByteBuffer; import java.nio.channels.ByteChannel; import java.nio.channels.CancelledKeyException; i...
Java
src/minewebsocket/org/java_websocket/server/WebSocketServer.java
charles-d-burton/java_websocket_example
bsd-3-clause
23,992
737
codeparrot/github-code
708c0747386a598a6e29560db5187fd9d4a02acb76921c1bde2119399fbc59a3
"""Manage static information associated with tiles, programs and passes. Each tile has an assigned program name. The program names (DARK, BRIGHT) are predefined in terms of conditions on the ephemerides, but not all programs need to be present in a tiles file. Pass numbers are arbitrary integers and do not need to be ...
Python
py/desisurvey/tiles.py
desihub/desisurvey
bsd-3-clause
19,547
509
codeparrot/github-code
fa742e5625e257ddac916ef7e64fbb0687da17a3c2bcc9202f947876239d121b
#[macro_use] extern crate log; extern crate ilc_base; extern crate chrono; use std::io::{BufRead, Write}; use std::borrow::{Cow, ToOwned}; use std::iter::Iterator; use ilc_base::event::{Event, Time, Type}; use ilc_base::format::{rejoin, strip_one}; use ilc_base::{Context, Decode, Encode}; use log::LogLevel::Info; u...
Rust
formats/energymech/src/lib.rs
tilpner/ilc
bsd-3-clause
13,839
312
codeparrot/github-code
d200452eb765decc6a50bd4c2b61e80362b8a8bb03ca3657163df11b7499380b
{% extends "base.html" %} {% load humanize %} {% block add_styles %} .graph {min-height: 158px;} h3 { margin-top: 5px; margin-bottom: 5px; font-size: 20px; line-height: 22px;} {% endblock %} {% block content %} <div class="panel panel-default"> <div class="panel-heading tight"> <div clas...
HTML
dojo/templates/dojo/view_product.html
ksmaheshkumar/django-DefectDojo
bsd-3-clause
30,120
830
codeparrot/github-code
b2bd9365bb5b8c9c5fae66158e5d9fdee2eff925275db63b9a4768f2e8bb8439
module Text.Email.Parser.Polymorphic ( addrSpec, -- addrSpec is from this module, the rest are re-exports. localPart, domainPart, EmailAddress, unsafeEmailAddress, toByteString ) where import Text.Email.Parser (localPart, domainPart, EmailAddress(..), unsafeEmailAddress, toByteString) impo...
Haskell
src/Text/Email/Parser/Polymorphic.hs
bitemyapp/email-validate-hs
bsd-3-clause
3,833
127
codeparrot/github-code
0e5897f99e4383091d0f0a99e4b0c6de54d30eb7e86a74aaca679d63fb3f9e06
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
C
Modules/DiffusionImaging/DiffusionCore/Rendering/vtkMaskedProgrammableGlyphFilter.h
nocnokneo/MITK
bsd-3-clause
3,466
116
codeparrot/github-code
f21fc7c5ef5909706eefa6fc88c18ba7b438e1d22a464a4dbbfa33e61a176337
#include <boost/python.hpp> #include "arrayobject.h" #include <fstream> namespace private_namespace_b8c8222c1cbba937bf820d90b78ee49e { void kernel(PyObject *in_grid, PyObject *out_grid) { std::ofstream _asp_log_file; _asp_log_file.open("/tmp/trace.txt"); #define _out_grid_array_macro(_d0,_d1) (_d1+(_...
C++
demo/asp_cache/d337ad0cf1e707ceda0a7b73e1e7d749/module.cpp
richardxia/asp-multilevel-debug
bsd-3-clause
21,177
233
codeparrot/github-code
ac3c6bd39dabbbf7031fdb99e3c49fc665039048b4e749f2b0462ede7c9af7ee
/*- * Data structures and definitions for CAM Control Blocks (CCBs). * * Copyright (c) 1997, 1998 Justin T. Gibbs. * 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 o...
C
sys/cam/cam_ccb.h
jrobhoward/SCADAbase
bsd-3-clause
42,016
1,348
codeparrot/github-code
5bfb4b505075ca99ca92b3ce8e38460353ecd63c0d8b458c45d616ab90e3c1dd
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_CHROMEOS_CHILD_ACCOUNTS_TIME_LIMITS_WEB_TIME_LIMIT_ERROR_PAGE_WEB_TIME_LIMIT_ERROR_PAGE_H_ #define CHROME_BROWSER_CHROMEOS_CHILD_AC...
C
chrome/browser/chromeos/child_accounts/time_limits/web_time_limit_error_page/web_time_limit_error_page.h
endlessm/chromium-browser
bsd-3-clause
1,577
37
codeparrot/github-code
f1abd2c68092c3b8043f482667ceb658abce060bc0beaf0999a8dd0287ad4365
# Copyright (C) 2015, University of British Columbia # Written (originally) by Mark Greenstreet (13th March, 2014) # Editted by Yan Peng (11th Nov. 2016) # # License: A 3-clause BSD license. # See the LICENSE file distributed with this software import collections import ACL2_to_Z3 import z3 def prod(stuff)...
Python
z3_interface/RewriteExpt.py
pennyan/Smtlink
bsd-3-clause
15,337
332
codeparrot/github-code
c0885d93b745ec5ef4ca8342236983e6e83b5637b5f7a99e8a9e893d7d7347a5
var util = require('util') , debug = require('debug')('bones-boiler:Base'); model = models.Base; model.prototype.dbSchema = model.dbSchema = {}; model.augment({ initialize: function(parent) { parent.call(this); if (!Bones.plugin.db) debug('initialize - no backend available.'); if (Bones...
JavaScript
models/Base.server.bones.js
conoremclaughlin/bones-boiler
bsd-3-clause
1,286
48
codeparrot/github-code
1f2714c0e447357ff6aa4dc3015573e17c157e4a20e988b06f0ccf40e68feca7
import math from sqlalchemy.sql import expression from sqlalchemy.ext.compiler import compiles from sqlalchemy.types import DateTime from blazeutils.strings import randchars from keg.db import db class utcnow(expression.FunctionElement): type = DateTime() @compiles(utcnow, 'postgresql') def _pg_utcnow(element...
Python
keg_elements/db/utils.py
nZac/keg-elements
bsd-3-clause
2,393
85
codeparrot/github-code
d5a3411a62d5292ff943b1d839660901150663f25a2f25d0c002354967fc9f1c
# IPython log file with open('request.txt', mode='r') as fin: wells = [line.strip() for line in fin] wells plates = ['_'.join(well.split('_')[:2]) for well in wells] plates set.intersection(plates, os.listdir('/Volumes/King-Ecad-Screen-Tiffs2/tiffs/')) set.intersection(set(plates), set(os.listdir('/Volumes/K...
Python
maree-faux-data.py
jni/useful-histories
bsd-3-clause
2,032
59
codeparrot/github-code
12db13cccfee1a31321015f05ca9ad5fbbcd4af5c81a7e341095cfd016033a42
/* * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) * Copyright (C) 2004, 2005, 2006, 2007, 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 Foundat...
C++
third_party/blink/renderer/platform/transforms/scale_transform_operation.cc
endlessm/chromium-browser
bsd-3-clause
3,503
94
codeparrot/github-code
67df2d1972c4df3a524954fce6b0ab8d116a81c23a504de9a2e838e5912bbb40
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; using System.Threading; using MyGeneration; using Zeus; namespace MyGeneration.Forms { public partial class ApplicationReleasesControl : UserControl...
C#
src/mygeneration/MyGenUtility/Forms/ApplicationUpdate/ApplicationReleasesControl.cs
cafephin/mygeneration
bsd-3-clause
6,529
184
codeparrot/github-code
353945a9f76a6b65f5e31cf270134fef6b7d4c81c53fa9003aa7839a508a80e1
<?php /** * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS...
PHP
module/LearnZF2FormUsage/test/PHPUnit/LearnZF2FormUsageTest/Controller/FormControllerTest.php
samsonasik/LearnZF2
bsd-3-clause
2,789
81
codeparrot/github-code
aaa8e5936503bca07dd737d78bfd57f072392f9fd12cd1bae754ea270809d60e
<?php use PhlyBlog\AuthorEntity; use PhlyBlog\EntryEntity; $author = new AuthorEntity(); $author->setId('matthew'); $author->setName("Matthew Weier O'Phinney"); $author->setEmail('matthew@zend.com'); $author->setUrl('http://mwop.net/'); $post = new EntryEntity(); $post->setTitle('Apigility 1.0.0beta1 Released!'); $po...
PHP
data/blog/2014-03-24-Apigility-1.0.0beta1.php
vrkansagara/ZFBlog
bsd-3-clause
13,844
321
codeparrot/github-code
cb8c754aadff73d8ddf767ef29acc7c4479c46feeaccedb213c729dd4d8c2742
package websocket import( "net/http" "log" "github.com/gorilla/websocket" wss "github.com/ipastushenko/simple-chat/server/services/websocket" "github.com/ipastushenko/simple-chat/server/services/token" ) var upgrader = websocket.Upgrader{ CheckOrigin: func(r *http.Request) bool { retur...
GO
server/controllers/websocket/handler.go
ipastushenko/simple-chat
bsd-3-clause
1,089
42
codeparrot/github-code
c49cc8ade9cf931cd186a39e0406ba4182a2079f2fb863e9b8cbbba4ecaf3c14
// ----------------------------------------------------------------------------- // Brandy language DFA (lexer) // Howard Hughes // ----------------------------------------------------------------------------- #ifndef LEXER_H #define LEXER_H #pragma once #include "tokens.h" #include <map> #include <memory> #include ...
C
src/lexer.h
ImOnALampshade/brandy
bsd-3-clause
1,924
73
codeparrot/github-code
5df39e9af423d04ec8a4eb5da071ddc4e6e5d409890095ccf67a8dd5e98783ad
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd 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...
C
CPP/include/GuiProt/SearchPrintingPolicyFactory.h
wayfinder/Wayfinder-S60-Navigator
bsd-3-clause
2,154
37
codeparrot/github-code
52217f89b9b8baf11af6e340f7e49dae94c24301a448516a7a2f9a671e09657b
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_WEB_PACKAGE_WEB_BUNDLE_HANDLE_H_ #define CONTENT_BROWSER_WEB_PACKAGE_WEB_BUNDLE_HANDLE_H_ #include <memory> #include "base/macro...
C
content/browser/web_package/web_bundle_handle.h
nwjs/chromium.src
bsd-3-clause
3,691
102
codeparrot/github-code
71eddf8dd19568b77d41e44900f572ffaa2f344f6690f2322b5687c06b054599
// Copyright (c) MOSA Project. Licensed under the New BSD License. namespace System { /// <summary> /// /// </summary> public struct Int32 { public const int MaxValue = 0x7fffffff; public const int MinValue = -2147483648; internal int _value; public int CompareTo(int value) { if (_value < value) r...
C#
Source/Korlib/System/Int32.cs
kiootic/MOSA-Project
bsd-3-clause
1,761
102
codeparrot/github-code
f771b293ef57dc9291c975006886dd433fffc7ebb4cf91f3f4a8033e74c9a8b7
#ifndef __RHI_GLES2_H__ #define __RHI_GLES2_H__ #include "../Common/rhi_Private.h" #include "../Common/rhi_BackendImpl.h" namespace rhi { struct InitParam; struct GLCommand; void gles2_Initialize(const InitParam& param); namespace VertexBufferGLES2 { void Init(uint32 maxCount); void SetupDispatch(Dispatch* dispatch...
C
Sources/Internal/Render/RHI/GLES2/rhi_GLES2.h
dava/dava.engine
bsd-3-clause
4,141
191
codeparrot/github-code
9ff08a6d78427f95ee59b03f4d5a69c454a109348e21fa66a4427fbee3414d4a
<?php /** * TbAlert class file. * @author Christoffer Niska <ChristofferNiska@gmail.com> * @copyright Copyright &copy; Christoffer Niska 2011- * @license http://www.opensource.org/licenses/bsd-license.php New BSD License * @package bootstrap.widgets */ /** * Bootstrap alert widget. * @see http://tw...
PHP
widgets/CiiAlert.php
charlesportwoodii/cii
bsd-3-clause
3,878
148
codeparrot/github-code
f5012d4f9b85b801e93289cd794042969d327482a76485d8ffd7080cf3c6504c
from astropy.io import fits from astropy.wcs import WCS import numpy as np import matplotlib import os import glob from findSN import * from matplotlib.ticker import AutoMinorLocator import sys sys.path.insert(0, '/home/afsari/') from SNAP2.Analysis import * current_path=os.path.dirname(os.path.abspath(__file__)) matp...
Python
Lbolcorr.py
niliafsari/KSP-SN
bsd-3-clause
11,518
357
codeparrot/github-code
ab85a45771b211bc75074f5f50475c8660e5f01c713d6b50af478c0904be4772
package abi43_0_0.expo.modules.adapters.react; import android.os.Bundle; import abi43_0_0.com.facebook.react.bridge.Arguments; import abi43_0_0.expo.modules.core.Promise; import java.util.List; import javax.annotation.Nullable; /** * Decorator for {@link abi43_0_0.com.facebook.react.bridge.Promise}, * so we don...
Java
android/versioned-abis/expoview-abi43_0_0/src/main/java/abi43_0_0/expo/modules/adapters/react/PromiseWrapper.java
exponentjs/exponent
bsd-3-clause
1,046
39
codeparrot/github-code
be813ba4e252fc120d9eee6546ffdc17d28c721c17032fb89be56192724e7525
import unittest import UniDomain.Classes as Classes #---- unittest Test Classes below here class TestConfig(unittest.TestCase): """Test Config Class""" def test_Config(self): """Check if required config defaults are set""" self.config = Classes.Config() self.assertTrue('plugin_authen' ...
Python
lib/test/Classes.py
spahan/unixdmoain
bsd-3-clause
1,575
31
codeparrot/github-code
9cda6303dc5b420897bda4d0fab5b951ee09fe1d17a245bd3a2462466e96a424
import datetime, os import operator import six from email.utils import parseaddr from form_utils.forms import BetterModelForm from django import forms from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from django.db.models.query import QuerySet from django.forms.util import ErrorLi...
Python
ietf/liaisons/forms.py
wpjesus/codematch
bsd-3-clause
26,264
550
codeparrot/github-code
fb98a1d1062ab2f59c02598a1ace3d6bbd5555a80fb7271e4eb32aec8d3fa695
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title>statsmodels.genmod.families.links.cloglog.inverse_deriv &#8212; statsmodels v0.10.2 documentation</title> <link rel="stylesheet" href="../_static/nature.css" type="text/css" /> <link rel="stylesheet" ...
HTML
v0.10.2/generated/statsmodels.genmod.families.links.cloglog.inverse_deriv.html
statsmodels/statsmodels.github.io
bsd-3-clause
8,009
180
codeparrot/github-code
c32c1801bbd6f96114ef5875687b98e9266f7a57f38bc1ff7002da77f85d9228
# You can edit these settings and save them, they # will be applied immediately and remembered for next time. # This will reset the interpreter. # ******************************************************************************* # # If changing these settings makes the interpreter unrecoverable, you # # can...
Python
client/silvershell/white_on_black_prefs.py
Eloff/silvershell
bsd-3-clause
6,018
149
codeparrot/github-code
b97d5e4f310f476afcab4c78ab52a16c9f91a8831933eb4a75cf40d97af24d32
/* Copyright (c) 1991 by the Vrije Universiteit, Amsterdam, the Netherlands. * For full copyright and restrictions on use see the file COPYING in the top * level of the LLgen tree. */ /* * L L G E N * * An Extended LL(1) Parser Generator * * Author : Ceriel J.H. Jacobs */ /* * global.c * Contains declar...
C
util/LLgen/src/global.c
Godzil/ack
bsd-3-clause
1,632
86
codeparrot/github-code
3ef1a1a935d398238430ba6a4687060d20cc08d037e0eb731268aa6c2a45457a
/* BFD back-end for National Semiconductor's CR16C ELF Copyright 2004, 2005 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by...
C
tools/source/binutils-2.16.1/bfd/elf32-cr16c.c
shaotuanchen/sunflower_exp
bsd-3-clause
30,215
1,004
codeparrot/github-code
2caf126dfea10ceb37f455cfe822946755547aa474f2b80ca3cdc7ff37407086
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_ANDROID_CONTEXT_MENU_HELPER_H_ #define CHROME_BROWSER_UI_ANDROID_CONTEXT_MENU_HELPER_H_ #include "base/android/jni_android.h" #...
C
chrome/browser/ui/android/context_menu_helper.h
scheib/chromium
bsd-3-clause
1,790
53
codeparrot/github-code
55f971df89f6f9e48d34653646ec5740f8b2930dbb09aedee790a608079e4132
use std::process::exit; use std::sync::mpsc; use std::thread::sleep; use std::time::Duration; extern crate unbound; mod util; fn main() { let ctx = unbound::Context::new().unwrap(); let mut i = 0; let (tx, rx) = mpsc::channel(); let mycallback = move |_: unbound::AsyncID, result: unbound::Re...
Rust
unbound/examples/tutorial4.rs
andrewtj/rust-unbound
bsd-3-clause
1,173
46
codeparrot/github-code
89e413e18df1b21757d1b11e6b0d84a0ad8461cd8eb9a22ccc78f0abe9f677c8
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>mne.do_forward_solution &mdash; MNE 0.11.0 documentation</title> <link rel="stylesheet" href="../_static/basic.css" type="text/css" /> <link rel="...
HTML
0.11/generated/mne.do_forward_solution.html
mne-tools/mne-tools.github.io
bsd-3-clause
13,859
329
codeparrot/github-code
e0ef1b0d64e6f223069904df5872dd502424e117f123f0a4203f7ab9a4c5b271
/* Copyright (c) 2016, Henrique Abdalla <https://github.com/AquariusPower><https://sourceforge.net/u/teike/profile/> 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 ...
Java
src/com/github/commandsconsolegui/spLemur/extras/ManageCellRendererI.java
AquariusPower/CommandsConsoleGUI
bsd-3-clause
4,188
94
codeparrot/github-code
ee8266dd7eee518d9e7661f585fc2c0a3644691c851cdcfdce67f4e9c3a9f550
<?php require_once 'Zend/Crypt/Rsa/Key.php'; class Zend_Crypt_Rsa_Key_Public extends Zend_Crypt_Rsa_Key { protected $_certificateString = null; public function __construct($string) { $this->_parse($string); } protected function _parse($string) { if (preg_match("/^-----BEGI...
PHP
Crypt/Rsa/Key/Public.php
jkonieczny/Zend
bsd-3-clause
996
38
codeparrot/github-code
45974342da33cb2a3e548583bdd68df66b407093f3eca504f7455651e1ab17b1
/*************************************************************************************************** * Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted * provided that the following conditions are me...
C
include/cutlass/epilogue/threadblock/epilogue_gemm_k_reduction.h
NVIDIA/cutlass
bsd-3-clause
7,323
208
codeparrot/github-code
517c1bb0c0629c8a1d9485c86781d8c2b85941b67f2221c8a6551c0145bae0de
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="lang:clipboard.copy" conte...
HTML
v0.13.0/generated/statsmodels.sandbox.distributions.extras.ACSkewT_gen.logcdf.html
statsmodels/statsmodels.github.io
bsd-3-clause
20,626
519
codeparrot/github-code
34e7a166032bbb821fcb0694629c3b81b441a0bb60a8c00b1923cad5f2fd6fed
using Orchard.ContentManagement; using Orchard.Alias.Models; using YesSql.Indexes; namespace Orchard.Alias.Indexes { public class AliasPartIndex : MapIndex { public string ContentItemId { get; set; } public string Alias { get; set; } } public class AliasPartIndexProvider : IndexProvid...
C#
src/OrchardCore.Modules/Orchard.Alias/Indexes/AliasPartIndex.cs
yiji/Orchard2
bsd-3-clause
1,119
40
codeparrot/github-code
ad8366033745dd7f51696a6524c5d8fc1b18c6a7f8dffd241dbce964d68844ec
''' Copyright (c) 2015, 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 conditions and the foll...
Python
providence.py
SalesforceEng/Providence
bsd-3-clause
10,230
213
codeparrot/github-code
07cc5b8e7b3b0db4859d3a15c3cecf2ef2b8d48a3447759966817bfee98346bd
import React from 'react'; import RouteError from 'app/views/routeError'; type State = { hasError: boolean; error: Error | undefined; }; export default function errorHandler<P>(Component: React.ComponentType<P>) { class ErrorHandler extends React.Component<P, State> { static getDerivedStateFromError(error:...
TypeScript
src/sentry/static/sentry/app/utils/errorHandler.tsx
beeftornado/sentry
bsd-3-clause
1,096
46
codeparrot/github-code
3ebe8d2fbeb180a18a73dfda0320e839d7f2b75fa56a5cad4a1cb922e7a2db68
<?php namespace Forum\Model; class Thread{ public $id; //thread ID public $title; //thread title public $OP; //public $time; // public $replies; //number of replies public $inputFilter; public function exchangeArray($d...
PHP
module/Forum/src/Forum/Model/Thread.php
NinjaVampirate/forum
bsd-3-clause
992
33
codeparrot/github-code
347f42bf4cf8c55af113bc64e821cdd74ada73acc8478820856d3c23338afc89
{% extends 'dataloaderinterface/base.html' %} {% load staticfiles %} {% block styles %} {{ block.super }} <link rel="stylesheet" href="{% static 'dataloaderinterface/css/home_page.css' %}"> {% endblock %} {% block page_title %} <title>Data Sharing Portal</title> {% endblock %} {% block home_page_banner %...
HTML
src/dataloaderinterface/templates/dataloaderinterface/home.html
ODM2/ODM2WebSDL
bsd-3-clause
14,411
255
codeparrot/github-code
11bc6d22a89aa72efa860b4bbf43f4a4f808fe1e398b984dddbc866c841adf87
#! /usr/bin/env python # # ipg.py -- Example of Ginga widget interaction with IPython. # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # # CREDIT: # Contains code from IP...
Python
ginga/qtw/ipg.py
Rbeaty88/ginga
bsd-3-clause
12,780
413
codeparrot/github-code
2db0d6b26580ce316122658855fbf990984b9ccdba2c57c61eaff13bcec18ba5
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.download.home.list.holder; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGrou...
Java
chrome/android/java/src/org/chromium/chrome/browser/download/home/list/holder/PaginationViewHolder.java
endlessm/chromium-browser
bsd-3-clause
1,346
39
codeparrot/github-code
5c9689d8b60a8ea8dc2eb7e9d5ff6eab6e3b32a7c8f53770935a5328e7497872
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" lang="en"> <head th:fragment="headerFragment"> <meta charset="utf-8" /> <!-- title needs to be dynamic --> <title>Consent2Share</title> <meta name="description" content="Consent Management System" /> <meta name="author" cont...
HTML
DS4P/consent2share/pg/web-pg/src/main/webapp/WEB-INF/fragment/patient_fragments.html
OBHITA/Consent2Share
bsd-3-clause
14,383
316
codeparrot/github-code
d9e82b5a732447b5ca3927b775a876fad42e64cd0912648b1622128a56e176ea
/*---------------------------------------------------------------------------*/ /* */ /* eps_bab.h */ /* */ /* Author : Mo...
C++
src/eps_bab.hpp
aeolus-project/eps-gecode
bsd-3-clause
3,072
86
codeparrot/github-code
d94fa6fcce5c474261f0051044768bb9ec06446f62d58e7d10dd31a1ccb84b9c
/* Copyright (c) 2015, Andreas Reder 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 and the following ...
Java
src/dataloggerstudio/pc/CommunicationInterface/UsbCube/UsbCubeSerialInterface.java
anre/LielasDataloggerstudio
bsd-3-clause
41,309
1,471
codeparrot/github-code
da841e7367577af7a4a2e94b0b4e1a8938cceae2a50fe049a845de28bf8a2dad
/* * Carrot2 project. * * Copyright (C) 2002-2015, Dawid Weiss, Stanisław Osiński. * All rights reserved. * * Refer to the full license file "carrot2.LICENSE" * in the root folder of the repository checkout or at: * http://www.carrot2.org/carrot2.LICENSE */ package org.carrot2.workbench.vis.foamtree; import...
Java
workbench/org.carrot2.workbench.vis.carrotsearch/src/org/carrot2/workbench/vis/foamtree/ToggleRelaxationAction.java
MjAbuz/carrot2
bsd-3-clause
2,281
79
codeparrot/github-code
266f48853fd4632b731c5229c36d1188ff3b9d0d590bfcd5c7f570e0c6a5d64d
// 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. #include "components/sync/core/attachments/attachment_downloader_impl.h" #include <stdint.h> #include <map> #include "base/bind.h" #include "base/locat...
C++
components/sync/core_impl/attachments/attachment_downloader_impl_unittest.cc
danakj/chromium
bsd-3-clause
20,327
538
codeparrot/github-code
eb40e022681537053370456349ccd374ed3c56c4c0c5f80dfd40293415239c45
/* Copyright © 2008-2012, Andrew Rowson All rights reserved. See LICENSE file for license details. */ using System; using System.Windows.Controls; using System.Windows.Input; namespace Feedling.Classes { public class NumberTextBox : TextBox { protected override void OnPreviewTextInput...
C#
Feedling/Classes/NumberTextBox.cs
growse/Feedling
bsd-3-clause
2,589
72
codeparrot/github-code
c84958f8dc08c0571e63dd23f2a6ad3602b5de990d14bb75aab34b9b1580ffd3
package com.bdt.kiradb; /** * * A query on a particular field * * @author David Beckemeyer * */ public class FieldQuery { private Field queryField; private String querystr; /** * Construct a field query with specified field and query string * * @param queryField field to query * @param querystr ...
Java
src/main/java/com/bdt/kiradb/FieldQuery.java
mrblog/KiraDB
bsd-3-clause
730
41
codeparrot/github-code
d37abddf5e9d6e847cb9678b397efb736e77fe378975179280c27b1d552cbfe6
/* gather - collect files for mailing Author: Andy Tanenbaum */ /* It sometimes happens that one needs to mail a large directory full of * files to someone. This program can be used to collect these files into * shar archives, compress and uuencode them. The interesting property that * it has is that it makes sure...
C
src/commands/gather.c
macminix/MacMinix
bsd-3-clause
8,145
340
codeparrot/github-code
ff275a772bdbd5110ec3a56e72ad5a872139c3a02f309d67d102396e94881d32
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Товары'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="products-index"> <h1><?= Html::encode($this->title) ?></h1> <p> <?= Html::a('С...
PHP
modules/admin/views/products/index.php
poymanov/yii-barbershop
bsd-3-clause
1,162
48
codeparrot/github-code
e47490709a63720d6957fd8a5a6d242d4311ce75296f6f6d8f8eed4e814fe6cd
/** * App Bootstrap * * @type type */ var Storage = require('libs/Storage'); var Config = require('../config/config'); var AppRouter = require('./AppRouter'); var AppView = require('./AppView'); var AppModel = require('./AppModel'); // Helpers var Flash = require('h...
JavaScript
src/app/bsk/App.js
vulcan-estudios/bsk
bsd-3-clause
1,034
57
codeparrot/github-code
7be6cd9f65f4df93213afc1a19439d050f964f2edbcbe2219ed48fc8d924ecc7
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="lang:clipboard.copy" conte...
HTML
v0.13.1/_modules/statsmodels/tsa/statespace/simulation_smoother.html
statsmodels/statsmodels.github.io
bsd-3-clause
79,246
952
codeparrot/github-code
4a943d7f0decf7edf066ba5914f68bfd13b0aa4c4e523c126fc66ced2e61f600
/*========================================================================= Program: Cerebra Module: cbProbeCatalogue.h Copyright (c) 2011-2013 David Adair All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following condi...
C
src/tactics/cbProbeCatalogue.h
Atamai/tactics
bsd-3-clause
2,432
63
codeparrot/github-code
16f3b9f7f623af7708a1a16f70b7201ade578b142aa84d00a59cc8f73e9e2d5b
// 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 GPU_IPC_COMMON_SURFACE_HANDLE_MOJOM_TRAITS_H_ #define GPU_IPC_COMMON_SURFACE_HANDLE_MOJOM_TRAITS_H_ #include "gpu/ipc/common/surface_handle.h" #i...
C
gpu/ipc/common/surface_handle_mojom_traits.h
endlessm/chromium-browser
bsd-3-clause
1,074
38
codeparrot/github-code
3d6922b2a346258922f14f588c9c7ac309e461204d09f3b35e942a8a76c8d39e
/* Copyright (C) 2014 Parrot SA 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 and the following dis...
Java
JNI/java/com/parrot/arsdk/arcontroller/ARCONTROLLER_DICTIONARY_VALUE_TYPE_ENUM.java
Parrot-Developers/libARController
bsd-3-clause
4,547
110
codeparrot/github-code
a4209ed3329e1e6609034dca2c3914c54f6e8723dab0ee705c78cda5d9e7ddea
package org.itais.dataloader; import org.itais.domain.AssetStatus; import org.itais.domain.AssetType; import org.itais.domain.Office; import org.itais.domain.Role; import org.itais.domain.User; import org.itais.repository.AssetStatusRepository; import org.itais.repository.AssetTypeRepository; import org.itais.reposito...
Java
src/main/java/org/itais/dataloader/SetupDataLoader.java
gaddirg/itais
bsd-3-clause
3,281
126
codeparrot/github-code
d579f72e6b8f6dccd63eaca16655c6ea18a6e4610a360b4a21d1e80010921914
#ifndef UTILS_H_ #define UTILS_H_ #include "data_structures.h" void init(Parameters *); void set_centered_source(Parameters *); void init_coeff(Parameters *); void arrays_allocate(Parameters *p); void reset_timers(Profile * p); void print_3Darray(char *, real_t * restrict , int , int , int , int ); void copy_params_s...
C
src/utils.h
tareqmalas/girih
bsd-3-clause
1,294
45
codeparrot/github-code
44543a2c95f81852151a19338f5bb5bf09863bde86d6061ffb85118c17359ae8
/* Copyright (c) 2017, pGina Team 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 and the follow...
C++
pGina/src/Gina/Gina/WinlogonReal.cpp
MutonUfoAI/pgina
bsd-3-clause
7,399
178
codeparrot/github-code
1bcd19584459e735759f5a931e5f9f84c88ef00bd75fc08e35c6053f404b22f2
package main import ( "context" "fmt" "os" "time" "github.com/juju/ansiterm" "github.com/go-openapi/strfmt" "github.com/urfave/cli" "github.com/manifoldco/go-manifold" "github.com/manifoldco/go-manifold/idtype" "github.com/manifoldco/manifold-cli/api" "github.com/manifoldco/manifold-cli/clients" "githu...
GO
cmd/projects.go
manifoldco/manifold-cli
bsd-3-clause
15,541
632
codeparrot/github-code
5ecb7bca84d8de57791c1b10c6925c8964ecf92f2ddc09b2f9c3546bca2b6baf
#include "util.h" #include "endian.h" namespace Mordor { // muldiv64() was adapted from // http://www.virtualbox.org/browser/trunk/src/VBox/Devices/muldiv64.c?rev=1 // // the following copyright notice applies: /* * QEMU System Emulator * * Copyright (c) 2003-2004 Fabrice Bellard * * Permission is hereby granted...
C++
mordor/util.cpp
ccutrer/mordor
bsd-3-clause
3,179
104
codeparrot/github-code
2987d268b1232db5bbc3349ef625f610431b59ecc02a4d9b180838b70258cabe
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_CHROMEOS_ARC_TRACING_ARC_SYSTEM_STAT_COLLECTOR_H_ #define CHROME_BROWSER_CHROMEOS_ARC_TRACING_ARC_SYSTEM_STAT_COLLECTOR_H_ #includ...
C
chrome/browser/chromeos/arc/tracing/arc_system_stat_collector.h
endlessm/chromium-browser
bsd-3-clause
5,678
168
codeparrot/github-code
cbe0c4f1cbd17d514765433a9aff374889bbc3a8714cee1325d07fe45d1e440a
// Copyright 2019 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 <jni.h> #include "chrome/android/chrome_jni_headers/PrivacyPreferencesManagerImpl_jni.h" #include "chrome/browser/browser_process.h" #include "c...
C++
chromium/chrome/browser/android/preferences/privacy_preferences_manager_impl.cc
ric2b/Vivaldi-browser
bsd-3-clause
1,401
43
codeparrot/github-code
2e86ded43bfeeace3dfa2a1b88f339b3da08f8a45af4dd4df00f788f4bb71d72
// 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 "gpu/blink/webgraphicscontext3d_impl.h" #include <stdint.h> #include "base/atomicops.h" #include "base/lazy_instance.h" #include "base/logg...
C++
gpu/blink/webgraphicscontext3d_impl.cc
was4444/chromium.src
bsd-3-clause
2,615
89
codeparrot/github-code
1fa8ab82906ece11cacb5e9ad592784fb415b2efc8e21f777a62c674fcac1e88
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//JP"> <!--Converted with LaTeX2HTML 2008 (1.71) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck an...
HTML
doc/html/manual-node38.html
wkentaro/EusLisp
bsd-3-clause
6,916
303
codeparrot/github-code
3f821205651510ff67ebb0dafe78391367ffa37668f0a4ef0b2973770dcf2b6c
var iris = {}; // Expose iris to the global object window.iris = iris; (function ($) { // static object to store all app callbacks var _events; function _init() { _events = {}; iris.on("iris-reset", _init); } iris.on = function (p_eventName, f_func) { if...
JavaScript
src/event.js
thegameofcode/iris
bsd-3-clause
4,004
154
codeparrot/github-code
2785ab0d095481b618e01aef7172cb2b65f3934b5575b07d2a05b9f80b7e5f9c
package rights import ( "encoding/json" "errors" "hypermind/core/base" "hypermind/core/dao" "runtime/debug" ) type GroupRights struct { PageRights map[string]string } type UserGroup struct { Name string Rights GroupRights } var guestGroupRightsDict map[string]string = map[string]string{...
GO
core/rights/group.go
hyper-carrot/hypermind
bsd-3-clause
3,987
152
codeparrot/github-code
4aca080438aefa985bbfc7f0516302f871504e7440412af97806361421b96716
// 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. // Browser test for basic Chrome OS file manager functionality: // - The file list is updated when a file is added externally to the Downloads // ...
C++
chrome/browser/chromeos/file_manager/file_manager_browsertest.cc
cvsuser-chromium/chromium
bsd-3-clause
27,217
731
codeparrot/github-code
0f89dc064f3530c8cf28524b979761d58d341e16e18c5598767a3dcd9af4ea0e
// Copyright 2014 the V8 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. #include "src/compiler/source-position.h" #include "src/compiler/graph.h" #include "src/compiler/node-aux-data.h" namespace v8 { namespace internal { n...
C++
v8/src/compiler/source-position.cc
guorendong/iridium-browser-ubuntu
bsd-3-clause
1,811
74
codeparrot/github-code
9cc043998b72e545ce4978062bebfe656a7d48bfbb540c9c05b7a9bdac866e9b
# Copyright (c) 2010-2013, 2016 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the fun...
Python
configs/example/fs.py
SanchayanMaity/gem5
bsd-3-clause
15,347
371
codeparrot/github-code
81bc1e86e38ec185e9846352f69301da1e658093d657bf9c591b9ecd2e6687f0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>EventStreamProvider class - polymer_app_layout.behaviors library - Dart API</title> <!-- required because a...
HTML
doc/api/polymer_app_layout.behaviors/EventStreamProvider-class.html
lejard-h/polymer_app_layout_templates
bsd-3-clause
52,745
641
codeparrot/github-code
84ee2ded7fe16a42354803cdca0494451394d4ebe8859e39f3370135ba541422
// <copyright file="JavaObjWrapper.cs" company="Google Inc."> // Copyright (C) 2014 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/L...
C#
Assets/GooglePlayGames/Platforms/Android/Developers/JavaObjWrapper.cs
Jason-Zhao-Jie/MagicTower
bsd-3-clause
17,568
492
codeparrot/github-code
b6ab262af5f999bb2694c2b5efe8d02e2956090899ef4c15202a13fa856ca265
<?php namespace T4webAuthorization\Controller\Console; use Zend\Mvc\Controller\AbstractActionController; use Zend\Db\Adapter\AdapterAwareInterface; use Zend\Db\Adapter\AdapterAwareTrait; use Zend\Db\Sql\Ddl; use Zend\Db\Sql\Ddl\Column; use Zend\Db\Sql\Ddl\Constraint; use Zend\Db\Sql\Sql; use Zend\Db\Adapter\Adapter; ...
PHP
src/T4webAuthorization/Controller/Console/InitController.php
t4web/Authorization
bsd-3-clause
1,502
59
codeparrot/github-code
1692b24e7996a6dd2ceef4821ac64f03b9086b835fa75659e38ec9b8e9f2437a
<?php class Services { // tumblr const TYPE_TUMBLR = 'tumblr'; const TUMBLR_CONSUMER_KEY = 'klBeZdmqf0fwJpSYgTfGq7hJRsqcAbVntF9Ob0T1WnNcVeOyTi'; const TUMBLR_CONSUMER_SECRET = 'doeItIeHKeyL9dWjyybyQgSsfFcGc7ilhG0u4Ge6IAxNoyi4y4'; // soundcloud const TYPE_SOUNDCLOUD = 'soundcloud'; const SOUNDLCLOUD_CLIENT_ID =...
PHP
app/protected/class/Services.php
lienvdsteen/MoodFlip
bsd-3-clause
2,369
76
codeparrot/github-code
62bb8fc10557355b0aefc815717dabdb0c59d84f5cdccaa3ec05f168766108bb
// Copyright (c) 2014, Michael Schout // Distributed under a 3-clause BSD license. See LICENSE. #include <string> #include <boost/test/unit_test.hpp> #include "fixtures/addresses.hpp" #include "srs2/guarded.hpp" using std::string; BOOST_FIXTURE_TEST_SUITE(Separator, Addresses); BOOST_AUTO_TEST_CASE(Separator) { ...
C++
test/separator.cpp
mschout/libsrs2xx
bsd-3-clause
1,814
59
codeparrot/github-code
67dba958ee6c1ba84c86796f7bb81a1ba2ede7dc095dfcafc02f349807b514ce
<?php /** * Created by JetBrains PhpStorm. * User: FUHU * Date: 11/22/13 * Time: 3:32 PM * To change this template use File | Settings | File Templates. */ namespace Userpage\Controller; use Symfony\Component\Console\Application; use Userpage\Model\CreatePageModel; use Userpage\Model\FriendModel; use Zend\Mvc\C...
PHP
module/Userpage/src/Userpage/Controller/UserpageController.php
phuthuytinhoc/Zend2
bsd-3-clause
25,297
792
codeparrot/github-code
0e0fe503e85b3ce2e523b04f50b2e763fbcd71181089d366bca852a25d93e431
package org.jbehave.web.runner.wicket.pages; import java.io.OutputStream; import java.io.PrintStream; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Properties; import org.apache.wicket.markup.html.basic.MultiLineLabel; import org.apache.wicket.markup.html.form.Button; import org.apache.wi...
Java
web-runner/src/main/java/org/jbehave/web/runner/wicket/pages/RunStory.java
jbehave/jbehave-web
bsd-3-clause
4,034
102
codeparrot/github-code
345a7a1b59eb465573ee266cb7fb5ed121c994f17b9cdf0be0ab392fd33dab40
from django.shortcuts import redirect from django.views.generic import TemplateView from django.views.generic import ListView, DetailView from django.views.generic.edit import FormView from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.core.urlresolvers import reverse_lazy from django....
Python
fum/servers/views.py
futurice/futurice-ldap-user-manager
bsd-3-clause
3,137
89
codeparrot/github-code
378a612b80b04bdbb0d2d483a7404a9ae1ccea4d855ac10e3ac9dc8df584953b
// 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. #include "services/proxy_resolver/public/cpp/proxy_resolver_mojom_traits.h" #include "base/notreached.h" #include "net/base/host_port_pair.h" #include "n...
C++
services/proxy_resolver/public/cpp/proxy_resolver_mojom_traits.cc
endlessm/chromium-browser
bsd-3-clause
4,125
125
codeparrot/github-code