repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
Alwnikrotikz/marinemap
lingcod/google-analytics/admin.py
517
from django.conf import settings from django.contrib import admin from django.contrib.sites.models import Site from models import Analytics if getattr(settings, 'GOOGLE_ANALYTICS_MODEL', False): class AnalyticsInline(admin.StackedInline): model = Analytics extra = 1 class SiteAdminGA(admin.Mod...
bsd-3-clause
johnd0e/FarManager
plugins/newarc.ex/Framework/Src/UnicodeAnsi.cpp
1378
#include "UnicodeAnsi.hpp" //как-то ANSI тут неумно звучит wchar_t* AnsiToUnicode(const char* lpSrc, int CodePage) { if ( !lpSrc ) return NULL; int nLength = MultiByteToWideChar(CodePage, 0, lpSrc, -1, NULL, 0); wchar_t* lpResult = (wchar_t*)malloc((nLength+1)*sizeof(wchar_t)); MultiByteToWideChar(CodePage,...
bsd-3-clause
shawnl/go
src/cmd/7g/peep.go
2791
// Derived from Inferno utils/6c/peep.c // http://code.google.com/p/inferno-os/source/browse/utils/6c/peep.c // // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) // Portions Copyright © 1997-1999 Vita Nuova Limited // Portions C...
bsd-3-clause
hsu/chrono
src/collision/edgetempest/ChCAABB.cpp
6739
// // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2010 Alessandro Tasora // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file at the top level of the distribution // and at http://projectchrono.org/license-chrono.txt. // ///...
bsd-3-clause
meego-tablet-ux/meego-app-browser
webkit/database/database_util_unittest.cc
1947
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/utf_string_conversions.h" #include "testing/gtest/include/gtest/gtest.h" #include "webkit/database/database_util.h" using webkit_datab...
bsd-3-clause
localheinz/modules.zendframework.com
config/application.config.php
504
<?php return [ 'modules' => [ 'DoctrineModule', 'DoctrineORMModule', 'ZF\DevelopmentMode', 'ZfcBase', 'ZfcUser', 'ScnSocialAuth', 'EdpGithub', 'Application', 'User', 'ZfModule', ], 'module_listener_options' => [ 'config...
bsd-3-clause
stephens2424/php
testdata/fuzzdir/corpus/ext_ctype_tests_ctype_print_variation4.php
767
<?php /* Prototype : bool ctype_print(mixed $c) * Description: Checks for printable character(s) * Source code: ext/ctype/ctype.c */ /* * Pass octal and hexadecimal values to ctype_print() to test behaviour */ echo "*** Testing ctype_print() : usage variations ***\n"; $orig = setlocale(LC_CTYPE, "C"); $octal...
bsd-3-clause
tyrexsoftware/ppui
vendor/kartik-v/yii2-date-range/assets/js/locales/ar-sa.js
3478
// moment.js locale configuration // locale : Arabic Saudi Arabia (ar-sa) // author : Suhail Alkowaileet : https://github.com/xsoh (function (factory) { if (typeof define === 'function' && define.amd) { define(['moment'], factory); // AMD } else if (typeof exports === 'object') { module...
bsd-3-clause
akra/alchemy_cms
lib/alchemy/hints.rb
1179
module Alchemy module Hints # Returns a hint # # To add a hint to a content pass +hint: true+ to the element definition in its element.yml # # Then the hint itself is placed in the locale yml files. # # Alternativly you can pass the hint itself to the hint key. # # == Locale Exampl...
bsd-3-clause
uonafya/jphes
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/category/GetDataElementCategoryListAction.java
4483
package org.hisp.dhis.dd.action.category; /* * 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 reta...
bsd-3-clause
axinging/chromium-crosswalk
content/browser/wake_lock/wake_lock_service_context.cc
2899
// 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/wake_lock/wake_lock_service_context.h" #include <utility> #include "base/bind.h" #include "build/build_config.h" #include "con...
bsd-3-clause
BiovistaInc/gwt-d3
gwt-d3-demo/src/main/java/com/github/gwtd3/demo/client/testcases/scales/TestIdentityScale.java
5103
/** * Copyright (c) 2013, Anthony Schiochet and Eric Citaire * 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, thi...
bsd-3-clause
michalczapko/rubinius-x
vm/builtin/compiled_code.hpp
4303
#ifndef RBX_BUILTIN_COMPILEDCODE_HPP #define RBX_BUILTIN_COMPILEDCODE_HPP #include "builtin/executable.hpp" namespace rubinius { class InstructionSequence; class MachineCode; class ConstantScope; class CallSite; namespace jit { class RuntimeDataHolder; } class CompiledCode : public Executable { ...
bsd-3-clause
djn21/proman
_protected/vendor/wingu/reflection/src/ReflectionParameter.php
1729
<?php namespace Wingu\OctopusCore\Reflection; /** * Reflection about a parameter. */ class ReflectionParameter extends \ReflectionParameter { /** * Parameter function. * * @var mixed */ private $function; /** * Constructor. * * @param string $function The function to...
bsd-3-clause
heracek/django-nonrel
tests/regressiontests/views/tests/defaults.py
3727
from os import path from django.conf import settings from django.test import TestCase from django.contrib.contenttypes.models import ContentType from regressiontests.views.models import Author, Article, UrlArticle class DefaultsTests(TestCase): """Test django views in django/views/defaults.py""" fixtures = [...
bsd-3-clause
stephenplaza/NeuTu
neurolabi/gui/dialogs/swcsizedialog.cpp
392
#include "swcsizedialog.h" #include "ui_swcsizedialog.h" SwcSizeDialog::SwcSizeDialog(QWidget *parent) : QDialog(parent), ui(new Ui::SwcSizeDialog) { ui->setupUi(this); } SwcSizeDialog::~SwcSizeDialog() { delete ui; } double SwcSizeDialog::getAddValue() { return ui->doubleAddSpinBox->value(); } double Swc...
bsd-3-clause
tempbottle/DrizzleJDBC
src/test/java/org/drizzle/jdbc/DriverTest.java
54132
package org.drizzle.jdbc; import org.junit.Assert; import org.junit.Test; import org.junit.After; import org.drizzle.jdbc.internal.common.packet.buffer.WriteBuffer; import org.drizzle.jdbc.internal.common.packet.RawPacket; import org.drizzle.jdbc.internal.common.*; import static org.junit.Assert.assertFalse; import s...
bsd-3-clause
diox/olympia
src/olympia/files/admin.py
1815
from django.contrib import admin from django.utils.html import format_html from .models import File @admin.register(File) class FileAdmin(admin.ModelAdmin): view_on_site = False raw_id_fields = ('version',) list_display = ('__str__', 'addon_slug', 'addon_guid') search_fields = ( '^version__a...
bsd-3-clause
AlloVince/eva-engine
module/User/src/User/Api/Controller/RoleController.php
553
<?php namespace User\Api\Controller; use Eva\Api, Eva\Mvc\Controller\ActionController; class RoleController extends ActionController { public function multicheckboxAction($params = null) { $model = Api::_()->getModel('User\Model\Role'); $items = $model->getRoleList(); $valueOptions...
bsd-3-clause
arrayfire/arrayfire-rust
src/core/defines.rs
18798
use num::Complex; use std::fmt::Error as FmtError; use std::fmt::{Display, Formatter}; #[cfg(feature = "afserde")] use serde::{Deserialize, Serialize}; /// Error codes #[repr(u32)] #[derive(Clone, Copy, Debug, PartialEq)] #[cfg_attr(feature = "afserde", derive(Serialize, Deserialize))] pub enum AfError { /// The ...
bsd-3-clause
JonathanLogan/mute
msgdb/messages.go
6733
// Copyright (c) 2015 Mute Communications Ltd. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package msgdb import ( "database/sql" "strings" "github.com/mutecomm/mute/log" "github.com/mutecomm/mute/uid/identity" ) // AddMessage adds message between selfI...
bsd-3-clause
patrickm/chromium.src
ppapi/shared_impl/var_value_conversions_unittest.cc
13555
// Copyright (c) 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 "ppapi/shared_impl/var_value_conversions.h" #include <cmath> #include <cstring> #include "base/logging.h" #include "base/memory/ref_counted...
bsd-3-clause
mxOBS/deb-pkg_trusty_chromium-browser
third_party/webrtc/base/openssladapter.cc
24564
/* * Copyright 2008 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 ...
bsd-3-clause
hybridgroup/ruby-opencv
test/test_mouseevent.rb
371
#!/usr/bin/env ruby # -*- mode: ruby; coding: utf-8 -*- require 'test/unit' require 'opencv' require File.expand_path(File.dirname(__FILE__)) + '/helper' include OpenCV include GUI # Tests for OpenCV::MouseEvent class TestMouseEvent < OpenCVTestCase def test_initialize assert_not_nil(MouseEvent.new) assert_...
bsd-3-clause
msf-oca-his/dhis2-core
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/Order.java
7317
/* * Copyright (c) 2004-2022, 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 the above copyright notice, this * list of cond...
bsd-3-clause
yungsters/rain-workload-toolkit
src/radlab/rain/workload/rubbos/StoreStoryOperation.java
4535
/* * Copyright (c) 2010, Regents of the University of California * 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 noti...
bsd-3-clause
hispindia/dhis2-Core
dhis-2/dhis-services/dhis-service-dxf2/src/test/java/org/hisp/dhis/dxf2/metadata/objectbundle/validation/DummyCheck.java
3065
/* * Copyright (c) 2004-2022, 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 the above copyright notice, this * list of cond...
bsd-3-clause
hybridgroup/alljoyn
alljoyn/alljoyn_core/samples/windows/PhotoChat/AllJoynNET/AlljoynConnectForm.cs
4669
// **************************************************************************** // Copyright (c) 2011, AllSeen Alliance. All rights reserved. // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyrig...
isc
andybest/ShaderFiddle
ShaderFiddle/ace/ext-whitespace.js
6877
/* ***** 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 sou...
isc
sujaypatel16/fear-the-repo
src/store/configureStore.js
1059
import rootReducer from '../reducers'; import thunk from 'redux-thunk'; import routes from '../routes'; import { reduxReactRouter } from 'redux-router'; import createHistory from 'history/lib/createBrowserHistory'; import DevTools from 'containers/DevTools'; import { applyMiddleware, compose, createStore } from 'redux'...
mit
gurkanuzunca/sirius-ci
admin/language/en/form_validation_lang.php
793
<?php $lang['required'] = "%s"; $lang['isset'] = "%s"; $lang['valid_email'] = "%s"; $lang['valid_emails'] = "%s"; $lang['valid_url'] = "%s"; $lang['valid_ip'] = "%s"; $lang['min_length'] = "%s"; $lang['max_length'] = "%s"; $lang['exact_length'] = "%s"; $lang['alpha'] = "%s"; $lang['alpha_numeric'] ...
mit
andrewchart/andrewchart.co.uk-2017
wp-content/plugins/types/library/toolset/toolset-common/toolset-forms/classes/class.fieldconfig.php
6657
<?php /** * * */ if (!class_exists("FieldConfig")) { /** * Description of FieldConfig * * @author ontheGoSystem */ class FieldConfig { private $id; private $name = "cred[post_title]"; private $value; private $type = 'textfield'; ...
mit
Qinjianbo/blog
node_modules/caniuse-lite/data/features/css-text-spacing.js
849
module.exports={A:{A:{"2":"H D fB","161":"G E A B"},B:{"161":"1 C p J L N I"},C:{"2":"0 1 2 3 5 6 7 8 9 dB FB F K H D G E A B C p J L N I O P Q R S T U V W X Y Z a b d e f g h i j k l m n o M q r s t u v w x y z BB CB DB bB VB"},D:{"2":"0 1 2 3 5 6 7 8 9 F K H D G E A B C p J L N I O P Q R S T U V W X Y Z a b d e f g h...
mit
JakduK/JakduK
src/main/java/com/jakduk/api/service/SearchService.java
17159
package com.jakduk.api.service; import com.jakduk.api.common.Constants; import com.jakduk.api.common.util.ObjectMapperUtils; import com.jakduk.api.common.util.UrlGenerationUtils; import com.jakduk.api.configuration.JakdukProperties; import com.jakduk.api.exception.ServiceError; import com.jakduk.api.exception.ServiceE...
mit
looeee/three.js
examples/jsm/postprocessing/UnrealBloomPass.js
12447
import { AdditiveBlending, Color, LinearFilter, MeshBasicMaterial, RGBAFormat, ShaderMaterial, UniformsUtils, Vector2, Vector3, WebGLRenderTarget } from 'three'; import { Pass, FullScreenQuad } from './Pass.js'; import { CopyShader } from '../shaders/CopyShader.js'; import { LuminosityHighPassShader } from '....
mit
unaio/una
modules/boonex/forum/updates/9.0.2_9.0.3/source/classes/BxForumTemplate.php
8344
<?php defined('BX_DOL') or die('hack attempt'); /** * Copyright (c) UNA, Inc - https://una.io * MIT License - https://opensource.org/licenses/MIT * * @defgroup Forum Forum * @ingroup UnaModules * * @{ */ /* * Module representation. */ class BxForumTemplate extends BxBaseModTextTemplate { /** ...
mit
pierre/active_merchant
test/unit/gateways/authorize_net_test.rb
39533
require 'test_helper' class AuthorizeNetTest < Test::Unit::TestCase include CommStub BAD_TRACK_DATA = '%B378282246310005LONGSONLONGBOB1705101130504392?' TRACK1_DATA = '%B378282246310005^LONGSON/LONGBOB^1705101130504392?' TRACK2_DATA = ';4111111111111111=1803101000020000831?' def setup @gateway = Author...
mit
matiasmm/sfCodeSearch
src/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/TestApplication/Sensio/FooBundle/SensioFooBundle.php
467
<?php namespace TestApplication\Sensio\FooBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; /* * This file is part of the Symfony framework. * * (c) Fabien Potencier <fabien.potencier@symfony-project.com> * * This source file is subject to the MIT license that is bundled * with this source code in the fi...
mit
anudeepsharma/azure-sdk-for-java
azure-batch/src/main/java/com/microsoft/azure/batch/protocol/implementation/BatchServiceClientImpl.java
9056
/** * 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. */ package com.microsoft.azure.batch.protocol.implementation; import com.microsoft.azure.A...
mit
andydandy74/ClockworkForDynamo
nodes/1.x/python/View.ResizeCropBox.py
839
import clr clr.AddReference('RevitAPI') from Autodesk.Revit.DB import * clr.AddReference("RevitNodes") import Revit clr.ImportExtensions(Revit.GeometryConversion) clr.AddReference("RevitServices") import RevitServices from RevitServices.Persistence import DocumentManager from RevitServices.Transactions import Transac...
mit
NaosProject/Naos.MessageBus
Naos.MessageBus.Hangfire.Sender/.recipes/Spritely.Redo/RetriableFunction.cs
6826
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="RetriableFunction.cs"> // Copyright (c) 2016. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // </c...
mit
sufuf3/cdnjs
ajax/libs/froala-editor/3.0.4/js/languages/sk.js
11499
/*! * froala_editor v3.0.4 (https://www.froala.com/wysiwyg-editor) * License https://froala.com/wysiwyg-editor/terms/ * Copyright 2014-2019 Froala Labs */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('froala-editor')) : typeof define === 'function...
mit
davehorton/drachtio-server
deps/boost_1_77_0/libs/beast/test/beast/ssl.cpp
547
// // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // Official repository: https://github.com/boostorg/beast // // If including Wind...
mit
20steps/alexa
web/wp-content/plugins/bwp-google-xml-sitemaps/src/common-functions.php
484
<?php function bwp_gxs_get_filename($sitemap_name) { global $bwp_gxs; // cache filename, use gz all the time to save space // @todo save both .xml version and .xml.gz version // append home_url to be WPMS compatible $filename = 'gxs_' . md5($sitemap_name . '_' . home_url()); $filename .= '.xml.gz'; return tr...
mit
putrinolab1/node-hmd
src/platform/win/LibOVR/Src/Util/Util_LatencyTest2Reader.cpp
3478
/************************************************************************************ Filename : Util_LatencyTest2Reader.cpp Content : Shared functionality for the DK2 latency tester Created : July 8, 2014 Authors : Volga Aksoy, Chris Taylor Copyright : Copyright 2014 Oculus VR, Inc....
mit
briandilley/jsonrpc4j
src/test/java/com/googlecode/jsonrpc4j/spring/serviceb/TemperatureImpl.java
487
package com.googlecode.jsonrpc4j.spring.serviceb; import com.googlecode.jsonrpc4j.spring.AutoJsonRpcServiceImpl; /** * <p>This implementation should be picked up by the * {@link com.googlecode.jsonrpc4j.spring.AutoJsonRpcServiceImplExporter} * class.</p> */ @AutoJsonRpcServiceImpl(additionalPaths = { "/api-web...
mit
cmattoon/today-i-learned
scanner/src/menu.cpp
18
#include "menu.h"
mit
adaiguoguo/gitlab_globalserarch
app/services/issues/update_service.rb
1326
module Issues class UpdateService < Issues::BaseService def execute(issue) state = params[:state_event] case state when 'reopen' Issues::ReopenService.new(project, current_user, {}).execute(issue) when 'close' Issues::CloseService.new(project, current_user, {}).execute(iss...
mit
ArcherSys/ArcherVMPeridot
htdocs/piwik/plugins/LanguagesManager/angularjs/translationsearch/translationsearch-controller.js
530
/*! * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ angular.module('piwikApp').controller('TranslationSearchController', function($scope, piwikApi) { $scope.existingTranslations = []; piwikApi.fetch({ metho...
mit
rd-switchboard/Browser
applications/apps/spotlight/controllers/spotlight.php
3963
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Spotlight extends MX_Controller { function __construct() { parent::__construct(); $this->load->config('spotlight'); acl_enforce('PORTAL_STAFF'); } function index(){ // $this->checkIsWriteable(); $data['js_lib'] = array('c...
mit
amuniz/checkstyle-plugin
src/main/java/hudson/plugins/checkstyle/rules/TopicRule.java
2598
package hudson.plugins.checkstyle.rules; import java.io.IOException; import java.io.StringWriter; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.apache.commons.beanutils.MethodUtils; import org.apa...
mit
vincent-leonardo/sphero.js
Gruntfile.js
1622
"use strict"; var Mocha = require("mocha"), uglify = require("uglify-js"), ESLint = require("eslint").CLIEngine, browserify = require("browserify"); module.exports = function(grunt) { grunt.registerTask("default", ["lint", "test"]); grunt.registerTask("lint", "Lints code with ESLint", function() { ...
mit
asonas/idobata-hooks
lib/hooks/mackerel/hook.rb
367
module Idobata::Hook class Mackerel < Base screen_name 'Mackerel' icon_url 'https://github.com/mackerelio.png' template_name { custom_template_name } helper Helper private def custom_template_name if payload.event == 'alert' 'alert.html.haml' else 'd...
mit
corydolphin/flask-cors
flask_cors/decorator.py
4937
# -*- coding: utf-8 -*- """ decorator ~~~~ This unit exposes a single decorator which should be used to wrap a Flask route with. It accepts all parameters and options as the CORS extension. :copyright: (c) 2016 by Cory Dolphin. :license: MIT, see LICENSE for more details. """ from functools...
mit
loomnetwork/apig
_example/version/version.go
1482
package version import ( "math" "strconv" "strings" "github.com/gin-gonic/gin" ) func New(c *gin.Context) (string, error) { ver := "" header := c.Request.Header.Get("Accept") header = strings.Join(strings.Fields(header), "") if strings.Contains(header, "version=") { ver = strings.Split(strings.SplitAfter(...
mit
bezlio/bezlio-gallery
production-team-leader/versions/1.1/js/onDataChange.js
11220
define(["./employees.js"], function (employees) { function OnDataChange (bezl) { // Loop through the employees list and add them to bezl.vars.employees no matter what // and to the team if the SupervisorID matches the currenly logged in user if (bezl.data.Employees) { bezl.vars...
mit
RetroView/hecl
blender/hecl/armature.py
1405
import struct def cook(writebuf, arm): writebuf(struct.pack('I', len(arm.bones))) for bone in arm.bones: writebuf(struct.pack('I', len(bone.name))) writebuf(bone.name.encode()) writebuf(struct.pack('fff', bone.head_local[0], bone.head_local[1], bone.head_local[2])) if bone.par...
mit
clydin/angular-cli
packages/angular_devkit/build_angular/src/utils/run-module-as-observable-fork.ts
2586
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { BuilderOutput } from '@angular-devkit/architect'; import { ForkOptions, fork } from 'child_process'; import ...
mit
coderFirework/app
js/Cesium-Tiles/Source/Core/buildModuleUrl.js
3106
/*global define*/ define([ '../ThirdParty/Uri', './defined', './DeveloperError', './getAbsoluteUri', './joinUrls', 'require' ], function( Uri, defined, DeveloperError, getAbsoluteUri, joinUrls, require) { 'use strict...
mit
SUSE/salt-netapi-client
src/test/java/com/suse/salt/netapi/calls/CallAsyncEventsTest.java
10346
package com.suse.salt.netapi.calls; import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; import static com.github.tomakehurst.wiremock.client.WireMock.equalToJson; import static com.github.tomakehurst.wiremock.client.WireMock.post; import static com.github.tomakehurst.wiremock.client.WireMock.stubF...
mit
sloria/pypi-cli
tests/test_utils.py
148
# -*- coding: utf-8 -*- import pypi_cli as pypi def test_no_division_by_zero_in_bargraph(): assert pypi.TICK not in pypi.bargraph({'foo': 0})
mit
Taebu/prq
application/language/korean/form_validation_lang.php
2355
<?php $lang['required'] = "%s 필드가 필요합니다."; $lang['isset'] = "%s 필드는 반드시 필요한 값입니다."; $lang['valid_email'] = "%s 필드는 유효한 이메일 주소를 반드시 포함해야 합니다."; $lang['valid_emails'] = "%s 필드는 모든 유효한 이메일 주소를 반드시 포함해야 합니다."; $lang['valid_url'] = "%s 필드는 유효한 URL을 포함해야 합니다."; $lang['valid_ip'] = "%s 필드는 유효한 IP를 포함해야 ...
mit
NateWardawg/godot
scene/2d/animated_sprite.cpp
20316
/*************************************************************************/ /* animated_sprite.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
mit
aspose-cells/Aspose.Cells-for-Cloud
SDKs/Aspose.Cells-Cloud-SDK-for-Ruby/lib/aspose_cells_cloud/models/comments_response.rb
2132
module AsposeCellsCloud # class CommentsResponse < BaseObject attr_accessor :comments, :code, :status # attribute mapping from ruby-style variable name to JSON key def self.attribute_map { # :'comments' => :'Comments', # :'code' => :'Code', ...
mit
stevenuray/XChange
xchange-kraken/src/main/java/org/knowm/xchange/kraken/dto/marketdata/KrakenSpreads.java
2422
package org.knowm.xchange.kraken.dto.marketdata; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Map.Entry; import org.knowm.xchange.kraken.dto.marketdata.KrakenSpreads.KrakenSpreadsDeserializer; import com.faster...
mit
sufuf3/cdnjs
ajax/libs/react-trend/1.2.2/react-trend.js
21571
/*! * react-trend v1.2.2 * MIT Licensed */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof export...
mit
friendsofagape/mt2414ui
node_modules/@angular/core/src/view/element.d.ts
1737
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { RendererType2 } from '../render/api'; import { SecurityContext } from '../sanitization/security'; import { B...
mit
mmkassem/gitlabhq
spec/lib/gitlab/diff/diff_refs_spec.rb
3690
# frozen_string_literal: true require 'spec_helper' RSpec.describe Gitlab::Diff::DiffRefs do let(:project) { create(:project, :repository) } describe '#==' do let(:commit) { project.commit('1a0b36b3cdad1d2ee32457c102a8c0b7056fa863') } subject { commit.diff_refs } context 'when shas are missing' do ...
mit
Liedx/fil-rouge
forum/phpBB3/phpbb/search/fulltext_postgres.php
36411
<?php /** * * This file is part of the phpBB Forum Software package. * * @copyright (c) phpBB Limited <https://www.phpbb.com> * @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ namespace phpbb\search; /** * Fulltext s...
mit
erykpiast/appetite
node_modules/sequelize/node_modules/sql/lib/node/query.js
8123
'use strict'; var assert = require('assert'); var sliced = require('sliced'); var util = require('util'); var Node = require('./'); var Select = require('./select'); var From = require('./from'); var Where = require('./where'); var OrderBy = require('./orderBy'); var...
mit
hegdekiranr/virtualreality
Assets/LeapMotion/Core/Scripts/Hands/RigidFinger.cs
2088
/****************************************************************************** * Copyright (C) Leap Motion, Inc. 2011-2017. * * Leap Motion proprietary and confidential. * * * ...
mit
jendewalt/jennifer_dewalt
db/migrate/20130610214126_create_one_page_pages.rb
164
class CreateOnePagePages < ActiveRecord::Migration def change create_table :one_page_pages do |t| t.text :content t.timestamps end end end
mit
ceyhuno/react-native-navigation
lib/android/app/src/main/java/com/reactnativenavigation/utils/ImageLoadingListenerAdapter.java
504
package com.reactnativenavigation.utils; import android.graphics.drawable.Drawable; import android.support.annotation.NonNull; import java.util.List; public class ImageLoadingListenerAdapter implements ImageLoader.ImagesLoadingListener { @Override public void onComplete(@NonNull List<Drawable> drawables) { ...
mit
evinsou/paperclip-googledrive
lib/paperclip/storage/google_drive.rb
10246
require 'active_support/core_ext/hash/keys' require 'active_support/inflector/methods' require 'active_support/core_ext/object/blank' require 'yaml' require 'erb' require 'google/api_client' require 'net/http' module Paperclip module Storage # * self.extended(base) add instance variable to attachment on call ...
mit
llopez/active_merchant
test/remote/gateways/remote_checkout_v2_test.rb
4420
require 'test_helper' class RemoteCheckoutV2Test < Test::Unit::TestCase def setup @gateway = CheckoutV2Gateway.new(fixtures(:checkout_v2)) @amount = 200 @credit_card = credit_card('4242424242424242', verification_value: '100', month: '6', year: '2018') @declined_card = credit_card('4000300011112220'...
mit
dbollaer/angular2-starter
examples/rx-draggable/app.ts
447
/// <reference path="../typings/_custom.d.ts" /> // Angular 2 import {Component, View} from 'angular2/angular2'; import {DragElement} from './components/drag-element'; /* * App Component * our top level component that holds all of our components */ @Component({ selector: 'app' }) @View({ directives: [ DragEle...
mit
m4ce/telegraf
plugins/inputs/openldap/openldap_test.go
4294
package openldap import ( "strconv" "testing" "github.com/influxdata/telegraf/testutil" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "gopkg.in/ldap.v3" ) func TestOpenldapMockResult(t *testing.T) { var acc testutil.Accumulator mockSearchResult := ldap.SearchResult{ Entries: [...
mit
AndreaZain/dl-module
src/managers/master/comodity-manager.js
3833
'use strict' var ObjectId = require("mongodb").ObjectId; require("mongodb-toolkit"); var DLModels = require('dl-models'); var map = DLModels.map; var Comodity = DLModels.master.Comodity; var BaseManager = require('module-toolkit').BaseManager; var i18n = require('dl-i18n'); var generateCode = require("../../utils/co...
mit
tsolucio/coreBOSTests
vendor/sebastian/type/src/exception/LogicException.php
371
<?php declare(strict_types=1); /* * This file is part of sebastian/type. * * (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 SebastianBergmann\Type; final class LogicExceptio...
mit
AlphaModder/SpongeAPI
src/main/java/org/spongepowered/api/scoreboard/CollisionRule.java
1639
/* * 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...
mit
shirasagi/shirasagi
app/models/concerns/opendata/harvest/shirasagi_api_importer.rb
6728
module Opendata::Harvest::ShirasagiApiImporter extend ActiveSupport::Concern private def import_from_shirasagi_api put_log("import from #{source_url} (Shirasagi API)") if reports.count >= 5 reports.order_by(created: 1).first.destroy end @report = Opendata::Harvest::Importer::Report.new(c...
mit
dsebastien/DefinitelyTyped
types/node/test/fs.ts
13581
import * as fs from 'fs'; import * as assert from 'assert'; import * as util from 'util'; { fs.writeFile("thebible.txt", "Do unto others as you would have them do unto you.", assert.ifError); fs.write(1234, "test", () => { }); fs.writeFile("Harry Potter", "\"You be wizzing, Harry,...
mit
SidHarder/meetings
client/jspm_packages/npm/core-js@2.1.0/fn/function/bind.js
114
/* */ require('../../modules/es6.function.bind'); module.exports = require('../../modules/_core').Function.bind;
mit
Darkrender/raptor-ads
client/src/components/Ratings/NewRating.js
2419
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Form, Button } from 'semantic-ui-react'; import StarRatingComponent from 'react-star-rating-component'; import { getUserDetails } from '../UserDetails/actions'; import { changeStars, changeForm, submitRatingsForm } from...
mit
deywibkiss/jooinworld
components/com_community/templates/default/activities.actions.php
6499
<?php /** * @copyright (C) 2013 iJoomla, Inc. - All rights reserved. * @license GNU General Public License, version 2 (http://www.gnu.org/licenses/gpl-2.0.html) * @author iJoomla.com <webmaster@ijoomla.com> * @url https://www.jomsocial.com/license-agreement * The PHP code portions are distributed under the GPL license....
mit
songecko/bak_b
src/Sylius/Bundle/PromotionsBundle/Controller/CouponController.php
3001
<?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\Bundle\PromotionsBundle\Controller; use Sylius\Bundle\PromotionsBundle\Generator\Cou...
mit
konvenit/CASino
spec/processor/session_overview_spec.rb
1844
require 'spec_helper' describe CASino::SessionOverviewProcessor do describe '#process' do let(:listener) { Object.new } let(:processor) { described_class.new(listener) } let(:other_ticket_granting_ticket) { FactoryGirl.create :ticket_granting_ticket } let(:user) { other_ticket_granting_ticket.user } ...
mit
shayhatsor/orleans
test/TesterInternal/StreamingTests/DynamicStreamProviderConfigurationTests.cs
15413
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Orleans; using Orleans.Providers; using Orleans.Providers.Streams.Generator; using Orleans.Runtime; using Orleans.Runtime.Configuration; using Orleans.Streams; using Orleans.TestingHost; using Orleans.TestingHost.Util...
mit
mafintosh/lookup-multicast-dns
index.js
1005
var dns = require('dns') var mdns = require('multicast-dns') var dnsLookup = dns.lookup.bind(dns) module.exports = lookup function lookup (host, type, cb) { if (typeof type === 'function') return lookup(host, 4, type) if (!/\.local$/.test(host)) dnsLookup(host, type, cb) else mdnsLookup(host, type, cb) } func...
mit
shardulgo/shardulgo.github.io
site/node_modules/eslint-plugin-angular/scripts/docs.js
7089
'use strict'; var fs = require('fs'); var parseComments = require('parse-comments'); var _ = require('lodash'); var eslintAngularIndex = require('../index'); var ruleCategories = require('./ruleCategories.json'); var RuleTester = require('eslint').RuleTester; var templates = require('./templates.js'); var ruleNames ...
mit
ACOKing/ArcherSys
owncloud-serv/apps/files_sharing/l10n/de_DE.php
2340
<?php $TRANSLATIONS = array( "Server to server sharing is not enabled on this server" => "Der Server für die Serverfreigabe ist auf diesem Server nicht aktiviert", "Couldn't add remote share" => "Entfernte Freigabe kann nicht hinzu gefügt werden", "Shared with you" => "Mit Ihnen geteilt", "Shared with others" => "Von I...
mit
manchester-tech-events/techevents-nw
gems/ruby/2.4.0/gems/httparty-0.15.6/examples/stream_download.rb
535
dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) require File.join(dir, 'httparty') require 'pp' # download file linux-4.6.4.tar.xz without using the memory response = nil filename = "linux-4.6.4.tar.xz" url = "https://cdn.kernel.org/pub/linux/kernel/v4.x/#{filename}" File.open(filename, "w") do...
mit
andreoav/inscricoes-natura
fuel/core/classes/crypt.php
4786
<?php /** * Part of the Fuel framework. * * @package Fuel * @version 1.0 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2012 Fuel Development Team * @link http://fuelphp.com */ namespace Fuel\Core; import('phpseclib/Crypt/AES', 'vendor'); import('phpseclib/Cryp...
mit
familiar-earth/familiar-earth.github.io
Cesium-1.8/Specs/Scene/DebugModelMatrixPrimitiveSpec.js
2805
/*global defineSuite*/ defineSuite([ 'Scene/DebugModelMatrixPrimitive', 'Core/Cartesian2', 'Core/Cartesian3', 'Core/Matrix4', 'Specs/createScene' ], function( DebugModelMatrixPrimitive, Cartesian2, Cartesian3, Matrix4, createScene) { ...
mit
spadin/coverphoto
node_modules/grunt-contrib/node_modules/grunt-contrib-yuidoc/node_modules/yuidocjs/node_modules/yui/dump/dump.js
3240
/* YUI 3.7.2 (build 5639) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('dump', function (Y, NAME) { /** * Returns a simple string representation of the object or array. * Other types of objects will be returned unprocessed. Arrays * are e...
mit
jakuza/bookmentor
vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Mapping/MetadataFactory.php
5661
<?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\DoctrineBundle\Mapping; use Symfony\Bridge\Doctrine\Regi...
mit
gthulei/java-ssm
taotao-dubbo/taotao-dubbo-pojo/src/main/java/com/taotao/po/TbItemParamItemExample.java
13351
package com.taotao.po; import java.util.ArrayList; import java.util.Date; import java.util.List; public class TbItemParamItemExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public TbItemParamItemExample() { oredCrite...
mit
kachick/rubyspec
core/time/localtime_spec.rb
3702
require File.expand_path('../../../spec_helper', __FILE__) describe "Time#localtime" do it "converts self to local time, modifying the receiver" do # Testing with America/Regina here because it doesn't have DST. with_timezone("CST", -6) do t = Time.gm(2007, 1, 9, 12, 0, 0) t.localtime t.sho...
mit
Roustalski/router
dist/index.d.ts
46
export * from 'aurelia-router/aurelia-router';
mit
sidshetye/BouncyBench
BouncyCastle/crypto/src/asn1/ess/SigningCertificateV2.cs
2416
using System; using Org.BouncyCastle.Asn1.X509; namespace Org.BouncyCastle.Asn1.Ess { public class SigningCertificateV2 : Asn1Encodable { private readonly Asn1Sequence certs; private readonly Asn1Sequence policies; public static SigningCertificateV2 GetInstance( object o) { if (o == null || o is Si...
mit