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 |
|---|---|---|---|---|---|
// Copyright 2016 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gitea
import (
"bytes"
"encoding/json"
"fmt"
"time"
)
// StateType issue state type
type StateType string
const (
// StateOpen pr is opend
St... | tboerger/gitea | vendor/code.gitea.io/sdk/gitea/issue.go | GO | mit | 4,741 |
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | githubmoros/myclinicsoft | vendor/google/apiclient-services/src/Google/Service/AndroidManagement/ApplicationPolicy.php | PHP | mit | 2,807 |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"nt\u0254\u0301ng\u0254\u0301",
"mp\u00f3kwa"
],
"... | ereddate/angular.js | src/ngLocale/angular-locale_ln-cd.js | JavaScript | mit | 2,486 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Function store</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator... | yinchunlong/abelkhan-1 | ext/c++/thirdpart/c++/boost/doc/html/boost/program_options/store_idp123268064.html | HTML | mit | 4,667 |
package org.knowm.xchange.bity;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.*;
import org.knowm.xchange.bity.dto.account.BityInputTransaction;
import org.knowm.xchange.bity.dto.account.BityOrder;
import org.knowm.xchange.bity.dto.account.BityOutputTransaction;
import org.knowm.xchange.... | douggie/XChange | xchange-bity/src/main/java/org/knowm/xchange/bity/BityAdapters.java | Java | mit | 4,222 |
/*!
* jQuery JavaScript Library v@VERSION
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: @DATE
*/
(function( global, factory ) {
if ( typeof m... | curt-labs/GoSurvey | public/dist/js/vendor/jquery/src/intro.js | JavaScript | mit | 1,392 |
require File.dirname(__FILE__) + '/../spec_helper'
describe PagesHelper do
it "has the right amount of greediness on parsing wiki links" do
self.stub!(:wiki_link).and_return "MONKEYS"
wikified_body("hello[[there]]whats[[up]]").should == "<p>helloMONKEYSwhatsMONKEYS</p>"
wikified_body("hello[[there|hai... | queso/signal-wiki | spec/helpers/pages_helper_spec.rb | Ruby | mit | 2,868 |
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
namespace UICatalog
{
[Register ("SegmentedControlViewController")]
public class SegmentedControlViewController : UITableViewController
{
[Outlet]
private UISegmentedControl DefaultSegmentedControl { get; set; }
... | nervevau2/monotouch-samples | ios8/UICatalog/UICatalog/ViewControllers/SegmentedControlViewController.cs | C# | mit | 3,891 |
CoffeeScript.tmbundle
---------------------
A **TextMate Bundle** for the **CoffeeScript** programming language.
Installation:
-------------
**TextMate 2:** You can install this bundle in TextMate by opening the preferences and going to the bundles tab. After installation it will be automatically updated for you.
*... | msmiley/coffee-script.tmbundle | README.markdown | Markdown | mit | 729 |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-example32-production</title>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.6/angular.min.js"></script>
</head>
<body ng-app="">
<input ng-keydown="count = count + 1" ng-init="count=0">
key do... | Eruant/angular-boilerplate | src/lib/docs/examples/example-example32/index-production.html | HTML | mit | 355 |
'use strict';
const chalk = require('chalk');
const detect = require('detect-port-alt');
const getProcessForPort = require('./getProcessForPort');
function isRoot() {
return process.getuid && process.getuid() === 0;
}
function checkDetectPort(port, host) {
port = parseInt(port, 10) || 0;
return new Promise((resol... | kidney/guido | lib/utils/checkDetectPort.js | JavaScript | mit | 1,014 |
<?php
# Copyright (c) 2012 John Reese
# Licensed under the MIT license
form_security_validate( 'plugin_Source_repo_import_full' );
access_ensure_global_level( plugin_config_get( 'manage_threshold' ) );
$f_repo_id = gpc_get_string( 'id' );
$t_repo = SourceRepo::load( $f_repo_id );
$t_vcs = SourceVCS::repo( $t_repo )... | dregad/source-integration | Source/pages/repo_import_full.php | PHP | mit | 2,111 |
using System.Collections.Generic;
using System.Linq;
using Windows.ApplicationModel.Resources;
using Windows.Graphics.Display;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespace AppStudio.Common.Actions
{
public class ActionsCommandBar : CommandBar
{
public static readonly DependencyProp... | pellea/waslibs | src/AppStudio.Common/Actions/ActionsCommandBar.cs | C# | mit | 5,425 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../test/css/main.css">
<script type="text/javascript" src="../test/bower_components/jquery/jquery.min.js"></script>
<script type="text/javascript" src="../test/conf... | gopinathkoteru/Housing_Panorama | lib/try.html | HTML | mit | 530 |
using AllReady.Models;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Mvc.Rendering;
using AllReady.Extensions;
using System;
using Microsoft.Data.Entity;
using System.Threading.Tasks;
namespace AllReady.Services
{
public class SelectListService : ISelectListService
{
... | aliiftikhar/allReady | AllReadyApp/Web-App/AllReady/Services/SelectListService.cs | C# | mit | 3,030 |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2015 Umeng, 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 u... | Chanven/the-tech-frontier-app | src/org/tech/frontier/net/handlers/RecommendHandler.java | Java | mit | 1,984 |
using System;
using System.Collections.Generic;
using System.Reflection;
using Orleans.CodeGeneration;
using Orleans.Utilities;
namespace Orleans
{
/// <summary>
/// Maintains a map between grain classes and corresponding interface-implementation mappings.
/// </summary>
internal class InterfaceToImple... | pherbel/orleans | src/Orleans.Core/Core/InterfaceToImplementationMappingCache.cs | C# | mit | 9,603 |
// Copyright 2012 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | elynnlee/bright-bot | closure/library/closure/goog/i18n/ordinalrules.js | JavaScript | mit | 17,909 |
//////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
//
// File: d3dx9mesh.h
// Content: D3DX mesh types and functions
//
//////////////////////////////////////////////////////////////////////////////
#include "d3dx9... | narfster/leopard_directshow | leopard_directshow/Include/dshow/d3dx9mesh.h | C | mit | 100,639 |
using System;
using Database.Plugin.Abstractions;
using SQLite;
using Windows.Storage;
namespace Database.Plugin
{
/// <summary>
/// Implementation for Database
/// </summary>
public class DatabaseImplementation : IDatabase
{
public SQLiteConnection GetConnection(string databaseFileName)
{
... | therealjohn/Xamarin.Plugins | Database/Database/Database.Plugin.WindowsStore/DatabaseImplementation.cs | C# | mit | 524 |
<?php
return [
/*
|--------------------------------------------------------------------------
| View to Bind JavaScript Vars To
|--------------------------------------------------------------------------
|
| Set this value to the name of the view (or partial) that
| you want to prepend all... | Lphmedia/youbloom | config/javascript.php | PHP | mit | 890 |
const middleware = {}
export default middleware
| FoalTS/foal | samples/nuxt.js/backend/.nuxt/middleware.js | JavaScript | mit | 49 |
// Generated by CoffeeScript 1.3.3
(function() {
var nock, should, wd;
wd = require('../common/wd-with-cov');
nock = require('nock');
should = require('should');
describe("wd", function() {
return describe("unit", function() {
return describe("callback tests", function() {
var server;
... | espena/terminal | test/node_modules/testem/examples/saucelabs/node_modules/wd/test/unit/callback-test.js | JavaScript | mit | 2,483 |
//===-- LLVMTargetMachine.cpp - Implement the LLVMTargetMachine class -----===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | wrmsr/lljvm | thirdparty/llvm/lib/CodeGen/LLVMTargetMachine.cpp | C++ | mit | 15,146 |
'use strict';
const path = require('path');
const webpack = require('webpack');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
module.exports = {
bail : true,
entry : path.join(__dirname, 'src/main/main.js'),
target: 'electron-main',
outp... | my-dish/template-electron | template/webpack.main.config.js | JavaScript | mit | 896 |
//分页插件
/**
2014-08-05 ch
**/
(function($){
var ms = {
init:function(obj,args){
return (function(){
ms.fillHtml(obj,args);
ms.bindEvent(obj,args);
})();
},
//填充html
fillHtml:function(obj,args){
return (function(){
obj.empty();
//上一页
if(args.current > 1){
obj.append('<a href="ja... | 447491480/little-man | public/default/js/vendors/jquery.page/jquery.page.js | JavaScript | mit | 3,004 |
module Shoulda
module Matchers
module ActionController
# The `filter_param` matcher is used to test parameter filtering
# configuration. Specifically, it asserts that the given parameter is
# present in `config.filter_parameters`.
#
# class MyApplication < Rails::Application
... | plribeiro3000/shoulda-matchers | lib/shoulda/matchers/action_controller/filter_param_matcher.rb | Ruby | mit | 1,679 |
<!DOCTYPE HTML>
<html>
<head>
<title>phaser.js - a new beginning</title>
<?php
require('js.php');
?>
</head>
<body>
<script type="text/javascript">
var game = new Phaser.Game();
var r = new Phaser.Rectangle(0,0,100,100);
console.log(r);
</script>
</body>
</html> | GoodBoyDigital/phaser | wip/examples/rect1.php | PHP | mit | 276 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using Orleans;
using Orleans.Runtime;
using TestExtensions;
using TestGrainInterfaces;
using UnitTests.GrainInterfaces;
using Xunit;
namespace DefaultCluster.Tests.General
{
/// <summary>
... | ibondy/orleans | test/DefaultCluster.Tests/GenericGrainTests.cs | C# | mit | 42,815 |
/*
*
* Copyright (C) 2003-2011, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmimage
*
* Author: Alexand... | leonardorame/openpacs | dcmtk-3.6.1_20150629/dcmimage/libsrc/dipipng.cc | C++ | mit | 6,073 |
using System;
using System.Runtime.CompilerServices;
using CodeJam.Arithmetic;
using CodeJam.PerfTests;
using JetBrains.Annotations;
using NUnit.Framework;
using static CodeJam.PerfTests.CompetitionHelpers;
// ReSharper disable once CheckNamespace
namespace CodeJam
{
/// <summary>
/// Proof test: <see cref="En... | rsdn/CodeJam | PerfTests[WIP]/CodeJam.Main.Tests.Performance/Enums/EnumHelperPerfTests.cs | C# | mit | 8,661 |
// Package event for AMI
package event
// Newchannel triggered when a new channel is created.
type Newchannel struct {
Privilege []string
Channel string `AMI:"Channel"`
ChannelState string `AMI:"Channelstate"`
ChannelStateDesc string `AMI:"Channelstatedesc"`
CallerIDNum string `AMI:"Calle... | bit4bit/gami | event/newchannel.go | GO | mit | 601 |
var files = {
"webgl": [
"webgl_animation_cloth",
"webgl_animation_keyframes",
"webgl_animation_skinning_blending",
"webgl_animation_skinning_morph",
"webgl_animation_multiple",
"webgl_camera",
"webgl_camera_array",
"webgl_camera_cinematic",
"webgl_camera_logarithmicdepthbuffer",
"webgl_clipping",
... | easz/rt_geometry | playground/js/three.js-r115/examples/files.js | JavaScript | mit | 10,825 |
//-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restrictio... | andr3wmac/Torque6 | src/gui/guiPopUpCtrl_Binding.h | C | mit | 14,265 |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2015 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the... | jcollfont/SCIRun | src/Core/IEPlugin/IgbFileToMatrix_Plugin.cc | C++ | mit | 3,458 |
import java.io.*;
public class FileOutputter
{
private BufferedWriter m_writer;
private String m_filename;
public static void print( String filename, String text )
{
try
{
File file = new File( filename );
BufferedWriter bw = new BufferedWriter(
... | Rachels-Courses/Course-Common-Files | STUDENT_REFERENCE/EXAMPLE_CODE/File IO/Java/OutputCSV/FileOutputter.java | Java | mit | 1,760 |
<!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="description" content="">
<meta name="author" content="">
<link rel="icon" HREF="favicon.ic... | jucapoco/baseSiteGanttChart | node_modules/vis/docs/network/groups.html | HTML | mit | 7,813 |
/*
* Copyright (C) 2010 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... | widged/SOT-skills-report | electron/lib/react-devtools/blink/Source/devtools/front_end/AuditRules.js | JavaScript | mit | 53,702 |
package org.anddev.andengine.util;
import android.graphics.Color;
/**
* @author Nicolas Gramlich
* @since 11:13:45 - 04.08.2010
*/
public class ColorUtils {
// ===========================================================
// Constants
// ===========================================================
private static... | liufeiit/itmarry | source/android-game/PlantsVsBugs/src/org/anddev/andengine/util/ColorUtils.java | Java | mit | 2,138 |
# Something
| cqqccqc/Something | README.md | Markdown | mit | 12 |
- Place desktop specific containers here.
- These containers are common across routes i.e. modals, drawers, etc. | Jonathan-Law/fhd | src/desktop/containers/README.md | Markdown | mit | 112 |
using System;
using System.Collections.Generic;
namespace KSPAdvancedFlyByWire
{
public class Bitset
{
public int m_SingleData = 0;
public int[] m_Data = null;
public int m_NumBits = 0;
public Bitset() {}
public Bitset(int numBits)
{
m_NumBits = ... | taniwha/ksp-advanced-flybywire | Bitset.cs | C# | mit | 2,500 |
---
title: Od Sjevera i Juga do Divote
date: 14/03/2020
---
> <p></p>
> “Od umnika neki će pasti, da se prokušaju, probrani, čisti do vremena svršetka, jer još nije došlo određeno vrijeme.” (Daniel 11,35)
### Biblijski tekstovi:
Daniel 11; Daniel 8,3-8.20-22; Izaija 46,9.10; Daniel 8,9.23; Matej 27,33-50.
Na poče... | PrJared/sabbath-school-lessons | src/hr/2020-01/12/01.md | Markdown | mit | 1,536 |
/*
* This file Copyright (C) Mnemosyne LLC
*
* This file is licensed by the GPL version 2. Works owned by the
* Transmission project are granted a special exemption to clause 2 (b)
* so that the bulk of its code can remain under the MIT license.
* This exemption does not extend to derived works not owned by
* th... | HaikuArchives/Torrentor | source/libtransmission/cache.h | C | mit | 1,944 |
SET JVM_OPT=-XX:MaxMetaspaceSize=256M
START javaw %JVM_OPT% -jar logbook-kai.jar
| Sdk0815/logbook-kai | dist-includes/launch.bat | Batchfile | mit | 83 |
package org.jabref.gui.fieldeditors;
import java.util.stream.Collectors;
import javafx.beans.binding.Bindings;
import javafx.fxml.FXML;
import javafx.scene.Parent;
import javafx.scene.layout.HBox;
import org.jabref.gui.autocompleter.SuggestionProvider;
import org.jabref.gui.util.ViewModelListCellFactory;
import org.... | sauliusg/jabref | src/main/java/org/jabref/gui/fieldeditors/LinkedEntriesEditor.java | Java | mit | 2,406 |
// Copyright 2020 The Gitea Authors. All rights reserved.
// Copyright 2016 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package convert
import (
"strings"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/m... | cez81/gitea | modules/convert/utils.go | GO | mit | 983 |
var optionValueKeyMarkdown = require('../markdown/js/properties/optionValueKey').body;
var optionValueKeyProp = {
nameAttr: "optionValueKey",
renderString: optionValueKeyMarkdown
};
module.exports = optionValueKeyProp;
| cloudability/react-super-select | src_docs/properties/optionValueKey.js | JavaScript | mit | 228 |
<div class="content-section introduction">
<div>
<span class="feature-title">Messages</span>
<span>Messages is used to display messages inline.</span>
</div>
</div>
<div class="content-section implementation">
<p-messages [(value)]="msgs"></p-messages>
<h3 class="first">Basic</h3>
... | donriver/primeng | src/app/showcase/components/messages/messagesdemo.html | HTML | mit | 13,981 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
namespace Azure.IoT.DeviceUpdate.Models
{
/// <summary> Update compatibility information. </summary>
public partial class Compatibility
{
/// <summ... | ayeletshpigelman/azure-sdk-for-net | sdk/deviceupdate/Azure.Iot.DeviceUpdate/src/Generated/Models/Compatibility.cs | C# | mit | 1,492 |
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
module.exports = function () {
return {
sql: "CREATE TABLE [__types] ([table] T... | mamaso/azure-mobile-apps-node | src/data/sqlite/statements/columns.createTable.js | JavaScript | mit | 367 |
<?php
namespace LaravelDoctrine\Migrations\Configuration;
use Doctrine\DBAL\Migrations\Configuration\Configuration as MigrationsConfiguration;
use LaravelDoctrine\Migrations\Naming\NamingStrategy;
class Configuration extends MigrationsConfiguration
{
/**
* @var NamingStrategy
*/
protected $namingSt... | chilloutalready/migrations | src/Configuration/Configuration.php | PHP | mit | 660 |
<!doctype html>
<html>
<head>
<title>ATS-Sorting-Quick</title>
<style>
#canvas-container
{
margin: 0 auto; width: 920px; height: auto;
}
</style>
<script
src="https://cdn.jsdelivr.net/jquery/2.1.1/jquery.min.js">
</script>
<script
src="https://ats-lang.github.io/LIBRARY/libatscc2js/ATS2-0.3.2/libatscc2js_all.js">
... | ashalkhakov/ATS-Postiats-contrib | projects/SMALL/JSmydraw/Sorting_quick/Sorting_quick.html | HTML | mit | 704 |
---
layout: post
title: "Quotes: Bull Brains"
date: 2014-08-21 12:23:42
categories: quote
author: Shane Leonard
image: /images/quote-neill-bull-brains.jpg
---
From the Sage of Saxtons River, [Humphrey B. Neill](http://www.businessinsider.com/the-sage-of-saxtons-river-2011-3). Neill wrote [The Art of Contrary Thinki... | Stockflare/blog | _posts/2014-08-21-quotes-neill-bull-brains.markdown | Markdown | mit | 811 |
/*
DotNetMQ - A Complete Message Broker For .NET
Copyright (C) 2011 Halil ibrahim KALKAN
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option)... | andrecarlucci/dotnetmq | src/MDSCore/Communication/TCPCommunication/TCPCommunicator.cs | C# | mit | 7,844 |
module SearchHelper
def search_autocomplete_opts(term)
return unless current_user
resources_results = [
groups_autocomplete(term),
projects_autocomplete(term)
].flatten
search_pattern = Regexp.new(Regexp.escape(term), "i")
generic_results = project_autocomplete + default_autocomplet... | screenpages/gitlabhq | app/helpers/search_helper.rb | Ruby | mit | 6,269 |
// 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 0.15.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
... | Clairety/ConnectMe | CSharp/Library/Luis/Models/IntentRecommendation.cs | C# | mit | 1,876 |
name(smtp).
title('An (E)SMTP client for sending mail').
version('1.0.0').
keywords([smtp, mail, sendmail]).
author('Jan Wielemaker', 'J.Wielemaker@vu.nl').
home('https://github.com/JanWielemaker/smtp').
download('https://github.com/JanWielemaker/smtp/releases/*.zip').
| TeamSPoon/logicmoo_workspace | packs_web/swish/pack/smtp/pack.pl | Perl | mit | 270 |
{% extends "layout.html" %}
{% block page_title %}
Apprenticeships
{% endblock %}
{% block content %}
<style>
.provider-nav a, .nav-forecast a {
{% include "includes/nav-on-state-css.html" %}
}
</style>
<main id="content" role="main">
{% include "includes/phase_banner_beta.html" %}
{% include "includes/s... | SkillsFundingAgency/das-alpha-ui | app/views/commitTwo/contracts/new-contract/find-provider.html | HTML | mit | 3,990 |
class Fix < ActiveRecord::Base
has_many :fix_comments
belongs_to :issue
belongs_to :user
def package_info
{id: self.id, user_id: self.user_id, user_first_name: self.user.first_name, user_last_name: self.user.last_name, issue_id: self.issue_id, title: self.title, image_url: self.image_url}
end
end
| acoravos/metoo | app/models/fix.rb | Ruby | mit | 315 |
{{
forms.oauth_fields(
'Google Analytics',
form.analytics_id,
'''
Get it from
<a href="https://www.google.com/analytics/web/" target="_blank">Google Analytics</a>
'''
)
}}
| mdxs/gae-init-docs | main/templates/admin/bit/google_analytics_tracking_id.html | HTML | mit | 218 |
#include "HaViMo2.h"
extern Dynamixel *pDxl;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
void HaViMo2_Controller::capture(void)
{
pDxl->writeByte(HaViMo2_ID, 0, 0);
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bool HaViMo2_Controller::read... | chcbaram/OpenCM9.04_IDE_1.5 | hardware/robotis/OpenCM9.04/libraries/HaViMo2/HaViMo2.cpp | C++ | mit | 3,618 |
---
layout: post
author: "Matt Davis"
title: "Workshops for Companies"
date: 2015-04-09
time: "16:00:00"
category: ["Workshops"]
---
<p>
At our March 12, 2015 meeting, the Software Carpentry Foundation Steering
Committee discussed whether and under what terms to provide workshops to
for-profit corporations. There... | FranciscoCanas/website | _posts/2015/04/2015-04-09-workshops-for-companies.html | HTML | mit | 2,616 |
using System.Collections.Generic;
using System.Data;
using System.Web.Mvc;
using Microsoft.Reporting.WebForms;
namespace MvcReportViewer
{
public static class ReportRunnerExtensions
{
/// <summary>
/// Creates a FileContentResult object by using Report Viewer Web Control.
//... | codedecay/MvcReportViewer | MvcReportViewer/ReportRunnerExtensions.cs | C# | mit | 8,426 |
##
##
function(atom_to_literal_assignments f atom_assignments)
map_import_properties(${f} atom_index_map atom_literal_identity_map atom_literal_negated_map)
map_keys(${atom_assignments})
ans(atoms)
map_new()
ans(result)
foreach(atom ${atoms})
map_tryget(${atom_index_map} ${atom})
ans(ai)
map_tr... | tempbottle/cmakepp | cmake/sat/utilities/atom_to_literal_assignments.cmake | CMake | mit | 693 |
/**
* 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.cognitiveservices.vision.customvision.training.models;
impo... | selvasingh/azure-sdk-for-java | sdk/cognitiveservices/ms-azure-cs-customvision-training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/models/ImageIdCreateEntry.java | Java | mit | 2,042 |
import unittest
import numpy
import chainer
from chainer.backends import cuda
from chainer import gradient_check
from chainer import links
from chainer import testing
from chainer.testing import attr
from chainer.testing import condition
@testing.with_requires('theano')
class TheanoFunctionTestBase(object):
fo... | aonotas/chainer | tests/chainer_tests/links_tests/theano_tests/test_theano_function.py | Python | mit | 5,778 |
module.exports = {
description: 'auto-indents with indent: true',
options: {
moduleName: 'foo',
indent: true
}
};
| lukeapage/rollup | test/form/indent-true/_config.js | JavaScript | mit | 121 |
TEST('GRAPHICSMAGICK_READ_METADATA', (check) => {
GRAPHICSMAGICK_READ_METADATA('UPPERCASE-CORE/sample.png', (metadata) => {
console.log(metadata);
});
GRAPHICSMAGICK_READ_METADATA('UPPERCASE-CORE/sample.png', {
error : () => {
console.log('ERROR!');
},
success : (metadata) => {
console.log(metadata);... | Hanul/UPPERCASE | node_modules/ubm/node_modules/uppercase-core/TEST/NODE/GRAPHICSMAGICK/GRAPHICSMAGICK_READ_METADATA.js | JavaScript | mit | 334 |
/**
* Created by Pencroff on 04-Sep-16.
*/
window.test = {
id: '384A61CA-DA2E-4FD2-A113-080010D4A42B',
name: 'object literal iteration',
description: 'Performance case for iteration object properties. Comparison for StackOverflow question: How do I loop through or enumerate a JavaScript object? (<a href=... | Pencroff/PerfJS | origin/tests/object-iteration.js | JavaScript | mit | 2,756 |
<?php
/*
* WellCommerce Open-Source E-Commerce Platform
*
* This file is part of the WellCommerce package.
*
* (c) Adam Piotrowski <adam@wellcommerce.org>
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code.
*/
namespace WellCommerce\Bun... | diversantvlz/WellCommerce | src/WellCommerce/Bundle/AppBundle/DataGrid/UserGroupDataGrid.php | PHP | mit | 1,707 |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | the-ress/vscode | src/vs/base/parts/ipc/node/ipc.net.ts | TypeScript | mit | 9,530 |
<?php
/**
* This file is part of the Liquid package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package Liquid
*/
namespace Liquid\Cache;
use Liquid\TestCase;
class FileTest extends TestCase
{
/** @var \Liquid\Cache\Fil... | claudinec/energyfreedom-pledge | vendor/liquid/liquid/tests/Liquid/Cache/FileTest.php | PHP | mit | 3,777 |
<?php
namespace net\authorize\api\contract\v1;
/**
* Class representing CreateCustomerPaymentProfileRequest
*/
class CreateCustomerPaymentProfileRequest extends ANetApiRequestType
{
/**
* @property string $customerProfileId
*/
private $customerProfileId = null;
/**
* @pr... | hyrmedia/builderengine | modules/builderpayment/controllers/authorizelib/lib/net/authorize/api/contract/v1/CreateCustomerPaymentProfileRequest.php | PHP | mit | 2,070 |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | phphatesme/LiveTest | src/lib/Zend/View/Helper/PartialLoop.php | PHP | mit | 3,106 |
package com.voxelwind.server.network.util;
import com.google.common.base.Charsets;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import static org.junit.Assert.assertEquals;
public class CompressionUtilTest {
@org.junit.Test
public void fullTest() throws Exception {
ByteBuf toCompr... | minecrafter/voxelwind | server/src/test/java/com/voxelwind/server/network/util/CompressionUtilTest.java | Java | mit | 868 |
(function(){
up.Font = Font;
up.Font.NORMAL = "normal";
up.Font.ITALIC = "italic";
up.Font.OBLIQUE = "oblique";
up.Font.BOLD = "bold";
up.Font.SMALL_CAPS = "small-caps";
function Font(_family, _size, _lineHeight, _style, _weight, _variant){
this.family = "Arial";
this.si... | cark1/_up_old | textViewObjects/Font.js | JavaScript | mit | 1,526 |
<?php declare(strict_types=1);
namespace Room11\Jeeves\Plugins;
use Amp\Artax\FormBody;
use Amp\Artax\HttpClient;
use Amp\Artax\Request as HttpRequest;
use Amp\Artax\Response as HttpResponse;
use Amp\Artax\Uri;
use Amp\Deferred;
use Amp\Pause;
use Amp\Promise;
use Amp\Promisor;
use Amp\Success;
use Ds\Queue;
use Room... | DaveRandom/Jeeves | src/Plugins/EvalCode.php | PHP | mit | 6,668 |
class Question < ActiveRecord::Base
belongs_to :questionnaire, dependent: :destroy
has_one :response
accepts_nested_attributes_for :response
end
| erikcaineolson/HARE | app/models/question.rb | Ruby | mit | 151 |
---
title: Additional Thought
date: 22/12/2017
---
“The Bible shows us God’s plan. Bible truths are God’s words. The person who makes these truths a part of his life becomes a new person in every way. But God does not give this person new powers of the mind. Instead, God takes away the sin that has darkened the per... | imasaru/sabbath-school-lessons | src/en/2017-04-er/12/07.md | Markdown | mit | 2,412 |
package luhn
import "testing"
var validTests = []struct {
n string
ok bool
}{
{"738", false},
{"8739567", true},
{"1111", false},
{"8763", true},
{" ", false},
{"", false},
{"2323 2005 7766 3554", true},
}
var addTests = []struct{ raw, luhn string }{
{"123", "1230"},
{"873956", "8739567"},
{"83726375... | DanShu93/exercism | solutions/go/luhn/luhn_test.go | GO | mit | 1,091 |
<!DOCTYPE html>
<html>
<head>
<title>BeatPicker Live Demo</title>
<link rel="stylesheet" href="documents/css/reset.css"/>
<link rel="stylesheet" href="css/BeatPicker.min.css"/>
<link rel="stylesheet" href="documents/css/demos.css"/>
<link rel="stylesheet" href="documents/css/prism.css"/>
<script... | valtido/jom | public/assets/-/beatpicker/demos.html | HTML | mit | 20,838 |
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['pending-invitation']
});
| blakepettersson/dashboard.aptible.com | app/components/pending-invitation/component.js | JavaScript | mit | 109 |
require 'test_helper'
class TestTextElement < Test::Unit::TestCase
def test_set_attributes
[:title, :lang, :type, :value, :maxlength, :size].each do |attribute|
assert ActiveForm::Element::Text.element_attribute_names.include?(attribute)
end
elem = ActiveForm::Element::Text.new :elem, :valu... | carbonplanet/active_form | test/elements/test_text_element.rb | Ruby | mit | 4,064 |
/* Browser holds the browser main object */
function Browser(container){
this.$container = $(container);
this.ready = false;
this.rows = [];
this.data = Global.data;
this.parser = Global.parser;
this.offline = window.location.hash == '#random' || window.location.hash == '#disney';
this.resizeTimer;
this.scroll... | CrowdTruth/DIVE | web/js/Browser.js | JavaScript | mit | 12,222 |
import React from 'react'
import styles from './weather.less'
function Weather (props) {
const {city, icon, dateTime, temperature, name} = props
return <div className={styles.weather}>
<div className={styles.left}>
<div className={styles.icon} style={{
backgroundImage: `url(${icon})`
}} />
... | liufulin90/react-admin | src/routes/Dashboard/components/weather.js | JavaScript | mit | 561 |
/**
* Copyright 2013 Ionică Bizău
*
* A Node.JS module, which provides an object oriented wrapper for the Youtube v3 API.
* Author: Ionică Bizău <bizauionica@gmail.com>
*
**/
var Util = require("../../util");
function list (options, callback) {
var self = this;
var url = Util.createUrl.apply(self, [... | clarkeadg/piratesails | node_modules/youtube-api/api/v3.0.0/playlists.js | JavaScript | mit | 837 |
// Copyright 2014 the V8 project authors. 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 ... | imzcy/JavaScriptExecutable | thirdparty/v8/src/test/mjsunit/regress/regress-crbug-350864.js | JavaScript | mit | 1,793 |
/*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
pdr_manager.h
Abstract:
A manager class for PDR, taking care of creating of AST
objects and conversions between them.
Author:
Krystof Hoder (t-khoder) 2011-8-25.
Revision History:
--*/
#ifndef PDR_MANAGER_H_
#define PDR_MANAGER_H_
#in... | jirislaby/z3 | src/muz/pdr/pdr_manager.h | C | mit | 11,027 |
{% extends "base.html" %}
{% block heading %}
<h1>Registrierung</h1>
{% endblock %}
{% block content %}
<form method="post" action=".">{% csrf_token %}
<table border="0">
{{ form.as_table }}
</table>
<input type="submit" value="Register" class="btn btn-default"/>
</form>
<p>
<br>
<... | alexandrcoin/site | login/templates/registration/register.html | HTML | mit | 370 |
// Copyright (C) 2011 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#ifndef DLIB_OBJECT_DeTECTOR_Hh_
#define DLIB_OBJECT_DeTECTOR_Hh_
#include "object_detector_abstract.h"
#include "../geometry.h"
#include <vector>
#include "box_overlap_testing.h"
#include "... | Pastor/videotools | lib/3rdParty/dlib/include/dlib/image_processing/object_detector.h | C | mit | 19,586 |
package madgik.exareme.master.engine.parser;
import junit.framework.TestCase;
import madgik.exareme.common.schema.expression.SQLQuery;
import madgik.exareme.common.schema.expression.SQLScript;
import java.io.ByteArrayInputStream;
import java.rmi.ServerException;
public class ParserTest extends TestCase {
public... | XristosMallios/cache | exareme-master/src/test/java/madgik/exareme/master/engine/parser/ParserTest.java | Java | mit | 996 |
/****************************************************************************
Copyright (c) 2013 cocos2d-x.org
http://www.cocos2d-x.org
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 res... | sandyway/CocosStudioSamples | DemoMicroCardGame/Classes/StageHome.cpp | C++ | mit | 1,815 |
module.exports = {
description: 'throw an error when accessing members of null or undefined'
};
| corneliusweig/rollup | test/form/samples/nested-member-access/_config.js | JavaScript | mit | 97 |
import "reflect-metadata";
import {createTestingConnections, closeTestingConnections, reloadTestingDatabases} from "../../utils/test-utils";
import {Connection} from "../../../src/connection/Connection";
import {Post} from "./entity/Post";
import {Author} from "./entity/Author";
import {Abbreviation} from "./entity/Abb... | ReaxDev/typeorm | test/github-issues/215/issue-215.ts | TypeScript | mit | 1,843 |
<?php
return array (
'%displayName% created a new post.' => '%displayName%さんは、新しい投稿を行いました。',
);
| ProfilerTeam/Profiler | protected/modules_core/post/messages/ja/views_activities_PostCreated.php | PHP | mit | 130 |
#include <gloperate-osg/OsgRenderStage.h>
#include <glm/glm.hpp>
#include <osg/Node>
#include <osgViewer/Viewer>
#include <osgDB/ReadFile>
#include <gloperate-osg/OsgMouseHandler.h>
#include <gloperate-osg/OsgKeyboardHandler.h>
using namespace gloperate;
namespace gloperate_osg
{
void OsgRenderStage::osg_load... | lanice/gloperate | source/gloperate-osg/source/OsgRenderStage_osg.cpp | C++ | mit | 3,451 |
# How To Contribute
1. Fork the repository on Github
2. Create a named feature branch (i.e. `add-new-recipe`)
3. Write you change
4. Write tests for your change (if applicable)
5. Run the tests, ensuring they all pass
6. Submit a Pull Request
| CrossRef/lagotto | vendor/cookbooks/consul/CONTRIBUTING.md | Markdown | mit | 243 |
var $path = require('path');
module.exports = function(grunt) {
grunt.initConfig({
localBase : $path.resolve(__dirname),
pkg: grunt.file.readJSON('package.json'),
litheConcat : {
options : {
cwd: '<%=localBase%>'
},
publish : {
src : 'public/js/',
dest : 'public/js/dist/',
... | tabspace/vrhd | gruntfile.js | JavaScript | mit | 932 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Common.Core.Diagnostics;
namespace Microsoft.Common.Core.Disposables {
/// <... | AlexanderSher/RTVS | src/Common/Core/Impl/Disposables/Disposable.cs | C# | mit | 3,634 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.