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 |
|---|---|---|---|---|---|
# -*- coding: utf-8 -*-
require "em-websocket"
require "eventmachine-tail"
module Tailer
# Extends FileTail to push data tailed to an EM::Channel. All open websockets
# subscribe to a channel for the request stack and this pushes the data to
# all of them at once.
class StackTail < EventMachine::FileTail
d... | etsy/deployinator | lib/deployinator/stack-tail.rb | Ruby | mit | 1,403 |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace DotNetty.Transport.Channels.Sockets
{
using System;
using System.Diagnostics.Contracts;
using System.Net;
using System.Net.NetworkInformation... | dragonphoenix/proto-java-csharp | DotNetty/DotNetty.Transport/Channels/Sockets/DefaultDatagramChannelConfig.cs | C# | mit | 14,695 |
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
class Video
include Claire::Client::Item
end
describe Claire::Client::Item do
#@session.should_receive(:post).with("url", "data", "headers")
#@session = mock("session")
before do
Claire::Client.stub(:get).with('videos/id').and_return xml :ite... | memuller/claire.client | spec/claire_client/item_spec.rb | Ruby | mit | 3,595 |
<?php
namespace Zanson\SMParser\Traits\Song;
use Zanson\SMParser\SMException;
trait Banner
{
public $banner = '';
/**
* @return string
*/
public function getBanner() {
return $this->banner;
}
/**
* @param string $banner
*
* @return $this
* @throws SMExceptio... | jasonwatt/SMParser | src/Traits/Song/Banner.php | PHP | mit | 541 |
if ( !window.console ) window.console = { log:function(){} };
jQuery(document).ready(function($) {
console.log('Keep being awesome.');
}); | shampine/180 | public/js/src/script.js | JavaScript | mit | 143 |
package parser
import (
"monkey/ast"
"monkey/token"
)
func (p *Parser) parseStringLiteralExpression() ast.Expression {
return &ast.StringLiteral{Token: p.curToken, Value: p.curToken.Literal}
}
func (p *Parser) parseInterpolatedString() ast.Expression {
is := &ast.InterpolatedString{Token: p.curToken, Value: p.cu... | mayoms/monkey | parser/strings.go | GO | mit | 612 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Timers;
using System.Diagnostics;
namespace ForumHelper
{
public partial class ToastForm : Form
{
... | ttitto/PersonalProjects | ForumHelper/ForumHelper/ToastForm.cs | C# | mit | 1,852 |
<?php
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2018 Spomky-Labs
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
use Base64Url\Base64Url;
use Jose\Decrypter;
use Jose\Encrypter;
use Jose\Factory\JWEFactory;
use Jose\Loader;
u... | Spomky-Labs/jose | tests/Functional/EncrypterBaseTest.php | PHP | mit | 25,820 |
// Fill out your copyright notice in the Description page of Project Settings.
using UnrealBuildTool;
using System.Collections.Generic;
public class UnrealCamDemoTarget : TargetRules
{
public UnrealCamDemoTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Game;
ExtraModuleNames.AddRange( new string[]... | mrayy/UnityCam | UnrealCamDemo/Source/UnrealCamDemo.Target.cs | C# | mit | 349 |
package br.com.gamemods.tutorial.ctf;
import org.bukkit.plugin.java.JavaPlugin;
public class CTFGameMods extends JavaPlugin
{
}
| joserobjr/CTFGameMods | src/main/java/br/com/gamemods/tutorial/ctf/CTFGameMods.java | Java | mit | 131 |
'use strict';
var emojiArr = require('./emojis');
var i = 0;
var existingRules = {};
var generateEmoji = function(selector) {
if (!existingRules[selector]) {
existingRules[selector] = emojiArr[i];
if (i !== emojiArr.length) {
i++
} else {
i = 0;
}
}
retur... | thuongvu/postcss-emoji | emojify.js | JavaScript | mit | 382 |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... | ginach/msgraph-sdk-dotnet | src/Microsoft.Graph/Requests/Generated/WorkbookFunctionsBesselIRequest.cs | C# | mit | 3,043 |
var fractal = fractal || {};
fractal.workerPaths = {
"mandelbrot": "public/js/mandel.js",
};
fractal.Fractal = function (canvas, workerCount) {
this.canvas = canvas;
this.workerCount = workerCount;
this.workerDoneCount = 0;
this.ctx = canvas.getContext("2d");
this.width = canvas.width;
this.height = c... | hectoregm/hectoregm | Practica3/public/js/canvas_fractal.js | JavaScript | mit | 4,312 |
describe('raureif', function () {
it('test', function () {
});
});
| chrmod/raureif | tests/node/index-test.js | JavaScript | mit | 71 |
/**
* @file ui/core/styleguide/index//html/01-body/40-main/main.js
* @description Listeners on the body, iframe, and rightpull bar.
*/
/* istanbul ignore if */
if (typeof window === 'object') {
document.addEventListener('DOMContentLoaded', () => {
const $orgs = FEPPER_UI.requerio.$orgs;
const {
uiFns... | electric-eloquence/fepper-npm | ui/core/styleguide/index/html/01-body/40-main/main.js | JavaScript | mit | 2,224 |
<?php
namespace Checkdomain\Holiday;
use Checkdomain\Holiday\Model\Holiday;
/**
* Class Util
*/
class Util
{
/**
* Instantiates a provider for a given iso code
*
* @param string $iso
*
* @return ProviderInterface
*/
protected function getProvider($iso)
{
$instance ... | checkdomain/Holiday | src/Util.php | PHP | mit | 1,932 |
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
public class CharCounterMain{
final static Charset enc = StandardCharsets.US_ASCII ;
... | dperezmavro/courseworks_uni | year_3/large_scale_and_distributed_systems/src/CharCounterMain.java | Java | mit | 1,792 |
"use strict";
(function() {
// "todos-angular" is just a hard-code id for storage
var LOCAL_STORAGE_KEY = 'todos-angular';
var ENTER_KEY = 13;
var ESC_KEY = 27;
var internalFilters = {
active: function(toDoItem) {
return !toDoItem.completed;
},
completed: functi... | sasyomaru/advanced-javascript-training-material | module3/scripts/angular-app.js | JavaScript | mit | 9,478 |
<?php
namespace Params;
/**
* @codeCoverageIgnore
*/
trait SafeAccess
{
public function __set($name, $value)
{
throw new \Exception("Property [$name] doesn't exist for class [".get_class($this)."] so can't set it");
}
public function __get($name)
{
throw new \Exception("Property... | Danack/Blog | vendor/danack/params/lib/Params/SafeAccess.php | PHP | mit | 403 |
from decimal import Decimal
from django import forms
from django.template.loader import render_to_string
from django.template.defaultfilters import slugify
class BaseWidget(forms.TextInput):
"""
Base widget. Do not use this directly.
"""
template = None
instance = None
def get_parent_id(self,... | redsolution/django-generic-ratings | ratings/forms/widgets.py | Python | mit | 7,704 |
define(function() {
return {
draw: function(context, t) {
var x = this.getNumber("x", t, 100),
y = this.getNumber("y", t, 100),
size = this.getNumber("size", t, 60),
h = this.getNumber("h", t, 40),
colorLeft = this.getColor("colorLeft", t, "#999999"),
colorRight = this.getColor("col... | bit101/gifloopcoder | src/src/app/render/shapes/isobox.js | JavaScript | mit | 2,755 |
<?php namespace BoundedContext\Contracts\Generator;
use BoundedContext\Contracts\ValueObject\Identifier as IdentifierVO;
interface Identifier extends ValueObject
{
/**
* Generates a new random Identifier.
*
* @return IdentifierVO
*/
public function generate();
/**
* Generates a ... | lyonscf/bounded-context | src/Contracts/Generator/Identifier.php | PHP | mit | 587 |
<?php
return array (
'id' => 'softbank_v702nk2_ver1',
'fallback' => 'softbank_generic',
'capabilities' =>
array (
'physical_screen_height' => '41',
'columns' => '15',
'physical_screen_width' => '34',
'max_image_width' => '176',
'rows' => '6',
'resolution_width' => '176',
'resolution... | cuckata23/wurfl-data | data/softbank_v702nk2_ver1.php | PHP | mit | 1,037 |
package com.company;
import java.util.Scanner;
public class Greeting {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String firstName = scanner.nextLine();
String lastName = scanner.nextLine();
int age = Integer.parseInt(scanner.nextLine());
... | ivelin1936/Studing-SoftUni- | Programming Fundamentals/DataTypesAndVariables-Lab/src/com/company/Greeting.java | Java | mit | 419 |
package sbahjsic.runtime;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import sbahjsic.core.Warnings;
import sbahjsic.core.Warnings.Level;
import sbahjsic.runtime.Operator.BiOperator;
import sbahjsic.runtime.Operator.UnOperator;
import sbahjsic.runtime.Operator.Varar... | expositionrabbit/Sbahjsic-runtime | src/sbahjsic/runtime/Type.java | Java | mit | 7,839 |
class Person < ActiveRecord::Base
has_many :addresses, dependent: :destroy
accepts_nested_attributes_for :addresses
end
| scotthelm/fencepost | spec/dummy/app/models/person.rb | Ruby | mit | 125 |
import React from 'react';
import {connect} from 'cerebral-view-react';
import styles from './styles.css';
import {
isObject,
isArray,
isString,
isBoolean,
isNumber,
isNull
} from 'common/utils';
import JSONInput from './JSONInput';
import connector from 'connector';
function isInPath(source, target) {
i... | cerebral/cerebral-debugger-prototype | versions/v1/components/Debugger/Inspector/index.js | JavaScript | mit | 10,888 |
// Package storagedatalake implements the Azure ARM Storagedatalake service API version 2019-10-31.
//
// Azure Data Lake Storage provides storage for Hadoop and other big data workloads.
package storagedatalake
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License... | Azure/azure-sdk-for-go | services/storage/datalake/2019-10-31/storagedatalake/client.go | GO | mit | 1,358 |
'use strict';
function valuefy(value) {
if (typeof value !== 'object') {
return (typeof value === 'string') ? `"${value}"` : value;
}
let values = [];
if (Array.isArray(value)) {
for (const v of value) {
values.push(valuefy(v));
}
values = `[${values.join(',')}]`;
} else {
for (let v in value) {
... | ragingwind/field-value | index.js | JavaScript | mit | 1,725 |
<?php
namespace App\Notifications\Mship;
use App\Notifications\Notification;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
class ForgottenPasswordLink extends Notification implements ShouldQueue
{
use Queueable;
private $token;
... | atoff/core | app/Notifications/Mship/ForgottenPasswordLink.php | PHP | mit | 1,567 |
export default class TasksService {
static async fetchTasks() {
const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
await delay(1000);
return [
{ id: 0, description: "task1", status: "Active" },
{ id: 1, description: "task2", status: "Active" },
];
}
}
| guptag/js-frameworks | React/examples/hello-world/src/data/TasksService.js | JavaScript | mit | 308 |
#ifndef RUBY_EXT_UTILS_HPP_
#define RUBY_EXT_UTILS_HPP_ 1
#include <functional>
#include <ruby.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <typeinfo>
#ifdef __GNUC__
#include <cxxabi.h>
#endif
template <typename T>
static const char *
type_name()
{
#ifdef __GNUC__
const int buf_size = ... | yagisumi/ruby-gdiplus | ext/gdiplus/ruby_ext_utils.hpp | C++ | mit | 8,156 |
/**
* Vasya Hobot
*
* Copyright (c) 2013-2014 Vyacheslav Slinko
* Licensed under the MIT License
*/
function Message(chat, body) {
this._chat = chat;
this._body = body;
}
Message.prototype.getChat = function() {
return this._chat;
};
Message.prototype.getBody = function() {
return this._body;
... | vslinko-archive/vasya-hobot | src/client/api/Message.js | JavaScript | mit | 351 |
<?php
namespace PLL\SocialBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symf... | Kishlin/Ehub | src/PLL/SocialBundle/Form/Type/PostType.php | PHP | mit | 1,072 |
package septemberpack.september;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;
import java.util.Random;
/**
* Created by Vlady on 22.10.2015.
*/
/**
* Данный класс реализует отрисовку астероидов
*/
public class Asteroid {
Bitmap bitmap;
/**
* Коорди... | vladb55/SeptemberRepository | app/src/main/java/septemberpack/september/Asteroid.java | Java | mit | 3,547 |
import React from 'react';
import { shallow } from 'enzyme';
import UserProfile from '../UserProfile';
import Wrapper from '../Wrapper';
describe('<UserProfile />', () => {
it('should render <Wrapper />', () => {
const wrapper = shallow(<UserProfile />);
expect(wrapper.find(Wrapper).length).toEqual(1);
}... | on3iro/Gloomhaven-scenario-creator | src/containers/Auth/tests/UserProfile.test.js | JavaScript | mit | 327 |
class CreateWriMetadataSources < ActiveRecord::Migration[5.1]
def change
create_table :wri_metadata_sources do |t|
t.text :name
t.timestamps
end
end
end
| Vizzuality/climate-watch | db/migrate/20171016113108_create_wri_metadata_sources.rb | Ruby | mit | 177 |
<?php
namespace Davidsneal\MaxCDN\OAuth;
class OAuthDataStore {
function lookup_consumer($consumer_key) {
// implement me
}
function lookup_token($consumer, $token_type, $token) {
// implement me
}
function lookup_nonce($consumer, $token, $nonce, $timestamp) {
// implement... | davidsneal/laravel-maxcdn | src/MaxCDN/OAuth/OAuthDataStore.php | PHP | mit | 747 |
import React from 'react';
import {
ActivityIndicator,
StyleSheet,
Image,
Text,
View,
ListView,
TouchableOpacity
} from 'react-native';
import Dimensions from 'Dimensions';
const {width, height} = Dimensions.get('window');
import globalVariables from '../globalVariables.js';
import LookCell from './LookC... | rollo-zhou/look | src/components/LookDetail.js | JavaScript | mit | 5,317 |
#!/usr/bin/env python
import sys
import os
from treestore import Treestore
try: taxonomy = sys.argv[1]
except: taxonomy = None
t = Treestore()
treebase_uri = 'http://purl.org/phylo/treebase/phylows/tree/%s'
tree_files = [x for x in os.listdir('trees') if x.endswith('.nex')]
base_uri = 'http://www.phylocommons.org/... | NESCent/phylocommons | tools/treebase_scraper/annotate_trees.py | Python | mit | 622 |
<?php
/**
* This file belongs to the AnoynmFramework
*
* @author vahitserifsaglam <vahit.serif119@gmail.com>
* @see http://gemframework.com
*
* Thanks for using
*/
namespace Anonym\Facades;
use Anonym\Patterns\Facade;
/**
* Class Validation
* @package Anonym\Facades
*/
class Validation extends Facade
{
... | AnonymPHP/Anonym-Library | src/Anonym/Facades/Validation.php | PHP | mit | 487 |
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this
* file except in compliance with the License. You may obtain
* a copy of the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an
* "... | Safewhere/kombit-web-java | Kombit.Samples.CH.WebsiteDemo/src/java/dk/itst/oiosaml/sp/service/SPFilter.java | Java | mit | 12,213 |
package queier
import (
"github.com/julienschmidt/httprouter"
"net/http"
"encoding/json"
"fmt"
"strconv"
"broker-gateway/entities"
"github.com/satori/go.uuid"
)
type Router interface {
Start(port int)
}
type router struct {
q Querier
http *httprouter.Router
}
func NewRouter(q Querier) Router {
r := http... | commodity-trading-system/broker-gateway | queier/router.go | GO | mit | 6,277 |
<?php
/**
* Controlador de acesso do backend
*
* @package MagicPHP Backend
* @author André Ferreira <andrehrf@gmail.com>
*/
class maPrivileges{
/**
* Função para verificar autorização de acesso
*
* @static
* @access public
... | magicphp/backend | modules/backend/core/maprivileges.class.php | PHP | mit | 3,522 |
var cv = require('../lib/opencv');
var COLOR = [0, 255, 0]; // default red
var thickness = 2; // default 1
cv.readImage('./files/mona.png', function(err, im) {
if (err) throw err;
if (im.width() < 1 || im.height() < 1) throw new Error('Image has no size');
im.detectObject('../data/haarcascade_frontalface_alt2.... | peterbraden/node-opencv | examples/face-detection-rectangle.js | JavaScript | mit | 664 |
// ========================================================================
// SproutCore -- JavaScript Application Framework
// Copyright ©2006-2011, Strobe Inc. and contributors.
// Portions copyright ©2008 Apple Inc. All rights reserved.
// ========================================================================
s... | Eloqua/sproutcore | frameworks/foundation/controllers/tree.js | JavaScript | mit | 4,038 |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using Pfz.AnimationManagement;
using Pfz.AnimationManagement.Abstract;
... | flysnoopy1984/DDZ_Live | ReferenceCode/Pfz.AnimationManagement.2013_08_25/Pfz.AnimationManagement/WpfSample/MainWindow.xaml.cs | C# | mit | 26,050 |
package fables.kotlin.jee.rest;
import fables.kotlin.jee.business.KittenBusinessService;
import fables.kotlin.jee.business.KittenEntity;
import javax.inject.Inject;
import javax.ws.rs.*;
/**
* JSON REST CRud service.
* JEE will first create one noarg instance, and then injected instances.
*
* @author Zeljko Trog... | zeljkot/fables-kotlin | jee/java/src/main/java/fables/kotlin/jee/rest/KittenRestService.java | Java | mit | 1,047 |
<?php
return array(
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every ... | TeenahApp/web.api | app/config/app.php | PHP | mit | 7,278 |
import React, {Component} from 'react';
import PdfJS from './pdfJS';
import Contract from "../../contract";
import Event from '../../event';
import AnnotationLoader from '../../annotator/loader';
class Viewer extends Component {
constructor(props) {
super(props);
this.state = ({
page_n... | younginnovations/resourcecontracts-rc-subsite | resources/assets/scripts/contract/components/pdf/viewer.js | JavaScript | mit | 2,838 |
var ratio = require('ratio')
function error(actual, expected) {
return Math.abs(actual - expected) / expected
}
function approx(target, max) {
max = (max || 10)
// find a good approximation
var best = 1, j, e, result
for (var i = 1; i < max; i++) {
j = Math.round(i * target)
e ... | agnoster/approx | index.js | JavaScript | mit | 474 |
/*
* Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com)
*
* openAUSIAS: The stunning micro-library that helps you to develop easily
* AJAX web applications by using Java and jQuery
* openAUSIAS is distributed under the MIT License (MIT)
* Sources at https://github.com/raf... | Ilthur/boletinweb | src/main/webapp/js/usuariocursoxusuario/plist.js | JavaScript | mit | 16,663 |
/**
* Write the input to the paramsified file
*
* ---
* INPUTS:
*
* - FILES
* Write the list of files to the paramsified file (line feed after each filename).
*
* - STRINGS
* Write the strings (concatenated) to the paramsified file.
*
* - STRING
* Write the string to the paramsified file.
*
* - UN... | mosen/buildy | lib/buildy/tasks/write.js | JavaScript | mit | 4,521 |
# frozen_string_literal: true
require 'grape/router'
require 'grape/api/instance'
module Grape
# The API class is the primary entry point for creating Grape APIs. Users
# should subclass this class in order to build an API.
class API
# Class methods that we want to call on the API rather than on the API obj... | dblock/grape | lib/grape/api.rb | Ruby | mit | 7,030 |
# frozen_string_literal: true
module RuboCop
module Formatter
# This formatter formats report data in clang style.
# The precise location of the problem is shown together with the
# relevant source code.
class ClangStyleFormatter < SimpleTextFormatter
ELLIPSES = '...'
def report_file(fil... | smakagon/rubocop | lib/rubocop/formatter/clang_style_formatter.rb | Ruby | mit | 1,635 |
package me.nereo.multi_image_selector;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.graphics.RectF;
import android.net.Uri;
import android.os.Bundle;
impo... | SunnyLy/LocalImageChoose | multi-image-selector/src/main/java/me/nereo/multi_image_selector/ClipPhotoActivity.java | Java | mit | 11,258 |
#include <onyxudp/udpclient.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
/* This test just makes sure the client library compiles and doens't crash on start. */
void on_error(udp_client_params_t *client, UDPERR code, char const *name) {
fprintf(stderr, "on_error: code %d: %s\n", code, name);
... | jwatte/onyxnet | test/client/client.cpp | C++ | mit | 756 |
package wanghaisheng.com.yakerweather;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}... | sheng-xiaoya/YakerWeather | app/src/test/java/wanghaisheng/com/yakerweather/ExampleUnitTest.java | Java | mit | 322 |
<?php
/**
* Copyright 2012 Klarna AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | chrisVdd/Time2web | vendor/klarna/checkout/docs/examples/push.php | PHP | mit | 1,718 |
import * as React from 'react';
import { AppliedFilter, DataTypes, GridFilters, numberWithCommas, ReactPowerTable, withInternalPaging, withInternalSorting } from '../../src/';
import { defaultColumns, partyList, sampledata } from './shared';
// //if coming in from DTO
// const availDTO = [
// { fieldName: 'number... | coolkev/react-power-table | examples/src/filters.tsx | TypeScript | mit | 4,479 |
<section id="content">
<!--start container-->
<div id="breadcrumbs-wrapper" class="" style="width:100%;">
<div class="header-search-wrapper grey hide-on-large-only">
<i class="mdi-action-search active"></i>
<input... | MiftahulxHuda/rekon | application/views/page/new_progresunit.php | PHP | mit | 5,595 |
package network
// 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... | Azure/azure-sdk-for-go | services/network/mgmt/2018-11-01/network/hubvirtualnetworkconnections.go | GO | mit | 9,593 |
var address = '';
var config = {};
var requestGroupId = 0;
var readRequestsTodo = 0;
var readRequestsDone = 0;
var scanRequestsTodo = [0, 0, 0];
var scanRequestsDone = [0, 0, 0];
var scanResults = [];
var requestSentCounter = 0;
var requestSuccessCounter = 0;
var requestFailureCounter = 0;
var requestInProgress = false... | morkai/walkner-iovis | frontend/main.js | JavaScript | mit | 16,664 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Matrix
{
public class Matrix<T>
where T : struct
{
private T[,] matrix;
public Matrix(int x, int y)
{
matrix = new T[x, y];
}
public int LengthX
... | dirk-dagger-667/telerik-c--OOP-lectures | DefineClassPartTwo1/Matrix/Matrix.cs | C# | mit | 4,419 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable disable
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System... | sharwell/roslyn | src/Compilers/CSharp/Test/CommandLine/CommandLineTests.cs | C# | mit | 730,075 |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... | pixel-metal/flyby.js | dist/flyby.js | JavaScript | mit | 53,276 |
from .stats_view_base import StatsViewSwagger, StatsViewSwaggerKeyRequired
from .stats_util_dataverses import StatsMakerDataverses
class DataverseCountByMonthView(StatsViewSwaggerKeyRequired):
"""API View - Dataverse counts by Month."""
# Define the swagger attributes
# Note: api_path must match the path... | IQSS/miniverse | dv_apps/metrics/stats_views_dataverses.py | Python | mit | 6,085 |
/*
* Code used in the "Software Engineering" course.
*
* Copyright 2017 by Claudio Cusano (claudio.cusano@unipv.it)
* Dept of Electrical, Computer and Biomedical Engineering,
* University of Pavia.
*/
package goldrush;
/**
* @author Reina Michele cl418656
* @author Bonissone Davidecl427113
*/
public class Bo... | IngSW-unipv/GoldRush | GoldRush/src/goldrush/BoniMichele.java | Java | mit | 932 |
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
namespace Paradix
{
public sealed class KeyboardController : IController
{
// TODO : List of keys UP / DOWN / PRESSED / RELEASED
public PlayerIndex Player { get; set; } = PlayerIndex.One;
public KeyboardState CurrentState { get; private set;... | NySwann/Paradix | Paradix.Engine/Input/KeyboardController.cs | C# | mit | 1,092 |
module.exports = {
parserOptions: {
sourceType: 'script',
},
};
| jpikl/cfxnes | core/bin/.eslintrc.js | JavaScript | mit | 72 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.docuware.dev.Extensions;
import java.io.Closeable;
import java.io.InputStream;
/**
*
* @author Patrick
*/... | DocuWare/PlatformJavaClient | src/com/docuware/dev/Extensions/EasyCheckoutResult.java | Java | mit | 949 |
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("BB... | bberak/PokerDotNet | BB.Poker.WinFormsClient/Properties/AssemblyInfo.cs | C# | mit | 1,422 |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CharacterModelLib.Models
{
public class CharacterProject : NotifyableBase
{
public CharacterProject()
{
characterColle... | Salem5/CharacterEditor | CharacterModelLib/Models/CharacterProject.cs | C# | mit | 4,559 |
import uuid
from django.db import models
from django.conf import settings
from django.contrib.auth.models import AbstractUser
from django.contrib.auth.models import BaseUserManager
from django.utils import timezone
from accelerator_abstract.models import BaseUserRole
from accelerator_abstract.models.base_base_profile... | masschallenge/django-accelerator | simpleuser/models.py | Python | mit | 6,632 |
from setuptools import setup, find_packages
from codecs import open
import os
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
setup(
name='transposer',
version='0.0.3',
description='Transposes column... | keithhamilton/transposer | setup.py | Python | mit | 1,307 |
package experiments;
import java.io.File;
import java.util.Arrays;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import data.StateImpl;
import datahandler.word2vec.MedicalSequenceIterator;
import state2vec.State2Vec;
public class State2VecTest {
protected static final Logger log... | Milanvdm/MedicalLSTM | src/main/java/experiments/State2VecTest.java | Java | mit | 4,075 |
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBU... | CaoPhiHung/CRM | vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/Annotations/AbstractDocument.php | PHP | mit | 1,168 |
package lv.emes.libraries.utilities.validation;
/**
* Actions for error that occur in validation process.
*
* @author eMeS
* @version 1.2.
*/
public interface MS_ValidationError<T> {
MS_ValidationError withErrorMessageFormingAction(IFuncFormValidationErrorMessage action);
/**
* Returns message of v... | LV-eMeS/eMeS_Libraries | src/main/java/lv/emes/libraries/utilities/validation/MS_ValidationError.java | Java | mit | 706 |
window.ImageViewer = function(url, alt, title){
var img = $('<img />').attr('src', url).attr('alt', title).css({
display: 'inline-block',
'max-width': '90vw',
'max-height': '90vh'
});
var a = $('<a></a>').attr('target', '_blank')
.attr('title', title)
.attr('h... | clazz/clazz.github.io | js/image-viewer.js | JavaScript | mit | 2,216 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-11-01 20:02
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('phone_numbers', '0001_initial'),
... | RobSpectre/garfield | garfield/phone_numbers/migrations/0002_phonenumber_related_sim.py | Python | mit | 626 |
package ch.spacebase.openclassic.api;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
i... | good2000mo/OpenClassicAPI | src/main/java/ch/spacebase/openclassic/api/HeartbeatManager.java | Java | mit | 5,720 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ParkingRampSimulator
{
public class ParkingRamp : ParkingConstruct
{
[Newtonsoft.Json.JsonIgnore]
public List<ParkingFloor> Floors { get; private set; }
public ... | rockfordlhotka/DistributedComputingDemo | src/ParkingSim/ParkingRampSimulator/ParkingRamp.cs | C# | mit | 2,080 |
package org.gojul.gojulutils.data;
/**
* Class {@code GojulPair} is a simple stupid pair class. This class is notably necessary
* when emulating JOIN in database and such a class does not exist natively in the JDK.
* This object is immutable as long as the object it contains are immutable. Since
* this object is n... | jaubin/gojulutils | src/main/java/org/gojul/gojulutils/data/GojulPair.java | Java | mit | 2,277 |
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using Microsoft.CodeAnalysis;
namespace ErrorProne.NET.Extensions
{
public static class SyntaxNodeExtensions
{
public static IEnumerable<SyntaxNode> EnumerateParents(this SyntaxNode node)
{
Contract.Requires(node... | SergeyTeplyakov/ErrorProne.NET | src/ErrorProne.NET/ErrorProne.NET/Extensions/SyntaxNodeExtensions.cs | C# | mit | 496 |
/*--------------------------------------------
Created by Sina on 06/05/13.
Copyright (c) 2013 MIT. All rights reserved.
--------------------------------------------*/
#include "elements.h"
#include "mpi_compat.h"
#include "gcmc.h"
#include "memory.h"
#include "random.h"
#include "neighbor.h"
#include "ff_md.h"
#inc... | sinamoeini/mapp4py | src/gcmc.cpp | C++ | mit | 4,193 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | ttosi/moodbeam | mobile/www/js/index.js | JavaScript | mit | 1,553 |
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include "mqtt.h"
// Connect to MQTT and set up subscriptions based on configuration
void MQTT::connect() {
// Connect to broker
this->mqttClient.setServer(this->host, this->port);
mqttClient.connect(this->clientId);
Serial.print("Connected to MQTT,... | capmake/robot-firmware | src/mqtt.cpp | C++ | mit | 745 |
using System.Collections.Generic;
namespace SmartMeter.Business.Interface.Mapper {
public interface IMapTelegram {
Persistence.Interface.ITelegram Map(ITelegram businessTelegram);
Business.Interface.ITelegram Map(Persistence.Interface.ITelegram persistenceTelegram);
IEnumerable<ITelegram> Map(IEnu... | jeroen-corsius/smart-meter | SmartMeter.Business.Interface/Mapper/IMapTelegram.cs | C# | mit | 393 |
define("helios/Helios-Debugger", ["amber/boot", "amber_core/Kernel-Objects", "helios/Helios-Core", "helios/Helios-Workspace"], function($boot){
var smalltalk=$boot.vm,nil=$boot.nil,_st=$boot.asReceiver,globals=$boot.globals;
smalltalk.addPackage('Helios-Debugger');
smalltalk.packages["Helios-Debugger"].transport = {"ty... | Alexander-Remizov/SVG-Amber-Tools | bower_components/amber/support/helios/src/Helios-Debugger.js | JavaScript | mit | 56,069 |
def calc():
h, l = input().split(' ')
mapa = []
for i_row in range(int(h)):
mapa.append(input().split(' '))
maior_num = 0
for row in mapa:
for col in row:
n = int(col)
if (n > maior_num):
maior_num = n
qtd = [0 for i in range(maior_num + 1)]
for row in mapa:
for col in row:
n ... | DestructHub/bcs-contest | 2016/Main/L/Python/solution_1_wrong.py | Python | mit | 471 |
/**
* Error for services to through when they encounter a problem with the request.
* Distinguishes between a bad service request and a general error
*/
function ServiceError(message) {
this.name = "ServiceError";
this.message = (message || "");
}
ServiceError.prototype = Object.create(Error.prototype, {
construc... | James-Tolley/Manny.js | src/services/errors.js | JavaScript | mit | 692 |
require File.dirname(__FILE__) + '/spec'
class Object
class << self
# Lookup missing generators using const_missing. This allows any
# generator to reference another without having to know its location:
# RubyGems, ~/.rubigen/generators, and APP_ROOT/generators.
def lookup_missing_generator(class_id... | cowboyd/rubigen | lib/rubigen/lookup.rb | Ruby | mit | 10,194 |
import Ember from "ember";
export default Ember.Route.extend({
model: function() {
return this.store.query('answer', {correct: true});
}
});
| dpatz/scroll-of-heroes-client | app/routes/application.js | JavaScript | mit | 150 |
<?php
/**
* This file is part of the PHPMongo package.
*
* (c) Dmytro Sokil <dmytro.sokil@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sokil\Mongo\Validator;
/**
* Alphanumeric values validator
*
* @a... | ngohuynhngockhanh/pyBearServer | vendor/sokil/php-mongo/src/Validator/AlphaNumericValidator.php | PHP | mit | 961 |
<?php
/**
* swPagesAdmin actions.
*
* @package soleoweb
* @subpackage swPagesAdmin
* @author Your name here
* @version SVN: $Id: actions.class.php 8507 2008-04-17 17:32:20Z fabien $
*/
class baseSwBlogTagsAdminActions extends sfActions
{
public function executeIndex($request)
{
$this->sw_blo... | rande/swBlogPlugin | modules/swBlogTagsAdmin/lib/baseSwBlogTagsAdminActions.class.php | PHP | mit | 2,201 |
//This file is automatically rebuilt by the Cesium build process.
/*global define*/
define(function() {
'use strict';
return "/**\n\
* Converts an RGB color to HSB (hue, saturation, brightness)\n\
* HSB <-> RGB conversion with minimal branching: {@link http://lolengine.net/blog/2013/07/27/rgb-to-hsv-in-glsl}\... | coderFirework/app | js/Cesium-Tiles/Source/Shaders/Builtin/Functions/RGBToHSB.js | JavaScript | mit | 1,025 |
/**
* Demo App for TopcoatTouch
*/
$(document).ready(function() {
<% if (kitchenSink) {
if (mvc) { %>
// Create the topcoatTouch object
var tt = new TopcoatTouch({menu: [{id: 'help', name: 'Help'}, {id: 'info', name: 'Info'}, {id: 'about', name: 'About'}]});
tt.on(tt.EVENTS.MENU_ITEM_CLICKED, functi... | kriserickson/generator-topcoat-touch | app/templates/_app.js | JavaScript | mit | 8,221 |
const sizeOf = {
object: function () {
return function (object) {
let $start = 0
$start += 1 * object.array.length + 2
return $start
}
} ()
}
const serializer = {
all: {
object: function () {
return function (object, $buffer, $start)... | bigeasy/packet | test/readme/terminated-multibyte.js | JavaScript | mit | 8,252 |
<?php namespace Fannan\MembersModule\Member;
use Anomaly\Streams\Platform\Database\Seeder\Seeder;
class MemberSeeder extends Seeder
{
/**
* Run the seeder.
*/
public function run()
{
//
}
}
| fannan1991/pyrocms | addons/shared/fannan/members-module/src/Member/MemberSeeder.php | PHP | mit | 227 |
import modelExtend from 'dva-model-extend'
import { create, remove, update } from '../services/user'
import * as usersService from '../services/users'
import { pageModel } from './common'
import { config } from 'utils'
const { query } = usersService
const { prefix } = config
export default modelExtend(pageModel, {
... | shaohuawang2015/goldbeans-admin | src/models/user.js | JavaScript | mit | 2,907 |