code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
/* _______ ________
\ \ / _____/ ____ ___
/ | \/ \ ____/ __ \ / \
/ | \ \_\ \ ___/| | \
\____|__ /\______ /\___ >___| /
\/ \/ \/ \/
The MIT License (MIT)
COPYRIGHT (C) 2016 FIXCOM, LLC
Permission is hereby granted, free of charge, to any pe... | archendian/ngensdk | develop/v0.4/Ngen/include/Ngen.Callback.hpp | C++ | mit | 3,144 |
package logbook.server.proxy;
/**
* 動作に必要なデータのみ取得するためのフィルターです。
*
*/
public class Filter {
/** フィルターするContent-Type */
public static final String CONTENT_TYPE_FILTER = "text/plain";
/** キャプチャーするリクエストのバイトサイズ上限 */
public static final int MAX_POST_FIELD_SIZE = 1024 * 1024;
/** setAttribute用のキー(Res... | silfumus/logbook-EN | main/logbook/server/proxy/Filter.java | Java | mit | 2,555 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ForwardDocumentEvent.proto
package Diadoc.Api.Proto;
public final class ForwardDocumentEventProtos {
private ForwardDocumentEventProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
... | halex2005/diadocsdk-java | src/main/java/Diadoc/Api/Proto/ForwardDocumentEventProtos.java | Java | mit | 27,479 |
package saberapplications.pawpads.databinding;
import android.databinding.BaseObservable;
import android.databinding.BindingAdapter;
import android.databinding.BindingConversion;
import android.text.Editable;
import android.text.TextWatcher;
import android.widget.EditText;
import saberapplications.pawpads.R;
/**
*... | castaway2000/Pawpads | app/src/main/java/saberapplications/pawpads/databinding/BindableDouble.java | Java | mit | 2,887 |
using UnityEngine;
using System.Collections;
public class EnemyDeadInfo {
public int score = 0;
public Transform transform;
public bool headShot = false;
}
| yantian001/3DSniper | Assets/Script/Struct/EnemyDeadInfo.cs | C# | mit | 177 |
<?php
/**
* Elgg cron library.
*
* @package Elgg
* @subpackage Core
* @author Curverider Ltd
* @link http://elgg.org/
*/
/** The cron exception. */
class CronException extends Exception {}
/**
* Initialisation
*
*/
function cron_init()
{
// Register a pagehandler for cron
register_page... | namaggarwal/elgg | engine/lib/cron.php | PHP | mit | 1,140 |
package types
import "gopkg.in/pg.v4/internal/parser"
func AppendJSONB(b, jsonb []byte, quote int) []byte {
if quote == 1 {
b = append(b, '\'')
}
p := parser.New(jsonb)
for p.Valid() {
c := p.Read()
switch c {
case '\'':
if quote == 1 {
b = append(b, '\'', '\'')
} else {
b = append(b, '\'')... | yawhide/Lol-personal-counters | vendor/gopkg.in/pg.v4/types/append_jsonb.go | GO | mit | 612 |
#include <stdio.h>
#include <ruby.h>
#include <ruby/thread.h>
#include <v8.h>
#include <libplatform/libplatform.h>
#include <ruby/encoding.h>
#include <pthread.h>
#include <unistd.h>
#include <mutex>
#include <math.h>
using namespace v8;
class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
public:
virt... | lrosskamp/makealist-public | vendor/cache/ruby/2.3.0/gems/mini_racer-0.1.9/ext/mini_racer_extension/mini_racer_extension.cc | C++ | mit | 29,455 |
// This source code is dual-licensed under the Apache License, version
// 2.0, and the Mozilla Public License, version 1.1.
//
// The APL v2.0:
//
//---------------------------------------------------------------------------
// Copyright (C) 2007-2014 GoPivotal, Inc.
//
// Licensed under the Apache License, Version... | CymaticLabs/Unity3D.Amqp | lib/rabbitmq-dotnet-client-rabbitmq_v3_4_4/projects/client/RabbitMQ.Client/src/client/impl/StreamProperties.cs | C# | mit | 3,179 |
/*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
package im.actor.core.entity;
import com.google.j2objc.annotations.Property;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import im.actor... | ljshj/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/entity/User.java | Java | mit | 15,291 |
<?xml version="1.0" encoding="UTF-8"?>
<tileset name="Canalave Gym Set" firstgid="1" tilewidth="16" tileheight="16">
<image source="Canalave Gym Set.png" trans="000000"/>
</tileset> | vVv-AA/Pokemon-AndEngine | app/assets/tmx/workspace/Canalave Gym Set.tsx | TypeScript | mit | 182 |
package api
import (
"errors"
"io/ioutil"
"log"
"net/http"
"github.com/bitly/go-simplejson"
)
func Request(req *http.Request) (*simplejson.Json, error) {
resp, err := http.DefaultClient.Do(req)
if err != nil {
return nil, err
}
body, err := ioutil.ReadAll(resp.Body)
resp.Body.Close()
if err != nil {
r... | t-yuki/oauth2_proxy | api/api.go | GO | mit | 1,053 |
require 'net/http'
## monkey-patch Net::HTTP
#
# Certain apple endpoints return 415 responses if a Content-Type is supplied.
# Net::HTTP will default a content-type if none is provided by faraday
# This monkey-patch allows us to leave out the content-type if we do not specify one.
class Net::HTTPGenericRequest
def s... | NghiaTranUIT/spaceship | lib/spaceship/helper/net_http_generic_request.rb | Ruby | mit | 385 |
<?php
namespace spec\SensioLabs\Behat\PageObjectExtension\PageObject\Factory;
require_once __DIR__.'/Fixtures/ArticleList.php';
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use ProxyManager\Factory\LazyLoadingValueHolderFactory;
use ProxyManager\Proxy\LazyLoadingInterface;
use SensioLabs\Behat\PageObjectExtens... | sensiolabs/BehatPageObjectExtension | spec/PageObject/Factory/LazyFactorySpec.php | PHP | mit | 2,257 |
#include "overlapping.hpp"
/* TODO:
* grow seeds from edges, not nodes.
* Why are the results changing?
* Then, speed up delV
* ZEntropy shouldn't consider the number of groups, that should be taken out to another function.
* That factorial expression would be better
* Write down some of the stats, a... | rabbanyk/CommunityEvaluation | execs/CM-Overlapping-MOSES-McDaid/moses-2011-01-26/overlapping.cpp | C++ | mit | 42,402 |
'use strict';var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
switch (arguments.length) {
case 2: return decorators.reduceRight(funct... | binariedMe/blogging | node_modules/angular2/src/core/change_detection/differs/default_keyvalue_differ.js | JavaScript | mit | 14,210 |
window.hideAlert = function () {
$('#alertMessage').addClass("hidden");
$('#alertMessage').text("");
};
window.showAlert = function (msg) {
$('#alertMessage').text(msg);
$('#alertMessage').addClass("alert-danger");
$('#alertMessage').removeClass("hidden");
$('#alertMessage').fadeOut(100).fadeI... | asposebarcode/Aspose_BarCode_NET | Demos/src/Aspose.BarCode.Live.Demos.UI/Scripts/Shared/Alert.js | JavaScript | mit | 1,886 |
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Satrabel.Starter.EntityFramework;
using Abp.Authorization;
using Abp.BackgroundJobs;
using Abp.Notifications;
names... | sachatrauwaen/OpenApp | src/Satrabel.Starter.Web.Spa/Migrations/20170621153937_Added_Description_And_IsActive_To_Role.Designer.cs | C# | mit | 35,419 |
<?php
/*
* Copyright 2007-2013 Charles du Jeu - Abstrium SAS <team (at) pyd.io>
* This file is part of Pydio.
*
* Pydio is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, o... | reverserob/pydio-docker | pydio-core/plugins/editor.codemirror/i18n/conf/fr.php | PHP | mit | 987 |
define('controllers/panel',['require','jquery','backbone','utils/metrics','utils/browser','utils/video-player','utils/pubsub','controllers/panel-display'],function(require) {
var $ = require('jquery'),
Backbone = require('backbone'),
Metrics = require('utils/metrics'),
Browser = require('uti... | rlaj/tmc | source/dist/controllers/panel.js | JavaScript | mit | 9,409 |
// Design Basic Game Solo Challenge
// This is a solo challenge
// Your mission description:To complete a line of the same figure, horizontal, diagonal or vertical
// Overall mission: To win all the time :)
// Goals: make a line of the same kind before computer does
// Characters:You and the computer
// Objects:tic ... | cyberpolin/Phase-0 | week-7/tictactoe-game/game.js | JavaScript | mit | 2,853 |
from django.conf import settings
from django.conf.urls.defaults import patterns, url
from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned
from django.core.urlresolvers import NoReverseMatch, reverse, resolve, Resolver404
from django.db.models.sql.constants import QUERY_TERMS, LOOKUP_SEP
from d... | colinsullivan/bingo-board | bingo_board/tastypie/resources.py | Python | mit | 58,556 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Company
{
public partial class Site : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
} | dnmitev/ASPNET-WebForms | SiteMaps/Company/Site.Master.cs | C# | mit | 315 |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not re... | almadaocta/lordbike-production | errors/includes/src/Mage_Dataflow_Model_Convert_Container_Abstract.php | PHP | mit | 5,471 |
/**
* 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.
*/
package com.microsoft.azure.management.monitor;
import com.fasterxml.jackson.annotation... | martinsawicki/azure-sdk-for-java | azure-mgmt-monitor/src/main/java/com/microsoft/azure/management/monitor/LogSettings.java | Java | mit | 2,421 |
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("Co... | fabiomargarito/ExemplosCursoFundamentosEmArquiteturaDeSoftware | Curso Fundamentos/src/Aula 2/Revisitando OO/Exercício de Fixação 2 - Resolvido/ConsoleApplication1/Properties/AssemblyInfo.cs | C# | mit | 1,414 |
// GridFS
// Copyright(c) 2013 Siddharth Mahendraker <siddharth_mahen@me.com>
// MIT Licensed
exports.GridFS = require('./lib/GridFS');
exports.GridStream = require('./lib/GridStream');
| SergejKasper/smartkitchen | server/node_modules/gridfstore/node_modules/GridFS/index.js | JavaScript | mit | 187 |
// @flow
class A {
x = [1, 2, 3];
y = 4;
foo() {
this.x = this.x.map(function (z) {
this.y; // error, function has wrong this
});
}
}
class B {
x = [1, 2, 3];
y = 4;
foo() {
this.x = this.x.map(function (z) {
this.y; // ok, function gets pass... | facebook/flow | tests/arraylib/callback_this.js | JavaScript | mit | 534 |
import collectionClass from "./collections.class";
import collectionColor from "./collections.color";
function collectionBackgroundStyles(contentItem) {
return `
.${collectionClass(contentItem)} {
background-color: #${collectionColor(contentItem)};
}
`;
}
export default collectionBackgroundStyles;
| NewSpring/apollos-core | imports/util/collections/collections.backgroundStyles.js | JavaScript | mit | 320 |
<?php
/**
* @Created By ECMall PhpCacheServer
* @Time:2015-01-17 18:28:59
*/
if(filemtime(__FILE__) + 600 < time())return false;
return array (
'inbox' => '0',
'outbox' => '0',
'total' => 0,
);
?> | guotao2000/ecmall | temp/caches/0220/9021b7cab81e674df1db5e94e51dced1.cache.php | PHP | mit | 220 |
/*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2018, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following condition... | MadManRises/Madgine | shared/assimp/code/Subdivision.cpp | C++ | mit | 23,758 |
namespace SIM.Tool.Windows.MainWindowComponents
{
using System.Windows;
using SIM.Instances;
using SIM.Tool.Base;
using SIM.Tool.Base.Plugins;
using SIM.Tool.Windows.Dialogs;
using JetBrains.Annotations;
[UsedImplicitly]
public class DatabaseManagerButton : IMainWindowButton
{
#region Public met... | sergeyshushlyapin/Sitecore-Instance-Manager | src/SIM.Tool.Windows/MainWindowComponents/DatabaseManagerButton.cs | C# | mit | 649 |
package com.xeiam.xchange.lakebtc.marketdata;
import static org.fest.assertions.api.Assertions.assertThat;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigDecimal;
import org.junit.Test;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.xeiam.xchange.lakebtc.dto.marketdata.L... | coingecko/XChange | xchange-lakebtc/src/test/java/com/xeiam/xchange/lakebtc/marketdata/LakeBTCMarketDataJsonTest.java | Java | mit | 2,443 |
using System;
using BEPUutilities.DataStructures;
namespace BEPUutilities.ResourceManagement
{
/// <summary>
/// Uses a spinlock to safely access resources.
/// </summary>
/// <typeparam name="T">Type of object to store in the pool.</typeparam>
public class LockingResourcePool<T> : ResourcePool<T>... | mayermatt/coms-437-trashdroids | Trashdroids/BEPUutilities/ResourceManagement/LockingResourcePool.cs | C# | mit | 3,717 |
version https://git-lfs.github.com/spec/v1
oid sha256:71736be070607c3c30f4c139b063edf1b1ffa587cf725a0acc1e06c6d3af0e48
size 53235
| yogeshsaroya/new-cdnjs | ajax/libs/ace/1.1.5/mode-objectivec.js | JavaScript | mit | 130 |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
CurrentModel = mongoose.model('Attendance'),
Schedule = mongoose.model('Schedule'),
Group = mongoose.model('Group'),
_ = require('lodash');
exports.attendance = function(req, res, next, id) {
CurrentModel.load(id, function(err... | wolf-mtwo/attendance | packages/custom/groups/server/controllers/attendances.js | JavaScript | mit | 2,206 |
#ifndef OSCTOOLS_HPP_INCLUDED
#define OSCTOOLS_HPP_INCLUDED
class OscOptionalUnpacker
{
ofxOscMessage & msg;
int n;
public:
OscOptionalUnpacker(ofxOscMessage & m):msg(m),n(0){}
OscOptionalUnpacker & operator >> (int & i)
{
if(n < msg.getNumArgs())
{
i = msg.getArgAsI... | toddberreth/ofxTableGestures | src/Utils/OscTools.hpp | C++ | mit | 1,534 |
package org.magcruise.gaming.executor.api.message;
import org.magcruise.gaming.lang.Message;
import org.magcruise.gaming.lang.SConstructor;
public interface RequestToGameExecutor extends Message {
@Override
public SConstructor<? extends RequestToGameExecutor> toConstructor(ToExpressionStyle style);
@Override
pu... | MAGCruise/magcruise-core | src/main/java/org/magcruise/gaming/executor/api/message/RequestToGameExecutor.java | Java | mit | 454 |
import os
import re
from opsbro.collector import Collector
# DMI have lot of useful information that detectors can use to know lot about the platform/hardware
class Dmidecode(Collector):
def launch(self):
logger = self.logger
logger.debug('getDmidecode: start')
res = {}
#... | naparuba/kunai | data/global-configuration/packs/system/collectors/collector_dmidecode.py | Python | mit | 2,003 |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | oliviertassinari/material-ui | packages/mui-icons-material/lib/MultilineChartOutlined.js | JavaScript | mit | 733 |
# Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, key: '_ctgov_session'
| tibbs001/ctgov | config/initializers/session_store.rb | Ruby | mit | 137 |
import dateformat from 'dateformat';
import { map } from "underscore";
import { getAccountById } from 'routes/root/routes/Banking/routes/Accounts/modules/accounts';
import { getCreditCardById, getPrepaidCardById } from 'routes/root/routes/Banking/routes/Cards/modules/cards';
import { getLoanById } from 'routes/root/rou... | GKotsovos/WebBanking-Front-End | src/routes/root/routes/Banking/routes/utils/commonUtils.js | JavaScript | mit | 5,183 |
#include <iostream>
#include <map>
#include <stdexcept>
using namespace std;
int main(int argc, char* argv[]){
map<string, int> m;
m["bob"] = 56;
m["alice"] = 89;
m["billy"] = 3;
// print it out
map<string,int>::iterator i;
for(i = m.begin(); i != m.end(); i++){
cout << i->first << ": " << i->second <<... | mikehelmick/teaching | uc/computerScience2/spring2014/materials/demos/wk14/map.cpp | C++ | mit | 524 |
require File.join(File.dirname(__FILE__), "/../spec_helper")
describe "Firefox" do
before(:each) do
@browser = Firefox.new
@url = "http://localhost"
end
describe "Cross OS Firefox", :shared => true do
it "should be supported" do
@browser.should be_supported
end
end
describe "Mac O... | zfben/zfben_hanoi | spec/browsers/firefox_spec.rb | Ruby | mit | 1,641 |
using System.ComponentModel;
namespace EncompassRest.Loans.Enums
{
/// <summary>
/// PropertyValuationMethodType
/// </summary>
public enum PropertyValuationMethodType
{
/// <summary>
/// Automated Valuation Model
/// </summary>
[Description("Automated Valuation Mode... | EncompassRest/EncompassRest | src/EncompassRest/Loans/Enums/PropertyValuationMethodType.cs | C# | mit | 1,186 |
/*!
* vue-resource v1.5.3
* https://github.com/pagekit/vue-resource
* Released under the MIT License.
*/
'use strict';
/**
* Promises/A+ polyfill v1.1.4 (https://github.com/bramstein/promis)
*/
var RESOLVED = 0;
var REJECTED = 1;
var PENDING = 2;
function Promise$1(executor) {
this.state = PENDING;
this.val... | vuejs/vue-resource | dist/vue-resource.common.js | JavaScript | mit | 33,000 |
console.log('argv[0]: '+process.argv[0]);
console.log('argv[1]: '+process.argv[1]);
| AdonRain/neowheel | 1_hello/hello_2/hello_2_2.js | JavaScript | mit | 86 |
# Copyright (C) 2009 Pascal Rettig.
require 'rss/2.0'
class Feed::RssRenderer < ParagraphRenderer
paragraph :feed
paragraph :view_rss
paragraph :rss_auto_discovery, :cache => true
def feed
paragraph_data = (paragraph.data || {}).symbolize_keys
@handler_info = get_handler_info(:feed,:rss,pa... | cykod/Webiva | vendor/modules/feed/app/controllers/feed/rss_renderer.rb | Ruby | mit | 5,899 |
'use strict';
var Crawler = require('../lib/crawler');
var expect = require('chai').expect;
var jsdom = require('jsdom');
var httpbinHost = 'localhost:8000';
describe('Errors', function() {
describe('timeout', function() {
var c = new Crawler({
timeout : 1500,
retryTimeout : 1000,
... | shedar/node-webcrawler | tests/errorHandling.test.js | JavaScript | mit | 4,772 |
using System;
using Xamarin.Forms;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
using System.Linq;
namespace MyShop
{
public class StoresViewModel : BaseViewModel
{
readonly IDataStore dataStore;
public ObservableCollection<Store> Stores { get; set;}
public ObservableCollection<Grouping... | usmanm77/MyShoppe | MyShop/ViewModels/StoresViewModel.cs | C# | mit | 2,325 |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | oliviertassinari/material-ui | packages/mui-icons-material/lib/PhotoSizeSelectActual.js | JavaScript | mit | 582 |
#!/usr/bin/python
# convert LLVM GenAsmWriter.inc for Capstone disassembler.
# by Nguyen Anh Quynh, 2019
import sys
if len(sys.argv) == 1:
print("Syntax: %s <GenAsmWriter.inc> <Output-GenAsmWriter.inc> <Output-GenRegisterName.inc> <arch>" %sys.argv[0])
sys.exit(1)
arch = sys.argv[4]
f = open(sys.argv[1])
li... | capstone-rust/capstone-rs | capstone-sys/capstone/suite/synctools/asmwriter.py | Python | mit | 33,268 |
const PlotCard = require('../../plotcard.js');
class RiseOfTheKraken extends PlotCard {
setupCardAbilities() {
this.interrupt({
when: {
onUnopposedWin: event => event.challenge.winner === this.controller
},
handler: () => {
this.game.addMe... | cryogen/gameteki | server/game/cards/02.1-TtB/RiseOfTheKraken.js | JavaScript | mit | 588 |
using System.Drawing;
using System.Drawing.Drawing2D;
static class DrawHelper
{
public static GraphicsPath CreateRoundRect(float x, float y, float width, float height, float radius)
{
GraphicsPath gp = new GraphicsPath();
gp.AddLine(x + radius, y, x + width - (radius * 2), y);
gp.AddAr... | uit-cs217-g11/smart-search | statics/external_tool/RyeTokenizer/project/UIManagers/DrawHelper.cs | C# | mit | 2,938 |
namespace Perspex.Controls
{
using Layout;
public class RightDocker : Docker
{
public RightDocker(Size availableSize) : base(availableSize)
{
}
public Rect GetDockingRect(Size sizeToDock, Margins margins, Alignments alignments)
{
var marginsCutout = marg... | DavidKarlas/Perspex | src/Perspex.Controls/DockPanel/RightDocker.cs | C# | mit | 705 |
class CreateCollectSalaries < ActiveRecord::Migration
def change
create_table :collect_salaries do |t|
t.belongs_to :user
t.decimal :money, :precision => 10, :scale => 2
t.date :collect_date
t.string :notes
t.timestamps null: false
end
end
end
| mumaoxi/contract_works_api | db/migrate/20160204101820_create_collect_salaries.rb | Ruby | mit | 286 |
<?php
/**
* Amon: Integrate FuelPHP with Amon Exception & Logging
*
* @package Amon
* @version v0.1
* @author Matthew McConnell
* @license MIT License
* @link http://github.com/maca134/fuelphp-amon
*/
Autoloader::add_core_namespace('Amon');
Autoloader::add_classes(array(
'Amon\\Error' ... | fuel-packages/fuel-amon | bootstrap.php | PHP | mit | 708 |
#include "machineoperand.h"
#include "basicblock.h"
#include <cassert>
#include <iostream>
#include <new>
using namespace TosLang::BackEnd;
MachineOperand::MachineOperand() : mKind{ OperandKind::UNKNOWN } { }
MachineOperand::MachineOperand(const unsigned op, const OperandKind kind)
{
assert((kind == OperandKin... | faouellet/TosLang | TosLang/CodeGen/machineoperand.cpp | C++ | mit | 1,230 |
module Packet
class Reactor
include Core
#set_thread_pool_size(20)
attr_accessor :fd_writers, :msg_writers,:msg_reader
attr_accessor :result_hash
attr_accessor :live_workers
#after_connection :provide_workers
def self.server_logger= (log_file_name)
@@server_logger = log_file_name
... | openwisp/packet-legacy | lib/packet/packet_master.rb | Ruby | mit | 5,702 |
//
// Reflect.cs: Creates Element classes from an instance
//
// Author:
// Miguel de Icaza (miguel@gnome.org)
//
// Copyright 2010, Novell, Inc.
//
// Code licensed under the MIT X11 license
//
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using... | danmiser/MonoTouch.Dialog | MonoTouch.Dialog/Reflect.cs | C# | mit | 13,498 |
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using System.Web;
namespace Blog.Models
{
// You can add pro... | yangra/SoftUni | TechModule/Software Technologies/SoftUniBlog-CSharp-Admin/Blog/Models/ApplicationUser.cs | C# | mit | 1,041 |
#!/usr/bin/env ruby
require './lib/metalbird/authenticators/twitter.rb'
url = 'https://api.twitter.com'
authenticator = Metalbird::Authenticator::Twitter.new(url)
authenticator.authenticate
| hubtee/post_publisher | bin/auth_twitter.rb | Ruby | mit | 192 |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM8 17c-.55 0-1-.45-1-1v-5c0-.55.45-1 1-1s1 .45 1 1v5c0 .55-.45 1-1 1zm4 0c-.55 0... | oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/AssessmentRounded.js | JavaScript | mit | 471 |
#pragma once
#include "net/uri.hpp"
namespace http
{
using uri = net::uri;
}
| ruoka/net4cpp | src/http/uri.hpp | C++ | mit | 82 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging, os
logging.basicConfig(level=logging.INFO)
from deepy.networks import RecursiveAutoEncoder
from deepy.trainers import SGDTrainer, LearningRateAnnealer
from util import get_data, VECTOR_SIZE
model_path = os.path.join(os.path.dirname(__file__), "models", "... | zomux/deepy | examples/auto_encoders/recursive_auto_encoder.py | Python | mit | 593 |
namespace StringExtensions
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
/// <summary>
/// Static class provi... | NikolaiMishev/Telerik-Academy | Module-2/High-Quality-Code/Code Documentation and Comments/Task 1. Code documentation/Program.cs | C# | mit | 16,083 |
<?php declare(strict_types=1);
namespace WyriMaps\Tests\BattleNet\Resource\Async\WorldOfWarcraft;
use ApiClients\Tools\ResourceTestUtilities\AbstractEmptyResourceTest;
use WyriMaps\BattleNet\Resource\Async\WorldOfWarcraft\EmptyQuest;
final class EmptyQuestTest extends AbstractEmptyResourceTest
{
public function ... | WyriMaps/php-battlenet-client | tests/Resource/Async/WorldOfWarcraft/EmptyQuestTest.php | PHP | mit | 467 |
SVG.G = SVG.invent({
// Initialize node
create: 'g'
// Inherit from
, inherit: SVG.Container
// Add class methods
, extend: {
// Move over x-axis
x: function(x) {
return x == null ? this.transform('x') : this.transform({ x: x - this.x() }, true)
}
// Move over y-axis
, y: function(y) {... | albohlabs/svg.js | src/group.js | JavaScript | mit | 1,102 |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Globalization;
using System.IO;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Runtime.InteropServices;
namespace Wox
{
public class ImagePathConverter :... | Rovak/Wox | Wox/ImagePathConverter.cs | C# | mit | 7,522 |
// This file is distributed under the BSD License.
// See "license.txt" for details.
// Copyright 2009-2012, Jonathan Turner (jonathan@emptycrate.com)
// Copyright 2009-2015, Jason Turner (jason@emptycrate.com)
// http://www.chaiscript.com
#ifndef CHAISCRIPT_BOXED_VALUE_HPP_
#define CHAISCRIPT_BOXED_VALUE_HPP_
#inclu... | spijdar/dayspring | src/server/chaiscript/dispatchkit/boxed_value.hpp | C++ | mit | 11,084 |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | loremipsumdolor/CastFast | src/com/amazonaws/auth/PropertiesCredentials.java | Java | mit | 4,679 |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in ... | loremipsumdolor/CastFast | src/com/amazonaws/services/s3/transfer/ObjectMetadataProvider.java | Java | mit | 1,511 |
//----------------------------------------------------------------------------------------------
// <copyright file="AppDeployment.cs" company="Microsoft Corporation">
// Licensed under the MIT License. See LICENSE.TXT in the project root license information.
// </copyright>
//-------------------------------------... | davidkline-ms/WindowsDevicePortalWrapper | WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/Core/AppDeployment.cs | C# | mit | 16,069 |
'use strict';
module.exports = function generate_format(it, $keyword) {
var out = ' ';
var $lvl = it.level;
var $dataLvl = it.dataLevel;
var $schema = it.schema[$keyword];
var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
var $... | Moccine/global-service-plus.com | web/libariries/bootstrap/node_modules/ajv/lib/dotjs/format.js | JavaScript | mit | 5,423 |
package org.luban.common.plugin;
import org.luban.common.network.URL;
/**
* 服务插件接口
*
* @author hexiaofeng
* @version 1.0.0
* @since 12-12-12 下午8:47
*/
public interface ServicePlugin {
/**
* 返回类型
*
* @return
*/
String getType();
/**
* 设置URL
*
* @param url
*/... | krisjin/common-base | luban-common/src/main/java/org/luban/common/plugin/ServicePlugin.java | Java | mit | 377 |
#!/usr/bin/env python2
"""Example of server-side computations used in global forest change analysis.
In this example we will focus on server side computation using NDVI and EVI
data. This both metrics are computed bands created by third party companies
or directly taken by the satellites.
NDVI and EVI are two metric... | ArchangelX360/EnvironmentalEventsDetector | computation/imagefetcher/examples/ndvi_difference.py | Python | mit | 2,028 |
require File.expand_path("../../../test_helper", __FILE__)
describe Flipflop::Strategies::DefaultStrategy do
before do
Flipflop::FeatureSet.current.replace do
Flipflop.configure do
feature :one, default: true
feature :two
end
end
end
describe "with defaults" do
subject do... | voormedia/flipflop | test/unit/strategies/default_strategy_test.rb | Ruby | mit | 1,218 |
require 'forwardable'
require 'puppet/node'
require 'puppet/resource/catalog'
require 'puppet/util/errors'
require 'puppet/resource/type_collection_helper'
# Maintain a graph of scopes, along with a bunch of data
# about the individual catalog we're compiling.
class Puppet::Parser::Compiler
extend Forwardable
i... | thejonanshow/my-boxen | vendor/bundle/ruby/2.3.0/gems/puppet-3.8.7/lib/puppet/parser/compiler.rb | Ruby | mit | 21,679 |
package nxt.http;
import nxt.Nxt;
import nxt.Transaction;
import nxt.util.Convert;
import org.json.simple.JSONObject;
import org.json.simple.JSONStreamAware;
import javax.servlet.http.HttpServletRequest;
import static nxt.http.JSONResponses.INCORRECT_TRANSACTION;
import static nxt.http.JSONResponses.MISSING_TRANSACT... | aspnmy/NasCoin | src/java/nxt/http/GetTransaction.java | Java | mit | 2,418 |
# ===================================================================
#
# Copyright (c) 2015, Legrandin <helderijs@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redi... | mchristopher/PokemonGo-DesktopMap | app/pylibs/win32/Cryptodome/Hash/keccak.py | Python | mit | 8,329 |
module Octokit
class Client
module Gists
# List gists for a user or all public gists
#
# @param username [String] An optional user to filter listing
# @return [Array<Hashie::Mash>] A list of gists
# @example Fetch all gists for defunkt
# Octokit.gists('defunkt')
# @ex... | phatpenguin/boxen-belgarion | .bundle/ruby/1.9.1/gems/octokit-1.23.0/lib/octokit/client/gists.rb | Ruby | mit | 7,325 |
require(
[
'gui/Button'
],
function (Button) {
return;
var button = new Button({
main: $('#ui-button')
});
button.render();
}
); | musicode/gui | demo/Popup.js | JavaScript | mit | 189 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AsanaNet
{
[Serializable]
public class AsanaTeam : AsanaObject, IAsanaData
{
[AsanaDataAttribute("name")]
public string Name { get; private set; }
// ----------------------------------... | jfjcn/AsanaNet | AsanaNet/Objects/AsanaTeam.cs | C# | mit | 656 |
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: AssemblyTi... | tokera/TelerikAcademyHomeworks | CSharpPartOneHomeworks/ConditionalStatements/MultiplicationSign/Properties/AssemblyInfo.cs | C# | mit | 1,448 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sr" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Fuguecoin</source>
<translation>О Fuguecoin-у</translation>
</me... | gjhiggins/fuguecoin-1 | src/qt/locale/bitcoin_sr.ts | TypeScript | mit | 103,421 |
load File.dirname(__FILE__) + '/production.rb'
if File.exists? File.dirname(__FILE__) + '/../application.local.rb'
require File.dirname(__FILE__) + '/../application.local.rb'
end | dtulibrary/gazo | config/environments/unstable.rb | Ruby | mit | 181 |
module SlotMachine
# A Slot defines a slot in a slotted. A bit like a variable name but for objects.
#
# PS: for the interested: A "development" of Smalltalk was the
# prototype based language (read: JavaScript equivalent)
# called Self https://en.wikipedia.org/wiki/Self_(programming_language)
#
#... | salama/salama | lib/slot_machine/slot.rb | Ruby | mit | 1,579 |
var GUID = (function () {
function _GUID() {
return UUIDcreatePart(4) +
UUIDcreatePart(2) +
UUIDcreatePart(2) +
UUIDcreatePart(2) +
UUIDcreatePart(6);
};
function UUIDcreatePart(length) {
var uuidpart = "";
for (var i = 0; i < length;... | storyclm/storyCLM.js | presentation/js/dataSource.js | JavaScript | mit | 3,648 |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\log;
use Yii;
use yii\base\Component;
/**
* Logger records logged messages in memory and sends them to different targets if [[dispatcher]] is set.
*
... | yujiandong/simpleforum | core/vendor/yiisoft/yii2/log/Logger.php | PHP | mit | 13,222 |
package com.github.scribejava.apis.examples;
import com.github.scribejava.apis.EtsyApi;
import com.github.scribejava.core.builder.ServiceBuilder;
import com.github.scribejava.core.model.OAuth1AccessToken;
import com.github.scribejava.core.model.OAuth1RequestToken;
import com.github.scribejava.core.model.OAuthRequest;
... | fernandezpablo85/scribe-java | scribejava-apis/src/test/java/com/github/scribejava/apis/examples/EtsyExample.java | Java | mit | 2,876 |
<?php
namespace App;
use Illuminate\Support\Facades\Route;
/*
* Clearboard Routes
*/
Route::group(['middleware' => ['web']], function () {
Route::get('/', function() {
return view('clearboard.index.viewindex', ['forums' => Forum::all()]);
});
Route::get('/forum/{fid}-{_}', 'ForumController@vi... | clearboard/clearboard | app/Http/routes.php | PHP | mit | 2,024 |
(function() {
'use strict';
angular
.module('app.core')
.constant('STATIC_URL', '/static/js/');
})();
| gopar/OhMyCommand | apps/static/js/core/constants.js | JavaScript | mit | 127 |
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// 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, co... | AvaloniaUI/AvaloniaEdit | src/AvaloniaEdit/Rendering/BackgroundGeometryBuilder.cs | C# | mit | 19,570 |
class Fitbit::Activity < Fitbit::Data
attr_accessor :activityId, :activityParentId, :activityParentName, :calories, :description,
:distance, :duration, :hasStartTime, :isFavorite, :logId, :name, :startTime, :steps
def initialize(activity_data, unit_measurement_mappings)
@activityId = activity_d... | whazzmaster/fitgem-client | app/models/fitbit/activity.rb | Ruby | mit | 1,937 |
var fixDate = function(date) {
return date.Format('2006-01-02 15:04:05');
};
var entries = executeCommand('getEntries', {});
dbotCommands = [];
userCommands = [];
for (var i = 0; i < entries.length; i++) {
if (typeof entries[i].Contents == 'string' && entries[i].Contents.indexOf('!') === 0 && entries[i].Conte... | demisto/content | Packs/CommonScripts/Scripts/ListExecutedCommands/ListExecutedCommands.js | JavaScript | mit | 1,692 |
public class A extends B {
public A() {}
}
| gregwym/joos-compiler-java | testcases/a2/Je_4_ClassExtendsCyclicClass/A.java | Java | mit | 47 |
<?php
// AdminBundle:Inquiry:inquiry.html.twig
return array (
);
| sanofuzir/Royaltransfer.si | app/cache/prod/assetic/config/6/6caf06a2425699c446204888d8d22119.php | PHP | mit | 66 |
package easyupload.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
@Entity
public class FileUpload {
public FileUpload(String filename, byte[] file, String mimeType) {
this.file = file;
this.filename = filename;
this.mimeType = mimeType... | vberbenetz/EasyUpload | Backend/src/main/java/easyupload/entity/FileUpload.java | Java | mit | 936 |
<?php
/*
* This file is part of the PHPExifTool package.
*
* (c) Alchemy <support@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\MIEGeo;
use JMS\Serializer\Annotation\ExclusionPolicy... | bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/MIEGeo/Country.php | PHP | mit | 777 |
'use strict';
var canUseDOM = require('./canUseDOM');
var one = function() {
};
var on = function() {
};
var off = function() {
};
if (canUseDOM) {
var bind = window.addEventListener ? 'addEventListener' : 'attachEvent';
var unbind = window.removeEventListener ? 'removeEventListener' : 'detachEvent';
var prefix... | minwe/amazeui-react | src/utils/Events.js | JavaScript | mit | 1,693 |