repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
michaeltandy/contraction-hierarchies | src/main/java/uk/me/mjt/ch/UnionList.java | 1027 |
package uk.me.mjt.ch;
import java.util.AbstractList;
import java.util.Collections;
import java.util.List;
public class UnionList<N> extends AbstractList<N> implements List<N> {
private final List<N> first;
private final List<N> second;
private final int size;
public UnionList(List<N> first, N secon... | mit |
danielabar/framegen | FramegenCore/src/main/java/com/framegen/core/framehandler/option/NegativeFrameHandler.java | 4070 | package com.framegen.core.framehandler.option;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.concurrent.CompletionService;
import java.util.concurrent.ExecutorCompletionService;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import com.framegen.... | mit |
akaiz/swapeazyfinal | app/modules/uploader/language/english/uploader_lang.php | 543 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Name: Module Language File (Outlet) - English
*
* Author: Kolawole Gabriel
* mail@gkolawole.com
* @gabkolawole
*
*
*
* Created: 26.07.2015
*
* Description: English language file for outlet views
*
*/
// Errors
$lang['image... | mit |
opsway/doctrine-dbal-postgresql | src/Doctrine/ORM/Query/AST/Functions/ArrayAggregate.php | 701 | <?php
namespace Opsway\Doctrine\ORM\Query\AST\Functions;
use Doctrine\ORM\Query\AST\Functions\FunctionNode;
use Doctrine\ORM\Query\Lexer;
use Doctrine\ORM\Query\Parser;
use Doctrine\ORM\Query\SqlWalker;
class ArrayAggregate extends FunctionNode
{
private $expr1;
public function parse(Parser $parser)
{
... | mit |
LyricTian/oauth2 | errors/response.go | 3116 | package errors
import (
"errors"
"net/http"
)
// Response error response
type Response struct {
Error error
ErrorCode int
Description string
URI string
StatusCode int
Header http.Header
}
// NewResponse create the response pointer
func NewResponse(err error, statusCode int) *Response {
... | mit |
instructure/CanvasAPI | src/main/java/com/instructure/canvasapi/model/Submission.java | 12933 | package com.instructure.canvasapi.model;
import android.os.Parcel;
import com.instructure.canvasapi.utilities.APIHelpers;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Brady Larson
*
* Copyright (c) 2014 Instructure. All rights reserved.
*/
... | mit |
mvtenorio/mico | app/Mico/Repositories/BackendServiceProvider.php | 586 | <?php namespace Mico\Repositories;
use Illuminate\Support\ServiceProvider;
class BackendServiceProvider extends ServiceProvider
{
public function register()
{
$this->app->bind(
'Mico\Repositories\Interfaces\UserRepositoryInterface',
'Mico\Repositories\Eloquent\EloquentUserRepository'
);
$this->app->bi... | mit |
suprojs/suprolftpd | view/LFTPD.js | 12246 | /*
* lftp channels controlling and status
*/
Ext.define('App.model.LFTPD',{
extend: App.model.Base,
fields:[
// `chancfg.sts`: status 3-chars for 3 status info:
// [0]- upload status:'r'un/'q'uit
// [1]-download status:'r'un/'q'uit
// [2]-transport queue:'g'o /'s'top
{... | mit |
jonnybee/RawDataAccessBencher | EFCore/Model/EntityClasses/SalesTaxRate.cs | 1675 | //------------------------------------------------------------------------------
// <auto-generated>This code was generated by LLBLGen Pro v5.6.</auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
namespace EFCore.Bencher.En... | mit |
maxharp3r/zotero-to-html | bib2html.py | 3527 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# global imports
import argparse
from HTMLParser import HTMLParser
import json
import os
from pyquery import PyQuery
import pystache
import re
import sys
# local imports
import env
logger = env.logger()
parser = HTMLParser()
renderer = pystache.Renderer(file_encoding="ut... | mit |
commoncrawl/cc-mrjob | server_count_warc.py | 928 | import re
from mrcc import CCJob
server_regex = re.compile('^server:\s*(.+)$', re.I)
class ServerCount(CCJob):
"""
Count server names in HTTP headers contained in WARC files.
Note: If WAT files are available the class ServerAnalysis should be used.
WAT files are smaller and faster to process.
... | mit |
ciena-blueplanet/ember-dagre | tests/unit/rank/util-test.js | 1951 | import {expect} from 'chai'
import {longestPath} from 'ciena-dagre/rank/util'
import {normalizeRanks} from 'ciena-dagre/util'
import {Graph} from 'ciena-graphlib'
import {beforeEach, describe, it} from 'mocha'
describe('rank/util', function () {
describe('longestPath', function () {
let g
beforeEach(functio... | mit |
juliomiguel1/redsocialBUENA | src/main/java/net/daw/service/implementation/PublicacionesService.java | 14674 | /*
* Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com)
*
* openAUSIAS: The stunning micro-library that helps you to develop easily
* AJAX web applications by using Java and jQuery
* openAUSIAS is distributed under the MIT License (MIT)
* Sources at https://github.com/rafa... | mit |
Neopallium/lua-llnet | src/lsocket.nobj.lua | 7595 | -- Copyright (c) 2011 by Robert G. Jakabosky <bobby@sharedrealm.com>
--
-- 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... | mit |
NathanielInman/socket.io-game-boilerplate | src/app/app.js | 754 | import {easel} from './vendor/easel';
import {eventListeners} from './eventListeners';
import {eventDispatch} from './eventDispatch';
/**
* Launch application if easel was able to create a canvas,
* if it wasn't then we know canvas isn't supported
*/
{
let noscript = document.getElementById('noscript');
if(!ea... | mit |
msdark/msdark.github.io | src/pages/blog.js | 650 | import React from 'react'
import styled from 'react-emotion'
import Container from '../components/Container'
const Content = styled.div`
max-width: 90%;
position: relative;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1 0 0%;
`
const Ro... | mit |
sirius2013/BuildCore | app/models/invoice/hits/review.rb | 1363 | # Hit class to review and pay workers after a hit is finished.
class Hits::Review < Hit
def self.complete!(id, already_aproved = false)
builder = find(id)
return false unless builder.mt_hit
builder.set_as_reviewing!
builder.aprove_mt_assignments! unless already_aproved
builder.dispose_mt_hit!
... | mit |
bittiez/AwesomeCommands | src/US/bittiez/Config/Configurator.java | 707 | package US.bittiez.Config;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.plugin.Plugin;
public class Configurator {
public FileConfiguration config;
public Configurator(FileConfiguration config) {
setConfig(config);
}
public Configurator() {}
public void setC... | mit |
jakubfijalkowski/pluggablebot | DefaultProtocols/DefaultProtocolsPlugin.cpp | 1753 | #include "DefaultProtocolsPlugin.h"
#include "GGProtocol.h"
namespace PluggableBot
{
namespace DefaultProtocols
{
DefaultProtocolsPlugin::DefaultProtocolsPlugin(ApplicationContext* context)
: name("DefaultProtocols"), Logger(Logging::LogFactory::GetLogger("DefaultProtocols")), context(context)
{ }
Default... | mit |
wesleywh/GameDevRepo | Scripts/GameManager/TransitionManager.cs | 3764 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace CyberBullet.GameManager {
[RequireComponent(typeof(GUIManager))]
public class TransitionManager : MonoBehaviour {
public bool gameManager = true;
[Header("Debugging")]
... | mit |
bigeasy/dotfiles | libexec/dots/node/codecov.js | 889 | #!/usr/bin/env node
/*
___ usage ___ en_US ___
usage: dots git issue create [options] [subject]
desciption:
Create a GitHub issue from the command line using the given subject. If the
creation is successful, the new issue number is printed to standard out.
___ . ___
*/
// TODO Really shoul... | mit |
JanBe/woo-map | config/application.rb | 535 | require_relative 'boot'
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module WooMap
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specif... | mit |
ChilliCreative/solidtimberbenchtops.com.au | web/app/plugins/all-in-one-seo-pack-pro/aioseop_class.php | 185387 | <?php
/**
* @package All-in-One-SEO-Pack-Pro
*/
/**
* Include the module base class.
*/
require_once( 'aioseop_module_class.php' );
/**
* The main class.
*/
class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
/** The current version of the plugin. **/
var $version = AIOSEOP_VERSION;
/** Max nu... | mit |
Screeder/SAssemblies | SStandalones/SMiscs/SAntiJumpMisc/Program.cs | 5532 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using LeagueSharp.Common;
using LeagueSharp;
using SAssemblies;
using SAssemblies.Miscs;
using Menu = SAssemblies.Menu;
using System.Drawing;
namespace S... | mit |
max-gram/viewport-size | app/scripts/devtools.js | 221 | var backgroundPageConnection = chrome.runtime.connect({ name: "devtools-vs-connect"});
backgroundPageConnection.postMessage({
name: 'devtools-vs-init',
tabId: chrome.devtools.inspectedWindow.tabId
});
| mit |
roryaronson/OpenFarm | test/factories/token.rb | 61 | FactoryGirl.define do
factory :token do
user
end
end
| mit |
MarinesBG/Programming-Fundamentals | Programming-Fundamentals-Exercise/03 - Data Types and Variables - Exercise/P13-Vowel or Digit/Properties/AssemblyInfo.cs | 1407 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("P13... | mit |
ThaDafinser/Piwik-LdapConnection | API.php | 2084 | <?php
/**
* @author https://github.com/ThaDafinser
*/
namespace Piwik\Plugins\LdapConnection;
use Exception;
use Piwik\Piwik;
use Zend\Ldap\Ldap;
class API extends \Piwik\Plugin\API
{
/**
*
* @var Ldap
*/
protected $ldap;
/**
* For IDE and codecompletion
*
* @return API
... | mit |
ipfs/node-ipfs | src/cli/commands/get.js | 1874 | 'use strict'
var fs = require('fs')
const path = require('path')
const mkdirp = require('mkdirp')
const pull = require('pull-stream')
const toPull = require('stream-to-pull-stream')
function checkArgs (hash, outPath) {
// format the output directory
if (!outPath.endsWith(path.sep)) {
outPath += path.sep
}
... | mit |
yizhang7210/Acre | server/algos/euler/transformer.py | 4204 | """ This is algos.euler.transformer module.
This module is responsible for transforming raw candle data into training
samples usable to the Euler algorithm.
"""
import datetime
import decimal
from algos.euler.models import training_samples as ts
from core.models import instruments
from datasource.models import... | mit |
DrFriendless/TradeMaximizerOz | src/Cycle.java | 596 | import java.util.ArrayList;
import java.util.List;
/**
* Created by IntelliJ IDEA.
* User: john
* Date: 11/12/2010
* Time: 11:37:11 AM
* To change this template use File | Settings | File Templates.
*/
public class Cycle {
private List<Vertex> vertices;
private long cost;
Cycle(List<Vertex> vertices... | mit |
aki-russia/node | lib/translator.js | 601 | var lingo = require('lingo'),
fs = require('fs'),
join = require('path').join,
_ = require("underscore"),
conf_path = null,
translations = null;
exports.create = function(siteDir, lang_code){
conf_path = join(siteDir, 'config/locales/' + lang_code + '.json');
translations = JSON.parse(fs.readFileSync(c... | mit |
ActiveState/code | recipes/Python/576526_compare_making_filter_fun_again/recipe-576526.py | 1104 | class compare(object):
def __init__(self, function):
self.function = function
def __eq__(self, other):
def c(l, r): return l == r
return comparator(self.function, c, other)
def __ne__(self, other):
def c(l, r): return l != r
return comparator(self.function, c, other... | mit |
Burtt/IllumicatsVision | RaspberryPi/ScanForSingleTarget.py | 1995 | #! /usr/bin/env python
import numpy as np
import cv2
import visiontable
display = False
cap = cv2.VideoCapture(0)
table = visiontable.VisionTable()
lower_lim = np.array([60,60,60])
upper_lim = np.array([100,255,255])
minContourArea = 400
while(True):
# Capture frame-by-frame
ret, frame = cap.read()
# fi... | mit |
Kofel/Gutenberg | src/Gutenberg/Printable/ZPLPrintable.php | 1898 | <?php
/**
* Created by IntelliJ IDEA.
* User: kofel
* Date: 03.02.15
* Time: 10:43
*/
namespace Gutenberg\Printable;
use Gutenberg\Printable\ZPL\PreprocessorInterface;
use Gutenberg\Printable\ZPL\Replacer\GRFQrCodeReplacer;
use Gutenberg\Printable\ZPL\Replacer\VariableReplacer;
class ZPLPrintable implements Pr... | mit |
magpiemac/Your-Wardrobe-Tracker | db/migrate/20171003085925_create_wardrobe_items.rb | 196 | class CreateWardrobeItems < ActiveRecord::Migration[5.0]
def change
create_table :wardrobe_items do |t|
t.string :item
t.string :description
t.timestamps
end
end
end
| mit |
hartmannr76/EasyIoC | EasyIoC/Finders/AssemblyFinder.cs | 1080 | using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Reflection;
using Microsoft.Extensions.DependencyModel;
namespace EasyIoC.Finders {
public class AssemblyFinder {
private readonly HashSet<string> _defaultIgnoredAssemblies = new HashSet<string>() { "Micro... | mit |
suzdalnitski/Zenject | UnityProject/Assets/Plugins/Zenject/OptionalExtras/UnitTests/Editor/Factories/Bindings/TestFactoryFromResolve0.cs | 1841 | using System;
using System.Collections.Generic;
using System.Linq;
using Zenject;
using NUnit.Framework;
using ModestTree;
using Assert=ModestTree.Assert;
namespace Zenject.Tests.Bindings
{
[TestFixture]
public class TestFactoryFromResolve0 : ZenjectUnitTestFixture
{
[Test]
public void Test... | mit |
MysteryCoin/MysteryCoinHasSecrets | src/qt/locale/bitcoin_zh_TW.ts | 113338 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_TW" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Bitcoin</source>
<translation>關於位元幣</translation>
</message>
... | mit |
onzag/NotionScript | ast/statments/OPERATION/COMPARISON.js | 511 | let Statment = require('../base').Statment;
let util = require('../../util');
const EQUALITY_OPERATORS = require('../../../basics/basics').CONTENT.EQUALITY_OPERATORS;
let equalityOperatorsInverse = {};
Object.keys(EQUALITY_OPERATORS).forEach((key)=>{
if (key[0] === "."){
return;
}
let value = EQUALITY_OPERATORS[k... | mit |
welovekpop/uwave-web-welovekpop.club | es/mobile/components/RoomHistory/Row.js | 1089 | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import React from 'react';
import PropTypes from 'prop-types';
import Avatar from "@material-ui/core/es/Avatar";
import ListItem from "@material-ui/core/es/ListItem";
import ListItemAvatar from "@material-ui/core/es/ListItemAvatar";
import ListItemText from "@mater... | mit |
isuttell/ceres-framework | spec/controllers/warpRoute_spec.js | 2751 | const Promise = require('bluebird');
const wrapRoute = require('../../src/controllers/wrapRoute');
describe('wrapRoute', () => {
let ceres;
beforeEach(() => {
ceres = {
log: {
internal: {
debug() {},
},
},
};
});
it('should return a function', () => {
functio... | mit |
3zcurdia/badger | assets/badger.min.js | 52 | //= require_directory ./javascripts
//= require_self | mit |
DrLSimon/CGILabs | utils/vboindexer.cpp | 7397 | #include <vector>
#include <map>
#include <unordered_map>
#include <glm/glm.hpp>
#include "utils/vboindexer.h"
#include <string.h> // for memcmp
// Returns true iif v1 can be considered equal to v2
bool is_near(float v1, float v2){
return fabs( v1-v2 ) < 0.01f;
}
// Searches through all already-e... | mit |
brian831/Cashoo | Brian831/src/CashooBundle/Resources/Interfaces/HandlerInterface.php | 330 | <?php
namespace Brian831\CashooBundle\Resources\Interfaces;
interface HandlerInterface {
public function exists($index);
public function getCreatedAt($index);
public function getContent($index);
public function setContent($index,$content);
public function delete($inde... | mit |
rossipedia/toml-net | toml-net/Parser/KeyValue.cs | 603 | namespace Toml.Parser
{
internal class KeyValue
{
private readonly string key;
private readonly object value;
/// <summary>
/// Initializes a new instance of the <see cref="T:System.Object"/> class.
/// </summary>
public KeyValue(string key, object v... | mit |
dotnet/roslyn-analyzers | src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Runtime/DoNotPassLiteralsAsLocalizedParameters.cs | 19552 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Linq;
using System.Text;
using Analyzer.Utilities;
... | mit |
sitepoint/the86-client | lib/the86-client/user.rb | 280 | module The86
module Client
class User < Resource
attribute :id, Integer
attribute :name, String
attribute :created_at, DateTime
attribute :updated_at, DateTime
has_many :access_tokens, ->{ AccessToken }
path "users"
end
end
end
| mit |
sergiojaviermoyano/cuyomateriales | application/views/login.php | 2629 | <body class="login-page">
<div class="login-box">
<div class="login-logo">
<a href="../../index2.html"><?php echo Globals::getTitle();?><b><?php echo Globals::getTitle2();?></b></a>
</div><!-- /.login-logo -->
<div class="login-box-body">
<p class="login-box-msg">Ingreso</p>
... | mit |
RonenNess/GeonBit.UI | GeonBit.UI/Source/Entities/VerticalScrollbar.cs | 9246 | #region File Description
//-----------------------------------------------------------------------------
// Vertical scrollbar is used internally to scroll through lists etc.
//
// Author: Ronen Ness.
// Since: 2016.
//-----------------------------------------------------------------------------
#endregion
using Micro... | mit |
solo123/travel_admin | app/models/pay_credit_card.rb | 309 | class PayCreditCard < ActiveRecord::Base
belongs_to :payment
belongs_to :account
belongs_to :user_info
belongs_to :order
has_one :telephone, :as => :tel_number, :dependent => :destroy
has_one :address, :as => :address_data, :dependent => :destroy
default_scope {order(id: :desc)}
end
| mit |
mpuncel/tty_helper | lib/tty_helper/version.rb | 41 | module TtyHelper
VERSION = "0.0.1"
end
| mit |
lorandszakacs/UPT-Projects | PRC/Java RMI - Peer to Peer Chat/CRAT/src/crat/client/Network.java | 11156 | package crat.client;
import java.net.UnknownHostException;
import java.rmi.AccessException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.util.concurrent.CopyOnWriteArraySet;
import java.util.concurrent.atomic.AtomicBoolean;
import c... | mit |
Azure/azure-mobile-apps | sdk/dotnet/test/Microsoft.Datasync.Client.Test/Http/Precondition.Test.cs | 4884 | // Copyright (c) Microsoft Corporation. All Rights Reserved.
// Licensed under the MIT License.
using Datasync.Common.Test;
using System;
using System.Diagnostics.CodeAnalysis;
using Xunit;
namespace Microsoft.Datasync.Client.Test.Http
{
[ExcludeFromCodeCoverage]
public class Precondition_Test : BaseTest
... | mit |
tojibon/simplipro | db/migrate/20140706053122_add_is_client_to_admin_user.rb | 128 | class AddIsClientToAdminUser < ActiveRecord::Migration
def change
add_column :admin_users, :is_client, :boolean
end
end
| mit |
vitto/dustman | lib/message.js | 3612 |
var message = (function(){
var colour = require('colour');
// var sleep = require('sleep').sleep;
colour.setTheme({
error: 'red bold',
event: 'magenta',
intro: 'rainbow',
notice: 'yellow',
speak: 'white',
success: 'green',
task: 'white',
verbose: 'blue',
warning: 'yellow bold... | mit |
kbussell/django-auditlog | src/auditlog/migrations/0002_auto_support_long_primary_keys.py | 411 | # -*- coding: utf-8 -*-
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('auditlog', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='logentry',
name='object_id',
field=models.BigInte... | mit |
agrc/AmdButler | amdbutler.py | 7087 | import sublime
import sublime_plugin
import os
from . import buffer_parser
from . import crawler
from . import zipper
PATH_SETTING_NAME = 'amd_butler_packages_base_path'
PARAMS_ONE_LINE_SETTING_NAME = 'amd_butler_params_one_line'
SETTINGS_FILE_NAME = 'AmdButler.sublime-settings'
def _all_text(view):
return view.... | mit |
ignaciocases/hermeneumatics | node_modules/scala-node/main/target/streams/compile/externalDependencyClasspath/$global/package-js/extracted-jars/scalajs-library_2.10-0.4.0.jar--29fb2f8b/scala/runtime/DoubleRef.js | 2533 | /** @constructor */
ScalaJS.c.scala_runtime_DoubleRef = (function() {
ScalaJS.c.java_lang_Object.call(this);
this.elem$1 = 0.0
});
ScalaJS.c.scala_runtime_DoubleRef.prototype = new ScalaJS.inheritable.java_lang_Object();
ScalaJS.c.scala_runtime_DoubleRef.prototype.constructor = ScalaJS.c.scala_runtime_DoubleRef;
Sc... | mit |
chloereimer/smartcards | spec/models/card_spec.rb | 419 | describe Card do
let( :card ) { create :card }
it "has a valid factory" do
expect( card ).to be_valid
end
it "is invalid without a deck" do
card.deck = nil
expect( card ).to_not be_valid
end
it "is invalid without a front" do
card.front = nil
expect( card ).to_not be_valid
end
i... | mit |
restify-ts/core | packages/core/src/utils/throw-providers-collision-error.ts | 960 | import { Scope } from '../types/mix';
export function throwProvidersCollisionError(
moduleName: string,
duplicates: any[],
modulesNames: string[] = [],
scope?: Scope
) {
const namesArr = duplicates.map((p) => p.name || p);
const namesStr = namesArr.join(', ');
let fromModules = 'from several modules ';
... | mit |
CS2103JAN2017-T11-B4/main | src/main/java/seedu/task/model/task/DueDate.java | 1115 | //@@author A0164103W
package seedu.task.model.task;
import java.util.Calendar;
import seedu.task.commons.exceptions.IllegalValueException;
import seedu.task.model.util.DateParser;
public class DueDate {
/**
* Represents a Task's due date in the task list.
* Guarantees: immutable; is valid as declared in {@link #is... | mit |
portchris/NaturalRemedyCompany | src/dev/tests/functional/tests/app/Mage/CatalogRule/Test/Constraint/AssertCatalogPriceRuleAppliedInCatalogPage.php | 3788 | <?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | mit |
IvanJobs/play | unix-programming/getenv.cpp | 154 | #include <cstdio>
#include <cstdlib>
int main() {
char *p = NULL;
if ((p = getenv("OK"))) {
printf("OK=%s\n", p);
}
return 0;
}
| mit |
prebm/edinost-skofice | openlayers/lib/OpenLayers/Renderer/VML.js | 46380 | /* Copyright (c) 2006-2011 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the Clear BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Renderer/Elements.js
*/
/**
* Class: O... | mit |
xto3na/chat | Chat/Areas/HelpPage/SampleGeneration/ObjectGenerator.cs | 19486 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
using System.Reflection;
namespace Chat.Areas.HelpPage
{
/// <summary>
/// This class will create an object of a given type and populate it with sample... | mit |
ihidalgo/uip-prog3 | Parciales/practicas/kivy-designer-master/designer/uix/contextual.py | 22345 | from kivy.uix.tabbedpanel import TabbedPanel, TabbedPanelItem,\
TabbedPanelHeader, TabbedPanelContent
from kivy.properties import ObjectProperty, StringProperty,\
BooleanProperty, NumericProperty
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.widget import Widg... | mit |
iMartinezMateu/gamecraft | gamecraft-slack-notification-manager/src/main/java/com/gamecraft/service/dto/SlackMessage.java | 995 | package com.gamecraft.service.dto;
import java.util.Arrays;
public class SlackMessage {
private String[] channels;
private String[] users;
private String message;
public SlackMessage() {
}
public String[] getChannels() {
return channels;
}
public void setChannels(String[] c... | mit |
cujo/content | src/Cache/Cache.php | 1453 | <?php
namespace Cujo\Content\Cache;
use Cujo\Content\Content;
use Cujo\Content\Proxy;
abstract class Cache extends Proxy
{
protected $prefix;
protected $ttl;
public function __construct($content, $prefix = null, $ttl = null)
{
parent::__construct($content);
$this->prefix = $prefix;
... | mit |
open-city/school-admissions | api/__init__.py | 265 | from flask import Flask
from api.endpoints import endpoints
from api.views import views
def create_app():
app = Flask(__name__)
app.config.from_object('api.app_config')
app.register_blueprint(endpoints)
app.register_blueprint(views)
return app
| mit |
php-api-clients/github | src/Resource/Repository/Milestone.php | 2011 | <?php declare(strict_types=1);
namespace ApiClients\Client\Github\Resource\Repository;
use ApiClients\Foundation\Hydrator\Annotation\EmptyResource;
use ApiClients\Foundation\Hydrator\Annotation\Nested;
use ApiClients\Foundation\Resource\AbstractResource;
/**
* @Nested(
* creator="User"
* )
* @EmptyResource("... | mit |
szhnet/kcp-netty | kcp-example/src/main/java/io/jpower/kcp/example/echo/EchoServerHandler.java | 989 | package io.jpower.kcp.example.echo;
import io.jpower.kcp.netty.UkcpChannel;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
/**
* Handler implementation for the echo server.
*
* @author <a href="mailto:szhnet@gmail.com">szh</a>
*/
public class EchoServerHandler... | mit |
prack/php-rb | test/unit/io_file_test.php | 2011 | <?php
class Prb_IO_FileTest extends PHPUnit_Framework_TestCase
{
/**
* It should indicate writability correctly
* @author Joshua Morris
* @test
*/
public function It_should_indicate_writability_correctly()
{
$filepath = Prb_IO_Tempfile::generatePath();
$file = Prb_IO::withFile( $filepath, Prb_IO_Fi... | mit |
dmpayton/django-flanker | tests/models.py | 272 | from django.db import models
from django_flanker.models import EmailField
class Person(models.Model):
name = models.CharField(max_length=100)
email = EmailField(max_length=254)
def __unicode__(self):
return '{0} <{1}>'.format(self.name, self.email)
| mit |
Olyvko/oxrom | application/models/oxfilecollector.php | 4094 | <?php
/**
* This file is part of OXID eShop Community Edition.
*
* OXID eShop Community Edition is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any ... | mit |
dmincu/IOC | new_php/closure-library/closure/goog/testing/fs/file.js | 1639 | // Copyright 2011 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
//
// Unl... | mit |
BookingBug/bookingbug_yellowfin | db/migrate/20141110144754_create_bookingbug_yellowfin_booking_details.rb | 1039 | class CreateBookingbugYellowfinBookingDetails < ActiveRecord::Migration
def change
create_table :bookingbug_yellowfin_booking_details do |t|
t.integer :booking_id
t.integer :slot_id
t.string :company_id
t.string :booking_created_at
t.string :yf_format_booking_created_at
t.integ... | mit |
smiffytech/raspidev-public | software/i2cinit.py | 246 | #!/usr/bin/python
import smbus
bus = smbus.SMBus(1)
# Setup I2C bus multiplexer (address: 0x70)
# 0xx - no channel selected
# 100 - channel 0 selected
# 101 - channel 1 selected
# 11x - no channel selected
bus.write_byte_data(0x70, 0, 0x04)
| mit |
DonJayamanne/pythonVSCode | src/client/interpreter/configuration/interpreterSelector/commands/resetInterpreter.ts | 1594 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { inject, injectable } from 'inversify';
import { IApplicationShell, ICommandManager, IWorkspaceService } from '../../../../common/application/types';
import { Commands } from '../../../../commo... | mit |
aneeshdash/library-app | app/views/user/contacts.blade.php | 4002 | @extends('user.master')
@section('title')
Library | Contacts
@endsection
@section('main_content')
<div class=row">
<div class="col-lg-9">
<div class="showback">
<h3><i class="fa fa-angle-right"></i> Contact Librarian</h3><br><br>
<h4><i class="fa fa-user"><... | mit |
harrystech/hyppo-worker | worker/src/main/scala/com/harrys/hyppo/HyppoWorker.scala | 3342 | package com.harrys.hyppo
import javax.inject.{Inject, Singleton}
import akka.actor._
import akka.pattern.gracefulStop
import com.codahale.metrics.MetricRegistry
import com.google.inject.{Guice, Injector, Provider}
import com.harrys.hyppo.config.{HyppoWorkerModule, WorkerConfig}
import com.harrys.hyppo.util.ConfigUtil... | mit |
ollyau/MDLXChecker | MDLXChecker/Program.cs | 6235 | using iniLib;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace MDLXChecker {
class Program {
static void Main(string[] args) {
Console.WriteLine(string.Format("MDLX Checker by Orion Lyau\r\nVersion: {0}\r\n", System.Reflection.Ass... | mit |
xhhjin/heroku-ghost | node_modules/sqlite3/src/database.cc | 20171 | #include <string.h>
#include <node.h>
#include "macros.h"
#include "database.h"
#include "statement.h"
using namespace node_sqlite3;
Persistent<FunctionTemplate> Database::constructor_template;
void Database::Init(Handle<Object> target) {
HandleScope scope;
Local<FunctionTemplate> t = Functio... | mit |
XcoreCMS/InlineEditing | client-side/gulpfile.js | 669 | var gulp = require('gulp');
var browserify = require('browserify');
var tsify = require('tsify');
var source = require('vinyl-source-stream')
var sass = require('gulp-sass');
gulp.task('ts', function () {
var bundleStream = browserify('src/ts/inline.ts')
.plugin(tsify)
.bundle()
.on('error'... | mit |
arkhitech/redmine_sencha_app | touch/src/draw/gradient/Radial.js | 3481 | /**
* Radial gradient.
*
* @example preview miniphone
* var component = new Ext.draw.Component({
* items: [{
* type: 'circle',
* cx: 50,
* cy: 50,
* r: 100,
* fillStyle: {
* type: 'radial',
* start: {
* x: 0,
* ... | mit |
fsek/web | spec/services/calendar_service_spec.rb | 3198 | require 'rails_helper'
RSpec.describe CalendarService do
describe 'set all_day' do
it 'sets date if all_day' do
events = []
events << build_stubbed(:event, :timestamps, all_day: true,
title: 'Hela dagen',
... | mit |
relik/Nuff.js | nuff/intro.js | 297 | /**
* @desc Nuff.js is a simple Model Presenter framework to structure your JS code
* @version 0.1.0
* @author Jérémie Dubuis jeremie.dubuis@gmail.com
* @license The MIT License (MIT)
*/
var Nuff = function() {
var Nuff = {
models: [],
presenterInstances: []
};
| mit |
ada/ws | server/client/script/graph.js | 2113 | app.controller("graph", ['$scope','Restangular', '$location', function($scope, Restangular, $location){
angular.element(document).ready(function () {
});
$scope.$on('$routeUpdate', function(){
$scope.newSearch();
});
$scope.searchOptions = $location.search();
$scope.newSearch = function(){
$scope.error =... | mit |
GeekAb/Crawlers | csvcreators/las.php | 9830 | <?php
// Include config and initiate
include_once __DIR__ . '/../scripts/config/default_config.php';
include_once __DIR__ . '/../scripts/config/database.php';
include_once __DIR__ . '/../scripts/config/log.php';
include_once __DIR__ . '/common.php';
include_once __DIR__ . '/getCategoryStr.php';
// Get Database
$db =... | mit |
marcovisona/multiStepForm | page3.php | 145 | <?php
require_once 'multiStepForm.php';
setCurrentStepIndex(2);
if (!checkCorrectStep()) {
redirect(firstFormStep());
}
?>
<h3>Fine!!</h3> | mit |
kore52/FutureSight | FutureSight/lib/MTGSource.cs | 495 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FutureSight.lib
{
public class MTGSource : MTGObject
{
public MTGPlayer Controller { get; set; }
public MTGSource() {}
public MTGSource(MTGPlayer controller... | mit |
saimasarifa/votingsystem1 | app/Voter.php | 132 | <?php namespace App;
use Illuminate\Database\Eloquent\Model;
class Voter extends Model {
protected $guarded = [];
//
}
| mit |
finalist736/seabotserver | service/router/router.go | 1708 | package router
import (
"fmt"
"runtime"
"github.com/finalist736/seabotserver"
"github.com/finalist736/seabotserver/gameplay/battle"
"github.com/finalist736/seabotserver/gameplay/queue"
"github.com/finalist736/seabotserver/storage/database/dbsql"
"github.com/finalist736/seabotserver/tcpserver/bots/aibot"
)
fun... | mit |
CjHare/systematic-trading | systematic-trading-backtest-output-elastic/src/test/java/com/systematic/trading/backtest/output/elastic/model/index/ElasticNetworthIndexTest.java | 2771 | /**
* Copyright (c) 2015-2018, CJ Hare 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 conditions
* a... | mit |
goodwinxp/Yorozuya | library/ATF/$C4660CC06E52BF36695D340908ABB2B1.hpp | 274 | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
enum $C4660CC06E52BF36695D340908ABB2B1
{
exchange_zone = 0x18,
};
END_ATF_NAMESPACE
| mit |
crmis/weddings | app/controllers/extras_controller.rb | 1213 | # @author Stacey Rees <https://github.com/staceysmells>
class ExtrasController < ApplicationController
# @see def resource_not_found
around_filter :resource_not_found
before_action :set_extra, only: [:show, :edit, :update, :destroy]
def index
@extras = Extra.all
end
def show
end
def new
@extr... | mit |
matmello/smartedu | index.php | 34654 | <!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="">
<title>Agency - Start Boots... | mit |
lordmilko/PrtgAPI | src/PrtgAPI/Objects/EventObjects/SensorHistoryReportItem.cs | 2537 | using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
namespace PrtgAPI
{
/// <summary>
/// Represents a historical occurrence of a <see cref="Sensor"/> being in a particular <see cref="PrtgAPI.Status"/>.
/// </summary>
[DebuggerDisplay("SensorId = ... | mit |
polysquare/jobstamps | test/test_jobstamps.py | 17647 | # /test/test_jobstamps.py
#
# Unit tests for the jobstamps module.
#
# See /LICENCE.md for Copyright information
"""Unit tests for the jobstamps module."""
import os
import shutil
import time
from test import testutil
from jobstamps import jobstamp
from mock import Mock, call
from nose_parameterized import param... | mit |
boomcms/boom-robotstxt | src/BoomCMS/ServiceProviders/RobotsServiceProvider.php | 880 | <?php
namespace BoomCMS\ServiceProviders;
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
class RobotsServiceProvider extends BaseServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
$this->loadViewsFrom(__DIR_... | mit |