repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
TheDurtch/TheDurtch.github.io | paste/application/libraries/geshi/geshi/nsis.php | 20643 | <?php
/*************************************************************************************
* nsis.php
* --------
* Author: deguix (cevo_deguix@yahoo.com.br), Tux (http://tux.a4.cz/), Jan T. Sott (http://github.com/idleberg)
* Copyright: (c) 2005 deguix, 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.... | mit |
rlishtaba/py-algorithms | py_algorithms/trees/__init__.py | 1491 | __all__ = [
'level_order_traversal',
'horizontal_level_order_traversal',
'new_bst_from_list',
]
from typing import List, Any
from ..data_structures import TreeNode
from .level_order_traversal import LevelOrderTraversal
from .horizontal_level_order_traversal import HorizontalLevelOrderTraversal
from .bst_fr... | mit |
StereoFlo/simple-mvc | src/Core/Session.php | 7432 | <?php
namespace Core;
use App\Utils;
class Session
{
/**
* @var string The name used for the session
*/
private static $SESSION_NAME = 'f7eac143c2e6c95e84a3e128e9ddcee6';
/**
* Session Age.
* The number of seconds of inactivity before a session expires.
*
* @var integer
... | mit |
facekapow/hypertunes | views/index/js/loaders/chromecast/loader.js | 6156 | 'use strict';
const {PlayerStatus} = require('../../player-classes');
const backend = require('./backend');
const cast = document.getElementById('player-cast');
const castv2 = require('castv2-client');
const Client = castv2.Client;
const DefaultMediaReceiver = castv2.DefaultMediaReceiver;
const mdns = require('mdns-js... | mit |
durub/stony | src/test/java/com/github/stony/interpreter/InterpreterTest.java | 3351 | package com.github.stony.interpreter;
import org.junit.Assert;
import java.io.*;
import java.net.URISyntaxException;
import java.net.URL;
/**
* Barebones framework to test story files. Testing classes should extend this.
*
* The idea is to test the output
*/
class InterpreterTest {
/**
* InterpreterTest... | mit |
ehough/epilog | src/test/php/ehough/epilog/handler/BrowserConsoleHandlerTest.php | 4584 | <?php
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* @covers ehough_epilog_handler_BrowserConsoleHandler
*/
class BrowserConsoleH... | mit |
devsunny/common-tools | src/main/java/com/asksunny/validator/NotEqualsValueValidator.java | 654 | package com.asksunny.validator;
import com.asksunny.validator.annotation.ValueValidation;
public class NotEqualsValueValidator extends EqualsValueValidator {
public NotEqualsValueValidator(Class<?> targetType, Class<?> valueType, String fieldName, ValueValidation fv) {
super(targetType, valueType, fieldNam... | mit |
mining/frontend | gulpfile.js | 806 | var gulp = require('gulp');
var jshint = require('gulp-jshint');
var gettext = require('gulp-angular-gettext');
gulp.task('pot', function () {
return gulp.src(['./assets/app/views/*.html', './views/*.html', './assets/app/scripts/**/*.js'])
.pipe(gettext.extract('template.pot', {
// options to p... | mit |
winseros/gulp-armarapify-plugin | src/parser/nodes/readers/test/expressionReader.spec.ts | 21285 | import { ReaderUtility } from './../readerUtility';
import { tokenTypes } from './../../../tokens/tokenTypes';
import { Token } from '../../../tokens/token';
import { TokenIterator } from '../../../tokenIterator';
import { ExpressionReader } from '../expressionReader';
import { nodeTypes } from '../../nodeTypes';
impor... | mit |
alvinoktavianus/Maiga-CI | application/controllers/Employee.php | 7761 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Employee extends CI_Controller {
public function index()
{
if ( $this->session->has_userdata('user_session') && $this->session->userdata('user_session')['role'] == 'emp' ) {
$this->load->model('employee_model');
$data['page_title'] ... | mit |
projecthydra-labs/solrizer-fedora | spec/integration/fedora_indexer_spec.rb | 534 | require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require 'solrizer'
describe Solrizer::Fedora::Indexer do
before(:each) do
@indexer = Solrizer::Fedora::Indexer.new
end
describe "index" do
it "should update solr with the metadata from the given object" do
pending "Got to de... | mit |
GPUdb/gpudb-api-java | api/src/main/java/com/gpudb/protocol/FilterByBoxRequest.java | 20988 | /*
* This file was autogenerated by the GPUdb schema processor.
*
* DO NOT EDIT DIRECTLY.
*/
package com.gpudb.protocol;
import java.util.LinkedHashMap;
import java.util.Map;
import org.apache.avro.Schema;
import org.apache.avro.SchemaBuilder;
import org.apache.avro.generic.GenericData;
import org.apache.avro.ge... | mit |
pcase/Shopper | app/src/main/java/com/azurehorsecreations/shopper/presentation/ui/navigation/SplashNavigator.java | 665 | package com.azurehorsecreations.shopper.presentation.ui.navigation;
import android.content.Context;
import android.content.Intent;
/**
* Created by pattycase on 9/14/17.
*/
public class SplashNavigator implements INavigator {
private final Context mActivityContext;
private final Class<?> mClassToNavigateTo... | mit |
teadur/registry | app/models/legacy/object_history.rb | 276 | module Legacy
class ObjectHistory < Db
self.table_name = :object_history
belongs_to :object_registry, foreign_key: :historyid
def self.instance_method_already_implemented?(method_name)
return true if method_name == 'update'
super
end
end
end
| mit |
behance/BeFF | util/image.d.ts | 271 | export interface BeImage {
isAnimatedGif(bits: any): boolean;
getDimensions(bits: any): { width: number; height: number; };
getBinaryFromDataUri(dataUri: string): string;
isCMYK(bits: any): boolean;
}
declare const _default: BeImage;
export default _default;
| mit |
Sleekwater/Switchboard | src/org/sleekwater/switchboard/servlet/PlayComplete.java | 1606 | package org.sleekwater.switchboard.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.sleekwater.switchbo... | mit |
WAPOSAT/LandingWeb1 | assets/contactanos.gobierno.data.php | 260 | <?php
/*
Information of the form to Industry
*** Parameters Required ***
NOTHING
***
*/
$Category = array(
'Sector','Sector gubernamental', 'Gobierno distrital', 'Ministerio', 'Municipalidad', 'ONGs', 'Otros'
);
echo json_encode($Category);
?> | mit |
frostburn/panel-league | lib/ui/panel-league/garbage.js | 1518 | import { el, mount, svg } from 'redom';
import { getBlockSize } from './utils';
/**
* Draws random SVG circles on given element.
*/
function decorate(el, { x, width, height }) {
const svgElement = svg('svg', { width: '100%', height: '100%' });
el.style.width = getBlockSize(width);
el.style.left = getBlockSi... | mit |
LuccaSA/lucca-front | packages/ng/dropdown/src/lib/index.ts | 129 | export * from './dropdown.module';
export * from './item/index';
export * from './panel/index';
export * from './trigger/index';
| mit |
aethelwyrd/GreasyFriedChicken | syntax_rs/src/main.rs | 1966 | //rusty.rs
//Copyright 2015 David Huddle
mod my_module;
mod main_mod;
mod test;
use main_mod::*;
fn main() {
console_out();
match_is_like_switch(2,5);
for_in_is_for_each();
while_ex();
loop_ex();
//vector
// declare as ref so we can allow borrowing
let ref nums = vec![1i32, 2i32, 3i32... | mit |
eberlitz/gym-dev-unisinos | src/app/register/register.component.ts | 1399 | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { TdLoadingService } from '@covalent/core';
import { AuthService } from '../../services/auth.service';
import { IUser } from '../users/services/user.service';
import { HttpInterceptorService } from '@covalent/http';
@Co... | mit |
Evairfairy/AESharp | AESharp.Logon/Repositories/RealmRepository.cs | 1643 | using System.Collections.Generic;
namespace AESharp.Logon.Repositories
{
public class RealmRepository
{
private readonly List<Realm> _realms = new List<Realm>
{
new Realm
{
Name = "Evairfairy's Test Realm",
Address = "127.0.0.1:8095",
... | mit |
rodrigoflores/punt-receiver | lib/punt/receiver/retriever.rb | 561 | require 'octokit'
module Punt
module Receiver
class Retriever
def initialize(config,octokit_client=Octokit::Client)
@config = config
@client = octokit_client.new(:access_token => @config.github_token)
end
def retrieve_pull_requests(output=$stdout)
@config.relevant_repos... | mit |
FacticiusVir/SharpVk | src/SharpVk/PhysicalDeviceShaderFloat16Int8Features.gen.cs | 3213 | // The MIT License (MIT)
//
// Copyright (c) Andrew Armstrong/FacticiusVir 2020
//
// 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 r... | mit |
tadas-s/omniauth-edmodo | lib/omniauth/strategies/edmodo.rb | 1188 | require 'omniauth-oauth2'
module OmniAuth
module Strategies
class Edmodo < OmniAuth::Strategies::OAuth2
option :client_options, {
:site => 'https://api.edmodo.com',
:authorize_url => 'https://api.edmodo.com/oauth/authorize',
:token_url => 'https://api.edmodo.com/oauth/token'
}... | mit |
AceCoin/AceCoin | src/irc.cpp | 10993 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "irc.h"
#include "net.h"
#include "strlcpy.h"
#include "base58.h"
using ... | mit |
C2FO/fast-csv | examples/formatting-js/examples/quote_headers_object.example.js | 560 | const csv = require('@fast-csv/format');
const csvStream = csv.format({ headers: true, quoteHeaders: { header2: true } });
csvStream.pipe(process.stdout).on('end', () => process.exit());
csvStream.write({ header1: 'value1a', header2: 'value2a' });
csvStream.write({ header1: 'value1a', header2: 'value2a' });
csvStrea... | mit |
Kuniwak/vint | vint/linting/cli.py | 7575 | from typing import Dict, Any, List # noqa: F401
import sys
from argparse import ArgumentParser
from pathlib import Path
import logging
from vint.linting.linter import Linter
from vint.linting.env import build_environment
from vint.linting.config.config_container import ConfigContainer
from vint.linting.config.config_... | mit |
mohammedh123/ProjectMinos | ProjectMinos.Core/TileSet.cs | 2107 | using System.Collections.Generic;
namespace ProjectMinos.Core
{
public class TileSet
{
public string Name { get; }
public string Filename { get; }
public int TileWidth { get; }
public int TileHeight { get; }
public int FirstSpriteIndex { get; }
public int LastSp... | mit |
AamuLumi/sanic.js | bench/misc/loopEmpty.js | 3741 | 'use strict';
const Benchmark = require('benchmark');
Benchmark.options.minSamples = 200;
let fileWriter = null;
if (process.argv.some((e) => e === 'writeFile')) {
const BenchFileCreator = require('../benchFileCreator');
fileWriter = new BenchFileCreator();
fileWriter.addInformations(Benchmark.options.minSamples)... | mit |
Rapptz/Shinobi | util/maker.cpp | 4204 | #include "maker.hpp"
namespace fs = boost::filesystem;
namespace util {
void make_default_shinobi() noexcept {
std::ofstream out("Shinobi");
out << "# The default Shinobi file. See reference.md for syntax help.\n\n"
"PROJECT_NAME := untitled\n"
"BUILDDIR := bin\n"
"O... | mit |
garysharp/DhcpServerApi | src/Dhcp/DhcpServerException.cs | 2118 | using System;
using System.Text;
using Dhcp.Native;
namespace Dhcp
{
public class DhcpServerException : Exception
{
private readonly DhcpErrors error;
private readonly string message;
internal DhcpServerException(string apiFunction, DhcpErrors error, string additionalMessage)
... | mit |
ohmybrew/laravel-shopify | src/ShopifyApp/resources/config/shopify-app.php | 13750 | <?php
return [
/*
|--------------------------------------------------------------------------
| Debug Mode
|--------------------------------------------------------------------------
|
| (Not yet complete) A verbose logged output of processes
|
*/
'debug' => (bool) env('SHOPIFY_DEBU... | mit |
zchhaenngg/IWI | src/ImproveX.EntityFramework/Migrations/201707261347311_Initial_Migration.Designer.cs | 831 | // <auto-generated />
namespace ImproveX.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")]
public sealed partial class Init... | mit |
danleeb/fullcalendar | src/tasks/TasksView.js | 5451 | fcViews.tasks = TasksListView;
function TasksListView(element, calendar) {
var t = this;
// exports
t.render = render;
t.fetchData = getFetchData;
// imports
TasksList.call(t, element, calendar, 'tasks');
var opt = t.opt;
var renderList = t.renderList;
var formatDate = calendar.fo... | mit |
dalejung/naginpy | naginpy/special_eval/tests/test_manifest.py | 15685 | import ast
from unittest import TestCase
from textwrap import dedent
import pandas as pd
import numpy as np
from numpy.testing import assert_almost_equal
import nose.tools as nt
from asttools import (
ast_equal
)
from ..manifest import (
Expression,
Manifest,
_manifest
)
from ..exec_context import (... | mit |
GrUSP/opencfp | tests/Unit/PathTest.php | 1236 | <?php
declare(strict_types=1);
/**
* Copyright (c) 2013-2019 OpenCFP
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/opencfp/opencfp
*/
namespace OpenCFP\Test\Unit;
use Localheinz\Test\Util\Helper;
use ... | mit |
renatosalvatori/zf2DataTable | tests/Zf2datatableTest/Column/Formatter/EmailTest.php | 928 | <?php
namespace Zf2datatableTest\Column\Formatter;
use Zf2datatable\Column\Formatter;
use PHPUnit_Framework_TestCase;
/**
* @group Column
* @covers Zf2datatable\Column\Formatter\Email
*/
class EmailTest extends PHPUnit_Framework_TestCase
{
public function testGetValidRendererNames()
{
$formatter =... | mit |
horazont/xmpp-crowd | lcdencode/__init__.py | 203 | import codecs
from . import HD44780A00
mapping = {
"hd44780a00": HD44780A00.getregentry()
}
def search_function(encoding):
return mapping.get(encoding, None)
codecs.register(search_function)
| mit |
adriancmiranda/describe-type | internal/each.js | 620 | /* eslint-disable no-restricted-syntax */
const arraylike = require('../is/arraylike/arraylike.js');
const eachProperty = require('./eachProperty.js');
const eachValue = require('./eachValue.js');
/**
*
* @function
* @param {any} value
* @param {Function} cmd
* @param {Object} context
* @param {Boolean} keepReve... | mit |
diewland/ssbwear | js/slot.js | 6229 | function slots_to_arr(txt){
var d = txt.split('|');
var dd = d[0].split('-');
if(d[1]){
dd.push(d[1])
}
return dd;
}
function get_slot_info(txt){
// flat items
var stxt = txt.split('|');
var items = stxt[0].split('-');
if(stxt[1]){
items = items.concat(stxt[1].split(... | mit |
Offroadcode/umbraco-backoffice-visualization | BackOfficeVisualiser/Umbraco/BackOfficeVisualiser/Models/CompositionModel.cs | 209 | namespace BackOfficeVisualiser.Models
{
public class CompositionModel
{
public string Name { get; set; }
public string Alias { get; set; }
public int Id { get; set; }
}
} | mit |
CacheMoneyDB/CacheMoneyApp | lib/auth/ensure-auth.js | 743 | const tokenSvc = require('./token');
module.exports = function ensureAuth() {
return function ensureAuth(req, res, next) {
const authHeader = req.headers.authorization;
if(!authHeader) {
return next({code: 400, error: 'unauthorized, no token provided'});
};
const [beare... | mit |
oliviertassinari/material-ui | packages/mui-material/src/OutlinedInput/OutlinedInput.test.js | 1482 | import * as React from 'react';
import { expect } from 'chai';
import { createClientRender, describeConformance } from 'test/utils';
import OutlinedInput, { outlinedInputClasses as classes } from '@mui/material/OutlinedInput';
import InputBase from '@mui/material/InputBase';
describe('<OutlinedInput />', () => {
con... | mit |
in-depth/indepth-demo | webpack.server.js | 2313 | require('dotenv').config()
const path = require('path')
const Webpack = require('webpack')
const nodeExternals = require('webpack-node-externals')
const postcssConfig = require('./postcss.config')
const nodeModulesPath = path.resolve(__dirname, 'node_modules')
const sourcePath = path.resolve(__dirname, 'src')
const... | mit |
stxnext/intranet-open | src/intranet3/intranet3/helpers.py | 8082 | import os
import json
import time
import math
import tempfile
import datetime
from dateutil.relativedelta import relativedelta
from urllib import quote_plus
from decimal import Decimal, ROUND_UP
try:
from PIL import Image
except ImportError:
import Image
from gdata.spreadsheet import text_db
from gdata.service... | mit |
freeslugs/eventum | app/models/Event.py | 13295 | """
.. module:: Event
:synopsis: An event database model.
.. moduleauthor:: Dan Schlosser <dan@danrs.ch>
"""
from flask import url_for
from mongoengine import ValidationError
from app import client_config, db
from app.models.fields import DateField, TimeField
import markdown
from datetime import datetime, timede... | mit |
korbin/co-bcrypt-native | test/index.test.js | 1669 | 'use strict';
var expect = require('chai').expect;
var bcrypt = require('../index');
describe('co-bcrypt-native', function () {
it('stores unwrapped functions', function () {
expect(bcrypt.unwrapped.genSalt).to.be.a('function');
expect(bcrypt.unwrapped.genSalt.length).to.eq(3);
expect(bcrypt.unwrapped.... | mit |
gabzon/experiensa | components/grid.php | 1045 | <?php
//Semantic UI grid
Class Grid {
public static function display_grid($args,$return = false){
$grid = "";
if(!empty($args)){
$grid .= "<div class=\"ui grid\">";
foreach($args as $value){
$grid .= "<div class=\"four wide column\">";
$grid .= "<a href=\"".$value['post_link']."... | mit |
zh-h/IoTApp | app/src/main/java/iotapp/applehater/cn/iotapp/SettingActivity.java | 375 | package iotapp.applehater.cn.iotapp;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class SettingActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.a... | mit |
vinhch/BizwebSharp | src/BizwebSharp/Entities/ClientDetail.cs | 1201 | using Newtonsoft.Json;
namespace BizwebSharp
{
public class ClientDetail
{
/// <summary>
/// Shopify does not offer documentation for this field.
/// </summary>
[JsonProperty("accept_language")]
public string AcceptLanguage { get; set; }
/// <summary>
/... | mit |
basimilch/basimilch-app | test/initializers/regexp_utils_test.rb | 5786 | require 'test_helper'
# TODO: Should not be an Action Controller test, but a Unit Test instead.
class RegexpUtilsTest < ActionController::TestCase
setup do
@no_address = []
@example_com = ["a@example.com"]
@example_org = ["a@example.org"]
@gmail_com_a_base = ["a@gmail.com"]
... | mit |
rebuy-de/kubernetes-deployment | pkg/kubeutil/deployments.go | 1973 | package kubeutil
import (
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
apps "k8s.io/api/apps/v1"
v1meta "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
)
func DeploymentRolloutComplete(deployment *apps.Deployment) bool {
logger := log.WithFields(log.Fields{
"Namespace": ... | mit |
oanhnn/slim-skeleton | src/Provider/HttpCacheServiceProvider.php | 718 | <?php
/**
* This file is part of `oanhnn/slim-skeleton` project.
*
* (c) Oanh Nguyen <oanhnn.bk@gmail.com>
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
namespace App\Provider;
use Pimple\Container;
use Slim\HttpCache\CacheP... | mit |
kambojajs/kamboja | packages/moringa/test/integration/models/index.ts | 1043 | import { val, type } from "kamboja-foundation"
import { Document, Schema } from "mongoose"
import { mongoose } from "../../../src"
export class UserModel {
@type("string")
email: string
@type("string")
displayName: string
@type("date")
dateOfBirth: Date
@type("number")
rate: number
... | mit |
luozhaoyu/leetcode | n_queens.py | 2324 | import copy
class Board(object):
def __init__(self, horizontal, vertical, left_oblique, right_oblique, queens, n):
self.horizontal = horizontal
self.vertical = vertical
self.left_oblique = left_oblique
self.right_oblique = right_oblique
self.queens = queens
self.n = ... | mit |
angular/angular-cli-stress-test | src/app/components/comp-1699/comp-1699.component.spec.ts | 847 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Comp1699Component } from './comp... | mit |
keynetic/kpress | content/themes/stay-wpcom/content.php | 2294 | <?php
/**
* @package Stay
* @since Stay 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?>
<?php if ( 'post' == get_post_type() ) : ?>
... | mit |
www2014/discourse_advanced_search | assets/javascripts/discourse_advanced_search/helpers/discourse_advanced_search_helper.js | 374 | /**
Produces a search link to a topic
@method topicSearchLink
@for Handlebars
**/
Handlebars.registerHelper('topicSearchLink', function(property, options) {
var topic = Ember.Handlebars.get(this, property, options),
title = topic.get('fancy_title') || topic.get('title');
return "<a href='" + topic.get('rel... | mit |
Vikerus/ArchwayME | includes/config-db.php | 526 | <?php
##
## database access settings in php format
## automatically generated from /etc/dbconfig-common/phpmyadmin.conf
## by /usr/sbin/dbconfig-generate-include
## Wed, 04 Jun 2014 16:52:17 -0400
##
## by default this file is managed via ucf, so you shouldn't have to
## worry about manual changes being silently discar... | mit |
yuanagain/seniorthesis | src/experiment_c1lohner.py | 1467 | """
experiment_c1lohner.py
Poincare C^1 Lohner Algorithm
Author: Yuan Wang
On Lohner Algorithm
https://books.google.com/books?id=7a-8yyjQVLcC&pg=PA178&lpg=PA178&dq
"""
from thesis_utils import *
from thesis_defaults import *
from thesis_poincare_utils import *
from thesis_plot_utils import *
import scipy.integrate ... | mit |
aokomoriuta/ViennaCLFiles | viennacl/linalg/compressed_matrix_operations.hpp | 12122 | #ifndef VIENNACL_COMPRESSED_MATRIX_OPERATIONS_HPP_
#define VIENNACL_COMPRESSED_MATRIX_OPERATIONS_HPP_
/* =========================================================================
Copyright (c) 2010-2012, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
... | mit |
wmira/react-icons-kit | src/md/ic_traffic_twotone.js | 985 | export const ic_traffic_twotone = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M9 19h6V5H9v14zm3-13c.83 0 1.5.67 1.5 1.5S12.83 9 12 9s-1.5-.67-1.5-1.5S11.17 6 12 6zm0 4.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-... | mit |
geekish/crap | src/Command/ListAliasesCommand.php | 1176 | <?php
namespace Geekish\Crap\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Class ListAliasesCommand
* @package Geekish\Crap\Command
*/
final class ListAliasesCommand extends BaseCommand
{
/**
* @inheritDoc
*/
protected fu... | mit |
erfannoury/Pitch-Annotator.Net | CsvPlayground/Properties/AssemblyInfo.cs | 1402 | 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("Cs... | mit |
paulcbetts/brightray | browser/browser_context.cc | 5428 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-CHROMIUM file.
#include "browser/browser_context.h"
#include "browser/download_manager_delegate.h"
#include "browser/inspectable_web_contents_impl.h"
#incl... | mit |
mohitkr05/_wplove | lib/scripts.php | 2834 | <?php
/**
* Enqueue scripts and stylesheets
*
* Enqueue stylesheets in the following order:
* 1. /theme/assets/css/main.min.css
*
* Enqueue scripts in the following order:
* 1. jquery-1.11.0.min.js via Google CDN
* 2. /theme/assets/js/vendor/modernizr-2.7.0.min.js
* 3. /theme/assets/js/main.min.js (in footer)
... | mit |
GreatBizTools/django-threaded-messages | threaded_messages/models.py | 9660 | from django.db import models
from django.contrib.auth.models import User
from django.core.cache import cache
from django.utils.translation import ugettext_lazy as _
from django.db.models import F, Q
from json import dumps, loads
from .listeners import start_listening
from .settings import INBOX_MESSAGE_CACHE, INBOX_... | mit |
nx-hacker-news/nx-hacker-news.github.io | webpack.config.js | 211 | 'use strict'
module.exports = {
entry: './src/index.js',
output: {
path: __dirname,
filename: '/bundle.js'
},
module: {
loaders: [
{test: /\.(html)|(css)$/, loader: 'raw'}
]
}
}
| mit |
Kronuz/Xapiand | oldtests/test_threadpool.cc | 6089 | /*
* Copyright (c) 2015-2019 Dubalu LLC
*
* 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, pub... | mit |
risan/oauth1 | src/Provider/Tumblr.php | 666 | <?php
namespace Risan\OAuth1\Provider;
use Risan\OAuth1\Signature\HmacSha1Signer;
class Tumblr implements ProviderInterface
{
/*
* {@inheritdoc}
*/
public function getUriConfig()
{
return [
'temporary_credentials_uri' => 'https://www.tumblr.com/oauth/request_token',
... | mit |
ajlopez/SetTuples | Src/SetTuples/Tuple.cs | 711 | namespace SetTuples
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class Tuple
{
private object[] values;
public Tuple(int size)
{
this.values = new object[size];
}
public obje... | mit |
Daniel18v/final-project | application/config/routes.php | 3618 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| T... | mit |
zaeleus/ffi-gphoto2 | spec/gphoto2/camera_widgets/date_camera_widget_spec.rb | 348 | require 'spec_helper'
module GPhoto2
describe DateCameraWidget do
it_behaves_like CameraWidget
describe '#value' do
it 'has a Time return value' do
widget = DateCameraWidget.new(nil)
allow(widget).to receive(:value).and_return(Time.now)
expect(widget.value).to be_kind_of(Time)
... | mit |
sensorberg-dev/windows10-sdk | SensorbergSDK/Internal/Services/StorageService.cs | 18466 | // Created by Kay Czarnotta on 10.03.2016
//
// Copyright (c) 2016, Sensorberg
//
// All rights reserved.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
using Windows.Storage;
using MetroLog;
using Newton... | mit |
KeldOelykke/FailFast | Java/FailFast/src/starkcoder/failfast/fails/generics/collections/IGenericCollectionFailer.java | 1716 | /////////////////////////////////////////////////////////////////////////////////////////
//
// The MIT License (MIT)
//
// Copyright (c) 2014-2015 Keld Oelykke
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), t... | mit |
ivey/merbivore-blog | app/plugins/feather-tagging/lib/article.rb | 677 | ##
# Reopen the article model and wang in the stuff we need
class Article
# We define this tags attribute so when the form posts, the params for tags get set, and we can subsequently access it later on
attr_accessor :tag_list
has_many :taggings
def create_tags
return if @tag_list.nil? || @tag_list.empty?
... | mit |
DailyActie/Surrogate-Model | 01-codes/OpenMDAO-Framework-dev/contrib/drea_usecase/DREA_HSRnoise.py | 8050 | """
DREA_HSRnoise.py - Code to run a DREA followed by HSRnoise for M-E off-design analysis
"""
from openmdao.lib.casehandlers.api import ListCaseIterator, DBCaseRecorder
from openmdao.lib.drivers.api import CaseIteratorDriver
from openmdao.main.api import Assembly, Case, Instance
from openmdao.main.datatypes.api i... | mit |
todorm85/TelerikAcademy | Courses/Software Technologies/AspNet MVC/Exam/Web/HikingPlanAndRescue.Web/App_Start/DatabaseConfig.cs | 618 | namespace VoiceSystem.Web
{
using System.Data.Entity;
using Data;
using Data.Migrations;
public class DatabaseConfig
{
public static void Config()
{
var dbReset = false;
if (dbReset)
{
Database.SetInitializer(new DropCreateDatabas... | mit |
RaduCiumag/shapeshift | server-http/src/main/java/com/github/raduciumag/shapeshift/model/transformation/generator/HttpHeadersGenerator.java | 1496 | package com.github.raduciumag.shapeshift.model.transformation.generator;
import com.github.raduciumag.shapeshift.model.server.HttpServerResponse;
import com.github.raduciumag.shapeshift.model.server.ServerResponse;
import com.google.common.base.Preconditions;
import org.springframework.stereotype.Component;
import ja... | mit |
jrechandi/sundahipP | src/Sunahip/PagosBundle/PagosBundle.php | 134 | <?php
namespace Sunahip\PagosBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class PagosBundle extends Bundle
{
}
| mit |
tinemakovecki/duel_game | Player.py | 432 | ### HUMAN PLAYER FILE
class Human():
def __init__(self, gui):
self.gui = gui
def play(self):
''' does nothing, waits for the player to select an attack '''
pass
def make_attack(self, selected, certain_hit):
''' makes an attack '''
self.gui.make_attack(selected, cer... | mit |
tomk79/mz2-baser-cms | zip_template/pickles2_export/Elements/widget_area.php | 408 | <?php
/**
* ウィジェットエリア(スマホ用)
*
* BcBaserHelper::widgetArea() で呼び出す
* <?php $this->BcBaser->widgetArea() ?>
**/
if (Configure::read('BcRequest.isMaintenance') || empty($no)) {
return;
}
if (!isset($subDir)) {
$subDir = true;
}
?>
<div class="widget-area widget-area-<?php echo $no ?>">
<?php $this->BcWidgetArea-... | mit |
i-den/SoftwareUniversity | Software University/04) PHP Web Development Basics/23) MYSQL AND PHP ADVANCED/App/Core/autoload.php | 201 | <?php
/**
* If under Windows make sure to comment 7th row out
*/
spl_autoload_register(function ($class) {
$classFile = str_replace('\\', '/', $class) . '.php';
require_once $classFile;
});
| mit |
poppy-circus/wire | Gruntfile.js | 796 | function getConfigOf(value) {
var helper = './tasks/helper/grunt_config_';
return require(helper + value).getConfig();
}
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
copy: getConfigOf('copy'),
clean: getConfigOf('clean'),
jasmine_node: getConfigOf('jasmine'),... | mit |
Caspar12/Csharp | src/Zh.BLL.Define/Contracts/Imp/AutoCode/MemberAccountService.cs | 564 | /*
* Author: 陈志杭 Caspar
* Contact: 279397942@qq.com qq:279397942
* Description: 逻辑层数据接口契约文件
* 文件由模板生成
*/
using System;
using System.Collections;
using System.Collections.Generic;
using Zh.DAL.Define.Entities;
using Zh.DAL.Base.Define;
using Zh.DAL.Base.Define.Query;
using Zh.BLL.Base.Define;
using Zh.BLL.Define.... | mit |
java-course-ee/java-course-se | Class/Interface/src/edu/javacourse/interfaces/Main.java | 777 | package edu.javacourse.interfaces;
import edu.javacourse.interfaces.impl.Human1;
import edu.javacourse.interfaces.impl.Human2;
import edu.javacourse.interfaces.impl.Human3;
import edu.javacourse.interfaces.service.Autobase;
import edu.javacourse.interfaces.service.Hospital;
public class Main {
public static void ... | mit |
shakuu/Parser | Parser/Src/Parser.Common.Logging/MessageType.cs | 115 | namespace Parser.Common.Logging
{
public enum MessageType
{
Info = 1,
Error = 2
}
}
| mit |
NeoAdonis/osu-framework | osu.Framework/Timing/OffsetClock.cs | 591 | // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
namespace osu.Framework.Timing
{
public class OffsetClock : IClock
{
protected IClock Source;
public double Offset;
... | mit |
payitsquare/wepay-dotnet | WePay/Entities/Structure/MFA/WepayMFAChallengeData.cs | 486 | using Newtonsoft.Json;
using System.Collections.Generic;
namespace WePay.Entities.Structure
{
public class WepayMFAChallengeData
{
[JsonProperty("voice")]
public string Voice { get; set; }
[JsonProperty("sms")]
public string SMS { get; set; }
[JsonProperty("authentica... | mit |
aspc/mainsite | aspc/courses/admin.py | 1326 | from django.contrib import admin
from aspc.courses.models import (Section, Course, Department, Meeting, RequirementArea, RefreshHistory, CourseReview,
FeaturingQuery)
class DepartmentAdmin(admin.ModelAdmin):
list_display = ('code', 'name', 'course_count')
class MeetingAdmin(admin.ModelAdmin):
list_display ... | mit |
elastification/php-client | tests/Unit/Request/V1x/Cat/RecoveryCatRequestTest.php | 3234 | <?php
namespace Elastification\Client\Tests\Unit\Request\V1x\Cat;
use Elastification\Client\Request\RequestMethods;
use Elastification\Client\Request\Shared\Cat\AbstractRecoveryCatRequest;
use Elastification\Client\Request\V1x\Cat\RecoveryCatRequest;
class RecoveryCatRequestTest extends \PHPUnit_Framework_TestCase
{... | mit |
SunboX/fxos-washing-machine_interface | shared/js/settings_helper.js | 3312 | (function(exports) {
'use strict';
/**
* SettingsHelper simplifies mozSettings access. It provides getter and setter
* a specified setting. It iscreated by passing a setting key and an
* optional default value.
*
* @param {String} key - The setting key
* @param {Object} defaultValue - The default ... | mit |
rnicoll/dogecoin | test/functional/p2p_compactblocks.py | 38688 | #!/usr/bin/env python3
# Copyright (c) 2016-2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test compact blocks (BIP 152).
Version 1 compact blocks are pre-segwit (txids)
Version 2 compact block... | mit |
vesopk/TechModule-Exercises | ClassesAndObjectsLab/SalesReport/SalesReport.cs | 1208 | using System;
using System.Collections.Generic;
class SalesReport
{
static void Main()
{
int salesCount = int.Parse(Console.ReadLine());
List<Sale> sales = new List<Sale>();
for (int i = 0; i < salesCount; i++)
{
string[] currentSale = Console.ReadLine().... | mit |
gregwym/joos-compiler-java | src/ca/uwaterloo/joos/ast/visitor/MethodDeclVisitor.java | 651 | package ca.uwaterloo.joos.ast.visitor;
import ca.uwaterloo.joos.ast.ASTNode;
import ca.uwaterloo.joos.ast.decl.MethodDeclaration;
public abstract class MethodDeclVisitor extends ASTVisitor {
public MethodDeclVisitor() {
}
@Override
public void willVisit(ASTNode node) {
}
@Override
public void didVisit(AST... | mit |
polydom/polydom | src/components/trace.js | 703 | /**
* @instance
* @memberOf $dom
* @category DOM
*
* @description
* Return the HTML markup of a DOM node OR the HTML markup from within a DOM node.
*
* @param {Element} subject The element whose markup will be returned.
* @param {Boolean} inner Return only the inner markup of the element.
* @returns {String}... | mit |
lextel/evolution | fuel/packages/faker/Faker/Provider/Lorem.php | 8885 | <?php
namespace Faker\Provider;
class Lorem extends \Faker\Provider\Base
{
protected static $wordList = array(
'alias', 'consequatur', 'aut', 'perferendis', 'sit', 'voluptatem',
'accusantium', 'doloremque', 'aperiam', 'eaque','ipsa', 'quae', 'ab',
'illo', 'inventore', 'veritatis',... | mit |
ganesh-narayanan/Entrevista | Entrevista/Trees/Properties/AssemblyInfo.cs | 1386 | 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("Tr... | mit |
abcd19/StorageUI | st-field/st-combobox/source/js/List/ListItem/Event/mouseOver.js | 386 | ST.namespace('ST.comboboxFld.list.listItem.event');
ST.comboboxFld.list.listItem.event.mouseOver = (function() {
var handler = function()
{
this.markMouseOver(true);
if(typeof(this._object['_data']['handler']['mouseOverItem']) == 'function')
{
this._object['_data']['handler'][... | mit |