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 |
|---|---|---|---|---|---|---|---|---|
d9024f33574470a9609d3f58fe52ccaf14dcbc892ace5a761f1adea0e3082cb3 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import urllib
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
from jp.ac.kyoto_su.aokilab.dragon.mvc.model import OpenGLModel
from jp.ac.kyoto_su.aokilab.dragon.mvc.view import *
from jp.ac.kyoto_su.aokil... | Python | jp/ac/kyoto_su/aokilab/dragon/example_model/example.py | frederica07/Dragon_Programming_Process | bsd-2-clause | 6,768 | 207 | codeparrot/github-code |
52885aeac135883c05b7f92dcb4c7557fd02b8c2aebb15cad1f6f7e39d7388f0 | /*
Copyright (c) 2012, William Magato
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 f... | C | src/sys/glibc-2.17/sysdeps/llamaos/export/lseek64.c | wilseypa/llamaOS | bsd-2-clause | 2,517 | 77 | codeparrot/github-code |
760661e55fc29d9e5567fd87819131e66eafa3310f63830d511c49c799fa7877 | /*
* Copyright 2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | gradle/gradle-2.1/src/core/org/gradle/initialization/ProjectDirectoryProjectSpec.java | tkmnet/RCRS-ADF | bsd-2-clause | 2,457 | 72 | codeparrot/github-code |
6a0c83eeaefae6134e8a5a4aa906ae5aa90c51023aec51f2e1b726b1e29a5ec9 | // Copyright 2014 David Miller. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package sequtil
import (
"errors"
"github.com/dmiller/go-seq/iseq"
"github.com/dmiller/go-seq/murmur3"
//"fmt"
"math"
"reflect"
)
// Hash returns a hash c... | GO | sequtil/hash.go | dmiller/go-seq | bsd-2-clause | 3,082 | 117 | codeparrot/github-code |
53beb6806a57879969801b78a27c334b6716d46ac5934c9cb92eab02c2e05ffa | /*
* Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* not... | C | html/canvas/CanvasRenderingContext2D.h | applesrc/WebCore | bsd-2-clause | 15,678 | 403 | codeparrot/github-code |
130176f7786f67fd9f043ea8b033dc17882ae3ba378cb1b6aecaad041974cad1 | #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "vm_strings.h"
#include <assert.h>
String *String_alloc(size_t length) {
String *p = (String *)calloc(1, sizeof(String) + (length+1) * sizeof(char));
p->length = length;
return p;
}
String *String_new(char *orig) {
String *s = String_alloc(strlen... | C | src/vm_strings.c | USF-CS345-starterkits/parrt-bytecode | bsd-2-clause | 1,852 | 91 | codeparrot/github-code |
7d700aa5301251eed7fc6443e7c1d6ef96236a424880ec4070e47d49ef2cbf8d | # Author: Nick Raptis <airscorp@gmail.com>
"""
Module for listing commands and help.
"""
from basemodule import BaseModule, BaseCommandContext
from alternatives import _
class HelpContext(BaseCommandContext):
def cmd_list(self, argument):
"""List commands"""
arg = argument.lower()
index ... | Python | src/modules/help.py | nickraptis/fidibot | bsd-2-clause | 2,615 | 78 | codeparrot/github-code |
ae9fc578feed70bee4ab5d0c08ad3da408cfc832bb75a8e01116e7a4443f5b55 | <?php
/**
* MtMail - e-mail module for Zend Framework
*
* @link http://github.com/mtymek/MtMail
* @copyright Copyright (c) 2013-2017 Mateusz Tymek
* @license BSD 2-Clause
*/
namespace MtMail\Factory;
use Interop\Container\ContainerInterface;
use MtMail\ComposerPlugin\DefaultHeaders;
class DefaultHeaders... | PHP | src/Factory/DefaultHeadersPluginFactory.php | mtymek/MtMail | bsd-2-clause | 817 | 31 | codeparrot/github-code |
0e3b7ef995ff35e72a48f3c9ae11148dfa8331af56a75229259cb1dba609fdfb | /*****************************************************************************************
*
* Portable classes for the HSFC
* These are (semi-)portable representations of a state that can be serialised
* and loaded between any HSFC instances loaded with the same GDL (we hope!!!).
*
******************************... | C | cpphsfc/hsfc/portable.h | AbdallahS/ggp-hsfc | bsd-2-clause | 11,417 | 335 | codeparrot/github-code |
425204cbcd6c18770243466f6762bb031459381af0981f56ce5bba7dc35c3fb6 | L.CommunistWorker = L.AbstractWorker.extend({
statics: {
// number of web workers, not using web workers when falsy
NUM_WORKERS: 2
},
initialize: function (workerFunc) {
this.workerFunc = workerFunc;
},
onAdd: function (map) {
this._workers = L.CommunistWorker.crea... | JavaScript | CommunistWorker.js | nrenner/leaflet-tilelayer-vector | bsd-2-clause | 1,976 | 66 | codeparrot/github-code |
7511b2589105d143c129257540cbb995f54b6450d34cd32d445b33e802332ad0 | /*
* Copyright (c) 2009-2010 jMonkeyEngine
* 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... | Java | sdk/jme3-core/src/com/jme3/gde/core/filters/impl/JmeWaterFilter.java | chototsu/MikuMikuStudio | bsd-2-clause | 3,025 | 88 | codeparrot/github-code |
d42fe2417281d2ad00fa1c3f77cd19073ddea51539f42599943b40d2e5fd4e3a | <?php
namespace Nether\Object\Meta;
use Attribute;
use Nether\Object\Prototype\AttributeInterface;
use Nether\Object\Prototype\PropertyAttributes;
#[Attribute(Attribute::TARGET_PROPERTY)]
class PropertyOrigin
implements AttributeInterface {
/*//
@date 2021-08-05
@related Nether\Object\Prototype::__Construct
when att... | PHP | src/Nether/Object/Meta/PropertyOrigin.php | netherphp/object | bsd-2-clause | 753 | 38 | codeparrot/github-code |
520956b9311a491c99a6c0140dd534fc88d8fbcc30b0dc0f31d0dd61a94bb870 | #!/usr/bin/perl
#
# Adduser script
# Rootnode, http://rootnode.net
#
# Copyright (C) 2012 Marcin Hlybin
# All rights reserved.
#
# Get user data from signup database
# Create PAM+Satan user
# Insert user data into adduser database
# Assign servers to user
# Create containers with lxc-add remote script
use warnings;
u... | Perl | adduser/adduser.pl | ingeniarius/lxc-rootnodes | bsd-2-clause | 9,109 | 312 | codeparrot/github-code |
78da9118577744254f9cb38e357f8c1419016c8e8d0d6179c56be09b87ad6e02 | /**
* Copyright (c) 2013, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An
* additional grant of patent rights can be found in the PATENTS file in
* the same directory.
*/
var as... | JavaScript | lib/leap.js | jlongster/unwinder | bsd-2-clause | 5,549 | 250 | codeparrot/github-code |
7b1080557a6841954e01449792b53150aebef5b218e36c08436af66e88e47fa2 | {--
Copyright (c) 2014-2020, Clockwork Dev Studio
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 a... | Haskell | Arguments.hs | clockworkdevstudio/Idlewild-Lang | bsd-2-clause | 5,916 | 152 | codeparrot/github-code |
05d367a2a605c7eaabf3ce83a6e04274acd583842fe73c5a885e07323257a4f8 | #ifndef AOS_COMMON_STL_MUTEX_H_
#define AOS_COMMON_STL_MUTEX_H_
#include <mutex>
#include "aos/linux_code/ipc_lib/aos_sync.h"
#include "aos/common/logging/logging.h"
#include "aos/common/type_traits.h"
#include "aos/common/macros.h"
namespace aos {
// A mutex with the same API and semantics as ::std::mutex, with th... | C | aos/common/stl_mutex.h | comran/SpartanBalloon2016 | bsd-2-clause | 3,899 | 145 | codeparrot/github-code |
3cfd614297e2ecfb706a071d7293cfce26d9fd998a93646db55ecf3f0fe315fd | {% extends "fieldsight/fieldsight_base.html" %}
{% load i18n staticfiles %}
{% load filters %}
{% block content %}
<div id="main-content" class="padding">
{% if messages %}
{% for message in messages %}
<div class="alert alert-{% if message.tags %}{{ message.tags }}{% else %}info{% endif %}">
<s... | HTML | onadata/apps/fieldsight/templates/fieldsight/site_list.html | awemulya/fieldsight-kobocat | bsd-2-clause | 12,702 | 266 | codeparrot/github-code |
97156fb93a6ddd475b0e08404499dbc612397606bd1de0525cca42e2428bc0d1 | var http = require('http')
var url = require('url')
var path = require('path')
var sleep = require('sleep-ref')
var Router = require("routes-router")
var concat = require('concat-stream')
var ldj = require('ldjson-stream')
var manifest = require('level-manifest')
var multilevel = require('multilevel')
var extend = requ... | JavaScript | lib/rest-handler.js | giantoak/dat | bsd-2-clause | 11,585 | 390 | codeparrot/github-code |
4452b6b669cf5440afd925e44c414394a8e235e8853c7b3735968401a0f7dbe3 |
package com.glob3mobile.vectorial.processing;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import com.glob3mobile.utils.Progress;
import com.glob3mobile.vectorial.lod.PointFeatureLODStorage;
import com.glob3mobile.vectorial.lod.mapd... | Java | tools/vectorial-streaming/src/com/glob3mobile/vectorial/processing/LODPointFeaturesPreprocessor.java | octavianiLocator/g3m | bsd-2-clause | 5,344 | 167 | codeparrot/github-code |
de859abc7cb1b0184a59d654f7934a33f8eb86ccc635c38a1d65bcc0cb8d5b80 | // Copyright (C) 2018 Andrew Paprocki. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-date.parse
es6id: 20.3.3.2
description: >
Date.parse return value is limited to specified time value maximum range
info: |
Date.parse ( string )
parse interprets the... | JavaScript | Jint.Tests.Test262/test/built-ins/Date/parse/time-value-maximum-range.js | sebastienros/jint | bsd-2-clause | 1,673 | 42 | codeparrot/github-code |
10187231db24cd3ee2c3ce565f403eb62877d2bf9229610dbe29807a2df06f77 | #include <catch.hpp>
#include <rapidcheck/catch.h>
using namespace rc;
TEST_CASE("scaleInteger") {
prop("for uint32_t, equal to naive way",
[] {
const auto x = *gen::arbitrary<uint32_t>();
const auto size = *gen::nonNegative<int>();
RC_ASSERT(gen::detail::scaleInteger(x, size) ==
... | C++ | test/gen/detail/ScaleIntegerTests.cpp | unapiedra/rapidfuzz | bsd-2-clause | 1,493 | 46 | codeparrot/github-code |
5b42d7a8eaee34a7a445ea788e5d33a8ed8b28241ce10ffd3c783ddb09007ce4 | #ifndef EXTRACTION_WAY_HPP
#define EXTRACTION_WAY_HPP
#include "extractor/guidance/road_classification.hpp"
#include "extractor/travel_mode.hpp"
#include "util/guidance/turn_lanes.hpp"
#include "util/typedefs.hpp"
#include <string>
#include <vector>
namespace osrm
{
namespace extractor
{
namespace detail
{
inline vo... | C++ | include/extractor/extraction_way.hpp | frodrigo/osrm-backend | bsd-2-clause | 3,763 | 127 | codeparrot/github-code |
d5a172868e6a4b53dc8fe6fdca1121c8cb5d8cd9632c5e83fbae0f2f2ab63ef8 | #include <math.h>
#include "evas_common.h"
#include "evas_blend_private.h"
typedef struct _RGBA_Span RGBA_Span;
typedef struct _RGBA_Edge RGBA_Edge;
typedef struct _RGBA_Vertex RGBA_Vertex;
struct _RGBA_Span
{
EINA_INLIST;
int x, y, w;
};
struct _RGBA_Edge
{
double x, dx;
int i;
};
struct _RGBA_Vertex
... | C | src/lib/engines/common/evas_polygon_main.c | nashidau/Evas-Next | bsd-2-clause | 7,727 | 294 | codeparrot/github-code |
c170266fe0e39be72177c2f37df6599b2b25970a4e2e0ca28b3a61081663b1c9 | /* 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 | src/xen/hypercall.c | xenserver/win-xenbus | bsd-2-clause | 4,901 | 169 | codeparrot/github-code |
a7f201aea937f364db601cbb73e5c591b04f06036dd601c40a5707eac5846f3f | var crypto = require('crypto');
var Canvas = require('canvas');
var _ = require('lodash');
var bu = require('./bufutil');
var fmt = require('util').format;
var unpack = require('./unpack');
var bright = require('./bright');
function fprint(buf, len) {
if (len > 64)
throw new Error(fmt("sha512 can only generate 64B ... | JavaScript | lib/index.js | sehrgut/node-retricon | bsd-2-clause | 3,668 | 164 | codeparrot/github-code |
b647868dd36272743809198660b9e2c830364d0060c57c20557bdbfe6f4712c6 | package test
import (
"github.com/tidepool-org/platform/config"
"github.com/tidepool-org/platform/log"
"github.com/tidepool-org/platform/version"
)
type Provider struct {
VersionReporterInvocations int
VersionReporterStub func() version.Reporter
VersionReporterOutputs []version.Reporter
VersionRepor... | GO | application/test/provider.go | tidepool-org/platform | bsd-2-clause | 3,861 | 156 | codeparrot/github-code |
e75337f139ed982f0b42201d2efc256ee267c5709e20b8d84bb7a0acc2cfe324 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/epoll.h>
#include <arpa/inet.h>
#define BUFF_SIZE 1024
int main(int argc, const char *argv[])
{
int i = 0;
char buff[BUFF_SIZE];
ssize_t msg_len = 0;
int srv_fd ... | C | task03/epoll/main.c | AdamWolanski/internship-tasks | bsd-2-clause | 2,905 | 113 | codeparrot/github-code |
3f4bf8be6436531029368b515b72adfa5eb424f8fce34c963bc0b1348bdbdfdd | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
namespace Mkko.Configuration
{
[ConfigurationCollection(typeof(ExecutionEnvironmentSettings), AddItemName = "executionEnvironment", CollectionType = ConfigurationElementCollectionType.BasicMap)]
p... | C# | AnyLogAnalyzerCore/Configuration/ExecutionEnvironmentCollection.cs | mk83ko/any-log-analyzer | bsd-2-clause | 1,001 | 33 | codeparrot/github-code |
6b96800bfeca79dcb0df993894e2dd1bbee8c5b844c78b7923e51711a3c4409b | #region Copyright notice
/**
* Copyright (c) 2018 Samsung Electronics, 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 co... | C# | project/dexter-cs/DexterCS/Src/ProjectAnalysisConfiguration.cs | Samsung/Dexter | bsd-2-clause | 2,314 | 61 | codeparrot/github-code |
7abf95ed424cef67ed6ca8fdcd5bccf3464f20219e34094428087f1b30903e25 | class Opusfile < Formula
desc "API for decoding and seeking in .opus files"
homepage "https://www.opus-codec.org/"
url "https://archive.mozilla.org/pub/opus/opusfile-0.11.tar.gz"
sha256 "74ce9b6cf4da103133e7b5c95df810ceb7195471e1162ed57af415fabf5603bf"
revision 1
bottle do
cellar :any
rebuild 1
... | Ruby | Formula/opusfile.rb | edporras/homebrew-core | bsd-2-clause | 2,016 | 66 | codeparrot/github-code |
2e67a5f01529ae1a0d8ad57f392e310811c1d51fdfc02041461984ad2a0d9818 | /*
* Copyright 2016 Skynav, Inc. All rights reserved.
* Portions Copyright 2009 Extensible Formatting Systems, Inc (XFSI).
*
* 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 c... | Java | ttt-ttv/src/main/java/com/xfsi/xav/validation/images/jpeg/JpegInputStream.java | skynav/ttt | bsd-2-clause | 3,929 | 103 | codeparrot/github-code |
ba40cd205563b66f017c40de3c848fb8e336f4249e2de2025a3e6972e8dad2b8 | /*
Copyright (c) 2014, Lars Brubaker
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 following ... | C# | PolygonMesh/Processors/FaceBspTree.cs | jlewin/agg-sharp | bsd-2-clause | 8,877 | 270 | codeparrot/github-code |
6ee00670cf6322a3d2ecd1bf4ca9acafac241d75d51b877ca808673f7179649e | using System;
using System.Reflection;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace LabVIEW_CLI
{
class Program
{
static bool connected = false;
static bool stop = false;
static int Main(string[] args)... | C# | C Sharp Source/LabVIEW CLI/Program.cs | rose-a/LabVIEW-CLI | bsd-2-clause | 7,350 | 212 | codeparrot/github-code |
a5437196a13777895073f667339f13f005246e094998613aba2950bd083833de | /*
* Ferox, a graphics and game library in Java
*
* Copyright (c) 2012, Michael Ludwig
* 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 t... | Java | ferox-math/src/main/java/com/ferox/math/bounds/Frustum.java | geronimo-iia/ferox | bsd-2-clause | 28,685 | 717 | codeparrot/github-code |
d0ce52309311bc4c5cdc889eb7706eb0b21f3989d4c398cf9b4f6a6606faee1f | module Convert.LRChirotope where
-- standard modules
import Data.List
import qualified Data.Map as Map
import Data.Maybe
import qualified Data.Set as Set
-- local modules
import Basics
import Calculus.FlipFlop
import Helpful.General
--import Debug.Trace
{--------------------------------------------------------------... | Haskell | src/Convert/LRChirotope.hs | spatial-reasoning/zeno | bsd-2-clause | 1,839 | 56 | codeparrot/github-code |
956efc56e81c1a020f62755ebfa2761853feab8ca01189323b1b92030372dfa8 | package cocoonClient.Panels;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JScrollPane;
import javax.... | Java | Cocoon/src/cocoonClient/Panels/StatusPanel.java | hydai/Cocoon | bsd-2-clause | 3,463 | 105 | codeparrot/github-code |
e40a8174876a4756c4120682d12feb5925bd14aa1b970b503655137d016fc868 | package de.lman;
import de.lman.engine.Colors;
import de.lman.engine.Game;
import de.lman.engine.InputState;
import de.lman.engine.Keys;
import de.lman.engine.Mouse;
import de.lman.engine.math.Mat2f;
import de.lman.engine.math.Scalar;
import de.lman.engine.math.Transform;
import de.lman.engine.math.Vec2f;
import de.lm... | Java | lman/src/de/lman/Leverman.java | f1nalspace/leverman-devlog | bsd-2-clause | 11,040 | 375 | codeparrot/github-code |
9850290c2da6839b8dd9c8a416a1132393c683988b1f068726e8ca21ad36948e | package org.jvnet.jaxb2_commons.plugin.mergeable;
import java.util.Arrays;
import java.util.Collection;
import javax.xml.namespace.QName;
import org.jvnet.jaxb2_commons.lang.JAXBMergeStrategy;
import org.jvnet.jaxb2_commons.lang.MergeFrom2;
import org.jvnet.jaxb2_commons.lang.MergeStrategy2;
import org.jvnet.jaxb2_c... | Java | basic/src/main/java/org/jvnet/jaxb2_commons/plugin/mergeable/MergeablePlugin.java | highsource/jaxb2-basics | bsd-2-clause | 10,727 | 319 | codeparrot/github-code |
8b245af675d5480617d42bb0d21e7b64ea28e866969b06526c6dc303d2b5190d | using System;
using System.Collections.Generic;
using System.Drawing;
using DevExpress.XtraBars;
namespace bv.winclient.Core.TranslationTool
{
public partial class PropertyGrid : BvForm
{
public ControlDesigner SourceControl { get; private set; }
public ControlModel Model { get; pr... | C# | EIDSS v6.1/bv.winclient/Core/TranslationTool/PropertyGrid.cs | EIDSS/EIDSS-Legacy | bsd-2-clause | 4,670 | 157 | codeparrot/github-code |
f18e65cfac914f173595b245209c58db128b660958c6322f9cbc6bab252a4b2e | <?php
namespace SilverShop\ORM\FieldType;
use SilverShop\Extension\ShopConfigExtension;
use SilverStripe\Core\Convert;
use SilverStripe\ORM\FieldType\DBVarchar;
class ShopCountry extends DBVarchar
{
public function __construct($name = null, $size = 3, $options = [])
{
parent::__construct($name, $size... | PHP | src/ORM/FieldType/ShopCountry.php | hpeide/silverstripe-shop | bsd-2-clause | 819 | 38 | codeparrot/github-code |
94a42f70756335f6c12c5dff6a945f3ab33a9702baee6d526ab52977372f8c74 | /*
* Copyright 2013 Toshiyuki Takahashi
*
* 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 lis... | Scala | src/main/scala/com/github/tototoshi/slick/converter/JodaSqlTypeCoverter.scala | tototoshi/slick-joda-mapper | bsd-2-clause | 3,374 | 98 | codeparrot/github-code |
8ce2e6f000e2ebdac84d9464ee50b06b56d1c47c4de7e290c6a453d6708c3557 | # frozen_string_literal: true
require_relative '../helpers/load_file'
module WavefrontCli
module Subcommand
#
# Stuff to import an object
#
class Import
attr_reader :wf, :options
def initialize(calling_class, options)
@calling_class = calling_class
@wf = calling_class.wf... | Ruby | lib/wavefront-cli/subcommands/import.rb | snltd/wavefront-cli | bsd-2-clause | 1,786 | 79 | codeparrot/github-code |
95f2ef773e66ae5547266cebbbf7c5ddcbbcd6ac3b1b09d95a87c267de1683d4 | /*
* Copyright (c) 2014 ASMlover. 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 ofconditions ... | C | self-lang/klang/lexer.c | ASMlover/study | bsd-2-clause | 8,418 | 392 | codeparrot/github-code |
f91ce04f7b81e78429ce85dbca35399ebfa265afe4d181222df50d9955a2ac8a | import datetime
from django.utils import timezone
from django.test import TestCase
from django.urls import reverse
from .models import Question
class QuestionMethodTests(TestCase):
def test_was_published_recently_with_future_question(self):
"""
was_published_recently() should return False for qu... | Python | mysite/polls/tests.py | congpc/DjangoExample | bsd-2-clause | 5,010 | 124 | codeparrot/github-code |
83e1a60eb3b6b7d6a73705807cfe5342c5f9b3c01941c3b374d27247588b5210 | /*
* (C) 2014,2015,2017 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/asn1_print.h>
#include <botan/bigint.h>
#include <botan/hex.h>
#include <botan/der_enc.h>
#include <botan/ber_dec.h>
#include <botan/asn1_time.h>
#include <botan/asn1_str.h>
#include <botan/oi... | C++ | src/lib/asn1/asn1_print.cpp | Rohde-Schwarz-Cybersecurity/botan | bsd-2-clause | 8,549 | 315 | codeparrot/github-code |
1246e5b17e1a58373527d65492af227ed7344399312dc078c8a9dbe69c8d4ac3 | package operations;
import data.Collector;
import graph.implementation.Edge;
import utility.GraphFunctions;
/**
* Set the curve point to an ideal position.
* If source and destination are equal, it would be a line.
* If not, it is a noose on top of the vertex.
*/
public class O_RelaxEdge implements EdgeOperation... | Java | src/operations/O_RelaxEdge.java | Drafigon/WildGraphs | bsd-2-clause | 590 | 33 | codeparrot/github-code |
7d6e8ae32342c21116b98c614e85a12c5ce2ac6e37bcee1553421cce49a125fe | /*
* Copyright (c) 2016, Linaro Limited
* 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 conditi... | C | core/drivers/ps2mouse.c | matt2048/optee_os | bsd-2-clause | 4,633 | 161 | codeparrot/github-code |
5d799746e00b8de3400b9fe69b3b41e81f8728023445e8b3b3be3c733eefd83d | /**
* @license AngularJS v1.3.0-build.2480+sha.fb6062f
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
/* jshint maxlen: false */
/**
* @ngdoc module
* @name ngAnimate
* @description
*
* # ngAnimate
*
* The `ngAnimate` module provides... | JavaScript | app/public/js/angular-animate.js | sabhiram/nodejs-scaffolding | bsd-2-clause | 74,308 | 1,613 | codeparrot/github-code |
b1f9f4fd9faf84d26dd66fe068641a1e87bbcc6f47f0a5d5cf197abee69078ce | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""--- Day 3: Perfectly Spherical Houses in a Vacuum ---
Santa is delivering presents to an infinite two-dimensional grid of houses.
He begins by delivering a present to the house at his starting location, and
then an elf at the North Pole calls him via radio and tells hi... | Python | advent/problem_03.py | MattJDavidson/python-adventofcode | bsd-2-clause | 3,424 | 113 | codeparrot/github-code |
2ef28bdfc29389e5b2d067941c5336daed5bd41613a67acd62255157999a42a7 | package adf.launcher.connect;
import adf.agent.office.OfficeAmbulance;
import adf.control.ControlAmbulance;
import adf.launcher.AbstractLoader;
import adf.launcher.ConfigKey;
import rescuecore2.components.ComponentConnectionException;
import rescuecore2.components.ComponentLauncher;
import rescuecore2.config.Config;
i... | Java | modules/core/src/main/java/adf/launcher/connect/ConnectorAmbulanceCentre.java | tkmnet/RCRS-ADF | bsd-2-clause | 1,801 | 60 | codeparrot/github-code |
155ce8e39ac04f91e65f992a30683df0f4e8f0632a4438cf5196087204797798 | class SwiProlog < Formula
desc "ISO/Edinburgh-style Prolog interpreter"
homepage "http://www.swi-prolog.org/"
url "http://www.swi-prolog.org/download/stable/src/swipl-7.4.2.tar.gz"
sha256 "7f17257da334bc1e7a35e9cf5cb8fca01d82f1ea406c7ace76e9062af8f0df8b"
bottle do
sha256 "a03a0bde74e00d2c40b0a7735d46383b... | Ruby | Formula/swi-prolog.rb | bfontaine/homebrew-core | bsd-2-clause | 2,633 | 81 | codeparrot/github-code |
30dce7ea49ac14ad626168cc1580952add540813e896eb28dc716fc381a28d4b | // Copyright 2010 Google Inc. All Rights Reserved.
// Refactored from contributions of various authors in strings/strutil.cc
//
// This file contains string processing functions related to
// numeric values.
#define __STDC_FORMAT_MACROS 1
#include "strings/numbers.h"
#include <memory>
#include <cassert>
#include <ctyp... | C++ | strings/numbers.cc | romange/beeri | bsd-2-clause | 49,536 | 1,489 | codeparrot/github-code |
50dae75dc3177ecacf5140f19b228abc622e7cd8f2d3ae8f49a417c16053ffb3 | require "language/haskell"
class Ghc < Formula
include Language::Haskell::Cabal
desc "Glorious Glasgow Haskell Compilation System"
homepage "https://haskell.org/ghc/"
url "https://downloads.haskell.org/~ghc/8.6.3/ghc-8.6.3-src.tar.xz"
sha256 "9f9e37b7971935d88ba80426c36af14b1e0b3ec1d9c860f44a4391771bc07f23"... | Ruby | Formula/ghc.rb | jdubois/homebrew-core | bsd-2-clause | 4,374 | 124 | codeparrot/github-code |
4f33645a4c0f5a250309d9d745789a8801ae507c0bf86cd3b4d0b21a7e91706b | using System;
using System.Text;
using Microsoft.Extensions.Configuration;
using NLog.Common;
using NLog.Config;
using NLog.LayoutRenderers;
namespace NLog.Extensions.Logging
{
/// <summary>
/// Layout renderer that can lookup values from Microsoft Extension Configuration Container (json, xml, ini)
/// </... | C# | src/NLog.Extensions.Logging/LayoutRenderers/ConfigSettingLayoutRenderer.cs | NLog/NLog.Framework.Logging | bsd-2-clause | 2,887 | 94 | codeparrot/github-code |
6a2f6e50a7f08eef7032021c1e663ee94a22d49c6dea1b6a4622526813a3cb7a | # -*- coding: utf-8 -*-
"""
femagtools.plot
~~~~~~~~~~~~~~~
Creating plots
"""
import numpy as np
import scipy.interpolate as ip
import logging
try:
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from mpl_toolkits.mplot3d import Axes3D
matplotlibversion... | Python | femagtools/plot.py | SEMAFORInformatik/femagtools | bsd-2-clause | 54,333 | 1,683 | codeparrot/github-code |
4338fc6d00d306d507ee63ece84d3daaeb124c16a664bf685379e0f83aef3c75 | # -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
from . import _wrap_numbers, Symbol, Number, Matrix
def symbols(s):
""" mimics sympy.symbols """
tup = tuple(map(Symbol, s.replace(',', ' ').split()))
if len(tup) == 1:
return tup[0]
else:
return... | Python | pysym/util.py | bjodah/pysym | bsd-2-clause | 2,569 | 92 | codeparrot/github-code |
d38a31d3d2e8f0349f5cc7534442b16d38dfaa4dabb7cce3b70facef1a63abad | // Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.from
es6id: 22.1.2.1
description: Value returned by mapping function (traversed via iterator)
info: |
[...]
2. If mapfn is undefined, let mapping be fal... | JavaScript | Jint.Tests.Test262/test/built-ins/Array/from/iter-map-fn-return.js | sebastienros/jint | bsd-2-clause | 1,767 | 68 | codeparrot/github-code |
a63c512e723500a7ea680df1debd3098530505cfd87e61213956968c4728ed90 | package com.mithos.bfg.loop;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent;
/**
* This class is an adapter for {@link OnEvent}. All methods do
* nothing and return true, so you need only implement the methods
* that you need to.
* @author James McMahon
*
... | Java | src/com/mithos/bfg/loop/OnEventAdapter.java | James1345/bfg | bsd-2-clause | 821 | 47 | codeparrot/github-code |
e7e9ad3393d313e438bc55bb57951c1f220c7717f37210dea1b8eaa8fd448f79 | log.enableAll();
(function(){
function animate() {
requestAnimationFrame(animate);
TWEEN.update();
}
animate();
})();
var transform = getStyleProperty('transform');
var getStyle = ( function() {
var getStyleFn = getComputedStyle ?
function( elem ) {
return getComputed... | JavaScript | assets/js/functions_bak.js | wushuyi/panorama360 | bsd-2-clause | 6,239 | 202 | codeparrot/github-code |
8118d84a0f1cff4e3ca354f88ccd6386947596d0de56123bac097a13d1123282 | // Copyright (c) 2022, WNProject 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 "WNNetworking/inc/WNReliableNetworkTransportSocket.h"
#include "WNNetworking/inc/WNReliableNetworkListenSocket.h"
#include <netdb.h>
#include... | C++ | Overlays/Posix/Libraries/WNNetworking/src/WNReliableNetworkTransportSocket.cpp | WNProject/WNFramework | bsd-2-clause | 3,381 | 107 | codeparrot/github-code |
1ee0bb7f171e17df8e38c3c087f8a8f97d331903e5ac24d99a85db32031b778b | // Copyright 2010-2014 UT-Battelle, LLC. See LICENSE.txt for more information.
#ifndef EAVL_SCENE_RENDERER_RT_H
#define EAVL_SCENE_RENDERER_RT_H
#include "eavlDataSet.h"
#include "eavlCellSet.h"
#include "eavlColor.h"
#include "eavlColorTable.h"
#include "eavlSceneRenderer.h"
#include "eavlRayTracerMutator.h"
#includ... | C | src/rendering/eavlSceneRendererRT.h | jsmeredith/EAVL | bsd-2-clause | 6,371 | 222 | codeparrot/github-code |
d57ed11f6ee43ef12ec4a7ab805f8b73b5c1cea757c663594c328dade2fab246 | /*
* Copyright (c) 2012, JInterval Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list o... | Java | jinterval-ir/src/main/java/net/java/jinterval/ir/IRPredictor.java | jinterval/jinterval | bsd-2-clause | 10,164 | 350 | codeparrot/github-code |
30a272de659cf27be0c234f6569fa2050b69600f890c0d17ddae476ba752c6e2 | /***** includes *****/
#include "lfds720_stack_np_internal.h"
/***** private prototypes *****/
static void lfds720_stack_np_internal_stack_np_validate( struct lfds720_stack_np_state *ss,
struct lfds720_misc_validation_info *vi,
... | C | lib/liblfds7.2.0/src/liblfds720/src/lfds720_stack_nodeallocate_positionindependent/lfds720_stack_np_query.c | grz0zrg/fas | bsd-2-clause | 4,484 | 137 | codeparrot/github-code |
6c20fcde274316ed14a8045a2403db4bb132ce0dabc66fb1b96bc064c64aa20d | /*
* Copyright (c) 2009-2010 jMonkeyEngine
* 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... | Java | sdk/jme3-core/src/com/jme3/gde/core/properties/UserDataProperty.java | chototsu/MikuMikuStudio | bsd-2-clause | 5,643 | 148 | codeparrot/github-code |
b9841eb21b542227b15553bb8fdb2cce6aae487fb351a156edef116e58b82929 | #ifndef FRC971_CONTROL_LOOPS_DRIVETRAIN_POLYDRIVETRAIN_H_
#define FRC971_CONTROL_LOOPS_DRIVETRAIN_POLYDRIVETRAIN_H_
#include "aos/common/controls/polytope.h"
#ifdef INCLUDE_971_INFRASTRUCTURE
#include "frc971/control_loops/drivetrain/drivetrain.q.h"
#endif //INCLUDE_971_INFRASTRUCTURE
#include "frc971/control_loops/s... | C | frc971/control_loops/drivetrain/polydrivetrain.h | FRC1296/CheezyDriver2016 | bsd-2-clause | 2,780 | 92 | codeparrot/github-code |
c9d1bb547bc5f9c939d030964c8e8f44201d40fae1a4834917f4474dc35d96f7 | /*
* cuda_common.h
*
* Created on: Jul 14, 2014
* Author: shu
*/
#pragma once
#include <cstdio>
#include <stdint.h>
#define CUDA_CHECK_RETURN(value) { \
cudaError_t _m_cudaStat = value; \
if (_m_cudaStat != cudaSuccess) { \
fprintf(stderr, "Error %s at line %d in file %s\n"... | C | src/cuda_common.h | akiyamalab/ghostz-gpu | bsd-2-clause | 616 | 33 | codeparrot/github-code |
b7a6d5aac553d3e75ad56fb9c5a8ce7e327ff2ea038b9cf7c83cf2b28956b44c | # Copyright (c) 2015-2018 by the parties listed in the AUTHORS file.
# All rights reserved. Use of this source code is governed by
# a BSD-style license that can be found in the LICENSE file.
"""
sim_det_noise.py implements the noise simulation operator, OpSimNoise.
"""
import numpy as np
from ..op import Operator... | Python | src/python/tod/sim_det_noise.py | tskisner/pytoast | bsd-2-clause | 6,740 | 181 | codeparrot/github-code |
8f62b7bdbfa5ae5fa542a9456f0e29298116eabbaccd2058cccf409a02d45f4c | (function(){
var slides = [
{title: 'Работы для отдела Клиентского сервиса и сапорта ФС\nТикетная админка, админка массовых сбоев',
works: [
{img: 'i/works/ticket-admin.png', description:
'<div class="presentation_mb10"><strong>Тикетная админка</strong></div>' +
'<div class="presentation_mb10">Чер... | JavaScript | demo_presentation/js/presentation.js | matraska23/m3-backbone-toolkit | bsd-2-clause | 17,844 | 373 | codeparrot/github-code |
9bbf3289780889724e6dac1f6fc86b5e247c79ff5d24edc8c5f98d82a9768f0f | #!/bin/bash -e
# erik reed
# runs EM algorithm on hadoop streaming
if [ $# -ne 5 ]; then
echo Usage: $0 \"dir with net,tab,fg,em\" EM_FLAGS MAPPERS REDUCERS POP
echo "2 choices for EM_FLAGS: -u and -alem"
echo " -u corresponds to update; standard EM with fixed population size"
echo " e.g. a simple ... | Shell | mapreduce/scripts/mr_streaming.sh | erikreed/HadoopBNEM | bsd-2-clause | 3,032 | 113 | codeparrot/github-code |
62f1edff348824f596af9fe26e0bc6cd686fe2f54bce4787a3a96bfe2b7036d5 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ItzWarty.RAF
{
public class RAFFileListEntry
{
private byte[] directoryFileContent = null;
private UInt32 offsetEntry = 0;
private RAF raf = null;
public RAFFileListEntry(RAF raf, by... | C# | RAFFileListEntry.cs | dargondevteam/raflib | bsd-2-clause | 1,879 | 69 | codeparrot/github-code |
4e88a7c00dd16b3165ef182ee579ecc230b6fe908818894bf0c723f6ba36949b | //
// Copyright (c) 2015 CNRS
//
// This file is part of Pinocchio
// Pinocchio is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation, either version
// 3 of the License, or (at your option) any later versio... | C++ | src/spatial/se3.hpp | aelkhour/pinocchio | bsd-2-clause | 8,904 | 305 | codeparrot/github-code |
6c5b1b8e1f001e2d146e60425d5a7876ce8b274c244eca095b0267a19bc6f8af |
/*
Copyright (c) 2012-2013, Politecnico di Milano. All rights reserved.
Andrea Zoppi <texzk@email.it>
Martino Migliavacca <martino.migliavacca@gmail.com>
http://airlab.elet.polimi.it/
http://www.openrobots.com/
Redistribution and use in source and binary forms, with or without
modification, are permitted provided t... | C | src/urosNode.c | yukkysaito/uros_velodyne | bsd-2-clause | 70,678 | 2,070 | codeparrot/github-code |
d3a783adac8eef40bd59bdec445f274bc927c4e036cb1181a6471370b0e897e8 | import numpy as np
from scipy.sparse import csr_matrix
class AliasArray(np.ndarray):
"""An ndarray with a mapping of values to user-friendly names -- see example
This ndarray subclass enables comparing sub_id and hop_id arrays directly with
their friendly string identifiers. The mapping parameter transla... | Python | pybinding/support/alias.py | MAndelkovic/pybinding | bsd-2-clause | 5,869 | 214 | codeparrot/github-code |
947a0a867f2922ab3dd87de1885e9a4760c76a6c1cda1faf5caa13e957d22abd | package org.mastodon.tracking.mamut.trackmate.wizard;
import org.mastodon.mamut.model.Link;
import org.mastodon.mamut.model.Model;
import org.mastodon.mamut.model.Spot;
import org.mastodon.model.AbstractModelImporter;
public class CreateLargeModelExample
{
private static final int N_STARTING_CELLS = 6;
private sta... | Java | src/test/java/org/mastodon/tracking/mamut/trackmate/wizard/CreateLargeModelExample.java | TrNdy/mastodon-tracking | bsd-2-clause | 4,524 | 134 | codeparrot/github-code |
3a17f73e4fb90431f6ef390ce00b13d5fdb7547e54867e3c2c221c52d51cee82 | /* Copyright (c) 2016-2017, Artem Kashkanov
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fol... | C | common/Image.h | radiolok/bfutils | bsd-2-clause | 2,890 | 106 | codeparrot/github-code |
dadda5fd2c2feb1b54544b424f7a8202362b7c176875c296e7fc2378aa549b35 | #{extends 'main.html' /} #{set title:'FAQ' /}
#{set faq:'active'/}
#{set title:'FAQ'/}
<div class="page-header">
<h1>Frequently Asked Questions
<a class="btn btn-primary login pull-right" href="@{Login.auth()}">Login with Dropbox</a>
<a class="btn btn-primary login pull-right" href="@{Login.boxAuth()}">Login ... | HTML | app/views/Footer/faq.html | mustpax/sortmybox | bsd-2-clause | 3,632 | 82 | codeparrot/github-code |
7fd72741d7b9d98c467894423dc5369208269cd884dd4af9d85fd6b65f003f40 | <?php
/**
* Class for XML output
*
* PHP versions 5 and 7
*
* @category PEAR
* @package PEAR_PackageFileManager
* @author Greg Beaver <cellog@php.net>
* @copyright 2003-2015 The PEAR Group
* @license New BSD, Revised
* @link http://pear.php.net/package/PEAR_PackageFileManager
* @since File a... | PHP | PEAR/PackageFileManager/XMLOutput.php | pear/PEAR_PackageFileManager | bsd-2-clause | 6,592 | 180 | codeparrot/github-code |
553907acd9d20cfe0d61819e0169d3b0bdf4a9fbdb886913fca72bd726ef2433 | // 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 notic... | C | src/spline.h | dithillobothrium/SIRIUS | bsd-2-clause | 30,186 | 765 | codeparrot/github-code |
b1cfaa2e0675d4d617a8325e33f8d7a00b30efa3b2508ba80ef21a964109e988 | // Set color based on frequency and brightness
void setColor(int peak_index, int brightness) {
if (peak_index == 0) {
// signal was weak, turn lights off
red = 0;
green = 0;
blue = 0;
} else if (peak_index > 30) {
red = current_palette[29].red;
green = current_pal... | C | super_freq/light_strip_controllers.h | whitews/super-freq | bsd-2-clause | 1,795 | 55 | codeparrot/github-code |
72a2162a11e32200231e380008e870e45268f3e11d8a129e516525f07fe9e4f3 | //
// ooSocket.c WJ112
//
/*
* Copyright (c) 2014, Walter de Jong
* 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 noti... | C++ | src/Sock.cpp | walterdejong/oolib | bsd-2-clause | 8,549 | 376 | codeparrot/github-code |
622565725f305daa9b7fcb9dc871d6d6d9804473d4789bd094f8d4c8fc7ed497 | // Copyright 2013 Yangqing Jia
#include <algorithm>
#include <cmath>
#include <cfloat>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/vision_layers.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/util/io.hpp"
#define C_ 1
using std::max;
namespace caffe {
const float ... | C++ | src/caffe/layers/loss_layer.cpp | PeterPan1990/DSN | bsd-2-clause | 10,973 | 306 | codeparrot/github-code |
33466d5753cb15b6f663d8341411c8d9368aa9d5dbc4775b59dad516af1923bc | ####################################################################################
#.Synopsis
# Creates and deletes sinkhole domains in Windows DNS servers.
#
#.Description
# Script takes fully-qualified domain names (FQDNs) and/or simple domain
# names, then uses them to create primary zones (not A... | PowerShell | Sinkhole-DNS.ps1 | allenj0321/Powershell | bsd-2-clause | 15,857 | 323 | codeparrot/github-code |
97d26441b65f1bc89b9515e4cdb211de4f082020d62b0a0dfab384ff3fcd68ca | // 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 UI_GFX_IMAGE_IMAGE_UTIL_H_
#define UI_GFX_IMAGE_IMAGE_UTIL_H_
#include <vector>
#include "base/basictypes.h"
#include "ui/gfx/gfx_export.h"
... | C | ui/gfx/image/image_util.h | mogoweb/chromium-crosswalk | bsd-3-clause | 1,223 | 37 | codeparrot/github-code |
7cfe8a6772ba1707e146ea546d58a585e57a94c4848d25a7c305a12dc159e8e5 | // 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/profiles/profile.h"
#include <string>
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/fil... | C++ | chrome/browser/profiles/profile.cc | Crystalnix/house-of-life-chromium | bsd-3-clause | 24,938 | 773 | codeparrot/github-code |
849b27961463eb4a99db5a529dadae9929b200b41e18ad70f96127e6f8c7cd20 | /*
* Copyright (c) 2006, 2006, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* wrapper pow(x,y) return x**y
*/
#include "fdlibm.h"
#ifdef __STDC__
double pow(double x, double y) /* wrapper pow */
#else
double pow(x,y) /* wrapper... | C | guestvm~guestvm/com.oracle.max.ve.native/fdlibm/w_pow.c | SnakeDoc/GuestVM | bsd-3-clause | 1,152 | 52 | codeparrot/github-code |
369efa644ba18da79d655a6c73a344cb2220c1aa725bb4b4e6f622e02d47280a | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_HTTP_HTTP_STREAM_PARSER_H_
#define NET_HTTP_HTTP_STREAM_PARSER_H_
#include <string>
#include "base/basictypes.h"
#include "net/base/io_b... | C | net/http/http_stream_parser.h | rwatson/chromium-capsicum | bsd-3-clause | 5,721 | 176 | codeparrot/github-code |
a4875e0a7da0078110daa481e8036ca31be7cd43a7eb0d3d884cda06f66d0dbd | /**
* Layout Select UI
*
* @package zork
* @subpackage form
* @author Kristof Matos <kristof.matos@megaweb.hu>
*/
( function ( global, $, js )
{
"use strict";
if ( typeof js.layoutSelect !== "undefined" )
{
return;
}
js.require( "jQuery.fn.vslider");
/**
* Generates layout... | JavaScript | module/Paragraph/public/scripts/zork/layoutselect.js | webriq/core | bsd-3-clause | 5,515 | 148 | codeparrot/github-code |
889bccfd4365d2fee18fe617a02abc0be0fe30ed548b15e81e6d50a2368376b3 | /**
* Dialog to add a new visualization from any of your
* existing tables.
*
*/
cdb.admin.NewVisualizationDialogTableItem = cdb.core.View.extend({
events: {
"click .remove" : "_onRemove"
},
tagName: "li",
className: "table",
initialize: function() {
_.bindAll(this, "_onRemove");
this.tem... | JavaScript | lib/assets/javascripts/cartodb/dashboard/visualizations/new_visualization_dialog.js | comilla/map | bsd-3-clause | 8,139 | 331 | codeparrot/github-code |
59add8cc40bb7b1a50265741eea072f77a2febf7476d57c66c5d3ebf7c6e0ebc | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/public/common/page/content_to_visible_time_reporter.h"
#include <utility>
#include "base/bind.h"
#include "base/callback_hel... | C++ | third_party/blink/common/page/content_to_visible_time_reporter.cc | nwjs/chromium.src | bsd-3-clause | 9,156 | 245 | codeparrot/github-code |
959d0bc6d5d235fc525675aaba454e961207413894629606f3ddf493f258432e | #!/usr/bin/env python
"""
# Software License Agreement (BSD License)
#
# Copyright (c) 2012, University of California, Berkeley
# All rights reserved.
# Authors: Cameron Lee (cameronlee@berkeley.edu) and Dmitry Berenson (
berenson@eecs.berkeley.edu)
#
# Redistribution and use in source and binary forms, with or without... | Python | scripts/RR_action_server.py | WPI-ARC/lightning_ros | bsd-3-clause | 22,385 | 418 | codeparrot/github-code |
a9b0db5292fb3ef5faf07a1acfb5b4610a14141cf2181d166796313c6ccc9f74 | package de.uni.freiburg.iig.telematik.sewol.accesscontrol.rbac.lattice.graphic;
import org.apache.commons.collections15.Factory;
import edu.uci.ics.jung.graph.Graph;
import edu.uci.ics.jung.graph.SparseMultigraph;
public class RoleGraphViewer {
Graph<Integer, String> g;
int nodeCount, edgeCount;
Factory<Integer> ... | Java | src/de/uni/freiburg/iig/telematik/sewol/accesscontrol/rbac/lattice/graphic/RoleGraphViewer.java | iig-uni-freiburg/SEWOL | bsd-3-clause | 874 | 34 | codeparrot/github-code |
f6c33a4c199a635a127fdd46abbad76307e03d50faffd5437f40094debab4634 | /**
* @author
*/
imports("Controls.Composite.Carousel");
using("System.Fx.Marquee");
var Carousel = Control.extend({
onChange: function (e) {
var ul = this.find('.x-carousel-header'), t;
if (t = ul.first(e.from))
t.removeClass('x-carousel-header-selected');
if(t = ul.first(e.to))
... | JavaScript | src/Controls/Composite/assets/scripts/Carousel.js | jplusui/jplusui-en | bsd-3-clause | 994 | 38 | codeparrot/github-code |
85083c37b0f021fd1b64809e119d32f51bf2bfca0baca9016a19215b572c00df | #include <lib.h>
#include <string.h>
/* lsearch(3) and lfind(3)
*
* Author: Terrence W. Holm Sep. 1988
*/
#include <stddef.h>
char *lsearch(key, base, count, width, keycmp)
char *key;
char *base;
unsigned *count;
unsigned width;
_PROTOTYPE( int (*keycmp), (const void *, const void *));
{
char *entry... | C | src/lib/other/lsearch.c | macminix/MacMinix | bsd-3-clause | 858 | 44 | codeparrot/github-code |
ad728d8453a12ec68ff521bf601d9ffed3739bd29c4b85955138aa2f19068377 | #!/usr/bin/env python
from django.core.management import setup_environ
import settings
setup_environ(settings)
import socket
from trivia.models import *
irc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
irc.connect((settings.IRC_SERVER, settings.IRC_PORT))
def send(msg):
irc.send(msg + "\r\n")
print "{SE... | Python | bot.py | relrod/pib | bsd-3-clause | 1,205 | 62 | codeparrot/github-code |
b63bc6e27c460d054feb5357e442d84b7d12f17364f0d53cf3d04f292e0536f7 | /// <reference path="../../src/CaseModel.ts" />
/// <reference path="../../src/CaseViewer.ts" />
/// <reference path="../../src/PlugInManager.ts" />
class AnnotationPlugIn extends AssureIt.PlugInSet {
constructor(public plugInManager: AssureIt.PlugInManager) {
super(plugInManager);
this.HTMLRenderPlugIn = new An... | TypeScript | plugins/Annotation/Annotation.ts | assureit/AssureIt | bsd-3-clause | 1,118 | 37 | codeparrot/github-code |
f81fee3568c8d756a1a68108abddfbc7e6e104255bbd494ed4203f7ffc12252d | import React from "react";
import { expect } from "chai";
import { mount } from "enzyme";
import { Provider } from "react-redux";
import Editor from "../../../src/notebook/providers/editor";
import { dummyStore } from "../../utils";
import {
UPDATE_CELL_SOURCE,
FOCUS_CELL_EDITOR
} from "../../../src/notebook/const... | JavaScript | test/renderer/providers/editor-spec.js | temogen/nteract | bsd-3-clause | 1,719 | 59 | codeparrot/github-code |
32bb606fd97d956d2215344e8d386fbf7ce09b8cbe72959bd293e76afd63c95b | /*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in
* the LICENSE file in the root directory of this source tree. An
* additional grant of patent rights can be found in the PATENTS file
* in the same directory.
*
*/
#include... | C | child.c | dalinaum/fb-adb | bsd-3-clause | 13,390 | 463 | codeparrot/github-code |
1bdfaa1d5a31989965ed265f652767e6017d50faeb5cade113a0871f6cd1e2e9 | {-# LANGUAGE TemplateHaskell #-}
{-| Contains TemplateHaskell stuff I don't want to recompile every time I make
changes to other files, a pre-compiled header, so to say. Don't know if that
even works.
-}
module FeedGipeda.THGenerated
( benchmarkClosure
, stringDict
, __remoteTable
) where
import ... | Haskell | src/FeedGipeda/THGenerated.hs | sgraf812/feed-gipeda | bsd-3-clause | 1,466 | 39 | codeparrot/github-code |
7894be4fe33312054b321f16cb7dda845b879ae1e701f44eb7d54881613b237c | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "record".
*
* @property string $todaydetail
* @property string $st_classmark
* @property string $startday
* @property string $endday
* @property integer $totalday
* @property string $country
* @property string $countryEN
* @proper... | PHP | models/Record.php | Jirachiii/sues_print | bsd-3-clause | 2,547 | 98 | codeparrot/github-code |
c4a7a80a7f94e55647f992a4b9d43ce55d0e13e9d39fcdbfeff161517c2a8447 | package com.michaelbaranov.microba.gradient;
import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import com.michaelbaranov.microba.common.AbstractBoundedTableModel;
/**
* A very basic implementation of {@link AbstractBoundedTableModel} used by
* default by {@link GradientBar}. This implementa... | Java | microba/com/michaelbaranov/microba/gradient/DefaultGradientModel.java | ezegarra/microbrowser | bsd-3-clause | 2,149 | 111 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.