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
class JbossForge < Formula desc "Tools to help set up and configure a project" homepage "https://forge.jboss.org/" url "https://downloads.jboss.org/forge/releases/3.9.0.Final/forge-distribution-3.9.0.Final-offline.zip" version "3.9.0.Final" sha256 "7b2013ad0629d38d487514111eadf079860a5cd230994f33ce5b7dcca82e7...
moderndeveloperllc/homebrew-core
Formula/jboss-forge.rb
Ruby
bsd-2-clause
628
#include "stdafx.h" #include "com4j.h" void error( JNIEnv* env, const char* file, int line, HRESULT hr, const char* msg ... ) { // format the message va_list va; va_start(va,msg); int len = _vscprintf(msg,va); char* w = reinterpret_cast<char*>(alloca(len+1)); // +1 for '\0' vsprintf(w,msg,va); env->ExceptionC...
kohsuke/com4j
native/error.cpp
C++
bsd-2-clause
826
from PyQt4 import QtGui, QtCore, QtSvg from PyQt4.QtCore import QMimeData from PyQt4.QtGui import QGraphicsScene, QGraphicsView, QWidget, QApplication from Orange.data.io import FileFormat class ImgFormat(FileFormat): @staticmethod def _get_buffer(size, filename): raise NotImplementedError @stat...
qPCR4vir/orange3
Orange/widgets/io.py
Python
bsd-2-clause
4,645
cask "inso" do version "2.4.1" sha256 "ef9510f32d5d5093f6589fe22d6629c2aa780315966381fc94f83519f2553c2d" url "https://github.com/Kong/insomnia/releases/download/lib%40#{version}/inso-macos-#{version}.zip", verified: "github.com/Kong/insomnia/" name "inso" desc "CLI HTTP and GraphQL Client" homepage "...
cobyism/homebrew-cask
Casks/inso.rb
Ruby
bsd-2-clause
632
class Timidity < Formula desc "Software synthesizer" homepage "http://timidity.sourceforge.net/" url "https://downloads.sourceforge.net/project/timidity/TiMidity++/TiMidity++-2.14.0/TiMidity++-2.14.0.tar.bz2" sha256 "f97fb643f049e9c2e5ef5b034ea9eeb582f0175dce37bc5df843cc85090f6476" bottle do sha256 "0b26...
andyjeffries/homebrew-core
Formula/timidity.rb
Ruby
bsd-2-clause
2,183
class HapiFhirCli < Formula desc "Command-line interface for the HAPI FHIR library" homepage "https://hapifhir.io/hapi-fhir/docs/tools/hapi_fhir_cli.html" url "https://github.com/jamesagnew/hapi-fhir/releases/download/v5.3.0/hapi-fhir-5.3.0-cli.zip" sha256 "851fa036c55fee7c0eca62a1c00fd9b5f35f8296850762e002f752...
dsXLII/homebrew-core
Formula/hapi-fhir-cli.rb
Ruby
bsd-2-clause
1,143
class NewrelicInfraAgent < Formula desc "New Relic infrastructure agent" homepage "https://github.com/newrelic/infrastructure-agent" url "https://github.com/newrelic/infrastructure-agent.git", tag: "1.20.7", revision: "b17a417d4745da7be9c00ecc72619523867f7add" license "Apache-2.0" head "https...
sjackman/homebrew-core
Formula/newrelic-infra-agent.rb
Ruby
bsd-2-clause
2,137
/** * Copyright (c) 2013-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. * * The examp...
mrspeaker/react-native
Examples/UIExplorer/js/TextInputExample.android.js
JavaScript
bsd-3-clause
15,828
#! /usr/bin/python """versioneer.py (like a rocketeer, but for versions) * https://github.com/warner/python-versioneer * Brian Warner * License: Public Domain * Version: 0.7+ This file helps distutils-based projects manage their version number by just creating version-control tags. For developers who work from a V...
sahat/bokeh
versioneer.py
Python
bsd-3-clause
25,525
<?php /** * TOP API: taobao.tmc.user.get request * * @author auto create * @since 1.0, 2015.12.04 */ class TmcUserGetRequest { /** * 需返回的字段列表,多个字段以半角逗号分隔。可选值:TmcUser结构体中的所有字段,一定要返回topic。 **/ private $fields; /** * 用户昵称 **/ private $nick; /** * 用户所属的平台类型,tbUIC:淘宝用户; icbu: icbu用户 **/ privat...
jasonzhangxian/scanner
common/components/topsdk/top/request/TmcUserGetRequest.php
PHP
bsd-3-clause
1,496
from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse from django.utils.decorators import method_decorator from django.views import generic from regressiontests.generic_views.models import Artist, Author, Book, Page from regressiontests.generic_views.forms import Author...
faun/django_test
tests/regressiontests/generic_views/views.py
Python
bsd-3-clause
3,421
"""A connection adapter that tries to use the best polling method for the platform pika is running on. """ import os import logging import socket import select import errno import time from operator import itemgetter from collections import defaultdict import threading import pika.compat from pika.compat import dictk...
reddec/pika
pika/adapters/select_connection.py
Python
bsd-3-clause
21,137
/* * Copyright 2016 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
Alkalyne/webrtctrunk
sdk/android/src/jni/androidmetrics_jni.cc
C++
bsd-3-clause
2,312
/* Copyright (c) 2007, Arvid Norberg 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 f...
jav/libtorrent
src/udp_socket.cpp
C++
bsd-3-clause
22,274
<!DOCTYPE html> <html> <head> <title>Flatty - Flat Administration Template</title> <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> <meta content='text/html;charset=utf-8' http-equiv='content-type'> <meta content='Flat administration template for Tw...
zahdxj/YinCart
themes/backend/views/core/default/login.php
PHP
bsd-3-clause
18,572
package org.hisp.dhis.system.filter; /* * Copyright (c) 2004-2015, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain th...
steffeli/inf5750-tracker-capture
dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/filter/AggregatableDataElementFilter.java
Java
bsd-3-clause
2,620
// Copyright 2015 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/browser/mojo/mojo_app_connection_impl.h" #include <stdint.h> #include <utility> #include "base/bind.h" #include "content/browser/mojo/...
axinging/chromium-crosswalk
content/browser/mojo/mojo_app_connection_impl.cc
C++
bsd-3-clause
1,495
# encoding: utf-8 require_relative './job' module CartoDB module Importer2 class FormatLinter CHARACTER_LIMIT = 1000 def self.supported?(extension) extension == '.kml' end # INFO: importer_config not used but needed for compatibility with other normalizers def initialize(f...
codeandtheory/cartodb
services/importer/lib/importer/format_linter.rb
Ruby
bsd-3-clause
827
/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the documentation of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms ...
klim-iv/phantomjs-qt5
src/qt/qtbase/src/corelib/doc/snippets/qsignalmapper/buttonwidget.cpp
C++
bsd-3-clause
2,655
from __future__ import division, absolute_import, print_function import sys if sys.version_info[0] >= 3: from io import StringIO else: from io import StringIO import compiler import inspect import textwrap import tokenize from .compiler_unparse import unparse class Comment(object): """ A comment block....
nguy/artview
docs/sphinxext/numpydoc/comment_eater.py
Python
bsd-3-clause
5,425
/** * Copyright 2013-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. * * @providesModu...
nathanmarks/react
src/renderers/shared/stack/event/eventPlugins/ResponderEventPlugin.js
JavaScript
bsd-3-clause
25,013
/* * BridJ - Dynamic and blazing-fast native interop for Java. * http://bridj.googlecode.com/ * * Copyright (c) 2010-2015, Olivier Chafik (http://ochafik.com/) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
nativelibs4java/BridJ
src/main/java/org/bridj/DefaultNativeList.java
Java
bsd-3-clause
8,041
from django.conf.urls.defaults import patterns, url urlpatterns = patterns( 'popcorn_gallery.users.views', url(r'^edit/$', 'edit', name='users_edit'), url(r'^delete/$', 'delete_profile', name='users_delete'), url(r'^(?P<username>[\w-]+)/$', 'profile', name='users_profile'), )
mozilla/popcorn_maker
popcorn_gallery/users/urls.py
Python
bsd-3-clause
294
/* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.util.lz4; import javax.annotation.*; import java.nio.*; import org.lwjgl.*; import org.lwjgl.system.*; import static org.lwjgl.system.Checks.*; import static org.l...
LWJGL-CI/lwjgl3
modules/lwjgl/lz4/src/generated/java/org/lwjgl/util/lz4/LZ4StreamHC.java
Java
bsd-3-clause
6,358
import copy from django import forms from django.db import models from django.core.exceptions import ValidationError, ImproperlyConfigured from django.db.models.fields.subclassing import Creator from djangae.forms.fields import ListFormField from django.utils.text import capfirst class _FakeModel(object): """ ...
nealedj/djangae
djangae/fields/iterable.py
Python
bsd-3-clause
10,309
$.ajax({ url: './data/population.json', success: function (data) { var max = -Infinity; data = data.map(function (item) { max = Math.max(item[2], max); return { geoCoord: item.slice(0, 2), value: item[2] } }); da...
wangyuefive/echarts-x
doc/example/code/map3d_population3.js
JavaScript
bsd-3-clause
1,877
"""Tools for manipulating of large commutative expressions. """ from __future__ import print_function, division from sympy.core.add import Add from sympy.core.compatibility import iterable, is_sequence, SYMPY_INTS from sympy.core.mul import Mul, _keep_coeff from sympy.core.power import Pow from sympy.core.basic impor...
kmacinnis/sympy
sympy/core/exprtools.py
Python
bsd-3-clause
41,487
# Author: Prabhu Ramachandran <prabhu [at] aero . iitb . ac . in> # Copyright (c) 2008, Enthought, Inc. # License: BSD Style. # Enthought library imports. from tvtk.tools.tvtk_doc import TVTKFilterChooser, TVTK_FILTERS # Local imports. from mayavi.filters.filter_base import FilterBase from mayavi.core.common import ...
dmsurti/mayavi
mayavi/filters/user_defined.py
Python
bsd-3-clause
3,082
// // Copyright 2015 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. // // texture_format_util: // Contains helper functions for texture_format_table // #include "libANGLE/renderer/d3d/d3d11/texture_format_util.h"...
mlfarrell/angle
src/libANGLE/renderer/d3d/d3d11/texture_format_util.cpp
C++
bsd-3-clause
27,624
// 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 "ui/events/platform/x11/hotplug_event_handler_x11.h" #include <X11/extensions/XInput.h> #include <X11/extensions/XInput2.h> #include <cmath> #i...
collinjackson/mojo
ui/events/platform/x11/hotplug_event_handler_x11.cc
C++
bsd-3-clause
5,674
<?php /** * ALIPAY API: alipay.pass.instance.update request * * @author auto create * @since 1.0, 2015-07-23 11:37:35 */ class AlipayPassInstanceUpdateRequest { /** * 需要更新的券实例变量和状态信息 **/ private $bizContent; private $apiParas = array(); private $terminalType; private $terminalInfo; private $prodCode; ...
black-tangyang/basic
web/alipay/aop/request/AlipayPassInstanceUpdateRequest.php
PHP
bsd-3-clause
1,524
"""Univariate features selection.""" # Authors: V. Michel, B. Thirion, G. Varoquaux, A. Gramfort, E. Duchesnay. # L. Buitinck, A. Joly # License: BSD 3 clause import numpy as np import warnings from scipy import special, stats from scipy.sparse import issparse from ..base import BaseEstimator from ..prepr...
loli/semisupervisedforests
sklearn/feature_selection/univariate_selection.py
Python
bsd-3-clause
18,609
// Copyright 2015 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 "ios/chrome/browser/search_engines/template_url_service_factory.h" #include "base/bind.h" #include "base/callback.h" #include "base/no_destructo...
scheib/chromium
ios/chrome/browser/search_engines/template_url_service_factory.cc
C++
bsd-3-clause
3,840
// 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 "base/threading/platform_thread.h" #include <errno.h> #include <sched.h> #include <stddef.h> #include "base/lazy_instance.h" #include "base/log...
kku1993/libquic
src/base/threading/platform_thread_freebsd.cc
C++
bsd-3-clause
2,784
package org.broadinstitute.hellbender.tools.spark.pathseq; import com.esotericsoftware.kryo.Kryo; import com.esotericsoftware.kryo.io.Output; import htsjdk.samtools.SAMSequenceRecord; import org.apache.commons.compress.archivers.tar.TarArchiveEntry; import org.apache.commons.compress.archivers.tar.TarArchiveInputStrea...
magicDGS/gatk
src/main/java/org/broadinstitute/hellbender/tools/spark/pathseq/PSBuildReferenceTaxonomyUtils.java
Java
bsd-3-clause
17,481
// Copyright 2015 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/banners/app_banner_debug_log.h" #include "content/public/browser/render_frame_host.h" #include "content/public/browser/web_conte...
ds-hwang/chromium-crosswalk
chrome/browser/banners/app_banner_debug_log.cc
C++
bsd-3-clause
2,713
using Microsoft.Extensions.DependencyInjection; namespace OrchardCore.Liquid { public static class ServiceCollectionExtensions { public static IServiceCollection AddLiquidFilter<T>(this IServiceCollection services, string name) where T : class, ILiquidFilter { services.Configure<Liq...
OrchardCMS/Brochard
src/OrchardCore/OrchardCore.Liquid.Abstractions/ServiceExtensions.cs
C#
bsd-3-clause
475
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.content.browser.input; import android.os.SystemClock; import android.text.Editable; import android.text.InputType; import android.te...
PeterWangIntel/chromium-crosswalk
content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java
Java
bsd-3-clause
27,345
VERSION = (1, 0, 0,) __version__ = '.'.join(map(str, VERSION)) default_app_config = 'admin_sso.apps.AdminSSOConfig' # Do not use Django settings at module level as recommended try: from django.utils.functional import LazyObject except ImportError: pass else: class LazySettings(LazyObject): def _se...
frog32/django-admin-sso
admin_sso/__init__.py
Python
bsd-3-clause
716
// Copyright 2020 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/core/layout/ng/mathml/ng_math_under_over_layout_algorithm.h" #include "third_party/blink/renderer/core/layout/ng/mat...
nwjs/chromium.src
third_party/blink/renderer/core/layout/ng/mathml/ng_math_under_over_layout_algorithm.cc
C++
bsd-3-clause
18,124
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * 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 so...
newrelic/ace
lib/ace/layer/gutter.js
JavaScript
bsd-3-clause
8,543
/* * Copyright 2020 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/core/SkFont.h" #include "include/core/SkTypeface.h" #include "src/core/SkScalerCache.h" #include "src/core/SkStrikeSpec.h" #include "src/core/SkTaskGroup.h" ...
youtube/cobalt
third_party/skia_next/third_party/skia/tests/SkScalerCacheTest.cpp
C++
bsd-3-clause
2,751
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/fetch/multipart_parser.h" #include "base/cxx17_backports.h" #include "third_party/blink/public/platform/platfor...
nwjs/chromium.src
third_party/blink/renderer/core/fetch/multipart_parser.cc
C++
bsd-3-clause
12,588
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const chalk = require("chalk"); const cli_utils_1 = require("@ionic/cli-utils"); const command_1 = require("@ionic/cli-utils/lib/command"); const validators_1 = require("@ionic/cli-utils/lib/validators"); cons...
vivadaniele/spid-ionic-sdk
node_modules/ionic/dist/commands/package/build.js
JavaScript
bsd-3-clause
8,855
/**************************************************************************** * * Copyright (C) 2012 PX4 Development Team. 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. Redistri...
PX4/Firmware
src/lib/controllib/BlockLowPassVector.hpp
C++
bsd-3-clause
3,118
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import * import versioneer __author__ = 'Chia-Jung, Yang' __email__ = 'jeroyang@gmail.com' __version__ = versioneer.get_version() from ._version imp...
jeroyang/newsletter
newsletter/__init__.py
Python
bsd-3-clause
394
<?php /* Prototype : string basename(string path [, string suffix]) * Description: Returns the filename component of the path * Source code: ext/standard/string.c * Alias to functions: */ echo "*** Testing basename() : usage variation ***\n"; // Define error handler function test_error_handler($err_no, $err_ms...
JSchwehn/php
testdata/fuzzdir/corpus/ext_standard_tests_file_basename_variation3.php
PHP
bsd-3-clause
2,234
define( [ { "value": 40, "name": "Accessibility", "path": "Accessibility" }, { "value": 180, "name": "Accounts", "path": "Accounts", "children": [ { "value": 76, "name": "Access", "path": "Acc...
redmed/echarts-www
related/ppt/asset/data/disk-tree.json.js
JavaScript
bsd-3-clause
750,572
// Copyright 2019 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. #include "src/torque/torque-compiler.h" #include <fstream> #include "src/torque/declarable.h" #include "src/torque/declaration-visitor.h" #include "src...
endlessm/chromium-browser
v8/src/torque/torque-compiler.cc
C++
bsd-3-clause
5,519
# -*- coding: utf-8 -*- # Copyright (C) 2012, Almar Klein # # Visvis is distributed under the terms of the (new) BSD License. # The full license can be found in 'license.txt'. import visvis as vv import numpy as np import os # Try importing imageio imageio = None try: import imageio except ImportError: pass ...
chrisidefix/visvis
functions/volread.py
Python
bsd-3-clause
1,322
// 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/usb/usb_policy_allowed_devices.h" #include <string> #include <vector> #include "base/bind.h" #include "base/strings/string_spli...
ric2b/Vivaldi-browser
chromium/chrome/browser/usb/usb_policy_allowed_devices.cc
C++
bsd-3-clause
5,366
/* * Copyright (c) 2012-2014 The Khronos Group Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and/or associated documentation files (the * "Materials"), to deal in the Materials without restriction, including * without limitation the rights to use, copy, m...
hy3440/HOG-OpenVX
sample/bindings/java/jni/Node.cpp
C++
mit
3,492
# frozen_string_literal: true require 'csv' class CourseStudentsCsvBuilder def initialize(course) @course = course end def generate_csv csv_data = [CSV_HEADERS] courses_users.each do |courses_user| csv_data << row(courses_user) end CSV.generate { |csv| csv_data.each { |line| csv << li...
alpha721/WikiEduDashboard
lib/analytics/course_students_csv_builder.rb
Ruby
mit
1,126
/** * window.c.ProjectSuggestedContributions component * A Project-show page helper to show suggested amounts of contributions * * Example of use: * view: () => { * ... * m.component(c.ProjectSuggestedContributions, {project: project}) * ... * } */ import m from 'mithril'; import _ from 'underscore'; c...
vicnicius/catarse_admin
src/c/project-suggested-contributions.js
JavaScript
mit
881
""" Copyright (c) 2012-2016 Ben Croston 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 restriction, including without limitation the rights to use, copy, modify, merge, publish, distribut...
anatolieGhebea/contatore
python/RPi.GPIO-0.6.3/RPi/GPIO/__init__.py
Python
mit
1,112
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Threading; namespace GSoft.Dynamite.Collections { /// <summary> /// A list that supports synchronized reading and writing. /// </summary> /// <typeparam name="T">The type of ob...
GSoft-SharePoint/Dynamite
Source/GSoft.Dynamite/Collections/ConcurrentList.cs
C#
mit
22,033
<?php namespace Oro\Bundle\IntegrationBundle\Provider; use Oro\Bundle\IntegrationBundle\Entity\Channel as Integration; interface SyncProcessorInterface { /** * @param Integration $integration * @param $connector * @param array $connectorParameters * * @return bool */ public func...
Djamy/platform
src/Oro/Bundle/IntegrationBundle/Provider/SyncProcessorInterface.php
PHP
mit
407
import { get } from '../get' export function getSearchData(page, cityName, category, keyword) { const keywordStr = keyword ? '/' + keyword : '' const result = get('/api/search/' + page + '/' + cityName + '/' + category + keywordStr) return result }
su-chang/react-web-app
app/fetch/search/search.js
JavaScript
mit
261
/*global define*/ /*jslint white:true,browser:true*/ define([ 'bluebird', // CDN 'kb_common/html', // LOCAL 'common/ui', 'common/runtime', 'common/events', 'common/props', // Wrapper for inputs './inputWrapperWidget', 'widgets/appWidgets/fieldWidget', // Display widgets ...
msneddon/narrative
nbextensions/editorCell_bill/widgets/editorParamsViewWidget.js
JavaScript
mit
11,747
package com.hearthsim.card.basic.spell; import com.hearthsim.card.spellcard.SpellTargetableCard; import com.hearthsim.event.effect.EffectCharacter; import com.hearthsim.event.effect.EffectCharacterBuffTemp; import com.hearthsim.event.filter.FilterCharacter; import com.hearthsim.event.filter.FilterCharacterTargetedSpel...
oyachai/HearthSim
src/main/java/com/hearthsim/card/basic/spell/HeroicStrike.java
Java
mit
1,140
module SS::Reference::Site extend ActiveSupport::Concern extend SS::Translation included do cattr_accessor :site_required, instance_accessor: false self.site_required = true attr_accessor :cur_site belongs_to :site, class_name: "SS::Site" validates :site_id, presence: true, if: ->{ self.cl...
ShinjiTanimoto/shirasagi
app/models/concerns/ss/reference/site.rb
Ruby
mit
649
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Net; using Mindscape.Raygun4Net.Messages; using System.Threading; using System.Reflection; using Mindscape.Raygun4Net.Builders; namespace Mindscape.Raygun4Net { public class RaygunClient : RaygunClientBase {...
nelsonsar/raygun4net
Mindscape.Raygun4Net4.ClientProfile/RaygunClient.cs
C#
mit
13,094
// Copyright (c) Microsoft Corporation // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pch.h" #include "ProfileService_winrt.h" #include "Utils_WinRT.h" using namespace pplx; using namespace Windows::Foundation; using namespace Windows::Foundation::Colle...
jicailiu/xbox-live-api
Source/Services/Social/WinRT/ProfileService_WinRT.cpp
C++
mit
2,818
// Copyright 2011 Splunk, Inc. // // 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 agreed to i...
Christopheraburns/projecttelemetry
node_modules/splunk-sdk/lib/platform/client/jquery_http.js
JavaScript
mit
2,820
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "optionsdialog.h" #include "ui_optionsdialog.h" #include "bitcoinunits.h" #include "monitoreddatamapper.h" #include ...
bankonme/Potcoin-1
src/qt/optionsdialog.cpp
C++
mit
9,332
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #endif #include "i...
s-matthew-english/bitcoin
src/init.cpp
C++
mit
80,293
<?php namespace esperanto\UserBundle\Entity; use Doctrine\ORM\Mapping as ORM; use FOS\UserBundle\Model\Group as BaseGroup; /** * Group */ class Group extends BaseGroup { /** * @var integer */ protected $id; /** * @var \Doctrine\Common\Collections\Collection */ private $users; ...
gseidel/esperanto-cms
src/esperanto/UserBundle/Entity/Group.php
PHP
mit
1,301
@extends('admin.layouts.modal') {{-- Content --}} @section('content') <!-- Tabs --> <ul class="nav nav-tabs"> <li class="active"><a href="#tab-general" data-toggle="tab">General</a></li> </ul> <!-- ./ tabs --> {{-- Delete User Form --}} <form class="form-horizontal" method=...
mgathu1/groceryshopper
laravel/app/views/admin/users/delete.blade.php
PHP
mit
905
package org.multibit.hd.core.events; /** * <p>Signature interface to provide the following to Core Event API:</p> * <ul> * <li>Identification of core events</li> * </ul> * <p>A core event should be named using a noun as the first part of the name (e.g. ExchangeRateChangedEvent)</p> * <p>A core event can occur at...
oscarguindzberg/multibit-hd
mbhd-core/src/main/java/org/multibit/hd/core/events/CoreEvent.java
Java
mit
449
var fs = require('fs'); var PNG = require('../lib/png').PNG; var test = require('tape'); var noLargeOption = process.argv.indexOf("nolarge") >= 0; fs.readdir(__dirname + '/in/', function (err, files) { if (err) throw err; files = files.filter(function (file) { return (!noLargeOption || !file.match(/large/i))...
lukeapage/pngjs2
test/convert-images-spec.js
JavaScript
mit
2,317
/*************************************************************************************** Extended WPF Toolkit Copyright (C) 2007-2014 Xceed Software Inc. This program is provided to you under the terms of the Microsoft Public License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license ...
BenInCOSprings/WpfDockingWindowsApplicationTemplate
wpftoolkit-110921/Main/Source/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit.LiveExplorer/Samples/Magnifier/Views/MagnifierView.xaml.cs
C#
mit
1,404
var assert = require('assert'); var Q = require('q'); var R = require('..'); describe('pipeP', function() { function a(x) {return x + 'A';} function b(x) {return x + 'B';} it('handles promises', function() { var plusOne = function(a) {return a + 1;}; var multAsync = function(a, b) {return Q.when(a * ...
donnut/ramda
test/pipeP.js
JavaScript
mit
988
<?php namespace Illuminate\Tests\Support; use DateTime; use DateTimeInterface; use BadMethodCallException; use Carbon\CarbonImmutable; use Illuminate\Support\Carbon; use PHPUnit\Framework\TestCase; use Carbon\Carbon as BaseCarbon; class SupportCarbonTest extends TestCase { /** * @var \Illuminate\Support\Car...
cviebrock/framework
tests/Support/SupportCarbonTest.php
PHP
mit
3,356
from __future__ import print_function from .patchpipette import PatchPipette
pbmanis/acq4
acq4/devices/PatchPipette/__init__.py
Python
mit
77
<?php /** * Subclass for representing a row from the 'sf_simple_forum_category' table. * * * * @package plugins.sfSimpleForumPlugin.lib.model */ class sfSimpleForumCategory extends PluginsfSimpleForumCategory { }
Symfony-Plugins/sfSimpleForum2Plugin
lib/model/sfSimpleForumCategory.php
PHP
mit
222
var _ = require('underscore'); /* A rule should contain explain and rule methods */ // TODO explain explain // TODO explain missing // TODO explain assert function assert (options, password) { return !!password && options.minLength <= password.length; } function explain(options) { if (options.minLength === 1) { ...
nherzalla/ProfileX-1
node_modules/password-sheriff/lib/rules/length.js
JavaScript
mit
1,063
<?php /** * @package CleverStyle CMS * @author Nazar Mokrynskyi <nazar@mokrynskyi.com> * @copyright Copyright (c) 2011-2014, Nazar Mokrynskyi * @license MIT License, see license.txt */ namespace cs; use ArrayAccess, SimpleXMLElement; /** * False_class is used for chained calling, when some method may retu...
nazar-pc/cherrytea.org-old
core/classes/False_class.php
PHP
mit
1,775
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * 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 Lic...
jubos/meguro
deps/spidermonkey/tests/js1_5/Regress/regress-463259.js
JavaScript
mit
2,273
/* * Farseer Physics Engine: * Copyright (c) 2012 Ian Qvist * * Original source Box2D: * Copyright (c) 2006-2011 Erin Catto http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of t...
Blucky87/Nez
Nez.FarseerPhysics/Farseer/Dynamics/Joints/DistanceJoint.cs
C#
mit
9,625
<?php /* WebProfilerBundle:Profiler:toolbar_js.html.twig */ class __TwigTemplate_5c613b42836f9a825aea4138cba148e6 extends Twig_Template { protected function doGetParent(array $context) { return false; } protected function doDisplay(array $context, array $blocks = array()) { // line...
ksrinivasancomo/symfony2
app/cache/dev_old/twig/5c/61/3b42836f9a825aea4138cba148e6.php
PHP
mit
1,789
package utils import ( "io/ioutil" "net/http" "encoding/json" "fmt" "github.com/juju/errors" ) // GetRequestBody reads request and returns bytes func GetRequestBody(r *http.Request) ([]byte, error) { body, err := ioutil.ReadAll(r.Body) if err != nil { return nil, errors.Trace(err) } return body, nil } /...
nildev/tools
vendor/github.com/nildev/lib/utils/http.go
GO
mit
943
// +build linux // +build 386 amd64 arm arm64 package ras import ( "database/sql" "fmt" "os" "strconv" "strings" "time" _ "modernc.org/sqlite" //to register SQLite driver "github.com/influxdata/telegraf" "github.com/influxdata/telegraf/plugins/inputs" ) // Ras plugin gathers and counts errors provided by ...
m4ce/telegraf
plugins/inputs/ras/ras.go
GO
mit
9,486
// 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. using System; using System.Linq; using Cake.Core; using Cake.Core.IO; namespace Cake.Common.Tools.Chocolatey { ...
patriksvensson/cake
src/Cake.Common/Tools/Chocolatey/ChocolateyToolResolver.cs
C#
mit
3,004
#region Copyright // // DotNetNuke® - http://www.dnnsoftware.com // Copyright (c) 2002-2018 // by DotNetNuke 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 restric...
RichardHowells/Dnn.Platform
DNN Platform/Modules/DnnExportImportLibrary/Dto/Users/ExportUser.cs
C#
mit
2,486
<?php /* * This file is part of PhpSpec, A php toolset to drive emergent * design by specification. * * (c) Marcello Duarte <marcello.duarte@gmail.com> * (c) Konstantin Kudryashov <ever.zet@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with t...
mheki/phpspec
src/PhpSpec/CodeGenerator/Generator/ExistingConstructorTemplate.php
PHP
mit
3,432
// 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 namespace DotNetNuke.Services.Connections { public enum ConnectorCategories { Social = 0, ...
dnnsoftware/Dnn.Platform
DNN Platform/Library/Services/Connections/ConnectorCategories.cs
C#
mit
414
<? header('Location: http://www.diridarek.com'); ?>
seriux55/loweeb00069
src/Base/DiridarekBundle/Resources/public/images/press/index.php
PHP
mit
51
from io import BytesIO import tempfile import os import time import shutil from contextlib import contextmanager import six import sys from netlib import utils, tcp, http def treader(bytes): """ Construct a tcp.Read object from bytes. """ fp = BytesIO(bytes) return tcp.Reader(fp) @contextma...
tdickers/mitmproxy
netlib/tutils.py
Python
mit
3,536
import { rectangle } from 'leaflet'; import boundsType from './types/bounds'; import Path from './Path'; export default class Rectangle extends Path { static propTypes = { bounds: boundsType.isRequired, }; componentWillMount() { super.componentWillMount(); const { bounds, map, ...props } = this.pro...
TaiwanStat/react-leaflet
src/Rectangle.js
JavaScript
mit
584
require 'spec_helper' require Rails.root.join('db', 'post_migrate', '20170921101004_normalize_ldap_extern_uids') describe NormalizeLdapExternUids, :migration, :sidekiq do let!(:identities) { table(:identities) } around do |example| Timecop.freeze { example.run } end before do stub_const("Gitlab::Data...
iiet/iiet-git
spec/migrations/normalize_ldap_extern_uids_spec.rb
Ruby
mit
2,088
<?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\Bundle\WebProfilerBundle\Csp; use Symfony\Component\HttpFoundat...
localheinz/symfony
src/Symfony/Bundle/WebProfilerBundle/Csp/ContentSecurityPolicyHandler.php
PHP
mit
8,478
using System; using Ionic.Zlib; using UnityEngine; namespace VoiceChat { public static class VoiceChatUtils { static void ToShortArray(this float[] input, short[] output) { if (output.Length < input.Length) { throw new System.ArgumentException("in: " + i...
jonathanrlouie/unity-vr-livestream
TutorClient/Assets/VoiceChat/Scripts/VoiceChatUtils.cs
C#
mit
7,916
/* YUI 3.8.0pr2 (build 154) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add("dd-drop-plugin",function(e,t){var n=function(e){e.node=e.host,n.superclass.constructor.apply(this,arguments)};n.NAME="dd-drop-plugin",n.NS="drop",e.extend(n,e.DD.Drop),e...
SHMEDIALIMITED/tallest-tower
node_modules/grunt-contrib/node_modules/grunt-contrib-yuidoc/node_modules/yuidocjs/node_modules/yui/dd-drop-plugin/dd-drop-plugin-min.js
JavaScript
mit
394
/* This file was generated by SableCC (http://www.sablecc.org/). */ package com.bju.cps450.node; import com.bju.cps450.analysis.*; @SuppressWarnings("nls") public final class TPlus extends Token { public TPlus() { super.setText("+"); } public TPlus(int line, int pos) { super.setT...
asdfzt/CPS450-MiniJava
MiniJavaParserWithAST/gen-src/com/bju/cps450/node/TPlus.java
Java
mit
738
# https://github.com/plataformatec/devise#test-helpers RSpec.configure do |config| config.include Devise::TestHelpers, :type => :controller end
cngondo/bestmix
server/spec/support/devise.rb
Ruby
mit
146
class ChangeOrderAttributes < ActiveRecord::Migration def up change_column_default :orders, :front_end_change, nil rename_column :orders, :front_end_change, :change remove_column :orders, :refunded remove_column :orders, :total_is_locked remove_column :orders, :tax_is_locked remove_column :ord...
a0ali0taha/pos
vendor/db/migrate/20130701104221_change_order_attributes.rb
Ruby
mit
711
# extension imports from _NetworKit import PageRankNibble, GCE
fmaschler/networkit
networkit/scd.py
Python
mit
62
//= require d3/d3 //= require jquery.qtip.min //= require simple_statistics gfw.ui.model.CountriesEmbedOverview = cdb.core.Model.extend({ defaults: { graph: 'total_loss', years: true, class: null } }); gfw.ui.view.CountriesEmbedOverview = cdb.core.View.extend({ el: document.body, events: { '...
apercas/gfw
app/assets/javascripts/embed_countries.js
JavaScript
mit
43,948
/* * @(#)LayouterSample.java * * Copyright (c) 1996-2010 by the original authors of JHotDraw and all its * contributors. All rights reserved. * * You may not use, copy or modify this file, except in compliance with the * license agreement you entered into with the copyright holders. For details * see accompany...
ahmedvc/umple
Umplificator/UmplifiedProjects/jhotdraw7/src/main/java/org/jhotdraw/samples/mini/LayouterSample.java
Java
mit
2,276
package com.iluwatar.front.controller; /** * * Command for archers. * */ public class ArcherCommand implements Command { @Override public void process() { new ArcherView().display(); } }
dlee0113/java-design-patterns
front-controller/src/main/java/com/iluwatar/front/controller/ArcherCommand.java
Java
mit
204