repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
documentcloud/cloud-crowd | lib/cloud_crowd/worker.rb | 5368 | require 'benchmark'
module CloudCrowd
# The Worker, forked off from the Node when a new WorkUnit is received,
# launches an Action for processing. Workers will only ever receive WorkUnits
# that they are able to handle (for which they have a corresponding action in
# their actions directory). If communication... | mit |
AshwinKumarVijay/ECS-Development | ECS/Project/Project/Renderers/RendererResourceManagers/RendererMaterialManager/RendererMaterialManager.cpp | 4995 | #include "RendererMaterialManager.h"
#include "../Resources/ResourceData/MaterialData/MaterialData.h"
// Default RendererMaterialManager Constructor.
RendererMaterialManager::RendererMaterialManager()
{
}
// Default RendererMaterialManager Destructor.
RendererMaterialManager::~RendererMaterialManager()
{
}
// Add... | mit |
palkan/anyway_config | spec/support/print_warning_matcher.rb | 690 | # frozen_string_literal: true
RSpec::Matchers.define :print_warning do |message|
def supports_block_expectations?
true
end
match do |block|
stderr = fake_stderr(&block)
message ? stderr.include?(message) : !stderr.empty?
end
description do
"write #{message && "\"#{message}\"" || "anything"}... | mit |
moimikey/react-boilerplate | src/app/modules/Counter/reducers.js | 305 | import { handleAction, combineActions } from 'redux-actions'
import { increment } from './actions'
export default handleAction(combineActions(increment), {
next: (state, { payload: { amount } }) => ({ ...state, count: state.count + amount }),
throw: state => ({ ...state, count: 0 })
}, { count: 0 })
| mit |
jucimarjr/posueagames | felipepb/breakup/src/GameFramework/Game.js | 3439 | // Namespace GameFramework encapsulates class Game to detach it from the wild world of the deepweb!GameFramework
var GameFramework = { };
GameFramework.KeyCode = {
LeftArrow: 37,
UpArrow: 38,
RightArrow: 39,
DownArrow: 40,
SpaceBar: 32,
EnterKey: 13
};
GameFramework.removeObjectFromArray = function (array, obje... | mit |
xnnyygn/report8 | config/initializers/redis.rb | 91 | # uncomment me to enable PV support
$redis = Redis.new(:host => 'localhost', :port => 6379) | mit |
SaintGimp/BeagleBoneHardware | bbio-test/watch_test.py | 377 | import gimpbbio.gpio as gpio
import time
import datetime
count = 0
data_file = open("/var/tmp/test_data.txt", "w+")
def callback(pin):
data_file.write(str(datetime.datetime.now()) + '\n')
global count
count += 1
input_pin = gpio.pins.p8_8
input_pin.open_for_input()
input_pin.watch(gpio.RISING, callback)
while Tr... | mit |
okoskimi/Xfolite | source/com/nokia/xfolite/client/ui/XF_ChoiceItem.java | 1489 | /*
* This file is part of: Xfolite (J2ME XForms client)
*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
*
* Contact: Oskari Koskimies <oskari.koskimies@nokia.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public ... | mit |
SArnab/JHU-605.401.82-SupaFly | client/src/components/controls.tsx | 7692 | import * as React from "react"
import * as Commands from "../commands"
import Network from "../network"
import { showModal } from "./modal"
import SuggestionModal from "./suggestion-modal"
import AccusationModal from "./accusation-modal"
interface Props {
game: ClueLess.Game,
player: ClueLess.Player
}
interface Sta... | mit |
rightscale/global_session | lib/global_session/session/v4.rb | 7093 | require 'securerandom'
module GlobalSession::Session
# Version 4 is based on JSON Web Token; in fact, if there is no insecure
# state, then a V4 session _is_ a JWT. Otherwise, it's a JWT with a
# nonstandard fourth component containing the insecure state.
class V4 < Abstract
EXPIRED_AT = 'exp'.freeze
I... | mit |
JunKikuchi/raws | spec/raws/s3_spec.rb | 6644 | require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
RAWS::S3.http = RAWS::HTTP::HT2P
RAWS_S3_BUCKETS.each do |bucket_name, location, acl|
location_label = location ? location : 'US'
describe RAWS::S3 do
describe 'class' do
before(:all) do
=begin
response = RAWS::S3.create_bucke... | mit |
cloudera/more-behaviors | Specs/more-behaviors/Forms/Behavior.FormRequest.js | 700 | /*
---
name: Behavior.FormRequest Tests
description: n/a
requires: [More-Behaviors/Behavior.FormRequest, Behavior-Tests/Behavior.SpecsHelpers]
provides: [Behavior.FormRequest.Tests]
...
*/
(function(){
var str = '<form data-filters="FormRequest" data-update-by-selector=".formRequestTest"></form><div id="formRequestTe... | mit |
bombomby/brofiler | gui/Profiler.Data/EventBoard.cs | 4795 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
namespace Profiler.Data
{
[System.AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false)]
public class HiddenColumn : Attribute
{
}
[System.Attribute... | mit |
quarantin/jscep | src/test/java/org/jscep/transport/response/CapabilitiesCipherTest.java | 1266 | package org.jscep.transport.response;
import org.jscep.transport.response.Capabilities;
import org.jscep.transport.response.Capability;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import jav... | mit |
stopyoukid/DojoToTypescriptConverter | out/separate/dojox.dtl.tag.logic.d.ts | 435 | /// <reference path="Object.d.ts" />
module dojox.dtl.tag.logic{
export var IfNode : Object;
export var IfEqualNode : Object;
export var ForNode : Object;
export function if_ (parser:any,token:any) : any;
export function _ifequal (parser:any,token:any,negate:any) : any;
export function ifequal (parser:any,token:any) : ... | mit |
noyelling/wage_slave | spec/wage_slave/aba_spec.rb | 1039 | require "spec_helper"
describe WageSlave::ABA do
let(:details) {[
{ bsb: "789-112", account_number: "12345678", name: "Jim Sanders", amount: 5000 },
{ bsb: "213-213", account_number: "98765432", name: "Herc Dundall", amount: 6000 },
{ bsb: "099-231", account_number: "00012312", name: "Ridgells", amou... | mit |
Rousscot/M1CAR_PEER2PEER | src/peer2peer/model/peers/Peer.java | 2292 | package peer2peer.model.peers;
import java.io.File;
import java.io.IOException;
import java.nio.file.FileAlreadyExistsException;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Set;
/**
* I am an interface to define the comportment of a Peer.
*/
public interface Peer extends Remote {
... | mit |
tsnorri/vcf2multialign | combine-msa-vcf/utility.cc | 4849 | /*
* Copyright (c) 2020 Tuukka Norri
* This code is licensed under MIT license (see LICENSE for details).
*/
#include <numeric>
#include <vcf2multialign/variant_format.hh>
#include "utility.hh"
namespace lb = libbio;
namespace rsv = ranges::view;
namespace vcf = libbio::vcf;
namespace v2m = vcf2multialign;
name... | mit |
fmenesesp/CursoSymfony | src/CursoSymfony/MainBundle/Entity/Producto.php | 885 | <?php
/**
* Created by PhpStorm.
* User: Fernando
* Date: 07/02/2016
* Time: 13:48
*/
namespace CursoSymfony\MainBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
*
* @ORM\Entity
*
*/
class Producto {
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue
*/
protec... | mit |
hilgenberg/cplot | Windows/Controls/DefinitionView.cpp | 2129 | #include "../stdafx.h"
#include "DefinitionView.h"
#include "../Document.h"
#include "../res/resource.h"
#include "ViewUtil.h"
#include "SideSectionDefs.h"
#include "../MainWindow.h"
#include "../MainView.h"
#include "../CPlotApp.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
enum
{
ID_def = 2000
};
IMPLEMENT_DYNAMI... | mit |
dmpe/Homeworks5 | Assignment5/src/serverPart/ChatServerBind.java | 1804 | package serverPart;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
import java.io.IOException;
import java.net.URISyntaxException;
import java.rmi.AlreadyBoundException;
import java.security.KeyManagementException;
import java.securit... | mit |
joshNM/webton-cleaner | front-page.php | 423 | <?php get_template_part('templates/partial', 'banner'); ?>
<?php get_template_part('templates/page', 'home-intro'); ?>
<?php get_template_part('templates/partial', 'team'); ?>
<?php get_template_part('templates/partial', 'testimonial'); ?>
<?php get_template_part('templates/partial', 'clients'); ?>
<?php get_template_p... | mit |
TimPietrusky/ThunderCommander | app.js | 944 | // Load dependencies
var express = require('express'),
ThunderConnector = require('thunder-connector');
// Init express
var app = express();
// gzip / deflate
app.use(express.compress());
// Load static files
app.use(express.static(__dirname + '/app'));
// Handle the default route
app.get('/', function... | mit |
treverhines/PyGeoNS | pygeons/main/gpstation.py | 7668 | '''
Module of station Gaussian process constructors.
'''
import numpy as np
import rbf.basis
import rbf.poly
from rbf import gauss
from pygeons.main.gptools import set_units
@set_units([])
def const():
'''
Constant in time basis function
Parameters
----------
None
'''... | mit |
nathansamson/OMF | omf-resctl/ruby/omf-resctl/omf_driver/ethernet.rb | 5664 | #
# Copyright (c) 2006-2008 National ICT Australia (NICTA), Australia
#
# Copyright (c) 2004-2008 WINLAB, Rutgers University, USA
#
# 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 res... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/galleria/1.2.4/plugins/picasa/galleria.picasa.min.js | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:e029d79f6a548bcbd28f03b605ae70134ae177b27287604073902c64e4b31b32
size 3079
| mit |
tiagosr/unravel | unravel_base.py | 2984 | """
* Unravel
* Interactive Disassembler
* (c) 2013 Tiago Rezende
*
* Base types, classes and algorithms
"""
class CodeGraphNode:
def __init__(self, at, read_as="code"):
self.at = at
self.read_as = read_as
def trace(self, code, deep = False):
operation = code.decode(at)
self.op... | mit |
wouterverweirder/kinect2 | examples/electron/renderer/assets/vendors/three.js/examples/js/loaders/PCDLoader.js | 10256 | /**
* @author Filipe Caixeta / http://filipecaixeta.com.br
* @author Mugen87 / https://github.com/Mugen87
*
* Description: A THREE loader for PCD ascii and binary files.
*
* Limitations: Compressed binary files are not supported.
*
*/
THREE.PCDLoader = function ( manager ) {
THREE.Loader.call( this, manager ... | mit |
groupefungo/historiqueux | spec/dummy/app/models/horse.rb | 84 | class Horse < ActiveRecord::Base
has_paper_trail
belongs_to :dummy_model
end
| mit |
kostyadubinin/watchlist | config/initializers/session_store.rb | 172 | # frozen_string_literal: true
# Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, key: "_watchlist_session"
| mit |
danellis/cosmo | cosmo/database.py | 2581 | import sqlite3
class Database(object):
"""Data access layer for storing and retrieving triples to/from SQLite database."""
def __init__(self, db_filename, flush=False):
"""Initialize the database file, creating tables and indices as necessary.
:param db_filename: The name of a new or existing... | mit |
saurabh6790/frappe | frappe/www/login.py | 4093 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
import frappe.utils
from frappe.utils.oauth import get_oauth2_authorize_url, get_oauth_keys, login_via_oauth2, login_via_oauth2_id_token, login_oauth_user as _login_... | mit |
phavour/phavour | Phavour/Cache/AdapterMemcache.php | 6303 | <?php
/**
* Phavour PHP Framework Library
*
* @author Phavour Project
* @copyright 2013-2014 Phavour Project
* @link http://phavour-project.com
* @license http://phavour-project.com/license
* @since 1.0.0
* @package Phavour
*
* MIT LICENSE
*
* Permission is hereby granted, free o... | mit |
egore/appframework | src/test/java/de/egore911/appframework/mapping/classes/PlainSetClass.java | 305 | package de.egore911.appframework.mapping.classes;
import java.util.HashSet;
import java.util.Set;
public class PlainSetClass {
private Set<String> member = new HashSet<>();
public Set<String> getMember() {
return member;
}
public void setMember(Set<String> member) {
this.member = member;
}
} | mit |
mavenlink/brainstem | lib/brainstem/api_docs.rb | 4853 | require 'active_support/configurable'
require 'active_support/core_ext/string/strip'
module Brainstem
module ApiDocs
include ActiveSupport::Configurable
config_accessor(:write_path) do
File.expand_path("./brainstem_docs")
end
#
# Defines the naming pattern of the Open API Specification fi... | mit |
tsechingho/ajax-tutorial | spec/controllers/creatures_controller_spec.rb | 6213 | require 'spec_helper'
# This spec was generated by rspec-rails when you ran the scaffold generator.
# It demonstrates how one might use RSpec to specify the controller code that
# was generated by Rails when you ran the scaffold generator.
#
# It assumes that the implementation code is generated by the rails scaffold
... | mit |
Horizon-Blue/playground | Solutions-to-Books/C++Primer/Chapter05/5.20.cpp | 450 | // Xiaoyan Wang 12/27/2015
#include <iostream>
#include <string>
using namespace std;
int main() {
string previous = "", current;
bool repeated = false;
while(cin >> current) {
if(previous != current)
previous = current;
else {
repeated = true;
break;
}
}
if(repeated)
cout... | mit |
xincap/erp | lib/jd/Request/HostingdataJddpDataListGetPaipaiRequest.php | 1650 | <?php
namespace Jd\Request;
class HostingdataJddpDataListGetPaipaiRequest
{
private $apiParas = array();
public function getApiMethodName(){
return "jingdong.hostingdata.jddp.data.list.get.paipai";
}
public function getApiParas(){
return json_encode($this->apiParas);
}
public function check(){
}
... | mit |
nbibler/yahoo_site_explorer | lib/yahoo_site_explorer/results_container.rb | 1456 | class YahooSiteExplorer
class ResultsContainer #:nodoc:
include Enumerable
attr_reader :total_results_available,
:total_results_returned,
:first_result_position,
:results
def initialize(service, request_options, results_hash = {}) #:nodoc:
... | mit |
minjia-tang/snafoo | application/views/templates/header.php | 3202 | <!doctype html>
<html class="no-js" lang="en-us">
<head>
<!-- META DATA -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!--[if IE]><meta http-equiv="cleartype" content="on" /><![endif]-->
<!-- SEO -->
<title>SnaFoo - Nerdery Snack Food Order... | mit |
jedi-academy/umbrella | application/controllers/Work.php | 9422 | <?php
/**
* Work service for factory apps.
*
* This controller provides a number of services that a factory
* app can request.
*
* @package Panda Research Center
* @author J.L. Parry
* @link https://umbrella.jlparry.com/help
*/
class Work extends CI_Controller {
// constructor
function __construct()
... | mit |
TsvetanMilanov/TelerikAcademyFinalExams | JavaScriptApplicationsFinalExam/public/js/utilities.js | 1591 | var utilities = (function () {
var USER_KEY = 'user',
AUTH_KEY = 'authKey';
function toggleAuthControls() {
var currentUser = getCurrentUser();
if (currentUser != null) {
$('.login-li').hide();
$('.register-li').hide();
$('.logout-li').show();
... | mit |
blacklabcapital/darkfeed | go/schemas/fb/SSBEntry.go | 2135 | // automatically generated by the FlatBuffers compiler, do not modify
package fb
import (
flatbuffers "github.com/google/flatbuffers/go"
)
type SSBEntry struct {
_tab flatbuffers.Table
}
func GetRootAsSSBEntry(buf []byte, offset flatbuffers.UOffsetT) *SSBEntry {
n := flatbuffers.GetUOffsetT(buf[offset:])
x := &... | mit |
danisio/HQC-HighQualityCode-Homeworks | 11.TestDrivenDevelopment(TDD)/PokerTests/ClassHandTests.cs | 1662 | namespace PokerTests
{
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Poker;
[TestClass]
public class ClassHandTests
{
[TestMethod]
public void TestToString_ShouldWorkProperly()
{
... | mit |
peteratseneca/bti420winter2017 | Week_04/AssocOneToMany/AssocOneToMany/Controllers/AccountController.cs | 17400 | using System;
using System.Globalization;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using AssocOneToMany.Models;
namespace AssocOneToMany.C... | mit |
luma211/snowflake | SampleTest/DetectHMD/Oculus/OculusPch.cpp | 22 | #include "OculusPch.h" | mit |
ruudgreven/homewizard-lib-java | src/main/java/nl/rgonline/homewizardlib/sensors/HWSensor.java | 760 | package nl.rgonline.homewizardlib.sensors;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import nl.rgonline.homewizardlib.AbstractHwEntity;
import nl.rgonline.homewizardlib.HWConnection;
/**
* Represents a sensor in the HomeWizard system.
* @author pdegeus
*/
@ToString(callSuper = true)
publi... | mit |
drcypher/phpbogo | src/main/Util/Json.php | 4649 | <?php
namespace Bogo\Util;
/**
* Json helper functions.
*
* Adds the following functionality:
* <ul>
* <li>JSON string validation: Util\Json::isValid()</li>
* <li>JSON formatting/indentation: Util\Json::indent()</li>
* <li>JSON soft decoding: Util\Json::softDecode*() (<i>does not fail if json is invalid</i>)</l... | mit |
CarlosDevlp/ToDoListMaterial | bower_components/angular-material/modules/closure/tooltip/tooltip.js | 10119 | /*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.11.4-master-f966d0f
*/
goog.provide('ng.material.components.tooltip');
goog.require('ng.material.core');
/**
* @ngdoc module
* @name material.components.tooltip
*/
angular
.module('material.components.tooltip', [ 'materi... | mit |
jmartty/tpcim2 | data/flot-data.js | 40760 | //Flot Line Chart
$(document).ready(function() {
var offset = 0;
plot();
function plot() {
var sin = [],
cos = [];
for (var i = 0; i < 12; i += 0.2) {
// sin.push([i, Math.sin(i + offset)]);
sin.push([i, Math.tan(i + offset)]);
cos.push([i, M... | mit |
ekylibre/formize | vendor/assets/javascripts/jquery-ui/datepicker/ar.js | 1300 | /* Arabic Translation for jQuery UI date picker plugin. */
/* Khaled Alhourani -- me@khaledalhourani.com */
/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */
jQuery(function($){
$.datepicker.regio... | mit |
hoburg/gpkit | gpkit/constraints/sgp.py | 12935 | """Implement the SequentialGeometricProgram class"""
import warnings as pywarnings
from time import time
from collections import defaultdict
import numpy as np
from ..exceptions import (InvalidGPConstraint, Infeasible, UnnecessarySGP,
InvalidPosynomial, InvalidSGPConstraint)
from ..keydict imp... | mit |
xbnewbie/kaler | assets/js/inc/demo.js | 896 | $(window).load(function(){
/*-------------------------------------------
Welcome Message
---------------------------------------------*/
function notify(message, type){
$.growl({
message: message
},{
type: type,
allow_dismiss: false,
... | mit |
shesuyo/crud | crud.go | 17503 | package crud
import (
"database/sql"
"errors"
"fmt"
"log"
"net/http"
"reflect"
"runtime"
"strings"
"sync"
_ "github.com/go-sql-driver/mysql" //mysql driver
)
// 变量
var (
TimeFormat = "2006-01-02 15:04:05"
//错误
ErrExec = errors.New("执行错误")
ErrArgs = errors.New("参数错误")
ErrInsertRepeat = errors.New("重复... | mit |
omicrono/EDEngineer_Spanish_Version | EDEngineer/Converters/RarityToIconConverter.cs | 1123 | using System;
using System.Globalization;
using System.Windows.Data;
using EDEngineer.Models;
namespace EDEngineer.Converters
{
public class RarityToIconConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
switch... | mit |
mohsinhijazee/s3_attachment | init.rb | 196 | # Include hook code here
require 's3_attachment.rb'
require File.dirname(__FILE__) + '/../../../lib/dedomenon.rb'
register_datatype :name => 'madb_s3_attachment', :class_name => 'S3Attachment'
| mit |
somebee/imba | polyfills/crypto/esm/lib/randomfill/index.js | 3095 | import randombytes from "../randombytes";
'use strict';
function oldBrowser() {
throw new Error('secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11');
}
var kBufferMaxLength = Buffer.kMaxLength;
var crypto = global.crypto || global.msCrypto;
var kMaxUint32 = M... | mit |
hankmorgan/UnderworldExporter | Skunkworks/CritterAnimInfo.cs | 365 | using UnityEngine;
using System.Collections;
public class CritterAnimInfo {
public string[,] animSequence;
public int[,] animIndices;
public Sprite[] animSprites;
public string[] animName;
public CritterAnimInfo()
{
animSequence=new string[32,8];
animIndices=new int[32,8];
animSprites=new Sprite[200];/... | mit |
danrg/RGT-tool | static/js/external/ajaxPostDjangoFix.js | 1757 | //from https://docs.djangoproject.com/en/dev/ref/contrib/csrf/
$(document).ready(function(){
$(document).ajaxSend(function(event, xhr, settings) {
function getCookie(name) {
var cookieValue = null;
if (document.cookie && document.cookie != '') {
var cookies = document.cookie.s... | mit |
Python-Tools/pmfp | pmfp/config/verify.py | 3869 | """用于验证pmfp.json的schema."""
import getpass
from typing import Dict
from typing import Any as typeAny
from voluptuous import (All, Any, Email, Equal, In, Invalid, NotIn,
Required, Schema, Url)
NOT_NAME_RANGE = ["app", "application", "module", "project"]
STATUS_RANGE = ["prod", "release", "dev", ... | mit |
phase/Pore | src/main/java/blue/lapis/pore/impl/block/PoreChest.java | 1993 | /*
* Pore
* Copyright (c) 2014-2015, Lapis <https://github.com/LapisBlue>
*
* The MIT License
*
* 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 ... | mit |
BrianHicks/emit | tests/message_tests.py | 2002 | 'tests for message'
import json
from unittest import TestCase
from emit.messages import Message
class MessageTests(TestCase):
'tests for Message'
def test_dot_access(self):
'accessing attributes'
x = Message(x=1)
self.assertEqual(1, x.x)
def test_access_missing(self):
'ac... | mit |
plast-lab/DelphJ | examples/berkeleydb/com/sleepycat/persist/impl/Format.java | 32107 | /*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2002,2008 Oracle. All rights reserved.
*
* $Id: Format.java,v 1.39 2008/01/07 14:28:59 cwl Exp $
*/
package com.sleepycat.persist.impl;
import java.io.Serializable;
import java.util.HashSet;
import java.util.IdentityHashMap;
import ja... | mit |
revida/sitecore-assurance | Revida.Sitecore.Assurance.Configuration/InvalidConfigurationException.cs | 653 | using System;
using System.Runtime.Serialization;
namespace Revida.Sitecore.Assurance.Configuration
{
public class InvalidConfigurationException : Exception
{
public InvalidConfigurationException()
{
}
public InvalidConfigurationException(string message) : base(me... | mit |
Kaishiyoku/Crystal-RSS | resources/views/errors/404.blade.php | 311 | @extends('errors::illustrated-layout')
@section('code', '404')
@section('title', __('errors.404.title'))
@section('image')
<div style="background-image: url('/svg/404.svg');" class="absolute pin bg-cover bg-no-repeat md:bg-left lg:bg-center">
</div>
@endsection
@section('message', __('errors.404.message'))
| mit |
mainconceptx/DAS | src/qt/overviewpage.cpp | 28663 | // Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2016 The Das Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "overviewpage.h"
#include "ui_overviewpage.h"
#include "bitcoinu... | mit |
ycabon/presentations | 2020-devsummit/arcgis-js-api-road-ahead/js-api/esri/widgets/Legend/nls/el/Legend.js | 2515 | // All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define({widgetLabel:"\u03a5\u03c0\u03cc\u03bc\u03bd\u03b7\u03bc\u03b1",points:"\u03a3\u03b7\u03bc\u03b5\u03af\u03b1",lines:"\u0393\u03c1\u03b1\u03bc\u03bc\u03ad\u0... | mit |
patrickneubauer/XMLIntellEdit | xmlintelledit/xmltext/src/main/java/isostdisois_13584_32ed_1techxmlschemaontomlSimplified/STANDARDSIZEType.java | 5445 | /**
*/
package isostdisois_13584_32ed_1techxmlschemaontomlSimplified;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>STANDARDSIZE Ty... | mit |
joker23/ACM | chef/2015_2_Long/RANKLIST.java | 1384 | import java.util.*;
import java.math.*;
import java.io.*;
import java.text.*;
import java.awt.Point;
import static java.util.Arrays.*;
import static java.lang.Integer.*;
import static java.lang.Double.*;
import static java.lang.Long.*;
import static java.lang.Short.*;
import static java.lang.Math.*;
import static java... | mit |
Casava/OneCamera | OneCamera/OneCamera/Scripts/recevier.js | 935 | $(function(){
var socket;
var receiver = $("#receiver");
receiver.css("width", 500);
receiver.css("height", 250);
receiver.css("background-color", "#000000");
receiver.css("display", "block");
$('#start').on('click', function(){
console.log("started");
// socket = new WebSocket("ws://onecamera.azurewebsit... | mit |
rohitmukherjee/High-Performance-DSLs | Reporting Tool/main.py | 68 | from reporter import Reporter
reporter = Reporter()
reporter.run()
| mit |
jsJunky/store | config/session.js | 4320 | /**
* Session Configuration
* (sails.config.session)
*
* Sails session integration leans heavily on the great work already done by
* Express, but also unifies Socket.io with the Connect session store. It uses
* Connect's cookie parser to normalize configuration differences between Express
* and Socket.io and hoo... | mit |
clinwiki-org/cw-app | front/app/containers/EditWorkflowsPage/index.ts | 48 | export { default } from './EditWorkflowsPage';
| mit |
polarkac/PolarBird | polarbird/polarbird.py | 2100 | import os
import twitter
import curses
import logging
from polarbird.settings import settings
from polarbird.tokens import TOKENS_FILE, CONSUMER_KEY, CONSUMER_SECRET
from polarbird.tweets import TweetDatabase
from polarbird.windows import Screen
from polarbird.streams import UserStreamThread
logging.basicConfig(filen... | mit |
superphil0/opendoor | client/www/js/view/app-view.js | 1899 | // Generated by CoffeeScript 1.6.3
(function() {
var _ref,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototyp... | mit |
hmemcpy/AgentMulder | src/Test/Data/Ninject/KernelTestCases/BindNonGenericToNonGeneric.cs | 403 | // Patterns: 1
// Matches: CommonImpl1.cs
// NotMatches: Foo.cs
using Ninject;
using TestApplication.Types;
namespace TestApplication.Ninject.KernelTestCases
{
public class BindNonGenericToNonGeneric
{
public BindNonGenericToNonGeneric()
{
var kernel = new StandardKernel();
... | mit |
sjmariogolf/petecoin | src/qt/locale/bitcoin_es_MX.ts | 116059 | <TS language="es_MX" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<source>About Petecoin Core</source>
<translation>Acerca de Petecoin Core</translation>
</message>
<message>
<source><b>Petecoin Core</b> version</source>
<translation><b>Pe... | mit |
sharadbhat/Video-Sharing-Platform | Server/static/js/upload.js | 555 | $(document).ready(function(){
$('form input').change(function ()
{
var fullPath = this.value;
if (fullPath)
{
var startIndex = (fullPath.indexOf('\\') >= 0 ? fullPath.lastIndexOf('\\') : fullPath.lastIndexOf('/'));
var filename = fullPath.substring(startIndex);
if (filename.indexOf('\\... | mit |
jtpaasch/armyguys | armyguys/jobs/availabilityzones.py | 1576 | # -*- coding: utf-8 -*-
"""Jobs for availability zones."""
from ..aws import availabilityzone
from . import utils
# Some zones are currently unavailable in AWS.
# We want to ignore them.
ZONE_BLACKLIST = ["us-east-1a"]
def fetch_all(profile):
"""Fetch all availability zones.
Args:
profile
... | mit |
greedo/Presentations | PyGotham2015/create_db.py | 437 | from sqlalchemy import create_engine, engine
from sqlalchemy.ext.declarative import declarative_base
from models import Pars, Spots, Base
import passwords
engine = create_engine('postgresql+psycopg2://'+passwords.PyGotham.username+':'+passwords.PyGotham.password+'@'+passwords.PyGotham.hostname+':5432/'+passwords.PyGot... | mit |
mikesmitty/unixgroup | main.go | 1568 | package main
import (
"fmt"
"os"
"os/user"
"strconv"
"strings"
)
func main() {
// Get our user and group list
un := os.Getenv("USER")
if un == "" {
os.Exit(3)
}
gl := strings.Split(os.Getenv("GROUP"), ",")
if len(gl) == 0 || gl[0] == "" {
os.Exit(4)
}
// Get user struct, primary gid, and gid (string... | mit |
kostyrin/SysAnalytics | SysAnalytics.Data/Conventions/TableNameConvention.cs | 964 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.Instances;
namespace SysAnalytics.Data.Conventions
{
public class TableNameConvention : IClassConvention
{
public v... | mit |
cggaurav/document-js | lib/class/class.js | 2036 | /* Simple JavaScript Inheritance
* By John Resig http://ejohn.org/
* MIT Licensed.
*/
// Inspired by base2 and Prototype
// SEE: http://ejohn.org/blog/simple-javascript-inheritance/
(function(){
var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/;
// The base Class implemen... | mit |
PMenezes/RUReady | RUReady.project/RUReadyAPI/Controllers/AuthenticationController.cs | 236 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace RUReadyAPI.Controllers
{
public class AuthenticationController
{
}
}
| mit |
OpenSourcePolicyCenter/taxdata | history/report.py | 12365 | """
Script used to automatically generate PDF report comparing TaxData outputs
after updates
"""
# flake8: noqa: E501
import argparse
import pandas as pd
import taxcalc as tc
import altair as alt
from report_utils import (
run_calc,
distplot,
write_page,
growth_scatter_plot,
compare_vars,
cbo_ba... | mit |
wolny/keras-image-net | src/vgg16.py | 467 | from keras.applications.vgg16 import VGG16
from keras.preprocessing import image
from keras.applications.vgg16 import preprocess_input, decode_predictions
import numpy as np
model = VGG16(weights='imagenet')
img_path = 'data/german_shepard.jpg'
img = image.load_img(img_path, target_size=(224, 224))
x = image.img_to_a... | mit |
marthlab/pipeline_builder | public/js/util/bam.iobio.js | 19719 | // extending Thomas Down's original BAM js work
function Bam (bamUri, options) {
if (!(this instanceof arguments.callee)) {
throw new Error("Constructor may not be called as a function");
}
this.bamUri = bamUri;
this.options = options; // *** add options mapper ***
// test if file or... | mit |
OscarCid/DumphineAndOrsen | asset/src/WoT/WoT.js | 15687 | /**
* Created by Orsen on 06-03-2016.
*/
var APIKEY = "6be59cbefdddc1454074718eb3434a96";
var all_logros = [];
$(document).ready(function(){
$('#search').click(function()
{
$("#text_event").text("Buscando ID");
if ($('#nickname').val() != '')
{
var nickname = $('#nickname'... | mit |
garmoshka-mo/neo4j | lib/neo4j/active_node/validations.rb | 1740 | module Neo4j
module ActiveNode
# This mixin replace the original save method and performs validation before the save.
module Validations
extend ActiveSupport::Concern
include Neo4j::Shared::Validations
# @return [Boolean] true if valid
def valid?(context = nil)
context ||... | mit |
jValdron/portfolio | controllers/api/articles.js | 1124 | /**
* articles.js
* Returns the dynamic elements of the articles in JSON.
*
* @author Jason Valdron <jason@valdron.ca>
* @package di-api
*/
(function() {
'use strict';
var async = require('async');
// Export the route function.
module.exports = function(app){
var cache = {
... | mit |
EFLFE/Psybot | Psybot/Program.cs | 1467 | using System;
using System.IO;
using System.Reflection;
using System.Threading;
using Psybot.Modules;
using Psybot.UI;
namespace Psybot
{
public static class Program
{
public const string VERSION = "0.3.0";
private static PsybotCore core;
public static void Main(string[] args)
{
Console.WriteLine("Psyb... | mit |
EndangeredMassa/boxes | lib/ansi.js | 923 | // Generated by CoffeeScript 2.0.0-beta8
void function () {
var clearFrom, Parser;
Parser = require('../vendor/ansi_parse');
clearFrom = function (history, position) {
var lastLine, lines;
lines = history.split('\n');
lastLine = lines.pop();
lastLine = lastLine.substr(0, position);
lines.push(... | mit |
nilsding/twittbot | lib/twittbot.rb | 75 | require "twittbot/defaults"
# Twittbot default module
module Twittbot
end
| mit |
madbadPi/RecipeBook | src/Web/RecipeBook.Web/wwwroot/js/imageFileSelector.js | 1015 | class ImageFileSelector {
constructor(elementId, handleImageSelected, handleError) {
this.elementId = elementId;
this.handleImageSelected = handleImageSelected;
this.handleError = handleError;
}
startListen() {
let fileSelector = document.getElementById(this.elementId);
... | mit |
PawelBor/Year-4-Offer | Android/app/src/main/java/com/ioffer/gediminas/ioffer_android/RegisterActivity.java | 2169 | package com.ioffer.gediminas.ioffer_android;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Base64;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import org.json.JSONExc... | mit |
Azure/azure-sdk-for-go | services/preview/sql/mgmt/v4.0/sql/manageddatabaserestoredetails.go | 5048 | package sql
// 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 code is regenerated.
i... | mit |
fgrid/iso20022 | FailingReason11Choice.go | 593 | package iso20022
// Choice of format for the failing reason.
type FailingReason11Choice struct {
// Specifies the reason why the instruction has a failing settlement status.
Code *FailingReason2Code `xml:"Cd"`
// Specifies the reason why the instruction has a failing settlement status.
Proprietary *GenericIdenti... | mit |
jmcguire/learning | algorithms/searching/binary_search.py | 945 | # binary search
#
# divide and conquer
# best time: O(1)
# average time: O(logn)
# worst time: O(logn)
#
# required a list of sorted elements
# look at the half-way mark, compare to e, move up or down, repeat
def binary_search(A, e, start=0, end=None):
if end is None:
end = len(A)-1
middle = (start + end... | mit |
n3vrax/dot-api | src/Dot/ContentNegotiation/src/Factory/ContentTypeFilterMiddlewareFactory.php | 896 | <?php
/**
* @see https://github.com/dotkernel/dot-api/ for the canonical source repository
* @copyright Copyright (c) 2017 Apidemia (https://www.apidemia.com)
* @license https://github.com/dotkernel/dot-api/blob/master/LICENSE.md MIT License
*/
namespace Dot\ContentNegotiation\Factory;
use Dot\ContentNegotiation\... | mit |
Mirobit/bitcoin | src/policy/policy.cpp | 9748 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// NOTE: This file is intended to be customised by the end user, and includes onl... | mit |