code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
'use strict';
describe('angular', function() {
var element;
afterEach(function(){
dealoc(element);
});
describe('case', function() {
it('should change case', function() {
expect(lowercase('ABC90')).toEqual('abc90');
expect(manualLowercase('ABC90')).toEqual('abc90');
expect(uppercase... | rpanjwani/angular.js | test/AngularSpec.js | JavaScript | mit | 30,438 |
package corehttp
// TODO: move to IPNS
const WebUIPath = "/ipfs/QmXc9raDM1M5G5fpBnVyQ71vR4gbnskwnB9iMEzBuLgvoZ"
// this is a list of all past webUI paths.
var WebUIPaths = []string{
WebUIPath,
"/ipfs/QmenEBWcAk3tN94fSKpKFtUMwty1qNwSYw3DMDFV6cPBXA",
"/ipfs/QmUnXcWZC5Ve21gUseouJsH5mLAyz5JPp8aHsg8qVUUK8e",
"/ipfs/Qm... | OpenBazaar/openbazaar-go | vendor/github.com/ipfs/go-ipfs/core/corehttp/webui.go | GO | mit | 1,107 |
<?php
/* SonataAdminBundle:CRUD:base_acl_macro.html.twig */
class __TwigTemplate_f7bb38229ed8df4e133506255cce57f53a109aac1f79d839de0cea8756a1aaf0 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->block... | chicho2114/Proy_Frameworks | app/cache/dev/twig/f7/bb/38229ed8df4e133506255cce57f53a109aac1f79d839de0cea8756a1aaf0.php | PHP | mit | 11,223 |
/*****************************************************************************
* This file is part of the Prolog Development Tool (PDT)
*
* Author: Lukas Degener (among others)
* WWW: http://sewiki.iai.uni-bonn.de/research/pdt/start
* Mail: pdt@lists.iai.uni-bonn.de
* Copyright (C): 2004-2012, CS Dept. III, Univ... | TeamSPoon/logicmoo_base | prolog/logicmoo/pdt_server/prolog.connector/src/org/cs3/prolog/connector/cterm/CString.java | Java | mit | 870 |
//
// Created by eran on 01/04/2015.
//
#include <unordered_set>
#include "fakeit/Invocation.hpp"
namespace fakeit {
struct ActualInvocationsContainer {
virtual void clear() = 0;
virtual ~ActualInvocationsContainer() NO_THROWS { }
};
struct ActualInvocationsSource {
virtual void getActualInvocati... | helmesjo/hello-ci | src/external/fakeit/fakeit-repo/include/fakeit/ActualInvocationsSource.hpp | C++ | mit | 2,462 |
#!/usr/bin/python
# Copyright 2014 Steven Watanabe
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
# Test the handling of toolset.add-requirements
import BoostBuild
t = BoostBuild.Tester(pass_toolset=0, ignore_toolset_requi... | davehorton/drachtio-server | deps/boost_1_77_0/tools/build/test/toolset_requirements.py | Python | mit | 933 |
/* Copyright (c) 2018 lib4j
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distrib... | safris-src/org | lib4j/test/src/main/java/org/lib4j/test/AssertXml.java | Java | mit | 7,601 |
#include "src/OgreExternalTextureSourceManager.cpp"
#include "src/OgreFileSystem.cpp"
#include "src/OgreFont.cpp"
#include "src/OgreFontManager.cpp"
#include "src/OgreFrustum.cpp"
#include "src/OgreGpuProgram.cpp"
#include "src/OgreGpuProgramManager.cpp"
#include "src/OgreGpuProgramParams.cpp"
#include "src/OgreGpuProg... | airgames/vuforia-gamekit-integration | Gamekit/compilation/OgreMain/compile_OgreMain_1.cpp | C++ | mit | 1,519 |
# frozen_string_literal: true
require_relative 'helper'
describe 'Digest class' do
it 'raises error with invalid digest_class' do
assert_raises ArgumentError do
Dalli::Client.new('foo', { expires_in: 10, digest_class: Object })
end
end
end
| mperham/dalli | test/test_digest_class.rb | Ruby | mit | 260 |
using UnityEngine;
using System.Collections;
using System.Runtime.Serialization;
namespace StrumpyShaderEditor
{
[DataContract(Namespace = "http://strumpy.net/ShaderEditor/")]
public abstract class ChannelReference {
[DataMember] private string nodeIdentifier;
[DataMember] private uint channelId;
public Cha... | ahito89/SSE | ShaderEditor/Assets/StrumpyShaderEditor/Editor/Graph/Nodes/Channels/ChannelReference.cs | C# | mit | 631 |
var partialsTemp = [
"login",
"profile"
];
exports.partialRender = function (req, res) {
var pageIndex = req.params[0];
if (partialsTemp.indexOf("" + pageIndex) > -1) {
res.render("partials/" + pageIndex, {});
} else {
res.render("common/404", {});
}
}; | ManGroup/jsEasy | controllers/partials.js | JavaScript | mit | 296 |
/*
* The MIT License
*
* Copyright 2015 Eduardo Weiland.
*
* 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,... | eduardoweiland/transformacoes-glc | app/js/transformations.js | JavaScript | mit | 13,493 |
/**
* Uploader implementation - with the Connection object in ExtJS 4
*
*/
Ext.define('MyApp.ux.panel.upload.uploader.ExtJsUploader', {
extend : 'MyApp.ux.panel.upload.uploader.AbstractXhrUploader',
requires : [ 'MyApp.ux.panel.upload.data.Connection' ],
config : {
/**
* @cfg {String} [method='PUT']
* ... | cwtuan/ExtJSTutorial-HiCloud | src/main/webapp/app/ux/panel/upload/uploader/ExtJsUploader.js | JavaScript | mit | 3,140 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using NSubstitute;
using Nancy;
using Nancy.Routing;
using PactNet.Logging;
using PactNet.Mocks.MockHttpService;
using PactNet.Mocks.MockHttpService.Nancy;
using Xunit;
namespace PactNet.Tests.Mock... | humblelistener/pact-net | PactNet.Tests/Mocks/MockHttpService/Nancy/MockProviderNancyRequestDispatcherTests.cs | C# | mit | 9,535 |
class Revista<ReferenciaBase
attr_reader :m_nombre_revista, :m_volumen, :m_paginas
def initialize(a_autores,a_titulo,a_anio,a_nombre_revista, a_volumen, a_paginas)
super(a_autores,a_titulo,a_anio)
@m_nombre_revista,@m_volumen, @m_paginas = a_nombre_revista, a_volumen, a_paginas
end
end | alu0100773408/prct10 | lib/referencia/revista.rb | Ruby | mit | 316 |
"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")... | oliviertassinari/material-ui | packages/mui-icons-material/lib/FormatTextdirectionLToRRounded.js | JavaScript | mit | 769 |
var jazz = require("../lib/jazz");
var fs = require("fs");
var data = fs.readFileSync(__dirname + "/foreach_object.jazz", "utf8");
var template = jazz.compile(data);
template.eval({"doc": {
"title": "First",
"content": "Some content"
}}, function(data) { console.log(data); });
| shinetech/jazz | examples/foreach_object.js | JavaScript | mit | 288 |
/**********************************************************************
map_GoogleV2.js
$Comment: provides JavaScript for Google Api V2 calls
$Source :map_GoogleV2.js,v $
$InitialAuthor: guenter richter $
$InitialDate: 2011/01/03 $
$Author: guenter richter $
$Id:map_GoogleV2.js 1 2011-01-03 10:30:35Z Guenter... | emergenzeHack/terremotocentro | maptune/js/maptune/maptune.GoogleV2.js | JavaScript | mit | 5,620 |
import InputValidator from "../../common/js/InputValidator.js";
import ObjectUtilities from "../../common/js/ObjectUtilities.js";
import Action from "./Action.js";
import DefaultFilters from "./DefaultFilters.js";
import InitialState from "./InitialState.js";
var Reducer = {};
Reducer.root = function(state, action)
{... | jmthompson2015/lotr-card-game | src/accessory/player-card-table/Reducer.js | JavaScript | mit | 3,186 |
package com.github.mlk.queue.codex;
import com.github.mlk.queue.Queuify;
import com.github.mlk.queue.implementation.Module;
public class Utf8StringModule implements Module {
public static Utf8StringModule utfStrings() {
return new Utf8StringModule();
}
@Override
public void bind(Queuify.Build... | mlk/miniature-queue | core/src/main/java/com/github/mlk/queue/codex/Utf8StringModule.java | Java | mit | 434 |
ig.module(
'plusplus.config-user'
)
.defines(function() {
/**
* User configuration of Impact++.
* <span class="alert alert-info"><strong>Tip:</strong> it is recommended to modify this configuration file!</span>
* @example
* // in order to add your own custom configur... | collinhover/impactplusplus | examples/supercollider/lib/plusplus/config-user.js | JavaScript | mit | 3,308 |
/*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Brian Westrich, Jean-Baptiste Quenot, id:cactusman
* 2015 Kanstantsin Shautsou
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentat... | SebastienGllmt/jenkins | core/src/main/java/hudson/triggers/SCMTrigger.java | Java | mit | 23,475 |
/*
* The MIT License
*
* Copyright 2019 Karus Labs.
*
* 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, modi... | Pante/Karus-Commons | commons/src/test/java/com/karuslabs/commons/command/synchronization/SynchronizationTest.java | Java | mit | 3,282 |
<?php
/*
* This file is part of the Omnipay package.
*
* (c) Adrian Macneil <adrian@adrianmacneil.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Omnipay\Common\Message;
use Mockery as m;
use Omnipay\TestCase;
cl... | cleverage/omnipay | tests/Omnipay/Common/Message/AbstractResponseTest.php | PHP | mit | 726 |
# encoding: utf-8
require 'spec_helper'
describe Github::Authorization do
let(:client_id) { '234jl23j4l23j4l' }
let(:client_secret) { 'asasd79sdf9a7asfd7sfd97s' }
let(:code) { 'c9798sdf97df98ds'}
let(:site) { 'http://github-ent.example.com/' }
let(:options) { {:site => site} }
subject(:github) { Github.n... | peter-murach/github | spec/github/authorization_spec.rb | Ruby | mit | 5,177 |
require File.expand_path('../spec_helper', __FILE__)
module Danger
describe DangerProse do
it 'is a plugin' do
expect(Danger::DangerProse < Danger::Plugin).to be_truthy
end
describe 'with Dangerfile' do
before do
@dangerfile = testing_dangerfile
@prose = testing_dangerfile.pr... | dbgrandi/danger-proselint | spec/danger_plugin_spec.rb | Ruby | mit | 4,724 |
'use strict'
const path = require('path')
const hbs = require('express-hbs')
module.exports = function (app, express) {
hbs.registerHelper('asset', require('./helpers/asset'))
app.engine('hbs', hbs.express4({
partialsDir: path.resolve('app/client/views/partials'),
layoutsDir: path.resolve('app/client/vie... | finkhq/fink-www | app/server/views/index.js | JavaScript | mit | 535 |
// Polyfills
if ( Number.EPSILON === undefined ) {
Number.EPSILON = Math.pow( 2, - 52 );
}
if ( Number.isInteger === undefined ) {
// Missing in IE
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger
Number.isInteger = function ( value ) {
return typeof valu... | fraguada/three.js | src/polyfills.js | JavaScript | mit | 1,691 |
<?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\FlashPix;
use JMS\Serializer\Annotation\ExclusionPoli... | bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/FlashPix/LockedPropertyList.php | PHP | mit | 807 |
import supertest from 'supertest';
import { publicChannelName, privateChannelName } from './channel.js';
import { roleNameUsers, roleNameSubscriptions, roleScopeUsers, roleScopeSubscriptions, roleDescription } from './role.js';
import { username, email, adminUsername, adminPassword } from './user.js';
export const re... | VoiSmart/Rocket.Chat | tests/data/api-data.js | JavaScript | mit | 1,993 |
<?php
namespace Illuminate\Database\Eloquent;
use Exception;
use ArrayAccess;
use JsonSerializable;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Illuminate\Contracts\Support\Jsonable;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Routing\UrlRoutable;
use Illuminate\Contracts\Queu... | joecohens/framework | src/Illuminate/Database/Eloquent/Model.php | PHP | mit | 39,540 |
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using ECommon.Components;
using ECommon.Scheduling;
using ECommon.Socketing;
using EQueue.Protocols;
namespace EQueue.Broker.Client
{
public class ConsumerManager
{
private readonly ConcurrentDictionary<string, C... | Aaron-Liu/equeue | src/EQueue/Broker/Client/ConsumerManager.cs | C# | mit | 3,773 |
<?php
namespace Phrest\Skeleton\v1\Requests\Users;
use Phrest\SDK\Request\AbstractRequest;
use Phrest\SDK\Request\RequestOptions;
use Phrest\SDK\PhrestSDK;
class CreateUserRequest extends AbstractRequest
{
/**
* @var string
*/
private $path = '/v1/users/';
/**
* @var string
*/
public $name = nu... | phrest/skeleton | src/v1/Requests/Users/CreateUserRequest.php | PHP | mit | 1,538 |
'use strict';
// https://github.com/betsol/gulp-require-tasks
// Require the module.
const gulpRequireTasks = require('gulp-require-tasks');
const gulp = require('gulp');
const env = require('../index');
// Call it when necessary.
gulpRequireTasks({
// Pass any options to it. Please see below.
path: env.inConfigs... | ilivebox/microsb | node/configs/gulp/gulpfile.js | JavaScript | mit | 421 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CacheCow.Server.EntityTagStore.SqlServer
{
internal class ColumnNames
{
public static string CacheKeyHash = "CacheKeyHash";
public static string RoutePattern = "RoutePattern";
public static string Res... | Hotkey/CacheCow | src/CacheCow.Server.EntityTagStore.SqlServer/ColumnNames.cs | C# | mit | 445 |
import * as React from "react";
import { CarbonIconProps } from "../../";
declare const Laptop24: React.ForwardRefExoticComponent<
CarbonIconProps & React.RefAttributes<SVGSVGElement>
>;
export default Laptop24;
| mcliment/DefinitelyTyped | types/carbon__icons-react/lib/laptop/24.d.ts | TypeScript | mit | 214 |
/* @flow */
"use strict";
var _inherits = require("babel-runtime/helpers/inherits")["default"];
var _classCallCheck = require("babel-runtime/helpers/class-call-check")["default"];
var _getIterator = require("babel-runtime/core-js/get-iterator")["default"];
var _Object$assign = require("babel-runtime/core-js/object... | Shashank92/promises-demo | node_modules/gulp-babel/node_modules/babel-core/node_modules/babel-generator/lib/printer.js | JavaScript | mit | 10,786 |
using System;
using System.ComponentModel;
using System.Web;
using System.Web.Security;
using System.Xml.Linq;
using System.Xml.XPath;
using Umbraco.Core;
using Umbraco.Core.Dictionary;
using Umbraco.Core.Dynamics;
using Umbraco.Core.Models;
using Umbraco.Core.Security;
using Umbraco.Core.Services;
using U... | gavinfaux/Umbraco-CMS | src/Umbraco.Web/UmbracoHelper.cs | C# | mit | 59,353 |
/**
* Gulp tasks for wrapping Browserify modules.
*/
const browserify = require("browserify");
const gulp = require("gulp");
const sourcemaps = require("gulp-sourcemaps");
const uglify = require("gulp-uglify");
const path = require("path");
const through2 = require("through2");
const buffer = require("vinyl-buffer");... | unitejs/engine | assets/gulp/dist/tasks/bundler/browserify/build-bundle-app.js | JavaScript | mit | 2,848 |
// Commom Plugins
(function($) {
'use strict';
// Scroll to Top Button.
if (typeof theme.PluginScrollToTop !== 'undefined') {
theme.PluginScrollToTop.initialize();
}
// Tooltips
if ($.isFunction($.fn['tooltip'])) {
$('[data-tooltip]:not(.manual), [data-plugin-tooltip]:not(.manual)').tooltip();
}
// Popo... | SupasitC/Pricetrolley | src/javascripts/theme.init.js | JavaScript | mit | 8,635 |
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
"os"
"os/user"
"path/filepath"
"strings"
"golang.org/x/net/context"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
gmail "google.golang.org/api/gmail/v1"
"github.com/code... | usk81/shikigami | rei/rei.go | GO | mit | 10,099 |
// This file contains source that originates from:
// http://code.google.com/p/leveldbwin/source/browse/trunk/win32_impl_src/env_win32.h
// http://code.google.com/p/leveldbwin/source/browse/trunk/win32_impl_src/port_win32.cc
// Those files dont' have any explict license headers but the
// project (http://code.google.c... | jesuscoinproject/jesuscoin | src/leveldb/util/env_win.cc | C++ | mit | 25,974 |
'use strict';
const BitcrusherProps = {
bits: {
type: 'number',
bounds: [1, 16],
defaultValue: 4
},
normfreq: {
type: 'number',
bounds: [0, 1],
step: 0.1,
defaultValue: 0.1
},
bufferSize: {
type: 'number',
bounds: [256, 16384],... | civa86/web-synth | lib/src/properties/BitcrusherProps.js | JavaScript | mit | 483 |
/***********************************************************************************
** MIT License **
** **
** Copyright (c) 2018 Victor DENIS (victordenis01@gmail.com) ... | Feldrise/Sielo-NavigateurV3-WebEngine | Core/Widgets/HorizontalListWidget.cpp | C++ | mit | 2,823 |
import os
import sys
from Bio import SeqIO
f = open(sys.argv[1], 'rU')
out = open(sys.argv[2], 'w')
for records in SeqIO.parse(f, 'fastq'):
SeqIO.write(records, out, 'fasta')
| chnops/code | fastq_to_fasta.py | Python | mit | 177 |
require 'strscan'
##
# Parses a gem.deps.rb.lock file and constructs a LockSet containing the
# dependencies found inside. If the lock file is missing no LockSet is
# constructed.
class Gem::RequestSet::Lockfile
##
# Raised when a lockfile cannot be parsed
class ParseError < Gem::Exception
##
# The ... | justsml/docker-build-server | ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/request_set/lockfile.rb | Ruby | mit | 13,070 |
define({
"_widgetLabel": "Tra cứu Địa lý",
"description": "Duyệt đến hoặc Kéo <a href='./widgets/GeoLookup/data/sample.csv' tooltip='Download an example sheet' target='_blank'> trang tính </a> tại đây để mô phỏng và thêm các dữ liệu bản đồ vào trang tính đó.",
"selectCSV": "Chọn một CSV",
"loadingCSV": "Đang tả... | cmccullough2/cmv-wab-widgets | wab/2.3/widgets/GeoLookup/nls/vi/strings.js | JavaScript | mit | 1,683 |
var chai = require("chai")
var should = chai.should();
chai.use(require("chai-http"));
var request = chai.request(require("./server"))
var db = require("mongojs")("test")
describe("CRUD Handler", () => {
before(done => {
done()
})
beforeEach(done => {
db.dropDatabase(done);
})
af... | AkashBabu/server-helper | test/crudHandler/test.js | JavaScript | mit | 4,155 |
"use strict";
devdiv.directive('devDiv', [function () {
return {
restrict: 'E',
link: function (scope, iElement, iAttrs) {
iElement.addClass("dev-div");
iElement.addClass("row");
}
};
}])
devdiv.controller('NameCtrl', function ($scope, $watch) {
}); | abdurrahmanekr/devdiv | src/directive/devdiv.js | JavaScript | mit | 267 |
(function() {
'use strict';
/* Filters */
var md5 = function (s) {
if (!s) return '';
function L(k, d) {
return (k << d) | (k >>> (32 - d));
}
function K(G, k) {
var I, d, F, H, x;
F = (G & 2147483648);
H = (k & 2147483648);
I = (G & 1073741824);
d = (k & 107... | chariotsolutions/reactive-quizzo-code-sample | public/moderator/bower_components/md5-angular-filter/js/md5.filter.js | JavaScript | mit | 6,722 |
#!/usr/bin/env python
#
# GrovePi Example for using the Grove Electricity Sensor (http://www.seeedstudio.com/wiki/Grove_-_Electricity_Sensor)
#
# The GrovePi connects the Raspberry Pi and Grove sensors. You can learn more about GrovePi here: http://www.dexterindustries.com/GrovePi
#
# Have a question about this examp... | karan259/GrovePi | Software/Python/grove_electricity_sensor.py | Python | mit | 2,530 |
// Copyright (c) 2015 ZZZ Projects. All rights reserved
// Licensed under MIT License (MIT) (https://github.com/zzzprojects/Z.ExtensionMethods)
// Website: http://www.zzzprojects.com/
// Feedback / Feature Requests / Issues : http://zzzprojects.uservoice.com/forums/283927
// All ZZZ Projects products: Entity Framework ... | mario-loza/Z.ExtensionMethods | src/Z.IO/System.IO.FileInfo/FileInfo.ChangeExtension.cs | C# | mit | 2,160 |
require 'openssl'
require_relative 'app'
module Spaceship
module Portal
# Represents a certificate from the Apple Developer Portal.
#
# This can either be a code signing identity or a push profile
class Certificate < PortalBase
# @return (String) The ID given from the developer portal. You'll ... | orta/fastlane | spaceship/lib/spaceship/portal/certificate.rb | Ruby | mit | 12,581 |
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("Co... | MilStancheva/Telerik-Academy-Projects | C# Fundamentals/OperatorsAndExpressions/11. 3rd Bit/Properties/AssemblyInfo.cs | C# | mit | 1,414 |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | hashhar/vscode | src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.ts | TypeScript | mit | 7,276 |
package net.ontrack.core.security;
import lombok.Data;
import net.ontrack.core.model.AccountSummary;
@Data
public class ProjectAuthorization {
private final int project;
private final AccountSummary account;
private final ProjectRole role;
}
| joansmith/ontrack | ontrack-core/src/main/java/net/ontrack/core/security/ProjectAuthorization.java | Java | mit | 258 |
require 'set'
require 'sprockets/http_utils'
require 'sprockets/path_dependency_utils'
require 'sprockets/uri_utils'
module Sprockets
module Resolve
include HTTPUtils, PathDependencyUtils, URIUtils
# Public: Find Asset URI for given a logical path by searching the
# environment's load paths.
#
#... | askl56/sprockets | lib/sprockets/resolve.rb | Ruby | mit | 6,764 |
(function (subdivision) {
'use strict';
var count = 0;
var builders;
var defaultBuilder;
function buildInternal(type, addin, options, meta) {
var builder = subdivision.getBuilder(type);
if (builder.preBuildTarget) {
addin = buildInternal(builder.preBuildTarget, addin, o... | BorisKozo/extensibility.js | app/lib/builder.js | JavaScript | mit | 7,868 |
import argparse
import asyncio
import gc
import os.path
import pathlib
import socket
import ssl
PRINT = 0
async def echo_server(loop, address, unix):
if unix:
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
else:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.... | 1st1/uvloop | examples/bench/echoserver.py | Python | mit | 6,317 |
<?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\MXF;
use JMS\Serializer\Annotation\ExclusionPolicy;
u... | bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/MXF/EventStart.php | PHP | mit | 799 |
<?php
namespace Soda\Cms\Database\Repositories\Contracts;
use Illuminate\Http\Request;
use Soda\Cms\Database\Models\Contracts\ContentInterface;
interface ContentRepositoryInterface extends BaseRepositoryInterface
{
public function findBySlug($slug);
public function listFolder(Request $request, ContentInterf... | sodacms/sodacms | src/Database/Repositories/Contracts/ContentRepositoryInterface.php | PHP | mit | 741 |
/*!
* reveal.js
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2016 Hakim El Hattab, http://hakim.se
*/
(function( root, factory ) {
if( typeof define === 'function' && define.amd ) {
// AMD. Register as an anonymous module.
define( function() {
root.Reveal = factory();
return root.Re... | lihuma/lihuma.github.io | js/reveal.js | JavaScript | mit | 131,510 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# 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, or
# (at your option) any later version.
#
# This progra... | 0vercl0k/rp | src/third_party/beaengine/tests/0f3a25.py | Python | mit | 2,835 |
class Base {
public:
Resource *p;
Base() {
p = createResource();
}
virtual void f() { //has virtual function
//...
}
//...
~Base() { //wrong: is non-virtual
freeResource(p);
}
};
class Derived: public Base {
public:
Resource *dp;
Derived() {
dp = createResource2();
}
~Derived() {
freeResource2(dp... | github/codeql | cpp/ql/src/jsf/4.10 Classes/AV Rule 78.cpp | C++ | mit | 568 |
#region Copyright (c) 2003, newtelligence AG. All rights reserved.
/*
// Copyright (c) 2003, newtelligence AG. (http://www.newtelligence.com)
// Original BlogX Source Code: Copyright (c) 2003, Chris Anderson (http://simplegeek.com)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with ... | poppastring/dasblog | source/newtelligence.DasBlog.Runtime/DayEntry.cs | C# | mit | 9,683 |
var Example = Example || {};
Example.staticFriction = function() {
var Engine = Matter.Engine,
Render = Matter.Render,
Runner = Matter.Runner,
Body = Matter.Body,
Composites = Matter.Composites,
Events = Matter.Events,
MouseConstraint = Matter.MouseConstraint,
... | lsu-emdm/nx-physicsUI | matter-js/examples/staticFriction.js | JavaScript | mit | 2,921 |
require File.dirname(__FILE__) + "/../spec_helper.rb"
| mhennemeyer/macspec | spec/mac_spec/testing_framework/spec_helper.rb | Ruby | mit | 54 |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtain... | xsilium-frameworks/xsilium-engine | Library/Ogre/Components/RTShaderSystem/src/OgreShaderExHardwareSkinning.cpp | C++ | mit | 18,731 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.07.... | AltisourceLabs/ecloudmanager | tmrk-cloudapi/src/main/java/org/ecloudmanager/tmrk/cloudapi/model/ResourceBurstType.java | Java | mit | 2,598 |
var searchData=
[
['vertical_5fline',['vertical_line',['../class_abstract_board.html#a78c4d43cc32d9dc74d73156497db6d3f',1,'AbstractBoard']]]
];
| dawidd6/qtictactoe | docs/search/variables_9.js | JavaScript | mit | 146 |
package runner
import (
"strings"
"testing"
"gopkg.in/stretchr/testify.v1/assert"
)
// https://wfuzz.googlecode.com/svn/trunk/wordlist/Injections/SQL.txt
var fuzzList = `
'
"
#
-
--
'%20--
--';
'%20;
=%20'
=%20;
=%20--
\x23
\x27
\x3D%20\x3B'
\x3D%20\x27
\x27\x4F\x52 SELECT *
\x27\x6F\x72 SELECT *
'or%20select *
a... | mgutz/dat | sqlx-runner/sqli_test.go | GO | mit | 3,048 |
import flask
from donut import auth_utils
from donut.modules.account import blueprint, helpers
@blueprint.route("/request")
def request_account():
"""Provides a form to request an account."""
return flask.render_template("request_account.html")
@blueprint.route("/request/submit", methods=["POST"])
def requ... | ASCIT/donut | donut/modules/account/routes.py | Python | mit | 3,294 |
package org.ominidi.api.controller;
import org.ominidi.api.exception.ConnectionException;
import org.ominidi.api.exception.NotFoundException;
import org.ominidi.api.model.Errors;
import org.ominidi.domain.model.Feed;
import org.ominidi.domain.model.Post;
import org.ominidi.facebook.service.PageFeedService;
imp... | ominidi/ominidi-web | src/main/java/org/ominidi/api/controller/FeedController.java | Java | mit | 1,506 |
#include "jsonobject.h"
#include "jsonparser.h"
namespace amgcommon {
namespace json {
JsonObject::JsonObject(string rawJson) {
this->originalJson = rawJson;
this->root = JsonNode();
}
JsonObject::JsonObject(const JsonObject &a) {
... | agancsos/cpp | amgbuildagent/src/classes/amgcommon/json/jsonobject.cpp | C++ | mit | 1,076 |
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* Class for axis handling.
*
* PHP versions 4 and 5
*
* LICENSE: 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 Founda... | extremeframework/extremeframework | library/external/PEAR/Image/Graph/Axis/Category.php | PHP | mit | 13,647 |
/**
* Created by huangyao on 14-10-1.
*/
var _ = require('lodash');
var color =require('colors');
var fs =require('fs');
var config = require('../config.js');
var path = require('path');
var mongoose = require("mongoose");
var lcommon = require('lush').common;
console.log(config.db);
mongoose.connect(config.db,functi... | NodeAndroid/Action_server | module/index.js | JavaScript | mit | 1,812 |
namespace SalesDatabase.Models
{
using System.Collections.Generic;
public class StoreLocation
{
public StoreLocation()
{
this.SalesInStore = new HashSet<Sale>();
}
public int Id { get; set; }
public string LocationName { get; set; }
public ICo... | sevdalin/Software-University-SoftUni | Db Advanced - EF Core/04. EntityFramework Code-First Advanced/SalesDatabase/Models/StoreLocation.cs | C# | mit | 371 |
# -*- coding:utf-8 -*-
from re import sub
from itertools import islice
'''
如何调整字符串的文本格式
'''
# 将日志文件中的日期格式转变为美国日期格式mm/dd/yyyy
# 使用正则表达式模块中的sub函数进行替换字符串
with open("./log.log","r") as f:
for line in islice(f,0,None):
#print sub("(\d{4})-(\d{2})-(\d{2})",r"\2/\3/\1",line)
# 可以为每个匹配组起一个别名
print... | liuhll/BlogAndArticle | Notes/Python/src/exercise/string_repalce_by_resub.py | Python | mit | 537 |
version https://git-lfs.github.com/spec/v1
oid sha256:054dbc79bbfc64911008a1e140813a8705dfc5cff35cbffd8bf7bc1f74c446b6
size 5257
| yogeshsaroya/new-cdnjs | ajax/libs/flot/0.8.0/jquery.flot.fillbetween.js | JavaScript | mit | 129 |
module Supa
class Builder
COMMANDS_WITH_DEFAULT_INTERFACE = %w(attribute virtual object namespace collection append).freeze
def initialize(subject, representer:, tree:)
@subject = subject
@representer = representer
@tree = tree
end
COMMANDS_WITH_DEFAULT_INTERFACE.each do |command|
... | dasnotme/supa | lib/supa/builder.rb | Ruby | mit | 931 |
define(["widgetjs/widgetjs", "lodash", "jquery", "prettify", "code", "bootstrap"], function(widgetjs, lodash, jQuery, prettify, code) {
var examples = {};
examples.modals = code({
group: "Modals",
label: "Modals",
links: ["http://getbootstrap.com/javascript/#modals"],
example :... | foretagsplatsen/widget-js | sample/bootstrap/javascriptExamples.js | JavaScript | mit | 10,606 |
class AddCorrectAnswerToQuestions < ActiveRecord::Migration
def change
add_column :questions, :correct_answer, :integer, :default => nil
end
end
| lowellmower/star_overflow | db/migrate/20150711152543_add_correct_answer_to_questions.rb | Ruby | mit | 153 |
module.exports = require('./lib/dustjs-browserify'); | scottbrady/dustjs-browserify | index.js | JavaScript | mit | 52 |
namespace GE.WebUI.ViewModels
{
public sealed class VMGameMenuEmptyGame
{
public string IconPath { get; set; }
public string GoodImagePath { get; set; }
public string BadImagePath { get; set; }
}
} | simlex-titul2005/game-exe.com | GE.WebUI/ViewModels/VMGameMenuEmptyGame.cs | C# | mit | 236 |
version https://git-lfs.github.com/spec/v1
oid sha256:94e212e6fc0c837cd9fff7fca8feff0187a0a22a97c7bd4c6d8f05c5cc358519
size 3077
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.16.0/scrollview-list/scrollview-list.js | JavaScript | mit | 129 |
#ifndef BOOST_NETWORK_PROTOCOL_HTTP_IMPL_HTTP_SYNC_CONNECTION_20100601
#define BOOST_NETWORK_PROTOCOL_HTTP_IMPL_HTTP_SYNC_CONNECTION_20100601
// Copyright 2013 Google, Inc.
// Copyright 2010 (C) Dean Michael Berris
// Copyright 2010 (C) Sinefunc, Inc.
// Distributed under the Boost Software License, Version 1.0.
// (S... | medsouz/AnvilClient | AnvilEldorado/Depends/Include/boost/network/protocol/http/client/connection/sync_normal.hpp | C++ | mit | 5,139 |
import React from 'react'
import Icon from 'react-icon-base'
const IoTshirtOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m11.4 6.7l-8.1 2.4 0.8 2.5 3.1-0.3 3-0.4-0.2 3-1.1 19.9h17.2l-1.1-19.9-0.2-3 3 0.4 3.1 0.3 0.8-2.5-8.1-2.4c-0.5 0.6-1 1.1-1.6 1.5-1.2 0.8-2.7 1.2-4.5 1.2-2.7-0.... | bengimbel/Solstice-React-Contacts-Project | node_modules/react-icons/io/tshirt-outline.js | JavaScript | mit | 511 |
import {NgbCalendarIslamicCivil} from './ngb-calendar-islamic-civil';
import {NgbDate} from '../ngb-date';
import {Injectable} from '@angular/core';
/**
* Umalqura calendar is one type of Hijri calendars used in islamic countries.
* This Calendar is used by Saudi Arabia for administrative purpose.
* Unlike tabular ... | ktriek/ng-bootstrap | src/datepicker/hijri/ngb-calendar-islamic-umalqura.ts | TypeScript | mit | 9,063 |
declare module "react-apollo" {
declare function graphql(query: Object, options: Object): Function;
}
| NewSpring/apollos-core | .types/react-apollo.js | JavaScript | mit | 104 |
<?php
namespace Chamilo\Application\Weblcms\Tool\Implementation\ExamAssignment\Ajax\Component;
use Chamilo\Application\Weblcms\Tool\Implementation\ExamAssignment\Ajax\Manager;
use Symfony\Component\HttpFoundation\JsonResponse;
/**
* @package Chamilo\Application\Weblcms\Tool\Implementation\ExamAssignment\Ajax\Compone... | forelo/cosnics | src/Chamilo/Application/Weblcms/Tool/Implementation/ExamAssignment/Ajax/Component/ListUsersComponent.php | PHP | mit | 970 |
/*
* deferred.js
*
* Copyright 2011, HeavyLifters Network Ltd. All rights reserved.
*/
;(function() {
var DeferredAPI = {
deferred: deferred,
all: all,
Deferred: Deferred,
DeferredList: DeferredList,
wrapResult: wrapResult,
wrapFailure: wrapFailure,
Failure: Failure
... | heavylifters/deferred-js | lib/deferred.js | JavaScript | mit | 8,895 |
'use strict';
var request = require('request');
var querystring = require('querystring');
var FirebaseError = require('./error');
var RSVP = require('rsvp');
var _ = require('lodash');
var logger = require('./logger');
var utils = require('./utils');
var responseToError = require('./responseToError');
var refreshToken... | CharlesSanford/personal-site | node_modules/firebase-tools/lib/api.js | JavaScript | mit | 6,556 |
/**!
* urllib - test/fixtures/server.js
*
* Copyright(c) 2011 - 2014 fengmk2 and other contributors.
* MIT Licensed
*
* Authors:
* fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com)
*/
"use strict";
/**
* Module dependencies.
*/
var should = require('should');
var http = require('http');
var queryst... | pmq20/urllib | test/fixtures/server.js | JavaScript | mit | 5,950 |
/*
A small frog wants to get to the other side of the road. The frog is currently located at position X and wants to get to a position greater than or equal to Y. The small frog always jumps a fixed distance, D.
Count the minimal number of jumps that the small frog must perform to reach its target.
Write a function:
in... | anishacharya/Codility-Challenges | FrogJump.cpp | C++ | mit | 751 |
// Type definitions for @ag-grid-community/core v25.0.1
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ag-grid/>
export declare function convertToSet<T>(list: T[]): Set<T>;
| ceolter/angular-grid | community-modules/core/dist/es6/utils/set.d.ts | TypeScript | mit | 214 |
package com.dubture.twig.core.model;
public interface IFunction extends ITwigCallable {
}
| gencer/Twig-Eclipse-Plugin | com.dubture.twig.core/src/com/dubture/twig/core/model/IFunction.java | Java | mit | 91 |
#!/usr/bin/env python
#
# GrovePi Example for using the Grove Slide Potentiometer (http://www.seeedstudio.com/wiki/Grove_-_Slide_Potentiometer)
#
# The GrovePi connects the Raspberry Pi and Grove sensors. You can learn more about GrovePi here: http://www.dexterindustries.com/GrovePi
#
# Have a question about this exa... | karan259/GrovePi | Software/Python/grove_slide_potentiometer.py | Python | mit | 2,307 |
package maritech.nei;
import mariculture.core.lib.Modules;
import mariculture.factory.Factory;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import codechicken.nei.api.API;
import codechicken.nei.api.IConfigureNEI;
public class MTNEIConfig implements IConfigureNEI {
@Overri... | svgorbunov/Mariculture | src/main/java/maritech/nei/MTNEIConfig.java | Java | mit | 676 |
package tpe.exceptions.trycatchfinally;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Point;
import de.smits_net.games.framework.board.Board;
/**
* Spielfeld.
*/
public class GameBoard extends Board {
/** Sprite, das durch das Bild läuft. */
private Professor ... | tpe-lecture/repo-27 | 06_ausnahmen/02_finally/src/tpe/exceptions/trycatchfinally/GameBoard.java | Java | mit | 955 |
<?= form_open('', array("class"=>"form-horizontal", "id"=>"frm_menu")); ?>
<div class="form-group <?= form_error('title') ? ' error' : ''; ?>">
<label for="title" class="control-label col-sm-2"><?= lang('menus_title'); ?></label>
<div class="col-sm-4">
<input type="hidden" id="menuid" name="menuid" valu... | suwitolt/ci3-adminlte-hmvc | application/modules/menus/views/menus_form.php | PHP | mit | 14,064 |