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 |
|---|---|---|---|---|---|
version https://git-lfs.github.com/spec/v1
oid sha256:3fe2372bec3008f9cab29eec1d438c62ef2cc056aacfc8f70c533ec50ba9b7f5
size 4224
| yogeshsaroya/new-cdnjs | ajax/libs/jsforce/1.3.1/jsforce-api-apex.js | JavaScript | mit | 129 |
package lila.irwin
import org.joda.time.DateTime
import reactivemongo.api.bson._
import reactivemongo.api.ReadPreference
import lila.analyse.Analysis
import lila.analyse.AnalysisRepo
import lila.common.Bus
import lila.db.dsl._
import lila.game.{ Game, GameRepo, Pov, Query }
import lila.report.{ Mod, ModId, Report, Re... | luanlv/lila | modules/irwin/src/main/IrwinApi.scala | Scala | mit | 5,808 |
'use strict';
/** This file should be loaded via `import()` to be code-split into separate bundle. */
import { HiGlassComponent } from 'higlass/dist/hglib';
// import from just 'higlass-register' itself don't work, should update its package.json to have `"module": "src/index.js",` (or 'esm' or w/e it is) for that.
im... | 4dn-dcic/fourfront | src/encoded/static/components/item-pages/components/HiGlass/higlass-dependencies.js | JavaScript | mit | 561 |
<?php
/*
* This file is part of PHP-CFG, a Control flow graph implementation for PHP
*
* @copyright 2015 Anthony Ferrara. All rights reserved
* @license MIT See LICENSE at the root of the project for more info
*/
namespace PHPCfg\Op;
use PHPCfg\Func;
interface CallableOp {
/** @returns Func */
public ... | Panalyzer/Panalyzer | src/getCFG/lib/PHPCfg/Op/CallableOp.php | PHP | mit | 342 |
all:
g++ calcTempl.cpp -o calcTempl --std=c++11 -O2 | mtrempoltsev/msu_cpp_autumn_2017 | homework/Golenkov/07/Makefile | Makefile | mit | 52 |
ABC ÆØÅ XYZ
| fatso83/grunt-codekit | test/input/unicode_input.html | HTML | mit | 15 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Open Knowledge">
<meta name="description" content="The Global Open Data Index assesse... | okfn/opendataindex-2015 | place/albania/2014/index.html | HTML | mit | 8,038 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
namespace WindowsService1
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static ... | protechdm/CompareCloudware | WindowsService1/Program.cs | C# | mit | 556 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>FtpDelete</title>
<link rel="stylesheet" type="text/css" href="doc.css">
</head>
<body>
<h1>FtpDelete</h1>
<p>Removes a file from the remote system.</p>
<h2>SYNOPSIS</h2>
<pre>
#include <ftplib.h>
int FtpDelete(const char *fnm, netbuf *nContro... | Mauricevb/FTPKit | Libraries/include/ftplib/html/FtpDelete.html | HTML | mit | 727 |
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* This file is part of the PEAR Console_CommandLine package.
*
* A simple example demonstrating the use of subcommands.
*
* PHP version 5
*
* LICENSE: This source file is subject to the MIT license that is available
* through the world-w... | georgehristov/EPESI | modules/CRM/Roundcube/RC/vendor/pear/console_commandline/docs/examples/ex3.php | PHP | mit | 2,657 |
// 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... | matthchr/autorest | src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/DictionaryExtensions.cs | C# | mit | 8,434 |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | lunastorm/wissbi | 3rd_party/libcxx/test/utilities/meta/meta.unary/meta.unary.cat/member_object_pointer.pass.cpp | C++ | mit | 1,526 |
require 'rails_helper'
# This spec was generated by rspec-rails when you ran the scaffold generator.
# It demonstrates how one might use RSpec to specify the controller code that
# was generated by Rails when you ran the scaffold generator.
#
# It assumes that the implementation code is generated by the rails scaffold... | behnaaz/rails-devise-tutorial | spec/controllers/businesses_controller_spec.rb | Ruby | mit | 5,773 |
"""
A library of useful helper classes to the saxlib classes, for the
convenience of application and driver writers.
$Id: saxutils.py,v 1.19 2001/03/20 07:19:46 loewis Exp $
"""
import types, sys, urllib, urlparse, os, string
import handler, _exceptions, xmlreader
try:
_StringTypes = [types.StringType, types.Uni... | Integral-Technology-Solutions/ConfigNOW | Lib/xml/sax/saxutils.py | Python | mit | 20,106 |
#if defined(PEGASUS_OS_HPUX)
# include "UNIX_DatabaseSystemPrivate_HPUX.h"
#elif defined(PEGASUS_OS_LINUX)
# include "UNIX_DatabaseSystemPrivate_LINUX.h"
#elif defined(PEGASUS_OS_DARWIN)
# include "UNIX_DatabaseSystemPrivate_DARWIN.h"
#elif defined(PEGASUS_OS_AIX)
# include "UNIX_DatabaseSystemPrivate_AIX.h"
#elif def... | brunolauze/openpegasus-providers-old | src/Providers/UNIXProviders/DatabaseSystem/UNIX_DatabaseSystemPrivate.h | C | mit | 765 |
var exports = module.exports;
exports.setup = function(callback) {
var write = process.stdout.write;
process.stdout.write = (function(stub) {
return function(string, encoding, fd) {
stub.apply(process.stdout, arguments);
callback(string, encoding, fd);
};
})(proces... | Aconex/drakov | test/lib/stdout-hook.js | JavaScript | mit | 410 |
//
// KPCAASaturnMoons.h
// SwiftAA
//
// Created by Cédric Foellmi on 10/07/15.
// Licensed under the MIT License (see LICENSE file)
//
#import <Foundation/Foundation.h>
#import "KPCAA3DCoordinate.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct KPCAASaturnMoonDetails {
KPCAA3DCoordinateComponents T... | onekiloparsec/SwiftAA | Sources/ObjCAA/include/KPCAASaturnMoons.h | C | mit | 1,045 |
import React from 'react'
class Shortest extends React.Component {
render() {
return (
<div>Shortest</div>
)
}
}
export default Shortest | hyy1115/react-redux-webpack2 | src/pages/dynamic/Shortest/Shortest.js | JavaScript | mit | 154 |
<?php
$eZTranslationCacheCodeDate = 1058863428;
$CacheInfo = array (
'charset' => 'utf-8',
);
$TranslationInfo = array (
'context' => 'kernel/workflow/edit',
);
$TranslationRoot = array (
'5c8f4bf6d3b395c887af90a424851f3e' =>
array (
'context' => 'kernel/workflow/edit',
'source' => 'New Workflow',
... | SnceGroup/snce-website | web/var/ezdemo_site/cache/translation/7ea3246ce3f3b0d74450a358f0d52a8c/ita-IT/0a3ffcb24aaf53d2768e6ec4e5e87de2.php | PHP | mit | 440 |
using System;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Orleans.Runtime.Scheduler;
namespace Orleans.Runtime
{
internal sealed class GrainTimer : IGrainTimer
{
private Func<object, Task> asyncCallback;
private AsyncTaskSafeTimer timer;
... | jthelin/orleans | src/Orleans.Runtime/Timers/GrainTimer.cs | C# | mit | 7,570 |
{-
--Task 4
--power x*y =
--if x*y==0
--then 0
--else if (x*y) != 0
--then x+(x*(y-1))
--These are home tasks
--bb bmi
--| bmi <= 10 ="a"
--| bmi <= 5 = "b"
--| otherwise = bmi
slope (x1,y1) (x2,y2) = dy / dx
where dy = y2-y1
dx = x2 - x1
--Task 2
reci x = 1/x;
--Task 3
--abst x
--Task 4
sign x
| x<0 = ... | badarshahzad/Learn-Haskell | week 2 & 3/function.hs | Haskell | mit | 974 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.ComponentModel;
namespace Azure.Search.Documents.Indexes.Models
{
/// <summary> Defines the type of a datasource. </summary>
public readonly parti... | jackmagic313/azure-sdk-for-net | sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataSourceType.cs | C# | mit | 3,600 |
# hikers_sequiahack15
| himadrisj/hikers_sequiahack15 | README.md | Markdown | mit | 23 |
<?php defined('BX_DOL') or die('hack attempt');
/**
* Copyright (c) UNA, Inc - https://una.io
* MIT License - https://opensource.org/licenses/MIT
*
* @defgroup Timeline Timeline
* @ingroup UnaModules
*
* @{
*/
class BxTimelineSearchResult extends BxBaseModNotificationsSearchResult
{
function __const... | unaio/una | modules/boonex/timeline/updates/9.0.10_9.0.11/source/classes/BxTimelineSearchResult.php | PHP | mit | 2,507 |
function GameManager(size, InputManager, Actuator, StorageManager) {
this.size = size; // Size of the grid
this.inputManager = new InputManager;
this.storageManager = new StorageManager;
this.actuator = new Actuator;
this.startTiles = 2;
this.inputManager.on("move", this.move.bind(th... | ajnas/One | js/game_manager.js | JavaScript | mit | 7,688 |
{{ $baseUrl := .Site.BaseURL }}
{{ if .IsNode }}
<ul class="pagination">
{{ with .Paginator }}
<li class="{{ if .HasPrev }}waves-effect{{ else }}disabled{{ end }}">
<a href="{{ if .HasPrev }}{{ $baseUrl }}{{ .Prev.URL }}{{ else }}#!{{ end }}">
<i class="fa fa-... | chipsenkbeil/grid-side | layouts/partials/extra/pagination.html | HTML | mit | 999 |
class CreateFilmsFilmActors < ActiveRecord::Migration
def change
create_table :film_actors_films, id: false do |t|
t.belongs_to :film
t.belongs_to :film_actor
end
add_index :film_actors_films, [:film_id, :film_actor_id]
end
end
| dodoliu/FilmOcean | film_ocean/db/migrate/20151216150427_create_films_film_actors.rb | Ruby | mit | 254 |
<!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>FindMPI — CMake 3.8.1 Documentation</title>
... | pipou/rae | builder/cmake/windows/doc/cmake/html/module/FindMPI.html | HTML | mit | 14,987 |
# Import a whole load of stuff
from System.IO import *
from System.Drawing import *
from System.Runtime.Remoting import *
from System.Threading import *
from System.Windows.Forms import *
from System.Xml.Serialization import *
from System import *
from Analysis.EDM import *
from DAQ.Environment import *
fro... | jstammers/EDMSuite | EDMScripts/EDMLoop_neg_slope.py | Python | mit | 14,423 |
/*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for license information.
*/
namespace Adxstudio.Xrm.Blogs
{
internal enum BlogPostCommentPolicy
{
None = 100000000,
Open = 100000001,
Op... | Adoxio/xRM-Portals-Community-Edition | Framework/Adxstudio.Xrm/Blogs/BlogPostCommentPolicy.cs | C# | mit | 485 |
/**
* @module gallery-linkedlist
*/
/**********************************************************************
* Iterator for LinkedList. Stable except when the next item is removed by
* calling list.remove() instead of iter.removeNext(). When items are
* inserted into an empty list, the pointer remains at the end... | inikoo/fact | libs/yui/yui3-gallery/src/gallery-linkedlist/js/LinkedListIterator.js | JavaScript | mit | 3,399 |
package org.elkoserver.foundation.net.zmq.test;
import org.elkoserver.foundation.json.JSONMethod;
import org.elkoserver.foundation.json.MessageHandlerException;
import org.elkoserver.foundation.net.Connection;
import org.elkoserver.foundation.net.zmq.ZMQOutbound;
import org.elkoserver.json.EncodeControl;
import org.el... | frandallfarmer/Elko | ZeroMQ/java/org/elkoserver/foundation/net/zmq/test/ZMQSendMod.java | Java | mit | 2,622 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Bxf;
using System.Windows;
using System.Windows.Controls;
using System.Collections.ObjectModel;
using Microsoft.Phone.Controls;
namespace WpUI
{
public class MainWindowPresenter : DependencyObject
{
public MainWindowPr... | BrettJaner/csla | Samples/NET/cs/SimpleNTier/WpUI/MainWindowPresenter.cs | C# | mit | 1,925 |
module Gitlab
module Sherlock
# Rack middleware used for tracking request metrics.
class Middleware
CONTENT_TYPES = %r{text/html|application/json}i
IGNORE_PATHS = %r{^/sherlock}
def initialize(app)
@app = app
end
# env - A Hash containing Rack environment details.
... | jirutka/gitlabhq | lib/gitlab/sherlock/middleware.rb | Ruby | mit | 928 |
#include "zerosInFactorial.c"
| zonxin/expandC | clib/b/zerosInFactorial.h | C | mit | 30 |
/* @flow */
/*eslint-disable no-undef, no-unused-vars, no-console*/
import _, { compose, pipe, curry, filter, find, repeat, zipWith } from 'ramda'
const ns: Array<number> = [ 1, 2, 3, 4, 5 ]
const ss: Array<string> = [ 'one', 'two', 'three', 'four' ]
const obj: {[k:string]:number} = { a: 1, c: 2 }
const objMixed: {[k:... | flowtype/flow-typed | definitions/npm/ramda_v0.x.x/flow_v0.28.x-v0.30.x/test_ramda_v0.x.x_list.js | JavaScript | mit | 9,896 |
---
title: "Sobota pred Sinajem"
date: 24/05/2021
---
Rekel jim je: »To je tisto, kar je naročil Gospod: Jutri je praznik počitka, sobota, posvečena Gospodu; specite, kar je treba speči, in skuhajte, kar je treba skuhati; vse pa, kar ostane, denite na stran, da se prihrani do jutra!« 2 Mz 16,23
**Preleti 2 Mz 16, ... | imasaru/sabbath-school-lessons | src/sl/2021-02/09/03.md | Markdown | mit | 1,555 |
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
use Bin;
use Buildable;
use Container;
use Widget;
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
use glib::signal::Sign... | EPashkin/rust-gnome-gtk | src/auto/alignment.rs | Rust | mit | 14,952 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Class App\Http\Kernel</title>
<link rel="stylesheet" href="resources/style.css?c2f33731c1948fbed7c333554678bfa68d4817da">
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="grou... | alexbonavila/Auth | docs/api/class-App.Http.Kernel.html | HTML | mit | 5,465 |
/* Task Description */
/*
* Create an object domElement, that has the following properties and methods:
* use prototypal inheritance, without function constructors
* method init() that gets the domElement type
* i.e. `Object.create(domElement).init('div')`
* property type that is the type of the domElement
* a va... | tddold/Telerik-Academy-2 | JavaScriptOOP/04.PrototypalOOP/tasks/task-1-2nd.js | JavaScript | mit | 10,250 |
Person Type: {{PersonType}} <br />
Person Id: {{PersonId}} | Nitij/JsMvc | Source/JsMvc/JsMvc/Views/person.html | HTML | mit | 61 |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------... | daryllabar/XrmUnitTest | DLaB.Xrm.Entities/OptionSets/ImportFile_StatusCode.cs | C# | mit | 1,014 |
#include "mlfe/operators/impl/cpu/broadcast.cc"
| shi510/mlfe | mlfe/operators/impl/xnnpack/broadcast.cc | C++ | mit | 48 |
/*****************************************************************************
* This file is part of the Prolog Development Tool (PDT)
*
* WWW: http://sewiki.iai.uni-bonn.de/research/pdt/start
* Mail: pdt@lists.iai.uni-bonn.de
* Copyright (C): 2004-2012, CS Dept. III, University of Bonn
*
* All rights reserve... | TeamSPoon/logicmoo_base | prolog/logicmoo/pdt_server/pdt.builder/prolog-src/parse_util.pl | Perl | mit | 6,653 |
model_search = "http://api.nytimes.com/svc/search/v2/" + \
"articlesearch.response-format?" + \
"[q=search term&" + \
"fq=filter-field:(filter-term)&additional-params=values]" + \
"&api-key=9key"
"""http://api.nytimes.com/svc/search/v2/articlesearch.json?q=terrorism+OR+t... | polypmer/scrape | new-york-times/nytimes-scrape.py | Python | mit | 1,833 |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HttpFoundation;
/**
* Represents a cookie.
*
* @au... | OskarStark/symfony | src/Symfony/Component/HttpFoundation/Cookie.php | PHP | mit | 11,145 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="Javadoc API documentation for Fresco." />
<link rel="shortcut icon" type="image/x-icon" href="../../../../../favicon.ico" />
<title>
... | facebook/fresco | docs/javadoc/reference/com/facebook/imagepipeline/animated/base/AnimatedDrawableFrameInfo.html | HTML | mit | 37,011 |
# This file is part of Indico.
# Copyright (C) 2002 - 2019 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from __future__ import unicode_literals
from flask import session
from indico.core.db import db
from ind... | mvidalgarcia/indico | indico/modules/events/tracks/operations.py | Python | mit | 2,614 |
#include <io.h>
#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
#define read(...) _read(__VA_ARGS__)
#define write(...) _write(__VA_ARGS__)
#define isatty(...) _isatty(__VA_ARGS__)
| LIJI32/SameBoy | Windows/unistd.h | C | mit | 205 |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
const readRelayQueryData = require('../../store/readRelayQueryData');
const warning = requir... | dbslone/relay | packages/react-relay/classic/legacy/store/GraphQLStoreQueryResolver.js | JavaScript | mit | 9,474 |
<!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>nodejs™ console </title>
<link rel="stylesheet" rev="stylesheet... | Silviu-Marian/node-codein | src/client/index.html | HTML | mit | 3,523 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 --... | mersocarlin/phonegap-upload | hybrid/PhonegapUpload/www/index.html | HTML | mit | 797 |
<?php
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Sales\Test\Unit\Model\Service;
/**
* Class OrderUnHoldTest
*/
class OrderServiceTest extends \PHPUnit_Framework_TestCase
{
/**
* @var \Magento\Sales\Model\Service\OrderService
... | j-froehlich/magento2_wk | vendor/magento/module-sales/Test/Unit/Model/Service/OrderServiceTest.php | PHP | mit | 9,539 |
# ProgressiveRender [](http://badge.fury.io/rb/progressive_render) #

Slow content got you down? Load it later! Use this gem to defer loading of portions of your page until after load. They will be... | johnsonj/progressive_load | README.md | Markdown | mit | 4,373 |
package models
import java.util.{ Date }
import play.api.db._
import play.api.Play.current
import anorm._
import anorm.SqlParser._
case class Tag(id: Pk[Long] = NotAssigned, name: String, added: Date, enabled: Boolean, tuid: String)
object Tag {
/* A pretty ugly way to keep some sort of "haschanged" discriminato... | CapeSepias/rfidlock | web/app/models/Tag.scala | Scala | mit | 3,898 |
<div>
Only consider luminance; ignore chroma (color) in the comparison
</div>
| marcelerz/visual-diff-plugin | src/main/resources/org/jenkinsci/plugins/visual_diff/comparison/PerceptualDiff/help-luminanceOnly.html | HTML | mit | 82 |
<?php
namespace SmartByte\Bundle\WebBundle\Form\Type\Filter;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
* Products filter form type.
*
* @author Paweł Jędrzejewski <pawel@sylius.org>
*/
class OrderItemFilter... | jakublech/sylius | src/SmartByte/Bundle/WebBundle/Form/Type/Filter/OrderItemFilterType.php | PHP | mit | 1,424 |
/* iCheck plugin Minimal skin, green
----------------------------------- */
.icheckbox_minimal-green,
.iradio_minimal-green {
display: inline-block;
*display: inline;
vertical-align: middle;
margin: 0;
padding: 0;
width: 18px;
height: 18px;
background: url(green.png) no-repeat;
borde... | ViraxDev/centrale_referencement | src/BackendBundle/Resources/public/css/iCheck/minimal/green.css | CSS | mit | 1,421 |
##############################################################################
# tpkg package management system
# License: MIT (http://www.opensource.org/licenses/mit-license.php)
##############################################################################
# Exclude standard libraries and gems from the warnings indu... | tpkg/client | lib/tpkg/thread_pool.rb | Ruby | mit | 2,389 |
// 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.Build.ConceptualDocuments
{
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using Sys... | superyyrrzz/docfx | src/Microsoft.DocAsCode.Build.ConceptualDocuments/BuildConceptualDocument.cs | C# | mit | 6,835 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>The Quaternionic Exponential</title>
<link rel="stylesheet" href="../math.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="../index.html" title="Math Toolkit 1.9.0">
... | rkq/cxxexp | third-party/src/boost_1_56_0/libs/math/doc/html/math_toolkit/exp.html | HTML | mit | 3,564 |
/**
* @license AngularJS v1.2.13-build.2242+sha.e645f7c
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
var $resourceMinErr = angular.$$minErr('$resource');
// Helper functions and regex to lookup a dotted path on an object
// stopping at un... | tacone/larry | public/bower_components/angular-resource/angular-resource.js | JavaScript | mit | 23,517 |
require 'spec_helper'
describe Newgistics::Client do
context '#create_product' do
it 'creates products in newgistics' do
products = 5.times.map do |i|
Newgistics::Product.new.tap do |p|
p.sku = "SKU-#{i.to_s * 4}"
end
end
client = Newgistics::Client.new
response ... | 20jeans/newgistics | spec/lib/newgistics/client_spec.rb | Ruby | mit | 544 |
package net.glowstone.entity;
import com.flowpowered.networking.Message;
import com.google.common.base.Preconditions;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import net.glowstone.*;
import net.glowstone.block.GlowBlock;
import net.glowstone.block.blocktype.BlockBed;
import net.glowstone.block.... | keke142/GlowstonePlusPlus | src/main/java/net/glowstone/entity/GlowPlayer.java | Java | mit | 72,781 |
from pytest import approx, raises
from fastats.maths.gamma import gammaln
def test_gamma_ints():
assert gammaln(10) == approx(12.801827480081469, rel=1e-6)
assert gammaln(5) == approx(3.1780538303479458, rel=1e-6)
assert gammaln(19) == approx(36.39544520803305, rel=1e-6)
def test_gamma_floats():
a... | dwillmer/fastats | tests/maths/test_gamma.py | Python | mit | 878 |
#ifndef __BARRIER_SYNC_CLIENT_H__
#define __BARRIER_SYNC_CLIENT_H__
#include "fixed_types.h"
#include "clock_skew_minimization_object.h"
#include "packetize.h"
#include "subsecond_time.h"
// Forward Decls
class Core;
class BarrierSyncClient : public ClockSkewMinimizationClient
{
private:
Core* m_core;
... | abanaiyan/sniper | common/system/barrier_sync_client.h | C | mit | 713 |
/*
*= require font_awesome
*= require bootstrap
*= require grayscale/grayscale.css
*= require_self
*/
| MartinN13/frontend-generators | assets/grayscale/app/assets/stylesheets/grayscale/manifest.css | CSS | mit | 107 |
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
/* Copyright 2008 litl, LLC. */
/**
* The tween list object. Stores all of the properties and information that pertain to individual tweens.
*
* @author Nate Chatellier, Zeh Fernando
* @version 1.0.4
* @private
*/
/*
License... | mtwebster/cjs | modules/tweener/tweenList.js | JavaScript | mit | 4,334 |
require File.expand_path('../boot', __FILE__)
require 'rails/all'
Bundler.require(:default, Rails.env)
class Application < Rails::Application
config.generators do |g|
g.test_framework :rspec, fixture: false
g.view_specs false
g.integration_specs false
g.stylesheets = false
g.javascripts = false... | sheerun/githubsocial | config/application.rb | Ruby | mit | 391 |
<?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/PulldownSequence.php | PHP | mit | 817 |
module Dragonfly
module ActiveModelExtensions
module InstanceMethods
def attachments
@attachments ||= self.class.dragonfly_apps_for_attributes.inject({}) do |hash, (attribute, app)|
hash[attribute] = Attachment.new(app, self, attribute)
hash
end
end
pr... | jrtoocool/geo_ushelf | rmagick/ruby/1.8/gems/dragonfly-0.7.7/lib/dragonfly/active_model_extensions/instance_methods.rb | Ruby | mit | 626 |
<?php
/**
* @file include/security.php
*
* Some security related functions.
*/
/**
* @param int $user_record The account_id
* @param bool $login_initial default false
* @param bool $interactive default false
* @param bool $return
* @param bool $update_lastlog
*/
function authenticate_success($user_record, $l... | bashrc/hubzilla-debian | src/include/security.php | PHP | mit | 14,745 |
<?php //@codingStandardsIgnoreFile ?>
<i class="fa-<?php echo $icon ?><?php if (isset($icon_class)): ?> <?php echo $icon_class ?><?php endif ?>"></i>
| Djamy/platform | src/Oro/Bundle/LayoutBundle/Resources/views/Layout/php/icon_block.html.php | PHP | mit | 150 |
/**
* @ngdoc service
* @name $ionicModal
* @module ionic
* @description
*
* Related: {@link ionic.controller:ionicModal ionicModal controller}.
*
* The Modal is a content pane that can go over the user's main view
* temporarily. Usually used for making a choice or editing an item.
*
* Put the content of the... | redspy/ClearProject | platforms/android/assets/www/lib/ionic/js/angular/service/modal.js | JavaScript | mit | 9,667 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_55) on Fri Jun 20 06:34:27 EDT 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>Uses of Class... | knittledan/Location_Search_Prediction | thirdParty/solrSrc/docs/solr-solrj/org/apache/solr/client/solrj/request/class-use/CollectionAdminRequest.Reload.html | HTML | mit | 5,292 |
import Dashboard from './components/Dashboard'
export function dashboardPlugin(context) {
context.on('application:routes', opts => {
console.info('dashboardPlugin - application:routes')
console.log('dashboardPlugin - application:routes', opts)
opts.nextState.routes.push({
id: 'dashboard',
e... | anthonny/dev.hubpress.io | hubpress-plugins/dashboard/index.js | JavaScript | mit | 602 |
//
// ELCodable_osx.h
// ELCodable_osx
//
// Created by Brandon Sneed on 6/16/16.
// Copyright © 2016 WalmartLabs. All rights reserved.
//
#import <Cocoa/Cocoa.h>
//! Project version number for ELCodable_osx.
FOUNDATION_EXPORT double ELCodable_osxVersionNumber;
//! Project version string for ELCodable_osx.
FOUND... | modulo-dm/modulo | Modules/ELCodable/ELCodable_osx/ELCodable_osx.h | C | mit | 526 |
-- selectA.test
--
-- execsql {
-- SELECT x,y,z FROM t2 UNION ALL SELECT a,b,c FROM t1
-- ORDER BY a,c,b
-- }
SELECT x,y,z FROM t2 UNION ALL SELECT a,b,c FROM t1
ORDER BY a,c,b | bkiers/sqlite-parser | src/test/resources/selectA.test_18.sql | SQL | mit | 185 |
/** @type {import("../../../../").Configuration} */
module.exports = {
name: "compiler-name",
module: {
rules: [
{
test: /a\.js$/,
compiler: "compiler",
use: "./loader"
},
{
test: /b\.js$/,
compiler: "other-compiler",
use: "./loader"
}
]
}
};
| webpack/webpack | test/configCases/rule-set/compiler/webpack.config.js | JavaScript | mit | 286 |
/*jshint node:true*/
module.exports = {
description: '<%= name %>',
normalizeEntityName: function () {},
afterInstall: function(options) {
return this.addPackagesToProject([{
name: 'ember-jsonapi-resources',
target: '~1.1.2'
}]);
}
};
| proteamer/ember-jsonapi-resources | blueprints/jsonapi-blueprint/files/blueprints/__name__/index.js | JavaScript | mit | 265 |
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by SpecFlow (http://www.specflow.org/).
// SpecFlow Version:3.0.0.0
// SpecFlow Generator Version:3.0.0.0
//
// Changes to this file may cause incorrect behavior and wil... | frankwang0/bdd-tdd-starter-kit | ShoppingCart/BddTraining.Specs.Features/Files/Add to Cart.feature.cs | C# | mit | 4,349 |
from i3pystatus import IntervalModule
from i3pystatus.core.util import internet, require
from datetime import datetime
from urllib.request import urlopen
import json
import re
GEOLOOKUP_URL = 'http://api.wunderground.com/api/%s/geolookup%s/q/%s.json'
STATION_QUERY_URL = 'http://api.wunderground.com/api/%s/%s/q/%s.jso... | eBrnd/i3pystatus | i3pystatus/weather/wunderground.py | Python | mit | 8,899 |
// Try CodeIQ Q3264
// author: Leonardone @ NEETSDKASU
package main
import (
"fmt"
"strings"
)
func Solve(target string, words []string) (ans []string) {
for _, w := range words {
switch {
case w == target:
ans = append(ans, "["+w+"]")
case strings.Contains(w, target):
ans = append(ans, strings.Replace... | neetsdkasu/CodeIQ-MySolutions | Q3264_Colorize/main.go | GO | mit | 721 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Slokas extends CI_Controller
{
var $currentModule="";
var $title="";
public function __construct()
{
global $menudata;
parent:: __construct();
$this->load->helper("url");
$this->l... | jugalrathore/gradeupfinal | application/controllers/Slokas.php | PHP | mit | 9,731 |
##
# This code was generated by
# \ / _ _ _| _ _
# | (_)\/(_)(_|\/| |(/_ v1.0.0
# / /
#
# frozen_string_literal: true
module Twilio
module REST
class Pricing < Domain
class V1 < Version
class PhoneNumberList < ListResource
##
# Initialize the PhoneNumberList... | philnash/twilio-ruby | lib/twilio-ruby/rest/pricing/v1/phone_number.rb | Ruby | mit | 3,668 |
/*******************************************************************************
** ArrayOperations.h
** Part of the mutual information toolbox
**
** Contains functions to floor arrays, and to merge arrays into a joint
** state.
**
** Author: Adam Pocock
** Created 17/2/2010
** Updated - 22/02/2014 - Added checking on... | chappers/sklearn-recipes | streaming_take2/LOFS_Octave/source_codes/ArrayOperations.h | C | mit | 3,884 |
/**
* Module for filters
*/
(function () {
'use strict';
angular.module('<%= appName %>.filters', []);
})();
| michikono/generator-angular-enterprise | generators/app/templates/%CLIENTSIDEFOLDER%/%APPSUBFOLDER%/filters/filters.module.js | JavaScript | mit | 116 |
<?php
/**
* Author: Hassletauf <hassletauf@gmail.com>
* Date: 10/6/2016
* Time: 6:28 PM
*/
namespace Konnektive\Tests\Request;
use Illuminate\Validation\ValidationException;
use Konnektive\Request\Customer\AddCustomerNoteRequest;
use Konnektive\Request\Customer\QueryCustomerHistoryRequest;
use Konnektive\Request... | HassleTauf/konnektive-crm | tests/Request/RequestTest.php | PHP | mit | 15,175 |
'use strict';
const { createController } = require('../controller');
describe('Default Controller', () => {
test('Creates Collection Type default actions', () => {
const service = {};
const contentType = {
modelName: 'testModel',
kind: 'collectionType',
};
const controller = createContro... | wistityhq/strapi | packages/core/strapi/lib/core-api/__tests__/controller.test.js | JavaScript | mit | 973 |
import { combineReducers } from 'redux';
import loginStatus from './loginStatus';
import getModuleStatusReducer from '../../lib/getModuleStatusReducer';
export function getLoginStatusReducer(types) {
return (state = null, { type, loggedIn, refreshTokenValid }) => {
switch (type) {
case types.login:
... | ringcentral/ringcentral-js-integration-commons | src/modules/Auth/getAuthReducer.js | JavaScript | mit | 2,784 |
using System.Collections.Generic;
using System.IO;
namespace Nuxleus.WebService {
public struct PutObjectResponse : IResponse {
public KeyValuePair<string, string>[] Headers { get; set; }
public MemoryStream Response { get; set; }
}
}
| Microsoft/vsminecraft | dependencies/protobuf-net/SilverlightExtended/Nuxleus.WebService/PutObjectResponse.cs | C# | mit | 264 |
'use strict';
import * as ev from 'events';
import * as vsc from 'vscode';
import * as dcdUtil from './dcd/util';
import * as dscannerUtil from './dscanner/util';
import * as misc from './misc';
import Dub from './dub';
import Server from './dcd/server';
import Client from './dcd/client';
import Dfmt from './dfmt';
im... | dlang-vscode/dlang-vscode | src/provider.ts | TypeScript | mit | 5,569 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.WindowsAzure.Storage.Queue;
using Orleans.AzureUtils;
using Orleans.Runtime;
using Orleans.Runtime.Configuration;
using Tester;
using TestExtensions;
using Xunit;
namespace UnitTests.StorageTests
{
publ... | shayhatsor/orleans | test/TesterInternal/StorageTests/AzureQueueDataManagerTests.cs | C# | mit | 5,269 |
#ifndef _LINUX_TYPES_H
#define _LINUX_TYPES_H
#include <asm/types.h>
#ifndef __ASSEMBLY__
#ifdef __KERNEL__
#define DECLARE_BITMAP(name,bits) \
unsigned long name[BITS_TO_LONGS(bits)]
#else
#ifndef __EXPORTED_HEADERS__
#warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/Kern... | devlato/kolibrios-llvm | drivers/include/linux/types.h | C | mit | 7,888 |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Mailer;
use Symfony\Component\Mailer\Messenger\SendEm... | arjenm/symfony | src/Symfony/Component/Mailer/Mailer.php | PHP | mit | 1,095 |
/* global describe, it */
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 Apigee Corporation
*
* 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... | MaxKramnik/swagger-tools | test/1.2/test-middleware-swagger-security.js | JavaScript | mit | 16,860 |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Pages extends Model
{
//
}
| amravazzi/knock-knock | app/Pages.php | PHP | mit | 101 |
module.exports = utest;
utest.Collection = require('./lib/Collection');
utest.TestCase = require('./lib/TestCase');
utest.BashReporter = require('./lib/reporter/BashReporter');
var collection;
var reporter;
function utest(name, tests) {
if (!collection) {
collection = new utest.Collection();
report... | Metadas/Drone-Control | node_modules/urun/node_modules/utest/index.js | JavaScript | mit | 478 |
# Microsoft.Activities.Build.Validation
``` diff
+namespace Microsoft.Activities.Build.Validation {
+ public class DeferredValidationTask : Task {
+ public DeferredValidationTask();
+ public string DeferredValidationErrorsFilePath { get; set; }
+ public override bool Execute();
+ }
+ publ... | ericstj/standard | docs/comparisons/netstandard2.0_vs_net461/Microsoft.Activities.Build.Validation.md | Markdown | mit | 553 |
/* Orange Color */
a, a:visited{
color: #ff8421;
}
a:hover{
color: #ff9641;
}
.color{
color: #ff9641;
}
.button a, .button a:visited{
background:#ff9641;
}
.button a:hover{
background:#ff8421;
}
/* Header */
header .hlinks > span{
background: #ff9641;
border: 1px solid #ff8421;
}
/* Navigation */
.navbar{
b... | lesario/tiketbaik.com | assets/css/orange.css | CSS | mit | 1,926 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.