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 |
|---|---|---|---|---|---|
<TS language="fa" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<source>About Argentum Core</source>
<translation type="unfinished"/>
</message>
<message>
<source><b>Argentum Core</b> version</source>
<translation type="unfinished"/>
</messag... | Cryptcollector/ARG2.0 | src/qt/locale/bitcoin_fa.ts | TypeScript | mit | 135,299 |
import { readFileSync } from 'fs';
import { createServer } from 'http';
import { parse } from 'url';
import { join } from 'path';
var server = createServer(function(req, res) {
let path = parse(req.url, true).query.path;
// BAD: This could read any file on the file system
res.write(readFileSync(join("public", p... | github/codeql | javascript/ql/test/query-tests/Security/CWE-022/TaintedPath/TaintedPath-es6.js | JavaScript | mit | 332 |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#nullable enable
#pragma warning disable CS0618 // Type or member is obsolete
using DocumentFormat.OpenXml;
using DocumentFormat.OpenXml.Drawing;
using DocumentForma... | ThomasBarnekow/Open-XML-SDK | src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2012_chart.g.cs | C# | mit | 211,463 |
<?php
/**
* (c) Vincent Patry
* This file is part of the Rebond package
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Rebond\Enums\Core;
use Rebond\Enums\AbstractEnum;
class ResponseFormat extends AbstractEnum
{
c... | vincium/rebond-framework | src/Rebond/Enums/Core/ResponseFormat.php | PHP | mit | 357 |
#include <cctype>
#include <iostream>
#include <map>
#include <string>
using namespace std;
constexpr char found_symbol {'#'};
inline
void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
inline char opposite(char symbol)
{
return islower(symbol) ? toupper(symbol) : tolower... | gshopov/competitive-programming-archive | codeforces/round-293/div-2/tanya_and_postcard.cpp | C++ | mit | 1,111 |
from django.core.exceptions import ObjectDoesNotExist
from django.http import HttpResponseRedirect
from django.contrib import messages
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.template.lo... | afriestad/interlecture | interlecture/interauth/views.py | Python | mit | 4,933 |
// This file is licensed to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Linq;
using System.Xml.Linq;
using Spines.Utility;
namespace Spines.Tenhou.Client
{
/// <summary>
/// Data provided by the server when a player discards a tile.
/// </summary>
... | spinesheath/HanaMahjong | Spines.Mahjong/Spines.Tenhou.Client/DiscardInformation.cs | C# | mit | 1,186 |
package besa_adaptado.adaptador;
import adaptation.common.query.AdaptationQueryAES;
public class Consulta extends AdaptationQueryAES {
public Consulta(String query) {
setQuery(query);
}
}
| Coregraph/Ayllu | JigSaw - AYPUY - CS/AES_MATEO/src/besa_adaptado/adaptador/Consulta.java | Java | mit | 217 |
var clients = require('./../../data.js').clients;
module.exports.getId = function(client) {
return client.id;
};
module.exports.getRedirectUri = function(client) {
return client.redirectUri;
};
module.exports.fetchById = function(clientId, cb) {
for (var i in clients) {
if (clientId == clients[i]... | ojengwa/node-oauth20-provider | test/server/model/memory/oauth2/client.js | JavaScript | mit | 470 |
#!/usr/bin/env node
/*
Logfella
Copyright (c) 2015 - 2019 Cédric Ronvel
The MIT License (MIT)
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 limitat... | cronvel/logger-kit | sample/net-server-test.js | JavaScript | mit | 2,053 |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | tsiry95/openshift-strongloop-cartridge | strongloop/node_modules/strong-arc/devtools/frontend/common/Settings.js | JavaScript | mit | 27,489 |
var assert = require('assert')
var mongoose = require('mongoose')
var request = require('request')
var sinon = require('sinon')
var util = require('util')
module.exports = function (createFn, setup, dismantle) {
var erm = require('../../lib/express-restify-mongoose')
var db = require('./setup')()
var testPort =... | Ensequence/express-restify-mongoose | test/integration/middleware.js | JavaScript | mit | 36,848 |
<?php
return array(
'AD' => 'Andorra',
'AE' => 'Sameindu Emirríkini',
'AF' => 'Afganistan',
'AG' => 'Antigua og Barbuda',
'AI' => 'Anguilla',
'AL' => 'Albania',
'AM' => 'Armenia',
'AN' => 'Niðurlendsku Antilloyggjar',
'AO' => 'Angola',
'AQ' => 'Antarktis',
'AR' => 'Argentina',
'AS' => 'Amerikanska Sámoa',
... | forxer/okatea | Okatea/Tao/L10n/country-list/fo_FO/country.php | PHP | mit | 5,531 |
import {Component, View, FORM_DIRECTIVES, EventEmitter, NgFor} from 'angular2/angular2';
@Component({
selector: 'font-family-component',
inputs: ['fontFamily'],
outputs: ['fontFamilyChange']
})
@View({
template: `
<select class="form-control" [ng-model]="fontFamily" (input)="fontFamilyChange.next($event.ta... | yanivefraim/theme-creator-demo-angular-2 | app/components/font-family-component/font-family-component.ts | TypeScript | mit | 656 |
'use strict';
var _ = require('lodash');
var util = require('util');
var property = require('corazon/property');
var inflection = require('../util/inflection');
var Mixin = require('corazon/mixin');
/**
* A helper function for creating config properties that either reads from a
* cached value or calls a function to... | tgriesser/azul | lib/relations/belongs_to_config.js | JavaScript | mit | 6,858 |
class Myaccount::BaseController < ApplicationController
before_filter :require_user
protected
def ssl_required?
ssl_supported?
end
end | drhenner/elzzad | app/controllers/myaccount/base_controller.rb | Ruby | mit | 149 |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddIndexesToPosts extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('posts', function ... | DoSomething/rogue | database/migrations/2017_12_08_203149_add_indexes_to_posts.php | PHP | mit | 763 |
package types
import (
"reflect"
"testing"
"time"
)
type structTest struct {
Int int
IntArray []int
Float float32
FloatArray []float64
String string
StringArray []string
Blob []byte
BlobArray [][]byte
Time time.Time
}
var marshallTests = []struct {
item structTest... | cyberdelia/dynamodb | types/attributes_test.go | GO | mit | 1,829 |
/**
* 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.datamigration.v2017_11_15_preview.implementation;... | selvasingh/azure-sdk-for-java | sdk/datamigration/mgmt-v2017_11_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2017_11_15_preview/implementation/IdParsingUtils.java | Java | mit | 1,762 |
using System.Collections.Generic;
using System.IO;
using GitVersion;
using GitVersion.BuildAgents;
using GitVersionCore.Tests.Helpers;
using Microsoft.Extensions.DependencyInjection;
using NUnit.Framework;
using Shouldly;
using Environment = System.Environment;
namespace GitVersionCore.Tests.BuildAgents
{
[TestFi... | ParticularLabs/GitVersion | src/GitVersionCore.Tests/BuildAgents/GitHubActionsTests.cs | C# | mit | 6,097 |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-present Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any pers... | OGRECave/ogre | RenderSystems/Vulkan/src/OgreVulkanQueue.cpp | C++ | mit | 40,249 |
function foo() {
var bar = '';
};
| michaelghinrichs/hello-world | scope-chains-closures/scopes.js | JavaScript | mit | 37 |
/*--
简单测试node.js端使用的air-js
-note 所有的模块以模块简称为属性名挂载在air上
*/
var air = require('air-js');
var byteLength = air.byteLength;
console.log(byteLength('中国人')); // => 6
console.log(byteLength('air')); // => 3
console.log(air.byteLength('air')); // => 3
console.log(air.clip('我是中国人', 8)); // => 我是中国…
console.log(ai... | erniu/air | test-air.js | JavaScript | mit | 442 |
import forIn from '../core/forIn'
import forElements from '../core/forElements'
export default function _parseAndApply (parse, apply, elements, options) {
forIn(options, parse.bind(null, options))
return forElements(elements, apply.bind(null, options))
}
| chirashijs/chirashi | lib/_internals/_parseAndApply.js | JavaScript | mit | 261 |
<?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;... | bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/DICOM/SelectorSequencePointer.php | PHP | mit | 822 |
<?php
namespace kiwi\Http\Middleware;
use kiwi\Http\Request;
trait AuthorizesRequests
{
/**
* Dont access without authorizing.
*
* @return void
*/
public function middleware()
{
if (!auth()->check()) {
Request::redirect('/login');
}
}
}
| jakobjohansson/Verbalizer | framework/Http/Middleware/AuthorizesRequests.php | PHP | mit | 304 |
<?php
namespace NilPortugues\ForbiddenFunctions\Console;
use NilPortugues\ForbiddenFunctions\Command\CheckCommand;
class Application extends \Symfony\Component\Console\Application
{
/**
* Construct method
*/
public function __construct()
{
$name = <<<NAME
------------------------------... | nilportugues/php_forbidden_functions | src/ForbiddenFunctions/Console/Application.php | PHP | mit | 778 |
/**
* This class is generated by jOOQ
*/
package de.piratenpartei.berlin.ldadmin.dbaccess.generated.routines;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.4" },
comments = "This class is generated by jOOQ")
@java.lang.Sup... | plattformbrandenburg/ldadmin | src/main/java/de/piratenpartei/berlin/ldadmin/dbaccess/generated/routines/DelegationChainForClosedIssue.java | Java | mit | 2,840 |
using Microsoft.Azure.ServiceBus;
using Microsoft.Extensions.Logging;
using System;
using System.IO;
namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBusServiceBus
{
public class DefaultServiceBusPersisterConnection :IServiceBusPersisterConnection
{
private readonly ILogger<DefaultServiceBusP... | TypeW/eShopOnContainers | src/BuildingBlocks/EventBus/EventBusServiceBus/DefaultServiceBusPersisterConnection.cs | C# | mit | 1,621 |
/// <reference path="./event.ts" />
module Fusion {
/**
* Represents a component of discrete functionality in a Fusion application
*/
export interface Widget extends EventEmittable {
}
/**
* Represents a component of discrete functionality in a Fusion application
*/
... | jumpinjackie/mapguide-ajax-viewer | shared/src/fusion/widget.ts | TypeScript | mit | 448 |
'use strict';
app.controller('DeleteTripModalCtrl', function($scope, $uibModalInstance, TripFactory, $routeParams, $window, ActivityFactory, MemberFactory){
let tripId = $routeParams.tripId;
$scope.close = () => {
$uibModalInstance.close();
};
//Not only do we want to delete the trip object connected to... | delainewendling/NP_trip_planner | deploy/app/controllers/DeleteTripModalCtrl.js | JavaScript | mit | 1,660 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace XmlGuy
{
public class XmlElement : AbstractXmlElement
{
public XmlElement(XmlElement parent = null) : base(parent)
{
Children = new List<IXmlElement>();
Attributes = new Dictionary<string, string>();
}
pub... | windracer/xmlguy | src/XmlElement.cs | C# | mit | 1,589 |
import isArray from '../../util/isArray'
import forEach from '../../util/forEach'
import TreeIndex from '../../util/TreeIndex'
import NodeIndex from './NodeIndex'
class PropertyIndex extends NodeIndex {
constructor(property) {
super()
this._property = property || 'id'
this.index = new TreeIndex()
}
... | andene/substance | model/data/PropertyIndex.js | JavaScript | mit | 2,682 |
(function(){
function buildForm(attrs) {
attrs = $.extend({ action: '/echo', 'data-remote': 'true' }, attrs);
$('#qunit-fixture').append($('<form />', attrs))
.find('form').append($('<input type="text" name="user_name" value="john">'));
};
module('call-remote');
function submit(fn) {
$('form')
.on('aj... | rails/jquery-ujs | test/public/test/call-remote.js | JavaScript | mit | 6,202 |
/*
* Smush In - jQuery plugin
*
* Copyright (c) 2013 Shane Donnelly
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Project home:
* http://shanejdonnelly.github.io/smush-in
* Version: 1.0
*
*/
;(function ($) {
"use strict";
/* CLASS DEFINITION
* =========... | shanejdonnelly/smush-in | smushIn.js | JavaScript | mit | 3,613 |
<?php
// SonataMediaBundle:Form:media_widgets.html.twig
return array (
);
| DevKhater/YallaWebSite | app/cache/prod/assetic/config/4/423e5d4324992a3bd20ae71d066b011d.php | PHP | mit | 75 |
<?php
defined('_JEXEC') or die('Restricted access');
/**
* Mercado Pago plugin
*
* @author Developers Mercado Pago <modulos@mercadopago.com>
* @version 2.0.5
* @package VirtueMart
* @subpackage payment
* @link https://www.mercadopago.com
* @copyright Copyright © 2016 MercadoPago.com
* @license http://www.gnu... | yaelduckwen/lo_imaginario | web2/plugins/vmpayment/mercadopago/mercadopago/tmpl/mercadopago_checkout_standard.php | PHP | mit | 491 |
#!/usr/bin/env node
"use strict";
// XXX currently this project is written to support node 0.10.*
// when Meteor 1.4 is ready, we can rewrite in es6
var Vorpal = require("vorpal")(),
Path = require("path"),
Fs = require("fs"),
Exec = require("child_process").exec,
Spawn = require("child_process").spawn... | NewSpring/apollos-core | .bin/index.js | JavaScript | mit | 5,565 |
function calculaIMC(altura, peso) { return peso / (altura * altura); }
console.log("O seu imc é: " + calculaIMC(prompt("Sua altura? "), prompt("Seu peso? ")));
//https://pt.stackoverflow.com/q/327751/101
| maniero/SOpt | JavaScript/Algorithm/Bmi2.js | JavaScript | mit | 207 |
/*
* Sample Adjuster
*
*/
#include "LimitAdjuster.h"
// Sample Simple Adjuster
class Sample1 : public SimpleAdjuster
{
public:
const char* GetLimitName() { return GetGVM().IsSA()? "FoodLimit" : nullptr; }
void ChangeLimit(int, const std::string& value) { injector::WriteMemory(0xF00D, std::stof... | ThirteenAG/limit_adjuster_gta3vcsa | src/sample/sample.cpp | C++ | mit | 2,162 |
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* Class Vc_Vendor_Woocommerce
*
* @since 4.4
* @todo move to separate file and dir.
*/
class Vc_Vendor_Woocommerce {
protected static $product_fields_list = false;
protected static $order_fields_list = false;
/**
* @since 4.4
*/
public function lo... | jujudellago/yc2016 | web/app/plugins/js_composer/include/classes/vendors/plugins/class-vc-vendor-woocommerce.php | PHP | mit | 55,910 |
using System;
using System.Threading;
namespace Remotus.Base.Observables
{
public sealed class DelegateObserver<T> : IObserver<T>, IDisposable
{
private readonly Action _onCompleted;
private readonly Action<Exception> _onError;
private readonly Action<T> _onNext;
private int _i... | LazyTarget/ProcHelper | src/Remotus.Base/Observables/DelegateObserver.cs | C# | mit | 1,134 |
from django.conf.urls.defaults import *
urlpatterns = patterns('',
url(r'^$', 'topics.views.topics', name="topic_list"),
url(r'^(?P<topic_id>\d+)/edit/$', 'topics.views.topic', kwargs={"edit": True}, name="topic_edit"),
url(r'^(?P<topic_id>\d+)/delete/$', 'topics.views.topic_delete', name="topic_delete"),
... | ericholscher/pinax | pinax/apps/topics/urls.py | Python | mit | 399 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.Com... | abock/roslyn | src/VisualStudio/Core/Def/Implementation/TaskList/ExternalErrorDiagnosticUpdateSource.cs | C# | mit | 31,502 |
package main
import (
"github.com/gorilla/handlers"
"github.com/gorilla/mux"
"html/template"
"log"
"net/http"
"os"
)
const (
addr = "127.0.0.1:8090"
)
var (
indexTemplate = template.Must(template.ParseFiles("index.html"))
tasks = []Task{
Task{1, "Learn golang", true},
Task{2, "Write webapp", tru... | vinzBad/checklost | main.go | GO | mit | 965 |
module Pwb
class OmniauthController < ApplicationController
# https://github.com/plataformatec/devise/wiki/How-To:-OmniAuth-inside-localized-scope
def localized
# Just save the current locale in the session and redirect to the unscoped path as before
session[:omniauth_login_locale] = I18n.locale
... | etewiah/property-web-builder | app/controllers/pwb/omniauth_controller.rb | Ruby | mit | 520 |
<?php
namespace Alterway\Component\Workflow\Exception;
class MoreThanOneOpenTransitionException extends \LogicException
{
public function __construct()
{
return parent::__construct('More than one open transition with current context');
}
}
| alterway/component-workflow | src/Exception/MoreThanOneOpenTransitionException.php | PHP | mit | 264 |
/**
* JS initialization and core functions for API test servlet
*
* @depends {3rdparty/jquery.js}
* @depends {3rdparty/bootstrap.js}
* @depends {3rdparty/highlight.pack.js}
*/
var ATS = (function(ATS, $, undefined) {
ATS.apiCalls = [];
ATS.selectedApiCalls = [];
ATS.init = function() {
hljs.... | YawLife/LIFE | html/ui/js/ats.js | JavaScript | mit | 6,337 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices.ComTypes;
using System.Threading.Tasks;
using Autofac;
using Nancy.Bootstrapper;
using Nancy.Bootstrappers.Autofac;
using Nancy.Swagger.Annotations;
using Nancy.Swagger.Autofac.Demo.Modules;
using Nancy.Swagger.Serv... | yahehe/Nancy.Swagger | samples/Nancy.Swagger.Autofac.Demo/AutofacBootstrapper.cs | C# | mit | 1,351 |
<?php
/**
* ======================================================================
* LICENSE: This file is subject to the terms and conditions defined in *
* file 'license.txt', which is part of this source code package. *
* ======================================================================
*/
/**
* A... | mandino/nu | wp-content/plugins/advanced-access-manager/Application/Core/Subject.php | PHP | mit | 7,033 |
package org.diorite.impl.connection.packets.play.server;
import java.io.IOException;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.diorite.impl.connection.EnumProtocol;
import org.diorite.impl.connection.EnumProtocolDirection;
import org.di... | marszczybrew/Diorite | DioriteCore/src/main/java/org/diorite/impl/connection/packets/play/server/PacketPlayServerResourcePackSend.java | Java | mit | 2,319 |
using UnityEngine;
using System.Collections;
public class ShapeInfo
{
public int Column { get; set; }
public int Row { get; set; }
}
| michael-munoz/MooMooPlanet | Project455/Assets/Scripts/ShapeInfo.cs | C# | mit | 145 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.trafficmanager.implementation;
import com.azure.core.management.Region;
import com.azure.resourcemanager.resources.fluentcore.utils.ResourceManagerUtils;
import com.azure.resourcemanager.t... | selvasingh/azure-sdk-for-java | sdk/resourcemanager/azure-resourcemanager-trafficmanager/src/main/java/com/azure/resourcemanager/trafficmanager/implementation/TrafficManagerNestedProfileEndpointImpl.java | Java | mit | 1,325 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _assign = require('lodash/assign');
var _assign2 = _interopRequireDefault(_assign);
exports.default = termsAggregation;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _defin... | evgenypoyarkov/bodybuilder | lib/aggregations/terms-aggregation.js | JavaScript | mit | 1,036 |
YUI.add('selector', function (Y, NAME) {
}, '3.10.3', {"requires": ["selector-native"]});
| braz/mojito-helloworld | node_modules/mojito/node_modules/yui/selector/selector.js | JavaScript | mit | 93 |
using System.Linq;
using Xunit;
using Signum.Engine;
using Signum.Entities;
using Signum.Utilities;
using Signum.Test.Environment;
namespace Signum.Test.LinqProvider
{
/// <summary>
/// Summary description for LinqProvider
/// </summary>
public class JoinGroupTest
{
public Joi... | AlejandroCano/framework | Signum.Test/LinqProvider/JoinGroupTest.cs | C# | mit | 6,007 |
<?php
session_start();
require('php/userProfile.class.php'); //load userProfileclass
?>
<!DOCTYPE html>
<html>
<head>
<?php
require("head_userpage.php"); //load special header only for this page
?>
</head>
<body>
<?php
if(isset($_SESSION['ID'])){ //load the appropriate menu
require("menu_co.php");
}else{
... | KamevoTeam/Kamevo | kamevo_src/user.php | PHP | mit | 962 |
<?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\Pentax;
use JMS\Serializer\Annotation\ExclusionPolicy... | bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/Pentax/InternalSerialNumber.php | PHP | mit | 862 |
using StyletIoC.Creation;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace StyletIoC.Internal.Creators
{
/// <summary>
/// Base class for all ICreators (which want to use it). Provides convenience
/// </summary>
internal abstract class CreatorBase : ICreator
... | canton7/Stylet | Stylet/StyletIoC/Internal/Creators/CreatorBase.cs | C# | mit | 2,037 |
import { Directive, ElementRef, EventEmitter, Output, Input, OnInit } from '@angular/core';
import { TcCollectionService } from '../tc-collection/tc-collection.service';
import { TcCollection } from '../tc-collection/tc-collection.class';
declare var $: any;
@Directive({ selector: '[tc-sortable]' })
export class ... | OlivierCoue/invow | src/app/tc-shared/tc-sortable.directive.ts | TypeScript | mit | 2,177 |
#include "stdafx.h"
#include "WindowClient.h"
#include <SDL2/SDL.h>
int main(int, char *[])
{
try
{
CWindow window(ContextProfile::RobustOpenGL_3_2, ContextMode::Normal);
// window.ShowFullscreen("Demo #19 (Particle Systems)");
window.Show("Demo #19 (Particle Systems)", {800, 600});
... | PS-Group/cg_course_examples | chapter_4/lesson_19/main.cpp | C++ | mit | 620 |
/**
*/
package gluemodel.COSEM.COSEMObjects.impl;
import gluemodel.COSEM.COSEMObjects.COSEMObjectsPackage;
import gluemodel.COSEM.COSEMObjects.PushSchedule;
import gluemodel.COSEM.InterfaceClasses.impl.SingleactionscheduleImpl;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* An implementatio... | georghinkel/ttc2017smartGrids | solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/COSEM/COSEMObjects/impl/PushScheduleImpl.java | Java | mit | 844 |
//------------------------------------------------------------------------------
// dummyFSWrapper.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "dummyFSWrapper.h"
namespace Oryol {
namespace _priv {
//---------------------------------------------------... | floooh/oryol | code/Modules/LocalFS/private/dummy/dummyFSWrapper.cc | C++ | mit | 1,707 |
module Jekyll
VERSION = '3.0.0.pre.beta6'
end
| mixxmac/jekyll | lib/jekyll/version.rb | Ruby | mit | 48 |
import logging
from django.conf import settings
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.db import models
from django.utils.translation import ugettext_lazy as _
from wagtail.admin.edit_handlers import FieldPanel, MultiFieldPanel
from wagtail.core.fields import RichTextField... | ilendl2/wagtail-cookiecutter-foundation | {{cookiecutter.project_slug}}/gallery/models.py | Python | mit | 4,587 |
//
// client.cpp
// ~~~~~~~~~~
//
// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <asio.hpp>
#include <boost/lambda/lamb... | mojmir-svoboda/BlackBoxTT | 3rd_party/asio/src/examples/cpp03/porthopper/client.cpp | C++ | mit | 6,839 |
'use strict';
//Setting up route
angular.module('mean.articles').config(['$stateProvider', 'markedProvider',
function($stateProvider, markedProvider) {
markedProvider.setOptions({
gfm: true,
tables: true,
breaks: true,
highlight: function (code) {
/* jshint ignore:start */
... | darul75/nsjoy.github.io2 | packages/articles/public/routes/articles.js | JavaScript | mit | 1,768 |
/****************************************************************************
Copyright (c) 2011-2013,WebJet Business Division,CYOU
http://www.genesis-3d.com.cn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
... | EngineDreamer/DreamEngine | Engine/script/runtimelibrary/MeshRenderComponent_register.cs | C# | mit | 2,409 |
using System;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
namespace net.authorize.sample
{
class PayPalPriorAuthorizationCapture
{
public static voi... | rmorrin/sample-code-csharp | PaypalExpressCheckout/PriorAuthorizationCapture.cs | C# | mit | 3,051 |
BASE.require(["Object"], function () {
BASE.namespace("LG.core.dataModel.core");
LG.core.dataModel.core.PeopleGroupToPermission = (function (Super) {
var PeopleGroupToPermission = function () {
var self = this;
if (!(self instanceof arguments.callee)) {
return ne... | jaredjbarnes/WoodlandCreatures | packages/WebLib.2.0.0.724/content/lib/weblib/lib/BASE/LG/core/dataModel/core/PeopleGroupToPermission.js | JavaScript | mit | 545 |
<?php
/*
* This File is part of the Lucid\Mux package
*
* (c) iwyg <mail@thomas-appel.com>
*
* For full copyright and license information, please refer to the LICENSE file
* that was distributed with this package.
*/
namespace Lucid\Mux\Tests;
use Lucid\Mux\Route;
/**
* @class RouteTest
*
* @package Lucid... | lucidphp/mux | tests/RouteTest.php | PHP | mit | 4,374 |
"""Splits the time dimension into an reftime and a leadtime
so that multiple files can be concatenated more easily"""
import sys
from netCDF4 import Dataset, num2date, date2num
for f in sys.argv[1:]:
dataset = Dataset(f, 'a')
# rename record dimension to reftime
dataset.renameDimension('record', 'reftime... | samwisehawkins/wrftools | util/split_time_dimension.py | Python | mit | 1,878 |
/* global chrome */
const VERSION = 1;
const handlers = {
'vclub:screenShare:requestSourceId': () => {
chrome.runtime.sendMessage({ type: 'vclub:requestSourceId' }, (response) => {
window.postMessage({
type: 'vclub:screenShare:response',
response,
}, '*');
});
},
'vclub:ping'... | VirtualClub/vclub | browserExtensions/chromeExtension/content-script.js | JavaScript | mit | 658 |
# 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-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/target_cost_properties.py | Python | mit | 2,286 |
import unittest
import base64
from hashlib import md5 as basic_md5
from flask import Flask
from flask_httpauth import HTTPBasicAuth
def md5(s):
if isinstance(s, str):
s = s.encode('utf-8')
return basic_md5(s)
class HTTPAuthTestCase(unittest.TestCase):
def setUp(self):
app = Flask(__name_... | miguelgrinberg/Flask-HTTPAuth | tests/test_basic_hashed_password.py | Python | mit | 2,215 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigati... | GlobalcachingEU/GAPP | GAPPSF/UIControls/UpDownCtrls/TimeCtrl.xaml.cs | C# | mit | 35,541 |
/*
* The MIT License
*
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr)
*
* 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 witho... | dmullins78/easybatch-framework | easybatch-integration/easybatch-apache-commons-csv/src/test/java/org/easybatch/integration/apache/common/csv/ApacheCommonCsvRecordReaderTest.java | Java | mit | 3,254 |
"""
Module. Includes classes for all time dependent lattice.
"""
import sys
import os
import math
from orbit.teapot import TEAPOT_Lattice
from orbit.parsers.mad_parser import MAD_Parser, MAD_LattLine
from orbit.lattice import AccNode, AccActionsContainer
from orbit.time_dep import waveform
class TIME_DEP_Lattice(TEAP... | PyORBIT-Collaboration/py-orbit | py/orbit/time_dep/time_dep.py | Python | mit | 4,174 |
// 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.
//
// This is used internally to create best fit behavior as per the original windows best fit behavior.
//
using S... | sjsinju/coreclr | src/mscorlib/src/System/Text/EncoderBestFitFallback.cs | C# | mit | 8,893 |
'use strict';
var Pagelet = require('pagelet')
, async = require('async')
, path = require('path');
Pagelet.extend({
view: 'view.ejs',
css: 'css.styl',
js: 'client.js',
//
// Allow FORM submits to be streaming.
//
streaming: true,
//
// Force a name.
//
name: 'service-select',
//
/... | nodejitsu/service-select | index.js | JavaScript | mit | 3,961 |
#region Licence
/* The MIT License (MIT)
Copyright © 2015 Ian Cooper <ian_hammond_cooper@yahoo.co.uk>
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 limitat... | BrighterCommand/Brighter | tests/Paramore.Brighter.Core.Tests/CommandProcessors/TestDoubles/MyPostLoggingHandlerAsyncAttribute.cs | C# | mit | 1,576 |
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace DotMaysWind.Data.Test
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
... | GuanLee1990/DotMaysWind.Data | DotMaysWind.Data.Test/Program.cs | C# | mit | 465 |
using System;
using Fluky.Extensions;
using Fluky.Types;
namespace Fluky
{
public partial class Randomizer
{
public float DistributionNormal(float mean, float standardDeviation)
{
// Get random normal from Standard Normal Distribution
var randomNormalNumber = DistributionStandardNormal();
... | michaeljbaird/Fluky | src/Fluky/Randomizer.Distribution.cs | C# | mit | 6,560 |
/*
* The MIT License
*
* Copyright (c) 2019 CloudBees, Inc.
*
* 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, co... | jenkinsci/credentials-plugin | src/test/java/com/cloudbees/plugins/credentials/builds/CredentialsParameterBinderReplayActionIntegrationTest.java | Java | mit | 5,191 |
export * from './card-demo.component';
| blackbaud/skyux2 | src/demos/card/index.ts | TypeScript | mit | 39 |
function listEvent(login, userCity, done, fail, always) {
done = typeof done !== 'undefined' ? done : function() {
};
fail = typeof fail !== 'undefined' ? fail : function() {
};
always = typeof always !== 'undefined' ? always : function() {
};
$.ajax({
url : 'rest/event/' + login + '/' + userCity,
type : 'G... | michada/HYS2 | DAAExample-master/src/main/webapp/js/dao/event.js | JavaScript | mit | 737 |
require 'fileutils'
require 'simplecov'
SimpleCov.start
def fixture *args
File.join File.dirname(__FILE__), "fixtures", *args
end
def directory path
full = fixture(path)
FileUtils::mkdir_p full
return full
end
def file *args
file = File.join(*args[0..-2])
directory File.dirname(file)
File.open(file, 'w... | clarete/s3sync | spec/spec_helper.rb | Ruby | mit | 912 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using NUnit.Framework;
using SIL.TestUtilities;
using SIL.WritingSystems;
using SIL.WritingSystems.Tests;
namespace SIL.Windows.Forms.WritingSystems.Tests
{
[TestFixture]
[OfflineSldr]
public class WritingSystemFromWindow... | sillsdev/libpalaso | SIL.Windows.Forms.WritingSystems.Tests/WritingSystemFromWindowsLocaleProviderTests.cs | C# | mit | 3,430 |
// Copyright (c) 2007-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "amount.h"
#include "chain.h"
#include "chainparams.h"
#include "checkpo... | goldcoin/Goldcoin-GLD | src/rpc/blockchain.cpp | C++ | mit | 65,642 |
package silent
// silent import - e.g. only referenced in Go code, not in json imports
// frizz
type Silent interface {
Silent()
}
| kego/ke | tests/packer/silent/silent.go | GO | mit | 134 |
module.exports = Transport;
var C = {
// Transport status codes
STATUS_READY: 0,
STATUS_DISCONNECTED: 1,
STATUS_ERROR: 2
};
/**
* Expose C object.
*/
Transport.C = C;
/**
* Dependencies.
*/
var debug = require('debug')('JsSIP:Transport');
var debugerror = require('debug')('JsSIP:ERROR:Tr... | rusekr/JsSIP | lib/Transport.js | JavaScript | mit | 8,034 |
import { async, fakeAsync, tick, ComponentFixture, TestBed } from '@angular/core/testing';
import { TagsRelatedToTagsComponent } from './tags-related-to-tags.component';
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { By } from '@angular/platform-browser';
import * as _ from 'lodash';... | ditup/ditapp-ng | src/app/tags/tags-related-to-tags/tags-related-to-tags.component.spec.ts | TypeScript | mit | 2,949 |
using System.Collections.Generic;
using System.Linq;
using Xunit;
using static LanguageExt.Prelude;
namespace LanguageExt.Tests.Transformer.Traverse.IEnumerableT.Collections
{
public class QueIEnumerable
{
[Fact]
public void EmptyEmptyIsEmptyEmpty()
{
Que<IEnumerable<int>> m... | StanJav/language-ext | LanguageExt.Tests/Transformer/Traverse/IEnumerable/Collections/Que.cs | C# | mit | 1,668 |
require File.expand_path('../helper', __FILE__)
begin
require 'radius'
class RadiusTest < Minitest::Test
def radius_app(&block)
mock_app do
set :views, File.dirname(__FILE__) + '/views'
get('/', &block)
end
get '/'
end
it 'renders inline radius strings' do
radius_app { radius '<h1>H... | JonMidhir/sinatra | test/radius_test.rb | Ruby | mit | 1,369 |
# Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, key: '_demo_project_mysql_session'
| yevheniyc/Autodidact | 1o_RonR_ET_Lynda/test/demo_project_mysql/config/initializers/session_store.rb | Ruby | mit | 150 |
'use strict';
require('../../../lib/common/init');
var assert = require('assert'),
request = require('supertest'),
danf = require('../../../lib/server/app')(require('../../fixture/http/danf'), null, {environment: 'test', verbosity: 0, cluster: null})
;
danf.buildServer(function(app) {
describe('SessionHa... | Gnucki/danf | test/unit/http/session-handler.js | JavaScript | mit | 2,669 |
require 'uri'
module Biller::WHMCSAutoAuth
def self.redirect_url(email, action)
ensure_autoauth_params
time = Time.now.to_i
query= ["email=#{email}","timestamp=#{time}",
"hash="+ autoauth_hash(email, time),
"goto="+ URI.encode("clientarea.php?action=#{actio... | jaeko44/nilavu | lib/biller/whmcs_auto_auth.rb | Ruby | mit | 701 |
require 'test_helper'
describe Factree::Aggregate do
describe ".alternatives" do
let(:facts) { :facts }
let(:nil_decision) { -> (_) { nil } }
let(:final_decision) { -> (_) { conclusion } }
let(:conclusion) { Factree::Conclusion.new(:b) }
let(:decisions) { [] }
subject { Factree::Aggregate.alt... | ConsultingMD/factree | test/factree/aggregate_test.rb | Ruby | mit | 1,330 |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model core\models\Station */
$this->title = 'Create Station';
$this->params['breadcrumbs'][] = ['label' => 'Stations', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="station-create">
<h1><?= Html::encode($thi... | tony-wuhongtao/OurYincart2 | star-core/modules/station/views/default/create.php | PHP | mit | 417 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var CONST = require('../../const');
var Smoothing = require('./Smoothing');
// The pool into which the canvas elements are placed.
var pool = [... | mahill/phaser | src/display/canvas/CanvasPool.js | JavaScript | mit | 7,526 |