repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
kindjar/static-data | lib/static-data/version.rb | 42 | module StaticData
VERSION = "0.3.0"
end
| 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/xml/dtd/DFAContentModel.js | 3141 | /** @constructor */
ScalaJS.c.scala_xml_dtd_DFAContentModel = (function() {
ScalaJS.c.scala_xml_dtd_ContentModel.call(this);
this.dfa$2 = null;
this.bitmap$0$2 = false
});
ScalaJS.c.scala_xml_dtd_DFAContentModel.prototype = new ScalaJS.inheritable.scala_xml_dtd_ContentModel();
ScalaJS.c.scala_xml_dtd_DFAContentMo... | mit |
coingecko/cryptoexchange | lib/cryptoexchange/exchanges/bitconnect/market.rb | 191 | module Cryptoexchange::Exchanges
module Bitconnect
class Market < Cryptoexchange::Models::Market
NAME = 'bitconnect'
API_URL = 'https://bitconnect.co/api'
end
end
end
| mit |
dvx/jssembly | core/src/com/polyfx/jssembly/Block.java | 2442 | package com.polyfx.jssembly;
import java.nio.ByteBuffer;
import org.antlr.runtime.ANTLRStringStream;
import org.antlr.runtime.CommonTokenStream;
import org.antlr.runtime.Lexer;
import org.antlr.runtime.RecognitionException;
import static com.polyfx.jssembly.platforms.Architecture.*;
import com.polyfx.jssembly.platf... | mit |
mbret/miage-biblio-nodejs | api/controllers/api/ReservationController.js | 2376 | /**
* ReservationController
*
* @description :: Server-side logic for managing reservations
* @help :: See http://links.sailsjs.org/docs/controllers
*/
module.exports = {
findMultiple: function (req, res) {
Reservation.find().populate('user').populate('customer').populate('work').exec(functio... | mit |
Phalanxia/Rad | Gruntfile.js | 5673 | "use strict";
var grunt = require("grunt"),
os = require("os"),
platforms = ["osx", "win", "linux32", "linux64"];
module.exports = function (grunt) {
var pkg = grunt.file.readJSON("package.json");
var version = pkg.version;
grunt.initConfig({
// Clean files to prep for a new build.
clean: {
b... | mit |
islas27/proyecto1-draw | almacenesHwrace/src/main/java/mx/uach/fing/almaceneshwrace/models/Product.java | 4755 | package mx.uach.fing.almaceneshwrace.models;
import java.io.Serializable;
import java.util.List;
import java.util.Objects;
import javax.persistence.*;
/**
*
* @author jesus
*/
@Entity
@Table (name ="products")
public class Product extends ActiveRecord implements Serializable {
@Id
@GeneratedValue(strateg... | mit |
glomium/elmnt.de | useraccounts/conf.py | 2296 | #!/usr/bin/python
# ex:set fileencoding=utf-8:
from __future__ import unicode_literals
from django.conf import settings as djsettings
class Settings(object):
PREFIX = "USERACCOUNTS"
DEFAULTS = {
# Enable login via...
"LOGIN_EMAIL": True,
"LOGIN_USERNAME": True,
# Login... | mit |
shinznatkid/django-config | dconfig/files/settings.py | 166 | from .common_settings import * # pylint: disable=W0401
INSTALLED_APPS += []
try:
from configs import * # pylint: disable=W0401
except ImportError:
pass
| mit |
varunamachi/quartz | archives/plugin_orek_client/source/Plugin.cpp | 968 | #include <base/QzAppContext.h>
#include <core/ext/IExtensionAdapter.h>
#include "ContentProvider.h"
#include "NodeProvider.h"
#include "Plugin.h"
namespace Quartz { namespace Ext { namespace Orek {
const QString Plugin::PLUGIN_ID{ "qzplugin.orek_client" };
const QString Plugin::PLUGIN_NAME{ "Orek Client" };
struct... | mit |
wmira/react-icons-kit | src/md/ic_restaurant_menu_twotone.js | 464 | export const ic_restaurant_menu_twotone = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm12.05-3.19c1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2-1.1-6.12.81-... | mit |
foundersandcoders/sail-back | test/upload/upload.member.test.js | 1164 | 'use strict'
var test = require('tape')
var request = require('request')
var fs = require('fs')
var through = require('through2')
var req = require('hyperquest')
var mockMembers = require('./mocks.js').members
var members = []
// make request to upload
test('create members array', function (t) {
var mockstream = m... | mit |
herowzz/dayIdGen | dayIdGen-embed/src/main/java/com/github/herowzz/dayIdGen/embed/DayIdGen.java | 1379 | package com.github.herowzz.dayIdGen.embed;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import com.github.herowzz.dayIdGen.embed.dao.IdDao;
public class DayIdGen {
private IdDao idDao;
/**
* name to generate db table name
*/
private String name;
/**
* prefix st... | mit |
ombt/ombt | old/libsrc/ternarytree/test/localization_test.cpp | 1049 | #include "tests_common.hpp"
#include "../examples/locale_less.hpp"
int localization_test()
{
long result = errors_counter();
typedef containers::ternary_tree<std::string, int, utility::locale_less<char> > LocTst;
LocTst names(utility::locale_less<char>::locale_less(utility::swedish_locale_name));
... | mit |
carlcortright/Playground | Ruby/Basics/arguments.rb | 63 | first, second, third = ARGV
puts "#{first} #{second} #{third}" | mit |
twilio/twilio-csharp | src/Twilio/Rest/Conversations/V1/CredentialOptions.cs | 8866 | /// This code was generated by
/// \ / _ _ _| _ _
/// | (_)\/(_)(_|\/| |(/_ v1.0.0
/// / /
using System;
using System.Collections.Generic;
using Twilio.Base;
using Twilio.Converters;
namespace Twilio.Rest.Conversations.V1
{
/// <summary>
/// Add a new push notification credential to your... | mit |
dolimoni/ensa-Project | application/views/profil.php | 13509 | <!DOCTYPE html>
<html>
<head>
<title>ENSA - Authentification</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="images/favicon-32x32.png" />
<link rel="stylesheet" type="text/css" href=... | mit |
robocon/easy1-template | lang/th/research/readresearch.php | 124 | <?php
$T = array(
'Research' => 'ผลงานวิชาการ',
'By' => 'โดย',
'on' => 'เมื่อ'
); | mit |
CaptChadd/Extremecoin | src/version.cpp | 2717 | // Copyright (c) 2012 The Bitcoin developers
// Copyright (c) 2012 Litecoin Developers
// Copyright (c) 2012 Extremecoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include "version.h"
// N... | mit |
whipcash/whipcash | src/rpcdump.cpp | 3004 | // Copyright (c) 2009-2014 Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h" // for pwalletMain
#include "bitcoinrpc.h"
#include "ui_interface.h"
#include "base58.h"
#include <boost/lexica... | mit |
ebemunk/blog | projects/van-eventviz/scraper/src/scrape.test.js | 994 | import { readFile } from 'fs'
import { fromCallback } from 'bluebird'
import axios from 'axios'
import scrape, { parsePage } from './scrape'
import * as db from './db'
let data, empty
beforeAll(async () => {
data = await fromCallback(cb => readFile('./test/test2.html', 'utf-8', cb))
empty = await fromCallback(cb... | mit |
ShankarSumanth/lean-react | webpack-config/named-module-plugin.js | 90 | const webpack = require( 'webpack' );
module.exports = new webpack.NamedModulesPlugin();
| mit |
Arseniik/mean-gallery | app/routes/files.server.routes.js | 1948 | 'use strict';
module.exports = function(app) {
var files = require('../../app/controllers/files.server.controller');
var users = require('../../app/controllers/users.server.controller');
var multer = require('multer');
var upload = multer({dest: __dirname + '/../../public/data/'});
var multipleUpl... | mit |
vyper/c4p | lib/config/mapping.rb | 1216 | collection :users do
entity User
repository UserRepository
attribute :id, String
attribute :name, String
attribute :email, String
attribute :password, EncryptedPassword
attribute :created_at, DateTime
attribute :updated_at, DateTime
end
collection :authentications do
e... | mit |
zhangzhe/ama-china | app/helpers/comments_helper.rb | 326 | module CommentsHelper
def comments_tree_for(comments)
comments.map do |comment, nested_comments|
render(partial: "/comments/comment", locals: {comment: comment}) +
(nested_comments.size > 0 ? content_tag(:div, comments_tree_for(nested_comments), class: "replies") : nil)
end.join.html_safe
en... | mit |
black-security/cyber-security-framework | remote/dns/dnask.py | 4801 | import dns.resolver, dns.message, argparse, random
from network.modules import socket
from core.modules.base import Program
from core.modules.console import print
class DNAsk(Program):
"""Utility to build and execute DNS queries ..."""
requirements = {"dnspython3"}
def __init__(self):
super().__in... | mit |
Molajo/Cache | Source/Driver.php | 1983 | <?php
/**
* Cache Driver
*
* @package Molajo
* @copyright 2014-2015 Amy Stephen. All rights reserved.
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
namespace Molajo\Cache;
use CommonApi\Cache\CacheInterface;
/**
* Cache Driver
*
* @package Molajo
* @copyright 2014-... | mit |
SimonWallner/archive-rails | app/helpers/application_helper.rb | 3253 | module ApplicationHelper
require 'redcarpet'
PREDEFINED_FIELDS = ["External Links", "Aggregate Scores", "Review Scores"]
@@GAME_VERSIONER = GameVersioner.instance
# amount displayed featured entries
def getAmountFeatured()
return 8
end
def markdown(text)
rndr = CustomLinkRenderer.new(:filter_html => tr... | mit |
marcinfkns/yet-another-retryer | src/main/java/retryer/stopstrategy/CompositeStopStrategy.java | 534 | package retryer.stopstrategy;
import java.util.List;
import retryer.RetryContext;
/** concrete instances provided by StopStrategy.or/and methods */
public abstract class CompositeStopStrategy<T> implements StopStrategy<T> {
List<StopStrategy<T>> strategies;
public CompositeStopStrategy(List<StopStrategy<T>> stra... | mit |
binary42/OCI | orbsvcs/Log/NotifyLog_i.cpp | 6879 | // $Id: NotifyLog_i.cpp 1861 2011-08-31 16:18:08Z mesnierp $
#include "orbsvcs/Log/NotifyLog_i.h"
#include "orbsvcs/Log/LogMgr_i.h"
#include "orbsvcs/Log/LogNotification.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_NotifyLog_i::TAO_NotifyLog_i (CORBA::ORB_ptr orb,
PortableServer::POA_p... | mit |
billogram/billogram-v2-api-python-lib | billogram_api.py | 28667 | # encoding=utf-8
# Copyright (c) 2013 Billogram AB
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge... | mit |
harrischristiansen/MembersPortal | app/Models/LocationRecord.php | 499 | <?php
/*
@ Harris Christiansen (Harris@HarrisChristiansen.com)
2016-05-02
Project: Members Tracking Portal
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class LocationRecord extends Model
{
protected $table = 'location-member';
public function member()
{
return $t... | mit |
mintern/xregexp-quotemeta | test.js | 397 | const assert = require("assert");
const XRegExp = require("xregexp");
const quotemeta = require("./xregexp-quotemeta");
quotemeta.addSupportTo(XRegExp);
assert(XRegExp('^\\Q(?*+)').test('(?*+)'));
assert(XRegExp('^\\Q.\\E.').test('.x'));
assert(!XRegExp('^\\Q.\\E.').test('xx'));
assert(XRegExp('^\\Q\\E$').test(''));
... | mit |
samael205/ExcelPHP | PhpSpreadsheet/Style/Borders.php | 12189 | <?php
namespace PhpOffice\PhpSpreadsheet\Style;
/**
* Copyright (c) 2006 - 2016 PhpSpreadsheet
*
* 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 Licens... | mit |
tsisociesc/bombeiro-comunitario | admin/assets/src/PFBC/Element/File.php | 1643 | <?php
namespace PFBC\Element;
class File extends \PFBC\Element
{
protected $_attributes = array(
"type" => "file",
"actSelect" => "Selecionar arquivo",
"actRemove" => 'Remover',
"actUpdate" => "Alterar",
);
public function __construct($label, $name, array $properties = nul... | mit |
the01/python-sallie | src/sallie/next_tvdb.py | 8625 | # -*- coding: UTF-8 -*-
""" TVNext implementation for tvdb """
__author__ = "d01"
__copyright__ = "Copyright (C) 2016-20, Florian JUNG"
__license__ = "MIT"
__version__ = "0.2.10"
__date__ = "2020-06-15"
# Created: 2015-04-29 19:15
import datetime
import difflib
import typing
import dateutil
import dateutil.parser
im... | mit |
idhamperdameian/Laravel-lang | script/todo.php | 7612 | <?php
class Storage
{
public function directories(string $path): DirectoryIterator
{
return new DirectoryIterator(
$this->realpath($path)
);
}
public function getDecodedJson(string $filename)
{
return file_exists($filename)
? json_decode(file_get_con... | mit |
zenozeng/gene-pool | lib/gene-pool.js | 1526 | // genes: 基因库
// n: 单个个体基因数
// weights: 每个基因的权重,影响出现的随机程度
function GenePool(genes, n, weights) {
if(n > genes.length) {
throw new Error("n must <= genes.length");
}
weights = weights || genes.map(function() { return 1; });
// 随机取得一条基因
var getRandomGene = (function(genes, weights) {
... | mit |
guokaijava/YGCMS | ygcms-core/src/main/java/org/openkoala/security/core/TelePhoneIsExistedException.java | 485 | package org.openkoala.security.core;
public class TelePhoneIsExistedException extends SecurityException {
private static final long serialVersionUID = 5363736963932226941L;
public TelePhoneIsExistedException() {
super();
}
public TelePhoneIsExistedException(String message, Throwable cause) {
super(message, ... | mit |
sgeisler/EasyBitcoin | ByteArray.cpp | 2018 | // Copyright (c) 2015 Sebastian Geisler
// Distributed under the MIT software license, see the accompanying
// file LICENSE or http://www.opensource.org/licenses/mit-license.php.
#include <stdexcept>
#include <memory.h>
#include "ByteArray.h"
#include "Crypto.h"
#include "Conversions.h"
ByteArray::ByteArray(const B... | mit |
MadsJensen/malthe_alpha_project | adaboost_src.py | 3008 |
import mne
from mne.minimum_norm import (apply_inverse_epochs, read_inverse_operator)
import socket
import numpy as np
# import matplotlib.pyplot as plt
from sklearn.ensemble import AdaBoostClassifier
# from sklearn.tree import DecisionTreeClassifier
# from sklearn.metrics import confusion_matrix
from sklearn.cross_... | mit |
onechiporenko/ember-models-table | addon/components/models-table/themes/default/footer.ts | 3923 | import Component from '@glimmer/component';
import DefaultTheme from '../../../../services/emt-themes/default';
import { SelectOption } from '../../../models-table';
export interface FooterArgs {
/**
* Bound from [[Core.ModelsTable.themeInstance | ModelsTable.themeInstance]]
*/
themeInstance: DefaultTheme;
... | mit |
ksaua/remock | src/test/java/no/saua/remock/exampleapplication/SuperClass.java | 72 | package no.saua.remock.exampleapplication;
public class SuperClass {
}
| mit |
delian1986/SoftUni-C-Sharp-repo | Programming Fundamenals January 2018/05. Arrays/Arrays More Exercises/06. Heists/Heists.cs | 1610 | using System;
using System.Collections.Generic;
using System.Linq;
namespace _06._Heists
{
class Heists
{
static void Main(string[] args)
{
int[] sequence = Console.ReadLine().Split().Select(int.Parse).ToArray();
int jewelPrice = sequence[0];
int goldPrice ... | mit |
eblot/miscripts | Python/files/diffch.py | 4231 | #!/usr/bin/env python3
"""Simple patch file analyzer to extract filename changes."""
from argparse import ArgumentParser, FileType
from os import sep as pathsep
from sys import modules, stderr
from traceback import format_exc
def analyze(patchfp, pathstrip, ether, added, removed, moved, adddel, verbose):
oldnam... | mit |
chrisAu4000/cycle-input | src/input/view.js | 579 | import {input, div} from '@cycle/dom'
const view = (state$) => {
return state$.map(({value, placeholder, transition, className}) => {
const cName = className ? '.' + className : ''
return div('.cycle-input-wrapper', [
input('.cycle-input' + cName, {
attrs: {
type: 'text',
pl... | mit |
mayconbeserra/auctionata-online-app | src/actions/buyerActions.js | 1261 | "use strict";
var Dispatcher = require('../dispatcher/appDispatcher');
var BuyerAPI = require('../api/BuyerAPI');
var ActionTypes = require('../constants/actionTypes');
var Promise = require('promise');
var BuyerActions = {
initialiseBuyers: function() {
Promise.resolve(BuyerAPI.getAllBuyers()).then(functi... | mit |
yngui/jparse | src/main/java/com/github/jparse/ThenRightParser.java | 1915 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Igor Konev
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, c... | mit |
kolchanov/restapp | src/main/java/net/company/dao/CompanyH2Mapper.java | 1514 | package net.company.dao;
import net.company.model.Beneficial;
import net.company.model.Company;
import java.util.List;
import net.company.model.Country;
import org.apache.ibatis.annotations.*;
public interface CompanyH2Mapper {
@Insert("INSERT INTO COMPANY(COMPANY_ID, NAME, ADDRESS, CITY, COUNTRY_CODE, EMAIL, ... | mit |
liminshen/development-environment-structure | gulp/20160514/gulpfile.js | 3141 | var gulp = require('gulp'),
// sass = require('gulp-ruby-sass'),
clean = require('gulp-clean'),
less = require('gulp-less'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
rename = require('gulp-rename'),
uglify = require('gulp-uglify'),
rev = requir... | mit |
whitel/calagator-openshift | app/controllers/versions_controller.rb | 534 | class VersionsController < ApplicationController
def edit
@version = Version.find(params[:id])
@record = @version.next.try(:reify) || @version.item
singular = @record.class.name.singularize.underscore
plural = @record.class.name.pluralize.underscore
self.instance_variable_set("@#{singular}", @rec... | mit |
camptocamp/ngeo | test/spec/ngeo/getbrowserlanguage.spec.js | 1985 | // The MIT License (MIT)
//
// Copyright (c) 2019-2021 Camptocamp SA
//
// 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 |
johannes-riesterer/Verdriller | Particle.cpp | 1304 | /*
* File: Particle.cpp
* Author: johannes
*
* Created on 24. Juli 2014, 14:29
*/
#include "Particle.h"
Particle::Particle() {
this->dynamic = true;
this->mass = 1.0f;
this->invMass = 1.0f / this->mass;
this->gravity = true;
this->force(0) = 0.0f;
this->force(1) = 0.0f;
this-... | mit |
pineal/Leetcode_OJ | cpp/204_Count_Primes.cpp | 641 | //O(n^2)
class Solution {
public:
int countPrimes(int n) {
int count = 0;
for (int i = 2; i < n; i++) {
int j;
int is_prime = 1;
for (j = 2; j < i; j++) {
if (i % j == 0) {
is_prime = 0;
break;
}
}
count += is_prime;
}
return count;
}
};
//O(n^1.5)
class Solu... | mit |
kazuhira-r/javaee7-scala-examples | cdi-dependent/src/main/java/org/littlewings/javaee/service/interceptor/Trace.java | 558 | package org.littlewings.javaee.service.interceptor;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.annotation.Priority;
import javax.interceptor.Intercep... | mit |
sindresorhus/gulp-autoprefixer | test.js | 2147 | import path from 'path';
import test from 'ava';
import Vinyl from 'vinyl';
import sourceMaps from 'gulp-sourcemaps';
import pEvent from 'p-event';
import autoprefixer from '.';
test('autoprefix CSS', async t => {
const stream = autoprefixer();
const data = pEvent(stream, 'data');
stream.end(new Vinyl({
cwd: __d... | mit |
fallenswordhelper/fallenswordhelper | src/modules/quickbuff/populateBuffs.js | 1560 | import getElementById from '../common/getElementById';
import outputFormat from '../system/outputFormat';
import querySelector from '../common/querySelector';
import setInnerHtml from '../dom/setInnerHtml';
function buffTimeLeft(secs) {
const m = Math.floor(secs / 60);
const s = secs % 60;
let buffTimeToExpire =... | mit |
welovekpop/uwave-web-welovekpop.club | es/utils/createGenerateClassName.js | 482 | export default function createGenerateClassName() {
var counter = 0;
function getNextUnknownName() {
counter += 1;
return "Component" + counter;
}
function generateClassName(rule, styleSheet) {
var componentName = styleSheet.options.name || getNextUnknownName();
if (rule.key === 'root') {
... | mit |
park-manager/parkmanager | src/Module/CoreModule/Test/Infrastructure/UserInterface/HttpResponseAssertions.php | 2070 | <?php
declare(strict_types=1);
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
namespace ParkManager\Module\CoreModule\Test\Infrastructure\UserInterface;
u... | mit |
freefair/android-library | playground/src/main/java/io/freefair/android/fader/ColorFader.java | 909 | package io.freefair.android.fader;
import android.graphics.Color;
/**
* Created by larsgrefer on 30.01.15.
*/
public class ColorFader extends BaseFader<Integer> {
protected IntFader redFader, greenFader, blueFader, alphaFader;
public ColorFader(int from, int to) {
this.from = from;
this.to = to... | mit |
ICJIA/icjia-tvpp | statamic/core/API/Email.php | 1305 | <?php
namespace Statamic\API;
use Closure;
class Email
{
/**
* The email builder instance
*
* @return \Statamic\Email\Builder
*/
private static function email()
{
return app('Statamic\Email\Builder');
}
/**
* Begin building an email
*
* @return \Statami... | mit |
arafato/ltl2fsm | ltl2fsm/dummy.ts.cpp | 21 |
// empty dummy file
| mit |
mdemin914/metaforce | lib/metaforce/job/deploy.rb | 2078 | module Metaforce
class Job::Deploy < Job
# Public: Instantiate a new deploy job.
#
# Examples
#
# job = Metaforce::Job::Deploy.new(client, './path/to/deploy')
# # => #<Metaforce::Job::Deploy @id=nil>
#
# Returns self.
def initialize(client, path, options={})
super(client... | mit |
fancyJelley/test-node-project | config/db.js | 56 | module.exports = {
url: 'mongodb://localhost/images'
} | mit |
bladestery/Sapphire | example_apps/AndroidStudioMinnie/sapphire/src/main/java/org/ddogleg/sorting/QuickSort_F64.java | 4792 | /*
* Copyright (c) 2012-2013, Peter Abeles. All Rights Reserved.
*
* This file is part of DDogleg (http://ddogleg.org).
*
* 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://w... | mit |
unshiftio/sessionstorage | test.js | 1157 | describe('sessionStorage', function () {
'use strict';
var assume = require('assume')
, sessionStorage = require('./');
it('is exported as object', function () {
assume(sessionStorage).is.a('object');
});
it('as the API methods', function () {
assume(sessionStorage.getItem).is.a('function');
... | mit |
pocketberserker/my-lord | mylord-jvm/src/main/scala/mylord/services/WandboxClient.scala | 1291 | package mylord
package services
import argonaut._, Argonaut._
import scalaz._
import scalaz.concurrent.Task
import org.http4s._
import org.http4s.dsl._
import org.http4s.argonaut._
import org.http4s.client._
import org.http4s.client.blaze.defaultClient
import org.http4s.Status.ResponseClass.Successful
class WandboxCl... | mit |
iruwl/todo | application/config/database.php | 2705 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database... | mit |
ppikachu/gl_theme | functions.php | 897 | <?php
/**
* Sage includes
*
* The $sage_includes array determines the code library included in your theme.
* Add or remove files to the array as needed. Supports child theme overrides.
*
* Please note that missing files will produce a fatal error.
*
* @link https://github.com/roots/sage/pull/1042
*/
$sage_incl... | mit |
SRoddis/Mongo.Migration | Mongo.Migration/Services/IDocumentVersionService.cs | 824 | using System;
using System.Collections.Generic;
using Mongo.Migration.Documents;
using Mongo.Migration.Migrations.Document;
using MongoDB.Bson;
namespace Mongo.Migration.Services
{
public interface IDocumentVersionService
{
string GetVersionFieldName();
DocumentVersion GetCurrentOrLatestMigrat... | mit |
streamlink/streamlink-twitch-gui | src/app/data/models/twitch/stream-followed/serializer.js | 514 | import TwitchSerializer from "data/models/twitch/serializer";
export default TwitchSerializer.extend({
modelNameFromPayloadKey() {
return "twitch-stream-followed";
},
attrs: {
stream: { deserialize: "records" }
},
normalize( modelClass, resourceHash, prop ) {
const foreignKey = this.store.serializerFor( ... | mit |
voidfiles/jsonschematics | tests/test_json.py | 2186 | import json
import unittest
from schematics.models import Model
from schematics.types import StringType, URLType, IntType, LongType, DecimalType
from schematics.types.compound import ModelType, ListType
from jsonschematics import to_jsonschema
class BankAccount(Model):
account_id = LongType(required=True, min_v... | mit |
SaladbowlCreative/Snake | src/Domain/Properties/AssemblyInfo.cs | 1399 | 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("Dom... | mit |
sapegin/social-likes-next | test/social-likes.spec.js | 2325 | import test from 'ava';
import SocialLikes from '../src/social-likes';
import { createWidget } from './button.spec';
/* eslint-disable max-len */
export function createButtons() {
let container = document.createElement('div');
container.appendChild(createWidget({}, 'facebook'));
container.appendChild(createWidget(... | mit |
philnash/twilio-node | lib/base/Version.d.ts | 2437 | import Domain = require('./Domain');
import TwilioClient = require('../rest/Twilio');
declare class Version {
constructor(solutelydomain: Domain, version: string);
/**
* Generate absolute url from a uri
*
* @param uri uri to transform
* @return transformed url
*/
absoluteUrl(uri: string): string;... | mit |
pprmint/cheetos | ph/js/script.js | 4292 | $( function () {
var id_list = [];
var fresh_count = 0;
var feed_cache = "";
function post_template (d) {
var html = "";
html += '<div class="post msg col-lg-7 col-md-offset-3" data-id=' + d.id + '>';
html += '<p>' + unescape(decodeURIComponent(d.message)) + '</p> ';
html += ' <p>' + unescap... | mit |
Squeegy/fleximage | test/rails_root/db/migrate/005_create_photo_s3s.rb | 183 | class CreatePhotoS3s < ActiveRecord::Migration
def self.up
create_table :photo_s3s do |t|
t.timestamps
end
end
def self.down
drop_table :photo_s3s
end
end
| mit |
ea-zhongxiaochun/angularStudy | app/heroes.component.js | 2946 | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | mit |
Flowman/Integration-Kit | ConfigMgr.QuickTools.Device/ResultCacheControl.Designer.cs | 14185 | namespace ConfigMgr.QuickTools.Device
{
partial class ResultCacheControl
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// <... | mit |
imba3r/grabber | ui/src/app/shared/pipes/smart-date.pipe.spec.ts | 630 | import { SmartDatePipe } from './smart-date.pipe';
describe('SmartDatePipe', () => {
let pipe: SmartDatePipe;
beforeEach(() => {
pipe = new SmartDatePipe();
});
it('create an instance', () => {
expect(pipe).toBeTruthy();
});
it('transform date to "time ago"', () => {
const now = new Date();
... | mit |
leanwork/lean-codepack | src/Lean.CodePack/Leanwork.CodePack.Mvc/CustomRoutes/AdminRoute.cs | 1851 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace Leanwork.CodePack.Mvc
{
public class CustomRoute : Route
{
public string Name { get; set; }
public string Group { get; set; }
public CustomRo... | mit |
metfan/rabbit-setup | bootstrap.php | 236 | <?php
/*
* This file bootstrap autoload for phpunit
*/
$file = __DIR__.'/vendor/autoload.php';
if (!file_exists($file)) {
throw new RuntimeException('Install dependencies to run test suite.');
}
$autoload = require_once $file;
| mit |
slashrocket/rocketbot | config/application.rb | 1400 | require File.expand_path('../boot', __FILE__)
require 'action_controller/railtie'
require 'action_view/railtie'
require 'action_mailer/railtie'
require 'action_mailer/railtie'
require 'active_job/railtie'
require 'rails/test_unit/railtie'
require 'sprockets/railtie'
# Require the gems listed in Gemfile, including any... | mit |
jstrait/beats | lib/beats/kit.rb | 1653 | module Beats
class Kit
class LabelNotFoundError < RuntimeError; end
PLACEHOLDER_TRACK_NAME = "empty_track_placeholder_name_234hkj32hjk4hjkhds23"
def initialize(items, num_channels, bits_per_sample)
@items = items
@labels = @items.keys.freeze
@num_channels = num_channels
@bits_per... | mit |
araneforseti/api-tester | spec/api-tester/modules/format_spec.rb | 2802 | # frozen_string_literal: true
require 'spec_helper'
require 'webmock/rspec'
require 'api-tester/definition/response'
require 'api-tester/definition/request'
require 'api-tester/definition/endpoint'
require 'api-tester/definition/contract'
require 'api-tester/modules/format'
require 'api-tester/reporter/api_report'
req... | mit |
ghthou/learning-taotaoMall | taotao-search/src/main/java/com/taotao/search/pojo/SearchResult.java | 277 | package com.taotao.search.pojo;
import java.util.List;
import lombok.Data;
@Data
public class SearchResult {
//商品列表
private List<Item> itemList;
//总记录数
private long recordCount;
//总页数
private long pageCount;
//当前页
private long curPage;
}
| mit |
sdellis/figgy.filemanager | test/figgy.filemanager.spec.js | 670 | // For authoring Nightwatch tests, see
// http://nightwatchjs.org/guide#usage
var config = require('../nightwatch.conf.js');
module.exports = { // adapted from: https://git.io/vodU0
before: function (browser, done) {
server = require('../server')(done) // done is a callback that executes when the server is starte... | mit |
tercenya/invalesco | bin/ops/06_player_match_rank_skew.rb | 666 | #!/usr/bin/env ruby
require_relative '../bootstrap'
require 'invalesco/ranking'
counts = {}
include Ranking
Match.all.each do |match|
blue_points = team_points(match.blue_participants)
red_points = team_points(match.red_participants)
total = blue_points + red_points
delta = (blue_points - red_points).abs
... | mit |
mcodegeeks/OpenKODE-Framework | 01_Develop/libXMCocos2D-v3/Source/2d/draw_nodes/CCDrawNode.cpp | 14542 | /* -----------------------------------------------------------------------------------
*
* File CCDrawNode.cpp
* Ported By Young-Hwan Mun
* Contact xmsoft77@gmail.com
*
* -----------------------------------------------------------------------------------
*
* Cop... | mit |
kybarg/material-ui | packages/material-ui-icons/src/MissedVideoCallSharp.js | 263 | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M17 10.5V6H3v12h14v-4.5l4 4v-11l-4 4zM10 15l-3.89-3.89v2.55H5V9.22h4.44v1.11H6.89l3.11 3.1 4.22-4.22.78.79-5 5z" />
, 'MissedVideoCallSharp');
| mit |
robig/stlab | src/net/robig/stlab/gui/preferences/AbstractPreferenceControl.java | 744 | package net.robig.stlab.gui.preferences;
import javax.swing.JComponent;
import javax.swing.JFrame;
import net.robig.stlab.util.config.AbstractValue;
import net.robig.stlab.util.config.IConfigListener;
import net.robig.stlab.util.config.ObjectConfig;
public abstract class AbstractPreferenceControl implements IConfigLi... | mit |
volodymyr-nakvasiuk/sandbox | src/Application/Gillbus/EtravelsBundle/Entity/Client.php | 2068 | <?php
namespace Application\Gillbus\EtravelsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Client
*
* @ORM\Table(name="client")
* @ORM\Entity
*/
class Client
{
/**
* @var string
*
* @ORM\Column(name="email", type="string", length=80, nullable=false)
*/
private $email;
/**... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/angular-strap/2.1.5/modules/button.js | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:a00dc2289daf5baec0ef0e011e74ee133b27fd17750cbc48cd720a97ae670d5d
size 6106
| mit |
jtrauer/AuTuMN_framework | autumn_model/spreadsheet.py | 4134 |
from xlrd import open_workbook
from numpy import nan
import numpy
import os
import tool_kit
#######################################
### Individual spreadsheet readers ###
#######################################
class GlobalTbReportReader:
"""
Reader object for the WHO's Global TB Report 2016. Illustrates g... | mit |
AntonAbramov/angular-study | gulpfile.js | 3204 | 'use strict';
var gulp = require('gulp'),
uglify = require('gulp-uglify'), // minify js
jshint = require('gulp-jshint'), // linting
sourcemaps = require('gulp-sourcemaps'),
sass = require('gulp-sass'), // Scss, sass
autoprefixer = require('gulp-autoprefixer'), // add prefixes on specific css r... | mit |
jphacks/KS_1602 | db/migrate/20161029060703_create_categories.rb | 191 | class CreateCategories < ActiveRecord::Migration[5.0]
def change
create_table :categories do |t|
t.integer :CATEDORY_ID
t.string :NAME
t.timestamps
end
end
end
| mit |
stas-vilchik/bdd-ml | data/3951.js | 2318 | {
let action;
let current;
sequence =
typeof value === "object" ? value : sequence.concat(value.split("|"));
timedAction(
function() {
current = sequence.shift();
action = getAction(current);
value = getValue(current);
switch (action) {
case "countdown":
value ... | mit |
elearninglondon/ematrix_2015 | system/expressionengine/third_party/content_elements/elements/rich_text/views/preview.php | 40 | <span style="color: black">{value}<span> | mit |
erlimar/prototypeguide | src/application/static/js/app/controllers/editor.ctrl.js | 4261 | /**
* @ngdoc module
* @name EditorCtrl
* @description
*
* Controller do Editor de Protótipos
*/
PrototypeGuideApp.controller('EditorCtrl', function ($scope, $compile) {
/**********************************
Consts
***********************************/
var COMPONENTPREFIX = 'pg',
COMPONENTBUTTON =... | mit |
PingPlusPlus/pingpp-php | example/charge/channel_extra/cb_alipay.php | 461 | <?php
return [
// 可选,支付类型。默认值为:1(商品购买)。
'payment_type' => '1',
// 可选,分账列表。
'split_fund_info' => [
[
'account' => '2088866088886666', // 接受分账资金的支付宝账户ID。
'amount' => 1, // 分账的金额。
'desc' => 'split_desc desc', ... | mit |