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
<?php /** * Common Status Class * User: funson * Date: 2014/06/25 * Time: 9:50 */ namespace funson86\cms\models; use funson86\cms\Module; class YesNo { const NO = 0; const YES = 1; public $id; public $label; public function __construct($id = null) { if ($id !== null) { ...
clh021/yii2cms
vendor/funson86/yii2-cms/models/YesNo.php
PHP
bsd-3-clause
868
<?php /** * Console application, which extracts or replaces strings for * translation, which cannot be gettexted * * @version $Id: not-gettexted.php 17220 2011-06-20 13:26:10Z nbachiyski $ * @package wordpress-i18n * @subpackage tools */ // see: http://php.net/tokenizer if (!defined('T_ML_COMMENT')) define(...
oberlin/wp-class-blogs
assets/wpi18n/not-gettexted.php
PHP
bsd-3-clause
7,409
from datetime import timedelta from time import time import warnings from gdbn.dbn import buildDBN from gdbn import activationFunctions import numpy as np from sklearn.base import BaseEstimator from sklearn.preprocessing import LabelEncoder from sklearn.preprocessing import OneHotEncoder warnings.warn(""" The nolearn...
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
python-packages/nolearn-0.5/nolearn/dbn.py
Python
bsd-3-clause
16,813
function save(e, link) { $.ajax(link.attr("href"), { success: function(data, textStatus, jqXHR) { link.hide(); link.closest("tr").addClass("success"); link.closest("tr").find("div.remove").show(); }, error: ajax_error_handler }); e.preventDefault(); } ...
hellhovnd/dentexchange
dentexchange/apps/matches/static/matches/js/posting_automatches.js
JavaScript
bsd-3-clause
1,161
package gopher import ( "fmt" "io" "log" "math/rand" "time" "github.com/adamryman/gophersay/gopherart" ) var ( sayings []string gopherArt string ) func init() { // Load in gopher ascii art from go-bindata gopherArtBytes, err := gopherart.Asset("gopherart/gopher.ascii") if err != nil { log.Fatal(err) ...
golang/scratch
zaquestion/vendor/github.com/adamryman/gophersay/gopher/say.go
GO
bsd-3-clause
1,485
<?php include_once("./eval_conf.php"); include_once("./functions.php"); include_once("./global.php"); include_once("./dwoo/dwooAutoload.php"); if (! checkAccess(GangliaAcl::ALL_VIEWS, GangliaAcl::VIEW, $conf)) die("You do not have access to view views."); $view_name = NULL; if (isset($_GET['vn']) && !is_proper_vie...
luckypoem/ganglia-web
view_content.php
PHP
bsd-3-clause
2,069
# coding: UTF-8 require File.expand_path(File.dirname(__FILE__) + '/../acceptance_helper') feature "API 1.0 user layers management" do before(:all) do Capybara.current_driver = :rack_test @user = create_user({:username => 'test'}) end before(:each) do delete_user_data @user @table = create_tab...
datapolitan/cartodb20
spec/acceptance/api/user_layers_spec.rb
Ruby
bsd-3-clause
2,250
/* ** ** File: ymdeltat.c ** ** YAMAHA DELTA-T adpcm sound emulation subroutine ** used by fmopl.c (Y8950) and fm.c (YM2608 and YM2610/B) ** ** Base program is YM2610 emulator by Hiromitsu Shioya. ** Written by Tatsuyuki Satoh ** Improvements by Jarek Burczynski (bujar at mame dot net) ** ** ** History: ** ** 03-08-200...
clangen/musikcube
src/plugins/gmedecoder/gme/ymdeltat.cpp
C++
bsd-3-clause
22,627
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2013 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
hainm/pythran
third_party/nt2/linalg/functions/lapack/symmetric/sysv.hpp
C++
bsd-3-clause
11,763
"""Utility module for creating transformation matrices Basically this gives you the ability to construct transformation matrices without needing OpenGL or similar run-time engines. The result is that design-time utilities can process files without trading dependencies on a particular run-time. This code is originall...
menpo/vrml97
vrml/vrml97/transformmatrix.py
Python
bsd-3-clause
11,368
package org.petuum.jbosen.row.double_; import org.petuum.jbosen.row.RowUpdate; import java.nio.ByteBuffer; /** * This implementation of {@code DoubleRowUpdate} assumes a sparse set of * columns, ie. column IDs can be any int value. In general, this class is less * CPU and memory efficient than {@link DenseDoubleR...
codeaudit/jbosen
jbosen/src/main/java/org/petuum/jbosen/row/double_/SparseDoubleRowUpdate.java
Java
bsd-3-clause
1,609
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE415_Double_Free__new_delete_array_char_73b.cpp Label Definition File: CWE415_Double_Free__new_delete_array.label.xml Template File: sources-sinks-73b.tmpl.cpp */ /* * @description * CWE: 415 Double Free * BadSource: Allocate data using new and Deallocae data ...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE415_Double_Free/s01/CWE415_Double_Free__new_delete_array_char_73b.cpp
C++
bsd-3-clause
1,529
package org.basex.query.func.fetch; import static org.basex.query.QueryError.*; import java.io.*; import org.basex.io.*; import org.basex.query.*; import org.basex.query.func.*; import org.basex.query.value.item.*; import org.basex.util.*; import org.basex.util.http.*; /** * Function implementation. * * @author ...
deshmnnit04/basex
basex-core/src/main/java/org/basex/query/func/fetch/FetchContentType.java
Java
bsd-3-clause
1,202
package ca.fuwafuwa.kaku.Database; import com.j256.ormlite.dao.Dao; import java.sql.SQLException; public interface IDatabaseHelper { <T> Dao<T, Integer> getDbDao(Class clazz) throws SQLException; }
Xyresic/Kaku
app/src/main/java/ca/fuwafuwa/kaku/Database/IDatabaseHelper.java
Java
bsd-3-clause
205
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129_rand_13.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129.label.xml Template File: sources-sinks-13.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: rand Set data...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s01/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE129_rand_13.cpp
C++
bsd-3-clause
7,834
import getpass from django.core.management.base import BaseCommand from hc.accounts.forms import SignupForm from hc.accounts.views import _make_user class Command(BaseCommand): help = """Create a super-user account.""" def handle(self, *args, **options): email = None password = None ...
healthchecks/healthchecks
hc/accounts/management/commands/createsuperuser.py
Python
bsd-3-clause
1,226
<?php namespace AuthorBooks\Tests; use Maghead\Testing\ModelTestCase; use AuthorBooks\Model\Author; use AuthorBooks\Model\AuthorSchema; use AuthorBooks\Model\AddressSchema; use AuthorBooks\Model\AuthorCollection; use Maghead\Migration\Migration; use Magsql\Universal\Syntax\Column; use Magsql\Driver\PDOMySQLDriver; us...
c9s/LazyRecord
examples/books/Tests/AuthorMigrationTest.php
PHP
bsd-3-clause
2,889
/*L * Copyright Oracle inc, SAIC-F * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/cadsr-util/LICENSE.txt for details. */ package gov.nih.nci.ncicb.cadsr.common.persistence.dao; import gov.nih.nci.ncicb.cadsr.common.resource.ClassSchemeItem; import gov.nih.nci.ncicb.cads...
CBIIT/cadsr-util
cadsrutil/src/java/gov/nih/nci/ncicb/cadsr/common/persistence/dao/ClassificationSchemeDAO.java
Java
bsd-3-clause
982
// 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 "cc/surfaces/surface_aggregator.h" #include <stddef.h> #include <map> #include "base/bind.h" #include "base/logging.h" #include "base/macros.h...
highweb-project/highweb-webcl-html5spec
cc/surfaces/surface_aggregator.cc
C++
bsd-3-clause
27,333
from django.utils.datetime_safe import datetime from django.utils.translation import ugettext_lazy as _ from poradnia.users.models import User def users_total(*args, **kwargs): return User.objects.count() users_total.name = _("Users total") users_total.description = _("Number of users registered total") def ...
watchdogpolska/poradnia.siecobywatelska.pl
poradnia/users/metric.py
Python
bsd-3-clause
1,040
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE124_Buffer_Underwrite__CWE839_fscanf_83_bad.cpp Label Definition File: CWE124_Buffer_Underwrite__CWE839.label.xml Template File: sources-sinks-83_bad.tmpl.cpp */ /* * @description * CWE: 124 Buffer Underwrite * BadSource: fscanf Read data from the console usin...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE124_Buffer_Underwrite/s01/CWE124_Buffer_Underwrite__CWE839_fscanf_83_bad.cpp
C++
bsd-3-clause
1,727
/* Copyright (C) 2005-2011 Fabio Riccardi */ package com.lightcrafts.utils.filecache; import java.io.File; /** * A <code>FileCacheKeyMapper</code> is used to map a cache key to a file on * disk. * * @author Paul J. Lucas [paul@lightcrafts.com] */ public interface FileCacheKeyMapper { /** * Gets the ca...
MarinnaCole/LightZone
lightcrafts/src/com/lightcrafts/utils/filecache/FileCacheKeyMapper.java
Java
bsd-3-clause
755
<?php $this->pageTitle = Yii::app()->name . ' - Login'; $this->breadcrumbs = array( 'Login', ); ?> <div class="form"> <?php $form = $this->beginWidget('CActiveForm', array( 'id' => 'login-form', 'enableClientValidation' => true, // 'enableAjaxValidation'=>true...
danielmoniz/red_torpedo
project-files/protected/views/site/login.php
PHP
bsd-3-clause
1,348
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "sandbox/win/src/window.h" #include <aclapi.h> #include <memory> #include "base/notreached.h" #include "base/win/win_util.h" #include "bas...
scheib/chromium
sandbox/win/src/window.cc
C++
bsd-3-clause
6,157
<?php /** * Abstract property class * * Extend this class to create custom complex properties * * @package Sabre * @subpackage DAV * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved. * @author Evert Pot (http://www.rooftopsolutions.nl/) * @license http://code.google.com/p/sabredav/wi...
mgrauer/midas3score
modules/webdav/library/SabreDAV/lib/Sabre/DAV/Property.php
PHP
bsd-3-clause
557
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Inbox2.Framework; using Inbox2.Framework.Deployment; namespace Inbox2.Core.Upgrade { public class upgrade_0_1_0_2 : UpgradeActionBase { public override Version TargetVersion { get { return new Version("0....
Klaudit/inbox2_desktop
Code/Client/Inbox2/Core/Upgrade/upgrade_0_1_0_2.cs
C#
bsd-3-clause
1,084
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int_memcpy_09.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805.label.xml Template File: sources-sink-09.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocat...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s03/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int_memcpy_09.cpp
C++
bsd-3-clause
3,578
#!/usr/bin/env python # -*- coding: utf-8 -*- # # from os.path import dirname from os.path import join from setuptools import find_packages from setuptools import setup # requirements with open('requirements.txt') as f: required = f.read().splitlines() with open(join(dirname(__file__), 'pyrcmd3/VERSION'), 'rb') a...
marreta-sources/pyrcmd3
setup.py
Python
bsd-3-clause
1,533
// 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 "flutter/shell/common/switches.h" #include <iostream> namespace shell { namespace switches { const char kAotInstructionsBlob[] = "instructions...
mpcomplete/engine
shell/common/switches.cc
C++
bsd-3-clause
1,637
/* * Copyright (C) 2015 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
sgraham/nope
third_party/WebKit/Source/platform/image-decoders/FastSharedBufferReader.cpp
C++
bsd-3-clause
3,162
######################################################################### # Copyright (C) 2007, 2008, 2009 # Alex Clemesha <alex@clemesha.org> & Dorian Raymer <deldotdr@gmail.com> # # This module is part of codenode, and is distributed under the terms # of the BSD License: http://www.opensource.org/licenses/bsd-li...
ccordoba12/codenode
codenode/frontend/bookshelf/urls.py
Python
bsd-3-clause
1,059
<?php /** * SimpleFw Framework * * @copyright Copyright (c) 2013 Kuldeep Kamboj * @license New BSD License */ namespace SimpleFw\Core\Tools; class Form { public static $instance = NULL; public static function getInstance() { if(!isset(self::$instance)) { self::$instance = new Form(); ...
kuldeep-k/CodeCompare
core/tools/Form.php
PHP
bsd-3-clause
2,638
#ifndef PYTHONIC_RANDOM_RANDINT_HPP #define PYTHONIC_RANDOM_RANDINT_HPP #include "pythonic/include/random/randint.hpp" #include "pythonic/utils/proxy.hpp" #include "pythonic/random/randrange.hpp" namespace pythonic { namespace random { long randint(long a, long b) { // TODO: It should be implemen...
hainm/pythran
pythran/pythonic/random/randint.hpp
C++
bsd-3-clause
455
/** * Copyright 2020 Google Inc. All rights reserved. * * 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 applic...
ChromeDevTools/devtools-frontend
node_modules/puppeteer/lib/esm/puppeteer/common/fetch.js
JavaScript
bsd-3-clause
889
import unittest from django.db import connections from wp_frontman.models import Site, Blog from wp_frontman.wp_helpers import month_archives, year_archives from wp_frontman.tests.utils import MultiBlogMixin class HelpersArchivesTestCase(MultiBlogMixin, unittest.TestCase): def setUp(self): super(He...
ludoo/wpkit
attic/ngfrontman/wp_frontman/tests/test_helpers_archives.py
Python
bsd-3-clause
1,742
from behave import * # Unique to Scenario: User cancels attempt to request new account @when('I cancel the request account form') def impl(context): context.browser.find_by_css('.cancel').first.click()
nlhkabu/connect
bdd/features/steps/request_account.py
Python
bsd-3-clause
208
<?php /** * aheadWorks Co. * * NOTICE OF LICENSE * * This source file is subject to the EULA * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://ecommerce.aheadworks.com/LICENSE-L.txt * * @category AW * @package AW_Blog *...
5452/durex
includes/src/AW_Blog_Block_Post.php
PHP
bsd-3-clause
6,215
require 'spree/api'
ambertch/stylestalk-spree
api/lib/spree_api.rb
Ruby
bsd-3-clause
20
package zmq4 /* #include <zmq.h> #include <stdint.h> #include <stdlib.h> #include "zmq4.h" */ import "C" import ( "time" "unsafe" ) func (soc *Socket) setString(opt C.int, s string) error { if !soc.opened { return ErrorSocketClosed } cs := C.CString(s) defer C.free(unsafe.Pointer(cs)) var i C.int var err e...
postmates/go-triton
vendor/github.com/pebbe/zmq4/socketset.go
GO
isc
23,258
<?php namespace ZEDx\Listeners; use ZEDx\Jobs\UpdateCache; class PageEventListener { /** * Handle page create events. */ public function onPageCreate($event) { dispatch(new UpdateCache($event->page)); } /** * Handle page delete events. */ public function onPageDel...
zorx/core
src/Listeners/PageEventListener.php
PHP
mit
1,909
require 'rails_helper' RSpec.describe User, type: :model do let(:user) { User.new } it { expect(user).to validate_presence_of(:first_name) } it { expect(user).to validate_presence_of(:last_name)} it { expect(user).to validate_presence_of(:email)} it { expect(user).to validate_presence_of(:password)} # it { ...
chi-sea-lions-2015/house-rules
spec/models/user_spec.rb
Ruby
mit
757
/*! * bootstrap 3 modal 封装 */ (function ($) { window.BSModal = function () { var reg = new RegExp("\\[([^\\[\\]]*?)\\]", 'igm'); var generateId = function () { var date = new Date(); return 'mdl' + date.valueOf(); } var init = function (options) { ...
Mutueye/MutueyeWeb
src/apps/HaierAdmin/static/js/BSModal.js
JavaScript
mit
7,097
/*************************************************************************/ /* slider.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
MrMaidx/godot
scene/gui/slider.cpp
C++
mit
8,893
<?php /* * WellCommerce Open-Source E-Commerce Platform * * This file is part of the WellCommerce package. * * (c) Adam Piotrowski <adam@wellcommerce.org> * * For the full copyright and license information, * please view the LICENSE file that was distributed with this source code. */ namespace WellCommerce\Bu...
diversantvlz/WellCommerce
src/WellCommerce/Bundle/CmsBundle/Entity/PageRoute.php
PHP
mit
583
/* * GMLGraphReader.cpp * * Created on: 18.09.2014 * Author: Maximilian Vogel (maximilian.vogel@student.kit.edu) */ #include "GMLGraphReader.h" #include "../auxiliary/Enforce.h" #include "../auxiliary/StringTools.h" #include "../auxiliary/Log.h" #include <unordered_map> #include <exception> #include <fstream...
fmaschler/networkit
networkit/cpp/io/GMLGraphReader.cpp
C++
mit
5,327
<?php /* * This file is part of PHPUnit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPUnit\Framework\Constraint; use PHPUnit\Framework\ExpectationFailedException; ...
shi-yang/iisns
vendor/phpunit/phpunit/src/Framework/Constraint/LogicalNot.php
PHP
mit
4,566
<?php namespace Frontend\Modules\Blog\Tests\Actions; use Common\WebTestCase; class ArchiveTest extends WebTestCase { /** * @runInSeparateProcess */ public function testArchiveContainsBlogPosts() { $client = static::createClient(); $this->loadFixtures( $client, ...
Thijzer/forkcms
src/Frontend/Modules/Blog/Tests/Actions/ArchiveTest.php
PHP
mit
1,803
function downloadBlob(data: string, mimeType: string, filename: string) { const blob = new Blob([data], { type: mimeType }); var el = document.createElement('a'); el.setAttribute('href', window.URL.createObjectURL(blob)); el.setAttribute('download', filename); el.style.display = 'none'; document.body...
CatalystCode/ibex-dashboard
client/src/components/Dashboard/DownloadFile.tsx
TypeScript
mit
412
#include "jni/JniHelper.h" #include "jni/Java_org_cocos2dx_lib_Cocos2dxHelper.h" #include "CCApplication.h" #include "CCDirector.h" #include "CCEGLView.h" #include <android/log.h> #include <jni.h> #include <cstring> #define LOG_TAG "CCApplication_android Debug" #define LOGD(...) __android_log_print(ANDROID_LOG_D...
qq2588258/floweers
libs/cocos2dx/platform/android/CCApplication.cpp
C++
mit
2,999
/******************************************************************************* * Copyright (c) 2015 * * 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 withou...
jsettlers/settlers-remake
jsettlers.graphics/src/main/java/jsettlers/graphics/action/ExecutableAction.java
Java
mit
1,754
/* eslint-disable no-undef */ import update from 'react/lib/update'; import { mapValues, pickBy } from 'lodash'; import { flow, keyBy, mapValues as mapValuesFp } from 'lodash/fp'; import * as types from '../types'; const cdn = window.location.host.startsWith('pre') || window.location.host.startsWith('localhost') ? '...
worona/worona
client/packages/core-dashboard-worona/src/dashboard/build-dashboard-extension-worona/reducers/assets.js
JavaScript
mit
1,195
/* * 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 * regenerated. */ '...
lmazuel/azure-sdk-for-node
lib/services/serviceFabric/lib/models/statefulServiceReplicaHealthState.js
JavaScript
mit
1,913
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Defaults |-------------------------------------------------------------------------- | | This option controls the default authentication "guard" and password | reset options for y...
zorx/core
config/auth.php
PHP
mit
3,986
// Copyright: All contributers to the Umple Project // This file is made available subject to the open source license found at: // http://umple.org/license // // Models history (undo stack) in UmpleOnline History = new Object(); // History item currently on display; -1 means nothing saved. History.currentIndex...
ahmedvc/umple
umpleonline/scripts/umple_history.js
JavaScript
mit
4,793
//------------------------------------------------------------------ // // For licensing information and to get the latest version go to: // http://www.codeplex.com/perspective // // THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT...
winark/ai-algorithmplatform
AIAlgorithmPlatform/2008/reference/Perspective/Perspective.Wpf3D/Shapes/Isocahedron3D.cs
C#
mit
2,143
/** * @fileoverview 管道对象,包含过滤规则和被过滤的数据,作为数据树的节点 * @authors Tony Liang <pillar0514@163.com> */ define('mods/model/pipe',function(require,exports,module){ var $ = require('lib'); var $model = require('lib/mvc/model'); var $tip = require('mods/dialog/tip'); var $channel = require('mods/channel/global'); var $getD...
Esoul/log-analysis
src/js/mods/model/pipe.js
JavaScript
mit
6,524
module MergeRequests class BaseService < ::IssuableBaseService def create_note(merge_request) SystemNoteService.change_status(merge_request, merge_request.target_project, current_user, merge_request.state, nil) end def create_title_change_note(issuable, old_title) removed_wip = MergeRequest.w...
shinexiao/gitlabhq
app/services/merge_requests/base_service.rb
Ruby
mit
2,503
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace System.Buffers.Text { public partial class SymbolTable { private sealed class Utf8InvariantSymbolTable : SymbolTable { pri...
benaadams/corefxlab
src/System.Text.Primitives/System/Text/SymbolTable/SymbolTable_utf8.cs
C#
mit
3,497
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
f111fei/vscode
src/vs/editor/common/worker/editorWorkerServer.ts
TypeScript
mit
5,557
/* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ const path = require("path") const jade = require("jade") const fs = require("fs") describe("templates", function () { c...
joeyAghion/force
src/desktop/apps/galleries_institutions/components/dropdown/test/templates.test.js
JavaScript
mit
3,005
package com.ouwenjie.note.utils; import android.app.ActivityManager; import android.content.Context; import android.content.Intent; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.net.Uri; import android.os.Handler; import android.o...
JackOwen/Jide-Note
app/src/main/java/com/ouwenjie/note/utils/SysUtils.java
Java
mit
6,402
require 'test_helper' class EducationTest < ActiveSupport::TestCase # Replace this with your real tests. test "the truth" do assert true end end
KevinRPope/defriendalize
test/unit/education_test.rb
Ruby
mit
156
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="TypographicResolution.cs" company="QuantityTypes"> // Copyright (c) 2014 QuantityTypes contributors // </copyright> // <summary> // Implements the operator /. // </summa...
BadBabyJames/QunityTypes
Source/QuantityTypes/Operators/TypographicResolution.cs
C#
mit
1,349
// Github: https://github.com/shdwjk/Roll20API/blob/master/DarknessClosingIn/DarknessClosingIn.js // By: The Aaron, Arcane Scriptomancer // Contact: https://app.roll20.net/users/104025/the-aaron var DarknessClosingIn = DarknessClosingIn || (function() { 'use strict'; var version = 0.1, schemaVersion =...
maekstr/roll20-api-scripts
DarknessClosingIn/DarknessClosingIn.js
JavaScript
mit
2,062
require 'aws/ops_works' class Service::AwsOpsWorks < Service::HttpPost self.title = 'AWS OpsWorks' string :app_id, # see AppId at http://docs.aws.amazon.com/opsworks/latest/APIReference/API_App.html :stack_id, # see StackId at http://docs.aws.amazon.com/opsworks/latest/A...
github/github-services
lib/services/aws_ops_works.rb
Ruby
mit
5,350
// // CreatePrerenderSubgraph.cpp // HCi571X-ARToolkit // // Created by Dr.-Ing. Rafael Radkowski on 3/6/13. // Copyright (c) 2013 Dr.-Ing. Rafael Radkowski. All rights reserved. // #include "PrerenderSubgraph.h" void PrerenderSubgraph::create(osg::Group *subgraph, ...
rafael-radkowski/HCI571-AR
19_Magic_Lens/PrerenderSubgraph.cpp
C++
mit
2,293
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationNetworkLocked = (props) => ( <SvgIcon {...props}> <path d="M19.5 10c.17 0 .33.03.5.05V1L1 20h13v-3c0-.89.39-1.68 1-2.23v-.27c0-2.48 2.02-4.5 4.5-4.5zm2.5 6v-1.5c0-1.38-1.12-2.5-2.5-2.5S17 13.12 17 14.5V16c-.55 0-1 .45-1 1v4c0 .55.4...
alvarolobato/blueocean-plugin
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/network-locked.js
JavaScript
mit
597
# frozen_string_literal: true module Admin class PagesController < Admin::AdminController include PagesCore::Admin::PageJsonHelper include PagesCore::Admin::NewsPageController before_action :find_categories before_action :find_page, only: %i[show edit update destroy move] require_authorization ...
manualdesign/pages
app/controllers/admin/pages_controller.rb
Ruby
mit
3,415
<?php /** * @package hubzero-cms * @copyright Copyright 2005-2019 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ use Hubzero\Content\Migration\Base; // No direct access defined('_HZEXEC_') or die(); /** * Migration script for adding Antispam - Linkrife plugin **/ class Mig...
zweidner/hubzero-cms
core/plugins/antispam/linkrife/migrations/Migration20170831000000PlgAntispamLinkrife.php
PHP
mit
575
// 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.Diagnostics; using System.Runtime.InteropServices; using System.Text; internal static pa...
mafiya69/corefx
src/Common/src/Interop/Unix/System.Native/Interop.IPAddress.cs
C#
mit
2,959
<?php /* * This file is part of the Haven package. * * (c) Stéphan Champagne <sc@evocatio.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Haven\Bundle\PosBundle\Controller; // Symfony includes use Symfony\Componen...
havenlib/haven-standard
src/Haven/Bundle/PosBundle/Controller/BasketController.php
PHP
mit
12,579
define([ 'ufojs/main' , 'ufojs/errors' , 'ufojs/ufoLib/filenames' , 'ufojs/ufoLib/validators' , 'ufojs/ufoLib/glifLib/misc'], function( main , errors , filenames , validators , misc ) { "use strict"; doh.register("ufoLib.glifLib.misc", [ /** * this wraps ufoLib/filenames.userNam...
moyogo/ufoJS
tests/ufoLib/glifLib/misc.js
JavaScript
mit
3,610
/* jshint maxlen: false */ var ca = require('../client_action'); var api = module.exports = {}; api._namespaces = ['cat', 'cluster', 'indices', 'nodes', 'snapshot']; /** * Perform a [abortBenchmark](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html) request * * @param {Obj...
Christopheraburns/projecttelemetry
node_modules/elasticsearch/src/lib/apis/1_3.js
JavaScript
mit
164,513
<?php $name='DejaVuSansCondensed-Bold'; $type='TTF'; $desc=array ( 'Ascent' => 928, 'Descent' => -236, 'CapHeight' => 928, 'Flags' => 262148, 'FontBBox' => '[-962 -415 1778 1174]', 'ItalicAngle' => 0, 'StemV' => 165, 'unitsPerEm' => 2048, 'MissingWidth' => 540, ); $up=-63; $ut=44; $ttffile='D:/UniServ...
VitalyKoynash/univer.admin
vendor/kartik-v/mpdf/ttfontdata/dejavusanscondensedB.mtx.php
PHP
mit
52,846
import { IListService, IList, IListItem } from '../services'; import { SPHttpClient, ISPHttpClientOptions, SPHttpClientResponse } from '@microsoft/sp-http'; import { IWebPartContext } from '@microsoft/sp-webpart-base'; export class ListService implements IListService { constructor(private context: IWebPartC...
AJIXuMuK/sp-dev-fx-webparts
samples/react-custompropertypanecontrols/src/webparts/dropdownWithRemoteData/services/ListService.ts
TypeScript
mit
2,073
<?php /* * WellCommerce Open-Source E-Commerce Platform * * This file is part of the WellCommerce package. * * (c) Adam Piotrowski <adam@wellcommerce.org> * * For the full copyright and license information, * please view the LICENSE file that was distributed with this source code. */ namespace WellCommerce\Bu...
diversantvlz/WellCommerce
src/WellCommerce/Bundle/OAuthBundle/DependencyInjection/WellCommerceOAuthExtension.php
PHP
mit
596
module.exports = { 'name': 'mad', 'category': 'Statistics', 'syntax': [ 'mad(a, b, c, ...)', 'mad(A)' ], 'description': 'Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.', 'exam...
ocadni/citychrone
node_modules/mathjs/lib/expression/embeddedDocs/function/statistics/mad.js
JavaScript
mit
447
define({ "selectAnalysisTools": "Selecione ferramentas de análise para utilizar no widget.", "graphicalDisplay": "Visualização gráfica", "toolSetting": "Configurar detalhes da ferramenta", "toolLabel": "O nome de visualização da ferramenta", "showHelpTip": "Mostrar links de ajuda no widget", "showCurrentMap...
cmccullough2/cmv-wab-widgets
wab/2.3/widgets/Analysis/setting/nls/pt-br/strings.js
JavaScript
mit
4,520
<?php namespace Oro\Bundle\DashboardBundle\Model; use Doctrine\Common\Collections\Collection; use Oro\Bundle\OrganizationBundle\Entity\Organization; use Oro\Bundle\UserBundle\Entity\User; use Oro\Bundle\DashboardBundle\Entity\Dashboard; use Oro\Component\PhpUtils\ArrayUtil; class DashboardModel implements EntityMo...
Djamy/platform
src/Oro/Bundle/DashboardBundle/Model/DashboardModel.php
PHP
mit
6,782
/* * This file is part of SpongeAPI, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
AlphaModder/SpongeAPI
src/main/java/org/spongepowered/api/data/manipulator/mutable/entity/InvisibilityData.java
Java
mit
2,454
// 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.Threading; using System.Collections.Generic; using System.Reflection; namespace System.Runtime.Seriali...
shmao/corefx
src/System.Runtime.Serialization.Formatters/src/System/Runtime/Serialization/Formatters/Binary/BinaryObjectInfo.cs
C#
mit
26,352
#!/usr/bin/python # -*- coding: utf-8 -*- """ Magic Encode This module tries to convert an UTF-8 string to an encoded string for the printer. It uses trial and error in order to guess the right codepage. The code is based on the encoding-code in py-xml-escpos by @fvdsn. :author: `Patrick Kanzler <dev@pkanzler.de>`_ ...
belono/python-escpos
src/escpos/magicencode.py
Python
mit
10,963
// Type definitions for ramda 0.25 // Project: https://github.com/donnut/typescript-ramda // Definitions by: Erwin Poeze <https://github.com/donnut> // Matt DeKrey <https://github.com/mdekrey> // Matt Dziuban <https://github.com/mrdziuban> // Stephen King <https://github....
AbraaoAlves/DefinitelyTyped
types/ramda/index.d.ts
TypeScript
mit
92,922
module.exports = { 'baseURL': process.env.BASEURL ? process.env.BASEURL.replace(/\/$/, '') : 'http://localhost:4000', 'waitTime': isNaN(parseInt(process.env.TIMEOUT, 10)) ? 5000 : parseInt(process.env.TIMEOUT, 10), 'before': function() { /* eslint-disable no-console */ console.log('WaitTime ...
JoeSava/developer-dot
_test/browser/api-reference/avatax.js
JavaScript
mit
8,117
// Copyright © Microsoft Corporation. All Rights Reserved. // This code released under the terms of the // Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.) //***************************************************************************** // MSDN Reference Link: http://msdn.microsoft.com/li...
adamdriscoll/TfsIntegrationPlatform
IntegrationPlatform/Core/WinCredentials/PromptForCredential.cpp
C++
mit
21,472
import time time.sleep(0.25) contents = clipboard.get_selection() retCode, abbr = dialog.input_dialog("New Abbreviation", "Choose an abbreviation for the new phrase") if retCode == 0: if len(contents) > 20: title = contents[0:17] + "..." else: title = contents folder = engine.get_folder("My ...
andresgomezvidal/autokey_scripts
data/Scripts/Sample_Scripts/Abbreviation from selection.py
Python
mit
391
// Description: Entity Framework Bulk Operations & Utilities (EF Bulk SaveChanges, Insert, Update, Delete, Merge | LINQ Query Cache, Deferred, Filter, IncludeFilter, IncludeOptimize | Audit) // Website & Documentation: https://github.com/zzzprojects/Entity-Framework-Plus // Forum & Issues: https://github.com/zzzprojec...
zzzprojects/EntityFramework-Plus
src/test/Z.Test.EntityFramework.Plus.EF6/QueryFilter/DbSet_AsNoFilter/WithGlobalManagerFilter/SingleFilter_Enabled.cs
C#
mit
1,419
require File.expand_path('../example_setup', __FILE__) require 'flipper' require 'flipper/adapters/memory' adapter = Flipper::Adapters::Memory.new flipper = Flipper.new(adapter) # Some class that represents what will be trying to do something class User attr_reader :id def initialize(id) @id = id end #...
gdavison/flipper
examples/percentage_of_actors_enabled_check.rb
Ruby
mit
904
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sylius\Behat\Context\Ui\Admin; use Behat\Behat\Context\Context; use Sylius\Behat\Page\Admin...
Lowlo/Sylius
src/Sylius/Behat/Context/Ui/Admin/ManagingExchangeRatesContext.php
PHP
mit
11,347
#!/usr/bin/env node /* The MIT License (MIT) Copyright (c) 2007-2013 Einar Lielmanis and contributors. 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 ...
J2TeaM/js-beautify
js/lib/cli.js
JavaScript
mit
14,890
DEBUG = True DISCOVERY_SERVICE_URL = 'localhost:6100/discoveryservice'
pwgn/microtut
commentservice/settings.py
Python
mit
72
# This file is a part of Redmin Agile (redmine_agile) plugin, # Agile board plugin for redmine # # Copyright (C) 2011-2015 RedmineCRM # http://www.redminecrm.com/ # # redmine_agile is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free S...
cema-sp/docker-redmine
to_data/plugins/redmine_agile/lib/redmine_agile/hooks/views_issues_hook.rb
Ruby
mit
1,258
var util = require('util'); /** * @param options {Object} A data blob parsed from a query string or JSON * response from the Asana API * @option {String} error The string code identifying the error. * @option {String} [error_uri] A link to help and information about the error. * @option {String} [error_descripti...
Asana/node-asana
lib/auth/oauth_error.js
JavaScript
mit
761
# encoding: utf-8 """Definition of french pronoun related features""" from __future__ import unicode_literals PERSONAL = "personal" SPECIAL_PERSONAL = "special_personal" SNUMERAL = "snumeral" POSSESSIVE = "possessive" DEMONSTRATIV = "demonstrativ" RELATIVE = "relative" INTERROGATIVE = "interrogative" INDEFINITE = "...
brouberol/pynlg
pynlg/lexicon/feature/pronoun/fr.py
Python
mit
332
package chart import ( "errors" "fmt" "io" "math" "github.com/golang/freetype/truetype" ) // StackedBar is a bar within a StackedBarChart. type StackedBar struct { Name string Width int Values []Value } // GetWidth returns the width of the bar. func (sb StackedBar) GetWidth() int { if sb.Width == 0 { ...
nicholasjackson/bench
vendor/github.com/wcharczuk/go-chart/stacked_bar_chart.go
GO
mit
8,263
package helpers import ( "testing" "github.com/stretchr/testify/assert" "gitlab.com/gitlab-org/gitlab-ci-multi-runner/common" "gitlab.com/gitlab-org/gitlab-ci-multi-runner/helpers" "os" ) var downloaderCredentials = common.BuildCredentials{ ID: 1000, Token: "test", URL: "test", } func TestArtifactsDow...
soiff/gitlab-ci-multi-runner
commands/helpers/artifacts_downloader_test.go
GO
mit
1,990
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
Krzysztof-Cieslak/vscode
src/vs/css.build.js
JavaScript
mit
17,970
namespace SIL.XForge.WebApi.Server.Dtos { public class ParatextProjectDto { public string Id { get; set; } public string Name { get; set; } public string LanguageTag { get; set; } public string LanguageName { get; set; } } }
sillsdev/web-scriptureforge
src/netcore-api/SIL.XForge.WebApi.Server/Dtos/ParatextProjectDto.cs
C#
mit
269
DEMO.App.factory("utilitiesService", ["$http", function ($http) { "use strict"; var getQueryStringValue = function (name) { try { var args = window.location.search.substring(1).split("&"); var r = ""; for (var i = 0; i < args.length; i++) { var n = ...
dafunkphenomenon/dev
JSLinkModule/JSLinkModule/Scripts/app/services/utilities.js
JavaScript
mit
618
'use strict'; var grunt = require('grunt'); var fs = require('fs'); var rimraf = require('rimraf'); var mkdirp = require('mkdirp'); var flow = require('nue').flow; var as = require('nue').as; var _h = require('./testHelpers'); var throwOrDone = _h.throwOrDone; var output = _h.fixtures('output'); var istanbul = require...
acvetkov/grunt-istanbul
test/istanbul_test.js
JavaScript
mit
4,311