repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
sergey-shambir/cpp-promise-demo | promise-app/stdafx.h | 174 | #pragma once
#if defined(_WIN32)
#include <SDKDDKVer.h>
#endif
#include <cstdlib>
#include <atomic>
#include <chrono>
#include <memory>
#include <mutex>
#include <vector>
| mit |
ProgTrade/nUpdate | nUpdate.Administration/Core/Operations/Panels/ScriptExecuteOperationPanel.Designer.cs | 8690 | namespace nUpdate.Administration.Core.Operations.Panels
{
partial class ScriptExecuteOperationPanel
{
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Verwendete Ress... | mit |
VCG/gp | ui/manager.py | 12894 | import cPickle as pickle
import numpy as np
import os
import sys
sys.path.append('../')
import gp
from uitools import UITools
class Manager(object):
def __init__(self, output_dir):
'''
'''
self._data_path = '/home/d/dojo_xp/data/'
self._output_path = os.path.join(self._data_path, 'ui_out', output_... | mit |
MylesIsCool/ViaVersion | api-legacy/src/main/java/us/myles/ViaVersion/api/boss/BossColor.java | 1520 | /*
* This file is part of ViaVersion - https://github.com/ViaVersion/ViaVersion
* Copyright (C) 2016-2021 ViaVersion and contributors
*
* 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 w... | mit |
reggieb/Disclaimer | test/unit/helpers/disclaimer/documents_helper_test.rb | 102 | require 'test_helper'
module Disclaimer
class DocumentsHelperTest < ActionView::TestCase
end
end
| mit |
BackForty/great_pretender | lib/great_pretender/pretender.rb | 1831 | require "active_support/core_ext/string/inflections"
module GreatPretender
class Pretender
def initialize(mockup)
@mockup = mockup
end
def to_module
pretenders = load_pretenders
Module.new do
define_method(:method_missing) do |method_name, *args, &block|
pretender =... | mit |
BuzzAcademy/idioms-moe-unformatted-data | all-data/3000-3999/3889-33.html | 571 | <table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="layoutclass_pic"><div class="layoutclass_first_pic"><table class="fmt0table"><tr><th class="zt1"><... | mit |
christophehurpeau/springbokjs-dom | coverage/lcov-report/lib/elements/dom.js.html | 37327 | <!doctype html>
<html lang="en">
<head>
<title>Code coverage report for lib/elements/dom.js</title>
<meta charset="utf-8">
<link rel="stylesheet" href="../../prettify.css">
<link rel="stylesheet" href="../../base.css">
<style type='text/css'>
div.coverage-summary .sorter {
backgr... | mit |
maqiangddb/AndroidVncServer | jni/guacd/cairo/util/cairo-trace/trace.c | 120831 | /* cairo-trace - a utility to record and replay calls to the Cairo library.
*
* Copyright © 2008 Chris Wilson
*
* This program 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 Lice... | mit |
rinvex/cortex-fort | resources/views/frontarea/pages/tenant-registration.blade.php | 10976 | {{-- Master Layout --}}
@extends('cortex/foundation::frontarea.layouts.default')
{{-- Page Title --}}
@section('title')
{{ extract_title(Breadcrumbs::render()) }}
@endsection
{{-- Scripts --}}
@push('inline-scripts')
{!! JsValidator::formRequest(Cortex\Auth\Http\Requests\Frontarea\TenantRegistrationProcessReq... | mit |
Vizzuality/gfw-climate | app/assets/javascripts/map/views/tabs/AnalysisShapeUploadView.js | 3022 | /**
* The AnalysisShapeUploadView module.
*
* @return AnalysisShapeUploadView class (extends Backbone.View).
*/
define(
[
'backbone',
'mps',
'turf',
'map/services/ShapefileService',
'helpers/geojsonUtilsHelper'
],
function(Backbone, mps, turf, ShapefileService, geojsonUtilsHelper) {
'u... | mit |
mbroadwater/shadowrun | app/controllers/api/v1/characters_controller.rb | 806 | class Api::V1::CharactersController < ApplicationController
def show
character = Character.find(params[:id])
response = Api::V1::CharacterSerializer.new(character)
render(json: response)
end
def index
if params[:name]
character = Character.find_by(name: params[:name])
if character.ni... | mit |
lgcarrier/APEXFramework | 5.2.3/Database/Indexes/AFW_12_FONCT_STRUC_APLIC_FK2.sql | 114 | SET DEFINE OFF;
CREATE INDEX AFW_12_FONCT_STRUC_APLIC_FK2 ON AFW_12_FONCT_STRUC_APLIC
(REF_STRUC_APLIC)
LOGGING
/
| mit |
Thog/ISBRH | src/main/java/eu/thog92/isbrh/example/BlockExample.java | 2078 | package eu.thog92.isbrh.example;
import eu.thog92.isbrh.ISBRH;
import eu.thog92.isbrh.render.ITextureHandler;
import eu.thog92.isbrh.render.TextureLoader;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.renderer.t... | mit |
HenryRawas/Docker-Provider | test/code/providers/Container_ContainerStatistics_Class_Provider_UnitTest.cpp | 3861 | #include <set>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <unistd.h>
#include <uuid/uuid.h>
#include <vector>
#include <scxcorelib/scxcmn.h>
#include <scxcorelib/scxprocess.h>
#include <scxcorelib/stringaid.h>
#include <testutils/scxunit.h>
#include <testutils/providertestutils.h>
#include "Con... | mit |
xvik/dropwizard-orient-server | src/main/java/ru/vyarus/dropwizard/orient/configuration/OrientServerConfiguration.java | 9795 | package ru.vyarus.dropwizard.orient.configuration;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import com.orientechnologies.common.parser.OSystemVariableResolver;
import com.ori... | mit |
hstarorg/simple-sso | src/assets/js/app-detail.js | 506 | new Vue({
el: document.querySelector('.page-app-detail'),
data: {
selectedApp: {}
},
created() {
this._loadApp();
},
methods: {
refreshSecret() {
axios.post(`${AppConf.apiHost}/app/${serverData.appId}/refresh_secret`)
.then(res => {
this.selectedApp.AppSecret = res.data;
... | mit |
amironov73/ManagedIrbis2 | OldSource/Libs/ManagedIrbis/Source/Search/Infrastructure/SearchContext.cs | 1370 | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/* SearchContext.cs --
* Ars Magna project, http://arsmagna.ru
* -------------------------------------------------------
* Status: poor
*/
#region Using ... | mit |
balazspete/multi-hop-train-journey-booking | doc/data/InconsistentDataException.html | 9736 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_65) on Fri Dec 06 02:55:11 GMT 2013 -->
<TITLE>
InconsistentDataException
</TITLE>
<META NAME="date" CONTENT="2013-12-06">
<LINK REL ="stylesheet" ... | mit |
patrickcate/dutch-art-daily | __tests__/unit/components/details-list.spec.js | 745 | import DetailsList from '@components/details-list.vue'
describe('DetailsList Component', () => {
let wrapper
let options
beforeEach(() => {
options = {
propsData: {
id: '01-01',
},
}
wrapper = createWrapper(DetailsList, options)
})
it('is a Vue instance', () => {
expect... | mit |
Charcoals/PivotalTracker.NET | PivotalTrackerDotNet/StoryService.cs | 17068 | using System.Collections.Generic;
using System.Linq;
using PivotalTrackerDotNet.Domain;
using RestSharp;
using Parallel = System.Threading.Tasks.Parallel;
namespace PivotalTrackerDotNet
{
public class StoryService : AAuthenticatedService, IStoryService
{
private const string SpecifiedIterati... | mit |
ryanlederman/furr | ImageMagick/include/magick/methods.h | 59270 | /*
ImageMagick Magick API Method Prefix.
nm .libs/libMagick.a | grep ' T ' | \
awk '{ printf("#define %s PrependMagickMethod(%s)\n", $3, $3); }' | \
sort
*/
#ifndef _MAGICK_METHOD_H
#define _MAGICK_METHOD_H
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
#if defined(Mag... | mit |
madigun697/blog | _posts/2018-10-31-Prediction-of-shipping-delay-based-on-AIS-Data.md | 2843 | ---
layout: post
title: "Prediction of shipping delay based on AIS Data"
date: 2018-10-31
excerpt: "Intelligent Logistics Risk Analytics"
categories:
- Project
tags:
- AIS
- prediction
- clustering
- vessel
- logistics
comments: false
---
<p align="center">
<img src="https://user-images.githubusercontent.com/847195... | mit |
TNOCS/csTouch | framework/csCommonSense/Types/DataServer/PoI/ColorReflector.cs | 2540 | using System;
using System.Globalization;
using System.Reflection;
using System.Windows.Media;
namespace DataServer
{
public static class ColorReflector
{
public static void SetFromHex(this Color c, string hex) {
var c1 = ToColorFromHex(hex);
c.A = c1.A;
c.R = c1.R;... | mit |
naej56/make_upload | README.md | 2550 | # make_upload
Script bash qui permet de simplifier la création de torrent et de prez pour des fichiers vidéo.
Permet la création automatique d'un dossier prez_nom_du_fichier_a_partager dans le répertoire où la commande est lancée.
Va créer dans ce dossier :
- Un fichier nom_du_fichier_a_partager.nfo qui contient le rés... | mit |
StoRo17/Meower | vendor/composer/autoload_classmap.php | 66152 | <?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'File_Iterator' => $vendorDir . '/phpunit/php-file-iterator/src/Iterator.php',
'File_Iterator_Facade' => $vendorDir . '/phpunit/php-file-iterator/src/Facade.php',
'... | mit |
marcos1490/Chirripo-Cuesta-de-los-Arrepentidos-Challenge-1 | README.md | 2531 | Chirripo Cuesta de los Arrepentidos - Challenge 1
===============================================
##Suspicious Email Detector
### Description
Create a tool that will automatically parse emails that are delivered to a configured mailbox (the tool must monitor an email account continuously). The idea is that the tool d... | mit |
veeqo/ups-ruby | lib/ups/builders/international_invoice_product_builder.rb | 1835 | require 'ox'
module UPS
module Builders
# The {InternationalProductInvoiceBuilder} class builds UPS XML International invoice Produt Objects.
#
# @author Calvin Hughes
# @since 0.9.3
# @attr [String] name The Containing XML Element Name
# @attr [Hash] opts The international invoice product pa... | mit |
lynix/temper2csv | src/main.c | 4927 | /* Copyright 2014 Alexander Koch <lynix47@gmail.com>
*
* This file is part of 'temper2csv'.
*
* 'temper2csv' is distributed under the MIT License, see LICENSE file.
*/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <semaphore.h>
#include <stdarg.h>
#include <getopt.h>
#include <stdint.h>
#in... | mit |
nomlab/octaccord | lib/octaccord.rb | 213 | require "octaccord/version"
require "octaccord/errors"
require "octaccord/command"
require "octaccord/formatter"
require "octaccord/iteration"
require "extensions"
module Octaccord
# Your code goes here...
end
| mit |
panchr/python-bittrex | bittrex/bittrex.py | 9819 | # Rushy Panchal
"""
See https://bittrex.com/Home/Api
"""
import urllib
import time
import requests
import hmac
import hashlib
BUY_ORDERBOOK = 'buy'
SELL_ORDERBOOK = 'sell'
BOTH_ORDERBOOK = 'both'
PUBLIC_SET = ['getmarkets', 'getcurrencies', 'getticker', 'getmarketsummaries', 'getorderbook',
'getmarkethistor... | mit |
Adventech/sabbath-school-lessons | src/pl/2022-01/02/04.md | 2014 | ---
title: Jezus jest naszym Obrońcą
date: 04/01/2022
---
`Porównaj 1 Sm 8,19-20 z Hbr 2,14-16. Czego Izraelici oczekiwali od króla i jak te oczekiwania wypełniły się w Jezusie?`
Izraelici pragnęli, by król był ich sędzią oraz wodzem podczas bitew, bo zapomnieli, że Bóg jest ich Królem. Zupełne przywrócenie panowan... | mit |
halzate93/solver | lib/src/co/edu/eafit/solver/lib/systemsolver/iterative/ENorm.java | 105 | package co.edu.eafit.solver.lib.systemsolver.iterative;
public enum ENorm {
One, Infinite, Euclidean
}
| mit |
linjohn527/aifengxian | LoveBeeFresh/LoveBeeFresh/Classes/Home(首页)/Model/Address.h | 620 | //
// Address.h
// LoveBeeFresh
//
// Created by linjohn on 4/11/16.
// Copyright © 2016 linjohn. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface Address : NSObject
/** */
@property(copy,nonatomic)NSString *accept_name;
/** */
@property(copy,nonatomic)NSString *telphone;
/** */
@property(c... | mit |
HugoNikanor/note-system | mysql/image_modules.sql | 186 | create table image_modules
(
id int NOT NULL AUTO_INCREMENT,
image_src varchar(2000),
title_text varchar(2000),
module_id int NOT NULL,
note_id int NOT NULL,
PRIMARY KEY (id)
);
| mit |
1999/enb | lib/cache/cache-storage.js | 2450 | /**
* CacheStorage
* ============
*/
var fs = require('fs');
var dropRequireCache = require('../fs/drop-require-cache');
/**
* CacheStorage — хранилище для кэша.
* @name CacheStorage
* @param {String} filename Имя файла, в котором хранится кэш (в формате JSON).
* @constructor
*/
function CacheStorage(filename) ... | mit |
achlubek/vengineandroidndk | app/src/main/cpp/FrustumCone.cpp | 549 | #include "stdafx.h"
#include "FrustumCone.h"
using namespace glm;
FrustumCone::FrustumCone()
{
}
FrustumCone::~FrustumCone()
{
}
void FrustumCone::update(mat4 rotprojmatrix)
{
leftBottom = getDir(vec2(-1, -1), rotprojmatrix);
rightBottom = getDir(vec2(1, -1), rotprojmatrix);
leftTop = getDir(vec2(-1, 1)... | mit |
alexmunkascy/test_project | web/css/bootstrap.css | 133220 | .clearfix {
*zoom: 1;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
line-height: 0;
}
.clearfix:after {
clear: both;
}
.hide-text {
font: 0/0 a;
color: transparent;
text-shadow: none;
background-color: transparent;
border: 0;
}
.input-block-level {
display: block;
width: 100... | mit |
Earlz/renamedcoin | doc/assets-attribution.md | 3396 | The following is a list of assets used in the renamedcoin source and their proper attribution.
[Wladimir van der Laan](https://github.com/laanwj)
-----------------------
#### Info
* License: MIT
### Assets Used
src/qt/res/icons/clock*.png, src/qt/res/icons/tx*.png,
src/qt/res/src/clock_green.svg, src/qt/res/src/clo... | mit |
TingPing/plugins | HexChat/bansearch.py | 5101 | import hexchat
import re
__module_name__ = 'BanSearch'
__module_author__ = 'TingPing'
__module_version__ = '2'
__module_description__ = 'Search for bans/quiets matching a user'
banhook = 0
quiethook = 0
endbanhook = 0
endquiethook = 0
banlist = []
quietlist = []
regexescapes = {'[':r'\[', ']':r'\]', '.':r'\.'}
ircr... | mit |
marcusolsson/passtray | pathtree/tree.go | 353 | package pathtree
// Items ...
type Items map[string]Items
// Add recursively adds a slice of strings to an Items map and makes parent
// keys as needed.
func (i Items) Add(path []string) {
if len(path) > 0 {
if v, ok := i[path[0]]; ok {
v.Add(path[1:])
} else {
result := make(Items)
result.Add(path[1:])... | mit |
taskforcedev/DiabloDB | app/Http/Controllers/Controller.php | 305 | <?php
namespace DiabloDB\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesCommands;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
abstract class Controller extends BaseController
{
use DispatchesCommands, ValidatesRequests;
}
| mit |
rfink/koa-session-mongoose | index.js | 2003 | /**
* Module dependencies
*/
var mongoose = require('mongoose')
, Schema = mongoose.Schema;
/**
* @constructor
*/
var MongooseStore = function (Session) {
this.Session = Session;
};
/**
* Load data
*/
// for koa-generic-session
MongooseStore.prototype.get = function *(sid, parse) {
try {
var data = y... | mit |
rmoliva/dynamic_model | lib/dynamic_model/type/date.rb | 93 | module DynamicModel
module Type
class Date < DynamicModel::Type::Base
end
end
end | mit |
gpedro/otclient | src/client/map.h | 9616 | /*
* Copyright (c) 2010-2015 OTClient <https://github.com/edubart/otclient>
*
* 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... | mit |
suranartnc/graphql-blogs-app | .core/app/utils/coreui.js | 162 | export function mapToCssModules (className, cssModule) {
if (!cssModule) return className
return className.split(' ').map(c => cssModule[c] || c).join(' ')
}
| mit |
istresearch/PulseTheme | kibana/src/core_plugins/timelion/server/series_functions/condition.js | 2900 | const alter = require('../lib/alter.js');
const _ = require('lodash');
const Chainable = require('../lib/classes/chainable');
const argType = require('../handlers/lib/arg_type.js');
module.exports = new Chainable('condition', {
args: [
{
name: 'inputSeries',
types: ['seriesList']
},
{
n... | mit |
Gyoo/Discord-Streambot | src/main/java/entity/TagEntity.java | 1494 | package entity;
import javax.persistence.*;
@Entity
@Table(name = "tag", schema = "streambot", catalog = "")
public class TagEntity {
@Id
@Column(name = "ID", nullable = false)
private long id;
@ManyToOne
@JoinColumn(name = "ServerID", nullable = false)
private GuildEntity guild;
@Basic... | mit |
hangim/zVi | src/string.h | 410 | #ifndef zVi_STRING
#define zVi_STRING
#define STRING_MAX_SIZE 80
struct String {
char *s;
struct String *next;
};
struct String *String_create_node(const char * const buf);
struct String *String_create(const char *buf);
void String_print(const struct String * const head);
void String_write(const struct Strin... | mit |
KlishGroup/prose-pogs | pogs/J/JAXBYHX/FVW/index.md | 2507 | ---
layout: page
title: Fernandez - Vance Wedding
date: 2016-05-24
author: Christine Velazquez
tags: weekly links, java
status: published
summary: Aliquam malesuada nisi eu ex lobortis, vel sagittis nunc.
banner: images/banner/meeting-01.jpg
booking:
startDate: 03/22/2019
endDate: 03/23/2019
ctyhocn: JAXBYHX
gr... | mit |
Futcoin/Futcoin | src/bitcoinrpc.cpp | 48271 | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2014 The FutCoin 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"
#include "util.h"
#inclu... | mit |
cibernox/ember-basic-dropdown | addon/utils/calculate-position.ts | 9067 | interface CalculatePositionOptions {
horizontalPosition: string;
verticalPosition: string;
matchTriggerWidth: boolean;
previousHorizontalPosition?: string;
previousVerticalPosition?: string;
renderInPlace: boolean;
dropdown: any;
}
export type CalculatePositionResultStyle = {
top?: number;
left?: numb... | mit |
api-platform/core | src/Metadata/Resource/Factory/ResourceNameCollectionFactoryInterface.php | 652 | <?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace ApiPlatform\Metadata\Resource\Factory;
use A... | mit |
sonbua/Oryza | src/Oryza.TestBase/Xunit.Extensions/ClassData.cs | 682 | using System;
using System.Collections.Generic;
using System.Reflection;
using Xunit.Sdk;
namespace Oryza.TestBase.Xunit.Extensions
{
public class ClassData : DataAttribute
{
private readonly Type _type;
public ClassData(Type type)
{
if (!typeof (IEnumerable<object[]>).IsA... | mit |
hao123-fe/her-runtime | src/javascript/util/util.js | 459 | __inline('ajax.js');
__inline('amd.js');
__inline('appendToHead.js');
__inline('bind.js');
__inline('copyProperties.js');
__inline('counter.js');
__inline('derive.js');
__inline('each.js');
__inline('hasOwnProperty.js');
__inline('inArray.js');
__inline('isArray.js');
__inline('isEmpty.js');
__inline('isFunction.js');
... | mit |
emicklei/melrose | dsl/var_delegates.go | 2696 | package dsl
import (
"fmt"
"github.com/emicklei/melrose/core"
"github.com/emicklei/melrose/notify"
)
// At is called from expr after patching []. One-based
func (v variable) At(index int) interface{} {
m, ok := v.store.Get(v.Name)
if !ok {
return nil
}
if intArray, ok := m.([]int); ok {
if index < 1 || i... | mit |
JFlavell/ditest | app/partials/ingDetail.html | 477 | <ul class="menu">
<li>
<a href="#/ingredients">
Ingredient List
</a>
</li>
</ul>
<div class="hero-unit">
<h1>{{ing.ingredient.name}}:
<a ng-href="#/ingredients/{{ing.ingredient.parentIngredient}}">
{{ing.ingredient.parentIngredient}}
</a>
</h1>
<hr/>
<h3>Links to: </h3>
<ul>
<li ng-repeat="l... | mit |
wonsekim/WRN_visualization | README.md | 191 | # WRN_visualization
Nothing's here.
This must have been a private project. But as ever like you, I do not have such a wealth to deserve private repo.
Getting done with what i meant, go away.
| mit |
cdelafuente/jac | src/Jac/AboutUsBundle/Resources/public/css/about_us.css | 1423 | .main-content h2 {
font-size: 2em;
}
.main-content h2:before,
.main-content h2:after,
.main-content #history:before
{
content: '';
display: block;
width: 49px;
height: 49px;
position: absolute;
background: url('../images/rivet.png');
}
.main-content h2:before {
top: 0;
right: 0;
}
... | mit |
wbyoung/jsi-blowtorch | lib/fs-extras.js | 4456 |
'use strict';
var _ = require('lodash');
var fs = require('fs');
var path = require('path');
var util = require('util');
var async = require('./async');
/**
* Read a directory recursively.
* The directory will be read depth-first and will return paths relative
* to the base directory. It will only result in file... | mit |
aphyr/bitcask-ruby | lib/bitcask.rb | 3087 | class Bitcask
require 'zlib'
require 'stringio'
$LOAD_PATH << File.expand_path(File.dirname(__FILE__))
require 'bitcask/hint_file'
require 'bitcask/data_file'
require 'bitcask/keydir'
require 'bitcask/errors'
require 'bitcask/version'
include Enumerable
TOMBSTONE = "bitcask_tombstone"
# Opens... | mit |
diversario/node-ssdp | lib/index.js | 13902 | 'use strict'
/*
MIT License
Copyright (c) 2016 Ilya Shaisultanov
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, ... | mit |
whatsthehubbub/rippleeffect | templates/riskgame/player_profile_edit.html | 2585 | {% extends "base.html" %}
{% block content %}
<section class="modal message">
<div class="row">
<div class="sheet large-12 columns">
{% if profileform.errors %}
<div class="form-errors text-center">
Please enter a name.
... | mit |
ponydevs/MLPVC-RR | app/UserSettingForm.php | 7139 | <?php
namespace App;
use App\Models\User;
use RuntimeException;
class UserSettingForm {
private string $setting_name;
private ?User $current_user;
private bool $can_save;
public const INPUT_MAP = [
'cg_defaultguide' => [
'type' => 'select',
'options' => [
'desc' => 'Choose your prefe... | mit |
willsbor/ApiFaker | db/schema.rb | 1254 | # encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative sou... | mit |
viktoria-flowers/ViktoriaFlowers | public/css/skdslider.css | 6010 | .skdslider{
width:100%;
position: relative;
display: block;
overflow:hidden;
height: 500px;
}
.skdslider:after {
content: '';
padding-top: 50%;
display: block;
}
.skdslider ul.slides{ margin:0; padding:0; list-style-type:none;}
.skdslider ul.slides li
{
display: none;
}
.skdslider ul.slides ... | mit |
Cyberwatch/cbw-security-fixes | Red_Hat_6/x86_64/2016/RHSA-2016:1944.sh | 1859 | #!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2016:1944
#
# Security announcement date: 2016-09-28 13:40:22 UTC
# Script generation date: 2017-01-16 21:17:40 UTC
#
# Operating System: Red Hat 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - bind-debuginfo.i686:9.8.2-0.47.rc1.el6_... | mit |
apo-j/Projects_Working | S/SOURCE/SOURCE.BackOffice/SOURCE.BackOffice.Web.Controllers/Modularity/BaseController.cs | 1754 | using System.Web.Mvc;
namespace SOURCE.BackOffice.Web.Controllers.Modularity
{
public class BaseController : Controller
{
protected string Rubrique { get; set; }
protected string Page { get; set; }
protected string Secteur { get; set; }
public BaseController()
... | mit |
brains-on-art/culture | culture_logic.py | 7076 | import signal
import subprocess
import sys
import time
import numba
import numpy as np
import SharedArray as sa
sys.path.append('./pymunk')
import pymunk as pm
max_creatures = 50
@numba.jit
def _find_first(vec, item):
for i in range(len(vec)):
if vec[i] == item:
return i
return -1
@numb... | mit |
Azure/azure-sdk-for-go | sdk/resourcemanager/azuredata/armazuredata/zz_generated_response_types.go | 5207 | //go:build go1.16
// +build go1.16
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the cod... | mit |
s2t2/trailmix-solo | site-cookbooks/trailmix/recipes/mail.rb | 700 | #
# Author:: MJ Rossetti (@s2t2)
# Cookbook Name:: trailmix
# Recipe:: mail
#
# Install sendmail package.
package "sendmail"
package "sendmail-cf"
# Upload sendmail configuration files.
template "/etc/mail/local-host-names" do
source "mail/local-host-names.erb"
owner "root"
group "root"
end
template "/etc/ma... | mit |
stoiandan/msg-code | Marius/Day6/src/main/java/util/Sorter.java | 118 | package main.java.util;
/**
*
* @author mancim
*/
public class Sorter implements SortUtil,AscSortUtil{
}
| mit |
Avarea/Programming-Fundamentals | IntroAndSyntax/03Megapixels/Properties/AssemblyInfo.cs | 1395 | 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("03M... | mit |
tablexi/nucore-open | vendor/engines/sanger_sequencing/db/migrate/20160802202924_fix_sanger_sequencing_submission_cascades_for_oracle.rb | 467 | # frozen_string_literal: true
class FixSangerSequencingSubmissionCascadesForOracle < ActiveRecord::Migration[4.2]
def change
# Oracle does not support on_update so we need to remove and re-add it to keep
# consistent with the MySQL installations
remove_foreign_key :sanger_sequencing_samples, column: :su... | mit |
deckerld/scraptcha | test/file-server.js | 847 | var express = require('express');
var scraptcha = require('scraptcha');
// Scraptcha images source information.
var imageInformation = {path: __dirname + "/images/green/",
filePrefix: "i_cha_",
fileExtension: ".gif"};
// Initialize the Scraptcha data.
sc... | mit |
afreeorange/log | _scripts/push.sh | 631 | #!/usr/bin/env bash
# Use this instead of Nodegit. It's big and unwieldy.
MISC_ASSET_PATH=$(grep "const MISC_PATH" _scripts/eleventy/config.js | cut -d\" -f2)
# Now sync the static assets
if [[ ! -e "$MISC_ASSET_PATH" ]]; then
echo "Could could find the misc assets folder."
exit 1
fi
DATE=$(date "+%Y-%m-%dT... | mit |
dmpe/Semester2and5-Examples | src-semester2/observerSampleJavaAPI/Main.java | 467 | package observerSampleJavaAPI;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
NameArrayObservable na = new NameArrayObservable();
NameArrayObserver nav = new NameArrayObserver();
na.addObserver(nav);
Scanner sc = new Scanner(System.in);
System.out.print... | mit |
translationexchange/tml-python | tml/config.py | 10511 | import logging
from copy import copy
from six import iteritems, reraise
import sys
from .base import Singleton
from .utils import APP_DIR, rel, merge
class BaseConfigMixin(dict):
def __setitem__(self, key, value):
self.__dict__[key.lower()] = value
def __getitem__(self, key):
return self.__d... | mit |
mleczek/cbuilder | tests/Package/PackageTest.php | 14684 | <?php
namespace Mleczek\CBuilder\Tests\Package;
use DI\Container;
use DI\ContainerBuilder;
use Mleczek\CBuilder\Constraint\Parser;
use Mleczek\CBuilder\Environment\Config;
use Mleczek\CBuilder\Package\Exceptions\InvalidTypeException;
use Mleczek\CBuilder\Package\Exceptions\UnrecognizedArchitectureException;
use Mlecz... | mit |
applegrain/angulary-phonecat | app/partials/phone-list.html | 771 | <div class="container-fluid">
<div class="row">
<div class="col-md-3">
<!--Sidebar content-->
<h2>Hello, {{ name }}</h2>
Search: <input ng-model="query">
Sort by:
<select ng-model="orderProp">
<option value="name">Alphabetical</option>
<option value="age">Newest</opt... | mit |
Nikh13/securbank | src/main/java/securbank/authentication/CustomAuthenticationSuccessHandler.java | 1123 | package securbank.authentication;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;... | mit |
supamii/ah-dashboard-plugin | VERSIONS.md | 684 | ## Version 0.3.0 (26-Jan-2015)
* ActionHero V10 Support
* Bugfix issue with plugins page
* Adjusted Logfile read config to start at the end
* Added file exists for logfile if its located elsewhere (thx @JoHense)
## Version 0.2.0 (26-Oct-2014)
* Finalization of REDIS Viewer
** Now you can Add/Edit/Remove Keys
* Added r... | mit |
birdland/dlkit-doc | dlkit/hierarchy/records.py | 848 |
from ..osid import records as osid_records
class HierarchyRecord(osid_records.OsidRecord):
"""A record for a ``Hierarchy``.
The methods specified by the record type are available through the
underlying object.
"""
class HierarchyQueryRecord(osid_records.OsidRecord):
"""A record for a ``Hier... | mit |
tedyhy/SCI | kissy-1.4.9/src/editor/sub-modules/plugin/dent-cmd/src/dent-cmd.js | 10700 | /**
* @ignore
* Add indent and outdent command identifier for KISSY Editor.
* @author yiminghe@gmail.com
*/
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
KISSY.add(function (S, require) {
var Editor = require('... | mit |
mmcgrana/pgpin | worker.go | 3817 | package main
import (
"database/sql"
"fmt"
"github.com/jrallison/go-workers"
"github.com/lib/pq"
"log"
"time"
)
func WorkerExtractPgerror(err error) (*string, error) {
pgerr, ok := err.(pq.PGError)
if ok {
msg := pgerr.Get('M')
return &msg, nil
}
if err.Error() == "driver: bad connection" {
msg := "co... | mit |
robertleelittleiii/silverweb_bridereg | test/models/gift_registry_test.rb | 126 | require 'test_helper'
class GiftRegistryTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
| mit |
michel-zimmer/smartpad-hoverboard | Assets/OVR/Scripts/OVRManager.cs | 20634 | /************************************************************************************
Copyright : Copyright 2014 Oculus VR, LLC. All Rights reserved.
Licensed under the Oculus VR Rift SDK License Version 3.3 (the "License");
you may not use the Oculus VR Rift SDK except in compliance with the License,
which is pr... | mit |
pottzer/home-assistant | homeassistant/components/device_tracker/tplink.py | 9226 | """
homeassistant.components.device_tracker.tplink
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Device tracker platform that supports scanning a TP-Link router for device
presence.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/device_tracker.tplink.ht... | mit |
v8-dox/v8-dox.github.io | dcd41ca/html/classv8_1_1_heap_graph_path.html | 8662 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | mit |
stephen144/ypreg | spec/features/user_visits_site_spec.rb | 1800 | require 'rails_helper'
feature 'User can visit the home page' do
scenario 'and see upcoming events on the home page' do
events = create_list(:event_with_registrations, 2)
visit root_path
expect(page).to have_content('Upcoming events')
expect(page).to have_content(events.first.title)
expect(page)... | mit |
Unitech/Ghost | core/test/functional/client/settings_test.js | 16580 | // # Settings Test
// Test the various tabs on the settings page
/*globals CasperTest, casper */
// These classes relate to elements which only appear when a given tab is loaded.
// These are used to check that a switch to a tab is complete, or that we are on the right tab.
var generalTabDetector = '.settings-content... | mit |
marianamn/Telerik-Academy-Activities | Homeworks/15. DSA/02. Recursion/CombinationsWithouthDuplicates/CombinationsWithouthDuplicates.cs | 1140 | // Modify the previous program to skip duplicates:
// n=4, k=2 → (1 2), (1 3), (1 4), (2 3), (2 4), (3 4)
namespace CombinationsWithouthDuplicates
{
using System;
public class CombinationsWithouthDuplicates
{
public static void Main()
{
Console.WriteLine("Enter n:");
... | mit |
cliffano/swaggy-jenkins | clients/csharp-dotnet2/generated/src/main/CsharpDotNet2/Org/OpenAPITools/Model/ResponseTimeMonitorData.cs | 1733 | using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace Org.OpenAPITools.Model {
/// <summary>
///
/// </summary>
[DataContract]
public class ResponseTimeMonitorData {
/// <summary>
/// Gets or... | mit |
aurarad/auroracoin | test/util/auroracoin-util-test.py | 6651 | #!/usr/bin/env python3
# Copyright 2014 BitPay Inc.
# Copyright 2016-2019 The Bitcoin Core developers
# Copyright 2015-2019 The Auroracoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test framework for auroracoin ... | mit |
jyotikamboj/container | pf-framework/src/play/src/main/java/play/Play.java | 1294 | /*
* Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com>
*/
package play;
import play.core.j.JavaModeConverter$;
/**
* High-level API to access Play global features.
*/
public class Play {
/**
* Returns the currently running application.
*/
public static Application application() {
... | mit |
LambdaInnovation/LambdaCraft-Legacy | src/main/java/cn/lambdacraft/crafting/block/generator/TileGeneratorBase.java | 2075 | /**
* Copyright (c) LambdaCraft Modding Team, 2013
* 版权许可:LambdaCraft 制作小组, 2013.
* http://lambdacraft.half-life.cn/
*
* LambdaCraft is open-source. It is distributed under the terms of the
* LambdaCraft Open Source License. It grants rights to read, modify, compile
* or run the code. It does *NOT* grant the r... | mit |
SSheldon/rust-objc | travis_install.sh | 581 | #! /usr/bin/env sh
set -eu
gnustep_install() {
git clone -b 1.9 https://github.com/gnustep/libobjc2.git
mkdir libobjc2/build
cd libobjc2/build
export CC="clang"
export CXX="clang++"
cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME/libobjc2_staging ../
make install
}
for arch in $IOS_ARCHS; do
... | mit |
spekary/qcubed-orm | codegen/templates/db_orm/class_gen/json_methods.tpl.php | 5513 | <?php
// NOTE for template develoepers: SQL and most other databases are either latin characters only, or Unicode for their
// identifiers, so you don't need to worry about encoding issues for identifiers.
?>
// this function is required for objects that implement the
// IteratorAggregate interface
publi... | mit |
iSumitG/topic-explorer | www/lib/inpho/util.js | 1940 | // Utility namespace for InPhO JavaScript. Contains dynamic URL builder.
var inpho = inpho || {};
inpho.util = inpho.util || {};
/* inpho.util.url
* Takes a path for the inpho rest API and builds an absolute URL based on the
* current host and protocol.
*
* // running on http://inphodev.cogs.indiana.edu:8080
* >... | mit |
TsvetanKT/TelerikHomeworks | Databases/09.EntityFrameworkPerformance/TestingPerformance/TelerikAcademyEntities/Address.cs | 672 | namespace TestingPerformance
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;
public partial class Address
{
public Address()
{
Emp... | mit |