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 |
|---|---|---|---|---|---|---|---|---|
accc99fd5c8d5d73b22d7b329767e537e12cb53482a5689df274ef4787a207da | <?php
/**
* @link https://github.com/Arza-Studio/yiingine
* @copyright Copyright (c) 2016 ARZA Studio
* @license https://github.com/Arza-Studio/yiingine/blob/master/LICENSE.md
*/
namespace yiingine\web;
use \Yii;
/**
* An URL manager that adds the current language (with locale if it is provided)
* as a first par... | PHP | web/UrlManager.php | Arza-Studio/yiingine | bsd-3-clause | 10,368 | 246 | codeparrot/github-code |
e00b48628d80c459d4b284f0a8141750854c15c9c1b8d07fda459c367b73e76f | #!/usr/bin/python3
# A simple program to test TCP throughput, by sending 1GiB data.
import socket, sys, time
def report(name : str, total_bytes : int, elapsed_seconds : float):
mbps = total_bytes / 1e6 / elapsed_seconds
print('%s transferred %.3fMB in %.3fs, throughput %.3fMB/s %.3fMbits/s' %
(na... | Python | python/throughput.py | chenshuo/recipes | bsd-3-clause | 7,242 | 167 | codeparrot/github-code |
9767b9cf5836e510edfd78deccc1b42589dca3405f410c600d4f8e48cb24a396 | // 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 "ui/aura/root_window_host_linux.h"
#include <X11/Xatom.h>
#include <X11/Xcursor/Xcursor.h>
#include <X11/cursorfont.h>
#include <X11/extensi... | C++ | ui/aura/root_window_host_linux.cc | robclark/chromium | bsd-3-clause | 30,365 | 877 | codeparrot/github-code |
5643bf4e5a87e1ec727b2e44630f0622ec1a2403c626846af2beefb690666376 | <?php
/*
* This file is part of the Dive ORM framework.
* (c) Steffen Zeidler <sigma_z@sigma-scripts.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Dive\Test\Schema\OrmDataType;
use Dive\Schema\OrmDataType\OrmDataTyp... | PHP | test/Dive/Schema/OrmDataType/TestCase.php | sigma-z/Dive | bsd-3-clause | 3,202 | 128 | codeparrot/github-code |
38a05e7a80137690ba2b8160b2a82becee0d4b65d4fb173676a7fb94b46d6945 | """
This module is used with VM_publisher_test.py to test
APMQ/pika. Execute
python VM_publisher_test.py
in one shell and
execute
python VM_publisher_test.py
in another shell.
The publisher publishes p*1, p*2, p*3, ... , p*num_steps on a stream
with global name 'sequence'. Currently num_steps is set to 10 and p ... | Python | examples/distributed_examples/example_2_subscriber.py | AssembleSoftware/IoTPy | bsd-3-clause | 2,279 | 77 | codeparrot/github-code |
15a63b244a733380c6cfc0c989e26de25872559434aa0eebbe92f21218cd9180 | package com.openxc.measurements;
import java.util.Locale;
import com.openxc.units.State;
/**
* The EVMode measurement is the current EV Mode
*/
public class EVMode extends BaseMeasurement<State<EVMode.EVModes>> {
public final static String ID = "ev_mode";
public enum EVModes {
SUSTAIN_ONLY,
AUTO_DEPLETE,
... | Java | src/com/openxc/measurements/EVMode.java | openxc/nonstandard-android-measurements | bsd-3-clause | 701 | 38 | codeparrot/github-code |
7009b582cf44436eede716aec3a672c3b8b7dc2c2664b9910452541e2585eb3d | // 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_HISTORY_WEB_HISTORY_SERVICE_H_
#define CHROME_BROWSER_HISTORY_WEB_HISTORY_SERVICE_H_
#include "chrome/browser/history/history_... | C | chrome/browser/history/web_history_service.h | zcbenz/cefode-chromium | bsd-3-clause | 2,550 | 78 | codeparrot/github-code |
e958f1956cf8cf6a06d1a274b74445eca325441dec44e4acace586345a616019 | <?php
namespace frontend\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\DokumenPenyelidikan;
/**
* DokumenPenyelidikanSearch represents the model behind the search form about `app\models\DokumenPenyelidikan`.
*/
class DokumenPenyelidikanSearch extends DokumenPenyelidikan
{
... | PHP | frontend/models/DokumenPenyelidikanSearch.php | hung101/kbs | bsd-3-clause | 1,878 | 71 | codeparrot/github-code |
03e69f73844a74834069d8036706eeed3524d4bc8eefc96758fec764a8c02944 | <HTML><HEAD><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="imagetoolbar" content="no"><link href="Resources/axurerppage.css" type="text/css" rel="stylesheet"></HEAD><BODY>
<script type="text/javascript">
function InitializeSubmenu(submenucontainerid, tablecellroid, tablecellid, f... | HTML | requirements/wireframes/deploy_study_html/Clinical_Data_Access_Control.html | NCIP/caintegrator-docs | bsd-3-clause | 16,374 | 211 | codeparrot/github-code |
c43132607999db7b403b4af3d7a701f6bbc84c66f1d34e1c0b35180ac2dfa14f |
#include "PALConnection.h"
#include "PALSocket.h"
#include <string.h>
#define CORE_LOGGING_MODULE_NAME "PALCONNECTION"
//#define CORE_LOGGING_MODULE_LEVEL CL_ALL
#define CORE_LOGGING_MODULE_LEVEL NONE
struct ConnectionCallbackFunction {
ConnectionCallbackFunction(ConnectionCallbackFunc cf, void* d) :
callba... | C++ | PAL/POSIX/src/PALConnection.cpp | wayfinder/Wayfinder-CppCore-v3 | bsd-3-clause | 3,949 | 128 | codeparrot/github-code |
2876e467319c5e93bc730bb8b1254ebe8ba5e8a6ce53836c5005e4ebb6456b5d | <?php
/**
* Author: Pavel Naumenko
*/
namespace backend\modules\store\controllers;
use backend\controllers\BackendController;
use backend\modules\store\models\StoreProduct;
use common\models\EntityToFile;
use metalguardian\fileProcessor\components\Image;
use metalguardian\fileProcessor\helpers\FPM;
use metalguardia... | PHP | backend/modules/store/controllers/StoreProductController.php | tolik505/baby | bsd-3-clause | 9,571 | 316 | codeparrot/github-code |
e5166465abf01d16d4feddd029dbf85a95086094d71b0f422f703a56b839fba8 | # ------------------------------------------------------------------------------
# OCCAM
#
# Copyright © 2011-2012, SRI International
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redis... | Python | tools/occam/occam/targets/interface.py | Wajihulhassan/SelfContainedPrevirt | bsd-3-clause | 5,658 | 142 | codeparrot/github-code |
bad61e6481b96b0b30ef2f7740a6f56455a7c5de0a0cdb62bf01b5a1c315a750 | 'use strict';
const Code = require('code');
const Lab = require('lab');
const Propathink = require('..');
const Rethinkdb = require('rethinkdb');
const Fs = require('fs');
const internals = {};
// Test shortcuts
const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const expect =... | JavaScript | test/request.js | propadata/propathink | bsd-3-clause | 4,340 | 147 | codeparrot/github-code |
4360a7d466dca8be0667d6442c2c325a547aee327f081f1552afb8833d98915a | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="Javadoc API documentation for Fresco." />
<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.ico" />
<title>
Im... | HTML | docs/javadoc/reference/com/facebook/imagepipeline/core/ImagePipelineFactory.html | MaTriXy/fresco | bsd-3-clause | 51,831 | 1,772 | codeparrot/github-code |
d1d30e41be9458a63a4c0df36aaa386f2da516c28d5ac9d0543f970b3e1b318b | import { _ } from 'meteor/underscore';
import { Meteor } from 'meteor/meteor';
import { LoggerConsole } from 'meteor/ostrio:loggerconsole';
import { Logger, LoggerMessage } from 'meteor/ostrio:logger';
const log1 = new Logger();
(new LoggerConsole(log1, {
format: function (... | JavaScript | loggerconsole-tests.js | VeliovGroup/Meteor-logger-console | bsd-3-clause | 5,500 | 78 | codeparrot/github-code |
4e3bd1f15c73aabf92af1ad65614da16d978c7c14fe655d45ac1eb1476b9498f | """
byceps.services.shop.article.dbmodels.article
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2021 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from datetime import datetime
from decimal import Decimal
from typing import Optional
from sqlalchemy.ext.hybrid import... | Python | byceps/services/shop/article/dbmodels/article.py | homeworkprod/byceps | bsd-3-clause | 3,124 | 87 | codeparrot/github-code |
467d03af999078980ff83862c71f233ff941286b63565a55b19ec8a906706e98 | /* +---------------------------------------------------------------------------+
| The Mobile Robot Programming Toolkit (MRPT) |
| |
| http://www.mrpt.org/ ... | C++ | samples/dijkstra-example/test.cpp | bigjun/mrpt | bsd-3-clause | 7,937 | 235 | codeparrot/github-code |
a989d760ca278285e3cc61f4399e298a749d49f0181501d714cdfe0ad191e52c | /*
Copyright (c) 2009-2015, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#pragma once
#ifndef EL_DISTSPARSEMATRIX_C_H
#define EL... | C | include/El/core/DistSparseMatrix.h | justusc/Elemental | bsd-3-clause | 26,722 | 558 | codeparrot/github-code |
ce4ce8a3f8c4928d308c40b4a2540b274d637ad599bc3e85325c24164a4783d1 | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008-2016. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | C | wpilibc/athena/include/RobotBase.h | PeterMitrano/allwpilib | bsd-3-clause | 2,390 | 59 | codeparrot/github-code |
5f6efa25c89618bb51f2fb3bd5b9ed942295bb997cee434a04843bdbbe3c1a49 |
using Microsoft.VisualBasic;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
namespace nzy3D.Maths
{
public class PolygonArray
{
internal double[] _x;
internal double[] _y;
internal double[] _z;
public PolygonArray(double[] x, double[] ... | C# | nzy3d-api/Maths/PolygonArray.cs | benoit74/nzy3d-api | bsd-3-clause | 969 | 54 | codeparrot/github-code |
403474b71a736c41f3d0659287d8bc2ca2782f03c8e15fe6c0d4bf6183deb3b3 | #ifndef _WIDGETS_H
#define _WIDGETS_H
#include <TFT.h>
class Widget {
public:
TFT *_dev;
Touch *_ts;
int16_t _x;
int16_t _y;
int16_t _width;
int16_t _height;
boolean _enabled;
boolean _activated;
boolean _changed;
Widget(TFT &dev, ... | C | Widgets.h | TFTLibraries/Widgets | bsd-3-clause | 1,165 | 46 | codeparrot/github-code |
8dc32802693d96bc06e8ae62887618e36e75f4693d976cf81015b9e086bea585 | /*================================================================================
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/EnumDescription.java | mikem2005/vijava | bsd-3-clause | 2,088 | 60 | codeparrot/github-code |
07d7dc875fe57c29bff72999e977c96f3dd850334b1fe61caebd1df32bf9de4b | // 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/extension_system.h"
#include "base/base_switches.h"
#include "base/bind.h"
#include "base/command_line.h"
#includ... | C++ | chrome/browser/extensions/extension_system.cc | leighpauls/k2cro4 | bsd-3-clause | 15,520 | 438 | codeparrot/github-code |
bb43750eac6722941da9a27a48d753173070d8158bbca8834c3dc81fe153de04 | # -*- coding: utf-8 -*-
"""
djadmin2's permission handling. The permission classes have the same API as
the permission handling classes of the django-rest-framework. That way, we can
reuse them in the admin's REST API.
The permission checks take place in callables that follow the following
interface:
* They get passe... | Python | djadmin2/permissions.py | andrewsmedina/django-admin2 | bsd-3-clause | 15,152 | 440 | codeparrot/github-code |
cf4611608f67821e59bc7031465a3b3d2a6cb0f7eeaf69684226cf7f26c7be14 | <?php
namespace lukisongroup\purchasing\models\ro;
use Yii;
use yii\base\Model;
use lukisongroup\hrd\models\Employe;
use lukisongroup\purchasing\models\ro\Requestorder;
use lukisongroup\purchasing\models\ro\Rodetail;
use lukisongroup\purchasing\models\ro\Requestorderstatus;
/**
* @author ptrnov <piter@lukison.com>
... | PHP | lukisongroup/purchasing/models/ro/Auth3Model.php | adem-team/advanced | bsd-3-clause | 6,690 | 181 | codeparrot/github-code |
3320d207070ea9fbf484340395bffd29e53ec43b206baab2ed4e4b035e9ac1a5 | #include <stdexcept>
#include <Eigen/Geometry>
#include <benchmark/ProblemSolver.hpp>
#include "ProjectionProblem.hpp"
namespace one_rotation_projection_problem {
namespace hand_solver {
class HandExpressionSolver : public benchmark::ProblemSolver<ProjectionProblem>{
public:
typedef ProblemSolver<ProjectionProble... | C++ | benchmark/one_rotation_projection/HandTunedExpressionSolver.cpp | cedricpradalier/expression_sandbox | bsd-3-clause | 1,728 | 61 | codeparrot/github-code |
0be449e0ac94bc72417be8f445a05c5050cf4647490795265916d79f43563924 | <?php
use yii\helpers\Html;
use yii\grid\GridView;
use app\models\general\GeneralLabel;
use app\models\general\GeneralMessage;
/* @var $this yii\web\View */
/* @var $searchModel frontend\models\RefJawapanSoalSelidikSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = GeneralLabel::jawapan_s... | PHP | frontend/views/ref-jawapan-soal-selidik/index.php | hung101/kbs | bsd-3-clause | 1,526 | 55 | codeparrot/github-code |
303d4a07f29ba96d8e0e4cd559695ba6b42d85bd43fcb9ff29fb873154309700 | {% extends 'panel/layout.html' %}
{% load boilerplate i18n %}
{% block title %}
{% if object and form %}
{% trans "Change" %} {{ object }}
{% elif form %}
{% trans "Add" %} {{ form|form_model_name }}
{% else %}
{% trans "Delete" %} {{ object }}
{% endif %}
{{ block.super }}
{% endblock title %}
... | HTML | panel/templates/panel/company/form.html | ikcam/django-skeleton | bsd-3-clause | 1,889 | 59 | codeparrot/github-code |
5b494bffe37044df81bbbf9e967b04748280c2431622337f4ece6e726d5c563f | {% include "tardis_portal/javascript_libraries.html" %}
{% load basiccomparisonfilters %}
{% load parametertypecheck %}
{% load uploadify_tags %}
{% block script %}
<script type="text/javascript">
$("#uploadify").live("allUploadsComplete", function(e, data){
dataset_id = $(this).parents('.upload_files_contain... | HTML | tardis/tardis_portal/templates/tardis_portal/ajax/experiment_datasets.html | grischa/mytardis-mrtardis | bsd-3-clause | 10,476 | 375 | codeparrot/github-code |
67080051d9ee81329c014d93c75a46d1f3f4801675e79340e32803db8bc66ae9 | package com.messagebird.objects.voicecalls;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Objects;
/**
* A leg describes a leg object (inbound or outbound) that belongs to a call.
* At ... | Java | api/src/main/java/com/messagebird/objects/voicecalls/VoiceCallLeg.java | messagebird/java-rest-api | bsd-3-clause | 4,317 | 113 | codeparrot/github-code |
98dbadf1754bb8c08a9fe58508f22d867f9c6934b901d5528225a2d9db04d4c2 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.infobar;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animatio... | Java | chrome/android/java/src/org/chromium/chrome/browser/infobar/AnimationHelper.java | chromium2014/src | bsd-3-clause | 9,876 | 250 | codeparrot/github-code |
5a26b8dea96cacb7d823e23e8b6c8992f7e07aa66c0ff2b99f68cc4fdd57d07c | //
// Copyright (c) 2011, Willow Garage, 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... | C++ | src/lib/tendril.cpp | v4hn/ecto | bsd-3-clause | 8,244 | 315 | codeparrot/github-code |
7c27478f7ce10870017743c6924342f6128717356910cc2215410754a00501bf | <?php
namespace Formation\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Formation\Model\Formation;
use Formation\Form\FormationForm;
use ZfcUser\Controller;
use Zend\Mail;
class FormationController extends AbstractActionController{
private function getFormationTabl... | PHP | module/Formation/src/Formation/Controller/FormationController.php | vanessakovalsky/zf2-formation | bsd-3-clause | 1,910 | 76 | codeparrot/github-code |
cb32dd922240dc19abd61376a7e95e566b1e535daedbabbe31e862c4baed8886 | /* $NetBSD: auth.c,v 1.10.4.1 2000/06/22 07:09:02 thorpej Exp $ */
/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are ... | C | netbsd/lib/libtelnet/auth.c | MarginC/kame | bsd-3-clause | 15,743 | 682 | codeparrot/github-code |
8b45b757a88ab7a49341809feaf2bc462bbb310f45071550ac4074738917c5c5 | // (c)2010 by Texas Instruments Incorporated, All Rights Reserved.
/*----------------------------------------------------------------------------+
| |
| Texas Instruments |
| ... | C | USB_API/USB_Common/usb.c | MSP-EricLoeffler/MSPBSL_USB_Tool | bsd-3-clause | 44,981 | 1,294 | codeparrot/github-code |
fa5b802686cb2800e1e3db2f8c62f716aac20499ec83d71aa65fcea6d649ab81 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using Kooboo.CMS.Content.Models;
using MySql.Data.MySqlClient;
namespace Kooboo.CMS.Content.Persistence.Mysql
{
public class TextContentDbCommands
{
public static DateT... | C# | Kooboo.CMS/Kooboo.CMS.Content/Kooboo.CMS.Content.Persistence.Mysql/TextContentDbCommands.cs | Epitomy/CMS | bsd-3-clause | 9,489 | 188 | codeparrot/github-code |
a0546553bc97677b9e9fcc0042006ee782be7203d2de9e06db8efbdb616eccd6 | <?php
namespace PermitHeatMapper;
/**
* GentrificationCalculator handles the math for figuring out how much a
* point is gentrifying
*
* @author Jim Smiley twitter:@jimRsmiley
*/
class GentrificationCalculator {
/**
* take the percent change in permits over time and multiply that by the number
*... | PHP | module/PermitHeatMapper/src/PermitHeatMapper/GentrificationCalculator.php | jimRsmiley/phila-construction-permit-heatmap | bsd-3-clause | 1,169 | 40 | codeparrot/github-code |
a136e8a6dee5e8ff5759048ae1292e0e6ab648521d51fd9917069b174b5868c4 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2012, Jean-Rémy Bancel <jean-remy.bancel@telecom-paristech.org>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions o... | Python | chromagnonHistory.py | JRBANCEL/Chromagnon | bsd-3-clause | 6,712 | 159 | codeparrot/github-code |
deab59630551f2bcbc36791ebc1f3e8faf2cb1ba1d727991229a127770df4a6e | using System.Collections.Generic;
using System.Linq;
using ServiceStack.ServiceHost;
#if WINDOWS_PHONE && !WP
using ServiceStack.Text.WP;
#endif
namespace ServiceStack.Common.Web
{
public static class HttpMethods
{
static readonly string[] allVerbs = new[] {
"OPTIONS", "GET", "H... | C# | src/ServiceStack.Common/Web/HttpMethods.cs | bretternst/ServiceStack-mono | bsd-3-clause | 2,622 | 68 | codeparrot/github-code |
f5f36e8471dcf110ffd4ebe52e70f0b2691dda60aa6a2d2f2dcf88eadf9710dc | #!/usr/bin/perl -w
# wrapper around flex
# The purpose of this script is basically to "fix" flex's output
# in a number of ways.
#
# 1. It changes a forward declaration of istream into a proper
# #include directive. In current C++ libraries, istream is not
# a class but rather a template specialization.
#
# 2. Fix th... | Perl | smbase/run-flex.pl | angavrilov/olmar | bsd-3-clause | 10,597 | 391 | codeparrot/github-code |
554d0df4aa88f3ea9b2afa33c1e65c049326460e7bb655818bc2c82bab1d1138 | <?php
/**
* This is the model class for table "almab_customerrequest".
*
* The followings are the available columns in table 'almab_customerrequest':
* @property integer $id
* @property string $Request
* @property string $SerialNumber
* @property string $Version
* @property string $Response
* @property string... | PHP | protected/models/AlmabCustomerrequest.php | petrospe/frog | bsd-3-clause | 4,010 | 127 | codeparrot/github-code |
2ee8c0c0bbb7226a09b92788ed851d2a56691924771398dd2a0b700b71cdda95 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferab... | C | nrf51_sdk/components/drivers_nrf/twi_master/nrf_drv_twi.c | Jewelbots/twi_test | bsd-3-clause | 26,360 | 766 | codeparrot/github-code |
6d795c93e3ad0b68f3af416536fee59df3c53fae7c3d7f9d74cb6ea33c32551c | package net.wigle.wigleandroid.background;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import net.wigle.wigleandroid.DBException;
import net.wigl... | Java | wiglewifiwardriving/src/main/java/net/wigle/wigleandroid/background/KmlWriter.java | alexws54tk/wigle-wifi-wardriving | bsd-3-clause | 8,171 | 199 | codeparrot/github-code |
02f14ac78208ce2103a282e9a5681555c99339bfa03c620929deca5636e1897f | <?php
/* acp_inactive.html */
class __TwigTemplate_6b1b1bd3f62f8e61fb7e8d5ee377bfd408c9dba0a8080a09455c43cf388b940c extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
... | PHP | www/forum/cache/twig/6/b/6b1b1bd3f62f8e61fb7e8d5ee377bfd408c9dba0a8080a09455c43cf388b940c.php | kivi8/ars-poetica | bsd-3-clause | 11,230 | 297 | codeparrot/github-code |
27022b3473a43b25c11406d310b685950d8dde00279137aa4739280e1c2d6cc4 | '''
Comparison of basis data against authoritative sources
'''
from ..api import get_basis
from ..misc import compact_elements
from ..sort import sort_shells, sort_potentials
from ..lut import element_sym_from_Z
from .. import manip
from ..readers import read_formatted_basis_file
from .compare import _reldiff
def _p... | Python | basis_set_exchange/curate/compare_report.py | MOLSSI-BSE/basis_set_exchange | bsd-3-clause | 9,376 | 260 | codeparrot/github-code |
56ac23c82a6f01c2162ef50fb1b719e0676e08dc32d0ec319ddae36b9f860177 | // Strong Hold BOB 2016 Commands (Shooter PID Test)
package org.usfirst.frc319.commands.shooter;
import edu.wpi.first.wpilibj.command.Command;
import org.usfirst.frc319.Robot;
/**
*
*/
public class ShooterPIDTest extends Command {
public ShooterPIDTest() {
requires(Robot.shooter);
}
protect... | Java | src/org/usfirst/frc319/commands/shooter/ShooterPIDTest.java | Team319/StrongHoldBOB2016 | bsd-3-clause | 664 | 40 | codeparrot/github-code |
8a136acf537963521542d47636f8c72b99a06d824c51364d89f82665345eda83 | #ifndef FITV7_H
#define FITV7_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
////////////////////////////////////////////////
// Full geomrtry hits classes for detector: FIT //
//////////////////////////////... | C | FIT/FITsim/AliFITv7.h | mkrzewic/AliRoot | bsd-3-clause | 2,944 | 77 | codeparrot/github-code |
dbe0ce4679e3d1ea0de1688b043c31b4b2e4ec1df57e85d730d6e7165debc1eb |
/*
* Copyright (C) xianliang.li
*/
#ifndef LXL_DFSS_UPSTREAM_H_INCLUDE
#define LXL_DFSS_UPSTREAM_H_INCLUDE
#include <lxl_config.h>
#include <lxl_core.h>
#include <lxl_event_connect.h>
#include <lxl_dfss.h>
#define LXL_DFSS_UPSTREAM_FT_ERROR 0x00000002
#define LXL_DFSS_UPSTREAM_FT_TIMEOUT 0x00000004
#define LX... | C | src/dfs/storage/lxl_dfss_upstream.h | lixianliang/speed | bsd-3-clause | 3,515 | 119 | codeparrot/github-code |
60a1b0ec216b5a975295b8e8945f466fb41dbf998d85f15d91bb4bc912bb0a5f | {-# LANGUAGE BangPatterns, ExistentialQuantification,
TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses,
RecordWildCards #-}
module Codec.Compression.HLZ4.Decode
-- (
-- decompress
-- )
where
import Control.Monad (when)
import Control.Monad.IO.Class
import Control.Applicative ... | Haskell | src/Codec/Compression/HLZ4/Decode.hs | axman6/HLZ4 | bsd-3-clause | 12,266 | 404 | codeparrot/github-code |
a96d8a533bccdc44758e25f9d5176c3221c7ffd137b73ba41500ce883328455c | <?php
/**
* @link http://www.writesdown.com/
* @author Agiel K. Saputra <13nightevil@gmail.com>
* @copyright Copyright (c) 2015 WritesDown
* @license http://www.writesdown.com/license/
*/
use common\models\Menu;
use common\models\Option;
use frontend\assets\AppAsset;
use frontend\widgets\Alert;
use yii\... | PHP | frontend/views/layouts/main.php | tikaraj21/brt_pms | bsd-3-clause | 2,983 | 98 | codeparrot/github-code |
b742b2e5a1df7813b344c17aeda67d659a1793cb88059fb54c1fbc26e93c9d41 | <?php
/**
* @see https://github.com/zendframework/zend-session for the canonical source repository
* @copyright Copyright (c) 2005-2019 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/zend-session/blob/master/LICENSE.md New BSD License
*/
namespace ZendTest\Ses... | PHP | test/SaveHandler/DbTableGatewayTest.php | zendframework/zend-session | bsd-3-clause | 8,124 | 274 | codeparrot/github-code |
aad9a9722776fe70a9473f4e66bf7842815bd2028e5650c7330a468fec575711 | <?php
/*
* $Id: 1cf90cf9517fd20c05d0c4963d76af2ea12a339c $
*
* 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 ... | PHP | pimcore/lib/Deployment/Phing/test/classes/phing/tasks/ext/GitTasks/GitLogTaskTest.php | theghostbel/pimcore | bsd-3-clause | 12,697 | 307 | codeparrot/github-code |
0f1260c4f1a1a16c9d696517d7c8467840bcc42b79dbefd97507942ef10a90d8 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using OrchardCore.DisplayManagement;
using OrchardCore.DisplayManagement.Descriptors;
using OrchardCore.DisplayManagement.Handlers;
using OrchardCore.D... | C# | src/OrchardCore.Modules/OrchardCore.Workflows/Services/ActivityDisplayManager.cs | xkproject/Orchard2 | bsd-3-clause | 2,076 | 49 | codeparrot/github-code |
aab7ab77979289ba358d734a22559dee78c911099bd4330902e7a2b194d01afd | #! /usr/bin/python
# -*- mode: python -*-
from contextlib import contextmanager
import glob
import itertools
import logbook
import os
import re
import stat
import shutil
import subprocess
import tempfile
from raven import Client
from rq_queues import default_queue, retry_queue
from sentry_dsn import SENTRY_DSN
sentry ... | Python | webapp/builder.py | vmalloc/devdocs | bsd-3-clause | 8,012 | 211 | codeparrot/github-code |
dc0ffa7e67271df4fbcf1767cc576b774ae701254331ab9b07a0982f556a1c17 | <?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Users;
/**
* UsersSearch represents the model behind the search form about `app\models\Users`.
*/
class UsersSearch extends Users
{
/**
* @inheritdoc
*/
public function rules()
{
r... | PHP | models/UsersSearch.php | lvasquez/my-yii2-basic | bsd-3-clause | 1,897 | 75 | codeparrot/github-code |
546a8c0770cee7046572096d59aa8f673edb68e9120b1c5936367b0573d0807d | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory... | Java | src/edu/wpi/first/wpilibj/templates/RobotMain.java | TeamCautionRobotics/RobotTestBoard2014Jan | bsd-3-clause | 1,406 | 39 | codeparrot/github-code |
d25e1f87d728f6a8884813c342ef188b37a8d3894a7401c9d401e15c47c6090a | const webpackConfig = require('./webpack.config');
module.exports = function(config) {
const cfgObj = {
basePath: 'kive',
browsers: ['Chrome', 'ChromeHeadless'],
browserConsoleLogOptions: { level: "error" }, // chrome log level
customHeaders: [{
match: '.*',
... | JavaScript | karma.conf.js | cfe-lab/Kive | bsd-3-clause | 2,146 | 60 | codeparrot/github-code |
27f2e6021e961e7e379002006ef398d563e8b7acd2dae664182c161b9a761cbd | <?php declare(strict_types=1);
namespace PhpParser\Node\Stmt;
use PhpParser\Node;
class Foreach_ extends Node\Stmt
{
/** @var Node\Expr Expression to iterate */
public $expr;
/** @var null|Node\Expr Variable to assign key to */
public $keyVar;
/** @var bool Whether to assign value by reference */... | PHP | lib/PhpParser/Node/Stmt/Foreach_.php | cwi-swat/PHP-Parser | bsd-3-clause | 1,619 | 48 | codeparrot/github-code |
2a1a99e228d6c6f4d8277aa9fb02f4fa24aab176ff49d1ce07fd23765f21c286 | ///////////////////////////////////////////////////////////////////////////////
/// @file main.cpp
/// @brief le main du programme ProjetNuanceur pour le cours INF8702 de Polytechnique
/// @author Frédéric Plourde
/// @date 2007-12-11
/// @version 1.0
///
////////////////////////////////////////////////////... | C++ | TP3v1/Solutionnaire_TP2/main.cpp | GuillaumeArruda/INF8702 | bsd-3-clause | 28,738 | 913 | codeparrot/github-code |
ee6956d81ba0427a229813b4520353b7335cd7a347701a84f29471eddcba2880 | // Copyright (c) 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 "base/json/json_reader.h"
#include "base/run_loop.h"
#include "base/trace_event/trace_event.h"
#include "content/public/test/render_view_test... | C++ | content/renderer/devtools/v8_sampling_profiler_browsertest.cc | lihui7115/ChromiumGStreamerBackend | bsd-3-clause | 4,712 | 147 | codeparrot/github-code |
5116abbd739f5c80ef182e27ed3a432acae5fe1565ce46648e21533b5c877cee | /*
* Copyright (c) 2015-present, Horcrux.
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
package abi43_0_0.host.exp.exponent.modules.api.components.svg;
import android.graphics.Bitmap;
import android.... | Java | android/versioned-abis/expoview-abi43_0_0/src/main/java/abi43_0_0/host/exp/exponent/modules/api/components/svg/Brush.java | exponentjs/exponent | bsd-3-clause | 8,241 | 234 | codeparrot/github-code |
0a0214168ec059a5d40a129e0b2ce4256ade3ed8e1a43ee3f1bdf5741145e053 | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | PHP | Zend/View/Helper/FormElement.php | FbN/Zend-Framework-Namespaced- | bsd-3-clause | 6,277 | 202 | codeparrot/github-code |
33d96b78205f5c83bf848fa55d150a7a28e748d2d37dd22dac7fea1802360209 | #ifndef QTAUTOUPDATER_UPDATECONTROLLER_H
#define QTAUTOUPDATER_UPDATECONTROLLER_H
#include <QtCore/qobject.h>
#include <QtCore/qstringlist.h>
#include <QtAutoUpdaterCore/updater.h>
#include <QtWidgets/qaction.h>
#include "QtAutoUpdaterWidgets/qtautoupdaterwidgets_global.h"
namespace QtAutoUpdater
{
class Updater;... | C | src/autoupdaterwidgets/updatecontroller.h | Skycoder42/QtAutoUpdater | bsd-3-clause | 5,041 | 114 | codeparrot/github-code |
5eedea992feb8ce5cae2806ceb8758eef34520eb3ab4bf82e7ce080d2fd50bc8 | from data_importers.ems_importers import BaseHalaroseCsvImporter
FAL_ADMINAREAS = (
"Bo'ness",
"Bonnybridge",
"Denny",
"Falkirk Ward 1",
"Falkirk Ward 2",
"Falkirk Ward 3",
"Falkirk Ward 4",
"Falkirk Ward 5",
"Falkirk Ward 6",
"Falkirk Ward 7",
"Falkirk Ward 8",
"Falkirk... | Python | polling_stations/apps/data_importers/management/commands/import_falkirk.py | DemocracyClub/UK-Polling-Stations | bsd-3-clause | 1,748 | 63 | codeparrot/github-code |
23b05e5b8cb7bd6d41c02b036c09bb83a9fb46814c39b51a9f920c4996f8ee9b | /**
*/
package tahmuras.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import tahmuras.*;
/**
* <!-- begin-user-doc -->
* An implementation of... | Java | plugins/com.shaniaki.tahmuras/src-gen/tahmuras/impl/TahmurasFactoryImpl.java | shaniaki/TahmurasII | bsd-3-clause | 5,696 | 228 | codeparrot/github-code |
51ea8ea11ce0ad8d39ea862d4d2f702dfcdb83e7a1f4641448091fa6234fe866 | /* $NoKeywords: $ */
/*
//
// Copyright (c) 1993-2012 Robert McNeel & Associates. All rights reserved.
// OpenNURBS, Rhinoceros, and Rhino3D are registered trademarks of Robert
// McNeel & Associates.
//
// THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
// ALL IMPLIED WARRANTIES OF FITNE... | C | OpenNurbs/opennurbs_texture.h | OpenNurbsFit/OpenNurbsFit | bsd-3-clause | 11,363 | 332 | codeparrot/github-code |
da0d6966fee8fdf66adda70e256bcb0ab6dd2387038ef0d0da77164e479d9796 | /*L
* Copyright Oracle Inc, SAIC-F.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/cadsr-bulk-loader/LICENSE.txt for details.
*/
package gov.nih.nci.ncicb.cadsr.bulkloader.beans.castor;
/**
*
* @author Ashwin Mathur
* @version 1.0, Dec 3, 2008
* @since
*/
public... | Java | cadsrbulkloader/src/main/java/gov/nih/nci/ncicb/cadsr/bulkloader/beans/castor/ClassificationSchemeItemRef_ISO11179.java | NCIP/cadsr-bulk-loader | bsd-3-clause | 678 | 40 | codeparrot/github-code |
e74a34b1e76bd567e27bce14e2474b8b9e46233e9726dd27556d43d59ddace25 | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* o... | C | nscrypt/ns_crypt.c | jclulow/miscutils | bsd-3-clause | 4,810 | 249 | codeparrot/github-code |
a0e06ea459d233fc0f3950605e5ae58c7b79a08e409909d694fecff0aab29d37 | import collections
from django import forms
from django.forms.fields import MultiValueField, CharField
from django.forms.utils import flatatt
from django.forms.widgets import (
CheckboxInput,
Input,
RadioChoiceInput,
RadioSelect,
RadioFieldRenderer,
TextInput,
MultiWidget,
Widget,
)
from... | Python | corehq/apps/style/forms/widgets.py | qedsoftware/commcare-hq | bsd-3-clause | 10,116 | 283 | codeparrot/github-code |
fe73f39bc4f1c60ac679a99d2f0118dc3489124b3f91641429af796580fffa51 | /*
* Copyright (c) 2016, Groupon, 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 conditio... | Java | collectors/jmx/src/main/java/com/groupon/lex/metrics/jmx/JmxClient.java | groupon/monsoon | bsd-3-clause | 11,331 | 284 | codeparrot/github-code |
3047615879d5618332735f14aab5e3be299d316b8046b803205c64be80ca3619 | -- Copyright (c) 2016-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.
{-# LANGUAGE OverloadedStrings #-}
module Duckling.Time.EN.AU.Corpus
( allExamples
) where
import Data.Strin... | Haskell | Duckling/Time/EN/AU/Corpus.hs | facebookincubator/duckling | bsd-3-clause | 4,316 | 119 | codeparrot/github-code |
adef962120f478c17c1e8568ed2adcc2c5d5b1b1372d49ea85def261ab26818a |
#ifndef BOOST_MPL_SET_AUX_ERASE_KEY_IMPL_HPP_INCLUDED
#define BOOST_MPL_SET_AUX_ERASE_KEY_IMPL_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2003-2007
// Copyright David Abrahams 2003-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://ww... | C++ | boost/boost/mpl/set/aux_/erase_key_impl.hpp | verma/PDAL | bsd-3-clause | 1,468 | 54 | codeparrot/github-code |
db7a8e030c810e5d1525c2afbf9c96db3a16f1556d01afdda54f11109847e50d | <?php
namespace app\controllers;
use Yii;
use app\models\Model;
use app\models\ModelSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use app\models\User; //For set permission
use yii\filters\AccessControl; //For set permission
use \app... | PHP | controllers/ModelController.php | chittipong/yss_backend | bsd-3-clause | 6,612 | 208 | codeparrot/github-code |
9346137456075ced45c83b5de4750cf6b5305f7ebd23f24126055fb80f41d52e | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | C++ | src/demos/vehicle/wheeled_models/demo_VEH_HMMWV.cpp | rserban/chrono | bsd-3-clause | 12,439 | 339 | codeparrot/github-code |
80397bcd8a9d8f5b8952edebcc2203887a532e5af641a4c78c94298075d0e3a0 | /*
* OpenSeadragon - LegacyTileSource
*
* Copyright (C) 2009 CodePlex Foundation
* Copyright (C) 2010-2013 OpenSeadragon contributors
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* - Redistributions of ... | JavaScript | src/legacytilesource.js | openseadragon/openseadragon | bsd-3-clause | 8,932 | 292 | codeparrot/github-code |
c054dd16cbd8624bb54dd18e1e187ea1562b4cfb06da911374365bae2cf416a6 | // 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 "media/mojo/services/mojo_cdm.h"
#include <stddef.h>
#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/l... | C++ | media/mojo/services/mojo_cdm.cc | was4444/chromium.src | bsd-3-clause | 12,909 | 356 | codeparrot/github-code |
bafbee451a63acf12764dee4f72ac9829f8c646664c67da945e9f3ff97c70f56 | package org.hisp.dhis.analytics.table;
/*
* Copyright (c) 2004-2015, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the abov... | Java | dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManager.java | kakada/dhis2 | bsd-3-clause | 16,487 | 420 | codeparrot/github-code |
45c5d393d1e695d5b68b0dd6b994220e95a68fd5be878f1da6a9cdfe870114ef | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using Lucene.Models;
using Lucene.Net.Analysis;
using Lucene.Net.Analysis.Standard;
using Lucene.Net.Documents;
using Lucene.Net.Index;
using Lucene.Net.Search;
using Lucene.Net.Store;
using Orch... | C# | Modules/Lucene/Services/LuceneIndexProvider.cs | andrewconnell/aci-orchardcms | bsd-3-clause | 7,646 | 196 | codeparrot/github-code |
e33ce8ea3c5cb5954a192d708bf74a7c05ad1771826d80a60f547a1e4f526a82 | <!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>{{ config.SITE_NAME }}</title>
{% assets "css_all" %}
<link rel="stylesheet" href="{{ ASSET_URL }}"... | HTML | vulyk/templates/base/base.html | mrgambal/vulyk | bsd-3-clause | 3,917 | 102 | codeparrot/github-code |
7412d3fdabf3979e1519588dc8eeff9dab61201eb4826bffb533f09f38453cd2 | #-------------------------------------------------------------------------------
#Name: rptest
#Purpose: test module for refprop and multiRP
#
#Author: Thelen, B.J.
# thelen_ben@yahoo.com
#-------------------------------------------------------------------------------... | Python | python2.7/rptest.py | BenThelen/python-refprop | bsd-3-clause | 21,437 | 736 | codeparrot/github-code |
e3674ef15b94839006cbae96e08fff08662ba4cd40fddd40c9c06e7375d09195 | /*-
* Copyright (c) 1999 Michael Smith <msmith@freebsd.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notic... | C | freebsd4/sys/i386/i386/i686_mem.c | MarginC/kame | bsd-3-clause | 17,223 | 589 | codeparrot/github-code |
b039ad2d49a3e480e97aea94ad60437076fc3f3bb1afd09c47cd82d2b2c6ec96 | <?php
namespace app\models;
use Yii;
use yii\validators;
use yii\validators\Validator;
/**
* This is the model class for table "discounts".
*
* @property integer $id
* @property integer $providers_id
* @property string $goods_type_type
* @property string $params
* @property string $values
* @property double ... | PHP | models/Discounts.php | A111ex/parser.ru | bsd-3-clause | 2,653 | 100 | codeparrot/github-code |
38be0b090ccdd7a0e379a71c394ee781038df97625d94aa33636319db247a374 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>mne.open_report — MNE 0.22.1 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../... | HTML | 0.22/generated/mne.open_report.html | mne-tools/mne-tools.github.io | bsd-3-clause | 15,774 | 234 | codeparrot/github-code |
218ce2bb3182a4cbb7c90a96fb87725991cb335395bec14431189d633dde27d3 | import sys
try:
from django.conf import settings
settings.configure(
DEBUG=True,
USE_TZ=True,
DATABASES={
"default": {
"ENGINE": "django.db.backends.sqlite3",
}
},
ROOT_URLCONF="modals.urls",
INSTALLED_APPS=[
"... | Python | runtests.py | publica-io/django-publica-modals | bsd-3-clause | 1,244 | 60 | codeparrot/github-code |
41424a5e2f91d408e370b254e2c951df2922fce8d893f2cde50c934326e7dbc1 | {-# LANGUAGE MultiParamTypeClasses #-}
{- |
Copyright : Copyright (C) 2008 Bjorn Buckwalter
License : BSD3
Maintainer : bjorn.buckwalter@gmail.com
Stability : experimental
Portability: GHC only?
An implementation of TDB conversions based on formula (2.6) of
[Kaplan2005]. The formula reportedly ha... | Haskell | src/Astro/Time/Barycentric/Kaplan2005.hs | bjornbm/astro | bsd-3-clause | 2,118 | 58 | codeparrot/github-code |
9198d8c7cf6fce42af2755d63332eb3eb779383e7f506595c6a157456d36cb61 | <?php
/**
* Created by PhpStorm.
* User: lxhui
* Date: 16-1-28
* Time: 下午6:40
*/
namespace api\modules\v4\controllers;
use api\common\models\Comment;
use common\models\Member;
use api\common\models\Praise;
use api\common\models\Resource;
use api\common\models\Exercise;
use api\common\models\{Message,Exam};
use Y... | PHP | api/modules/v4/controllers/CommentController.php | apphelper/apphelper | bsd-3-clause | 11,367 | 332 | codeparrot/github-code |
6b36107e275f567e0ee79aa0d9a8cf4f7aefbab8bbb64fb986576cf322461c6d | module App.Password where
import Control.Monad.IO.Class (MonadIO(liftIO))
import Crypto.Scrypt
(EncryptedPass(EncryptedPass), Pass(Pass), encryptPassIO',
getEncryptedPass, verifyPass')
import Data.Text (Text)
import Data.Text.Encoding (decodeUtf8With, encodeUtf8)
import Data.Text.Encoding.Error (lenient... | Haskell | src/App/Password.hs | arow-oss/arow-sample-webapp | bsd-3-clause | 1,556 | 52 | codeparrot/github-code |
d777287dbaa0f8473e533799086a5f7fcabf117b79ed72e9fc057b6e28e71d07 | /*
* Copyright (c) 2012 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.
*/
#include "native_client/src/trusted/service_runtime/sel_main_chrome.h"
#include "native_client/src/include/portability.h"
#include "nativ... | C | src/trusted/service_runtime/sel_main_chrome.c | Lind-Project/native_client | bsd-3-clause | 13,260 | 409 | codeparrot/github-code |
c0121d55b2fee7fd3fbb210758c0abad22c9a49590cc2f0671a47b80af674659 | <?php defined('SYSPATH') or die('No direct script access.');
class Controller_Sitemap extends Stourweb_Controller{
/*
* 智能sitemap控制器
*
*/
public function before()
{
parent::before();
$this->assign('parentkey',$this->params['parentkey']);
$this->assign('itemid',$this->... | PHP | newtravel/application/classes/controller/sitemap.php | lz1988/stourwebcms | bsd-3-clause | 2,075 | 81 | codeparrot/github-code |
600bba1a67fc8d688cec524be34c16389dd591facbd6fa8a084fddc811158795 | package minhhai2209.jirapluginconverter.plugin.setting;
import java.util.UUID;
import com.atlassian.oauth.Consumer;
import com.atlassian.oauth.consumer.ConsumerService;
import com.atlassian.oauth.util.RSAKeys;
import com.atlassian.sal.api.pluginsettings.PluginSettings;
import com.atlassian.sal.api.pluginsettings.Plug... | Java | src/main/java/minhhai2209/jirapluginconverter/plugin/setting/KeyUtils.java | liulikun/jira-plugin-converter | bsd-3-clause | 1,846 | 60 | codeparrot/github-code |
3bf5275616697046b77e2b6ca12d2aeef7f06123e6e5fc9b8c6df349a0706a77 | // 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.
#include "chrome/browser/ui/signin_view_controller.h"
#include <utility>
#include "build/chromeos_buildflags.h"
#include "chrome/browser/profiles/profil... | C++ | chromium/chrome/browser/ui/signin_view_controller.cc | ric2b/Vivaldi-browser | bsd-3-clause | 18,661 | 458 | codeparrot/github-code |
f8c623c55619bcda5e3eb1d73cec3c9446091e86dbd26a1c4b97534d5a25fbea | import React, { PureComponent } from "react";
import PropTypes from "prop-types";
import Loader from "./components/Page/Loader";
import PageRenderer from "./components/Page/PageRenderer";
import Page from "./components/Page/Page";
import requireModuleDefault from "./utils/requireModuleDefault";
const fetchMarkdown = ... | JavaScript | packages/core/src/pageLoader.js | interactivethings/catalog | bsd-3-clause | 2,193 | 89 | codeparrot/github-code |
d1aaeeb8efa047f8a03f4548112e36021ba0d353093d546c1eae23da5da1a893 | /*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.... | C | coast/modules/DataAccess/WriteFileDAImpl.h | zer0infinity/CuteTestForCoastTest | bsd-3-clause | 1,772 | 56 | codeparrot/github-code |
ea3b4b497f55dd23c8f49aa93f69a3eced2bd96d78e61f5cf1f2ae62e8bf76d8 | // 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 NET_DNS_HOST_RESOLVER_H_
#define NET_DNS_HOST_RESOLVER_H_
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <string>
#incl... | C | net/dns/host_resolver.h | danakj/chromium | bsd-3-clause | 9,002 | 235 | codeparrot/github-code |
ec785182ae9c26b7027485b9186f6b19e15fc763fbb3792143f608f4b9f39449 | 'use strict';
var $ = require('jquery')
, game = require('./game')
, primus;
// TODO this should not be a console.log messages
//console.log('connecting to server ...');
/* global Primus */
primus = Primus.connect();
// TODO this should not be a console.log messages
primus.on('open', function() {
//cons... | JavaScript | client/app/client.js | crisu83/capthatflag | bsd-3-clause | 1,051 | 45 | codeparrot/github-code |
f3f9a90a28c8997a7905f2390b99dd135139b1735dd995dabad95727c6dce45c | var TMT = TMT || {};
var level = -99;
var postScore;
var bonus;
//Achievements
var NOHANDS = false;
var VEHICULARDESTRUCTION = false;
var UNHARMED = false;
var gameHeight = 800;
var gameWidth = 480;
var name;
TMT.game = new Phaser.Game(gameWidth, gameHeight, Phaser.AUTO, '');
/*
Load all game state into TMT va... | JavaScript | www/src/main.js | berong91/ProjectDolos | bsd-3-clause | 872 | 34 | codeparrot/github-code |
90d84c18b44e1eb1ac70a55788c531811bbec8c216371bf9faa3b623d64c02ae | // 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 "ash/system/chromeos/settings/tray_settings.h"
#include "ash/shell.h"
#include "ash/system/chromeos/power/power_status.h"
#include "ash/syst... | C++ | ash/system/chromeos/settings/tray_settings.cc | ChromiumWebApps/chromium | bsd-3-clause | 5,346 | 173 | codeparrot/github-code |
e5ec07f9f993e5b871f2172dff9bffc75d140fdd6e0fd7c34d9e3fcac16137a1 | // 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/ui/views/bookmarks/bookmark_editor_view.h"
#include <string>
#include "base/message_loop/message_loop.h"
#include "base/str... | C++ | chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc | patrickm/chromium.src | bsd-3-clause | 15,890 | 436 | codeparrot/github-code |
a229f08ebbb4cd77f78635cf5851c63a9bc4ab1c1ed620fa3c49e8ada4e2842d | package net.dougqh.jak.jvm.operations;
import java.lang.reflect.Type;
import net.dougqh.jak.jvm.JvmOperationProcessor;
public final class dstore_3 extends FixedStoreOperation {
public static final String ID = "dstore_3";
public static final byte CODE = DSTORE_3;
public static final dstore_3 instance() {
retur... | Java | net.dougqh.jak.jvm.core/src/net/dougqh/jak/jvm/operations/dstore_3.java | dougqh/JAK | bsd-3-clause | 720 | 41 | codeparrot/github-code |
a7e34268c8cbb5799b080189e23e5f5c6eb6d8beffc755e9bd53a2c80d2ae3e5 | <?php
/**
* ZF2 Module Public Asset Installer
*
* This PHP CLI script allows ZF2 modules to have routable public asset
* folders. Urls like /module/rods-zf2-module/css/style.css will map to
* /vendor/rod/RodsZf2Module/public/css/style.css This is accomplished by
* creating symlinks. This script must run from your... | PHP | makeSymlinksForZf2ModulePublicFolders.php | rodmcnew/php-zf2-module-public-asset-symlink-generator | bsd-3-clause | 2,916 | 98 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.