repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
oliviertassinari/material-ui
packages/mui-icons-material/lib/AccountTreeOutlined.js
575
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
mit
uktrade/data-hub-fe-beta2
src/apps/propositions/router.js
466
const router = require('express').Router() const { APP_PERMISSIONS } = require('./constants') const { renderDetailsPage } = require('./controllers/details') const { handleRoutePermissions } = require('../middleware') const { getPropositionDetails } = require('./middleware/details') router.use(handleRoutePermissions(A...
mit
peterkokot/dojoModule
src/Sds/DojoModule/Service/CliFactory.php
1282
<?php /** * @package Sds * @license MIT */ namespace Sds\DojoModule\Service; use Symfony\Component\Console\Application; use Symfony\Component\Console\Helper\HelperSet; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; /** * Factory to create the CLI app used to gener...
mit
stoplightio/gitlabhq
app/services/namespaces/statistics_refresher_service.rb
598
# frozen_string_literal: true module Namespaces class StatisticsRefresherService RefresherError = Class.new(StandardError) def execute(root_namespace) root_storage_statistics = find_or_create_root_storage_statistics(root_namespace.id) root_storage_statistics.recalculate! rescue ActiveRecord...
mit
fcpxhacks/fcpxhacks
src/plugins/finalcutpro/timeline/colorboardv2.lua
7036
--- === plugins.finalcutpro.timeline.colorboardv2 === --- --- Color Board Plugins. local require = require --local log = require "hs.logger".new "colorBoard" local deferred = require "cp.deferred" local fcp = require "cp.apple.finalcutpro" local go ...
mit
Fadhilamadan/Reminder
vendor/symfony/debug/Tests/phpt/debug_class_loader.phpt
777
--TEST-- Test DebugClassLoader with previously loaded parents --FILE-- <?php namespace Symfony\Component\Debug\Tests\Fixtures; use Symfony\Component\Debug\DebugClassLoader; $vendor = __DIR__; while (!file_exists($vendor.'/vendor')) { $vendor = \dirname($vendor); } require $vendor.'/vendor/autoload.php'; class_e...
mit
jaredpalmer/razzle
examples/with-jest-snapshots/src/client.js
280
import React from "react"; import { hydrate } from "react-dom"; import { BrowserRouter } from "react-router-dom"; import App from "./App"; hydrate( <BrowserRouter> <App /> </BrowserRouter>, document.getElementById("root") ); if (module.hot) { module.hot.accept(); }
mit
oliviertassinari/material-ui
packages/mui-icons-material/lib/esm/BubbleChartTwoTone.js
893
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon([/*#__PURE__*/_jsx("path", { d: "M16.5 12c1.93 0 3.5-1.57 3.5-3.5S18.43 5 16.5 5 13 6.57 13 8.5s1.57 3.5 3.5 3.5z", opacity: ".3" }, "0"), /*#__PURE__*/_jsx("circle", { cx: "15.01", c...
mit
harini-nyros/Custom-Login-system-in-symfony2
app/cache/dev/twig/06/6b/bedea584a3d866feb1181f56db63.php
4885
<?php /* AcmeDemoBundle::layout.html.twig */ class __TwigTemplate_066bbedea584a3d866feb1181f56db63 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = $this->env->loadTemplate("TwigBundle::layout.html.twig"); $this->b...
mit
oliwierptak/Everon1
src/Everon/Event/Interfaces/Context.php
776
<?php /** * This file is part of the Everon framework. * * (c) Oliwier Ptak <oliwierptak@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Everon\Event\Interfaces; /** * @author Zeger Hoogeboom <zeger_hoogeboo...
mit
kentaromiura/Reshape
test_transforms/ensureFilesEndInNewLine.js
184
module.exports = function(what){ var source = what.source, length = source.length if(source.charAt(length-1) != '\n'){ what.source = what.source + '\n' } return what }
mit
claupcv/Internship
claupcv/2017/mai/Queries/Queries/Core/Domain/Cover.cs
151
namespace Queries.Core.Domain { public class Cover { public int Id { get; set; } public Course Course { get; set; } } }
mit
JarvusInnovations/Emergence-Skeleton
dwoo-plugins/builtin/functions/mailto.php
3831
<?php /** * Outputs a mailto link with optional spam-proof (okay probably not) encoding * <pre> * * address : target email address * * text : display text to show for the link, defaults to the address if not provided * * subject : the email subject * * encode : one of the available encoding (none, js, jschar...
mit
flanfly/qml-rust
examples/resources/build.rs
1322
extern crate fs_utils; use std::env; use std::process::Command; use std::path::*; use std::str::*; use fs_utils::*; fn main() { let out_dir = env::var("OUT_DIR").unwrap(); let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap(); let path = Path::new(&manifest_dir).join("resources"); let path_res =...
mit
reacrea/KlaunChris
node_modules/angular2/upgrade.js
366
'use strict';/** * @module * @description * Adapter allowing AngularJS v1 and Angular v2 to run side by side in the same application. */ var upgrade_adapter_1 = require('./src/upgrade/upgrade_adapter'); exports.UpgradeAdapter = upgrade_adapter_1.UpgradeAdapter; exports.UpgradeAdapterRef = upgrade_adapter_1.UpgradeA...
mit
berryma4/diirt
vtype/vtype/src/main/java/org/diirt/vtype/next/EnumMetaData.java
1398
/** * Copyright (C) 2010-14 diirt developers. See COPYRIGHT.TXT * All rights reserved. Use is subject to license terms. See LICENSE.TXT */ package org.diirt.vtype.next; import java.util.List; /** * Enum metadata information. * * @author carcassi */ public abstract class EnumMetaData { /** * Returns t...
mit
AbraaoAlves/ionic
src/components/virtual-scroll/virtual-scroll.ts
21798
import { AfterContentInit, ChangeDetectorRef, ContentChild, ContentChildren, Directive, DoCheck, ElementRef, Input, IterableDiffers, IterableDiffer, NgZone, OnDestroy, Optional, QueryList, Renderer, TrackByFn } from '@angular/core'; import { adjustRendered, calcDimensions, estimateHeight, initReadNodes, processRecords...
mit
timsvoice/great_green_sources
core/lexicon/es/permissions.inc.php
11203
<?php /** * Permissions Spanish lexicon topic * * @language es_MX * @package modx * @subpackage lexicon */ $_lang['perm.about_desc'] = 'La página de Nosotros.'; $_lang['perm.access_permissions_desc'] = 'Cualquier página o acción relacionada con Permiso de Acceso.'; $_lang['perm.actions_desc'] = 'La pág...
mit
vamshins/apr-actionplan
apr/db/migrate/20151111044457_alter_action_plans.rb
460
class AlterActionPlans < ActiveRecord::Migration def up remove_column("action_plans", "unit") rename_column("action_plans", "submitter_name", "submitter_first_name") add_column("action_plans", "submitter_last_name", :string) end def down remove_column("action_plans", "submitter_last_name") renam...
mit
ovelasquez/sigcot
app/cache/prod/annotations/Sigcotweb-AplicativoBundle-Entity-Dcfotosactivos$foto.cache.php
258
<?php return unserialize('a:1:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Column":9:{s:4:"name";s:4:"foto";s:4:"type";s:4:"blob";s:6:"length";N;s:9:"precision";i:0;s:5:"scale";i:0;s:6:"unique";b:0;s:8:"nullable";b:0;s:7:"options";a:0:{}s:16:"columnDefinition";N;}}');
mit
dudakp/rasPi_systemInfo
lib_mpu6050/lib_mpu6050.py
4879
#!/usr/bin/python import time, datetime, math from ops_i2cbase import I2CBase # =========================================================================== # MPU6050 Class # # Ported from http://blog.bitify.co.uk/2013/11/reading-data-from-mpu-6050-on-raspberry.html # ==================================================...
mit
ASP-NET-MVC-Boilerplate/Framework
Source/Boxed.Mapping/Factory.cs
954
namespace Boxed.Mapping { using System; using System.Linq.Expressions; /// <summary> /// Creates instances of type <typeparamref name="T"/>. /// </summary> /// <typeparam name="T">The type with a parameterless constructor.</typeparam> public static class Factory<T> where T...
mit
netTiers/netTiers
Samples/Petshop/Source/PetShop.Data/Bases/CategoryProviderBase.cs
630
#region Using directives using System; using System.Data; using System.Data.Common; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using PetShop.Business; using PetShop.Data; #endregion namespace PetShop.Data.Bases { ///<summary> /// This class is the base...
mit
ltalirz/asetk
scripts/cube-roll.py
1072
#!/usr/bin/env python import numpy as np import argparse from asetk.format.cube import Cube # Define command line parser parser = argparse.ArgumentParser( description='Rolls cube file by specified shift along direction.') parser.add_argument('--version', action='version', version='%(prog)s 12.05.2016') parser.add_...
mit
turbonetix/bus.io-receiver
examples/receiver.js
1667
var Message = require('bus.io-common').Message; var receiver = require('../.')(); receiver.on('error', function (err){ console.log('Received an error: %s', err); }); receiver.on('received', function (msg) { console.log('This receiver is finished and triggered the "received" event with the message %j', msg.data); ...
mit
activewarehouse/activewarehouse-etl
lib/etl/parser/nokogiri_xml_parser.rb
2128
optional_require 'nokogiri' require 'open-uri' optional_require 'zlib' module ETL module Parser class NokogiriXmlParser < ETL::Parser::Parser # Initialize the parser # * <tt>source</tt>: The Source object # * <tt>options</tt>: Parser options Hash def initialize(source, options={}) ...
mit
yugangw-msft/autorest
src/core/AutoRest.Core/Model/PrimaryType.cs
3697
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // using System.Collections.Generic; using System.Linq; using AutoRest.Core.Utilities; namespace AutoRest.Core.Model { /// <summary> /// Defines kn...
mit
CalleyChatham/up-next
public/bundle.js
766980
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ retu...
mit
thisishuey/frogban-mean
app/controllers/users/users.authentication.server.controller.js
1945
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), errorHandler = require('../errors'), mongoose = require('mongoose'), passport = require('passport'), User = mongoose.model('User'); /** * Signup */ exports.signup = function(req, res) { // For security measurement we remove the roles from...
mit
BlueBearGaming/BlueBear
src/BlueBear/GameChessBundle/Event/Listener/PawnEventListener.php
1668
<?php namespace BlueBear\GameChessBundle\Event\Listener; class PawnEventListener extends PieceEventListener { protected function addPossibleActions() { $x = $this->piece->getX(); $y = $this->piece->getY(); $this->piece->isWhite() ? $y-- : $y++; // Pawn only moves to the opposite side ...
mit
Rolstenhouse/sarif-sdk
src/Sarif.UnitTests/Converters/AndroidStudioProblemTests.cs
21803
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Xml; using System.Xml.Linq; using FluentAssertions;...
mit
gitoneman/react-home
node_modules/react-datagrid/node_modules/ustring/node_modules/functionally/test/OnceTests.js
1027
describe('Once', function(){ var once = require('../index').once it('should only run once', function(){ var counter = 0 var inc = once(function(){ counter++ }) counter .should .equal(0) inc() counter .should ...
mit
crisbeto/material2
src/cdk/keycodes/keycodes.ts
3758
/** * @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 */ export const MAC_ENTER = 3; export const BACKSPACE = 8; export const TAB = 9; export const NUM_CENTER = 12; export co...
mit
007slm/hexo
test/scripts/helper/index.js
182
describe('Helper', function(){ require('./date'); require('./gravatar'); require('./is'); require('./number'); require('./tag'); require('./toc'); require('./url'); });
mit
ToonTownInfiniteRepo/ToontownInfinite
toontown/toon/PlayerDetailPanel.py
5307
from pandac.PandaModules import * from toontown.toonbase.ToontownGlobals import * from direct.gui.DirectGui import * from pandac.PandaModules import * from direct.showbase import DirectObject from direct.fsm import ClassicFSM, State from direct.fsm import State from direct.directnotify import DirectNotifyGlobal import ...
mit
JimBobSquarePants/Umbraco-CMS
src/Umbraco.Core/Services/InstallationService.cs
588
using System.Threading.Tasks; using Umbraco.Cms.Core.Persistence.Repositories; namespace Umbraco.Cms.Core.Services { public class InstallationService : IInstallationService { private readonly IInstallationRepository _installationRepository; public InstallationService(IInstallationRepository in...
mit
neo4j-examples/movies-with-neo4j
spec/controllers/movies_controller_spec.rb
1019
require 'rails_helper' describe MoviesController do let(:movies) { Movie.all.to_a } let(:people_in_movies) { Movie.people_in_movies } describe 'GET #index' do it 'returns http success' do get :index expect(response).to have_http_status(:success) end it 'assigns movies' do get :ind...
mit
etsy/phan
.phan/plugins/InlineHTMLPlugin.php
5919
<?php declare(strict_types=1); use ast\Node; use Phan\AST\Parser; use Phan\CLI; use Phan\CodeBase; use Phan\Config; use Phan\Language\Context; use Phan\Library\StringUtil; use Phan\PluginV3; use Phan\PluginV3\AfterAnalyzeFileCapability; use Phan\PluginV3\PluginAwarePostAnalysisVisitor; use Phan\PluginV3\PostAnalyzeNo...
mit
GridProtectionAlliance/gsf
Source/Libraries/GSF.TimeSeries/Transport/TSSC/TsscPointMetadata.cs
9564
//****************************************************************************************************** // TsscPointMetadata.cs - Gbtc // // Copyright © 2016, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See /...
mit
jiyuren/LolliPin
app/src/main/java/com/github/orangegangsters/lollipin/CustomPinActivity.java
3118
package com.github.orangegangsters.lollipin; import android.content.res.Resources; import android.graphics.Color; import android.graphics.Typeface; import android.graphics.drawable.ColorDrawable; import android.widget.Toast; import com.github.orangegangsters.lollipin.lib.managers.AppLockActivity; import lollipin.ora...
mit
undecided/crashdown-auth-hmac
spec/crash_log/rack_test_request_spec.rb
2019
require 'spec_helper' require "net/http" require 'time' require 'active_support' require 'rack/test' require "delorean" describe CrashLog::AuthHMAC do include Rack::Test::Methods def app lambda do |env| [200, {"Content-Type" => "text/html", "Content-Length" => 13}, "Hello, World!"] end end it '...
mit
randylubin/acting-karaoke
node_modules/hark/example/demo.bundle.js
11205
;(function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=ty...
mit
catarse/catarse_admin
legacy/src/vms/payments-list-vm.js
313
import h from '../h'; import { commonPayment } from '../api'; import models from '../models'; export const getPaymentsListVM = () => { const listVM = commonPayment.paginationVM(models.commonPayments, 'created_at.desc', { Prefer: 'count=exact' }); return h.createBasicPaginationVMWithAutoRedraw(listVM); }
mit
assunluis80/Web-Starter-Template
assets/scripts/vendors/kendo_ui/cultures/kendo.culture.km-KH.js
3401
/** * Copyright 2015 Telerik AD * * 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 ...
mit
unaio/una
upgrade/files/11.0.2-11.0.3/files/template/scripts/BxBaseMenuMoreAuto.php
4243
<?php defined('BX_DOL') or die('hack attempt'); /** * Copyright (c) UNA, Inc - https://una.io * MIT License - https://opensource.org/licenses/MIT * * @defgroup UnaBaseView UNA Base Representation Classes * * @{ */ define('BX_DEF_MENU_ITEM_MORE_AUTO', 'more-auto'); class BxBaseMenuMoreAuto extends BxTemplMen...
mit
RLReed/libdetran
src/geometry/test/test_Segment.cc
1144
//----------------------------------*-C++-*----------------------------------// /*! * \file test_Segment.cc * \author Jeremy Roberts * \date Jun 22, 2012 * \brief Test of Segment class * \note Copyright (C) 2012 Jeremy Roberts. */ //-------------------------------------------------------------------------...
mit
gale9010/f3f-timer
usbSerialForAndroid/src/main/java/com/hoho/android/usbserial/util/SerialInputOutputManager.java
5726
/* Copyright 2011-2013 Google Inc. * Copyright 2013 mike wakerly <opensource@hoho.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at ...
mit
GeorgioWan/bonsaiERP
app/helpers/tags_helper.rb
315
module TagsHelper # Presents a list for json def tags_list @tags_list ||= Tag.list.order("name").map { |val| { id: val.id, name: val.name, label: val.to_s, bgcolor: val.bgcolor } } end def tags_list_hash @tags_list_hash ||= Hash[tags_list.map { |el| [el[:id], el] }] end end
mit
navalev/azure-sdk-for-java
sdk/cosmosdb/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2019_08_01/implementation/CollectionPartitionRegionsInner.java
11156
/** * 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.management.cosmosdb.v2019_08_01.implementation; import retr...
mit
jroyal/drafthouse-seat-finder
vendor/github.com/ryanbradynd05/go-tmdb/lists_test.go
976
package tmdb import ( . "gopkg.in/check.v1" ) const oscarWinnerListID string = "509ec17b19c2950a0600050d" func (s *TmdbSuite) TestGetListInfo(c *C) { result, err := s.tmdb.GetListInfo(oscarWinnerListID) s.baseTest(&result, err, c) c.Assert(result.ID, Equals, oscarWinnerListID) c.Assert(result.CreatedBy, Equals,...
mit
IOCoin/iocoin
src/qt/locale/bitcoin_af_ZA.ts
108866
<?xml version="1.0" ?><!DOCTYPE TS><TS language="af_ZA" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About I/OCoin</source> <translation type="unfinished"/> </message> <message> <location lin...
mit
samgreenwood/swapshop
app/views/users/show.blade.php
1440
@extends('layouts.master') @section('content') <h1>My Swapshop</h1> <div class="row-fluid"> <div class="span6"> <h2>Listings</h2> <table class='table table-first-column-number data-table display full dataTable'> <thead> <tr> <th style="padding-left: 1em;">#</th> <th>Name</th> <th>Price</th> <th>Quantity...
mit
dwbutler/logstash-logger
lib/logstash-logger.rb
267
require 'logstash-logger/version' require 'logstash/event' require 'logstash-logger/device' require 'logstash-logger/logger' require 'logstash-logger/formatter' require 'logstash-logger/configuration' require 'logstash-logger/railtie' if defined?(Rails::Railtie)
mit
cssinjs/jss
packages/jss/benchmark/tests/add-rule.js
432
import {create, sheets} from 'jss' import styles from '../fixtures/regular.json' function teardown() { this.sheet.detach() this.sheets.reset() delete this.sheet } suite('Add rule', () => { benchmark( '.insertRule()', function benchmark() { this.sheets = sheets this.sheet = this.sheet || cr...
mit
Diullei/Storm
Storm.Test/SputnikV1/11_Expressions/11.13_Assignment_Operators/11.13.2_Compound_Assignment/S11.13.2_A4.5_T2.1.js
1514
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S11.13.2_A4.5_T2.1; * @section: 11.13.2, 11.6.2; * @assertion: The production x -= y is the same as x = x - y; * @description: Type(x) is different from Type(y) a...
mit
vlfedotov/django-business-logic
business_logic/models/stop.py
634
# -*- coding: utf-8 -*- # from django.db import models from django.utils.translation import ugettext_lazy as _ from ..exceptions import StopInterpretationException, BreakLoopException class StopInterpretation(models.Model): class Meta: verbose_name = _('Stop instruction') verbose_name_plural = ...
mit
rterp/LimitUpTrading
commons/interactive-brokers-integration-tests/src/main/java/com/sumzerotrading/broker/ib/MainClass.java
2787
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.sumzerotrading.broker.ib; import com.sumzerotrading.broker.order.OrderEvent; import com.sumzerotrading.broker.order.OrderE...
mit
michaelgeorgeattard/ionic-app-scripts
src/webpack/common-chunks-plugins.spec.ts
3190
import * as commonChunksPlugins from './common-chunks-plugins'; import { join } from 'path'; describe('common-chunks-plugins', () => { describe('checkIfModuleIsIonicDependency', () => { it('should return false when userRequest is null', () => { const result = commonChunksPlugins.checkIfModuleIsIonicDepende...
mit
bburnichon/PHPExiftool
lib/PHPExiftool/Driver/Tag/DICOM/T2Preparation.php
791
<?php /* * This file is part of the PHPExifTool package. * * (c) Alchemy <support@alchemy.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\DICOM; use JMS\Serializer\Annotation\ExclusionPolicy;...
mit
ARIES-IIT-R/Smart-Mirror
identify.py
3978
import cv2 import sys import os import time from PIL import Image import glob import csv import string import random import imageUpload as imup import MSFaceAPI as msface baseDir = '/home/aishwarya/Documents/Smart-Mirror/' tmpDir = '/home/aishwarya/Documents/Smart-Mirror/tmp/' cloudinary_dataset = 'http://res.cloudina...
mit
mockingbirdnest/Principia
base/bundle.hpp
2234
 #pragma once #include <functional> #include <list> #include <optional> #include <thread> #include <vector> #include "absl/base/thread_annotations.h" #include "absl/status/status.h" #include "absl/synchronization/notification.h" #include "absl/synchronization/mutex.h" namespace principia { namespace base { // A bu...
mit
Kriechi/pathod
test/test_app.py
2906
import tutils class TestApp(tutils.DaemonTests): SSL = False def test_index(self): r = self.getpath("/") assert r.status_code == 200 assert r.content def test_about(self): r = self.getpath("/about") assert r.ok def test_download(self): r = self.getpat...
mit
Franky666/programmiersprachen-raytracer
external/boost_1_59_0/libs/test/doc/examples/example57.run-fail.cpp
477
// (C) Copyright Gennadiy Rozental 2011-2015. // 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) // See http://www.boost.org/libs/test for the library home page. //[example_code #define BOOST_TEST_MOD...
mit
rollerworks/rollerworks-datagrid
src/DatagridView.php
2684
<?php declare(strict_types=1); /* * This file is part of the RollerworksDatagrid package. * * (c) Sebastiaan Stok <s.stok@rollerscapes.net> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Rollerworks\Component\Datagrid; use Rollerwo...
mit
it-studio/centralnews
src/CentralNews/Exception/InvalidArgumentException.php
98
<?php namespace CentralNews\Exception; class InvalidArgumentException extends Exception { }
mit
samsonasik/Slim
Slim/App.php
16123
<?php /** * Slim Framework (http://slimframework.com) * * @link https://github.com/codeguy/Slim * @copyright Copyright (c) 2011-2015 Josh Lockhart * @license https://github.com/codeguy/Slim/blob/master/LICENSE (MIT License) */ namespace Slim; use Exception; use Closure; use InvalidArgumentException; use P...
mit
YevgeniyShunevych/Atata
src/Atata/ContentSource.cs
3028
using OpenQA.Selenium; namespace Atata { /// <summary> /// Specifies the content source of a component. /// </summary> public enum ContentSource { /// <summary> /// Uses <see cref="IWebElement.Text"/> property of component scope <see cref="IWebElement"/> element. ...
mit
NineWorlds/serenity-android
serenity-app/src/test/java/us/nineworlds/serenity/TestSerenityApplication.java
3114
/** * The MIT License (MIT) * Copyright (c) 2012 David Carver * 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...
mit
basicincome/unpcoin-core
src/unpay-cli.cpp
2737
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2013 The Bitcoin developers // Copyright (c) 2009-2013 The Unpay developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "util.h" #include "init.h...
mit
Mitali-Sodhi/CodeLingo
Dataset/cpp/VectorInsertAndErase.cpp
1136
//: C07:VectorInsertAndErase.cpp {-bor} // From "Thinking in C++, Volume 2", by Bruce Eckel & Chuck Allison. // (c) 1995-2004 MindView, Inc. All Rights Reserved. // See source code use permissions stated in the file 'License.txt', // distributed with the code package available at www.MindView.net. // Erasing an el...
mit
navalev/azure-sdk-for-java
sdk/network/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/network/v2019_07_01/implementation/VirtualNetworkGatewayConnectionsInner.java
146427
/** * 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.management.network.v2019_07_01.implementation; import com.m...
mit
campersau/NuGetPackageExplorer
PackageViewModel/PackageAnalyzer/MisplacedTransformFileRule.cs
1863
using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.IO; using NuGetPackageExplorer.Types; using NuGetPe; namespace PackageExplorerViewModel.Rules { [Export(typeof(IPackageRule))] internal class MisplacedTransformFileRule : IPackageRule { private co...
mit
YHTechnology/DocumentManager
DocumentManager/LiteLibrary/Pair.cs
3905
using System; using System.Collections.Generic; using System.Text; namespace BIS.Library { /// <summary> /// Pair /// </summary> /// <typeparam name="TLeft">The type of the left.</typeparam> /// <typeparam name="TRight">The type of the right.</typeparam> public class Pair<TLeft, TRight> : IEqua...
mit
jendewalt/yumhacker
app/controllers/users_controller.rb
137
class UsersController < ApplicationController def index @users = User.all.order(:last_name).page(params[:page]).per(1000) end end
mit
beardyunixer/redmatrix
mod/display.php
7167
<?php function display_content(&$a, $update = 0, $load = false) { // logger("mod-display: update = $update load = $load"); if($load) $_SESSION['loadtime'] = datetime_convert(); if(intval(get_config('system','block_public')) && (! local_user()) && (! remote_channel())) { notice( t('Public access denied.') . ...
mit
GGAlanSmithee/phaser
v3/src/scene/global/components/CreateSceneFromObject.js
493
var Scene = require('../../local/Scene'); var CreateSceneFromObject = function (key, sceneConfig) { var newScene = new Scene(sceneConfig); var configKey = newScene.sys.settings.key; if (configKey !== '') { key = configKey; } else { newScene.sys.settings.key = key; } ...
mit
lexor90/node-compiler
node/test/parallel/test-buffer-indexof.js
23324
'use strict'; require('../common'); const assert = require('assert'); const b = Buffer.from('abcdef'); const buf_a = Buffer.from('a'); const buf_bc = Buffer.from('bc'); const buf_f = Buffer.from('f'); const buf_z = Buffer.from('z'); const buf_empty = Buffer.from(''); const s = 'abcdef'; assert.strictEqual(b.indexOf(...
mit
moomerman/zap
adapter/static/static_test.go
488
package static import ( "fmt" "net/http" "net/http/httptest" "testing" ) func TestStatic(t *testing.T) { adapter, err := New("./test/static") if err != nil { panic(err) } req, err := http.NewRequest("GET", "/", nil) if err != nil { t.Fatal(err) } rr := httptest.NewRecorder() adapter.ServeHTTP(rr, r...
mit
lewgun/cloudmusic
vendor/github.com/go-xorm/xorm/engine.go
39052
// Copyright 2015 The Xorm 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 xorm import ( "bufio" "bytes" "database/sql" "encoding/gob" "errors" "fmt" "io" "os" "reflect" "strconv" "strings" "sync" "time" "gith...
mit
Nth-iteration-labs/streamingbandit
app/defaults/Lock_In_Feedback/get_context.py
7
#EMPTY
mit
jenkinsci/jenkins.py
python-wrapper/src/main/java/jenkins/python/expoint/SolutionPW.java
4451
package jenkins.python.expoint; import hudson.model.AdministrativeMonitor; import jenkins.model.Jenkins; import hudson.model.AbstractModelObject; import hudson.Extension; import hudson.ExtensionPoint; import hudson.ExtensionList; import org.kohsuke.stapler.HttpResponse; import org.kohsuke.stapler.HttpResponses; impor...
mit
mandino/www.bloggingshakespeare.com
wp-content/plugins/redirection/api/api.php
5482
<?php require_once __DIR__ . '/api-group.php'; require_once __DIR__ . '/api-redirect.php'; require_once __DIR__ . '/api-log.php'; require_once __DIR__ . '/api-404.php'; require_once __DIR__ . '/api-settings.php'; require_once __DIR__ . '/api-plugin.php'; require_once __DIR__ . '/api-import.php'; require_once __DIR__ ....
mit
hstarorg/web-dojo
server/src/routes/gist.js
411
let router = new Router(); let gistBiz = require('./../bizs/gistBiz'); let authBiz = require('./../bizs/authBiz'); router // 创建Gist .post('/', authBiz.validateUser, gistBiz.createGist) // 获取我的gist .get('/mygists', authBiz.validateUser, gistBiz.getGists) // 获取特定的gist .get('/:gistId', gistBiz.getGist); modu...
mit
phmLabs/Smoke
src/Rules/Http/DurationRule.php
1412
<?php namespace whm\Smoke\Rules\Http; use phm\HttpWebdriverClient\Http\Response\DurationAwareResponse; use Psr\Http\Message\ResponseInterface; use whm\Smoke\Rules\CheckResult; use whm\Smoke\Rules\Rule; /** * This rule can validate if a http request takes longer than a given max duration. * A website that is slower...
mit
gooy/aurelia-ace
demo/src/app/docs.js
382
import {EventAggregator} from 'aurelia-event-aggregator'; import {bindable,Animator} from 'aurelia-framework'; export class Docs{ static inject = [Element,EventAggregator,Animator]; constructor(element,ea,animator) { this.element = element; this.ea = ea; this.animator = animator; } attached(){ ...
mit
AndreiMisiukevich/FFImageLoading
source/FFImageLoading.Shared.IosMac/Work/BitmapHolder.cs
904
using System; #if __MACOS__ using AppKit; using PImage = AppKit.NSImage; #elif __IOS__ using UIKit; using PImage = UIKit.UIImage; #endif namespace FFImageLoading.Work { public class BitmapHolder: IBitmap { public BitmapHolder(PImage bitmap) { NativeBitmap = bitmap; } ...
mit
D1no/meteor
tools/cli/commands-packages-query.js
63499
// These commands deal with aggregating local package data with the information // contained in the Meteor Package Server. They also deal with presenting this // to the user in various human or machine-readable ways. var _ = require('underscore'); var archinfo = require('../archinfo.js'); var buildmessage = require('.....
mit
ninnemana/node-battle
client/app/main/main.js
230
'use strict'; angular.module('boomerApp') .config(function ($stateProvider) { $stateProvider .state('main', { url: '/', templateUrl: 'app/main/main.html', controller: 'MainCtrl' }); });
mit
krisjey/netty.book.kor
telnet-server/src/main/java/com/github/nettybook/ch7/junit/TelnetServerV3.java
1977
package com.github.nettybook.ch7.junit; /* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you 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.apac...
mit
VitSalis/endofcodes
tests/models/round.php
5647
<?php require_once 'models/round.php'; require_once 'models/game.php'; class RoundTest extends UnitTestWithFixtures { public function testSaveDb() { $game = $this->buildGame(); $game->rounds[ 0 ] = $round = $this->buildRound(); $round->game = $game; $...
mit
adeubank/meteor-demo
lib/game.js
323
// add the game over clauses // this will restart the game if the snake hits something // add the code for body collision // if the head of the snake bumps into anything in the array, game over checkCollision = function (x, y, array) { return _.any(array, function (elem) { return elem.x == x && elem.y == y; });...
mit
wunderg/react-redux-express-mongo-starter
src/actions/login.js
2556
import axios from 'axios'; import * as ACTIONS from './constants'; function saveToLocalStorage(token) { localStorage.setItem('id_token', token); } function requestSignup(creds) { return { type: ACTIONS.SIGNUP_REQUEST, isFetching: true, isAuthenticated: false, creds }; } function recieveSignup(u...
mit
YoshitsuguFujii/rails_admin_base
lib/rails_admin_base/validators/css_validator.rb
784
# Sass::Engineを使った簡易的なチェック class CssValidator < ActiveModel::EachValidator def validate_each(object, attribute, value) begin Sass::Engine.new(value, syntax: :scss, style: :expand, cache: false).to_css rescue Sass::SyntaxError => ex object.errors[attribute] << (options[:messge] || I18n.t('errors.me...
mit
P1erreGaultier/FrontPepSII
www/js/services.js
1579
angular.module('app.services', []) .factory('CustomFactory', [function(){ var event; return { coucouGlobal : function(name) { console.log('Coucou ' + name); return "oui"; }, saveEvent : function(eventToSave) { event = eventToSave; }, getEvent : function() { return even...
mit
hironapo/pico-tcl
test/if_spec.rb
1603
$:.unshift File.dirname(__FILE__) + "../lib" require 'pico-tcl' describe PicoTcl::Interp do it "if0" do ip = PicoTcl::Interp.new expect( ip.eval("if { 10 < 20 } { set a 10 } ") ).to eq "10" end it "if1" do ip = PicoTcl::Interp.new expect( ip.eval("if { 10 > 20 } { ...
mit
Vulcania/GSB_Symfony
app/cache/de_/twig/78/9f/60fad94cccf3b3c9cebec949f03f9146bc35138ca614a4b2f8c255b0b33b.php
1598
<?php /* FOSUserBundle:Profile:edit_content.html.twig */ class __TwigTemplate_789f60fad94cccf3b3c9cebec949f03f9146bc35138ca614a4b2f8c255b0b33b extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks =...
mit
phlopsi/access-control
src/Phlopsi/ExceptionTranslator/ExceptionTranslator.php
1686
<?php /** * @author Patrick Fischer <nbphobos@gmail.com> */ declare(strict_types = 1); namespace Phlopsi\ExceptionTranslator; use Phlopsi\Reflection\ExceptionReflection; use Phlopsi\Reflection\ExternalExceptionReflection; class ExceptionTranslator { /** * @var \Phlopsi\Reflection\ExternalExceptionReflect...
mit
SocialCentivPublic/cheftacular
lib/cloud_interactor/cloud_interactor.rb
1187
class CloudInteractor ALLOWED_HLMS = ['domain', 'flavor', 'image', 'region', 'server', 'sshkey', 'volume'] def initialize auth_hash, options @main_obj, @classes = {},{} @options = options @main_obj['output'] = {} @auth_hash = auth_hash @classes['helper'] = Helper.new(@main_...
mit
Daisukydayo/icms2
FrameWork1/RuleClass/Gen/User/UserOrderSendPublicGen.php
1934
<?php /** * 前台管理 会员订单发货信息 生成类 * @category iCMS * @package iCMS_FrameWork1_RuleClass_Gen_User * @author yin */ class UserOrderSendPublicGen extends BasePublicGen implements IBasePublicGen{ /** * @return string */ public function GenPublic(){ $method = Control::GetRequest("a",""); $...
mit
sergeyshushlyapin/AutoFixture
Src/AutoFixture.xUnit.net2.UnitTest/Properties/AssemblyInfo.cs
1480
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Au...
mit