repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
lambdal/envois | envois/__init__.py | 313 | #!/usr/bin/env python
"""Automated invoicing by Lambda Labs, Inc."""
__version__ = "0.0.2"
__author__ = [
"Stephen A. Balaban <stephen@stephenbalaban.com>",
"Mek <michael.karpeles@gmail.com>",
"Roy I. Blankman <riblankman@gmail.com>"
]
__license__ = "public domain"
__contributors__ = "see AUTHORS"
| mit |
globaltoken/globaltoken | src/qt/bitcoinstrings.cpp | 31091 |
#include <QtGlobal>
// Automatically generated by extract_strings_qt.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED *bitcoin_strings[] = {
QT_TRANSLATE_NOOP("bitcoin-core", "Bitcoin Core"),
QT_TRANSLATE_NOOP("bitcoin-core", "Globaltoken Core"),
QT_TRANS... | mit |
NetOfficeFw/NetOffice | Source/MSProject/Enums/PjCalendarBarType.cs | 941 | using System;
using NetOffice;
using NetOffice.Attributes;
namespace NetOffice.MSProjectApi.Enums
{
/// <summary>
/// SupportByVersion MSProject 11, 12, 14
/// </summary>
///<remarks> MSDN Online Documentation: http://msdn.microsoft.com/en-us/en-us/library/office/ff864558(v=office.14).aspx </remarks>
[Support... | mit |
dalevross/scrabtourneyasst | gameresults_bingos.php | 5756 | <?php
include_once 'config.php';
require_once 'XML/Unserializer.php';
if (isset($_GET["gid"]) && isset($_GET["game"]) )
{
$gid=$_GET["gid"];
$game=$_GET["game"];
if(filter_var($gid,FILTER_VALIDATE_REGEXP,array("options"=>array("regexp"=>"/^\d+$/")))
&&
filter_var($game,FILTER_VALIDATE_REGEXP,array("options"... | mit |
postmanlabs/httpsnippet | src/targets/shell/curl.js | 2129 | /**
* @description
* HTTP code snippet generator for the Shell using cURL.
*
* @author
* @AhmadNassri
*
* for any questions or issues regarding the generated code snippet, please open an issue mentioning the author.
*/
'use strict'
var util = require('util')
var helpers = require('../../helpers/shell')
var Co... | mit |
ic-labs/django-icekit | glamkit_collections/contrib/work_creator/plugins/film/api.py | 1353 | from rest_framework import serializers
from rest_framework import routers
from icekit.api.base_views import ModelViewSet
from ...api_serializers import MovingImageWork
from .models import Film as FilmModel, Format as FormatModel
VIEWNAME = 'api:film-api'
class Format(serializers.ModelSerializer):
class Meta:
... | mit |
onk/activerecord-quiet_schema_version | lib/activerecord/quiet_schema_version/schema_dumper/ar_5_0.rb | 297 | module Activerecord
module QuietSchemaVersion
module SchemaDumper
module AR50
def initialize(connection, options = {})
@connection = connection
@version = nil # <- monkeypatched this line
@options = options
end
end
end
end
end
| mit |
QuantumTechDevStudio/NewGameResRepository | remote_acess/project/Nameisundef/core/src/com/quantenpfad/mygame/controller/MenuController.java | 2627 | package com.quantenpfad.mygame.controller;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.InputProcessor;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.math.Rectangle;
import com.quantenpfad.mygame.MyGame;
import com.quantenpfad.mygame.Screens.MainMenuScreen;
import com.quantenpfad.mygame.Scree... | mit |
buermann/introspective_grape | spec/dummy/config/initializers/paperclip_adapter.rb | 374 | module Paperclip
class HashUploadedFileAdapter < AbstractAdapter
def initialize(target, args)
@tempfile, @content_type, @size = target['tempfile'], target['type'], target['tempfile'].size
@original_filename = target['filename']
end
end
end
#Paperclip.io_adapters.register Paperclip::HashUploade... | mit |
sinfin/folio | app/cells/folio/console/state_cell.rb | 3312 | # frozen_string_literal: true
class Folio::Console::StateCell < Folio::ConsoleCell
include SimpleForm::ActionViewExtensions::FormHelper
class_name "f-c-state", :small, :remote
def show
render if model.aasm_state.present?
end
def state
@state ||= model.aasm.state_object_for_name(model.aasm_state.to... | mit |
zerbielli/avntSoldi | src/main/java/com/avnt/soldi/service/DiagnosticService.java | 1746 | package com.avnt.soldi.service;
import com.avnt.soldi.model.cheque.Diagnostic;
import com.avnt.soldi.model.repositories.DiagnosticRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Service;
import or... | mit |
eladnoor/equilibrator | pathway/__init__.py | 404 | from io import StringIO
from django.utils.text import slugify
from pathway.bounds import Bounds
from pathway.concs import ConcentrationConverter
from pathway.thermo_models import PathwayThermoModel
from pathway.max_min_driving_force import \
PathwayParseError, InvalidReactionFormula, UnbalancedReaction, \
Vio... | mit |
LeadPipeSoftware/LeadPipe.Net | src/LeadPipe.Net.Validation/PrintableCharacterAttribute.cs | 3077 | // --------------------------------------------------------------------------------------------------------------------
// Copyright (c) Lead Pipe Software. All rights reserved.
// Licensed under the MIT License. Please see the LICENSE file in the project root for full license information.
// -------------------------... | mit |
codingsince1985/geo-golang | mapquest/open/geocoder.go | 2240 | // Package open is a geo-golang based MapRequest Open geocode/reverse geocode client
package open
import (
"fmt"
"strings"
"github.com/codingsince1985/geo-golang"
)
type (
baseURL string
geocodeResponse struct {
Results []struct {
Locations []struct {
LatLng struct {
Lat float64
Lng f... | mit |
platypii/BASElineFlightComputer | app/src/main/java/com/platypii/baseline/views/laser/LaserActivity.java | 5585 | package com.platypii.baseline.views.laser;
import com.platypii.baseline.R;
import com.platypii.baseline.Services;
import com.platypii.baseline.databinding.ActivityLaserBinding;
import com.platypii.baseline.events.ChartFocusEvent;
import com.platypii.baseline.events.ProfileLayerEvent;
import com.platypii.baseline.laser... | mit |
angular/angular-cli-stress-test | src/app/components/comp-1479/comp-1479.component.spec.ts | 847 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Comp1479Component } from './comp... | mit |
AeonLucid/CHIP-8_Emulator | CHIP-8_Emulator/Chip/ChipConstants.cs | 903 | namespace CHIP_8_Emulator.Chip
{
internal static class ChipConstants
{
public static readonly byte[] Fontset = {
0xF0, 0x90, 0x90, 0x90, 0xF0, // 0
0x20, 0x60, 0x20, 0x20, 0x70, // 1
0xF0, 0x10, 0xF0, 0x80, 0xF0, // 2
0xF0, 0x10, 0xF0, 0x10, 0xF0, // 3
... | mit |
ruby-bench/ruby-bench-suite | bundler/benchmarks/bm_bundle_outdated_rails.rb | 452 | require_relative 'support/benchmark_bundler.rb'
require 'bundler/cli'
Dir.mktmpdir do |dir|
Dir.chdir(dir) do
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', '5.0.0.rc1'
gem 'nokogiri', '1.6.7.0'
GEMFILE
system("bundle install --quiet")
system("bundle o... | mit |
JaegerNote/JaegerNote | src/qt/locale/bitcoin_eu_ES.ts | 100113 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="eu_ES" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About JaegerNote</source>
<translation>JaegerNote-i buruz</translation>... | mit |
or9/echelon-polymer | gulpfile.js | 2370 | const gulp = require("gulp");
const jshint = require("gulp-jshint");
const stylish = require("jshint-stylish");
const uglify = require("gulp-uglify");
const concat = require("gulp-concat");
const serve = require("gulp-serve");
const karma = require("gulp-karma");
const path = {
in: "app",
out: "dist",
test: "test",
... | mit |
ponydevs/MLPVC-RR | app/TMDBHelper.php | 3044 | <?php
namespace App;
use App\Models\Show;
use Doctrine\Common\Cache\RedisCache;
use RuntimeException;
use Tmdb\ApiToken;
use Tmdb\Client;
use Tmdb\Exception\TmdbApiException;
use Tmdb\Helper\ImageHelper;
use Tmdb\Repository\ConfigurationRepository;
class TMDBHelper {
public const SHOW_NAME = 'My Little Pony: Frien... | mit |
sbuberl/fSQL | src/Queries/AlterTableActions/DropIdentity.php | 860 | <?php
namespace FSQL\Queries\AlterTableActions;
use FSQL\Environment;
class DropIdentity extends BaseAction
{
private $tableName;
private $columnName;
public function __construct(Environment $environment, array $tableName, $columnName)
{
parent:: __construct($environment);
$this->ta... | mit |
mrpotatoes/computer-science-in-javascript | src/streams/stream-handbook/example/writable.js | 407 | var Stream = require('stream');
var s = new Stream;
s.writable = true;
var bytes = 0;
s.write = function (buf) {
bytes += buf.length;
};
s.end = function (buf) {
if (arguments.length) s.write(buf);
s.writable = false;
console.log(bytes + ' bytes written');
};
s.destroy = function () {
s.wri... | mit |
conveyal/static-site-debugger | index.js | 53 | require('babel-core/register')
require('./index-es6') | mit |
baraabourghli/MarketplaceInterview | Marketplace.Interview/Marketplace.Interview.Business/Shipping/BundledPerRegionShipping.cs | 286 | using System.Collections.Generic;
using System.Linq;
using Marketplace.Interview.Business.Basket;
namespace Marketplace.Interview.Business.Shipping
{
public class BundledPerRegionShipping : BasePerRegionShipping
{
public static decimal DiscountAmount = 0.5M;
}
} | mit |
tsnow/ridecharge-rubocop | spec/rubocop/cop/lint/ambiguous_operator_spec.rb | 2773 | # encoding: utf-8
require 'spec_helper'
describe Rubocop::Cop::Lint::AmbiguousOperator do
subject(:cop) { described_class.new }
before do
inspect_source(cop, source)
end
context 'with a splat operator in the first argument' do
context 'without parentheses' do
context 'without whitespaces on th... | mit |
trenoncourt/generic-net | sample/ApiTest/Data/Tables/TableBase.cs | 110 | namespace ApiTest.Data.Tables
{
public interface ITable
{
string TableName { get; }
}
} | mit |
james-jenkinson/tango-atlas | src/test/components/fom/LinkButton.test.tsx | 233 | import { shallow } from "enzyme";
import * as React from "react";
import LinkButton from "../../../components/form/LinkButton";
describe("LinkButton", () => {
it("should render", () => {
shallow(<LinkButton to=""/>);
});
}); | mit |
no22/PicowaCore | _pico/libs/Pw/Wrapper/Post.php | 202 | <?php
/**
* Picowa $_POST wrapper
*
* @package Picowa
* @since 2010-04-06
*/
class Pw_Wrapper_Post extends Pw_Wrapper_Array
{
public function __construct()
{
$this->subject = &$_POST;
}
}
| mit |
peasy/Samples | Orders.com.BLL/Services/IProductService.cs | 270 | using System.Collections.Generic;
using Orders.com.BLL.Domain;
using Peasy;
namespace Orders.com.BLL.Services
{
public interface IProductService : IService<Product, long>
{
ICommand<IEnumerable<Product>> GetByCategoryCommand(long categoryID);
}
} | mit |
fellix/collect4j | src/main/java/com/rollingwithcode/collect/CompareHandler.java | 2221 | /**
*
*/
package com.rollingwithcode.collect;
import java.util.Collection;
import com.rollingwithcode.collect.comparator.CollectComparator;
import com.rollingwithcode.collect.comparator.EqualsComparator;
import com.rollingwithcode.collect.comparator.LikeComparator;
import com.rollingwithcode.collect.comparator.Onl... | mit |
flavour/cedarbluff | controllers/inv.py | 47642 | # -*- coding: utf-8 -*-
"""
Inventory Management
A module to record inventories of items at a locations (sites),
including Warehouses, Offices, Shelters & Hospitals
"""
module = request.controller
resourcename = request.function
if not deployment_settings.has_module(module):
raise HTTP(404, body="Mo... | mit |
spanner/searchkick | lib/searchkick/process_batch_job.rb | 1103 | module Searchkick
class ProcessBatchJob < ActiveJob::Base
queue_as { Searchkick.queue_name }
def perform(class_name:, record_ids:)
# separate routing from id
routing = Hash[record_ids.map { |r| r.split(/(?<!\|)\|(?!\|)/, 2).map { |v| v.gsub("||", "|") } }]
record_ids = routing.keys
k... | mit |
adam-boduch/coyote | config/logging.php | 2433 | <?php
use Monolog\Handler\StreamHandler;
use Monolog\Handler\SyslogUdpHandler;
return [
/*
|--------------------------------------------------------------------------
| Default Log Channel
|--------------------------------------------------------------------------
|
| This option defines the ... | mit |
VenelinGP/NSQuiz | NSQuiz/app/views/quiz/solve/answers-view-model.js | 328 | 'use strict';
var Observable = require("data/observable").Observable;
function Answer() {
var answerModel = new Observable({
text: text,
isCorrect: isCorrect
});
answerModel.getCorrect = function() {
answerModel.get({value, value});
};
return answerModel;
}
module.exports =... | mit |
adl1995/zoho-portal | resources/views/admin/client-create.blade.php | 7239 | @extends('layouts.admin')
@section('content')
<div class="content-wrap">
<div class="main">
<div class="container-fluid">
<div class="row header-row">
<div class="col-xs-12 p-0">
<div class="page-header">
<o... | mit |
unfetter-discover/unfetter-ui | src/app/events/filters/filters.component.spec.ts | 719 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FiltersComponent } from './filters.component';
import { MatCardModule } from '@angular/material';
describe('FiltersComponent', () => {
let component: FiltersComponent;
let fixture: ComponentFixture<FiltersComponent>;
beforeEach(... | mit |
culturekings/shopify-app-auth-laravel | src/Models/ShopifyScriptTag.php | 488 | <?php
namespace CultureKings\ShopifyAuth\Models;
use Illuminate\Database\Eloquent\Model;
class ShopifyScriptTag extends Model
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'shopify_script_tags';
/**
* The attributes that aren't mass assignab... | mit |
joaosoft/go-manager | manager_rabbit_consumer.go | 1070 | package manager
import (
"github.com/streadway/amqp"
"sync"
)
type RabbitmqHandler func(message amqp.Delivery) error
// IRabbitmqConsumer ...
type IRabbitmqConsumer interface {
Start(wg *sync.WaitGroup) error
Stop(wg *sync.WaitGroup) error
Started() bool
}
// AddRabbitmqConsumer ...
func (manager *Manager) Add... | mit |
yangboz/bugfree-bugfixes | CocosJSGame/frameworks/js-bindings/cocos2d-x/plugin/jsbindings/script/jsb_pluginx.js | 7645 | var plugin = plugin || {PluginParam: {}, ProtocolAds: {}, ProtocolIAP: {}, ProtocolShare: {}, ProtocolSocial: {}, ProtocolUser: {}};
plugin.PluginParam = plugin.PluginParam || {};
plugin.PluginParam.ParamType = {};
plugin.PluginParam.ParamType.TypeInt = 1;
plugin.PluginParam.ParamType.TypeFloat = 2;
plugin.PluginParam... | mit |
struzik-vladislav/epp-client | src/Request/Domain/Check.php | 2214 | <?php
namespace Struzik\EPPClient\Request\Domain;
use Struzik\EPPClient\Request\AbstractRequest;
use Struzik\EPPClient\Response\Domain\Check as CheckResponse;
use Struzik\EPPClient\Node\Common\Check as CheckNode;
use Struzik\EPPClient\Node\Common\Command;
use Struzik\EPPClient\Node\Common\TransactionId;
use Struzik\E... | mit |
ttruongdc/py-Learning | Cuno.py | 1099 |
def compute(x,y): # Initializing a function to compute average
average = x / y # Average = total divide for number of counts
return ("The total is: %f , the count is: %d and the average is: %f") % (sum, count, average) # Return a value of total, count and average
count = 0 # Initialize count = 0
sum = 0 # Initial... | mit |
AckerApple/ack-node | js/modules/reqres/res.js | 10343 | "use strict";
exports.__esModule = true;
var ack = require('../../index.js').ackX, reqrtn = require('./req').reqrtn, cookies = require('cookies'), etag = require('etag'), fs = require('fs'), isProductionMode = process.env.NODE_ENV && process.env.NODE_ENV.toLowerCase() == 'production';
//inbound request response process... | mit |
engineyard/engineyard-serverside | spec/engineyard-serverside/callbacks/executor/executable_spec.rb | 12320 | require 'spec_helper'
require 'escape'
require 'result'
require 'engineyard-serverside/callbacks/executor/executable'
module EY
module Serverside
module Callbacks
module Executor
describe Executable do
let(:config) {Object.new}
let(:shell) {Object.new}
let(:paths) {... | mit |
kravigupta/mvn-service-builder-sample | mvn-service-builder-sample-portlet-service/src/main/java/me/rkg/plugins/service/FooLocalService.java | 10919 | package me.rkg.plugins.service;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.transaction.Isolation;
import com.liferay.portal.kernel.transaction.Propagation;
import com.liferay.portal.kernel.transaction.Transact... | mit |
ronaldlunaramos/webstore | app/cache/dev/twig/99/95/145d69e0f5477ecd10d30ca4434e.php | 4878 | <?php
/* AcmeDemoBundle::layout.html.twig */
class __TwigTemplate_9995145d69e0f5477ecd10d30ca4434e extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTemplate("TwigBundle::layout.html.twig");
$this->b... | mit |
pazguille/scrollshit | browserify.js | 376 | 'use strict';
var fs = require('fs');
var browserify = require('browserify');
if (!fs.existsSync('./dist')) {
fs.mkdirSync('./dist');
}
browserify({'debug': true, 'standalone': 'scrollshit'})
.require('./index.js', {'entry': true})
.bundle()
.on('error', function(err) { console.log('Error : ' + err.message);... | mit |
alpendergrass/montanacycling-racing_on_rails | vendor/gems/selenium-client-1.2.16/lib/selenium/client/extensions.rb | 4375 | module Selenium
module Client
# Convenience methods not explicitely part of the protocol
module Extensions
# These for all Ajax request to finish (Only works if you are using prototype, the wait in happenning browser side)
#
# See http://davidvollbracht.com/2008/6/4/30-days-of-tech-day-3-wai... | mit |
npnelson/NETToolBox | src/NetToolBox.Core/TransientException.cs | 538 | using System;
using System.Collections.Generic;
using System.Text;
namespace NetToolBox.Core
{
/// <summary>
/// Use this exception class or one inherited from it to indicate the exception is likely transient (ie network down,etc)
/// </summary>
public class TransientException:Exception
{
... | mit |
jldec/pub-pkg-editor | client/editor-ui.js | 11477 | /*
* editor-ui.js
* browserify entry point for pub-pkg-editor user interface
*
* - depends on jquery
* - uses iframe containing website layout for preview with 2 editing modes
* - edit-mode captures clicks purely for selecting areas of content to edit
* - nav-mode makes the iframe work just like a normal website... | mit |
codenautas/qa-control-server | test/test-get-info.js | 5425 | "use strict";
var expect = require('expect.js');
var qacServices = require('../lib/qac-services.js');
var helper=require('../test/test-helper.js');
var _ = require('lodash');
var sinon = require('sinon');
var fs = require('fs-extra');
var Path = require('path');
describe('qac-services information functions', ... | mit |
T5750/book-repositories | SpringCloudInAction/ribbon-consumer/src/main/java/com/evangel/web/HelloService.java | 2678 | package com.evangel.web;
import java.net.URI;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.cli... | mit |
kacpak/rpg-helper | src/app/api/session.api.js | 1883 | import Vue from 'vue';
import store from '../store';
export default {
fetchAll() {
return Vue.http.get('/api/sessions', {
headers: {
Authorization: `JWT ${store.state.account.token}`
}
});
},
fetch({ id, detailed }) {
return Vue.http.get(`/api... | mit |
Reddit-Mud/RMUD | SinglePlayer/CloakOfDarkness/Cloakroom.cs | 1835 | using RMUD;
namespace CloakOfDarkness
{
public class Cloakroom : RMUD.Room
{
public override void Initialize()
{
/*
The Cloakroom is west of the Foyer.
"The walls of this small room were clearly once lined with hooks, though now only one remains.
The exit is a door to ... | mit |
Tallyb/loopback-graphql | __test__/mutation.spec.ts | 2919 | 'use strict';
import { gqlRequest } from './testHelper';
import gql from 'graphql-tag';
// var _ = require('lodash');
describe('mutation', () => {
it('should add and Delete single entity', () => {
let id;
const createAuthor = gql`
mutation save ($obj: AuthorInput!) {
saveAuthor (... | mit |
baberthal/gulp_helpers_rails | spec/helpers/home_helper_spec.rb | 1280 | require 'rails_helper'
# Specs in this file have access to a helper object that includes
# the HomeHelper. For example:
#
# describe HomeHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
# end
# end
# en... | mit |
fritzy/msgpack5 | test/16-bits-unsigned-integers.js | 974 |
var test = require('tape').test
, msgpack = require('../')
test('encoding/decoding 16-bits big-endian unsigned integers', function(t) {
var encoder = msgpack()
, allNum = []
, i
for (i = 256; i < 65536; i += 1423) {
allNum.push(i)
}
allNum.push(65535)
allNum.forEach(function(num) {
... | mit |
Rohansi/LoonyC | LoonyC.Shared/Assembly/Instructions/MultiInstruction.cs | 909 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace LoonyC.Shared.Assembly.Instructions
{
public class MultiInstruction : Instruction
{
private readonly List<Instruction> _instructions;
public MultiInstruction(IEnumerable<Instruction> instructions)
... | mit |
jlaso/tradukoj | src/JLaso/TranslationsBundle/Resources/public/resource/validate/script.js | 1028 | //
// jQuery Validate example script
//
// Prepared by David Cochran
//
// Free for your use -- No warranties, no guarantees!
//
$(document).ready(function(){
// Validate
// http://bassistance.de/jquery-plugins/jquery-plugin-validation/
// http://docs.jquery.com/Plugins/Validation/
// http://docs.j... | mit |
nyjt/activeportal | spec/features/signing_in_spec.rb | 1316 | require 'spec_helper'
feature 'Signing in' do
given(:default_params) { { locale: :en } }
given(:other_user) { FactoryGirl.attributes_for(:user) }
background do
ActivePortal::User.create!(email: 'user@example.com', password: 'hello123', password_confirmation: 'hello123')
end
scenario 'Signing in with cor... | mit |
romainneutron/PHPExiftool | lib/PHPExiftool/Driver/Tag/Pentax/ShadowCorrection.php | 1602 | <?php
/*
* This file is part of PHPExifTool.
*
* (c) 2012 Romain Neutron <imprec@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\Pentax;
use JMS\Serializer\Annotation\ExclusionPolicy;
... | mit |
datacite/bracco | tests/integration/components/doi-creator-test.js | 1203 | import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { setupFactoryGuy, make } from 'ember-data-factory-guy';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | doi creator', function(hooks) {
setupRe... | mit |
GoodBoyDigital/p2.js | src/utils/Pool.js | 1056 | module.exports = Pool;
/**
* @class Object pooling utility.
*/
function Pool(options) {
options = options || {};
/**
* @property {Array} objects
* @type {Array}
*/
this.objects = [];
if(options.size !== undefined){
this.resize(options.size);
}
}
/**
* @method resize
* @param {number} size
* @retur... | mit |
indirectlylit/whattowatch | starter/wsgi.py | 391 | """
WSGI config for starter project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | mit |
rafaeljuzo/makeuptown | site/tools/smarty/plugins/modifier.escape.php | 7799 | <?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifier
*/
/**
* Smarty escape modifier plugin
*
* Type: modifier<br>
* Name: escape<br>
* Purpose: escape string for output
*
* @link http://www.smarty.net/manual/en/language.modifier.count.characters.php count_cha... | mit |
pixelmaid/DynamicBrushes | javascript/app/Expression.js | 7765 | //Expression.js
/* View class that describes mathematical expression built on top of CodeMirror
(http://codemirror.net/
Some code here references expressions in Apparatus: https://github.com/cdglabs/apparatus
*/
"use strict";
define(["jquery", "codemirror", "app/Emitter", "app/id"],
function($, CodeMirror, Emit... | mit |
neetsdkasu/Paiza-POH-MyAnswers | POH6/kirishima/answer.js | 829 | /*
* 結果 https://paiza.jp/poh/joshibato/kirishima/result/dbb4f923
*/
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk) {
var lines = chunk.toString().trim().split('\n');
var n = parseInt(lines[0]);
var t = lines[1].split(' ').map(function(x){return parseIn... | mit |
SuperheroicCoding/notifications | karma.conf.js | 2363 | 'use strict';
var path = require('path');
var conf = require('./gulp/conf');
var _ = require('lodash');
var wiredep = require('wiredep');
var pathSrcHtml = [
path.join(conf.paths.src, '/**/*.html')
];
function listFiles() {
var wiredepOptions = _.extend({}, conf.wiredep, {
dependencies: true,
devDepende... | mit |
SimpleRepos/TRPG | Assets/Scripts/UI/CharacterSheet.cs | 871 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharacterSheet : MonoBehaviour, IGUIStateable {
#region IGUIStateable
public void GUISet(GUIStateMachine.Setting setting) {
Visible = (setting != GUIStateMachine.Setting.OFF);
}
#endregion
bool Vis... | mit |
SyndicateLtd/SyndicateQT | src/test/torcontrol_tests.cpp | 7200 | // Copyright (c) 2017 The Zcash developers
// Copyright (c) 2017-2018 The PIVX developers
// Copyright (c) 2019 The Syndicate Ltd developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "torcontrol.cpp"
#include <bo... | mit |
Sndicate/sndicate-deprecated | core/views/dash/post_layout.rb | 199 | class PostLayout < Mustache
def page_name
'Posts'
end
def csrf_tag
@csrf_tag || "Whatever"
end
def whatever
@whatever || 'Not the thing that is supposed to be here'
end
end
| mit |
hubot-js/hubot.js | src/internal-gears/gear-hubot-gears-status/src/handlers/status.js | 2777 | 'use strict';
const db = require('../../../../lib/db');
const trigger = require('../../../../message-handler/trigger');
exports.handle = handle;
function handle(hubot, message, task, params) {
const action = getAction(message, hubot);
if (action && isGearChangeStatusMessage(action, hubot, message)) {
hubot.... | mit |
wegowise/polymorpheus | spec/mysql2_adapter_spec.rb | 9076 | require 'spec_helper'
describe Polymorpheus::ConnectionAdapters::MysqlAdapter do
# The foreign key name is not truncated, so the maximum column name
# length ends up being: 64 - "pets_" - "_fk" == 56
#
# Using `t.references` also adds an index on this column, with a slightly
# longer name: 64 - "index_pets_... | mit |
Flexberry/ember-flexberry-designer | addon/locales/en/components/fd-create-node-editing-panel.js | 472 | export default {
'create-page': 'Add page at',
'choose-page': 'Select from existing forms',
'name-custom-page': 'Name',
'name-custom-page-placeholder': 'Page name',
'url-custom-page': 'Url',
'url-custom-page-placeholder': 'http://www.example.com',
'add-custom-page': 'Add page',
'add-form': 'Add form',
... | mit |
captbaritone/winamp2-js | packages/webamp/js/components/MainWindow/MainBalance.tsx | 615 | import { memo } from "react";
import Balance from "../Balance";
import * as Selectors from "../../selectors";
import { useTypedSelector } from "../../hooks";
export const offsetFromBalance = (balance: number): number => {
const percent = Math.abs(balance) / 100;
const sprite = Math.floor(percent * 27);
const of... | mit |
karim/adila | database/src/main/java/adila/db/n721_karbonn5fa1.java | 216 | // This file is automatically generated.
package adila.db;
/*
* ZTE Karbonn_A1
*
* DEVICE: N721
* MODEL: Karbonn_A1
*/
final class n721_karbonn5fa1 {
public static final String DATA = "ZTE|Karbonn_A1|";
}
| mit |
jarofghosts/jsmv | test/dummyfile4.js | 69 | var test = wutever('a')
var herp = require('a')
var derp = nope('a')
| mit |
joeferraro/jsforce | lib/api/streaming.js | 4812 | /**
* @file Manages Streaming APIs
* @author Shinichi Tomita <shinichi.tomita@gmail.com>
*/
'use strict';
var events = require('events'),
inherits = require('inherits'),
_ = require('underscore'),
Faye = require('faye');
/**
* Streaming API topic class
*
* @class Streaming~Topic
* @param {Stream... | mit |
willis/java-memcached-client | src/main/java/net/spy/memcached/NodeLocator.java | 730 | package net.spy.memcached;
import java.util.Collection;
import java.util.Iterator;
/**
* Interface for locating a node by hash value.
*/
public interface NodeLocator {
/**
* Get the primary location for the given key.
*
* @param k the object key
* @return the QueueAttachment containing the primary storage... | mit |
jcinnamond/causally-linked | lib/causal_link.rb | 647 | class CausalLink < ActiveRecord::Base
belongs_to :from, :polymorphic => true
belongs_to :to, :polymorphic => true
belongs_to :relationship
named_scope :linked_from, lambda { |relationship, from|
{
:conditions => {
:relationship_id => relationship.id,
:from_type => from.class.name,
... | mit |
pahumadad/weight-control | wcontrol/src/momentjs.py | 502 | from jinja2 import Markup
class momentjs(object):
def __init__(self, timestamp):
self.timestamp = timestamp
def render(self, format):
return Markup("<script>\ndocument.write(moment(\"%s\").%s);\n</script>" % (self.timestamp.strftime("%Y-%m-%dT%H:%M:%S Z"), format))
def format(self, fmt):... | mit |
floatdrop/got | test/error.js | 4231 | import http from 'http';
import test from 'ava';
import sinon from 'sinon';
import getStream from 'get-stream';
import proxyquire from 'proxyquire';
import got from '../source';
import {createServer} from './helpers/server';
let s;
test.before('setup', async () => {
s = await createServer();
s.on('/', (request, re... | mit |
braintree/braintree_java | src/main/java/com/braintreegateway/ExternalVaultVerificationRequest.java | 1528 | package com.braintreegateway;
/**
* Provides a fluent interface to build up requests around {@link CreditCardVerification CreditCardVerifications}.
*/
public class ExternalVaultVerificationRequest extends Request {
private CreditCardVerificationRequest parent;
private ExternalVault.Status status;
private... | mit |
uploadcare/django-briteverify | django_briteverify/api.py | 1481 | # coding: utf-8
import os
import logging
import requests
from django.conf import settings
__ALL__ = ('check_email',)
ENTRY_POINT = 'https://bpi.briteverify.com/emails.json'
TIMEOUT = 10
logger = logging.getLogger(__name__)
session = requests.session()
def check_email(email):
""" Checks email by sending reque... | mit |
AlloyTeam/Nuclear | components/icon/esm/minimize.js | 154 | import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M6 19h12v2H6z"
}), 'Minimize'); | mit |
qichunren/enum_attr | spec/enum_spec.rb | 2754 | # encoding: utf-8
require File.dirname(__FILE__) + "/spec_helper"
require "active_record"
dbconfig = YAML::load(File.open(File.dirname(__FILE__) + "/database.yml"))
ActiveRecord::Base.establish_connection(dbconfig)
ActiveRecord::Base.logger = Logger.new(STDOUT)
#migrations
class CreateAllTables < ActiveRecord::Migra... | mit |
iRaySpace/hack4xu | database/seeds/DatabaseSeeder.php | 385 | <?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// $this->call(UsersTableSeeder::class);
$this->call(StudentsTableSeeder::class);
$this->call(BooksTableSeeder::... | mit |
Kelzo/ProjetPoivre | app/cache/prod/annotations/Poivre-PrincipalBundle-Entity-Salle.cache.php | 323 | <?php return unserialize('a:2:{i:0;O:26:"Doctrine\\ORM\\Mapping\\Table":5:{s:4:"name";N;s:6:"schema";N;s:7:"indexes";N;s:17:"uniqueConstraints";N;s:5:"value";N;}i:1;O:27:"Doctrine\\ORM\\Mapping\\Entity":3:{s:15:"repositoryClass";s:45:"Poivre\\PrincipalBundle\\Entity\\SalleRepository";s:8:"readOnly";b:0;s:5:"value";N;}}... | mit |
Epredator/projects | thinkingInJava/src/pl/etroya/corejava/collection/shipment/CollectionConcepts.java | 1261 | package pl.etroya.corejava.collection.shipment;
/*information about collections from
https://app.pluralsight.com/player?course=java-fundamentals-collections&author=richard-warburton&name=java-fundamentals-collections-m2&clip=3&mode=live
*/
import pl.etroya.corejava.collection.Product;
import java.util.ArrayList;
imp... | mit |
influencetech/ivx-js | src/modules/ui/materialize/angular/controllers/input.password.js | 956 | import createFactoryFunction from '../../../../../angular/utilities/create-factory-function.js';
import FirebaseAuthentication from "../../../../../constants/firebase.authentication.js";
import { InputControllerHelper } from '../../../../../angular/utilities/input-controller.js';
let FirebaseAuthenticationConstants = ... | mit |
haidarvm/serj | e4/application/config/autoload.php | 4091 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep the fr... | mit |
xiewulong/yii2-payment | models/PaymentNotify.php | 193 | <?php
namespace yii\payment\models;
use Yii;
use yii\db\ActiveRecord;
class PaymentNotify extends ActiveRecord {
public static function tableName() {
return '{{%payment_notify}}';
}
}
| mit |
joebadmo/puppet-osx | spec/classes/airport/join_mode_fallback_spec.rb | 2557 | require 'spec_helper'
describe 'osx::airport::join_mode_fallback' do
let(:facts) { {:boxen_user => 'ilikebees' } }
describe 'Prompt' do
let(:params) { {:mode => 'Prompt'} }
it 'should set Join Mode Fallback to "Prompt"' do
should include_class('osx::airport')
should contain_exec('Set What to ... | mit |
hugozap/svg-anim-example | node_modules/browserify/node_modules/buffer/index.js | 34946 | /*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var base64 = require('base64-js')
var ieee754 = require('ieee754')
var isArray = require('is-array')
exports.Buffer = Buffer
exports.SlowBuffer = SlowBuffer
exports.... | mit |
pmrozek/highcharts | Highsoft.Web.Mvc/src/Highsoft.Web.Mvc/Stocks/FlagsSeriesZone.cs | 2578 | // Type: Highsoft.Web.Mvc.Stocks.FlagsSeriesZone
using System.Collections;
using Newtonsoft.Json;
namespace Highsoft.Web.Mvc.Stocks
{
public class FlagsSeriesZone : BaseObject
{
public FlagsSeriesZone()
{
this.ClassName = this.ClassName_DefaultValue = "";
this.Color =... | mit |
indexcoin/Indexcoin | src/qt/locale/bitcoin_hu.ts | 110096 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="hu" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Bitcoin</source>
<translation>A Indexról</translation>
</message... | mit |
skygragon/video-boy | lib/youku.js | 2974 | var util = require('util'),
_ = require('underscore'),
$ = require('./utils');
var FILEID_BOOK = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/\\:._-1234567890',
FILE_URL = 'http://k.youku.com/player/getFlvPath/sid/%s_00/st/%s/fileid/%s'
+ '?K=%s&token=%s&ep=%s&ctype=12&ev=... | mit |
robertlemke/flow-development-collection | TYPO3.Flow/Classes/TYPO3/Flow/Aop/Exception/VoidImplementationException.php | 629 | <?php
namespace TYPO3\Flow\Aop\Exception;
/* *
* This script belongs to the Flow framework. *
* *
* It is free software; you can redistribute it a... | mit |
MiguelAdige/m2l | app/cache/dev/appDevUrlMatcher.php | 16884 | <?php
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;
/**
* appDevUrlMatcher
*
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class appDevUrlMatcher ext... | mit |
capoio/capo-gem | lib/capo/capfile.rb | 1722 | module Capo
module Capfile
class << self
def generate
files.each do |file, content|
file = File.join Capo.app_path, file
if File.exists?(file)
warn "[skip] '#{file}' already exists"
elsif File.exists?(file.downcase)
warn "[skip] '#{file.downcase}... | mit |