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 |
|---|---|---|---|---|---|---|---|---|
62ad7096d7f48df9a33d318574a03b2a4c6673ca61fbd05770d5e6cba112f825 | package edu.umich.libpowertutor;
public class EnergyEstimates {
public static native int estimateMobileEnergyCost(int datalen, int bandwidth, int rtt_ms);
public static native int estimateMobileEnergyCostAverage(int datalen, int bandwidth, int rtt_ms);
public static native int estimateWifiEnergyCost(int da... | Java | android_project/src/edu/umich/libpowertutor/EnergyEstimates.java | brettdh/libpowertutor | bsd-2-clause | 1,622 | 37 | codeparrot/github-code |
27399952a3ce36aeacd8e30fb1559311b0bfd5a6a5ca9385c924aaf72a2f405c | /* Copyright (c) Citrix Systems 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,... | C# | XenAdmin/SettingsPanels/VBDEditPage.cs | Frezzle/xenadmin | bsd-2-clause | 12,588 | 375 | codeparrot/github-code |
144a18f1cd35932c7cf5aebe814c607fd9586ed283dbe367fec7b0641e5d0094 | #!/usr/bin/python
import feedparser
import os
import pickle
import logging
from episode import Episode
log = logging.getLogger()
class Feed:
""" Class representing a single podcast feed """
def __init__(
self,
name,
url,
destPath,
episodes,
... | Python | feed.py | obmarg/pypod | bsd-2-clause | 6,209 | 192 | codeparrot/github-code |
a64c00579cf3b85162dff25f272135ad482d5d00a9cda9467717d57ef1274160 | require "dependable"
require "dependency"
require "dependencies"
require "build_environment"
# A base class for non-formula requirements needed by formulae.
# A "fatal" requirement is one that will fail the build if it is not present.
# By default, Requirements are non-fatal.
class Requirement
include Dependable
... | Ruby | Library/Homebrew/requirement.rb | maxim-belkin/brew | bsd-2-clause | 5,483 | 236 | codeparrot/github-code |
7232846e7d8734ff9bfd880b49f0a661c2ef851e9f4767a6b16f26d0d2a2d4ff | package ingredients.streaming.optional;
import ingredients.AbstractIngredient;
import interfaces.NodeConnectionAlgorithm;
import java.util.Random;
import messages.Message;
import modules.player.VideoStream;
public class ConstantLagAdaptivePlayoutIngredient extends AbstractIngredient<NodeConnectionAlgorithm> {
fin... | Java | src/ingredients/streaming/optional/ConstantLagAdaptivePlayoutIngredient.java | alibov/StreamAid | bsd-2-clause | 1,291 | 44 | codeparrot/github-code |
a22b383d0228341b92f33953eeca6195c7f65b7204d8c148ff03fc3adfad16c6 | /*
* Copyright (C) 2000 Peter Kelly (pmk@post.com)
* Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
* Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
* Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
* Copyright (C) 2008 H... | C++ | xml/parser/XMLDocumentParser.cpp | applesrc/WebCore | bsd-2-clause | 9,157 | 300 | codeparrot/github-code |
41518b7f051f34737ba41ce7fa00ee5e0834a08b0b0d279218041a9d3ca85db3 | package org.jvnet.mjiip.v_2_3;
import java.nio.charset.Charset;
import java.nio.charset.IllegalCharsetNameException;
import java.text.MessageFormat;
import java.util.List;
import org.apache.maven.plugin.MojoExecutionException;
import org.jvnet.jaxb2.maven2.OptionsConfiguration;
import org.jvnet.jaxb2.maven2.util.Stri... | Java | plugin-2.3/src/main/java/org/jvnet/mjiip/v_2_3/OptionsFactory.java | highsource/maven-jaxb2-plugin | bsd-2-clause | 4,271 | 136 | codeparrot/github-code |
4e51cb9f430d1497aab4d7d8ed09af9d3b03902f90b1abb32d3fad2283dd67ca | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2013-2016 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | C++ | modules/opengl/texture/textureunit.cpp | cgloger/inviwo | bsd-2-clause | 3,820 | 102 | codeparrot/github-code |
e7774602b3cbb709e5962b00ff7285a2dce9399791e1a4f5083fa389417dca98 | /**
This file is part of a jTEM project.
All jTEM projects are licensed under the FreeBSD license
or 2-clause BSD license (see http://www.opensource.org/licenses/bsd-license.php).
Copyright (c) 2002-2009, Technische Universität Berlin, jTEM
All rights reserved.
Redistribution and use in source and binary forms, wit... | Java | src/de/jtem/riemann/schottky/PeriodMatrix.java | jupsal/schmies-jTEM | bsd-2-clause | 5,822 | 216 | codeparrot/github-code |
e73a4b5df216769688849219ce76fa74d935f912fae282558c05a6f0a123b6a9 | /* Tariq ahmed khan - Daffodil */
#include <bits/stdc++.h>
#define _ ios_base::sync_with_stdio(0);cin.tie(0); // I/O optimization
#define pi 2*acos(0.0)
#define scan(x) scanf("%d",&x)
#define sf scanf
#define pf printf
#define pb push_back
#define memoclr(n,x) memset(n,x,sizeof(n) )
#define INF 1 << 30
typedef lo... | C++ | otherOJs/cf221A.cpp | partho222/programming | bsd-2-clause | 2,054 | 95 | codeparrot/github-code |
340ba9c7a10023bad7e7dfbf7a6145e3173680f61d796b253b89ebd5a3894f2b | // Copyright (C) 2016 The V8 Project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 18.2.3
esid: sec-isnan-number
description: >
Use non-object value returned from @@toPrimitive method
info: |
isNaN (number)
1. Let num be ? ToNumber(number).
... | JavaScript | Jint.Tests.Test262/test/built-ins/isNaN/toprimitive-valid-result.js | sebastienros/jint | bsd-2-clause | 1,925 | 74 | codeparrot/github-code |
c430e79d5e286e0a3a1edacda3f755f244ef40f83d796ec81e8bfa1125e41055 | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "arrayutil.hpp"
#include "bitarray.hpp"
#include "bitsandbytes.hpp"
#include "bytearray.hpp"
#include "cocadautil.hpp"
#include "mathutil.hpp"
byte_t *bitarr_new_from_str(char *str, const size_t len)
{
byte_t *ret;
ret = NEW_ARRAY(byte_t, (siz... | C++ | external/wavelet_construction/onlineWT/src/bitarray.cpp | kurpicz/pwm | bsd-2-clause | 17,809 | 574 | codeparrot/github-code |
9c1664116c76b2ff58272fdbf66d5486f39bc60cc740b34c63925362db6b8657 | package by.brest.ssod.lab1;
import javax.swing.*;
import java.awt.*;
/**
* Created by kirill on 4.9.15.
*/
public class Painter extends JFrame {
private Way way;
public Painter(){
this.setBounds(50,50,640,480);
}
public void start(final int ms){
final Painter painter = this;
... | Java | ssod-labs/lab1/src/main/java/by/brest/ssod/lab1/Painter.java | ieiunium/SSOD | bsd-2-clause | 1,850 | 72 | codeparrot/github-code |
4443ed9c7924122fa5f1934842769d3c7e293e7a50731a295a804c68452c0731 | /* Copyright (c) Citrix Systems 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 o... | C | include/ethernet.h | xenserver/win-xenvif | bsd-2-clause | 5,826 | 146 | codeparrot/github-code |
2b02fb3faeafd8169886730891fa37d3649bfb8dbf37bc40389319dc375c6a15 | var crypto = require('crypto');
var amoeba = require('amoeba');
var except = amoeba.except;
var base32hex = amoeba.base32hex;
function hashVals(vals) {
var hasher = crypto.createHash('sha1');
for (var i = 0; i < vals.length; ++i) {
hasher.update(String(vals[i]));
}
return base32hex.encodeBuffer(hasher.dig... | JavaScript | lib/carelink/assignId.js | tidepool-org/mmcsv-carelink-data | bsd-2-clause | 1,907 | 63 | codeparrot/github-code |
ed712730f9b903fc45045993602cf1b3162b96dbfc8e22ae7e589f5e39c6976b | #include "IntroEditor.h"
#include "IntroEditorEffects.h"
#pragma comment( lib , "bass.lib" )
#include "bass.h"
char *SoundSystem[]=
{"NONE",
"MVX",
"BASS"};
int SoundSys=0;
int MusicLength=0;
RENDERTEXTURESLOT RenderTextures[6];
#define EventHeight 10
EVENT *EventList=NULL;
bool NewEventInProgr... | C++ | aDDict2/IntroEditor.cpp | lynxluna/conspiracy | bsd-2-clause | 44,509 | 1,486 | codeparrot/github-code |
0f30a2dcb2781b4d0eedfe0b470553fb75cbfb8ab09e5099172e14bc0695a778 | // Copyright (c) 2013, Kenton Varda <temporal@gmail.com>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this
//... | C++ | src/async-test.cpp | QingYun/kj | bsd-2-clause | 17,205 | 706 | codeparrot/github-code |
ce25d0bf99be5e1027e959794a7ea3e0828c60b1cbf5c16a7222c7ef386ccb9e | /*
* #%L
* ImageJ2 software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2014 - 2021 ImageJ2 developers.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of... | Java | src/test/java/net/imagej/ops/transform/translateView/TranslateViewTest.java | imagej/imagej-ops | bsd-2-clause | 3,810 | 92 | codeparrot/github-code |
0cbdc2c9e1dd4990934602d977d6c5fc0e1283b0af773a2666fa9fa492353b5d | """Views for the URYPlayer submodule of the URY website.
---
Copyright (c) 2013, University Radio York.
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... | Python | uryplayer/views.py | UniversityRadioYork/lass-pyramid | bsd-2-clause | 3,553 | 113 | codeparrot/github-code |
a87299e47ee3d8cb44eb3b55a510fe17005f87fc83aac1e41e7a37145541e27e | package org.protobee.gnutella.routing;
import org.protobee.identity.NetworkIdentity;
public class QueryGUIDRoutingPair {
private final NetworkIdentity host;
private final int routedResultCount;
public QueryGUIDRoutingPair( NetworkIdentity host, int routedResultCount ) {
this.host = host;
this.routedRes... | Java | gnutella6/src/main/java/org/protobee/gnutella/routing/QueryGUIDRoutingPair.java | dmurph/protobee | bsd-2-clause | 1,217 | 48 | codeparrot/github-code |
1cf6ba3bf5aae2d2a392b55b127f78eb65d352e74544effcd80ca2a19d2d9a4a | @REM
@REM This file contains an 'Intel Peripheral Driver' and is
@REM licensed for Intel CPUs and chipsets under the terms of your
@REM license agreement with Intel or your vendor. This file may
@REM be modified by the user, subject to additional terms of the
@REM license agreement ... | Batchfile | BuildFsp.bat | feizwang/quarkfsp | bsd-2-clause | 13,108 | 358 | codeparrot/github-code |
30501610c98e134fbc237633e4cde8c2747d626de97ff8a9e8268dae0757befc | package echowand.util;
/**
* ヒープの使用量の情報を表す。
* @author ymakino
*/
public class HeapUsage {
private long totalMemory;
private long freeMemory;
private long maxMemory;
private Unit unit;
/**
* 利用する単位を表す。
* バイト(Byte)、キロバイト(KByte)、メガバイト(MByte)の三つの値を持つ。
*/
public enum Unit {
... | Java | src/echowand/util/HeapUsage.java | ymakino/echowand | bsd-2-clause | 5,887 | 266 | codeparrot/github-code |
42aa42f0e46c71508554efb742bfea2b9f3e4cf8bb6d58cca6a58c5f91b2dd53 | // Copyright (c) 2013-2017 Anton Kozhevnikov, Thomas Schulthess
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that
// the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, ... | C | src/Unit_cell/atom.h | dithillobothrium/SIRIUS | bsd-2-clause | 23,439 | 643 | codeparrot/github-code |
fd0d4d229e21686fbf560b0aea48c07b32b7da16b8f922d3caf53170cc9c458a | <html>
<head>
<title>Lion</title>
</head>
<body style="margin: 0px; padding: 0px;">
<style type="text/css">
#lblDistance{
color:white;
font-weight: bold;
text-shadow: 2px 2px 2px black,
2px -2px 2px black,
-2px 2px 2px black,
-2px -2px 2px black;
}
</style>
<script src... | HTML | examples/distance_measure.html | EndPointCorp/lg-potree | bsd-2-clause | 9,034 | 288 | codeparrot/github-code |
77cd8717efba95ed273d28ad150e4a72874defbaac600b8389c8ad4bf1760897 | using System;
using System.Collections.Generic;
using System.Text;
namespace Equin.ApplicationFramework
{
/// <summary>
/// Defines a general method to test it an item should be included in a <see cref="BindingListView<T>"/>.
/// </summary>
/// <typeparam name="T">The type of item to be ... | C# | src/BindingListView/IItemFilter.cs | waynebloss/BindingListView | bsd-2-clause | 4,493 | 144 | codeparrot/github-code |
c6fd63042f21d0ea2ab428b72306e7925afd486169f55fcf698ad8ab2f97a3a9 | /*
* Copyright (c) 2015-2017, Statens vegvesen
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list ... | Java | src/main/java/no/vegvesen/nvdbapi/client/clients/PositionRequest.java | nvdb-vegdata/nvdb-api-client | bsd-2-clause | 6,137 | 183 | codeparrot/github-code |
2a0c12d247b6c31b3c9de666e23ccebba5dc56ee83d5359833cf46c0ebd1aab9 | /**************************
* Includes
*
**************************/
#include<ctime>
#include<cmath>
using namespace std;
#include <windows.h>
#include <gl/gl.h>
/**************************
* Function Declarations
*
**************************/
float lrand(void); // random 0-1
#include"lande... | C++ | sample/lander.cpp | andschwa/uidaho-cs470-moonlander | bsd-2-clause | 4,802 | 201 | codeparrot/github-code |
ef9f191624e319085713fbdda270a0eea4c7f1fd99495247f37a0f213890e3a6 | package de.ids_mannheim.korap.utils;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* @author hanl
* @date 04/12/2013
*/
public class CollectionTypes {
private ObjectMapper mapper;
public C... | Java | core/src/main/java/de/ids_mannheim/korap/utils/CollectionTypes.java | KorAP/Kustvakt | bsd-2-clause | 2,736 | 108 | codeparrot/github-code |
ebd94be70d3546880b25fd254afbc16d8877b45eb1f90ca9a0c4a126614cb86b | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Leaflet Vector Layers - CartoDB Demo</title>
<meta name="description" content="Display vector data from ArcGIS Server, GeoIQ, Geocommons, Arc2Earth, CartoDB and others in a Leaflet map">
<meta name="author" content... | HTML | demos/cartodb/index.html | normanb/leaflet-vector-layers | bsd-2-clause | 16,286 | 324 | codeparrot/github-code |
dc15e80728e7b3d1bb5fc024c30ff2610a260bf57e305719cfd58ca12f518f2b | /*
* Copyright (c) 2014, Oculus VR, 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.
*
*/
... | C | Source/RakWString.h | bengol/RakNet | bsd-2-clause | 3,463 | 124 | codeparrot/github-code |
7b33db4f747312f5ece50dde9468cfbaea0a91404231ff8eaf09e2a50621ee46 | <?php
/*
Copyright (c) 2014-2016, Roman Khomasuridze, (khomasuridze@gmail.com)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, ... | PHP | components/trunks.php | alkali147/fbilling | bsd-2-clause | 7,042 | 153 | codeparrot/github-code |
dfebdd8172714610211de5170156fdfc34d2ac3dd65ba9c0467a18e1aa55063b | {% extends "admin/base_site.html" %}
{% load i18n %}
{% block submenu %}
{% include "group_submenu.html" %}
{% endblock %}
{% block bodyclass %}change-form{% endblock %}
{% block content %}
<div id="content-main">
{% for f in files %}
{% if forloop.first %}
<div class=module>
<ul class="p... | HTML | core/templates/group_files.html | nirgal/ngw | bsd-2-clause | 1,261 | 56 | codeparrot/github-code |
0b9ab46ed746e0ef68dd25d6c2b8e80d24fc7b52b1a80c0733082eccbc8ca0cb | <?php
/**
* Copyright © 2019 Magmodules.eu. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magmodules\Channable\Controller\Adminhtml\Item;
use Magento\Backend\App\Action\Context;
use Magento\Framework\Controller\ResultFactory;
use Magento\Backend\App\Action;
use Magmodules\Channable\Model... | PHP | Controller/Adminhtml/Item/Update.php | magmodules/magento2-channable | bsd-2-clause | 3,334 | 110 | codeparrot/github-code |
2ed32f27a69ae1c7019c0b2314b62823382d11a9e6391f11ce8dfe4ce5a2bec1 | /*
==== Author:
Relja Arandjelovic (relja@robots.ox.ac.uk)
Visual Geometry Group,
Department of Engineering Science
University of Oxford
==== Copyright:
The library belongs to Relja Arandjelovic and the University of Oxford.
No usage or redistribution is allowed without explicit permission.
*/
#include "evaluator_v... | C++ | src/search_engine/relja_retrival/v2/evaluation/evaluator_v2.cpp | ox-vgg/vise | bsd-2-clause | 23,753 | 788 | codeparrot/github-code |
9edd3164c60567978bb770923c152ac7700b66ccca100c67db59c62c21f9a4e4 | class Wxpython < Formula
include Language::Python::Virtualenv
desc "Python bindings for wxWidgets"
homepage "https://www.wxwidgets.org/"
url "https://files.pythonhosted.org/packages/cb/4f/1e21d3c079c973ba862a18f3be73c2bbe2e6bc25c96d94df605b5cbb494d/wxPython-4.1.0.tar.gz"
sha256 "2e2475cb755ac8d93d2f9335c39c0... | Ruby | Formula/wxpython.rb | maxim-belkin/homebrew-core | bsd-2-clause | 3,906 | 103 | codeparrot/github-code |
99c0d9140e33ee81fcf70ee366869ea8661591a416f95ed1c2fa31ed267cfc68 | //# recursion, implementation, strings, order
//# => Have a recursive function that creates all the files with a certain fixed number of digits
#include <algorithm>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <fstream>
#include <functional>
#inclu... | C++ | tc 160+/FoxAndMp3.cpp | ibudiselic/contest-problem-solutions | bsd-2-clause | 983 | 46 | codeparrot/github-code |
4f35ee25b8a6c81beae72b0171a27abf2e2f04111c799ec17ff4db912246f281 | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
/*++
Module Name:
gc.h
--*/
#ifndef __GC_H
#define __GC_H
#include "gcenv.h"
// !!!!!!!!!!!!!!!!!!!!!!!
// make sure you change the def in bcl\system\g... | C | src/SharpLang.Runtime/coreclr/gc/gc.h | xen2/SharpLang | bsd-2-clause | 2,370 | 95 | codeparrot/github-code |
11123001d1cea0bc0362fe3b6bf5105f9a9ee69e0d2745fb102e3b9df0c84e89 | <?php
#
# $Id: announcements.php,v 1.3 2007-04-06 16:09:03 dan Exp $
#
# Copyright (c) 1998-2003 DVL Software Limited
#
require_once($_SERVER['DOCUMENT_ROOT'] . '/../include/common.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/../include/freshports.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/../inclu... | PHP | www/branches/DesignContest/backend/announcements.php | lattera/freshports | bsd-2-clause | 6,855 | 239 | codeparrot/github-code |
2156df5ffa2b15c3d332f0c706b6c52182b9363769b8e6d3cc216dc56e521688 | // This code is in the public domain -- jim@tilander.org
#include <nvcore/nvcore.h>
#include <nvmath/Color.h>
#include <nvimage/Image.h>
#include "ColorSpace.h"
namespace nv
{
void ColorSpace::RGBtoYCoCg_R(Image* img)
{
const uint w = img->width();
const uint h = img->height();
for( uint y=0; y < h; y++ ... | C++ | deps/NVIDIATextureTools/src/nvimage/ColorSpace.cpp | FloodProject/flood | bsd-2-clause | 1,490 | 71 | codeparrot/github-code |
8e86afc044dc3883e3aea9b65dc281d8e8c029b2614ba2db398430f66d6b3289 |
var arr = [1, 2, 3, 4, 5, 6, 7];
var len = arr.length;
console.log(len);
arr.length = 10;
len = arr.length;
console.log(len);
arr[7] = 8;
arr[8] = 9;
arr[9] = 10;
var index = arr.indexOf(7); // index starts at 0, so the index of element 7 is 6;
console.log(index);
var subarr = arr.slice(0, 4);
console.log(subarr.l... | JavaScript | javascript/programming/0-introduction/1-array.js | weizhenwei/tech-docs-2016 | bsd-2-clause | 952 | 48 | codeparrot/github-code |
010734b4ab053d416095b5c6db0dc91c48927846e80010c0f952cd2a9ed140f5 | package mp
import (
"fmt"
"errors"
"os"
)
const (
ARG_NONE = iota
ARG_REG
ARG_MEM
ARG_IMM
)
const (
_ = iota
ALUIN_0 = -iota
ALUIN_1
)
const (
ALU_BOTH = iota - 1
ALU_SIMPLE
ALU_COMPLEX
)
const (
CALU_NOOP = iota
... | GO | asm/src/mp/mp.go | notti/dis_se | bsd-2-clause | 20,393 | 707 | codeparrot/github-code |
975bc170b64613898f402cea42178f9efeaf98db8eb222cd95b7b1f462f8e505 | //
// mqtt_connect.cpp
// Shan.MqttBroker
//
// Created by Sung Han Park on 2017. 4. 22..
// Copyright © 2017 Sung Han Park. All rights reserved.
//
#include <cctype>
#include "mqtt_connect.h"
mqtt_connect::mqtt_connect(const fixed_header& fh, shan::util::streambuf_ptr sb_ptr)
: fixed_header(fh) {
//////////////... | C++ | Shan.MqttBroker/Shan.MqttBroker/packet/mqtt_connect.cpp | shanpark/Shan.MqttBroker | bsd-2-clause | 5,652 | 167 | codeparrot/github-code |
ac80693bdd9cc7afb3d812131fa52988dfed899240b698208bc882d7861c61d8 | #ifndef __ENVIRE_CORE_GRAPHVIZ__
#define __ENVIRE_CORE_GRAPHVIZ__
#include <fstream> // std::ofstream
#include <envire_core/TransformTree.hpp>
#include <boost/graph/graphviz.hpp>
namespace envire { namespace core
{
/**@class Transform Writer
* Frame Graph Viz property writer for boost graphs
* */
t... | C++ | src/GraphViz.hpp | jhidalgocarrio/slam-envire_core | bsd-2-clause | 3,940 | 145 | codeparrot/github-code |
f29764bc9badaa4b15541e2c631a8fad757a68e747d0d5ec85fdc9349d5bfdcc | package org.sjpool;
import java.lang.reflect.Proxy;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.concurrent.*;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Naive implementation of a pool of JDBC connections.
*/
public class SimpleJdbcPool {
... | Java | src/main/java/org/sjpool/SimpleJdbcPool.java | joow/sjpool | bsd-2-clause | 4,082 | 137 | codeparrot/github-code |
ab40a350e09b02d3caab6f203537b26cf1cb8c7dd703766cd64e08552e8649f8 | /*
ID: ivan.bu1
PROG: fence9
LANG: C++
*/
#include <iostream>
#include <iterator>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <cctype>
#include <cstring>
using namespace std;
long long cross(long long x, long long y, long long xp, long long y... | C++ | USACO/solutions/fence9.cpp | ibudiselic/contest-problem-solutions | bsd-2-clause | 1,270 | 64 | codeparrot/github-code |
74e8b57bc6ee7cf793f34b23a8628ac16d591b3814a88f0cea597585f9cad593 | // This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-rest-ary-rest.case
// - src/dstr-binding/default/gen-method-dflt.template
/*---
description: Rest element containing a rest element (generator method (default parameter))
esid: sec-generator-function-definitions-runtime-s... | JavaScript | Jint.Tests.Test262/test/language/expressions/object/dstr-gen-meth-dflt-ary-ptrn-rest-ary-rest.js | sebastienros/jint | bsd-2-clause | 2,458 | 77 | codeparrot/github-code |
8917a89caf15f61f4fff416862f8ce6ba772a26fe127263c68af0418ea5bff50 | /* wvWare
* Copyright (C) Caolan McNamara, Dom Lachowicz, and others
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later vers... | C | _deprecated/modules/standard.lib.msword/wv-1.2.4/fld.c | Devronium/ConceptApplicationServer | bsd-2-clause | 7,923 | 299 | codeparrot/github-code |
b48a5a5b7d57376d6e656a7680ce369474b5299dad78524b3ed8e9bad5bee17e | <?php
require_once 'pdo.php';
class MockPDO extends PDO {
function __construct() {}
}
/**
* @backupGlobals disabled
* @backupStaticAttributes disabled
*/
class TestModelClasses extends PHPUnit_Framework_TestCase {
function testModelExecCallsDbPrepareAndExecute() {
$statement = 'sql statement';
$db = $th... | PHP | test/PdoTest.php | sweatje/paydown | bsd-2-clause | 2,637 | 90 | codeparrot/github-code |
adcecbdd0948b2dfe646c5214204087443d66ab054c35d05c43077f90e873501 | /*
* Copyright (C) 2012-2015, Juan Manuel Barrios <http://juan.cl/>
* All rights reserved.
*
* This file is part of P-VCD. http://p-vcd.org/
* P-VCD is made available under the terms of the BSD 2-Clause License.
*/
#ifndef EX_TEXT_H
#define EX_TEXT_H
#include "../pvcd.h"
#define USE_TEXT 1
#if USE_TEXT
/****... | C | p-vcd/p-vcd_lib/src/extraction/exText.h | juanbarrios/multimedia_tools | bsd-2-clause | 1,738 | 67 | codeparrot/github-code |
606c02b52418d8c523a9931ff1e68fcac126e06c0fbbc3691afb31b8901ac926 | // This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensource.org/lice... | C++ | dune/gdt/local/integrands/laplace-ipdg.hh | pymor/dune-gdt | bsd-2-clause | 18,763 | 386 | codeparrot/github-code |
1a44c8b9fa6dea6ddbf2eeb12cc7ddf3585cb58f16ae45df1e953e4d4bc91abf | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma once
#include <cassert>
#include <deque>
#include <utility>
#include <stdexcept>
#include <functional>
#include "compiler_check.hpp"
#include "collection_vie... | C++ | third_party/krabsetw/krabs/krabs/parser.hpp | google/orbit | bsd-2-clause | 14,823 | 432 | codeparrot/github-code |
97b62c20c6e9e92236963facad03b99815b33f3aef3864895596b78653bd329a | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "EnginePrivate.h"
#include "Engine/AssetUserData.h"
#include "Engine/WorldComposition.h"
#include "Net/UnrealNetwork.h"
#include "GameFramework/GameNetworkManager.h"
#include "SoundDefinitions.h"
#include "ParticleDefinitions.h"
#include "MessageLog... | C++ | Engine/Source/Runtime/Engine/Private/WorldSettings.cpp | PopCap/GameIdea | bsd-2-clause | 9,848 | 305 | codeparrot/github-code |
5d9d7c47caacb06f30a4150e4032ecf272fafae7e7e765bb765d045194b5f461 | {-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QLineEdit.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:25
Warning : this file is machine generated - do not... | Haskell | Qtc/Gui/QLineEdit.hs | keera-studios/hsQt | bsd-2-clause | 59,042 | 1,603 | codeparrot/github-code |
7ea19006192c35e224dc59fb31e4abbf4ba766a5d62df0114d7509c05712c5ab | package ec2
import "github.com/timob/javabind"
type ServicesEc2ModelDescribeReservedInstancesListingsRequestInterface interface {
AmazonWebServiceRequestInterface
// public void setReservedInstancesId(java.lang.String)
SetReservedInstancesId(a string)
// public java.lang.String getReservedInstancesId()
GetRes... | GO | com_amazonaws_services_ec2_model_DescribeReservedInstancesListingsRequest.go | timob/ec2 | bsd-2-clause | 13,359 | 356 | codeparrot/github-code |
7c0b057f081f5a5f60ac26f02d5c9beedb733747da435c6dfa68cc27329b6685 | # Author: Rojuienx <rojuinex@gmail.com http://github.com/rojuinex>
# Version: 0.1.0
# Date Created: December 28th, 2012
# Copyright (c) 2012, Rojuinex (See license agreement)
# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * #
# Created using Sam Hocevar's <sam@hocevar.net> Leafify Script a... | Python | leafify.py | Rojuinex/leafify | bsd-2-clause | 4,283 | 147 | codeparrot/github-code |
3f53313a6cbf92f90cdf58b237f70c9cf33296f2d953624aa8ff54b377b0c73e | <?php
// Read a paragraph of text and retain the line endings.
function JSONBindText(
&$p, $id, $table, $field, $element, $value,
$placeholder="Enter text", $return_html=FALSE,
$classes="textentry wide", $rows=-1, $cols=-1 ) {
global $_bound;
$fun_name='JSONText_'.$_bound;
$html=(
'<textar... | PHP | shreds/JSONText.php | h3rb/page | bsd-2-clause | 1,213 | 36 | codeparrot/github-code |
2393e3d3656e7527c195ab409d0dd1ef20153c1d3fdf5d9bd795158e2380266e | /*
Copyright (c) 2015, Alexander Thomas
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the follo... | Java | app/src/main/java/be/drlex/yabpmcounter/MainActivity.java | DrLex0/YABPMCounter | bsd-2-clause | 5,870 | 144 | codeparrot/github-code |
c609ac983e1027b362b35c6230a159b08e6c0b660dd72eb401c706890e8f8c4b | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function
import __builtin__
from os import environ, path, isatty, makedirs
from contextlib import closing
import shelve
import pickle
from anydbm import error as DBE... | Python | jbo.py | BenLubar/dag-jbo | bsd-2-clause | 27,367 | 843 | codeparrot/github-code |
c8ad74f19c857f4ce0a63c9d28c008b19da3c3388f467902a5596629f26062cc | package rados
/*
#cgo LDFLAGS: -lrados
#include "stdlib.h"
#include "rados/librados.h"
*/
import "C"
import (
"fmt"
"unsafe"
)
// Context represents a RADOS IO context for the pool Pool.
type Context struct {
Pool string
ctx C.rados_ioctx_t
}
// NewContext creates a new RADOS IO context for a given... | GO | context.go | mrkvm/rados.go | bsd-2-clause | 2,782 | 93 | codeparrot/github-code |
5efd3069311c97f2b87b8bac4af387e67193b9740d0b08beb388b5b8fa5d46a4 | //
// StoryListEntry.h
// Fanfiction Downloader
//
// Created by Torsten Kammer on 04.08.12.
// Copyright (c) 2012 Torsten Kammer. All rights reserved.
//
#import <Foundation/Foundation.h>
@class StoryChapter;
@class StoryID;
@class StoryOverview;
@interface StoryListEntry : NSObject
// Read initial values from... | C | Fanfiction Downloader/StoryListEntry.h | cochrane/Fanfiction-Downloader | bsd-2-clause | 1,541 | 50 | codeparrot/github-code |
02413efd23401a597ba393d68ea2cfb8737a7029d2f9d9baf08a9ec96c7b9ad6 | //
// go-sonos
// ========
//
// Copyright (c) 2012, Ian T. Richards <ianr@panix.com>
// 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 th... | GO | upnp/ContentDirectory.go | ianr0bkny/go-sonos | bsd-2-clause | 10,431 | 416 | codeparrot/github-code |
263cdcbdd46bbf723fac767324e311510f116b84f084f9017a18799436a507b3 | #ifndef GRAPH_UTIL_HPP
#define GRAPH_UTIL_HPP
#include <vector>
#include <stack>
#include <limits>
namespace graph_util
{
template<typename GraphT, typename F>
void visit_depth_first(const GraphT& graph, unsigned root, std::vector<bool>& visited, F after_recursion_callback)
{
std::stack<std::pair<... | C++ | graph_util.hpp | TheMarex/deberg | bsd-2-clause | 3,743 | 133 | codeparrot/github-code |
617cdbff4e1cfe7fa4cbf4a28fe4b983610b0501cb6eacdf7d3f0bdd28cba97d | // Copyright 2018 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/googletest/custom/gtest/internal/custom/stack_trace_getter.h"
#include <algorithm>
#include <iterator>
#include "base/check.h"
st... | C++ | third_party/googletest/custom/gtest/internal/custom/stack_trace_getter.cc | nwjs/chromium.src | bsd-3-clause | 3,260 | 79 | codeparrot/github-code |
96b6e3f6695ec158fae1d0f49a9d35784df53cf8950988dc93ed2b716e02b940 | package TAPLcomp2.fullsub
import scala.text.Document
import scala.text.Document._
// outer means that the term is the top-level term
object FullSubPrinter {
import TAPLcomp2.Print._
def ptyType(outer: Boolean, ty: Ty): Document = ty match {
case ty => ptyArrowType(outer, ty)
}
def ptyArrowType(outer: B... | Scala | Scala/Parser/src/TAPLcomp2/fullsub/syntax.scala | hy-zhang/parser | bsd-3-clause | 3,703 | 136 | codeparrot/github-code |
13900b0db96eac19e5c1623862553284201b85e364584937c6bfd91f49b7db75 | <?php
namespace ZfDeals\Controller;
use Zend\Mvc\Controller\AbstractController;
use Zend\Mvc\MvcEvent;
use Zend\Form\Form as Form;
use Zend\View\Model\ViewModel;
abstract class AbstractFormController extends AbstractController
{
protected $form;
public function __construct(Form $form)
{
$this->form = $form;
}... | PHP | module/ZfDeals/src/ZfDeals/Controller/AbstractFormController.php | crysthianophp/ZfDealsApp | bsd-3-clause | 1,258 | 71 | codeparrot/github-code |
984fe8ca4b1f10afe88283bbdf43b68c1d61a1bd427af37b603415cf167a5a60 | using System;
using System.Net;
using System.Text;
using com.esendex.sdk.http;
using com.esendex.sdk.rest;
using NUnit.Framework;
using Moq;
namespace com.esendex.sdk.test.rest
{
[TestFixture]
public class RestClientTests
{
internal class GetRestResourceContext : RestResource
{
... | C# | test/rest/RestClientTests.cs | James226/esendex-dotnet-sdk | bsd-3-clause | 10,941 | 348 | codeparrot/github-code |
2efe34d89f010fd41a5fc7008673a4616158639a82dfb84ec13cfc45734b1181 | # pure-Python Douglas-Peucker line simplification/generalization
#
# this code was written by Schuyler Erle <schuyler@nocat.net> and is
# made available in the public domain.
#
# the code was ported from a freely-licensed example at
# http://www.3dsoftware.com/Cartography/Programming/PolyLineReduction/
#
# the orig... | Python | src/movingup/utils/douglaspeucker.py | sunlightlabs/upwardly | bsd-3-clause | 2,902 | 88 | codeparrot/github-code |
d65c80c9daf11327a252c2c6baf7a1fb23f39b38014b9b06b23d31bb2742eb1a | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Orc Concepts</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="Orc Reference Manual">
<link rel="up" ... | HTML | doc/html/orc-concepts.html | genesi/orc | bsd-3-clause | 10,465 | 236 | codeparrot/github-code |
5cffeb8ec42b5b693f11e80ae56f3c7a9850b3008964bc3e9a407776fbfc6734 | // Copyright 2013 The Flutter 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 "flutter/shell/platform/windows/accessibility_bridge_delegate_win32.h"
#include "flutter/shell/platform/windows/flutter_platform_node_delegate_wi... | C++ | shell/platform/windows/accessibility_bridge_delegate_win32.cc | aam/engine | bsd-3-clause | 1,295 | 37 | codeparrot/github-code |
94f1ad3840d989eb101cf9d51ff1326c4330d98202c922bcd7475e827ca69261 | __author__ = 'mdavid'
from attrdict import AttrDict
import os
# Addressimo Configuration
config = AttrDict()
# General Setup
config.site_url = 'addressimo.netki.com'
config.cache_loader_process_pool_size = 4
config.cache_loader_blocktx_pool_size = 15
config.bip32_enabled = True
config.bip70_enabled = True
config.bip... | Python | addressimo/config.py | netkicorp/addressimo | bsd-3-clause | 2,378 | 74 | codeparrot/github-code |
e1e3fb056b81b037287f723f24d5493d830217b6c8d5cabe448671ee7a6827b9 | <?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel app\models\BasketSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('app', 'Baskets');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="container">
<div id="basket"... | PHP | views/basket/index.php | mmerzlyakov/tourbook | bsd-3-clause | 8,542 | 210 | codeparrot/github-code |
15e7a91bf3f168e228c6aa68654ec1a97ec637169b113aea102f15b197a8dc4c | /* -----------------------------------------------------------------------------
*
* (c) The GHC Team, 1994-2000.
*
* Heap printer
*
* ---------------------------------------------------------------------------*/
#include "PosixSource.h"
#include "Rts.h"
#include "rts/Bytecodes.h" /* for InstrPtr */
#include ... | C | rts/Printer.c | ilyasergey/GHC-XAppFix | bsd-3-clause | 29,877 | 1,148 | codeparrot/github-code |
ed847a0e906edb83ffc4844ecc5636737655b21283b3d03ea19ac9e65b40e68b | // 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 "ash/components/settings/cros_settings_names.h"
namespace ash {
const char kCrosSettingsPrefix[] = "cros.";
// All cros.accounts.* settings ar... | C++ | ash/components/settings/cros_settings_names.cc | scheib/chromium | bsd-3-clause | 26,250 | 573 | codeparrot/github-code |
6f89e1d39fa73e49d644daf743121d9023ba627cd8111db25d0ef0684cfe26e2 | <?php
namespace backend\controllers;
use Yii;
use common\models\News;
use common\models\NewsSearch;
use yii\behaviors\TimestampBehavior;
use yii\db\ActiveRecord;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\web\UploadedFile;
/**
* NewsController implements the CRUD ... | PHP | backend/controllers/NewsController.php | Butsya/yii-application | bsd-3-clause | 5,123 | 174 | codeparrot/github-code |
f907fc4b8fa41d9e107f825848df6cee5f60f0c7c34079cb331a6a3c98a9c9d0 | /*
* Copyright 2014, 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... | Java | stub/src/main/java/io/grpc/stub/ServerCalls.java | anuraaga/grpc-java | bsd-3-clause | 13,343 | 415 | codeparrot/github-code |
da817c47edc76fe8a8e909ba29cd9a67ae19ac1a3529bfbbd616f56dc9ecdecc | //__________________________________________________________________________________//
// //
// This program is free software: you can redistribute it and/or modify //
// it under the terms of the 3-clause BSD license. ... | C | include/ccFont/ccFont.h | tversteeg/ccFont | bsd-3-clause | 2,493 | 77 | codeparrot/github-code |
6f10d60d83a6f800be3bd22fbbd1bcad6f62e72628663908bf8a7d13f003bb30 | <?php defined('SYSPATH') or die('No direct script access.');
class Plussia_Step_1 extends Plussia_Step {
public static function canAccess() {
$user = Plussia_Dispatcher::getUser();
if(!$user) return false;
return true;
}
public function validate($data) {
if(isset($data['ca... | PHP | application/classes/plussia/step/1.php | mizarlist/pararu | bsd-3-clause | 1,540 | 47 | codeparrot/github-code |
1b55f124d4086c0d0943704b98f19f7921331b7d4d35f1485577ef9aa01f66b2 | <?php
require(__DIR__ . '/url-rules.php');
$params = array_merge(
require(__DIR__ . '/../../common/config/params.php'),
require(__DIR__ . '/../../common/config/params-local.php'),
require(__DIR__ . '/params.php'),
require(__DIR__ . '/params-local.php')
);
return [
'id' => 'app-backend',
'baseP... | PHP | backend/config/main.php | Winkelor/yii2store | bsd-3-clause | 5,949 | 163 | codeparrot/github-code |
274077b29e33ae204612bc73be925eebe50afa9d952d3c4ab06c9f09a7328b86 | /**
* @jest-environment node
*/
import createWorker from './worker-executor';
function mockWorker({ init, postMessage, terminate } = {}) {
global.Worker = jest.fn(function () {
setImmediate(
(init && init(this)) ||
(() =>
this.onmessage && this.onmessage({ data: { type: 'contentLoaded'... | JavaScript | client/src/templates/Challenges/utils/worker-executor.test.js | raisedadead/FreeCodeCamp | bsd-3-clause | 7,552 | 240 | codeparrot/github-code |
7c4ac031c8814c150dc1872e85ae13dde2e8b27a1819b8d316703f24043d61ae | /*
* Copyright (C) 2004 Joe Walnes.
* Copyright (C) 2006, 2007 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
* style license a copy of which has been included with this distribution in
* the LICENSE.txt file.
*
* Created on 03. April 2004 b... | Java | xstream/src/test/com/thoughtworks/xstream/core/ReferenceByXPathMarshallingStrategyTest.java | Groostav/xstream | bsd-3-clause | 9,563 | 252 | codeparrot/github-code |
ca70ad81b442a9bc0b88c1bb34672da178e54a811640305a1b6508dcfc351719 | from django.db import models
from django.conf import settings
from django.db.models import permalink
from django.contrib.auth.models import User
from django.utils.translation import ugettext as _
from django.contrib.comments.models import Comment
from django.contrib.contenttypes.generic import GenericRelation
class Ve... | Python | src/issues/models.py | myles/django-issues | bsd-3-clause | 3,687 | 121 | codeparrot/github-code |
69dce3abc650cf350ac2c287db1b4ba34f251b1040ec05a3bd2b766d812cf2a4 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package gov.hhs.fha.nhinc.docretrieve.nhin;
import gov.hhs.fha.nhinc.auditrepository.AuditRepositoryDocumentRetrieveLogger;
import gov.hhs.fha.nhinc.auditrepository.AuditRepositoryLogger;
import gov.hhs.fha.nhinc.auditr... | Java | Product/Production/Services/DocumentRetrieveCore/src/main/java/gov/hhs/fha/nhinc/docretrieve/nhin/InboundDocRetrieveStrategyImpl.java | AurionProject/Aurion | bsd-3-clause | 7,276 | 182 | codeparrot/github-code |
d4bc627614600c0248fbfaaf147ecc517e190b14a8503c199746f6d90d0d5849 | """The scaled dot-product attention mechanism defined in Vaswani et al. (2017).
The attention energies are computed as dot products between the query vector
and the key vector. The query vector is scaled down by the square root of its
dimensionality. This attention function has no trainable parameters.
See arxiv.org/... | Python | neuralmonkey/attention/scaled_dot_product.py | ufal/neuralmonkey | bsd-3-clause | 15,588 | 400 | codeparrot/github-code |
4214a9328f0bd57914b775ced8a328f2d970d1c0c7086017ba44e499fc9d456d | // 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 "ash/common/wm/overview/window_selector.h"
#include <algorithm>
#include <functional>
#include <set>
#include <utility>
#include <vector>
#incl... | C++ | ash/common/wm/overview/window_selector.cc | danakj/chromium | bsd-3-clause | 27,549 | 723 | codeparrot/github-code |
15f740d1e57c65ae99c524ba3a45e463ab6b05e9bf7602e5fd45e7b45d1743d8 | // 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/tabs/tabs_api.h"
#include <algorithm>
#include <limits>
#include <vector>
#include "apps/shell_window.h"
#in... | C++ | chrome/browser/extensions/api/tabs/tabs_api.cc | cvsuser-chromium/chromium | bsd-3-clause | 68,821 | 2,075 | codeparrot/github-code |
4653e9978716ebf19f3a02dfd22987a6456880561e3f12b47c541169ce7d56c9 | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
from django.template.loader import render_to_string
from datetime import datetime, timedelta
from apps.reports.models import Case
from apps.hq.utils import get_dates
import logging
'''Report file for custom Pathfinder reports'''
# see mvp.py for an explanatio... | Python | apps/reports/custom/pathfinder.py | commtrack/temp-aquatest | bsd-3-clause | 12,361 | 285 | codeparrot/github-code |
984741792fb3fc33f215765eb24333770134dcb5a5eb0d19719f4b155cf06de3 | # encoding: utf-8
# Useful decorators
from functools import wraps
from fabric.api import *
# These variables must be defined in the actual fabfile.py for the proxy decorators:
# env.proxy_server = 'proxy.com.br' Address of the proxy server intermediating the executation
# env.proxy_home = '/home/me/fabric' Lo... | Python | fabmanager/decorators.py | dalembertian/fabmanager | bsd-3-clause | 3,353 | 82 | codeparrot/github-code |
802934ca9980c8064ab7504d8cb51bd01d881faa52e07e703472ce9db1b80045 | <?php
/**
* Created by PhpStorm.
* User: ervin
* Date: 29.03.2017
* Time: 21:40
*/
namespace Admin\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="static_pages_lng")
*/
class StaticPageLng extends AdminEntity {
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Colum... | PHP | module/Admin/src/Entity/StaticPageLng.php | edrenchev/cityit | bsd-3-clause | 1,554 | 100 | codeparrot/github-code |
cfcdff7de1aec9a3669f5e4e6a1aa82e2e1fb323193306607828012f50022a5c | <dom-module id="forex-trade-detail">
<template>
<style is="custom-style">
paper-card
{
width:320px;
}
paper-icon-button.small
{
width: 32px;
height: 32px;
}
.sessioninfo
... | HTML | lib/forex_trade_detail.html | emandere/forex | bsd-3-clause | 2,597 | 82 | codeparrot/github-code |
76f3e0852de70188228fc0ea8aca48834eeb5fa95efb89d75d1790062c26be62 | \title{\bf Detectors}
\section{Basics \& Nomenclature}
Modern astronomical detectors come in several varieties depending on
wavelength and use case. The traditional detector introduced in the
1800s, the photographic plate, is too inefficient ($\sim$ 5\%) and too
inconvenient to convert into digital form to be of use ... | TeX | tex/detectors-text.tex | blanton144/exex | bsd-3-clause | 12,459 | 258 | codeparrot/github-code |
b96c3c71feb10e72ae2d4ee4e045cc73a75c5312375965e8dd1b1bf8bfda1f05 |
//------------------------------------------------------------------------------
// GB_AxB: hard-coded C=A*B and C<M>=A*B
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2018, All Rights Reserved.
// http://suitesparse.com See ... | C | SuiteSparse/GraphBLAS/Source/Generated/GB_AxB__times_lxor_int8.c | jlblancoc/suitesparse-metis-for-windows | bsd-3-clause | 8,234 | 279 | codeparrot/github-code |
fc6a229ab607875b909ff8a79b7ae9f7334c860d3984cbe25e26ec25abaf4b75 | // Copyright (c) 2011 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/sync/js_sync_manager_observer.h"
#include <cstddef>
#include "base/logging.h"
#include "base/values.h"
#include "chrome/bro... | C++ | chrome/browser/sync/js_sync_manager_observer.cc | Crystalnix/house-of-life-chromium | bsd-3-clause | 4,177 | 121 | codeparrot/github-code |
1fcdfed735ea388b93498302d169391173813db3383c5be69a6c145ddca63730 | <?php
/**
* Created by PhpStorm.
* User: mracu
* Date: 8/22/14
* Time: 10:47 AM
*/
namespace Album\Model;
use Zend\InputFilter\InputFilter;
use Zend\InputFilter\InputFilterAwareInterface;
use Zend\InputFilter\InputFilterInterface;
class Genre implements InputFilterAwareInterface
{
public $id;
public $na... | PHP | module/Album/src/Album/Model/Genre.php | Zbintiosul/zf2-tutorial | bsd-3-clause | 1,868 | 74 | codeparrot/github-code |
737b2c1d38762ad247b1215854ba27ba113fb797e12aeab86e7c4c29e8bd25ad | //
// Blackfriday Markdown Processor
// Available at http://github.com/russross/blackfriday
//
// Copyright © 2011 Russ Ross <russ@russross.com>.
// Distributed under the Simplified BSD License.
// See README.md for details.
//
//
// Functions to parse inline elements.
//
package blackfriday
import (
"bytes"
)
// ... | GO | github.com/russross/blackfriday/inline.go | wickedchicken/blarg | bsd-3-clause | 18,043 | 952 | codeparrot/github-code |
c16c8043b8bd146e3cb37a7db4128086032624d38127f78d582edbe17de603e4 | #include <gflags/gflags.h>
DEFINE_string(cluster_members, "", "cluster members , e.g. abc.com:1234,def.com:3456");
DEFINE_int32(server_id, 1, "the offset in cluster members of this node");
DEFINE_string(ins_data_dir, "data", "local directory which store pesistent information");
DEFINE_string(ins_binlog_dir, "binlog", ... | C++ | server/flags.cc | sdgdsffdsfff/ins | bsd-3-clause | 2,495 | 37 | codeparrot/github-code |
4e2ae105e00409b7177e95413df884d9f6ddcccad7e62ea45f23e36797450bdf | package org.hisp.dhis.analytics;
/*
* Copyright (c) 2004-2016, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copy... | Java | dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/AnalyticsUtils.java | minagri-rwanda/DHIS2-Agriculture | bsd-3-clause | 9,410 | 226 | codeparrot/github-code |
bcbf98a3d8b599be8e5cc594e399817f4828e23f297677ed4abfabc2994ba184 | {-# LANGUAGE BangPatterns #-}
module AI.HMM.Type where
import qualified Data.Vector as V
import qualified Data.Vector.Unboxed as U
import qualified Data.Vector.Generic as G
import Numeric.LinearAlgebra.HMatrix
import AI.Function
-- constant: log (2*pi)
m_log_2_pi :: Double
m_log_2_pi = 1.8378770664093453
-- | multi... | Haskell | src/AI/HMM/Type.hs | kaizhang/HMM | bsd-3-clause | 2,750 | 88 | codeparrot/github-code |
f891517b96dcf46f26b98dda1a7bab4fe79fd35933e41384c7d17468afadaddc | <?php
namespace AlbumRest\Controller;
use Zend\Mvc\Controller\AbstractRestfulController;
use Album\Model\Album; // <-- Add this import
use Album\Form\AlbumForm; // <-- Add this import
use Zend\View\Model\JsonModel;
class AlbumRestController extends AbstractRestfulController
{
protected $albumTabl... | PHP | module/AlbumRest/src/AlbumRest/Controller/AlbumRestController.php | gstearmit/Zf2Unitest | bsd-3-clause | 5,150 | 194 | codeparrot/github-code |
afce1065fad5aa41687f193f4efb21839508da04ea3586732aff2ca40e957ce8 | /**
* T'MediaArt library for JavaScript
* - MajVj extension - frame plugin - equalizer -
* @param options options (See MajVj.prototype.create)
*/
MajVj.frame.equalizer = function (options) {
this._laser = options.mv.create('frame', 'laser', {
draw: this._draw.bind(this),
width: options.... | JavaScript | ext/mv/frame/equalizer/main.js | toyoshim/tmalib | bsd-3-clause | 2,379 | 79 | codeparrot/github-code |
34bccd3e292aa854b8919c7daea63ab7365c1e9c00908674e1b2072e475210c1 | package org.motechproject.outbox.server;
import org.motechproject.event.MotechEvent;
import org.motechproject.event.listener.annotations.MotechListener;
import org.motechproject.ivr.exception.CallInitiationException;
import org.motechproject.ivr.service.contract.CallRequest;
import org.motechproject.ivr.service.contra... | Java | modules/outbox/outbox/src/main/java/org/motechproject/outbox/server/OutboxExecutionHandler.java | harshadura/platform-communications | bsd-3-clause | 4,963 | 136 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.