code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
<?php
/*
* This file is part of the symfony package.
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Finds deprecated helpers usage.
*
* @package symfony
*... | wboray/symfony | lib/symfony/task/project/validation/sfDeprecatedHelpersValidation.class.php | PHP | mit | 3,276 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LetsCreateAListOfDucks
{
enum KindOfDuck
{
Mallard,
Muscovy,
Decoy,
}
}
| head-first-csharp/third-edition | VS2013/Chapter_8/LetsCreateAListOfDucks/LetsCreateAListOfDucks/KindOfDuck.cs | C# | mit | 253 |
/*
* Power BI Visualizations
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
* MIT License
*
* 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 restrict... | kiewic/PowerBI-visuals | src/Clients/CustomVisuals/visuals/radarChart/visual/radarChart.ts | TypeScript | mit | 44,628 |
/*******************************************************************************
* Copyright (c) 2013-2016 LAAS-CNRS (www.laas.fr)
* 7 Colonel Roche 31077 Toulouse - France
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
... | huanpc/IoT-1 | docker/oneM2M/CSE_IPE/org.eclipse.om2m/org.eclipse.om2m.commons/src/main/java/org/eclipse/om2m/commons/entities/AccessControlContextEntity.java | Java | mit | 3,224 |
/*!
* Copyright 2016 E.J.I.E., S.A.
*
* Licencia con arreglo a la EUPL, Versión 1.1 exclusivamente (la «Licencia»);
* Solo podrá usarse esta obra si se respeta la Licencia.
* Puede obtenerse una copia de la Licencia en
*
* http://ec.europa.eu/idabc/eupl.html
*
* Salvo cuando lo exija la legislación aplica... | UDA-EJIE/uda-rup | src/rup.calendar.js | JavaScript | mit | 24,871 |
using System.Collections.Generic;
using FoxTool.Fox.Types.Structs;
using FoxTool.Fox.Types.Values;
namespace FoxTool.Tpp.Classes
{
public class TppStrykerDefaultParameter2
{
// Static properties
public FoxEntityHandle Owner { get; set; }
public FoxString ParamName { get; set; ... | kkkkyue/FoxTool | FoxTool/Tpp/Classes/TppStrykerDefaultParameter2.cs | C# | mit | 4,865 |
//******************************************************************************
//
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | wanderwaltz/WinObjC | include/Platform/Windows Phone 8.1/UWP/WindowsWeb.h | C | mit | 3,963 |
require 'http/security/parsers/cache_control'
require 'http/security/parsers/content_security_policy'
require 'http/security/parsers/content_security_policy_report_only'
require 'http/security/parsers/expires'
require 'http/security/parsers/pragma'
require 'http/security/parsers/public_key_pins'
require 'http/security/... | firebitsbr/http-security | lib/http/security/parsers.rb | Ruby | mit | 724 |
class AddOmniauthToUsers < ActiveRecord::Migration
def change
add_column :users, :provider, :string
execute "UPDATE users SET provider='twitter' WHERE true"
end
end
| pxiventures/vpeeker-channels | db/migrate/20130221113455_add_omniauth_to_users.rb | Ruby | mit | 177 |
/*
License
Copyright (c) 2015 Nathan Cahill
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ... | simonmysun/praxis | web.playground/assets/split.js | JavaScript | mit | 12,670 |
import * as React from 'react'
import { ValueLine } from '@framework/Lines'
import { TypeContext } from '@framework/TypeContext'
import { ScheduleRuleMinutelyEntity } from '../Signum.Entities.Scheduler'
export default function ScheduleRuleMinutely(p : { ctx: TypeContext<ScheduleRuleMinutelyEntity> }){
const ct... | MehdyKarimpour/extensions | Signum.React.Extensions/Scheduler/Templates/ScheduleRuleMinutely.tsx | TypeScript | mit | 534 |
<?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 JF\GeneratorBundle\Command;
use Symfony\Component\Console\Input\InputOp... | jf-sysyem/wsp-sf2 | src/JF/GeneratorBundle/Command/GenerateDoctrineCrudCommand.php | PHP | mit | 12,226 |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace ASPNET_Core_1_0.Models.AccountViewModels
{
public class RegisterViewModel
{
[Required]
[EmailAddress]
[Display(Name = "Email")]
... | huang6349/inspinia | ASPNET_Core_1_0_Seed_Project/ASPNET_Core_1_0/Models/AccountViewModels/RegisterViewModel.cs | C# | mit | 869 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Struct template weighted_pot_quantile_prob</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="../.... | djsedulous/namecoind | libs/boost_1_50_0/doc/html/boost/accumulators/tag/weighted_pot_quantile_prob.html | HTML | mit | 4,511 |
nested/ | Flet/acetate | test/pretty-urls/expected/nested/index.html | HTML | mit | 7 |
<?php
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\File\Test\Unit\Transfer\Adapter;
use \Magento\Framework\File\Transfer\Adapter\Http;
class HttpTest extends \PHPUnit_Framework_TestCase
{
/**
* @var \Magento\Framework\... | j-froehlich/magento2_wk | vendor/magento/framework/File/Test/Unit/Transfer/Adapter/HttpTest.php | PHP | mit | 2,250 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | GreatDevelopers/CivilOctave | Documentation/html/amarjeet_0Dlab_8gdy_8club_2latex_2views__8py__source_8tex.html | HTML | mit | 2,530 |
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of ... | JaroslawZielinski/magento-backendo | js/mage/adminhtml/moneybookers.js | JavaScript | mit | 10,668 |
require File.expand_path('../spec_helper', __FILE__)
class FakeCore < Consular::Core
def self.valid_system?
true
end
def process!; puts('process'); end
def setup!; puts('setup'); end
end
describe Consular::CLI do
before do
@template = File.read File.expand_path('../../lib/templates/example.ym... | achiu/terminitor | spec/cli_spec.rb | Ruby | mit | 7,729 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ForumDEG.Models {
public class Option {
public string OptionText { get; set; }
public bool IsSelected { get; set; }
}
}
| MarianaPicolo/2017.1-Forum-Coordenadores-DEG | ForumDEG/ForumDEG/Models/Option.cs | C# | mit | 274 |
<!DOCTYPE html> <html> <head> <title>demo for colorpick</title> <meta charset="utf-8" /> </head> <body> <script src="./pp_colorpick.js?ef6dab06b2171af0d3aca52ebb21ece3" type="text/javascript"></script> </body> </html> | genify/toolkit | test/ui/pub/colorpick.html | HTML | mit | 217 |
#include <math.h>
double mysqrt(double x) {
#if defined (HAVE_LOG) && defined (HAVE_EXP)
return exp(log(x)*.5);
#else //Define the sqrt function another way
return sqrt(x);
#endif
}
| zwimer/IntroToOpenSourceLabs | Lab5/Steps/Step5/MathFunctions/mysqrt.cpp | C++ | mit | 186 |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M20 4H4v13.17L5.17 16H20V4zm-6 10H6v-2h8v2zm4-3H6V9h12v2zm0-3H6V6h12v2z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M20 18c1.1 0 2-.9 2-2V4... | oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/ChatTwoTone.js | JavaScript | mit | 464 |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace BrowseDotNet.Web.Models
{
public class LoginViewModel
{
[Required]
[Display(Name = "User name")]
public string UserName { get; set; }
[Re... | chsakell/browsedotnet | BrowseDotNet.Web/Models/AccountViewModels.cs | C# | mit | 1,182 |
package com.acework.js.components.bootstrap
import com.acework.js.components.bootstrap.Utils._
import com.acework.js.utils.{Mappable, Mergeable}
import japgolly.scalajs.react.Addons.ReactCloneWithProps
import japgolly.scalajs.react.Ref
import scala.scalajs.js
/**
* Created by weiyin on 11/03/15.
*/
import japgoll... | lvitaly/scalajs-react-bootstrap | core/src/main/scala/com/acework/js/components/bootstrap/DropdownButton.scala | Scala | mit | 4,616 |
/*
Pyramid DX8 System - Bitmap Code (source file)
(c) 2001, Robert Jan Bruinier
*/
#include "Unicorn.h"
#ifdef UNI_BITMAP_SUPPORT
BitmapContainer * bitmapList = NULL;
#define FOREACHBITMAP(ptc) for (BitmapContainer * ptc = bitmapList; NULL != ptc; ptc = ptc->next)
void uniBitmapCreate(char *... | CrossProd/Aardbei_EastsideWorks | Unicorn System/Bitmap.cpp | C++ | mit | 2,732 |
using System;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
namespace PingYourPackage.API.Model.Validation {
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class MaximumAttribute : ValidationAttribute {
private readonly int _maximumValue;
... | niknhattan/PingYourPackage | PingYourPackage.API.Model/Validation/MaximumAttribute.cs | C# | mit | 1,016 |
function Test-DbaAgentJobOwner {
<#
.SYNOPSIS
Checks SQL Agent Job owners against a login to validate which jobs do not match that owner.
.DESCRIPTION
This function checks all SQL Agent Jobs on an instance against a SQL login to validate if that login owns those SQL Agent Jobs or not. By de... | Splaxi/dbatools | functions/Test-DbaAgentJobOwner.ps1 | PowerShell | mit | 6,595 |
#### Integrations
##### EWS v2
- Improved error messages.
| demisto/content | Packs/EWS/ReleaseNotes/1_7_6.md | Markdown | mit | 59 |
<?php
/*
* This file is part of the Predis package.
*
* (c) Daniele Alessandri <suppakilla@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Predis\Profile;
use Predis\ClientException;
/**
* Factory class fo... | gencer/predis | src/Profile/Factory.php | PHP | mit | 2,491 |
<?php
/**
* Created by PhpStorm.
* User: aethr
* Date: 25/04/17
* Time: 5:56 PM
*/
namespace App\Models\Api;
use Neomerx\JsonApi\Schema\SchemaProvider;
class QueueSchema extends SchemaProvider
{
protected $resourceType = 'item';
public function getId($queueItem)
{
/** @var Item $item */
... | MonkiiBuilt/neocortex | app/Models/Api/QueueSchema.php | PHP | mit | 814 |
<?php
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Webapi\Model;
use Magento\Webapi\Model\Config\Converter;
use Magento\Webapi\Model\Cache\Type\Webapi as WebApiCache;
/**
* Service Metadata Model
*/
class ServiceMetadata
{
/**#@+
... | j-froehlich/magento2_wk | vendor/magento/module-webapi/Model/ServiceMetadata.php | PHP | mit | 10,731 |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.Tools.YamlSplitter
{
using Microsoft.DocAsCode.Build.OverwriteDocuments;
using Microsoft.DocAsCode.MarkdigEngine;
using Micro... | dotnet/docfx | tools/YamlSplitter/FragmentModelHelper.cs | C# | mit | 1,492 |
import Ember from 'ember';
import { moduleForComponent, test } from 'ember-qunit';
import startApp from '../../helpers/start-app';
var App;
moduleForComponent('zip-code-input', 'zip-code-input component', {
setup: function() {
App = startApp();
},
teardown: function() {
Ember.run(App, 'destroy');
},
... | ronco/ember-inputmask | tests/unit/components/zip-code-input-test.js | JavaScript | mit | 1,261 |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "paymentserver.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "optionsmodel.h"... | mrflow27/freshcoin | src/qt/paymentserver.cpp | C++ | mit | 22,139 |
var grow = grow || {};
window.grow = grow;
(function(grow){
var toolConfig = {};
grow.ui = grow.ui || {};
grow.ui.showNotice = function(text) {
var notice = document.createElement('div');
notice.classList.add('grow_tool__notice');
if (text) {
notice.appendChild(document.createTextNode(text))... | grow/pygrow | grow/ui/js/composite/ui.js | JavaScript | mit | 2,800 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Qt 4.8: b... | stephaneAG/PengPod700 | QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/network-bearermonitor-bearermonitor-h.html | HTML | mit | 15,474 |
// 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.
namespac... | yugangw-msft/autorest | src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/SwaggerPetstoreV2.cs | C# | mit | 118,406 |
package org.kumoricon.service;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class FieldCleanerTest {
@Test
public void testCleanNameTrimsWhitespace() {
assertEquals("Test", FieldCleaner.cleanName(" Test \n"));
}
@Test
public void testCleanNameHandlesNull()... | jashort/kumoreg | src/test/java/org/kumoricon/service/FieldCleanerTest.java | Java | mit | 2,914 |
namespace Nancy.Bootstrapper
{
using System;
public sealed class ModuleRegistration
{
/// <summary>
/// Represents a module type for registration into a container
/// </summary>
/// <param name="moduleType">Type of the module</param>
/// <param name="module... | paulcbetts/Nancy | src/Nancy/Bootstrapper/ModuleRegistrationType.cs | C# | mit | 727 |
// 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.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
namespace System.Device... | stephentoub/corefxlab | src/System.Devices.Gpio/GpioController.cs | C# | mit | 4,293 |
<?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\Flash;
use JMS\Serializer\Annotation\ExclusionPolicy;... | bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/Flash/HasVideo.php | PHP | mit | 775 |
<div class="modal-body">
<div id="product-pop-up" style="width: 700px;">
<div class="product-page product-pop-up">
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-3">
<div class="product-main-image">
<img ng-src="images/model7.j... | OrcMan1020/UncleBu | app/template/product_detail.html | HTML | mit | 3,555 |
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("St... | bozhidar-slavov/01.CSharp-Fundamentals | Exam-Preparation/4th-Problems/StripedTowel/Properties/AssemblyInfo.cs | C# | mit | 1,400 |
"""
run quality assurance measures on functional data
"""
import sys,glob
sys.path.append('/corral-repl/utexas/poldracklab/software_lonestar/quality-assessment-protocol')
import os
import numpy
from run_shell_cmd import run_shell_cmd
from compute_fd import compute_fd
from qap import load_func,load_image, load_mask, s... | vsoch/myconnectome | myconnectome/qa/run_qap_func.py | Python | mit | 2,129 |
<?php
namespace N98\Util;
class DateTime
{
/**
* Returns a readable string with time difference
*
* @param \DateTime $time1
* @param \DateTime $time2
* @return string
*/
public function getDifferenceAsString(\DateTime $time1, \DateTime $time2)
{
if ($time1 == $time2) ... | iMi-digital/n98-magerun | src/N98/Util/DateTime.php | PHP | mit | 1,002 |
#include "tester.hpp"
#include "../sago/platform_folders.h"
int main() {
run_test(sago::getMusicFolder());
sago::PlatformFolders p;
run_test(p.getMusicFolder());
return 0;
}
| sago007/PlatformFolders | test/getMusicFolder.cpp | C++ | mit | 179 |
var RELANG = {};
RELANG['sq'] = {
html: 'HTML',
video: 'Video',
image: 'Fotografi',
table: 'Tabelë',
link: 'Link',
link_insert: 'Lidh linq ...',
unlink: 'Hiq linkun',
formatting: 'Stilet',
paragraph: 'Paragraf',
quote: 'Kuotë',
code: 'Kod',
header1: 'Header 1',
header2: 'Header 2',
header3: 'Hea... | cremol/symphony-demo | extensions/richtext_redactor/lib/lang/sq.js | JavaScript | mit | 1,958 |
<div controller="components.tester.StateManager">
<style>
[tag='state-manager-container'] {
display: none;
}
.all-states {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.inactive-st... | jaredjbarnes/WoodlandCreatures | packages/WebLib.2.0.0.724/content/lib/weblib/components/tester/StateManager.html | HTML | mit | 469 |
package Nov2020_FBPrep;
public class _046RegularExpressionMatching {
public static void main(String[] args) {
System.out.println(isMatch("aa", "a"));
System.out.println(isMatch("aa", "a*"));
System.out.println(isMatch("ab", ".*"));
System.out.println(isMatch("aab", "c*a*b"));
System.out.println(isMatch("mi... | darshanhs90/Java-InterviewPrep | src/Nov2020_FBPrep/_046RegularExpressionMatching.java | Java | mit | 1,166 |
__version__ = "master"
| jvandijk/pla | pla/version.py | Python | mit | 23 |
<?php
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\Repository;
use Composer\Packag... | bamarni/composer | src/Composer/Repository/CompositeRepository.php | PHP | mit | 3,809 |
'use strict';
const chalk = require('chalk');
const Task = require('../models/task');
const Watcher = require('../models/watcher');
const Builder = require('../models/builder');
const pDefer = require('p-defer');
class BuildWatchTask extends Task {
constructor(options) {
super(options);
this._builder = nul... | HeroicEric/ember-cli | lib/tasks/build-watch.js | JavaScript | mit | 1,250 |
/**
* 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.gallery;
import org.joda.time.Period;
import com... | martinsawicki/azure-sdk-for-java | azure-mgmt-insights/src/main/java/com/microsoft/azure/management/gallery/ThresholdRuleCondition.java | Java | mit | 4,537 |
#!/usr/bin/python
'''
Created on May 14, 2012
@author: Charlie
'''
import ConfigParser
import boto
import cgitb
cgitb.enable()
class MyClass(object):
def __init__(self, domain):
config = ConfigParser.RawConfigParser()
config.read('.boto')
key = config.get('Credentials', 'aws_access_key_i... | donlee888/JsObjects | Python/Prog282SimpleDb/scripts/simpledb.py | Python | mit | 1,593 |
# coding=utf-8
# --------------------------------------------------------------------------
# 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 ... | jkonecki/autorest | AutoRest/Generators/Python/Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/flattened_product.py | Python | mit | 2,348 |
/*
Copyright (c) 2012 <a href="http://www.gutgames.com">James Craig</a>
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, ... | khellang/Craig-s-Utility-Library | Utilities/Random/NameGenerators/FemaleNameGenerator.cs | C# | mit | 4,499 |
<?php
/**
* elFinder driver for Volume Group.
*
* @author Naoki Sawada
**/
class elFinderVolumeGroup extends elFinderVolumeDriver
{
/**
* Driver id
* Must be started from letter and contains [a-z0-9]
* Used as part of volume id.
*
* @var string
**/
protected $driverId = 'g';
... | recca0120/elfinder | lib/elFinderVolumeGroup.class.php | PHP | mit | 5,389 |
<?php
class Example {
/** @return array */
public function read($token)
{
if (!$token || !file_exists($file = 'somefile.txt')) {
return [];
}
// Should infer the type of $file as string because the above condition would set $file if it did not return.
return $file... | etsy/phan | tests/files/src/0717_variable_assign_in_complex_condition.php | PHP | mit | 330 |
module.exports={A:{A:{"1":"E A B","2":"H C G EB"},B:{"1":"D p x J L N I"},C:{"1":"0 1 2 3 4 5 6 8 9 R S T U V W X Y Z b c d e f g h i j k l m n o M q r s t u v w y","2":"YB BB","132":"F K H C G E A B D p x J L N I O P Q WB QB"},D:{"1":"0 1 2 3 4 5 6 8 9 F K H C G E A B D p x J L N I O P Q R S T U V W X Y Z b c d e f g ... | AngeliaGong/AngeliaGong.github.io | node_modules/caniuse-lite/data/features/mp3.js | JavaScript | mit | 837 |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------... | furongsoft/weiphp2.0.1202 | Sources/weiphp2.0.1202/ThinkPHP/Library/Think/Template/TagLib/Html.class.php | PHP | mit | 25,987 |
module Rugged
module Redis
VERSION = "0.1.1"
end
end
| JoeStanton/rugged-redis | lib/rugged/redis/version.rb | Ruby | mit | 61 |
<?php
/**
* Actually performs an XML_RPC request.
*
* PHP versions 4 and 5
*
* @category Web Services
* @package XML_RPC
* @author Daniel Convissor <danielc@php.net>
* @copyright 2005-2010 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License
* @version SVN: $Id: test_Dump... | timcrider/IPLocker | vendor/PEAR/test/XML_RPC/tests/test_Dump.php | PHP | mit | 2,136 |
// Type definitions for Angular JS 1.3 (ngMock, ngMockE2E module)
// Project: http://angularjs.org
// Definitions by: Diego Vilar <http://github.com/diegovilar>, Tony Curtis <http://github.com/daltin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="angular.d.ts" />
declare modu... | uwe0711/snes-konvolut-db | frontend/typings/angularjs/angular-mocks.d.ts | TypeScript | mit | 21,073 |
module DataMapper
# = Properties
# Properties for a model are not derived from a database structure, but
# instead explicitly declared inside your model class definitions. These
# properties then map (or, if using automigrate, generate) fields in your
# repository/database.
#
# If you are coming to DataMa... | framgia/dm-core | lib/dm-core/property.rb | Ruby | mit | 30,745 |
/*
* compound.h
*
* Created on: Jan 14, 2015
* Author: radoslav
*/
#ifndef COMPOUND_H_
#define COMPOUND_H_
#include "statement.h"
#include <vector>
class CallStackFrame {};
class CompoundStatement : public Statement
{
friend class CallStackFrame;
std::vector<Statement> body;
public:
CompoundStateme... | rgeorgiev583/LambdaRadoInterpreter | tmp/compound.h | C | mit | 478 |
/**
* Imports
*/
import React from 'react';
import {FormattedMessage} from 'react-intl';
// Flux
import IntlStore from '../../../stores/Application/IntlStore';
// Required components
import Button from '../buttons/Button';
import Text from '../typography/Text';
// Translation data for this component
import intlDat... | ESTEBANMURUZABAL/bananaStore | src/components/common/forms/AddressPreview.js | JavaScript | mit | 4,127 |
<?php
/** Greek localization file for KCFinder
* author: Spiros Kabasakalis
*/
$lang = array(
'_locale' => "el_GR.UTF-8", // UNIX localization code
'_charset' => "utf-8", // Browser charset
// Date time formats. See http://www.php.net/manual/en/function.strftime.php
'_dateTimeFull' => "%... | RevolvingMindMedia/holdennewhomes | couch/includes/kcfinder/lang/el.php | PHP | mit | 10,585 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>PublicationStore Class Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<meta charset='utf-8'>
<script src="../js/jquery.min.js" defer></script>
... | matchmore/alps-ios-sdk | docs/docsets/Matchmore.docset/Contents/Resources/Documents/Classes/PublicationStore.html | HTML | mit | 20,594 |
@echo off
set PP=%~dp0
%PP%as %*
| goriy/sif | misc/x86_64-w64-mingw32-as.bat | Batchfile | mit | 33 |
'use strict';
var constants = require('../../lifx').constants;
var Packet = {
size: 21
};
/**
* Converts packet specific data from a buffer to an object
* @param {Buffer} buf Buffer containing only packet specific data no header
* @return {Object} Information contained in packet
*/
Packet.toObject = funct... | 3sigma/NodejsLIFXSerial_nwjs_shell_builder | node_modules/node-lifx/lib/lifx/packets/setWaveform.js | JavaScript | mit | 5,427 |
/*
Baseline - a designer framework
Copyright (C) 2009 Stephane Curzi, ProjetUrbain.com
Creative Commons Attribution-Share Alike 3.0 License
*/
/* Baseline Grid */
.layout-grid { background-image: url(images/baseline.png); background-repeat: repeat; background-position: 0 1px; }
| lifelink1987/old.life-link.org | tpl.main/css/static/baseline.0.5.3/css/background-grid/grid.baseline.css | CSS | mit | 281 |
/**
* 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.recoveryservices.siterecovery.v2018_01_10;
impor... | selvasingh/azure-sdk-for-java | sdk/recoveryservices.siterecovery/mgmt-v2018_01_10/src/main/java/com/microsoft/azure/management/recoveryservices/siterecovery/v2018_01_10/A2AApplyRecoveryPointInput.java | Java | mit | 704 |
import { createReducer } from 'redux-act';
import { fetchSystemStatus } from 'actions';
import { loadState, loadStart, loadError, loadComplete } from 'reducers/util';
const initialState = loadState();
export default createReducer({
[fetchSystemStatus.START]: state => loadStart(state),
[fetchSystemStatus.ERROR]: ... | pudo/aleph | ui/src/reducers/systemStatus.js | JavaScript | mit | 462 |
// Utility code
#include <cstdlib>
#include "global.h"
#include "jitpch.h"
#include "cor.h" // CorSigUncompressData
#include "utility.h"
#include "llvm/Support/ConvertUTF.h"
using std::string;
using std::unique_ptr;
int MethodID::parseArgs(const string &S, size_t &I) {
size_t Start = ++I; // skip '('
I = S.fi... | richardlford/llilc | lib/Jit/utility.cpp | C++ | mit | 4,029 |
package net.mostlyoriginal.game.system.flow;
import com.artemis.Aspect;
import com.artemis.ComponentMapper;
import com.artemis.Entity;
import com.artemis.annotations.Wire;
import com.artemis.systems.EntityProcessingSystem;
import com.artemis.utils.EntityBuilder;
import net.mostlyoriginal.api.component.script.Schedule;... | thecocce/odb-minion-factorium | core/src/net/mostlyoriginal/game/system/flow/RetryLevelSystem.java | Java | mit | 1,221 |
body {
font-family: Helvetica, sans-serif;
padding: 0;
margin: 0;
background-color: #ffffff;
}
h2, h3 {
margin-top:100px;
}
form {
margin-top: 15px;
margin-left: 550px;
}
form > input {
margin-right: 15px;
... | Oryano/Social_Clinic | css/styles.css | CSS | mit | 997 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jquery微博信息渐显循环显示效果</title>
<script type="t... | hehongwei44/Project-FE | examples/example.html | HTML | mit | 3,516 |
package org.brunosimoes.programs.paintbrush;
import java.applet.Applet;
import java.awt.Color;
/**
* This program 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 Software Foundation; either version 3 of the License, o... | behnaaz/jPaintbrush | src/org/brunosimoes/programs/paintbrush/PaintBrushApplet.java | Java | mit | 1,233 |
<?php
/**
* PHP 7 SDK for the KATANA(tm) Framework (http://katana.kusanagi.io)
* Copyright (c) 2016-2018 KUSANAGI S.L. All rights reserved.
*
* Distributed under the MIT license
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code
*
* @li... | fcastilloes/katana-sdk-php7 | tests/Mapper/AbstractRuntimeCallMapperTest.php | PHP | mit | 2,527 |
<?php
class Order extends \Eloquent {
protected $fillable = ['table_id', 'completed'];
} | slawisha/RestaurantManager | app/models/Order.php | PHP | mit | 90 |
# React
En este ejemplo añadiremos soporte para [React](https://facebook.github.io/react/).
Empezaremos desde el ejemplo
[00 Intro / 03 Ouput](https://github.com/Lemoncode/webpack-1.x-by-sample/tree/master/00%20Intro/03%20Output)
, instalaremos React de forma local, actualizaremos el archivo *students.js* para usar l... | Lemoncode/webpack-1.x-by-sample | 02 Fx/01 React/README_es.md | Markdown | mit | 3,401 |
default: clean dist run
dist:
mkdir bin/
gcc -std=c99 -I src src/stateMachine.c examples/stateMachineExample.c -o bin/example
run:
./bin/example
clean:
rm -rf bin | adfjhg/stateMachine | Makefile | Makefile | mit | 172 |
A NautilusExtendCommentSwitch is raised when the button to maximize the class comment is switched | vineetreddyrajula/pharo | src/NautilusCommon.package/NautilusExtendCommentSwitch.class/README.md | Markdown | mit | 97 |
require_relative 'random_name_generator'
require_relative 'cumulative_probability_table'
# Class to test the random name generator from the command line interface.
# Will spit out a long list of random names.
class RandomNameGeneratorTest
generator = RandomNameGenerator.new('media/male_sample')
puts 'Generating 4... | gilles-leblanc/gameproject | RandomNameGeneration/random_name_generator_test.rb | Ruby | mit | 376 |
<?php
namespace Illuminate\Support\Facades;
use Illuminate\Filesystem\Filesystem;
/**
* @method static \Illuminate\Contracts\Filesystem\Filesystem assertExists(string|array $path)
* @method static \Illuminate\Contracts\Filesystem\Filesystem assertMissing(string|array $path)
* @method static \Illuminate\Contracts\... | mul14/laravel-framework | src/Illuminate/Support/Facades/Storage.php | PHP | mit | 4,441 |
/*
* Sleuth Kit Data Model
*
* Copyright 2014 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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.a... | ForensicTools/Hotaru-475_2141-Edwards | sleuthkit-develop/bindings/java/src/org/sleuthkit/datamodel/HashEntry.java | Java | mit | 1,535 |
<!DOCTYPE html>
<html>
<head>
<!-- BEGIN META SECTION -->
<meta charset="utf-8">
<title>Themes Lab - Creative Laborator</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="" name="description" />
<meta content="themes-lab" name=... | newset/theme | backend/normal/ThemeLab/layout3/page-coming-soon.html | HTML | mit | 5,564 |
<?php
namespace Oro\Bundle\ApiBundle\Processor\Subresource\DeleteRelationship;
use Oro\Bundle\ApiBundle\Config\Extra\EntityDefinitionConfigExtra;
use Oro\Bundle\ApiBundle\Config\Extra\FilterIdentifierFieldsConfigExtra;
use Oro\Bundle\ApiBundle\Processor\Subresource\SubresourceContext;
use Oro\Component\ChainProcessor... | orocrm/platform | src/Oro/Bundle/ApiBundle/Processor/Subresource/DeleteRelationship/InitializeConfigExtras.php | PHP | mit | 1,310 |
# coding=utf-8
# --------------------------------------------------------------------------
# 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 ... | v-iam/azure-sdk-for-python | azure-servicefabric/azure/servicefabric/models/deployed_stateful_service_replica_info.py | Python | mit | 3,502 |
define(['durandal/app','lib/pagelayout', 'lib/prettify'], function (app, pagelayout, prettify) {
var activePage = ko.observable(),
hash = "",
oc;
return {
compositionComplete : function() {
var that = this;
oc = Stashy.OffCanvas("#sticky", { enableTouch : true })... | yagopv/Stashy | docs/public/App/viewmodels/sticky/sticky.js | JavaScript | mit | 860 |
<?php
namespace DEPI\ProductosAcademicosBundle\DataFixtures\ORM;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use DEPI\ProductosAcademicosBundle\Entity\ProductosAcademicos;
class ProductosAcademicosFixtures e... | fralan123/DEPISite | src/DEPI/ProductosAcademicosBundle/DataFixtures/ORM/ProductosAcademicosFixtures.php | PHP | mit | 1,851 |
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("20... | KaloyanchoSt/Telerik-Academy | 1. Programming C#/2. CSharp-Part-2/01. Arrays/20. VariationsOfSet/Properties/AssemblyInfo.cs | C# | mit | 1,436 |
body {
font-family: 'LucidaGrande', sans-serif;
background-color: rgb(72, 72, 72);
color: #fff;
}
a {
text-decoration: none;
color: rgba(255,255,255,0.35);
}
a:hover {
color: rgba(255,255,255,0.75);
}
p, li {
font-size: 10px;
}
ul li {
list-style-type: none;
}
h2 {
-webkit-margin-bef... | alex-r-bigelow/hanpuku | examples/style.css | CSS | mit | 1,334 |
# == Schema Information
#
# Table name: email_templates
#
# id :integer not null, primary key
# content :text
# hide_recipients :boolean
# status :integer
# subject :string
#
class EmailTemplate < ActiveRecord::Base
enum status: { default: 0, acceptance: 1, rejecti... | hpi-swt2/workshop-portal | app/models/email_template.rb | Ruby | mit | 564 |
<?php
namespace Xiaoler\Blade\Concerns;
use Countable;
use Xiaoler\Blade\Support\Arr;
trait ManagesLoops
{
/**
* The stack of in-progress loops.
*
* @var array
*/
protected $loopsStack = [];
/**
* Add new loop to the stack.
*
* @param \Countable|array $data
* @r... | XiaoLer/blade | src/Concerns/ManagesLoops.php | PHP | mit | 2,125 |
/*
to package
"eslint": "^1.7.3",
"eslint-config-rackt": "^1.1.0",
"eslint-plugin-react": "^3.6.3",
*/
require('es6-promise').polyfill(); // old node 0.10
var path = require('path');
var webpack = require('webpack');
module.exports = {
externals: {
jquery: "jQuery",
autobahn: "autobahn"
},
... | kalmyk/gyper-app | webpack.config.js | JavaScript | mit | 2,035 |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | Bloodknight/Torque3D | Engine/source/platform/platformRedBook.cpp | C++ | mit | 7,514 |
require('uppercase-core');
require('./DIST/NODE.js');
| Hanul/UPPERCASE | OLD/node_modules/uppercase-room/index.js | JavaScript | mit | 54 |
/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
*
* 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
* righ... | a-bx/brayatan | libuv/src/win/util.c | C | mit | 14,991 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.