repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
dmDen/StockSharp | Samples/Common/SampleUnit/Program.cs | 3557 | #region S# License
/******************************************************************************************
NOTICE!!! This program and source code is owned and licensed by
StockSharp, LLC, www.stocksharp.com
Viewing or use of this code requires your acceptance of the license
agreement found at https://github.com/St... | apache-2.0 |
aosp-mirror/platform_frameworks_support | leanback/src/main/java/androidx/leanback/widget/OnActionClickedListener.java | 895 | /*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 applicable ... | apache-2.0 |
porcelli-forks/uberfire | uberfire-extensions/uberfire-social-activities/uberfire-social-activities-backend/src/main/java/org/ext/uberfire/social/activities/repository/SampleSocialUserEvent.java | 675 | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, soft... | apache-2.0 |
gangliao/Paddle | demo/semantic_role_labeling/api_train_v2.py | 6243 | import sys
import math
import numpy as np
import paddle.v2 as paddle
import paddle.v2.dataset.conll05 as conll05
def db_lstm():
word_dict, verb_dict, label_dict = conll05.get_dict()
word_dict_len = len(word_dict)
label_dict_len = len(label_dict)
pred_len = len(verb_dict)
mark_dict_len = 2
wor... | apache-2.0 |
ryano144/intellij-community | java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/StandardInstructionVisitor.java | 27474 | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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 applicable law or agre... | apache-2.0 |
leafclick/intellij-community | plugins/editorconfig/gen/org/editorconfig/language/psi/impl/EditorConfigCharClassExclamationImpl.java | 1134 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// This is a generated file. Not intended for manual editing.
package org.editorconfig.language.psi.impl;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElementVis... | apache-2.0 |
pickettd/code-dot-org | apps/src/flappy/skins.js | 5946 | /**
* Load Skin for Flappy.
*/
// background: Number of 400x400 background images. Randomly select one if
// specified, otherwise, use background.png.
// graph: Colour of optional grid lines, or false.
var skinsBase = require('../skins');
var CONFIGS = {
flappy: {
}
};
exports.load = function (assetUrl, id) ... | apache-2.0 |
ryanemerson/activemq-artemis | tests/activemq5-unit-tests/src/test/java/org/apache/activemq/JmsBenchmark.java | 8077 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | apache-2.0 |
AlanJager/zstack | core/src/main/java/org/zstack/core/config/RBACInfo.java | 770 | package org.zstack.core.config;
import org.zstack.header.identity.rbac.RBACDescription;
import org.zstack.header.vo.ResourceVO;
public class RBACInfo implements RBACDescription {
@Override
public void permissions() {
permissionBuilder()
.name("global-config")
.adminOnly... | apache-2.0 |
leftathome/supermarket | app/controllers/contributors_controller.rb | 1153 | class ContributorsController < ApplicationController
before_filter :find_contributor, only: [:update, :destroy]
#
# PATCH /organizations/:organization_id/contributors/:id
#
# Update a single contributor.
#
def update
authorize! @contributor
@contributor.update_attributes(contributor_params)
... | apache-2.0 |
fogbeam/Heceta_solr | solr/core/src/java/org/apache/solr/cloud/CloudDescriptor.java | 4578 | package org.apache.solr.cloud;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version ... | apache-2.0 |
MadMikeyB/HotOrNot | lib/Cake/Test/Case/Model/Behavior/TreeBehaviorUuidTest.php | 8544 | <?php
/**
* TreeBehaviorUuidTest file
*
* Tree test using UUIDs
*
* PHP 5
*
* CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above cop... | bsd-2-clause |
PrFalken/exaproxy | lib/exaproxy/util/messagequeue.py | 968 | from collections import deque
import time
class Empty (Exception):
pass
class Queue():
def __init__ (self):
self.queue = deque()
def qsize (self):
return len(self.queue)
def isempty (self):
return len(self.queue) == 0
def put (self, message):
self.queue.append(message)
def get (self, timeout=None):... | bsd-2-clause |
alphaleonis/clide | Src/IntegrationPackage/FooOptionsPage.cs | 1738 | #region BSD License
/*
Copyright (c) 2012, Clarius Consulting
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 cond... | bsd-2-clause |
daldegam/effectweb-project | src/cache/lang_cache/pt-BR/admin_core/admin_auth.php | 1390 | <?php
/*****************************************************/
/* Cetemaster Board - Language Words System */
/* Package: Effect Web v2.x - ACP */
/*****************************************************/
/* Language: Blazilian Portuguese */
/* File: Authentication Modu... | bsd-2-clause |
ericbn/homebrew-cask | Casks/insomnia-designer.rb | 922 | cask "insomnia-designer" do
version "2020.4.1"
sha256 "362d08630292af722c2ff5f7563dcfccbb3d151fa6184ea8dcfabb33260226d5"
# github.com/Kong/insomnia/ was verified as official when first introduced to the cask
url "https://github.com/Kong/insomnia/releases/download/designer%40#{version}/Insomnia.Designer-#{versi... | bsd-2-clause |
mtmarsh2/vislab | vislab/tests/_template.py | 346 | import logging
import unittest
import test_context
import vislab.predict
class TestX(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.temp_dirname = vislab.util.cleardirs(
test_context.temp_dirname + '/test_X')
if __name__ == '__main__':
logging.getLogger().setLevel(logging.... | bsd-2-clause |
attilaz/bgfx | examples/common/ps/particle_system.cpp | 18567 | /*
* Copyright 2011-2019 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#include <bgfx/bgfx.h>
#include <bgfx/embedded_shader.h>
#include "particle_system.h"
#include "../bgfx_utils.h"
#include "../packrect.h"
#include <bx/easing.h>
#include <bx/handle... | bsd-2-clause |
retronym/slick | src/main/scala/scala/slick/ast/ColumnOption.scala | 433 | package scala.slick.ast
abstract class ColumnOption[+T]
object ColumnOption {
case object NotNull extends ColumnOption[Nothing]
case object Nullable extends ColumnOption[Nothing]
case object PrimaryKey extends ColumnOption[Nothing]
case class Default[T](val defaultValue: T) extends ColumnOption[T]
case clas... | bsd-2-clause |
dezon/homebrew-cask | Casks/sococo.rb | 328 | cask :v1 => 'sococo' do
version '3.2.7'
sha256 '6772f2c2ef5c7b046612de408b79a71ed0936041fb9286785af69d862f653d1f'
url "http://download.sococo.com/10069/Sococo_#{version.gsub('.','_')}_10069.dmg"
homepage 'http://www.sococo.com'
license :unknown # todo: improve this machine-generated value
app 'Sococo.a... | bsd-2-clause |
sebastienros/jint | Jint.Tests.Test262/test/built-ins/DataView/prototype/setFloat64/range-check-after-value-conversion.js | 1225 | // Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-dataview.prototype.setfloat64
description: >
Index bounds checks are performed after value conversion.
info: |
...
3. Return SetViewValue(v, byteOffset, littleEndian, "... | bsd-2-clause |
bcg62/homebrew-core | Formula/pure-ftpd.rb | 2040 | class PureFtpd < Formula
desc "Secure and efficient FTP server"
homepage "https://www.pureftpd.org/"
url "https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.47.tar.gz"
sha256 "4740c316f5df879a2d68464489fb9b8b90113fe7dce58e2cdd2054a4768f27ad"
bottle do
sha256 "f848669051fc9f2dcd98373a5c2c1... | bsd-2-clause |
libin/presto | test/test-test/rakefile.rb | 113 | require "rake/testtask"
Rake::TestTask.new do |t|
t.test_files = FileList["*.test.rb"]
t.verbose = true
end
| bsd-3-clause |
wholmgren/pvlib-python | pvlib/tests/test_singlediode.py | 11085 | """
testing single-diode methods using JW Bishop 1988
"""
import numpy as np
from pvlib import pvsystem
from pvlib.singlediode import (bishop88_mpp, estimate_voc, VOLTAGE_BUILTIN,
bishop88, bishop88_i_from_v, bishop88_v_from_i)
import pytest
POA = 888
TCELL = 55
@pytest.mark.parametri... | bsd-3-clause |
mwhudson/go | src/strings/strings.go | 19311 | // Copyright 2009 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.
// Package strings implements simple functions to manipulate UTF-8 encoded strings.
//
// For information about UTF-8 strings in Go, see https://blog.golang.org... | bsd-3-clause |
ltilve/ChromiumGStreamerBackend | chrome/browser/resources/extensions/extension_list.js | 42365 | // 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 src="extension_error.js">
cr.define('extensions', function() {
'use strict';
/**
* @param {string} name The name of the template to ... | bsd-3-clause |
youtube/cobalt | third_party/v8/test/mjsunit/regress/regress-v8-10568.js | 283 | // Copyright 2020 the V8 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.
assertEquals(/[--]/u.exec("Hr3QoS3KCWXQ2yjBoDIK")[0], "H");
assertEquals(/[0-\u{10000}]/u.exec("A0")[0], "A");
| bsd-3-clause |
wisonwang/django-lfs | lfs/core/models.py | 9087 | # django imports
from django.conf import settings
from django.core.cache import cache
from django.db import models
from django.utils.translation import ugettext_lazy as _
# lfs imports
from lfs.checkout.settings import CHECKOUT_TYPES
from lfs.checkout.settings import CHECKOUT_TYPE_SELECT
from lfs.core.fields.thumbs im... | bsd-3-clause |
Craigspaz/Flying-Ferris-Wheel-Engine | Tables/lwjgl-2.9.1/src/src/templates/org/lwjgl/opencl/KHR_global_int32_extended_atomics.java | 1730 | /*
* Copyright (c) 2002-2010 LWJGL 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 of ... | bsd-3-clause |
rgarro/zf2 | library/Zend/Filter/HtmlEntities.php | 4875 | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | bsd-3-clause |
alex-my/keyread | web/index.php | 417 | <?php
// comment out the following two lines when deployed to production
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
require(__DIR__ . '/../config/bootstrap.php');... | bsd-3-clause |
vincentml/basex | basex-core/src/main/java/org/basex/query/expr/gflwor/GroupBy.java | 12441 | package org.basex.query.expr.gflwor;
import static org.basex.query.QueryText.*;
import java.util.*;
import org.basex.query.*;
import org.basex.query.expr.*;
import org.basex.query.expr.gflwor.GFLWOR.Clause;
import org.basex.query.expr.gflwor.GFLWOR.Eval;
import org.basex.query.util.*;
import org.basex.query.util.col... | bsd-3-clause |
pkdevbox/flynn | router/http_test.go | 33082 | package main
import (
"bufio"
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"net/http/httptest"
"strings"
"time"
. "github.com/flynn/flynn/Godeps/_workspace/src/github.com/flynn/go-check"
"github.com/flynn/flynn/Godeps/_workspace/src/golang.org/x/net/websocket"
"github.com/flynn/fly... | bsd-3-clause |
yashu-seth/BinPy | BinPy/examples/source/analog/Analog Buffers.py | 881 | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <headingcell level=2>
# Example usage for Analog Buffers
# <codecell>
from BinPy import *
# Source Bus
a = Bus(4)
a.set_type(analog=True)
a.set_voltage_all(3.5, 6.7, 2.2, 1.1)
# Ouput Bus
b = Bus(4)
b.set_type(analog=True)
# Enable input
e = Bus(1)
e.set_logic... | bsd-3-clause |
axinging/chromium-crosswalk | content/browser/accessibility/hit_testing_browsertest.cc | 6489 | // 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 <set>
#include <string>
#include <vector>
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "b... | bsd-3-clause |
aYukiSekiguchi/ACCESS-Chromium | chrome/browser/autofill/autofill_feedback_infobar_delegate.cc | 1781 | // 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/autofill/autofill_feedback_infobar_delegate.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/infobars/in... | bsd-3-clause |
petuum/strads | apps/medlda_release/ll-worker.cpp | 2115 | #include <stdio.h>
#include <strads/include/common.hpp>
#include <strads/include/child-thread.hpp>
#include <strads/util/utility.hpp>
#include <iostream> // std::cout
#include <algorithm> // std::for_each
#include <vector> // std::vector
#include <glog/logging.h>
#include <gflags/gflags.h>
#include <mpi.h>... | bsd-3-clause |
vincentml/basex | basex-core/src/main/java/org/basex/query/func/file/FileResolvePath.java | 909 | package org.basex.query.func.file;
import static org.basex.query.QueryError.*;
import static org.basex.util.Token.*;
import java.nio.file.*;
import org.basex.query.*;
import org.basex.query.value.item.*;
/**
* Function implementation.
*
* @author BaseX Team 2005-16, BSD License
* @author Christian Gruen
*/
pub... | bsd-3-clause |
onyx-intl/p400_hg | misc/cgo/test/basic.go | 2362 | // Copyright 2010 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.
// Basic test cases for cgo.
package cgotest
/*
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <errno.h>
#define SHIFT(x, y) ((x)<<(... | bsd-3-clause |
Telrik/komimport-2.0 | themes/komimport/views/site/view.php | 921 | <?php
$this->breadcrumbs = array(
$model->title,
);
$this->pageTitle = $model->name;
?>
<?php $this->renderPartial('_view', array('data' => $model)); ?>
<div id="comments">
<?php if ($model->commentCount >= 1): ?>
<h3><?php echo ($model->commentCount > 1) ? $model->commentCount . ' comments' : 'One co... | bsd-3-clause |
Umisoft/umi.framework-dev | library/hmvc/model/IModelFactory.php | 1130 | <?php
/**
* UMI.Framework (http://umi-framework.ru/)
*
* @link http://github.com/Umisoft/framework for the canonical source repository
* @copyright Copyright (c) 2007-2013 Umisoft ltd. (http://umisoft.ru/)
* @license http://umi-framework.ru/license/bsd-3 BSD-3 License
*/
namespace umi\hmvc\model;
/**
* ... | bsd-3-clause |
mbirth/spotweb | lib/services/Actions/Services_Actions_GetComments.php | 4177 | <?php
class Services_Actions_GetComments {
/**
* Define what we think is the native language of the Spots, if we get
* asked to provide comments in our 'native' language, we just skip translation.
*/
const nativeLanguage = 'nl';
/**
* @var Services_Settings_Base
*/
private $_s... | bsd-3-clause |
dsipasseuth/dataloader | src/test/java/com/salesforce/dataloader/process/NAProcessTest.java | 11725 | /*
* Copyright (c) 2015, salesforce.com, 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 cond... | bsd-3-clause |
leighpauls/k2cro4 | chrome/common/extensions/docs/server2/appengine_url_fetcher.py | 1443 | # 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.
from appengine_wrappers import urlfetch
from future import Future
class _AsyncFetchDelegate(object):
def __init__(self, rpc):
self._rpc = rpc
d... | bsd-3-clause |
deforay/odkdash | vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/DefinedNames.php | 8153 | <?php
namespace PhpOffice\PhpSpreadsheet\Writer\Xlsx;
use PhpOffice\PhpSpreadsheet\Calculation\Calculation;
use PhpOffice\PhpSpreadsheet\Cell\Coordinate;
use PhpOffice\PhpSpreadsheet\DefinedName;
use PhpOffice\PhpSpreadsheet\Shared\XMLWriter;
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Work... | bsd-3-clause |
wifang/fmi | module/IvelinaVelcheva/config/module.config.php | 1229 | <?php
return array(
'controllers' => array(
'invokables' => array(
'IvelinaVelcheva\Controller\Index' => 'IvelinaVelcheva\Controller\IndexController',
),
),
// The following section is new and should be added to your file
'router' => array(
'routes' => array(
... | bsd-3-clause |
yuecong/dd-agent | util.py | 17272 | # stdlib
from hashlib import md5
import logging
import math
import os
import platform
import re
import signal
import socket
import sys
import time
import types
import urllib2
import uuid
# 3p
import simplejson as json
import yaml # noqa, let's guess, probably imported somewhere
from tornado import ioloop
try:
fro... | bsd-3-clause |
ranierimachado/pos | core/lib/Drupal/Core/EventSubscriber/EntityRouteProviderSubscriber.php | 2073 | <?php
namespace Drupal\Core\EventSubscriber;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Routing\RouteBuildEvent;
use Drupal\Core\Routing\RoutingEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Routing\RouteCollection;
/**
* Ensures that routes can be ... | gpl-2.0 |
kepta/iD | test/spec/core/entity.js | 9262 | describe('iD.Entity', function () {
it("returns a subclass of the appropriate type", function () {
expect(iD.Entity({type: 'node'})).be.an.instanceOf(iD.Node);
expect(iD.Entity({type: 'way'})).be.an.instanceOf(iD.Way);
expect(iD.Entity({type: 'relation'})).be.an.instanceOf(iD.Relation);
... | isc |
wieslawsoltes/Perspex | src/Windows/Avalonia.Win32/WinRT/WinRTInspectable.cs | 1203 | using System;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Avalonia.MicroCom;
namespace Avalonia.Win32.WinRT
{
class WinRTInspectable : IInspectable, IMicroComShadowContainer
{
public virtual void Dispose()
{
}
... | mit |
sottosviluppo/elcodi | src/Elcodi/Component/Menu/Factory/MenuFactory.php | 1137 | <?php
/*
* This file is part of the Elcodi package.
*
* Copyright (c) 2014-2016 Elcodi Networks S.L.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Marc Morera <yuhu@... | mit |
ezgatrabajo/sf_prueba1 | vendor/lexik/jwt-authentication-bundle/Exception/MissingTokenException.php | 470 | <?php
namespace Lexik\Bundle\JWTAuthenticationBundle\Exception;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
/**
* Exception to be thrown in case of invalid token during an authentication process.
*
* @author Robin Chalas <robin.chalas@gmail.com>
*/
class MissingTokenException extends A... | mit |
oleg-andreyev/symfony | src/Symfony/Component/Intl/Resources/data/timezones/th.php | 46438 | <?php
return [
'Names' => [
'Africa/Abidjan' => 'เวลามาตรฐานกรีนิช (อาบีจาน)',
'Africa/Accra' => 'เวลามาตรฐานกรีนิช (อักกรา)',
'Africa/Addis_Ababa' => 'เวลาแอฟริกาตะวันออก (แอดดิสอาบาบา)',
'Africa/Algiers' => 'เวลายุโรปกลาง (แอลเจียร์)',
'Africa/Asmera' => 'เวลาแอฟริกาตะวันอ... | mit |
jridgewell/babel | packages/babel-parser/test/fixtures/es2015/modules/invalid-escape-export-as/input.js | 23 | export { X \u0061s Y }
| mit |
babel/babel | packages/babel-parser/test/fixtures/es2015/class/invalid-escape-static/input.js | 31 | class X { st\u0061tic y() {} }
| mit |
oxaudo/force | src/v2/Components/UserSettings/TwoFactorAuthentication/Components/BackupSecondFactor/BackupSecondFactorModalContent.tsx | 2247 | import { BorderBoxProps, Box, Flex, Sans } from "@artsy/palette"
import { SystemQueryRenderer as QueryRenderer } from "v2/Artsy/Relay/SystemQueryRenderer"
import React from "react"
import { createFragmentContainer, graphql } from "react-relay"
import { BackupSecondFactorModalContent_me } from "v2/__generated__/BackupS... | mit |
happy5214/pywikibot-core | pywikibot/bot_choice.py | 10733 | # -*- coding: utf-8 -*-
"""Choices for input_choice."""
#
# (C) Pywikibot team, 2015-2016
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals
__version__ = '$Id$'
import pywikibot
class Option(object):
"""
A basic option for input_choice.
The ... | mit |
sottosviluppo/elcodi | src/Elcodi/Component/StateTransitionMachine/Exception/StateNotReachableException.php | 604 | <?php
/*
* This file is part of the Elcodi package.
*
* Copyright (c) 2014-2016 Elcodi Networks S.L.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Marc Morera <yuhu@... | mit |
zrusev/SoftwareUniversity2016 | 16. Databases Advanced - Entity Framework - Feb 2019/07. Advanced Quering/BookShop/BookShop.Data/EntityConfiguration/BookConfiguration.cs | 823 | namespace BookShop.Data.EntityConfiguration
{
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Models;
internal class BookConfiguration : IEntityTypeConfiguration<Book>
{
public void Configure(EntityTypeBuilder<Book> builder)
{
... | mit |
unconed/three.js | src/math/Euler.js | 5245 | /**
* @author mrdoob / http://mrdoob.com/
* @author WestLangley / http://github.com/WestLangley
* @author bhouston / http://clara.io
*/
THREE.Euler = function ( x, y, z, order ) {
this._x = x || 0;
this._y = y || 0;
this._z = z || 0;
this._order = order || THREE.Euler.DefaultOrder;
};
THREE.Euler.RotationOr... | mit |
DARKRPISSHITFIXTHISUPDATE/DarkRP | gamemode/modules/hitmenu/sh_init.lua | 3128 | local plyMeta = FindMetaTable("Player")
local hitmanTeams = {}
function plyMeta:isHitman()
return hitmanTeams[self:Team()]
end
function plyMeta:hasHit()
return self:getDarkRPVar("hasHit") or false
end
function plyMeta:getHitTarget()
return self:getDarkRPVar("hitTarget")
end
function plyMeta:getHitPrice(... | mit |
uublive/ZenBot | node_modules/ltx/lib/sax_easysax.js | 1225 | var util = require('util');
var events = require('events');
var Easysax = require('easysax');
/**
* FIXME: This SAX parser cannot be pushed to!
*/
var SaxEasysax = module.exports = function SaxEasysax() {
events.EventEmitter.call(this);
this.parser = new Easysax();
var that = this;
this.parser.on('st... | mit |
demenvil/starter-public-edition-4 | platform/common/language/french/rest_controller_lang.php | 805 | <?php
/*
* French language
*/
$lang['text_rest_invalid_api_key'] = 'Invalid API key %s'; // %s is the REST API key
$lang['text_rest_invalid_credentials'] = 'Invalid credentials';
$lang['text_rest_ip_denied'] = 'IP denied';
$lang['text_rest_ip_unauthorized'] = 'IP unauthorized';
$lang['text_rest_unauthorized'] = 'Un... | mit |
raasakh/bardcoin.exe | src/rpcdump.cpp | 2962 | // Copyright (c) 2009-2012 Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h" // for pwalletMain
#include "bitcoinrpc.h"
#include "ui_interface.h"
#include "base58.h"
#include <boost/lexica... | mit |
Langdaa/Instagram-clone | ajaxify/profile_sections/recommends.php | 1337 | <?php include '../../config/declare.php'; ?>
<!-- a universal file that has all the classes included -->
<?php include '../../config/classesGetter.php'; ?>
<!-- creating objects -->
<?php
$universal = new universal;
$tags = new tags;
$avatar = new Avatar;
$follow = new follow_system;
$general = n... | mit |
nichesuch/AirOrche | mp4v2-2.0.0/src/atom_tx3g.cpp | 2898 | /*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS... | mit |
su20yu1919/cwa-portal | node_modules/bytebuffer/src/types/strings/utf8string.js | 6365 | //? if (UTF8STRING && UTF8) {
// types/strings/utf8string
/**
* Metrics representing number of UTF8 characters. Evaluates to `c`.
* @type {string}
* @const
* @expose
*/
ByteBuffer.METRICS_CHARS = 'c';
/**
* Metrics representing number of bytes. Evaluates to `b`.
* @type {string}
* @const
* @expose
*/
ByteBu... | mit |
schmop/ng2-datepicker | e2e/app.po.ts | 221 | import { browser, element, by } from 'protractor';
export class Ng2DatepickerCliPage {
navigateTo() {
return browser.get('/');
}
getParagraphText() {
return element(by.css('app-root h1')).getText();
}
}
| mit |
empyrical/react | packages/react-dom/src/events/ReactBrowserEventEmitter.js | 6977 | /**
* 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.
*
* @flow
*/
import {registrationNameDependencies} from 'events/EventPluginRegistry';
import {
TOP_BLUR,
TOP_CANCEL,
TOP_CLOS... | mit |
OrchardCMS/Autofac | Core/Source/Autofac/Core/Resolving/InstanceLookupCompletionBeginningEventArgs.cs | 2305 | // This software is part of the Autofac IoC container
// Copyright © 2011 Autofac Contributors
// http://autofac.org
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// r... | mit |
bmvantunes/angular-library-builder | test/fixtures/basic-html-no-css/output-expected/module.d.ts | 37 | export declare class BasicModule {
}
| mit |
JohnBrodie/visual-kanban | lib/jcommon-1.0.17/source/org/jfree/xml/parser/coretypes/RenderingHintsReadHandler.java | 4253 | /* ========================================================================
* JCommon : a free general purpose class library for the Java(tm) platform
* ========================================================================
*
* (C) Copyright 2000-2005, by Object Refinery Limited and Contributors.
*
* Project I... | mit |
aspose-cells/Aspose.Cells-for-Cloud | SDKs/Aspose.Cells-Cloud-SDK-for-PHP/src/Aspose/Cells/Models/Column.php | 534 | <?php
namespace Aspose\Cells\Models;
/**
* $model.description$
*
* NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
*
*/
class Column {
static $swaggerTypes = array(
'GroupLevel' => 'int',
'Index' => 'int',
'IsHidden' => 'bool',
'Width' => 'float',
... | mit |
xiaomi7732/LiveSDK-for-Windows | src/WinStore/Samples/Windows/HTML/PhotoSky/PhotoSkyJavaScript/pages/settingsAccountUI/settingsFlyout.js | 2582 | <!-- --------------------------------------------------------------------------
// Copyright (c) 2014 Microsoft Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without re... | mit |
larryli/gitlabhq | spec/controllers/groups/milestones_controller_spec.rb | 1092 | require 'spec_helper'
describe Groups::MilestonesController do
let(:group) { create(:group) }
let(:project) { create(:project, group: group) }
let(:project2) { create(:empty_project, group: group) }
let(:user) { create(:user) }
let(:title) { '肯定不是中文的问题' }
before do
sign_in(user)
group.add_owner... | mit |
chrisguitarguy/symfony | src/Symfony/Component/Config/Tests/Definition/Builder/ArrayNodeDefinitionTest.php | 9703 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Config\Tests\Definition\Builder;
use PHPUnit\Framewor... | mit |
bayuaji13/aismardi | application/third_party/PhpWord/Writer/HTML/Style/Font.php | 2368 | <?php
/**
* This file is part of PHPWord - A pure PHP library for reading and writing
* word processing documents.
*
* PHPWord is free software distributed under the terms of the GNU Lesser
* General Public License version 3 as published by the Free Software Foundation.
*
* For the full copyright and license inf... | mit |
princeofdarkness76/metakit | tests/tcusto2.cpp | 9795 | // tcusto2.cpp -- Regression test program, custom view tests
// $Id$
// This is part of Metakit, the homepage is http://www.equi4.com/metakit.html
#include "regress.h"
void TestCustom2() {
B(c11, Unique operation, 0);
{
c4_IntProp p1("p1"), p2("p2");
c4_View v1, v2, v3;
v1.Add(p1[1] + p2[11]);
... | mit |
jacobhong/jReddit | src/main/java/com/github/jreddit/request/retrieval/submissions/SubmissionsOfSubredditRequest.java | 940 | package com.github.jreddit.request.retrieval.submissions;
import com.github.jreddit.request.retrieval.ListingRequest;
import com.github.jreddit.request.retrieval.param.SubmissionSort;
public class SubmissionsOfSubredditRequest extends ListingRequest {
private static final String ENDPOINT_FORMAT = "/r/%s/%s.json?... | mit |
vbud/adventures_in_opencl | part2/main.cpp | 7603 | /*
* Adventures in OpenCL tutorial series
* Part 2
*
* author: Ian Johnson
* htt://enja.org
* code based on advisor Gordon Erlebacher's work
* NVIDIA's examples
* as well as various blogs and resources on the internet
*/
#include <stdio.h>
#include <stdlib.h>
#include <sstream>
#include <iomanip>
#include <mat... | mit |
hyonholee/azure-sdk-for-net | sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/AutomationClient.cs | 23952 | // <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// re... | mit |
rschiefer/templating | src/Microsoft.TemplateEngine.Abstractions/ILocalizationModel.cs | 711 | using System;
using System.Collections.Generic;
namespace Microsoft.TemplateEngine.Abstractions
{
public interface ILocalizationModel
{
string Author { get; }
string Name { get; }
string Description { get; }
// Identifies the langpack association with an actual template. The... | mit |
wangjun/OP | client/scripts/services/exchangeSceneService.js | 2894 | (function() {
var ExchangeSceneService;
ExchangeSceneService = (function() {
ExchangeSceneService.headers = {
'Accept': 'application/json',
'Content-Type': 'application/json'
};
ExchangeSceneService.defaultConfig = {
headers: ExchangeSceneService.headers
};
function Exchange... | mit |
anaqreon/hubzilla | Zotlabs/Lib/Verify.php | 1386 | <?php
namespace Zotlabs\Lib;
class Verify {
function create($type,$channel_id,$token,$meta) {
return q("insert into verify ( vtype, channel, token, meta, created ) values ( '%s', %d, '%s', '%s', '%s' )",
dbesc($type),
intval($channel_id),
dbesc($token),
dbesc($meta),
dbesc(datetime_convert())
);... | mit |
gokudomatic/godot | tools/editor/groups_editor.cpp | 5064 | /*************************************************************************/
/* groups_editor.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | mit |
SpacePossum/PHP-CS-Fixer | tests/Fixer/LanguageConstruct/CombineConsecutiveIssetsFixerTest.php | 5889 | <?php
declare(strict_types=1);
/*
* This file is part of PHP CS Fixer.
*
* (c) Fabien Potencier <fabien@symfony.com>
* Dariusz Rumiński <dariusz.ruminski@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace PhpCsFixer\Test... | mit |
enclose-io/compiler | lts/test/node-api/test_exception/test.js | 578 | 'use strict';
// Flags: --expose-gc
const common = require('../../common');
const assert = require('assert');
const test_exception = require(`./build/${common.buildType}/test_exception`);
// Make sure that exceptions that occur during finalization are propagated.
function testFinalize(binding) {
let x = test_except... | mit |
sgarciac/spec | library/fiber/transfer_spec.rb | 1690 | require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../../../shared/fiber/resume', __FILE__)
with_feature :fiber_library do
require 'fiber'
describe "Fiber#transfer" do
it_behaves_like :fiber_resume, :transfer
end
describe "Fiber#transfer" do
it "transfers control fro... | mit |
enhavo/EnhavoNewsletterBundle | Model/Subscriber.php | 1683 | <?php
/**
* Subscriber.php
*
* @since $date
* @author $username-media
*/
namespace Enhavo\Bundle\NewsletterBundle\Model;
class Subscriber implements SubscriberInterface
{
/**
* @var string
*/
private $email;
/**
* @var \DateTime
*/
private $createdAt;
/**
* @var str... | mit |
okmttdhr/flux-challenge | submissions/jas-chen/src/constants.js | 69 | export const TOTAL_SLOT_COUNT = 5;
export const MOVE_SLOT_COUNT = 2;
| mit |
TelerikAcademy/JavaScript-OOP | Topics/01. Functions-and-Function-Expressions/demos/04. function-expressions/function-expressions.js | 438 | /* globals console */
var print = function(message) {
let doc = this.document;
if (doc && doc.body) {
doc.body.innerHTML +=
`<div class='message'>${message}</div>`;
} else {
console.log(message);
}
};
print(123);
let f3 = function() {
print("This is f3");
};
let f2 = ... | mit |
Alex1990/grunt-seajs-fresh | test/origin/basic/src/foo.js | 226 | define(function(require, exports, module) {
var $ = require('jQuery');
var alert = require('alert');
var out = {
alert: function(o) {
$.alert(o);
}
};
module.exports = out;
}); | mit |
mattgray/SevenDigital.Api.Wrapper | src/SevenDigital.Api.Wrapper.Unit.Tests/Exceptions/InvalidResourceExceptionTests.cs | 1304 | using System.Collections.Generic;
using System.Net;
using NUnit.Framework;
using SevenDigital.Api.Schema;
using SevenDigital.Api.Wrapper.Exceptions;
using SevenDigital.Api.Wrapper.Http;
namespace SevenDigital.Api.Wrapper.Unit.Tests.Exceptions
{
[TestFixture]
public class InvalidResourceExceptionTests
{
... | mit |
jkroepke/2Moons | includes/pages/game/ShowOfficierPage.class.php | 5028 | <?php
/**
* 2Moons
* by Jan-Otto Kröpke 2009-2016
*
* For the full copyright and license information, please view the LICENSE
*
* @package 2Moons
* @author Jan-Otto Kröpke <slaver7@gmail.com>
* @copyright 2009 Lucky
* @copyright 2016 Jan-Otto Kröpke <slaver7@gmail.com>
* @licence MIT
* @version 1.8.0
*... | mit |
newky2k/DHDialogs | src/XamDialogs/Properties/AssemblyInfo.cs | 987 | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("XamDialogs")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[assemb... | mit |
CPFL/gdev | compiler/as/ptx2sass/ocelot/executive/test/TestEmulator.cpp | 11362 | /*!
\file TestEmulator.cpp
\author Andrew Kerr <arkerr@gatech.edu>
\brief tests the emulation layer
*/
#include <sstream>
#include <fstream>
#include <hydrazine/interface/Test.h>
#include <hydrazine/interface/Exception.h>
#include <hydrazine/interface/ArgumentParser.h>
#include <hydrazine/interface/macros.h>
#i... | mit |
JoshuaEstes/apostrophePlugin | lib/form/aMediaEditForm.class.php | 264 | <?php
/**
* @package apostrophePlugin
* @subpackage form
* @author P'unk Avenue <apostrophe@punkave.com>
*/
class aMediaEditForm extends BaseaMediaEditForm
{
// You can override me with a project-level version that also extends BaseaMediaEditForm
} | mit |
g3aishih/csc309ip | node_modules/node-restful/examples/notes.js | 2690 | var express = require('express'),
mongoose = require('mongoose'),
restful = require('../');
// Make a new Express app
var app = module.exports = express();
// Connect to mongodb
mongoose.connect("mongodb://localhost/restful");
// Use middleware to parse POST data and use custom HTTP methods
app.use(express.bo... | mit |
dotnet/roslyn | src/Features/Core/Portable/ExtractMethod/MethodExtractor.CodeGenerator.cs | 19521 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable disable
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System... | mit |
zBMNForks/high_voltage | spec/controllers/pages_controller_spec.rb | 3434 | # encoding: utf-8
require "spec_helper"
describe HighVoltage::PagesController do
render_views
context "using default configuration" do
describe "on GET to /pages/exists" do
before { get :show, id: "exists" }
it "responds with success and render template" do
expect(response).to be_success... | mit |