code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
package transmission
// Copyright 2015, JuanDeFu.ca. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
import (
"encoding/json"
"fmt"
"log"
"strings"
)
/*
Method name
torrent-add
*/
/*
Either "filename" OR "metainfo" MUST be included.
*/
/*... | sabey/transmission | torrent_add.go | GO | bsd-3-clause | 2,493 |
package main.data.core;
public interface Function<A, B> {
B apply(A a);
}
| nhibberd/search | src/main/data/core/Function.java | Java | bsd-3-clause | 79 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.team649.frc2014.subsystems;
import com.team649.frc2014.RobotMap;
import edu.wpi.first.wpilibj.SpeedController;
import edu.... | SaratogaMSET/649code2014 | src/com/team649/frc2014/subsystems/ClawRollerSubsystem.java | Java | bsd-3-clause | 1,047 |
<?php
return array (
'Search' => 'Pesquisar',
);
| LeonidLyalin/vova | common/humhub/protected/humhub/modules/search/messages/pt/base.php | PHP | bsd-3-clause | 51 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/common/system/ime/tray_ime_chromeos.h"
#include <vector>
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/s... | danakj/chromium | ash/common/system/ime/tray_ime_chromeos.cc | C++ | bsd-3-clause | 9,556 |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\apidoc\helpers;
use phpDocumentor\Reflection\DocBlock\Type\Collection;
use yii\apidoc\models\MethodDoc;
use yii\apidoc\models\TypeDoc;
/**
* Class ApiM... | Bladefidz/ocfa_yii | vendor/yiisoft/yii2-apidoc/helpers/ApiMarkdownTrait.php | PHP | bsd-3-clause | 6,745 |
/*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* 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 r... | ft-/arribasim-dev-extras | OpenSim/Framework/DOMap.cs | C# | bsd-3-clause | 4,063 |
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/layers/picture_layer_impl.h"
#include <algorithm>
#include <cmath>
#include <limits>
#include <set>
#include "base/time/time.h"
#include "b... | SaschaMester/delicium | cc/layers/picture_layer_impl.cc | C++ | bsd-3-clause | 50,012 |
require 'spec_helper'
describe 'OrderPreferencesBuilder' do
# Factory order_with_line_items is incredibly slow..
let(:order) do
order = create :order
create_list :line_item, 2, order:order
order.line_items.reload
order.update!
order
end
let!(:adjustment) { order.adjustments.create! label:... | devartis/Spree-Mercado-Pago-payment-method | spec/models/spree/mercado_pago/order_preferences_builder_spec.rb | Ruby | bsd-3-clause | 2,062 |
#from django.conf import settings
#settings.INSTALLED_APPS += ("mptt", "hvad", "galleries",) | marcopompili/django-market | django_market/__init__.py | Python | bsd-3-clause | 94 |
package com.andymark.crosslink;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
public class UpdateJaguarPacket implements Message {
private short[] uiMode = new short[20];
private short[] uiSetVoltage = new short[20];
@Override
public ByteBuffer getMessage() {
for (int i = 16; i < 20; i++) {
ui... | AndyMark/AMCrosslink-Java | src/com/andymark/crosslink/UpdateJaguarPacket.java | Java | bsd-3-clause | 811 |
function installthis(id)
{
var answer = confirm('Are you sure ? ');
if (answer){
//delete img...
$.post(base_url+'/zfmodules/index/installmod/id/'+id, function(data){
window.location.reload(false);
});
}
}
... | samsonasik/zf_111_support_php532_with_modulewizard | public/themes/zend_prj/js/modules/modules.js | JavaScript | bsd-3-clause | 751 |
from rdr_service.model.genomics import GenomicGCValidationMetrics, GenomicSetMember
from rdr_service.tools.tool_libs.tool_base import cli_run, ToolBase
tool_cmd = 'backfill-gvcf'
tool_desc = 'Backfill the gVCF paths in genomic_gc_validation_metrics'
class GVcfBackfillTool(ToolBase):
def run(self):
super(... | all-of-us/raw-data-repository | rdr_service/tools/tool_libs/backfill_gvcf_paths.py | Python | bsd-3-clause | 2,248 |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This clang plugin checks various invariants of the Blink garbage
// collection infrastructure.
//
// Checks that are implemented:
// [currently none]
... | ChromiumWebApps/chromium | tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp | C++ | bsd-3-clause | 2,082 |
using Shuttle.Core.Data;
using Shuttle.Core.Infrastructure;
namespace Shuttle.Scheduling
{
public class ScheduleQuery : IScheduleQuery
{
private readonly IDatabaseGateway _databaseGateway;
private readonly IScheduleQueryFactory _queryFactory;
public ScheduleQuery(IDatabaseGateway databaseGateway, IScheduleQue... | yonglehou/shuttle-scheduling | Shuttle.Scheduling/DataAccess/Queries/ScheduleQuery.cs | C# | bsd-3-clause | 703 |
#!/usr/bin/python2
"""Syncs to a given Cobalt build id.
Syncs current gclient instance to a given build id, as
generated by "build_id.py" and stored on carbon-airlock-95823.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import json
im... | youtube/cobalt | cobalt/build/sync_to_build_id.py | Python | bsd-3-clause | 6,399 |
class LineItemController < ApplicationController
end
| voidstart/ror_depot_reboot_1 | app/controllers/line_item_controller.rb | Ruby | bsd-3-clause | 53 |
from models import *
from django.db import connection
import collections
import time
import calendar
def GetCreditCardList(contactid):
cards_list = []
orders = Orders.objects.all().filter(ocustomerid = contactid)
cards_hash = {}
for order in orders:
if order.ocardno:
if order.ocardno not in cards_h... | hughsons/saltwaterfish | classes_bkp_0621.py | Python | bsd-3-clause | 19,445 |
# Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
# Download and build the da... | calee88/ParlAI | parlai/tasks/vqa_v2/build.py | Python | bsd-3-clause | 2,271 |
--TEST--
radius_cvt_string()
--INI--
display_errors=1
error_reporting=22527
--SKIPIF--
<?php
if (!extension_loaded('radius')) echo 'SKIP: radius extension required';
?>
--FILE--
<?php
var_dump(radius_cvt_string('127.0.0.1'));
?>
--EXPECT--
string(9) "127.0.0.1"
| LawnGnome/php-radius | tests/radius_cvt_string.phpt | PHP | bsd-3-clause | 262 |
<?php
namespace common\models\articles;
use common\models\behaviors\HiddenBehavior;
use common\models\scopes\ArticleScope;
use common\models\traits\CacheTrait;
use Yii;
use yii\behaviors\TimestampBehavior;
use yii\data\ActiveDataProvider;
use yii\helpers\ArrayHelper;
use yii\helpers\HtmlPurifier;
use common\models\Us... | bereznev/yii2-blog | common/models/articles/Article.php | PHP | bsd-3-clause | 5,780 |
from django.core.exceptions import ImproperlyConfigured
from django.db.models import F, fields
from django.db.models.functions import Cast, Coalesce
from django.utils.translation import gettext_lazy as _
from .conf import get_default_language, get_fallback_chain, get_modeltrans_setting
from .utils import (
Fallbac... | zostera/django-modeltrans | modeltrans/fields.py | Python | bsd-3-clause | 12,105 |
package gengateway
import (
"strings"
"testing"
"github.com/golang/protobuf/proto"
protodescriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/ilius/grpc-gateway/protoc-gen-grpc-gateway/descriptor"
"github.com/ilius/grpc-gateway/protoc-gen-grpc-gateway/httprule"
)
func crossLinkFixture(f ... | ilius/grpc-gateway | protoc-gen-grpc-gateway/gengateway/template_test.go | GO | bsd-3-clause | 13,223 |
/*
* Copyright (c) 2013 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the funct... | SteveXiSong/ECE757-SnoopingPredictions | src/mem/snoop_filter.cc | C++ | bsd-3-clause | 13,192 |
/*
* $Id: GridAttributeDialog.java,v 1.2 2006/01/19 14:45:50 luca Exp $
*
* This software is provided by NOAA for full, free and open release. It is
* understood by the recipient/user that NOAA assumes no liability for any
* errors contained in the code. Although this software is released without
* conditions o... | luttero/Maud | src/gov/noaa/pmel/sgt/swing/prop/GridAttributeDialog.java | Java | bsd-3-clause | 32,899 |
// 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 "net/proxy/proxy_service_v8.h"
#include "base/logging.h"
#include "base/thread_task_runner_handle.h"
#include "base/threading/thread_checker... | Chilledheart/chromium | net/proxy/proxy_service_v8.cc | C++ | bsd-3-clause | 1,609 |
<?php
/**
* PradoBase class file.
*
* This is the file that establishes the PRADO component model
* and error handling mechanism.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.pradosoft.com/
* @copyright Copyright © 2005-2011 PradoSoft
* @license http://www.pradosoft.com/license/
* @vers... | wiccano/WDEPRDO | framework/PradoBase.php | PHP | bsd-3-clause | 19,078 |
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !cgo,!windows,!plan9 android vita
package user
import (
"errors"
"fmt"
"os"
"runtime"
"strconv"
)
func init() {
groupImplemented = false
}
f... | codestation/go | src/os/user/lookup_stubs.go | GO | bsd-3-clause | 1,709 |
package main
import "fmt"
import "time"
type Ball struct{ hits int }
func main() {
table := make(chan *Ball)
go player("ping", table)
go player("pong", table)
table <- new(Ball) // game on; toss the ball
time.Sleep(1 * time.Second)
<-table // game over; grab the ball
panic("show the stack")
}
func player(n... | immortal/sandbox | go/goroutine/ping-pong/main.go | GO | bsd-3-clause | 480 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2011.0... | svoos/CorpusConverter | src/main/java/tigerxml/Head.java | Java | bsd-3-clause | 3,131 |
package main
// Single sender
// Multiple receivers - round-robin
// Durable
// Delayed acknowledgment
import (
"fmt"
"time"
"github.com/streadway/amqp"
)
const (
broker = "amqp://localhost"
queue1 = "gs3-queue"
// Should queue persist beyond broker restart?
durable = true
// Should queue be deleted once ... | dterei/Scraps | amqp/gs3/recv.go | GO | bsd-3-clause | 1,522 |
# This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import absolute_import, division, print_function
import collections
import itertools
from contextlib import contextmanager... | sholsapp/cryptography | src/cryptography/hazmat/backends/openssl/backend.py | Python | bsd-3-clause | 49,028 |
$(function(){
function openPanel(){
require(['panel']);
$('#admin_link').hide();
}
if($.cookie('grass_panel')){
openPanel();
}
$('#admin_link').on('click', function(e){
e.preventDefault();
openPanel();
});
});
require.config({
baseUrl: 'media/scripts'... | grnrbt/grass | web/media/scripts/link.js | JavaScript | bsd-3-clause | 781 |
<?php
use yii\helpers\Html;
use kartik\grid\GridView;
use yii\widgets\ActiveForm;
use yii\bootstrap\Modal;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $searchModel app\modules\fct\models\FctSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'ผู้ป่วยในระบบ FCT';
$this->param... | inamjung/fct | modules/fct/views/fct/indexcaseok.php | PHP | bsd-3-clause | 8,182 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package RobotCode2014.commands.manipulator;
import RobotCode2014.commands.CommandBase;
/**
*
* @author me
*/
public c... | HarkerRobo/robocode14 | src/RobotCode2014/commands/manipulator/PitchAccelerationCommand.java | Java | bsd-3-clause | 1,076 |
<?php
/**
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
namespace Nette\DI;
use Nette;
use Nette\Utils\Validators;
use Nette\Utils\Strings;
use Nette\PhpGenerator\Helpers as PhpHelpers;
use ReflectionClass;
/**
* Basic container buil... | kivi8/ars-poetica | vendor/nette/di/src/DI/ContainerBuilder.php | PHP | bsd-3-clause | 27,588 |
/**
*============================================================================
* Copyright The Ohio State University Research Foundation, The University of Chicago -
* Argonne National Laboratory, Emory University, SemanticBits LLC, and
* Ekagra Software Technologies Ltd.
*
* Distributed under the OSI-approved B... | NCIP/cagrid-core | caGrid/projects/dorian/src/org/cagrid/gaards/dorian/federation/ReportUtils.java | Java | bsd-3-clause | 9,870 |
//===--- SemaStmtAsm.cpp - Semantic Analysis for Asm Statements -----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | endlessm/chromium-browser | third_party/llvm/clang/lib/Sema/SemaStmtAsm.cpp | C++ | bsd-3-clause | 36,063 |
/**
* Copyright (c) 2009-2016, rultor.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 list of conditio... | dalifreire/rultor | src/test/java/com/rultor/spi/package-info.java | Java | bsd-3-clause | 1,692 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/privacy/dlp/v2beta1/dlp.proto
package com.google.privacy.dlp.v2beta1;
/**
* <pre>
* Description of the information type (infoType).
* </pre>
*
* Protobuf type {@code google.privacy.dlp.v2beta1.InfoTypeDescription}
*/
public final cla... | pongad/api-client-staging | generated/java/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/InfoTypeDescription.java | Java | bsd-3-clause | 37,925 |
// 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 "media/filters/vpx_video_decoder.h"
#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include <string>
#include <vector>
#incl... | nwjs/chromium.src | media/filters/vpx_video_decoder.cc | C++ | bsd-3-clause | 21,197 |
"""Workflow for uploading many many many log files at once."""
from __future__ import absolute_import
import os
from os.path import isfile, getsize
import logging
import re
import luigi
import psycopg2
import pandas as pd
# import sqlalchemy
try:
from .pylog_parse import LogFile
except:
from pylog_parse impor... | sethmenghi/pylog_parse | pylog_parse/workflow.py | Python | bsd-3-clause | 4,335 |
namespace NHibernate.ZMQLogPublisher
{
using System.Collections.Concurrent;
using System.Collections.Generic;
using ZMQ;
public class SocketManager
{
private readonly Context context;
private ConcurrentDictionary<string, Socket> sockets;
private object synclock = new obj... | seif/NHibernate.ZMQLogPublisher | src/NHibernate.ZMQLogPublisher/SocketManager.cs | C# | bsd-3-clause | 1,545 |
/**
* @decription mock file config
*
* 该文件实现路由的配置,在没有test准备好的情况下可以直接走这个mock数据
* key: 为要匹配的路由
* value: 为对应的参数配置
* method: get或者post,router的方法
* filename: 对应的mock文件
*/
module.exports = {
'/api/realtime': {
method: "post",
filename: "realtime.js"
}
};
| changfuguo/vuejs-boilerplate | server/config/route.js | JavaScript | bsd-3-clause | 383 |
using System;
using SevenDigital.Messaging.MessageReceiving;
namespace SevenDigital.Messaging
{
/// <summary>
/// A receiver node source that can produce competitive or co-operative consumers
/// </summary>
public interface IReceiver
{
/// <summary>
/// Map handlers to a listener on a named endpoin... | i-e-b/SevenDigital.Messaging | src/SevenDigital.Messaging/IReceiver.cs | C# | bsd-3-clause | 2,465 |
<?php
namespace Base\Form\Hydrator;
use Zend\Stdlib\Hydrator\HydratorInterface;
use Base\Constants as C;
class User implements HydratorInterface {
public function extract($object) {
$filter = function($value) {
return !(($value === null) || ($value === ''));
};
... | fhsctv/ctv2base | module/Base/src/Base/Form/Hydrator/User.php | PHP | bsd-3-clause | 1,947 |
import os
from setuptools import setup, find_packages
setup(
name='django-scrape',
version='0.1',
author='Luke Hodkinson',
author_email='furious.luke@gmail.com',
maintainer='Luke Hodkinson',
maintainer_email='furious.luke@gmail.com',
url='https://github.com/furious-luke/django-scrape',
... | furious-luke/django-scrape | setup.py | Python | bsd-3-clause | 990 |
<?php
return [
'adminEmail' => 'shockedbear@shockedbear.myjino.ru',
];
| shockedbear/board | frontend/config/params.php | PHP | bsd-3-clause | 75 |
from __future__ import absolute_import
import base64
import json
import unittest
import urllib
import urllib2
import urlparse
from celery.exceptions import RetryTaskError
from mock import MagicMock as Mock
import mock
from . import tasks
from .conf import settings as mp_settings
class TestCase(unittest.TestCase):... | bss/mixpanel-celery | mixpanel/tests.py | Python | bsd-3-clause | 7,560 |
/*================================================================================
Copyright (c) 2009 VMware, Inc. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must ... | mikem2005/vijava | src/com/vmware/vim25/DiagnosticManagerLogCreator.java | Java | bsd-3-clause | 2,018 |
//*********************************************************************************************************************
// EthernetIfaceDO.java
//
// Copyright 2014 ELECTRIC POWER RESEARCH INSTITUTE, INC. All rights reserved.
//
// PT2 ("this software") is licensed under BSD 3-Clause license.
//
// Redistribution and u... | epri-dev/PT2 | src/main/java/org/epri/pt2/DO/EthernetIfaceDO.java | Java | bsd-3-clause | 2,820 |
package sodium;
class LazyCell<A> extends Cell<A> {
LazyCell(final Stream<A> event, final Lazy<A> lazyInitValue) {
super(event, null);
this.lazyInitValue = lazyInitValue;
}
@Override
A sampleNoTrans()
{
if (value == null && lazyInitValue != null) {
value = lazyI... | kevintvh/sodium | java/src/sodium/LazyCell.java | Java | bsd-3-clause | 411 |
// 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 "chrome/browser/ash/policy/reporting/arc_app_install_event_logger.h"
#include <stdint.h>
#include <algorithm>
#include <iterator>
#include "as... | ric2b/Vivaldi-browser | chromium/chrome/browser/ash/policy/reporting/arc_app_install_event_logger.cc | C++ | bsd-3-clause | 8,972 |
<?php
namespace CLIFramework\Component\Table;
use CLIFramework\Ansi\Colors;
class CellAttribute {
const ALIGN_RIGHT = 1;
const ALIGN_LEFT = 2;
const ALIGN_CENTER = 3;
const WRAP = 1;
const CLIP = 2;
const ELLIPSIS = 3;
protected $alignment = 2;
protected $formatter;
protec... | marcioAlmada/CLIFramework | src/CLIFramework/Component/Table/CellAttribute.php | PHP | bsd-3-clause | 3,942 |
/****************************************************************************
* Copyright (c) 2012-2020 by the DataTransferKit authors *
* All rights reserved. *
* *
* This ... | Rombur/DataTransferKit | packages/Interface/src/DTK_DOFMap.hpp | C++ | bsd-3-clause | 3,843 |
//
// Copyright 2019 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// capture_gles3_params.cpp:
// Pointer parameter capture functions for the OpenGL ES 3.0 entry points.
#include "libANGLE/capture_gles_2_0_a... | endlessm/chromium-browser | third_party/angle/src/libANGLE/capture_gles_3_0_params.cpp | C++ | bsd-3-clause | 34,588 |
<?php
// # Cancel Invoice Sample
// This sample code demonstrate how you can cancel
// an invoice.
/** @var Invoice $invoice */
$invoice = require 'SendInvoice.php';
use PayPal\Api\Invoice;
use PayPal\Api\CancelNotification;
try {
// ### Cancel Notification Object
// This would send a notification to both ... | frankpaul142/aurasur | vendor/paypal/rest-api-sdk-php/sample/invoice/CancelInvoice.php | PHP | bsd-3-clause | 1,327 |
<?php
/**
* AutomaticUpload.php
*
* PHP version 5.4+
*
* @author Philippe Gaultier <pgaultier@sweelix.net>
* @copyright 2010-2014 Sweelix
* @license http://www.sweelix.net/license license
* @version 1.0.3
* @link http://www.sweelix.net
* @category behaviors
* @package sweelix.yii2.plupload.beh... | pgaultier/sweelix-yii2-plupload | src/behaviors/AutomaticUpload.php | PHP | bsd-3-clause | 19,061 |
<?php
namespace frontend\models;
use Yii;
use yii\base\Model;
use common\models\User;
/**
* Activation reset request form
*/
class ActivationCodeResetRequestForm extends Model {
// Init Public Constants
const STATUS_SUCCESS = 100;
const STATUS_ERROR_ACCOUNT_ALREADY_ACTIVATED = 200;
const STATUS_ERROR_ACCOUNT_... | microdisk/customre_website | frontend/models/ActivationCodeResetRequestForm.php | PHP | bsd-3-clause | 1,755 |
package org.sana.android.fragment;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.ListFragment;
import android.support.v4.app.LoaderManager;
import android.support.v4... | UNFPAInnovation/GetIn_Mobile | app/src/main/java/org/sana/android/fragment/ObserverListFragment.java | Java | bsd-3-clause | 8,088 |
#include "Ht.h"
#include "PersObk.h"
void
CPersObk::PersObk()
{
if (PR_htValid) {
switch (PR_htInst) {
case OBK_PUSH:
{
if (P_loopCnt == 0) {
HtContinue(OBK_RTN);
break;
}
if (SendHostDataBusy()) {
HtRetry();
break;
}
uint64_t data = (uint64_t)((uint64_t)P_pau << 56);
data |=... | TonyBrewer/OpenHT | tests/obk/src_pers/PersObk_src.cpp | C++ | bsd-3-clause | 716 |
/*================================================================================
Copyright (c) 2009 VMware, Inc. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must ... | mikem2005/vijava | src/com/vmware/vim25/CannotAddHostWithFTVmAsStandalone.java | Java | bsd-3-clause | 1,790 |
package de.fraunhofer.fokus.movepla.portlets;
/*
* #%L
* govapps_data
* $Id: E_Stati.java 566 2014-11-13 15:22:01Z sma $
* %%
* Copyright (C) 2013 - 2014 Fraunhofer FOKUS / CC ÖFIT
* %%
* Copyright (c) 2,013, Fraunhofer FOKUS, Kompetenzzentrum Oeffentliche IT
* All rights reserved.
* Redistribution and use i... | fraunhoferfokus/govapps | data-portlet/src/main/java/de/fraunhofer/fokus/movepla/portlets/E_Stati.java | Java | bsd-3-clause | 2,939 |
package com.hitler.common.model.menu;
import java.io.Serializable;
import java.util.Collection;
/**
* 导航栏菜单vo
* @author Kylin
* 2015-10-10 上午9:44:27
*/
public class NavMenu implements Serializable {
private static final long serialVersionUID = 1L;
private Integer id;
/**
* 显示内容
*/
public String text;
... | onsoul/ha-db | saas-mycat/saas/src/main/java/com/hitler/common/model/menu/NavMenu.java | Java | bsd-3-clause | 1,481 |
package net.meisen.dissertation.performance.indexes;
/**
* Helper interface to provide different data generators
*
* @author pmeisen
*
*/
public interface IDataGenerator {
/**
* Creates a generated {@code Object} the time of generation should be equal
* for each object.
*
* @return a generated object... | pmeisen/dis-timeintervaldataanalyzer | test/net/meisen/dissertation/performance/indexes/IDataGenerator.java | Java | bsd-3-clause | 359 |
// Copyright 2015-present 650 Industries. All rights reserved.
package abi41_0_0.expo.modules.analytics.segment;
import android.content.Context;
import android.content.SharedPreferences;
import androidx.annotation.Nullable;
import com.segment.analytics.Analytics;
import com.segment.analytics.Options;
import com.seg... | exponent/exponent | android/versioned-abis/expoview-abi41_0_0/src/main/java/abi41_0_0/expo/modules/analytics/segment/SegmentModule.java | Java | bsd-3-clause | 9,079 |
// 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/renderer/platform/graphics/dark_mode_color_classifier.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party... | endlessm/chromium-browser | third_party/blink/renderer/platform/graphics/dark_mode_color_classifier_test.cc | C++ | bsd-3-clause | 3,260 |
/*
* Copyright (C) 2012 Adobe Systems Incorporated. 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 ... | endlessm/chromium-browser | third_party/blink/renderer/core/css/basic_shape_functions.cc | C++ | bsd-3-clause | 15,126 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# rfMHC documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autog... | dnolivieri/rfMHC | docs/conf.py | Python | bsd-3-clause | 8,369 |
class GameValidPolicy
include Wisper::Publisher
def initialize(game:)
@game = game
@errors = []
end
# Policy for determining if the game is valid
# The game is valid provided:
# 1) the game only ever has at most 1 criminal,
# 2) the game only ever has at most Game::NUMBER_OF_PLAYERS and,
# 3)... | hjwylde/scotland-yard | app/policies/game_valid_policy.rb | Ruby | bsd-3-clause | 1,062 |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "ABI40_0_0Props.h"
#include <folly/dynamic.h>
#include <ABI40_0_0React/core/propsConversions.h>
namespace ABI40_0_0faceb... | exponent/exponent | ios/versioned-react-native/ABI40_0_0/ReactNative/ReactCommon/fabric/core/shadownode/ABI40_0_0Props.cpp | C++ | bsd-3-clause | 689 |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\PagosPrestamos;
/**
* PagosPrestamosSearch represents the model behind the search form about `app\models\PagosPrestamos`.
*/
class PagosPrestamosSearch extends PagosPrestamos
{
/**
* @inheritdoc
*... | oswen244/proserpaz | models/PagosPrestamosSearch.php | PHP | bsd-3-clause | 1,662 |
<?php
use yii\db\Schema;
use yii\db\Migration;
class m160130_212648_add_enrollment_to_student extends Migration
{
public function up()
{
$this->addColumn('student', 'enrollment_id', $this->string());
}
public function down()
{
echo "m160130_212648_add_enrollment_to_student cannot ... | RomarioLopezC/RobotSS | migrations/m160130_212648_add_enrollment_to_student.php | PHP | bsd-3-clause | 538 |
$(document).ready(function(){
// Navigation
var body_class = document.body.className;
var hover_on_bg = "#c00";
var hover_on_co = "#fff";
var hover_off_bg = "#fff";
var hover_off_co = "#444";
var hover_delay = 200;
$("#navigation li a").removeClass("hover");
$("#navigation li").each(function(... | richardcornish/cyndiloza | cyndiloza/static/js/site.js | JavaScript | bsd-3-clause | 1,360 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace vLogs.Objects.KeyValues
{
/// <summary>
/// Represents a collection of key/value pairs. This class cannot be inherited.
/// </summary>
public sealed class KeyValueCollection
: IList<KeyVa... | vercas/vLogs | vLogs/Objects/KeyValues/KeyValue Collection.cs | C# | bsd-3-clause | 14,660 |
# frozen_string_literal: true
# rubocop:disable Metrics/BlockLength
require 'spec_helper'
describe JsonValidator do
describe :validate_each do
before do
run_migration do
create_table(:users, force: true) do |t|
t.text :data
end
end
spawn_model 'User' do
schem... | mirego/activerecord_json_validator | spec/json_validator_spec.rb | Ruby | bsd-3-clause | 3,214 |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/server/web_socket_encoder.h"
#include <vector>
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "bas... | Workday/OpenFrame | net/server/web_socket_encoder.cc | C++ | bsd-3-clause | 12,653 |
/*
* 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... | mgoffin/osquery | osquery/core/init.cpp | C++ | bsd-3-clause | 15,563 |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.offlinepages.prefetch;
import org.chromium.chrome.browser.preferences.ChromePreferenceKeys;
import org.chromium.chrom... | endlessm/chromium-browser | chrome/android/java/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchPrefs.java | Java | bsd-3-clause | 3,959 |
using System;
using System.Reflection;
using SD = System.Drawing;
using Eto.Forms;
using UIKit;
using Eto.Drawing;
namespace Eto.iOS.Forms.Controls
{
public class NumericUpDownHandler : IosControl<UITextField, NumericUpDown, NumericUpDown.ICallback>, NumericUpDown.IHandler
{
public NumericUpDownHandler()
{
Co... | PowerOfCode/Eto | Source/Eto.iOS/Forms/Controls/NumericUpDownHandler.cs | C# | bsd-3-clause | 1,650 |
<?php
namespace app\models;
class ClientWechatFanSearch extends \yii\base\Model
{
public $nickname;
public $mobile;
public $carrier;
public $province;
public $city;
public $create_time_start;
public $create_time_end;
public $gh_id;
public $office_id;
public $scene_pid;
... | yjhu/wowewe | models/ClientWechatFanSearch.php | PHP | bsd-3-clause | 3,139 |
<?php
class AccesoController extends Controller
{
/**
* @var string the default layout for the views. Defaults to '//layouts/column2', meaning
* using two-column layout. See 'protected/views/layouts/column2.php'.
*/
public $layout='//layouts/column2';
/**
* @return array action filters
*/
public functio... | ineps/inesa | inesa/protected/controllers/AccesoController.php | PHP | bsd-3-clause | 5,110 |
// Code generated from gen/generic.rules; DO NOT EDIT.
// generated with: cd gen; go run *.go
package ssa
import "math"
import "cmd/compile/internal/types"
func rewriteValuegeneric(v *Value) bool {
switch v.Op {
case OpAdd16:
return rewriteValuegeneric_OpAdd16(v)
case OpAdd32:
return rewriteValuegeneric_OpAdd... | akutz/go | src/cmd/compile/internal/ssa/rewritegeneric.go | GO | bsd-3-clause | 597,533 |
/*L
* Copyright Oracle Inc
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/cadsr-cgmdr-nci-uk/LICENSE.txt for details.
*/
/*
* eXist Open Source Native XML Database
* Copyright (C) 2001-04 The eXist Project
* http://exist-db.org
*
* This program is ... | NCIP/cadsr-cgmdr-nci-uk | test/src/org/exist/xmldb/StorageStressTest.java | Java | bsd-3-clause | 6,249 |
/*
* This file is part of `et engine`
* Copyright 2009-2016 by Sergey Reznik
* Please, modify content only if you know what are you doing.
*
*/
#pragma once
#include <et/rendering/vulkan/vulkan_buffer.h>
#include <et/rendering/vulkan/vulkan_compute.h>
#include <et/rendering/vulkan/vulkan_program.h>
#include <et/... | sergeyreznik/et-engine | include/et/rendering/vulkan/vulkan_renderer.cpp | C++ | bsd-3-clause | 22,196 |
def extractFullybookedtranslationsWordpressCom(item):
'''
Parser for 'fullybookedtranslations.wordpress.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', ... | fake-name/ReadableWebProxy | WebMirror/management/rss_parser_funcs/feed_parse_extractFullybookedtranslationsWordpressCom.py | Python | bsd-3-clause | 586 |
<?php
namespace garethp\ews\API\Enumeration;
use garethp\ews\API\Enumeration;
/**
* Class representing SubscriptionStatusFrequencyType
*
*
* XSD Type: SubscriptionStatusFrequencyType
*/
class SubscriptionStatusFrequencyType extends Enumeration
{
}
| Garethp/php-ews | src/API/Enumeration/SubscriptionStatusFrequencyType.php | PHP | bsd-3-clause | 258 |
<script type="text/javascript"></script>
<div class="content-box">
<div class="content-box-header">
<h3 id="title" style="cursor: s-resize;">List Article</h3>
<ul class="content-box-tabs">
<li><a href="#tab1" id="clickTab1" class="default-tab current">List Article</a></li>
... | hahalulu/yii | demo/protected/views/admin/adminarticle/index.php | PHP | bsd-3-clause | 7,002 |
<?php
/**
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 27.04.2016
*/
namespace skeeks\cms\backend\assets;
use skeeks\cms\base\AssetBundle;
use yii\bootstrap\BootstrapAsset;
/**
* Class SelectLanguage
* @package common\widgets\selectLanguag... | skeeks-cms/cms-backend | src/assets/BackendAsset.php | PHP | bsd-3-clause | 679 |
/*******************************************************************************
* Copyright (C) 2001-2004 Vintela, 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 sou... | kkaempf/openwbem | src/requesthandlers/binary/OW_BinaryRequestHandler.cpp | C++ | bsd-3-clause | 35,938 |
require_relative '../concepts/board'
class NodesController < ApplicationController
before_action :load_nodes, only: :index
before_action :load_routes, only: :index
before_action :load_board, only: :index
respond_to :json
caches_page :index
def index
render json: @nodes, board: @board
end
private... | hjwylde/scotland-yard | app/controllers/nodes_controller.rb | Ruby | bsd-3-clause | 500 |
$(function() {
JQTWEET = {
// Set twitter hash/user, number of tweets & id/class to append tweets
// You need to clear tweet-date.txt before toggle between hash and user
// for multiple hashtags, you can separate the hashtag with OR, eg:
search: '', //leave this blank if y... | Amaceika/TowerWall | twitter-oauth/jquery.jstwitter.js | JavaScript | bsd-3-clause | 6,798 |
// 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 "content/renderer/input/input_handler_proxy.h"
#include "base/auto_reset.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "b... | fujunwei/chromium-crosswalk | content/renderer/input/input_handler_proxy.cc | C++ | bsd-3-clause | 35,811 |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Auxilios;
/**
* AuxiliosSearch represents the model behind the search form about `app\models\Auxilios`.
*/
class AuxiliosSearch extends Auxilios
{
public $documento_cliente;
public $nombre_cliente;
... | oswen244/proserpaz | models/AuxiliosSearch.php | PHP | bsd-3-clause | 3,499 |
<?php
/**
* Rebuilds the search indexes for the documentation pages.
*
* For the hourly cron rebuild use RebuildLuceneDocusIndex_Hourly
*
* @package docsviewer
* @subpackage tasks
*/
class RebuildLuceneDocsIndex extends BuildTask {
protected $title = "Rebuild Documentation Search Indexes";
protected $d... | unclecheese/silverstripe-docsviewer | code/tasks/RebuildLuceneDocsIndex.php | PHP | bsd-3-clause | 3,556 |
/////////////////////////////////////////////////////////////////////////////
// Program: wxWidgets Widgets Sample
// Name: checkbox.cpp
// Purpose: Part of the widgets sample showing wxCheckBox
// Author: Dimitri Schoolwerth, Vadim Zeitlin
// Created: 27 Sep 2003
// Copyright: (c) 2003 wxWind... | ric2b/Vivaldi-browser | update_notifier/thirdparty/wxWidgets/samples/widgets/checkbox.cpp | C++ | bsd-3-clause | 9,600 |
"""
Set of utility programs for IRIS.
"""
import os
import re
import io
import numpy as np
import pandas as pd
from datetime import datetime, timedelta
from glob import glob
# pylint: disable=F0401,E0611,E1103
from urllib.request import urlopen
from urllib.parse import urljoin, urlparse
from urllib.error import HTTPEr... | ITA-Solar/helita | helita/obs/iris_util.py | Python | bsd-3-clause | 9,925 |
#include "AudioListenerSystem.h"
#include "AudioBackendSystem.h"
#include "AudioListener.h"
#include "Transform.h"
#include "SoundOrientation.h"
#include "MeshOffsetTransform.h"
AudioListenerSystem::AudioListenerSystem(AudioBackendSystem* p_audioBackend) :
EntitySystem(SystemType::AudioListenerSystem, 2,
ComponentT... | MattiasLiljeson/Amalgamation | Projects/Gameplay/Src/AudioListenerSystem.cpp | C++ | bsd-3-clause | 2,950 |
from __future__ import absolute_import, division, print_function
_TRIGGERS = {}
def register(tpe, start, stop, join):
def decorator(f):
_TRIGGERS[tpe] = {
"parser": f,
"start": start,
"stop": stop,
"join": join,
"threads": []
}
... | stcorp/legato | legato/registry.py | Python | bsd-3-clause | 987 |
class CreateQuestions < ActiveRecord::Migration
def change
create_table :questions do |t|
t.references :parent, :polymorphic => true
t.timestamps
end
end
end
| breunigs/keks | db/migrate/20130217083354_create_questions.rb | Ruby | isc | 182 |