code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
/* eslint-env mocha */
import expect from 'expect';
import FunctionChecker from '../src/FunctionChecker.js';
import OptionsManager from '../src/OptionsManager.js';
import Structure from '../src/Structure.js';
describe('optionsManager', () => {
let manager;
beforeEach(() => {
manager = new OptionsManager();
... | Jerskouille/options-manager | test/OptionsManager.js | JavaScript | mit | 800 |
#!/bin/bash
SIGNAL=~/local-area/Stop4Body/nTuples_v2016-07-12/T2DegStop_300_270_bdt.root
BACKGROUND=~/local-area/Stop4Body/nTuples_v2016-07-12/Background_bdt.root
if [[ -f ${SIGNAL} && -f ${BACKGROUND} ]] ; then
trainMVA --signalFile ${SIGNAL} --backgroundFile ${BACKGROUND}
root runTMVAGui.C
fi
| cbeiraod/SkeletonAnalysis | macros/trainMVA.sh | Shell | mit | 303 |
/**
* C++ interface to a python PropertyNode()
*/
#include "pyprops.h"
#include <string>
#include <sstream>
using std::string;
using std::ostringstream;
// 'cache' is a global c-string -> python unicode name cache. This
// conversion is relatively costly in python3, so this cache save
// repeating the work many t... | AuraUAS/aura-props | library/src/pyprops.cpp | C++ | mit | 21,619 |
// Copyright (c) 2014-2015 Oliver Eilhard. All rights reserved.
// Use of this source code is governed by the MIT license.
// See LICENSE file for details.
package balancers
import (
"net/http"
"net/url"
"sync"
"time"
)
// Connection is a single connection to a host. It is defined by a URL.
// It also maintains s... | olivere/balancers | connection.go | GO | mit | 2,828 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.07.... | simokhov/schemas44 | src/main/java/ru/gov/zakupki/oos/signincoming/_1/BankGuaranteeReturnInvalid.java | Java | mit | 2,353 |
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++
| | |__ | | | | | | version 2.1.1
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Modified by mwthinker, to use tabs in "dump" function and use fifo_map instead
of std::map in order to keep the json order.
Licensed under the... | mwthinker/Tetris | nlohmann-json/src/json.hpp | C++ | mit | 448,254 |
using System;
using NetRuntimeSystem = System;
using System.ComponentModel;
using NetOffice.Attributes;
namespace NetOffice.MSHTMLApi
{
/// <summary>
/// DispatchInterface IHTMLDOMNode2
/// SupportByVersion MSHTML, 4
/// </summary>
[SupportByVersion("MSHTML", 4)]
[EntityType(EntityType.IsDispatchInterface)]
... | NetOfficeFw/NetOffice | Source/MSHTML/DispatchInterfaces/IHTMLDOMNode2.cs | C# | mit | 3,725 |
from . uuid64 import *
| jdowner/uuid64 | uuid64/__init__.py | Python | mit | 23 |
class Product
include Mongoid::Document
field :_id, type: String, default: -> { name.to_s.parameterize }
field :name, type: String
field :price, type: BigDecimal
field :released_on, type: Date
validates_presence_of :name
embeds_many :reviews
end
| xeraseth/Rails-Mongo | app/models/product.rb | Ruby | mit | 262 |
# tar-polarity
Aspect-Oriented Sentiment Analysis project for the Text Analysis and Retrieval course
| Tweety-FER/tar-polarity | README.md | Markdown | mit | 101 |
# mydocker_lnmp
A docker config for Linux - Nginx or Apache2 - MySQL5.7 - PHP7. It is divided into 3 containers:
1. Nginx or Apache2 is running as web server Container, which handles requests and makes responses.
2. PHP or PHP-FPM is put in `PHP-FPM` Container, it retrieves php scripts from host, interprets, executes ... | at-dungnguyen/mydocker_lnmp | README.md | Markdown | mit | 946 |
require 'spec_helper'
require 'penn_extranet_adapter.rb'
describe PennExtranetAdapter do
let(:valid_attributes) { { "username" => "XXXXXXX", "password" => "XXXXXXX" } }
describe "valid_agent?" do
it "should detect a valid" do
x = PennExtranetAdapter.new valid_attributes["username"], "x"
authenti... | eugyev/extranet-adapter-2 | spec/lib/penn_extranet_adapter_spec.rb | Ruby | mit | 965 |
class CreateNodes < ActiveRecord::Migration
def change
create_table :nodes do |t|
t.string :name
t.integer :map_id
t.timestamps
end
add_index :nodes, :map_id
add_index :nodes, [:map_id, :name], :unique => true
end
end
| guivinicius/logistique | db/migrate/20140503135157_create_nodes.rb | Ruby | mit | 258 |
angular.module('schemaForm').config(
['schemaFormProvider', 'schemaFormDecoratorsProvider', 'sfPathProvider',
function(schemaFormProvider, schemaFormDecoratorsProvider, sfPathProvider) {
var download = function(name, schema, options) {
if (schema.type === 'string' && schema.format ==... | rafialikhan/angular-schema-form-download | src/angular-schema-form-download.js | JavaScript | mit | 1,602 |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... | odangitsdjang/CleaningApp | bundle.js | JavaScript | mit | 4,338 |
#!/usr/bin/env python
# T. Carman
# January 2017
import os
import json
def get_CMTs_in_file(aFile):
'''
Gets a list of the CMTs found in a file.
Parameters
----------
aFile : string, required
The path to a file to read.
Returns
-------
A list of CMTs found in a file.
'''
data = read_paramf... | tobeycarman/dvm-dos-tem | scripts/param_util.py | Python | mit | 11,387 |
//This file is generated by btsgen. DO NOT EDIT.
//operation sample data for OperationTypeCustom
package samples
func init() {
sampleDataCustomOperation[2] = `{
"data": "466f6f626172",
"fee": {
"amount": 164678,
"asset_id": "1.3.0"
},
"id": 16,
"payer": "1.2.30127",
"required_auths": [
"1.2.... | denkhaus/bitshares | gen/samples/customoperation_2.go | GO | mit | 352 |
'use strict';
describe('service', function() {
var countKeys = function(data) {
var count = 0
for(var k in data) {
count++;
}
return count;
}
// load modules
beforeEach(module('mavrixAgenda'));
// Test service availability
it('check the existence of Storage factory', in... | jomarmar/mavrix-test | app/components/users/users.test.js | JavaScript | mit | 606 |
<?php
namespace User\UserBundle\Controller;
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Reservable\ActivityBundle\Entity\Activity;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\JsonResponse;
use... | silver819/alm-cristina | src/User/UserBundle/Controller/ConsultController.php | PHP | mit | 8,653 |
//
// Resource.h
// Chilli Source
// Created by Ian Copland on 07/07/2014.
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Tag Games Limited
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// ... | fjpavm/ChilliSource | Source/ChilliSource/Core/Resource.h | C | mit | 1,586 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>vuetify-dropzone</title>
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:100,100i,200,200i... | lioneil/pluma | core/submodules/Library/assets/vuetify-dropzone/index.html | HTML | mit | 676 |
var crossBrowser = function (browser, x, y) {
if (browser === 'Firefox 39') {
x = x - 490;
y = y + 10;
} else if (browser === 'MSIE 10') {
x = x - 588.7037353;
y = y + 3 - 0.32638931;
} else if (browser === 'IE 11') {
x = x - 641;
y = y + 2.5;
} else if (b... | g-yonchev/DarkNStormy-JS-UI-and-DOM-TeamProject | ConnectTheDots/public/scripts/crossBrowsers.js | JavaScript | mit | 421 |
<?php namespace App\Repositories;
interface BaseRepository
{
public function paginateAll($perPage = 15, $pageName = 'page');
} | greatwitenorth/lumen-doctrine-hateoas | app/Repositories/BaseRepository.php | PHP | mit | 128 |
/*
* This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file
* at the root of this project for more details.
*/
package io.github.nucleuspowered.nucleus.core.scaffold.command.modifier.impl;
import io.github.nucleuspowered.nucleus.core.scaffold.command.ICommandContext;
import io.... | NucleusPowered/Nucleus | nucleus-core/src/main/java/io/github/nucleuspowered/nucleus/core/scaffold/command/modifier/impl/RequiresEconomyModifier.java | Java | mit | 1,279 |
/**
* Custom styles. Loaded after bootstrap.
*/
html,
body {
height:100%;
}
body {
background-color: #dde4ec;
font-family: 'Lato', sans-serif;
color: #6e6e6e;
}
.container {
min-height: 100%;
margin-bottom: -200px; /* Height of footer */
height: auto;
position: relative;
}
#content {
padding: 40px 0;
... | ocean90/wpfmw-gallery | assets/css/style.css | CSS | mit | 3,786 |
namespace Pote.CommandLine.Mocks
{
/// <summary>
/// A verb with an optional option.
/// </summary>
public class VerbWithOptionalOption : Verb
{
/// <summary>
/// Some helpful hint on how to use this verb.
/// </summary>
public override string Help
... | pawwkm/Pote.CommandLine | Pote.CommandLine.Tests/Mocks/VerbWithOptionalOption.cs | C# | mit | 1,172 |
# -*- test-case-name: twisted.test.test_task,twisted.test.test_cooperator -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Scheduling utility methods and classes.
@author: Jp Calderone
"""
__metaclass__ = type
import time
from zope.interface import implements
from twisted.python imp... | Varriount/Colliberation | libs/twisted/internet/task.py | Python | mit | 24,723 |
<!DOCTYPE html>
<html lang="ko-kr">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="generator" content="Hugo 0.15" />
<title>#Ludens</title>
<meta property=... | ludens/ludens.kr | tags/branding/index.html | HTML | mit | 10,684 |
#ifndef KALI_UI_NATIVE_WIDGETS_BASE_INCLUDED
#define KALI_UI_NATIVE_WIDGETS_BASE_INCLUDED
#include "kali/function.h"
#include "kali/containers.h"
#include "kali/ui/base.h"
// ............................................................................
namespace kali {
namespace ui {
namespace native {
namespa... | seven-phases/spectrum-analyzer | libraries/kali/ui/native/widgets.base.h | C | mit | 1,149 |
<?php
namespace DUDEEGO\PlatformBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Vich\Up... | HosseinChibane/CFPMS | src/DUDEEGO/PlatformBundle/Form/EA_DocumentType.php | PHP | mit | 4,433 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-21 12:06
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | srijannnd/Login-and-Register-App-in-Django | simplesocial/groups/migrations/0001_initial.py | Python | mit | 1,868 |
<html><img border=0 src=42397-65-9.txt alt=42397-65-9.txt></img><body>
"x"
"1" "KAZIUS, J, MCGUIRE, R AND BURSI, R. DERIVATION AND VALIDATION OF TOXICOPHORES FOR MUTAGENICITY PREDICTION. J. MED. CHEM. 48: 312-320, 2005"
</body></html>
| andrewdefries/Ames_ToxBenchmark | 42397-65-9.txt.html | HTML | mit | 235 |
/* ************************************************************************
*
* qxcompiler - node.js based replacement for the Qooxdoo python
* toolchain
*
* https://github.com/qooxdoo/qooxdoo-compiler
*
* Copyright:
* 2011-2018 Zenesis Limited, http://www.zenesis.com
*
* License:
* ... | johnspackman/qxcompiler | test/compiler/testapp/source/class/testapp/test/TestPlugins.js | JavaScript | mit | 1,400 |
<?php
namespace Kodix\Support\Traits\Component;
use CComponentEngine;
/**
* This trait makes complex class easier to write
* You just need to change setUrlTemplates404 method with your paths
*
* Class ComplexTrait
* @package Malyusha\Helpers\Traits
*
* @property array $arParams
*/
trait ComplexTrait
{
p... | malyusha/kodix | src/Support/Traits/Component/ComplexTrait.php | PHP | mit | 2,709 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JS Canvas Game Architecture</title>
<link rel="stylesheet" type="text/css" href="css/main.css" />
</head>
<body>
<div id="Container">
<h1>
<a href="https://github.com/... | philpill/js-canvas-game-architecture | index.html | HTML | mit | 1,222 |
/*
* Background sketch
* Author: Uriel Sade
* Date: Feb. 22, 2017
*/
var canvas;
var time_x, time_y, time_z, time_inc;
var field = [];
var particles = [];
var rows, cols;
var scl = 20;
function setup() {
canvas = createCanvas(windowWidth, windowHeight);
canvas.position(0,0);
canvas.style('z-value', '-1... | urielsade/urielsade.github.io | flowfield.js | JavaScript | mit | 1,411 |
package org.knowm.xchange.bitstamp.service.marketdata;
import static org.fest.assertions.api.Assertions.assertThat;
import org.junit.Test;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.bitstamp.BitstampExchange;
import org.knowm.xchange.currency.CurrencyPair;
i... | mmithril/XChange | xchange-bitstamp/src/test/java/org/knowm/xchange/bitstamp/service/marketdata/TickerFetchIntegration.java | Java | mit | 929 |
/***************************** Include Files *******************************/
#include "example_core_lite.h"
#include "xparameters.h"
#include <stdio.h>
#include <stdlib.h>
#include "xil_io.h"
/************************** Constant Definitions ***************************/
uint32_t a_tests[] = {1,321097,45,4294967295,0,... | inmcm/Zynq_Custom_Core_Templates | example_core_lite_1.0/drivers/example_core_lite_v1_0/src/example_core_lite_selftest.c | C | mit | 4,428 |
FactoryBot.define do
factory :status do
sequence(:label) { |n| "President #{n}" }
end
end
| piwam/piwam | spec/factories/statuses.rb | Ruby | mit | 98 |
<?php
/*
Unsafe sample
input : get the field UserData from the variable $_POST
sanitize : use of the function addslashes
construction : use of sprintf via a %s with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and... | stivalet/PHP-Vulnerability-test-suite | URF/CWE_601/unsafe/CWE_601__POST__func_addslashes__header_url-sprintf_%s_simple_quote.php | PHP | mit | 1,224 |
print 'Immettere un raggio: '
raggio_stringa = gets
raggio = raggio_stringa.to_i
area = raggio * raggio * Math::PI
puts "L'area del cerchio di raggio #{raggio} e' #{area}"
| guildenstern70/rubyerails | src/AreaDelCerchio.rb | Ruby | mit | 173 |
'use strict';
/* Filters */
angular.module('multi-screen-demo.filters', [
]).
// create your own filter here
filter('yourFilterName', function () {
return function () {
return;
};
}); | drejkim/multi-screen-demo | public/js/filters.js | JavaScript | mit | 193 |
<!DOCTYPE html>
<html>
<head>
<title>MSL BlackSox</title>
<link rel="stylesheet" type="text/css" href="reset.css"/>
<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="index.css"/>
</head>
<body>
<div id="header">
<h1>BlackSox... | drennen42/drennen42.github.io | BlackSox/index.html | HTML | mit | 8,552 |
#!/usr/bin/env ruby
require 'omf-common/servicecall'
#Jabber::debug = true
def run
connection = OMF::XMPP::Connection.new("dom1", "test5", "123")
connection.connect
puts "Client connection status = #{connection.connected?}"
# dom1 = OMF::ServiceCall.add_domain(:type => :http, :uri => "http://localhost:5051")... | nathansamson/OMF | omf-aggmgr/ruby/omf-aggmgr/test/test_service.rb | Ruby | mit | 1,305 |
import test from 'tape'
import { forEach, get, isArray, isMatch, isNumber, omit } from 'lodash'
import {
entityDel, ENTITY_DEL, entityPut, ENTITY_PUT, entityPutAll, ENTITY_PUTALL,
entityUpdate, ENTITY_UPDATE, pickTypeId, tripleDel, TRIPLE_DEL, triplePut, TRIPLE_PUT,
} from '../src'
import { agent, creator, item, ma... | cape-io/redux-graph | test/actions.spec.js | JavaScript | mit | 2,479 |
package com.github.gv2011.util.bytes;
import static com.github.gv2011.testutil.Assert.assertThat;
import static com.github.gv2011.testutil.Matchers.is;
import org.junit.Test;
import com.github.gv2011.util.BeanUtils;
import com.github.gv2011.util.icol.ICollections;
import com.github.gv2011.util.json.JsonUtil... | gv2011/util | test/src/test/java/com/github/gv2011/util/bytes/DataTypeTest.java | Java | mit | 1,762 |
{% extends "base.html" %}
{% block body %}
<h2>{{ character }}'s Journal</h2>
<div class="row">
<div class="col-lg-1"> </div>
<div class="col-lg-11">
{% for post in posts %}
{% include "single_post.html" %}
{% endfor %}
</div>
</div>
{% endblock %} | jcderr/loot | blog/templates/listview.html | HTML | mit | 299 |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <std__vector.hpp>
START_ATF_NAMESPACE
#pragma pack(push, 8)
struct CUnmannedTraderGroupDivisionVersionInfo
{
int m_iType;
std::vect... | goodwinxp/Yorozuya | library/ATF/CUnmannedTraderGroupDivisionVersionInfo.hpp | C++ | mit | 1,173 |
<?php
/*
Version: 1.0
Author: Artur SuÅkowski
Website: http://artursulkowski.pl
*/
class ControllerModuleBreadcrumbBackgroundImage extends Controller {
private $error = array();
public function index() {
$this->language->load('module/breadcrumb_background_image');
$this->document->setTitle('Breadcrumb ... | monkdaf/skuter77-opencart | admin/controller/module/breadcrumb_background_image.php | PHP | mit | 3,475 |
#ifndef ICT_MYSTRING_H__
#define ICT_MYSTRING_H__
namespace ict{
class MyString{
private:
char* data_;
int len_;
// utility
int strlen(const char* str)const;
void strcpy(char* des, const char* src)const;
void strcat(char* des, const char* src)const;
int strcmp(const char*... | sspony/oop244 | documents/OOP-Notes-SAA-master/09-Oct12/mystring.h | C | mit | 783 |
---
class: "vsg-page vsg-page--development"
---
# Get poster data from content
Jemand musste Josef K. verleumdet haben, denn ohne dass er etwas Böses getan hätte, wurde er eines Morgens verhaftet.
»Wie ein Hund!« sagte er, es war, als sollte die Scham ihn überleben. Als Gregor Samsa eines Morgens aus unruhigen
Trä... | tilmanjusten/piedmont | test/fixtures/docs/poster-from-content.md | Markdown | mit | 855 |
package com.kata.businessrules;
import org.w3c.dom.Document;
import com.google.inject.AbstractModule;
import com.google.inject.TypeLiteral;
import com.kata.businessrules.products.Product;
public class MainModule extends AbstractModule {
@Override
protected void configure() {
installDummyModules();
bind(new Ty... | a-ostrovsky/business_rules_kata | src/main/java/com/kata/businessrules/MainModule.java | Java | mit | 895 |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { WeatherComponent } from './components/weather.component';
... | tvinoths/weather | src/app/app.module.ts | TypeScript | mit | 518 |
namespace MachineLearning
{
public enum CallbackFrequency : byte
{
Never = 0,
EachExample = 1,
EachError = 2,
EachEpoch = 3,
EachNEpochs = 4
}
}
| Artem-Romanenia/machine-learning | MachineLearning/CallbackFrequency.cs | C# | mit | 200 |
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
#require File.expand_path("../../config/environment", __FILE__)
#change the above to match the path to the spec/dummy
require File.expand_path("../dummy/config/environment", __FILE__)
require 'rspec/rails'
require 'rs... | afterburnertech/subscribem | spec/spec_helper.rb | Ruby | mit | 2,040 |
<?php
namespace Ems\Contracts\Foundation;
use Ems\Contracts\Core\AppliesToResource;
use Ems\Contracts\Validation\ValidatorFactory;
use Ems\Contracts\Core\HasMethodHooks;
use Ems\Contracts\Core\Extendable;
/**
* The InputNormalizerFactory is the factory for the InputNormalizer objects.
* You should categorize the i... | mtils/php-ems | src/Ems/Contracts/Foundation/InputNormalizerFactory.php | PHP | mit | 3,811 |
using System.Reflection;
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("HorseTrack")]
[assembly: AssemblyDescripti... | yorgov/HorseTrack | HorseTrack/Properties/AssemblyInfo.cs | C# | mit | 1,333 |
<html>
<head>
<title>OKRs are cool!</title>
</head>
<body>
<h1>OKRs are cool!</h1>
<ul>
{% for company in companies %}
<li>
<a href="{% url 'company' pk=company.id %}">{{ company }}</a>
</li>
{% endfor %}... | camda280/okr | okr/templates/index.html | HTML | mit | 492 |
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof exports === 'object') {
module.exports = factory();
} else {
root.UtmConverter = factory();
}
}(this, function () {
////////////////////////////////////////////////////////////////... | urbanetic/utm-converter | src/converter.js | JavaScript | mit | 19,752 |
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
require 'test/unit'
require 'httpauth/digest'
class DigestConversionsTest < Test::Unit::TestCase
cases = {}
cases[:quote_string] = {
'word' => '"word"',
'word word' => '"word word"'
}
cases[:unquote_string] = cases[:quote_string].invert
cases[:in... | Manfred/HTTPauth | test/digest_conversions_test.rb | Ruby | mit | 1,918 |
import loudRejection from 'loud-rejection';
import { fireEvent, getByTestId, getByText } from '@testing-library/dom';
import { act, screen } from '@testing-library/react';
import { MAILBOX_LABEL_IDS } from '@proton/shared/lib/constants';
import {
addApiMock,
clearAll,
getDropdown,
getHistory,
render... | ProtonMail/WebClient | applications/mail/src/app/components/header/MailHeader.test.tsx | TypeScript | mit | 7,113 |
---
product: material
title: Componente React Sem SSR
components: NoSsr
---
# Sem SSR
<p class="description">O NoSsr remove intencionalmente componentes do contexto de Server Side Rendering (SSR).</p>
Esse componente pode ser útil em várias situações:
- Válvula de escape para dependências quebradas que não suportam... | oliviertassinari/material-ui | docs/data/material/components/no-ssr/no-ssr-pt.md | Markdown | mit | 1,583 |
#!/bin/bash
set -xv
#adam-example# ./do_coadd_batch.sh MACS1115+01 W-J-B 'all exposure ' 'none' OCFI 2>&1 | tee -a OUT-coadd_W-J-B.log2
#adam-example# ./do_coadd_batch.sh ${cluster} ${filter} 'good ' 'none' 'OCFR' 'yes' 'yes' 2>&1 | tee -a OUT-coadd_${cluster}.${filter}.log
### new coaddition script
###
### the astro-... | deapplegate/wtgpipeline | adam_do_coadd_batch.sh | Shell | mit | 37,258 |
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<div style="text-align: center; height: 75px; padding:1px; text-transform:capitalize; backgr... | limitist-log/limitist-log.github.io | tags/low-fidelity/index.html | HTML | mit | 1,846 |
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="viewport" content="width=device-width">
</head>
<body>
<script type="text/javascript" src='jquery-1.11.1.js'></script>
<div class="num"></div>
<div class="slider">
<div class="touch"></div>
<div class="bg"></div>
</div>
<dic class="console"></dic... | huhai586/learn | slider/index.html | HTML | mit | 1,592 |
# StoryboardHelper
StoryboardHelper is a open source plug-in for **Xcode 5**.
It lets you search/manage storyboard identifier without opening the .storyboard files.
Using StoryboardHelper's almost the same as [Lin-Xcode5](https://github.com/questbeat/Lin-Xcode5).
## Acknowledgment
StoryboardHelper is inspired by [L... | hirai-yuki/StoryboardHelper | README.md | Markdown | mit | 2,096 |
<!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!... | hariombalhara/hariombalhara.github.io | _layouts/home-one-smart-code-hosted.html | HTML | mit | 1,886 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>muvicre</title>
<link rel="stylesheet" href="css/muvicre.css">
</head>
<body>
<div class="window">
<div class="form-group">
<div class="leftArea">
<button id="coverButton" class="cover btn btn-default">Cover file</b... | varjolintu/muvicre-electron | index.html | HTML | mit | 1,486 |
package edu.cmu.hcii.whyline.analysis;
import java.util.SortedSet;
import java.util.TreeSet;
import edu.cmu.hcii.whyline.bytecode.MethodInfo;
import edu.cmu.hcii.whyline.source.JavaSourceFile;
import edu.cmu.hcii.whyline.source.Line;
import edu.cmu.hcii.whyline.source.Token;
import edu.cmu.hcii.whyline.ui.WhylineUI;
... | andyjko/whyline | edu/cmu/hcii/whyline/analysis/FindOverriders.java | Java | mit | 1,239 |
<link rel="stylesheet" href="css/main.css"/>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script> | gllmt/victorhugo | site/layouts/partials/head_custom.html | HTML | mit | 127 |
var searchData=
[
['neighbours',['neighbours',['../struct_parser_1_1_cell_atom_grammar.html#a6367dce3041506f4112c82e2ba5998a9',1,'Parser::CellAtomGrammar']]],
['newgrid',['newGrid',['../struct_compiler_1_1_state.html#a3a949d5132b7854fee15d6d13344652c',1,'Compiler::State']]]
];
| CompilerTeaching/CompilerTeaching.github.io | cellatom/doxygen/search/variables_b.js | JavaScript | mit | 282 |
<?php
/**
* Whoops - php errors for cool kids
* @author Filipe Dobreira <http://github.com/filp>
*/
namespace Whoops\Handler;
use Whoops\Handler\HandlerInterface;
use Whoops\Exception\Inspector;
use Whoops\Run;
use Exception;
/**
* Abstract implementation of a Handler.
*/
abstract class Handler implements Handle... | wissamdagher/Temenos-T24-COB-Monitor | vendor/filp/whoops/src/Whoops/Handler/Handler.php | PHP | mit | 1,572 |
<?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInit1d7f3d8d9f8bff4ff374c7338c3d8879
{
public static $files = array(
'ce89ade1b84217abfd74bd4c84863dc1' => __DIR__ . '/..' . '/nizarii/arma-rcon-class/arc.php',
);
public static $prefixLengthsPsr... | Itsmadhatter/Exile-Admin-Panel | vendor/composer/autoload_static.php | PHP | mit | 1,768 |
---
title: Joel and the Outcome
date: 2015-07-08T08:09:52+00:00
layout: post
thumbnail_path: 2015/07/joel-and-the-outcome2.jpg
videoID: 2015/20150708.mp4
tags:
- 2015-rushville-in
---
{% include aws.html id=page.videoID poster=page.thumbnail_path %}
Day 5 | faithworkcamps/faithworkcamps.github.io | _posts/2015-07-08-joel-and-the-outcome.md | Markdown | mit | 257 |
#include <algorithm>
#include <iterator>
#include <vector>
#include "ihanoi.hpp"
#include "aim.hpp"
// Algorithm to be tested
template <int from, int other, int to>
struct ApplyMapping
{
std::pair<std::size_t, std::size_t> operator()(std::pair<std::size_t, std::size_t> const& move)
{
static_assert(from != ... | dubzzz/various-algorithms | algorithms/recurse/hanoi-towers/implem_iterative_no_stack.cpp | C++ | mit | 1,956 |
package statsd
import (
"context"
"fmt"
"hash/adler32"
"sync"
"github.com/ash2k/stager/wait"
"github.com/atlassian/gostatsd"
"github.com/atlassian/gostatsd/pkg/statser"
)
// AggregatorFactory creates Aggregator objects.
type AggregatorFactory interface {
// Create creates Aggregator objects.
Create() Aggreg... | tiedotguy/gostatsd | pkg/statsd/dispatcher.go | GO | mit | 3,174 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Themes Lab - Creative Laborator</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="" name="description" />
<meta content="themes-lab" name="author" />
<link re... | jozadaquebatista/WebDevelopment | user-login-v2.html | HTML | mit | 8,289 |
package graphql_test
import (
"testing"
"github.com/housinganywhere/graphql"
"github.com/housinganywhere/graphql/gqlerrors"
"github.com/housinganywhere/graphql/testutil"
)
func TestValidate_VariableDefaultValuesOfCorrectType_VariablesWithNoDefaultValues(t *testing.T) {
testutil.ExpectPassesRule(t, graphql.Defau... | housinganywhere/graphql | rules_default_values_of_correct_type_test.go | GO | mit | 3,502 |
'use strict';
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('my app', function() {
beforeEach(function() {
browser().navigateTo('app/index-old.html');
});
it('should automatically redirect to /view1 when location hash/fragment is empty', function() {
expect(browser().location()... | egorps/run-caoch | test/e2e/scenarios.js | JavaScript | mit | 936 |
body {
background: red; }
body h2 {
color: yellow; }
/*# sourceMappingURL=styles.css.map */
| palash2264/shopbuffet | app/css/styles.css | CSS | mit | 101 |
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Namespace FubarDev.FtpServer.FileSystem.S3
| FTP Server documentation </title>
<meta name="viewport" content="width=device-width">
<meta name="... | FubarDevelopment/FtpServer | docs/api/FubarDev.FtpServer.FileSystem.S3.html | HTML | mit | 5,784 |
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace YanZhiwei.DotNet2.Utilities.WebFormExamples {
... | YanZhiwei/DotNet.Utilities | YanZhiwei.DotNet2.Utilities.WebFormExamples/FileDownHelperDemo.aspx.designer.cs | C# | mit | 1,477 |
export default from './Input'; | natac13/Markdown-Previewer-React | app/components/Input/index.js | JavaScript | mit | 30 |
package org.vitanov.container;
public class ContainerConstants {
public static String CONTAINER_ROOT_PATH =
System.getProperty("user.dir");
}
| StoyanVitanov/SoftwareUniversity | Java Web/Web Fundamentals/05.Handmade Web Server/servlet-containers/static-container/src/org/vitanov/container/ContainerConstants.java | Java | mit | 161 |
using Lux.IO;
using NUnit.Framework;
namespace Lux.Tests.IO
{
[TestFixture]
public class PathHelperTests
{
[TestCase]
[Category("ExcludeBuildAgent")] // todo: fix so be able to...
public void GetRootParent()
{
const string expected = "C:/";
const... | LazyTarget/Lux | src/Lux.Tests/IO/PathHelperTests.cs | C# | mit | 1,781 |
module Cryptoexchange::Exchanges
module Bit2c
module Services
class Pairs < Cryptoexchange::Services::Pairs
def fetch
output = super
market_pairs = []
output.each do |pair|
market_pairs << Cryptoexchange::Models::MarketPair.new(
... | coingecko/cryptoexchange | lib/cryptoexchange/exchanges/bit2c/services/pairs.rb | Ruby | mit | 559 |
package lib
import (
"log"
"strings"
)
type (
Question struct {
RelatesTo struct {
Answers []string `json:"answers"`
Save bool `json:"save"`
SaveTag string `json:"saveTag"`
} `json:"relatesTo"`
Context []string `json:"context"`
QuestionText string `json:"question"`
Possible... | jh-bate/fantail-bot | lib/Question.go | GO | mit | 1,207 |
/* Generated code */
interface SyncInfo {
syncType?: 'FSync' | 'ISync';
syncToken?: string;
syncTime?: string;
olderRecordsExist?: boolean;
}
export default SyncInfo;
| zengfenfei/ringcentral-ts | src/definitions/SyncInfo.ts | TypeScript | mit | 177 |
<!--
Copyright 2015 Maker Collider
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | MakerCollider/curie-smartnode-mac | curie-smartnode/smartnode/node_modules/node-red-contrib-smartnode/GroveSensors/groveTemp/groveTemp.html | HTML | mit | 2,337 |
app.router = Backbone.Router.extend({
el : $('main'),
routes: {
// '': 'home',
// '!/': 'home',
'!/event-list/': function () {
app.preRoute('event-list', this.el);
new app.eventListView({ el: this.el });
},
'!/event-detail/:key': function (key) {
... | nblenke/buzz-proto | public/assets/js/router.js | JavaScript | mit | 1,903 |
body {
font-family: Calibri;
padding: 0;
margin: 0;
}
#container {
width: 660px;
}
.login {
background: url(../images/logo.png) no-repeat left center, -moz-linear-gradient(top, rgba(59,59,59,0.6) 0%, rgba(59,59,59,0.6) 1%, rgba(42,42,42,1) 95%, rgba(59,59,59,0.9) 100%); /* FF3.6+ */
background: url(../images/lo... | enchev-93/Telerik-Academy | 05.CSS/CSS Layout/Problem03.MembersLogin/styles/styles.css | CSS | mit | 2,097 |
//
// Card.h
// Matchismo
//
// Created by Horia Jurcut on 01/07/16.
// Copyright © 2016 Horia Jurcut. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface Card : NSObject
@property (strong, nonatomic) NSString *contents;
@property (nonatomic, getter=isChosen) BOOL chosen;
@property (nonatomic, g... | horiajurcut/matchismo | Matchismo/Model/Card.h | C | mit | 395 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Brian Schrader - 06ee</title>
<link rel="shortcut icon" href="/assets/images/favicon.ico">
<link rel="sty... | Sonictherocketman/mirror.microblog | _site/2016/04/01/06ee.html | HTML | mit | 71,090 |
"use strict";
const mongoose = require('mongoose');
module.exports = (()=>{
mongoose.connect('mongodb://192.168.56.101:30000/blog');
let db = mongoose.connection;
db.on('error', function(err){
console.log(err);
});
db.once('open', (err)=> {
console.log('connect success');
})
})(); | fsy0718/study | node/express/blog/api/db.js | JavaScript | mit | 293 |
<?php
/**
* @name Upload Module
* @author Philipp Maurer
* @author Tobias Reich
* @copyright 2014 by Philipp Maurer, Tobias Reich
*/
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
function upload($files, $albumID) {
global $database, $settings;
switch($albumID) {
// s for public ... | massyas/lychee_ynh | source/php/modules/upload.php | PHP | mit | 9,705 |
# AndroidMVP
AndroidMVP
| DaoCaoWu/AndroidMVP | README.md | Markdown | mit | 24 |
from network import WLAN
###############################################################################
# Settings for WLAN STA mode
###############################################################################
WLAN_MODE = 'off'
#WLAN_SSID = ''
#WLAN_AUTH = (WLAN.WPA2,'')
#################... | ttn-be/ttnmapper | config.py | Python | mit | 1,297 |
<?php
namespace Illumine\Framework\Traits;
use Illuminate\Bus\Dispatcher;
trait DispatchesJobs
{
/**
* Dispatch a job to its appropriate handler.
*
* @param mixed $job
* @return mixed
*/
protected function dispatch($job)
{
return $this->plugin->make(Dispatcher::class)->di... | bayareawebpro/illumine-framework | Traits/DispatchesJobs.php | PHP | mit | 613 |
---
---
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ResolvableLiteral | UI-Router</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" hre... | ui-router/ui-router.github.io | _ng2_docs/1.0.0-beta.3/interfaces/resolve.resolvableliteral.html | HTML | mit | 21,047 |
<DIV NAME="detail" ID="detail" xmlns="http://www.w3.org/TR/REC-html40"><H3><A NAME='detail_CallStep'></A>DDDriverFlowCommands::<BIG>CallStep</BIG>
</H3> <TABLE><TR>
<TD class="borderStyle"><SPAN CLASS='Support' TITLE='Rational Robot Classic'>RC</SPAN></TD>
<TD class="borderStyle"><SPAN CLASS='Support' TITLE='SAFS TID... | kid551/safsdev.test.github.io | keyref/DDDriverFlowCommandsCallStep.html | HTML | mit | 3,620 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.