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
dfaf9b4289f096f0f2603fa20edc5810d1123a8f96e2e3aab542bb368f3130b0
import React, {Component} from 'react' import PropTypes from 'prop-types' import {connect} from 'react-redux' import {bindActionCreators} from 'redux' import { Container, Form, Header } from 'semantic-ui-react' import * as loginActions from '../../actions/login'; class Login extends Component { handleChange = (e, ...
JavaScript
client/src/components/Login/index.js
compewter/VeAL
bsd-3-clause
1,190
53
codeparrot/github-code
d8ecdf8bf1a5061e2e878fc9eb71dfdb57f81ea8816ed8741da8fdddb0145bb6
<?php /** * @author Zakharov Stanislav <zahs88@gmail.com> */ namespace common\behaviors; use common\models\Address; use common\models\Contacts; use common\models\Price; use common\models\User; use yii; use yii\base\Behavior; use yii\db\ActiveRecord; /** * Class HallBehavior * @package common\behaviors * @proper...
PHP
common/behaviors/HallBehavior.php
WcAmbros/zali-v-arendu.dev
bsd-3-clause
2,804
114
codeparrot/github-code
46464cebef9aa116625773d644a2e66bb008c9cb6f547c7e73e3c653b6f86c9f
# 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. """Wrappers for gsutil, for basic interaction with Google Cloud Storage.""" import cStringIO import hashlib import logging import os import subprocess i...
Python
tools/telemetry/telemetry/page/cloud_storage.py
ChromiumWebApps/chromium
bsd-3-clause
6,562
215
codeparrot/github-code
04095c151b97e01f6f6d367ba9caacfdcb876173d02b9bc5c29310576931218c
package abi42_0_0.expo.modules.cellular; import java.util.HashMap; import java.util.Map; import android.content.Context; import android.content.pm.PackageManager; import android.net.sip.SipManager; import android.telephony.TelephonyManager; import abi42_0_0.org.unimodules.core.ExportedModule; import abi42_0_0.org.un...
Java
android/versioned-abis/expoview-abi42_0_0/src/main/java/abi42_0_0/expo/modules/cellular/CellularModule.java
exponentjs/exponent
bsd-3-clause
3,903
116
codeparrot/github-code
e2333d90797b4028033352663880b30f83a189f2a4a274d33ae809388931f0e3
<?php /** * @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause * @copyright Copyright (c) 2014 Zend Technologies USA Inc. (http://www.zend.com) */ namespace ZF\JsonLD\Property; use Zend\Paginator\Paginator; use Zend\Stdlib\ArrayUtils; use ZF\ApiProblem\ApiProblem; use ZF\JsonLD\Collection; class ...
PHP
src/Property/PaginationInjector.php
vixriihi/zf-jsonld
bsd-3-clause
4,660
134
codeparrot/github-code
cf2e0f5f5b53f76a4d79f366a3634c60df19fd7efaea17fb18c88368010cbb09
{% extends "layout.html" %} {% block body %} <script type="text/javascript"> $(document).ready(function() { $('.tr-link').click(function() { var href = $(this).find("a").attr("href"); if(href) { window.location = href; } }); initTrip(); }); </script> <div class="row-fl...
HTML
src/templates/list.html
compumaster/oncalldb
bsd-3-clause
1,667
51
codeparrot/github-code
86a85f7847f196b2356805e82832890b837bbde20888a4e74baafb3dbf1fc1b1
"""This section introduces classes used by pulsar :ref:`wsgi application <apps-wsgi>` to pass a request/response state during an HTTP request. .. contents:: :local: The :class:`WsgiRequest` is a thin wrapper around a WSGI ``environ`` dictionary. It contains only the ``environ`` as its private data. The :class:`Ws...
Python
pulsar/apps/wsgi/wrappers.py
quantmind/pulsar
bsd-3-clause
13,989
454
codeparrot/github-code
57d3d40478d816f47b173f5c3d37bbbe76f7535262c194309dcb760b154ecb14
# -*- coding: utf-8 -*- """ werkzeug._internal ~~~~~~~~~~~~~~~~~~ This module provides internally used helpers and constants. :copyright: (c) 2014 by the Werkzeug Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import re import string import inspect from weakre...
Python
werkzeug/_internal.py
syrrim/werkzeug
bsd-3-clause
13,953
421
codeparrot/github-code
34ea967550f8dfd73a2decee62348a4908101c67e9c1de347c2855ed8f5fd147
package org.broadinstitute.hellbender.engine.spark.datasources; import htsjdk.samtools.SAMSequenceDictionary; import htsjdk.samtools.reference.ReferenceSequence; import htsjdk.samtools.reference.ReferenceSequenceFile; import htsjdk.samtools.reference.ReferenceSequenceFileFactory; import java.net.URI; import java.nio.f...
Java
src/main/java/org/broadinstitute/hellbender/engine/spark/datasources/ReferenceFileSparkSource.java
magicDGS/gatk
bsd-3-clause
3,582
85
codeparrot/github-code
50c6d86a99b8d65f63a413ec451e7ae27d9c9886fc926ab99bc44f7a3fc2c9c9
// 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_DEVTOOLS_DEVTOOLS_FILE_SYSTEM_INDEXER_H_ #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_FILE_SYSTEM_INDEXER_H_ #include <stdint.h> #inc...
C
chrome/browser/devtools/devtools_file_system_indexer.h
was4444/chromium.src
bsd-3-clause
3,694
115
codeparrot/github-code
0a85bc70d1c37252e064f92029e67b3dee5ec3420046705d30894e37238b42c4
package com.midlocanics.frc.zooey; import com.midlocanics.frc.gongaware.RobotComponent; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.RobotDrive; import com.midlocanics.frc.gongaware.DualController; import com.midlocanics.frc.gongaware.part.Piston; /** * *...
Java
src/com/midlocanics/frc/zooey/DriveTrain.java
rossgong/midlocanics-robot
bsd-3-clause
5,158
163
codeparrot/github-code
9421b491d1af331fd1b5106ec145b51303c54ed008447e1c50b22862b7a733f9
import * as React from 'react' import {isMobile, hoistNonReactStatic} from '../../util/container' export type OverlayParentProps = { getAttachmentRef?: () => React.Component<any> | null showingMenu: boolean setAttachmentRef: (arg0: React.Component<any> | null) => void setShowingMenu: (arg0: boolean) => void ...
TypeScript
shared/common-adapters/overlay/parent-hoc.tsx
keybase/client
bsd-3-clause
2,035
56
codeparrot/github-code
345ca25a51f0659914e33ff2f44e9949e01b1a96949ae59808824c012f1bbb1f
/* -- MAGMA (version 2.1.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date August 2016 @precisions normal z -> s d c */ // includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> // includes,...
C++
testing/testing_zgels3_gpu.cpp
maxhutch/magma
bsd-3-clause
8,563
204
codeparrot/github-code
312d08706fd7252b00852d9732b39443503d323baa7848272ec6647b60b1622e
/** * @version: 1.3.21 * @author: Dan Grossman http://www.dangrossman.info/ * @copyright: Copyright (c) 2012-2015 Dan Grossman. All rights reserved. * @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php * @website: https://www.improvely.com/ */ (function (root, factor...
JavaScript
web/admin/plugins/daterangepicker/daterangepicker.js
ththao/yii2template
bsd-3-clause
54,174
1,284
codeparrot/github-code
4a30f2c33c85d315c411c3d45f1240132639fb9917812cb9d57ba46537221baa
""" API for communicating with the i3 window manager. """ import json import subprocess class I3Msg(object): """Send messages to i3.""" def __init__(self, socket=None, msgbin=None): """ Initialize the messager. @param socket The socket to connect to i3 via. @param msgbin The...
Python
i3/lib/i3.py
BlueDragonX/fm-dot
bsd-3-clause
4,205
150
codeparrot/github-code
e722d3929fbd7e77dcc35dfa8337c7b1543d36f12d27b3f5cc7c72e06ea47150
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml.Linq; using System.Xml.XPath; using PeanutButter.Utils; namespace NugetPackageVersionIncrementer { public interface INuspecUtil { string Version { get; } string OriginalVersion { get; } ...
C#
source/NugetPackageVersionIncrementer/NuspecUtil.cs
fluffynuts/PeanutButter
bsd-3-clause
4,817
143
codeparrot/github-code
4a593d796b07e6089d68f9063e4a5c87b059925ff3679e12e47281e59844287c
//===--- AArch64.cpp - Implement AArch64 target feature support -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
C++
third_party/llvm-project/clang/lib/Basic/Targets/AArch64.cpp
youtube/cobalt
bsd-3-clause
20,090
593
codeparrot/github-code
967672f74ad0b10620d62c2fb048423cba95490e0df882885d3f61c05657a631
// Copyright (c) 2012 The gocql 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 gocql import ( "errors" "fmt" "log" "strings" "sync" "time" ) // ClusterConfig is a struct to configure the default cluster implementatio...
GO
cluster.go
0x6e6562/gocql
bsd-3-clause
6,669
254
codeparrot/github-code
dae34f7fed2a69f04ea95ca8b57bc5ddce5570e9a4d6c61eb06bc8d6cb0fbb79
// CodeMirror likes mode definitions as maps to bools, but a string of space // separated words is easier to edit, so we convert our strings into a map here. function words(str: string) { const obj: Record<string, boolean> = {}; str.split(' ').forEach((word: string) => { obj[word] = true; }); return obj; } // Se...
TypeScript
shaders/modules/sksl-constants/sksl-constants.ts
google/skia-buildbot
bsd-3-clause
1,625
48
codeparrot/github-code
3da26092f8f290c9b48302bf268b9bfe0b7217a3d696c14156a4670ef8a5cc76
# -*- coding: utf-8 -* """HydraTK installation commands .. module:: lib.install.command :platform: Unix :synopsis: HydraTK installation commands .. moduleauthor:: Petr Rašek <bowman@hydratk.org> """ from subprocess import call, Popen, PIPE from os import path, environ from sys import exit from hydratk.lib.syst...
Python
src/hydratk/lib/install/command.py
hydratk/hydratk
bsd-3-clause
6,456
272
codeparrot/github-code
c74669607e8b85924d821689fbac0918d7ec9cf8e062fe8e28dc4c5f59611d28
#! /usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2014, Nicolas P. Rougier # Distributed under the (new) BSD License. See LICENSE.txt for more info. # ----------------------------------------------------------------------------...
Python
examples/transform-pan-zoom.py
duyuan11/glumpy
bsd-3-clause
1,497
58
codeparrot/github-code
c3367c90b382c285945871ab300a850fa0301bf78a744d811e7639ce8684d30b
/** * PSymbol.java * --------------------------------- * Copyright (c) 2016 * RESOLVE Software Research Group * School of Computing * Clemson University * All rights reserved. * --------------------------------- * This file is subject to the terms and conditions defined in * file 'LICENSE.txt', which is part ...
Java
src/main/java/edu/clemson/cs/r2jt/rewriteprover/absyn/PSymbol.java
mikekab/RESOLVE
bsd-3-clause
23,486
751
codeparrot/github-code
41ce46d867ce6c4651d4cc5bb8c0f8a3c311f00da193d21ad754be5789eea5ad
<?php /** * Array2XML: A class to convert array in PHP to XML * It also takes into account attributes names unlike SimpleXML in PHP * It returns the XML in form of DOMDocument class for further manipulation. * It throws exception if the tag name or attribute name has illegal chars. * * Author : Lalit Patel * Web...
PHP
classes/Array2Xml.php
cornernote/php-timesheet
bsd-3-clause
6,479
173
codeparrot/github-code
a9a5306aab73db6e7d1536c0c116d2c7959f94c9b727d676f1928bca1a37ad64
package com.cjm721.overloaded.item.crafting; import com.cjm721.overloaded.client.render.dynamic.ImageUtil; import com.cjm721.overloaded.config.OverloadedConfig; import com.cjm721.overloaded.item.ModItem; import net.minecraft.client.renderer.model.ModelResourceLocation; import net.minecraft.item.ItemStack; import net.m...
Java
src/main/java/com/cjm721/overloaded/item/crafting/ItemEnergyCore.java
CJ-MC-Mods/Overloaded
bsd-3-clause
1,214
38
codeparrot/github-code
1fdc3c2e3b7b722376fd61218cdff49168f855f306f1ec2bf2d2a2871edd859b
module Localize class Formats class << self # Based on snippet in http://snippets.dzone.com/posts/show/2472 def phone(str, format) require 'strscan' pattern = Localize.trans[:formats]['phone'][format.to_s] slots = pattern.count('#') source = str.to_s if so...
Ruby
lib/localize/formats.rb
Aejis/localize
bsd-3-clause
2,270
71
codeparrot/github-code
7e9d65cb024b179de2b7c7e8f5872707d8d974d903b41f3b01157f50e9051239
<?php namespace frontend\controllers; use Yii; use app\models\RefKategoriProgramBinaan; use frontend\models\RefKategoriProgramBinaanSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * RefKategoriProgramBinaanController implements the CRUD actions for RefKategoriProgr...
PHP
frontend/controllers/RefKategoriProgramBinaanController.php
hung101/kbs
bsd-3-clause
3,359
122
codeparrot/github-code
e33d6a77d501697faad8cb6597eea3d24601b3f588bea4485c7998303be0b912
// Copyright 2017 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 "third_party/blink/renderer/core/layout/ng/ng_column_layout_algorithm.h" #include <algorithm> #include "third_party/blink/renderer/core/layout/g...
C++
third_party/blink/renderer/core/layout/ng/ng_column_layout_algorithm.cc
nwjs/chromium.src
bsd-3-clause
58,393
1,352
codeparrot/github-code
07308cf4ecd4be42537b59ef2050b91615b8b4154c736d5d59f1e3cbaf614a95
package com.fsck.k9.preferences; import java.io.File; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.Map; import java.util.Set; import java.util.TreeMap; import android.content.SharedPreferences; import androi...
Java
src/com/fsck/k9/preferences/GlobalSettings.java
rtreffer/openpgp-k-9
bsd-3-clause
21,010
572
codeparrot/github-code
7cac54ab3f344f19cfc053c293a859ea05f44541ec45f14fc0e36d477c2ee6df
from protorpc import messages from sqlalchemy import Column, ForeignKey, Integer, String from sqlalchemy.orm import relationship from typing import List from rdr_service.model.base import Base from rdr_service.model.code import Code from rdr_service.model.utils import EnumZeroBased, UTCDateTime class Survey(Base): ...
Python
rdr_service/model/survey.py
all-of-us/raw-data-repository
bsd-3-clause
2,272
75
codeparrot/github-code
73d44dbc5ad2d68791330ce6afdaa6de69adfa1456fc9c70b3877845c2c8d61f
'use strict'; exports.__esModule = true; exports.createPACServer = createPACServer; var _http = require('http'); var _gfwlistUtils = require('./gfwlistUtils'); var NAME = 'pac_server'; // TODO: async this // eslint-disable-next-line function createPACServer(config, logger) { var pacFileContent = (0, _gfwlistUtil...
JavaScript
lib/pacServer.js
oyyd/shadowsocks-js
bsd-3-clause
757
34
codeparrot/github-code
a994f41761b54b47c5ce9f5cc737dfc2ad543c599cc1e4c929341fe4b12a5bd3
package blec import ( "encoding/binary/le" "math/rand" "rtos" "sync/fence" "bluetooth/ble" "nrf5/hal/gpio" "nrf5/hal/ppi" "nrf5/hal/radio" "nrf5/hal/rtc" "nrf5/hal/timer" ) type Controller struct { rnd rand.XorShift64 devAddr int64 advIntervalRTC uint32 connInterval uint32 winSize uint3...
GO
egpath/src/nrf5/blec/ctrl.go
ziutek/emgo
bsd-3-clause
15,524
612
codeparrot/github-code
bb2fb0c675f93a353965dc9b05b941b7a6d126dee2b601a543903bf51a8017ab
package com.nikolajbaer.game.objects; /* java */ import java.lang.Math; /* jbox2d */ import org.jbox2d.dynamics.Body; import org.jbox2d.dynamics.BodyDef; import org.jbox2d.common.Vec2; /* local */ import com.nikolajbaer.game.Game; import com.nikolajbaer.game.weapons.*; import com.nikolajbaer.Util; // CONSIDER this ...
Java
src/com/nikolajbaer/game/objects/PlayerObject.java
nikolajbaer/android-jplay
bsd-3-clause
8,375
290
codeparrot/github-code
fc93bea09df23bdb3851a2f4f06fe5abfdc58826bc2b3260aadcda11370ea527
/* * @(#)MultiEditorSample.java * * Copyright (c) 1996-2010 by the original authors of JHotDraw * and all its contributors. * All rights reserved. * * The copyright of this software is owned by the authors and * contributors of the JHotDraw project ("the copyright holders"). * You may not use, copy or modi...
Java
code_comments_coherence/media/jhotdraw/7.4.1/jhotdraw7zip/extracted/jhotdraw7/src/main/java/org/jhotdraw/samples/mini/MultiEditorSample.java
leriomaggio/code-coherence-evaluation-tool
bsd-3-clause
4,474
112
codeparrot/github-code
1d1a3708627ab30869b67fd134f1ccf1936b1296d1b1790d2a0dafb7e69bc0d7
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Installing FreeSurfer &#8212; MNE 0.22.1 documentation</title> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <link rel="stylesheet" hre...
HTML
0.22/install/freesurfer.html
mne-tools/mne-tools.github.io
bsd-3-clause
13,817
214
codeparrot/github-code
027b12e9b2d55dfc44f3a829e225b384286446124372812d382695cac5314d32
/* * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ package com...
Java
stetho/src/main/java/com/facebook/stetho/inspector/database/SqliteDatabaseDriver.java
gavanx/learn-stetho
bsd-3-clause
7,373
188
codeparrot/github-code
f8d657e417454d7191392fcdf504ad2a74408fa2d313d27d97accef469791180
package plAuth import ( "fmt" ) // Returned by CheckPass if the password has not been set for the user by // calling SetPass, SetValidPass or SetValidPassFunc. type UnsetPassword struct { user *User } func (e UnsetPassword) Error() string { return fmt.Sprintf("%s has no password set. Call SetPass() first!", e.use...
GO
errors.go
tike/plAuth
bsd-3-clause
1,053
48
codeparrot/github-code
56624b267a5a8a641e45e1a91048a0c6eea0ac39f445ff916173860f7f5089f9
{-| Copyright : (c) Dave Laing, 2017 License : BSD3 Maintainer : dave.laing.80@gmail.com Stability : experimental Portability : non-portable -} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE ScopedTypeVariables #-} module Fragment.Bool.Rules.Kind.Infe...
Haskell
src/Fragment/Bool/Rules/Kind/Infer/Common.hs
dalaing/type-systems
bsd-3-clause
1,494
54
codeparrot/github-code
6ce43d44c1fcfa1ea4a246c3e0ea865289067cb4dfded7d36939afa55b1698fc
<?php use yii\helpers\Html; use kartik\grid\GridView; use yii\widgets\Pjax; /** * @var yii\web\View $this * @var yii\data\ActiveDataProvider $dataProvider * @var book\modules\test\models\ShopSearch $searchModel */ $this->title = Yii::t('app', 'Shops'); $this->params['breadcrumbs'][] = $this->title; ?> <div class...
PHP
book/modules/test/views/shop/index.php
wodrowCVM/yeework
bsd-3-clause
2,956
86
codeparrot/github-code
47474f95d3ebe7e647e721b5db214226aa44f8599fd9add9e9437669306be9a8
<?php use yii\helpers\Url; $this->title = '添加公告'; ?> <div class="dis-bread"><a href="/">首页</a>><a href="/cms/default/index">内容管理</a>><a href="/cms/push/index" class="bolde">资讯推送管理</a></div> <div class="dis-main dis-mainnr" style="height:900px;"> <div class="d-titr"><a href="/cms/push/index">返回</a><h3...
PHP
backend/modules/cms/views/push/add.php
VampireMe/admin-9939-com
bsd-3-clause
2,654
66
codeparrot/github-code
dabe649f8924a7bbe3cc841821004689fae8d3073801c9909c1da664e2b83115
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>[ min ] - Where is minz?</title> <meta http-equiv="Content-Language" c...
PHP
w/index.php
ibelem/the-web
bsd-3-clause
6,849
180
codeparrot/github-code
a508f32d396ffb9fe82d56a5d9b99ad3abbada41529d3fab6e9df591472db764
""" A simple redis-cache interface for storing python objects. """ from functools import wraps import pickle import json import hashlib import redis import logging DEFAULT_EXPIRY = 60 * 60 * 24 class RedisConnect(object): """ A simple object to store and pass database connection information. This makes the Simple...
Python
redis_cache/rediscache.py
JanBerktold/redis-simpler-cache
bsd-3-clause
11,363
392
codeparrot/github-code
0cbd1cb839adcfcc710c48f70500775ca8252edf2eae9a4e1a5551856603d0d5
#ifndef OPENST_RAYTRACE_BACKTRACE_H #define OPENST_RAYTRACE_BACKTRACE_H #ifdef __cplusplus extern "C" { #endif #include <stddef.h> #include <math.h> #include "openst/common/float.h" #include "openst/common/hacks.h" #include "openst/common/memadr.h" #include "openst/common/dynarr.h" #include "openst/common/coordsys.h...
C
include/openst/raytrace/backtrace.h
aanikitin/seis-eikonal
bsd-3-clause
1,524
43
codeparrot/github-code
30610859d4cdd8bacf16c532f9f607d1b3afe40ea0a4f83dfab49ee7d868deca
// Copyright 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 "cc/layers/io_surface_layer_impl.h" #include "base/strings/stringprintf.h" #include "cc/layers/quad_sink.h" #include "cc/output/gl_renderer.h" ...
C++
cc/layers/io_surface_layer_impl.cc
patrickm/chromium.src
bsd-3-clause
5,444
153
codeparrot/github-code
a6ceb1ec0237a3f067d0fef2bc736dc727c8346028ba86d0030134917cfdd52c
__author__ = 'Bohdan Mushkevych' import functools from werkzeug.wrappers import Request from synergy.mx.utils import jinja_env def valid_action_request(method): """ wraps method with verification for is_request_valid""" @functools.wraps(method) def _wrapper(self, *args, **kwargs): assert isinst...
Python
synergy/mx/base_request_handler.py
eggsandbeer/scheduler
bsd-3-clause
1,418
48
codeparrot/github-code
529f2ea609d04e9c376f7d9ff86d24b4a9d06fb8ff4d895178d9e5e1fae0ad59
// 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. #include "chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h" #include "base/basictypes.h" #include "base/command_line.h" #include "base/st...
C++
chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc
Workday/OpenFrame
bsd-3-clause
15,223
405
codeparrot/github-code
7ff6133363b82cd0d8596db825c6b5b9b942e9b726f9bf6724d51765a6936d92
import os import threading import logging from yowsup import env from yowsup.stacks import YowStack, YOWSUP_CORE_LAYERS, YOWSUP_PROTOCOL_LAYERS_FULL from yowsup.layers import YowLayerEvent from yowsup.layers.auth import YowAuthenticationProtocolLayer from yowsup.layers.coder import YowCoderLayer from yowsup.layers.net...
Python
whatsapp.py
tax/pywhatsapp
bsd-3-clause
6,224
157
codeparrot/github-code
0e76e1536b811a09f3fb881d0aae776a6318efa2d9b149f69fb6c334f57b57e2
/* $NetBSD: if_ne_isapnp.c,v 1.11 1999/03/22 10:00:12 mycroft Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, * NASA Ames Res...
C
netbsd/sys/dev/isapnp/if_ne_isapnp.c
MarginC/kame
bsd-3-clause
6,458
228
codeparrot/github-code
e1d85973d8bdefc717b102d7d2ff19987a2789b83d5b84983e890d232fe69be7
----------------------------------------------------------------------------- -- -- Pretty-printing assembly language -- -- (c) The University of Glasgow 1993-2005 -- ----------------------------------------------------------------------------- {-# OPTIONS_GHC -fno-warn-orphans #-} module PPC.Ppr ( pprNatCmmDe...
Haskell
compiler/nativeGen/PPC/Ppr.hs
ml9951/ghc
bsd-3-clause
28,362
897
codeparrot/github-code
8e868a8f6677768f95b7ea508dfbb795918a9417195526a1a619b670da10d02d
<?php /** * Copyright (C) 2014 Dinesh Sharma - All Rights Reserved * You may use, distribute and modify this code under the * terms of the GPL license. * * You should have received a copy of the GPL license with * this file. If not, please visit : * https://gnu.org/licenses/gpl.html */ namespace backend\control...
PHP
backend/controllers/LanguagesController.php
BrantYii/store
bsd-3-clause
3,228
120
codeparrot/github-code
440b175b92c6632ade86c0e0ad725f7d2a1d522dfd207631b1a4610375c2b4b6
/* Copyright (c) 2009-2014, Jack Poulson, Lexing Ying, The University of Texas at Austin, Stanford University, and the Georgia Insitute of Technology. All rights reserved. This file is part of Clique and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root directory...
C++
include/clique/numeric/solve.hpp
poulson/Clique
bsd-3-clause
4,270
130
codeparrot/github-code
9f90ce46223c9f70d2aa65c9f87cab0de6e5923d15f895fd41f2f2a3977d00ac
<?php /** * Created by PhpStorm. * User: andre_000 * Date: 22.09.14 * Time: 13:34 */ namespace Application\Form; use Application\Entity\Customer; use Application\Validator\MoneyValidator; use Zend\Form\Element\Text; use Zend\InputFilter\Input; use Zend\Mvc\I18n\Translator; use Zend\Validator\Digits; class Cust...
PHP
module/Application/src/Application/Form/CustomerForm.php
kristjanAnd/SimpleIV
bsd-3-clause
3,469
97
codeparrot/github-code
1e6a94d96e3e3b53365cd8207fa3fcb04e45cec38036de3d22da3eebb63dc3ef
/*================================================================================ 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/DvsOutOfSyncHostArgument.java
mikem2005/vijava
bsd-3-clause
2,241
60
codeparrot/github-code
3a972e0a7f9bc799110cdd34b9b9602becc9ea19c52e36b130fd42032774cf44
from __future__ import unicode_literals from django import http from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site, get_current_site from django.core.exceptions import ObjectDoesNotExist from django.utils.translation import ugettext as _ def shortcut(request, conte...
Python
django/contrib/contenttypes/views.py
ericholscher/django
bsd-3-clause
3,355
83
codeparrot/github-code
288fb858d3c3aeabaa62ee6a91bdc68b751fd70f9ec7ebcc0081c8f5c7cefb18
// 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 CHROME_BROWSER_VR_UI_ELEMENT_RENDERER_H_ #define CHROME_BROWSER_VR_UI_ELEMENT_RENDERER_H_ #include <memory> #include <vector> #include "base/mac...
C
chrome/browser/vr/ui_element_renderer.h
nwjs/chromium.src
bsd-3-clause
5,462
158
codeparrot/github-code
7e6b279facdf215b78da47a481cea0f9c7813bb609a4b376f494475b8276d12b
<?php /** * Facilitates access to Entities via a DAO * * Repositories are generally tied to a specific kind of entity and will return * objects and collections of objects of that specific type. This allows for * stronger typing that using a straight DAO, and also allows for DAOs to be * swapped out. * * @autho...
PHP
library/PhpORM/Repository.php
dragonmantank/AYL
bsd-3-clause
4,086
171
codeparrot/github-code
dc2a410a72522b1ee70196a62e24636a5d8a4e7a362aa536e1771b1f6aa545d2
//======================================================================== // GLFW - An OpenGL framework // Platform: Any // API version: 2.7 // WWW: http://www.glfw.org/ //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard // Copyright (c) 200...
C
src/horde3d/Horde3D/Samples/glfw/lib/tga.c
psigen/node-horde3d
bsd-3-clause
11,626
406
codeparrot/github-code
c7e0051e32493c0e0770acc5f86ec0b7c35c10a47753eb9cebb44348dc857179
// 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 CHROME_TEST_CHROMEDRIVER_CHROME_JAVASCRIPT_DIALOG_MANAGER_H_ #define CHROME_TEST_CHROMEDRIVER_CHROME_JAVASCRIPT_DIALOG_MANAGER_H_ #include <l...
C
chrome/test/chromedriver/chrome/javascript_dialog_manager.h
loopCM/chromium
bsd-3-clause
1,657
52
codeparrot/github-code
07b88bb7ac0942aba1e15c9b51840d3a549238ab6d5d3959d10b69b251dd10aa
#ifndef _MAC_VERTICAL_H #define _MAC_VERTICAL_H /* * Macintosh include files * Based on Inside Macintosh Volumes 1-4. */ #ifndef _MAC_OSUTILS_H #include <mac/OSUtils.h> #endif typedef struct VBLTask VBLTask; struct VBLTask { struct QElem *qLink; Short qType; ProcPtr vblAddr; Short vblCount; Short ...
C
include/mac/Vertical.h
macminix/MacMinix
bsd-3-clause
625
32
codeparrot/github-code
4125f2ad066e9ea3f07d6a7d3f167bdf0f931e64fd87cecad2c3306d6d243489
/* * Copyright (c) 2016, Apptentive, Inc. All Rights Reserved. * Please refer to the LICENSE file for the terms and conditions * under which redistribution and use of this file is permitted. */ package com.apptentive.android.sdk.module.engagement.interaction.view.survey; import com.apptentive.android.sdk.module.s...
Java
apptentive/src/main/java/com/apptentive/android/sdk/module/engagement/interaction/view/survey/SurveyQuestionView.java
apptentive/apptentive-android
bsd-3-clause
1,067
42
codeparrot/github-code
435eeda49cec61b5d364fb05636901ed796721dc3870b6d43bed7ddc90240241
// Copyright 2015-present 650 Industries. All rights reserved. package abi9_0_0.host.exp.exponent.modules.internal; import org.json.JSONException; import org.json.JSONObject; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import abi9_0_0.com.facebook.react.bridge.Callback; import abi9_0_0....
Java
android/app/src/main/java/abi9_0_0/host/exp/exponent/modules/internal/ExponentAsyncStorageModule.java
jolicloud/exponent
bsd-3-clause
2,558
77
codeparrot/github-code
4e9a5e58eebdaa4dff96b043f9168a63f28995f95f8bbe62b21eb485d51ff8d5
import os import pickle import logging import argparse import numpy as np import tensorflow as tf from datetime import datetime from pyActLearn.CASAS.data import CASASData from pyActLearn.CASAS.fuel import CASASFuel from pyActLearn.learning.nn.sda import SDA from pyActLearn.performance.record import LearningResult from...
Python
examples/CASAS_single/casas_sda_raw.py
TinghuiWang/pyActLearn
bsd-3-clause
8,326
177
codeparrot/github-code
76115a12dc114d4fe419caea14bf57ea99bd404e7580d2407e683124d7cdf8f9
// Copyright (c) 2011 House of Life Property Ltd. All rights reserved. // Copyright (c) 2011 Crystalnix <vgachkaylo@crystalnix.com> // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_COCOA_FACEBOOK_CHAT_FACEBOOK_NOTIFICATION_CONTROLLER_H_ #...
C
chrome/browser/ui/cocoa/facebook_chat/facebook_notification_controller.h
leiferikb/bitpop-private
bsd-3-clause
1,191
44
codeparrot/github-code
78b84945ed3f190fb77588b5cef67a6aa9d45a042cdf466d66b11158994b31d0
/* BSD 3-Clause License Copyright (c) 2020, The Regents of the University of Minnesota All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright ...
C
src/psm/src/gmat.h
The-OpenROAD-Project/OpenROAD
bsd-3-clause
5,732
141
codeparrot/github-code
327025ef493e927db2046b9171a344cffb815b7e4267e167f1ce718dc2f66dc0
// 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. #ifndef CHROME_BROWSER_ASH_LOGIN_WIZARD_CONTROLLER_H_ #define CHROME_BROWSER_ASH_LOGIN_WIZARD_CONTROLLER_H_ #include <map> #include <memory> #include...
C
chrome/browser/ash/login/wizard_controller.h
scheib/chromium
bsd-3-clause
21,291
526
codeparrot/github-code
89b4135dabfe645f8f4f20907a8176a729a56d1568b861e1b7400d11b291444b
/*********************************************************************** Copyright (c) 2017, The OpenBRAS project authors. 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 sou...
C++
src/PPPOE/CPPPOEEventHandler.cpp
wfnex/openbras
bsd-3-clause
3,060
83
codeparrot/github-code
89febf30ddd9e8c3a10e240af3612134562aaf1b604a3fcd7c457558f7f9c657
{-# LANGUAGE TemplateHaskell, GeneralizedNewtypeDeriving #-} module Math.InfoRetrieval.TFIDF ( Document(..) , Term(..) , Corpus , emptyCorpus , addDocument , removeDocument , FreqScaling(..) , tfidf , search ) where import Control.Lens import Dat...
Haskell
Math/InfoRetrieval/TFIDF.hs
bgamari/tf-idf
bsd-3-clause
2,526
79
codeparrot/github-code
b60c72bea37d0c13fae6928e95dc10edcbacf57d75d0911669c146e72b452ade
// Copyright (C) 2013 Google 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 a...
C++
third_party/blink/renderer/platform/graphics/stroke_data.cc
endlessm/chromium-browser
bsd-3-clause
6,200
146
codeparrot/github-code
a9e69ebaa54e02ac920af44d274b7c2c53abcbf808c4147971ac7f66e5df316e
<?php namespace app\models; use Yii; use yii\base\Model; /** * LoginForm is the model behind the login form. */ class LoginForm extends Model { public $username; public $password; public $rememberMe = true; private $_user = false; /** * @return array the validation rules. */ pu...
PHP
models/LoginForm.php
boangri/shop-yii
bsd-3-clause
2,238
93
codeparrot/github-code
f9b6adca10fa2ce2428ac447a9b616e5f37b75df500aaf21db13e1577ce6a095
using System; using System.Collections.Generic; using System.Text; using System.Collections; namespace DDay.iCal.Serialization.iCalendar { public class SerializerFactory : ISerializerFactory { #region Private Fields ISerializerFactory m_DataTypeSerializerFactory; ...
C#
DDay.iCal/Serialization/iCalendar/Factory/SerializerFactory.cs
nachocove/DDay-iCal-Xamarin
bsd-3-clause
3,239
87
codeparrot/github-code
de90e7c2d53a6e7f8848d9e22812398455af3f7799af156b0bab590082ed60ae
/* * Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services. * 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
Product/Production/Services/PatientDiscoveryCore/src/main/java/gov/hhs/fha/nhinc/patientdiscovery/outbound/PassthroughOutboundPatientDiscovery.java
sailajaa/CONNECT
bsd-3-clause
6,893
145
codeparrot/github-code
3c42a2d8042ddd053819347d38130ab1084c57c350c1ba5ac16e4af2d343b284
<?php class Owner extends AppModel { var $name = 'Owner'; var $displayField = 'firstname'; var $validate = array( 'car_id' => array( 'numeric' => array( 'rule' => array('numeric'), //'message' => 'Your custom message here', //'allowEmpty' => false, //'required' => false, //'last' => false, /...
PHP
app/models/owner.php
luisuribe/carmon
bsd-3-clause
2,047
69
codeparrot/github-code
93b62545f1ea5677e9c25d00f0075c4f9710584f9af045df6cd679ec9ea881c3
""" brush """ from __future__ import absolute_import, division, print_function, unicode_literals import logging from PySide import QtGui from mcedit2.editortools import EditorTool from mcedit2.command import SimplePerformCommand from mcedit2.editortools.brush.masklevel import FakeBrushSection from mcedit2.editort...
Python
src/mcedit2/editortools/brush/__init__.py
vorburger/mcedit2
bsd-3-clause
8,331
240
codeparrot/github-code
7c2594d92d77bdd5d549f531235d82eef39b3a703cea0c303875e5656996ff10
using System; using System.Configuration; namespace SimpleOAuth { /// <summary> /// Configuration element which has a name. /// </summary> public class NamedConfigurationElement : ConfigurationElement { #region Constants private const string NAME = "name"; #endregion Consta...
C#
simpleoauth/configuration.cs
nodoubt223rd/simpleoauth.net
bsd-3-clause
3,243
97
codeparrot/github-code
0eb885408c97e45f6355d101784e9d8c0ea60030667951047f7ccf986d697463
// 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 "content/renderer/gpu/compositor_output_surface.h" #include "base/message_loop_proxy.h" #include "cc/compositor_frame.h" #include "cc/output...
C++
content/renderer/gpu/compositor_output_surface.cc
zcbenz/cefode-chromium
bsd-3-clause
5,233
157
codeparrot/github-code
517a0c052625c88e1d97f71deeb8468e6a19de9d12f0e123b412731d903f3cee
/* * services/mesh.c - deal with mesh of query states and handle events for that. * * Copyright (c) 2007, NLnet Labs. All rights reserved. * * This software is open source. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
C
services/mesh.c
pavel-odintsov/unbound_systemd
bsd-3-clause
41,809
1,401
codeparrot/github-code
52eacbb0686d6fce06365a2ae0cd2eec8c7dfba821150132897eb618f148203f
#!/usr/bin/env python # Copyright (c) 2014 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Autoconf builds lots of small executables. This wreaks havock with pnacl's slow -O2 build time. Additionally linking nacl_i...
Python
build_tools/pnacl-configure-shim.py
Schibum/naclports
bsd-3-clause
1,424
59
codeparrot/github-code
948f9734f2a27e3c4d44940c11e0504a96e436b1b0c721f6617c2a5e518fccf8
package main var ( JsonApiErrAlertNotFound = JsonapiError{ Status: "404", Code: "A404", Detail: "The requested alert couldn't be found in database.", } ) // http://jsonapi.org/format/#document-links type JsonapiLink struct { Href string `json:"href"` Meta string `json:"meta,omitempty"` } // http://jsonap...
GO
errors.go
qrawl/qcap-web
bsd-3-clause
1,741
41
codeparrot/github-code
a0117aee4c7fa7376b9b0bf29ebe7b7233183f2d2167d5f3ad0c012c10b92bfe
<?php $config = [ 'id' => 'app', 'defaultRoute' => 'main/default/index', 'bootstrap' => [ 'settings', ], 'modules' => [ 'backend' => [ 'class' => 'app\modules\backend\Module', ], 'main' => [ 'class' => 'app\modules\main\Module', ], ...
PHP
config/web.php
koroleveduard/ek_cms
bsd-3-clause
1,888
59
codeparrot/github-code
0c56834f691681f13746966c70d911a7b186967b9b6c54e669ba1555b1bbe4fa
#include <NIFF.h> #include <NDynamic_t.h> #include <math.h> NIFF_t* NIFF_from_raw(uchar* raw, uint8_t channels, uint32_t x_size, uint32_t y_size, uint32_t z_size) { NIFF_t head = { .magic = NIFF_MAGIC, .x_size = x_size, .y_size = y_size, .z_size = z_size, .channels = channe...
C
src/Core/NIFF.c
MiJyn/nightmare
bsd-3-clause
2,671
109
codeparrot/github-code
80d44fc955d1f84ebf836099820ab72684ceb3d002c9a46b45b000b5db9d5f4f
<?php /* * Stock Module for Hipanel * * @link https://github.com/hiqdev/hipanel-module-stock * @package hipanel-module-stock * @license BSD-3-Clause * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/) */ namespace hipanel\modules\stock\grid; use hipanel\grid\ActionColumn; use hipanel\gr...
PHP
src/grid/ModelGridView.php
hiqdev/hipanel-module-stock
bsd-3-clause
4,170
125
codeparrot/github-code
1495cf192464242491d0dea055abb530e39ce4e03a2a9212096e85871687e372
/* * packet.c -- low-level DNS packet encoding and decoding functions. * * Copyright (c) 2001-2006, NLnet Labs. All rights reserved. * * See LICENSE for the license. * */ #include "config.h" #include <string.h> #include "packet.h" #include "query.h" #include "rdata.h" int round_robin = 0; int minimal_respons...
C
packet.c
NLnetLabs/NSD
bsd-3-clause
10,164
407
codeparrot/github-code
ae260c0f777d091c5833ac76800b24adc8dec8739398d5ed710e390729638465
'use strict'; var fs = require('fs'); var path = require('path'); var os = require('os'); var exec = require('child_process').exec; var fs = require('fs-extra'); var uuid = require('uuid'); var format = require('string-format'); var temp = require('temp'); var glob = require('glob'); var Promise = require('promise'); ...
JavaScript
index.js
AledLewis/slobber
bsd-3-clause
5,524
194
codeparrot/github-code
9329117abfbfe8ba382fbd6a60781f4cd950716fddc2eb7c780976b2e0e41dfc
from django.conf import settings from django import template from twittersync.models import TwitterAccount, TwitterStatus register = template.Library() class LatestTweets(template.Node): def __init__(self, account, limit, varname): self.account = account self.limit = limit self.varname = ...
Python
twittersync/templatetags/twittersync_tags.py
heartherumble/django-twittersync
bsd-3-clause
2,179
77
codeparrot/github-code
26caee9cc998a2ae0cd7094d7e190b7ca4e1b7546406c2fac5f5ee99922f90e5
from __future__ import absolute_import, print_function from django.core.urlresolvers import reverse from django.contrib import messages from django.utils.translation import ugettext_lazy as _ from sentry.identity.pipeline import IdentityProviderPipeline from sentry.integrations.pipeline import IntegrationPipeline fro...
Python
src/sentry/web/frontend/pipeline_advancer.py
beeftornado/sentry
bsd-3-clause
1,944
56
codeparrot/github-code
1adc36391ee98645f19795a5a8bc8be4c2cd16a368251ea2b84b465d6dc2e4e3
isAjax = true; $(function() { selectionTreeSelection.setListenerFunction( orgunitSelected ); }); function orgunitSelected( orgUnits, orgUnitNames ) { showById('selectDiv'); hideById('showDataBtn'); hideById("listEntityInstanceDiv"); setFieldValue('orgunitId', orgUnits[0]); } function generateStag...
JavaScript
dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/programStageCompleteness.js
kakada/dhis2
bsd-3-clause
1,197
46
codeparrot/github-code
2cdf3629845f428dc0cc968d3950f506a573350071d514fb7332a91bb64bfcd9
// Copyright (c) 2002 // Sergey Klimov (kidd@ukr.net) // WTL Docking windows // // This code is provided "as is", with absolutely no warranty expressed // or implied. Any use is at your own risk. // // This code may be used in compiled form in any way you desire. This // file may be redistributed unmodified by ...
C
ieaddon/Upgradr/tabs/dwstate.h
darwin/upgradr
bsd-3-clause
9,470
363
codeparrot/github-code
5aa638c50eaf62371fb4616e60f41b2ae87474b44ae4e334adebc7dc21fc8a69
"""Constant and messages definition for MT communication.""" class MID: """Values for the message id (MID)""" ## Error message, 1 data byte Error = 0x42 ErrorCodes = { 0x03: "Invalid period", 0x04: "Invalid message", 0x1E: "Timer overflow", 0x20: "Invalid baudrate", 0x21: "Invalid parameter" } # Stat...
Python
ros/src/sensing/drivers/imu/packages/xsens/src/xsens_driver/src/mtdef.py
suzlab/Autoware
bsd-3-clause
6,714
245
codeparrot/github-code
709ce561c91a2077e42855351c66fde3a4d34b2c614f15af1a8316c9a27646cb
<?php /** * Sake * * @link http://github.com/sandrokeil/EasyConfig for the canonical source repository * @copyright Copyright (c) 2013 Sandro Keil * @license http://github.com/sandrokeil/EasyConfig/blob/master/LICENSE.txt New BSD License */ namespace Sake\EasyConfig\Service; use Zend\ServiceManager\Facto...
PHP
src/Service/AbstractServiceConfigFactory.php
sandrokeil/EasyConfig
bsd-3-clause
1,576
47
codeparrot/github-code
5cb12f89c2cad619ff06d0ee1a41ed750c644064bfd9739855dd20a0ba43a0e9
<?php /** * @see https://github.com/zendframework/zend-i18n for the canonical source repository * @copyright Copyright (c) 2005-2019 Zend Technologies USA Inc. (https://www.zend.com) * @license https://github.com/zendframework/zend-i18n/blob/master/LICENSE.md New BSD License */ namespace ZendTest\I18n\Filt...
PHP
test/Filter/AlnumTest.php
zendframework/zend-i18n
bsd-3-clause
5,581
197
codeparrot/github-code
ca47ddb709cacf2b39b95fcdd92f46ad1a8ef2c306ffbce7106527755e552249
# # This file is subject to the terms and conditions defined in the # file 'LICENSE', which is part of this source code package. # from collections import OrderedDict from sqlalchemy import inspect from sqlalchemy.engine import ResultProxy from rdr_service.dao.base_dao import UpsertableDao from rdr_service.model.reso...
Python
rdr_service/dao/resource_dao.py
all-of-us/raw-data-repository
bsd-3-clause
2,900
77
codeparrot/github-code
15db1b8838e776b3f239357d14fc135f56caa67c56e3a549ae86a10d9ffe1210
import collections import datetime import gc import sys from django.conf import settings from django.http import Http404 from elasticsearch import Elasticsearch, NotFoundError from simple_elasticsearch.search import Result from . import settings as es_settings from .signals import post_indices_create, post_indices_reb...
Python
simple_elasticsearch/utils.py
jaddison/django-simple-elasticsearch
bsd-3-clause
7,968
236
codeparrot/github-code
23058b1f2c7e224bdb98f4f26554f81153b6a3f06606914cbd1131cbd6227c63
// 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/content_settings/cookie_settings.h" #include "base/command_line.h" #include "base/prefs/pref_service.h" #include "chrome/bro...
C++
chrome/browser/content_settings/cookie_settings.cc
ChromiumWebApps/chromium
bsd-3-clause
8,662
237
codeparrot/github-code
06a5c6d1c6c206e9c15af966516f9db25aee19ae62a1108ebd4aca15c7caad1f
// // Copyright (c) 2009-2010 Shawn Singh, Mubbasir Kapadia, Petros Faloutsos, Glenn Reinman // See license.txt for complete license. // #ifndef __TEST_CASE_PLAYER_WIDGET_H__ #define __TEST_CASE_PLAYER_WIDGET_H__ /// @file TestCasePlayerWidget.h /// @brief Declares the TestCasePlayerWidget class, which is the Qt GUI ...
C
steersim/include/qtgui/TestCasePlayerWidget.h
x-y-z/SteerSuite-CUDA
bsd-3-clause
2,618
99
codeparrot/github-code
29f260bf1e90c1396bb372a3a128a1f04a329871b801527519dffc3f79f7a1e5
using Android.Runtime; using Android.Views; using System; using System.Reactive.Subjects; using AndroidX.RecyclerView.Widget; namespace Toggl.Droid.ViewHolders { public abstract class BaseRecyclerViewHolder<T> : RecyclerView.ViewHolder { private bool viewsAreInitialized = false; public ISubje...
C#
Toggl.Droid/ViewHolders/BaseRecyclerViewHolder.cs
toggl/mobileapp
bsd-3-clause
1,480
62
codeparrot/github-code
c6d2a9ef46b09be34822bab6e5cc8daa84a1f27bc21eb1d46ca6721e49cd4167
// 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/extensions/api/declarative/url_matcher.h" #include "base/string_util.h" #include "googleurl/src/gurl.h" #include "testing/gt...
C++
chrome/browser/extensions/api/declarative/url_matcher_unittest.cc
rogerwang/chromium
bsd-3-clause
16,751
399
codeparrot/github-code
6bc7c5a823bcd057c717ac0435b81b7bd9779d23ad7a380ae2a17133af095e9e
/*--------------------------------------------------------------------* * * Developed by; * Neal Horman - http://www.wanlink.com * Copyright (c) 2003 Neal Horman. All Rights Reserved * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following c...
C
src/smtp.c
nkhorman/spamilter
bsd-3-clause
7,098
264
codeparrot/github-code
32c800c630c8ebe4cf19858f461df7d82feba2abc24032cb8997e2892670198c
/** * Sample code from The ACE Programmer's Guide, * copyright 2003 Addison-Wesley. All Rights Reserved. */ #ifndef __CLIENT_H_ #define __CLIENT_H_ #include "ace/Synch_Traits.h" #include "ace/Null_Condition.h" #include "ace/Null_Mutex.h" // Listing 1 code/ch07 #include "ace/Reactor.h" #include "ace/INET_Addr.h" #...
C
src/ace/ACE_wrappers/examples/APG/Reactor/Client.h
wfnex/openbras
bsd-3-clause
1,265
51
codeparrot/github-code
b29c62d21385a94e1f7bbdb317b7bb093009352cb4ce74cda46f912df7f5a65d
#ifndef PARAMETER_IO_NETCDF_H #define PARAMETER_IO_NETCDF_H #include "ParameterIo.h" #include <netcdf.hh> class ParameterIoNetcdf : public ParameterIo { public: ParameterIoNetcdf(const Options& iOptions, std::string iConfiguration, const Data& iData); private: bool readCore(const Key::Par& iKey, Para...
C
src/ParameterIos/Netcdf.h
WFRT/Comps
bsd-3-clause
1,419
37
codeparrot/github-code
29c12f26c44f54faabe0c3c71ece574776039474cf110ddf64b25fbf04df5ac7
using System; namespace PeanutButter.Utils { /// <summary> /// Provides a mechanism to run code on construction and disposal, /// irrespective of exception handling /// Use this, for example, to set up and tear down state required for /// a test -- your constructionAction is called immediately upo...
C#
source/Utils/PeanutButter.Utils/AutoResetterOfT.cs
fluffynuts/PeanutButter
bsd-3-clause
1,761
51
codeparrot/github-code
648ff1e9c98ce5f046b4f44221f70429814dbd25d98948edc0e31e3145f0ff58
/* * This file is part of `et engine` * Copyright 2009-2016 by Sergey Reznik * Please, modify content only if you know what are you doing. * */ #pragma once #include <et-ext/rt/raytraceobjects.h> namespace et { namespace rt { class ReconstructionFilter : public Object { public: virtual float weight(const vec2...
C
include/et-ext/rt/reconstruction.h
sergeyreznik/et-engine
bsd-3-clause
557
38
codeparrot/github-code