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 |
|---|---|---|---|---|---|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.05.03 at 03:15... | VDuda/SyncRunner-Pub | src/API/amazon/mws/xml/JAXB/CdrhClassification.java | Java | mit | 3,909 |
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace Marius.Html.Hap
{
/// <summary>
/// Represents a base class for fragments in a mixed code document.
/// </summary>
public abstract class MixedCodeDocumentFragment
{
#region Fields
... | marius-klimantavicius/marius-html | Marius.Html/Hap/MixedCodeDocumentFragment.cs | C# | mit | 2,555 |
import React from 'react'
import { User } from '../../lib/accounts/users'
import styled from '../../lib/styled'
import MdiIcon from '@mdi/react'
import { mdiAccount } from '@mdi/js'
import { SectionPrimaryButton } from './styled'
import { useTranslation } from 'react-i18next'
interface UserProps {
user: User
signo... | Sarah-Seo/Inpad | src/components/PreferencesModal/UserInfo.tsx | TypeScript | mit | 731 |
#include "TextItem.h"
#include <QPainter>
#include <QFont>
#include <QDebug>
////////////////////////////////////////////////////////////////
TextItem::TextItem(const QString& text, QGraphicsLayoutItem *parent)
: BaseItem(parent)
{
_text = text;
QFont font;
font.setPointSize(11);
font.setBold(fal... | AdUki/GraphicEditor | GraphicEditor/Ui/Items/TextItem.cpp | C++ | mit | 1,137 |
import {writeFile} from 'fs-promise';
import {get, has, merge, set} from 'lodash/fp';
import flatten from 'flat';
import fs from 'fs';
import path from 'path';
const data = new WeakMap();
const initial = new WeakMap();
export default class Config {
constructor(d) {
data.set(this, d);
initial.set(this, Objec... | ianwremmel/boilerize | src/lib/config.js | JavaScript | mit | 1,639 |
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.dfa.report;
public class ClassNode extends AbstractReportNode {
private String className;
public ClassNode(String className) {
this.className = className;
}
public String... | byronka/xenos | utils/pmd-bin-5.2.2/src/pmd-core/src/main/java/net/sourceforge/pmd/lang/dfa/report/ClassNode.java | Java | mit | 585 |
<?php namespace Helpers;
/**
*This class handles rendering of view files
*
*@author Geoffrey Oliver <geoffrey.oliver2@gmail.com>
*@copyright Copyright (c) 2015 - 2020 Geoffrey Oliver
*@link http://libraries.gliver.io
*@category Core
*@package Core\Helpers\View
*/
use Drivers\Templates\Implementation;
use Exce... | ggiddy/documentation | system/Helpers/View.php | PHP | mit | 3,113 |
package pl.mmorpg.prototype.server.objects.monsters.properties.builders;
import pl.mmorpg.prototype.clientservercommon.packets.monsters.properties.MonsterProperties;
public class SnakePropertiesBuilder extends MonsterProperties.Builder
{
@Override
public MonsterProperties build()
{
experienceGain(100)
.hp(10... | Pankiev/MMORPG_Prototype | Server/core/src/pl/mmorpg/prototype/server/objects/monsters/properties/builders/SnakePropertiesBuilder.java | Java | mit | 384 |
#! python3
"""
GUI for Ultrasonic Temperature Controller
Copyright (c) 2015 by Stefan Lehmann
"""
import os
import datetime
import logging
import json
import serial
from qtpy.QtWidgets import QAction, QDialog, QMainWindow, QMessageBox, \
QDockWidget, QLabel, QFileDialog, QApplication
from qtpy.QtGui imp... | MrLeeh/jsonwatchqt | jsonwatchqt/mainwindow.py | Python | mit | 19,071 |
using System.Threading;
using CodeTiger;
using Xunit;
namespace UnitTests.CodeTiger
{
public class LazyTests
{
public class Create1
{
[Fact]
public void SetsIsValueCreatedToFalse()
{
var target = Lazy.Create<object>();
Assert... | csdahlberg/CodeTigerLib | UnitTests/UnitTests.CodeTiger.Core/LazyTests.cs | C# | mit | 6,719 |
package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
)
func main() {
sc := bufio.NewScanner(os.Stdin)
sc.Split(bufio.ScanWords)
n := nextInt(sc)
a := nextInt(sc)
b := nextInt(sc)
answer := 0
for i := 1; i <= n; i++ {
sum := 0
for _, s := range fmt.Sprintf("%d", i) {
x, _ := strconv.Atoi(st... | bati11/study-algorithm | at_coder/abc/ABC083B_SomeSums/ABC083B.go | GO | mit | 973 |
export default function _isString(obj) {
return toString.call(obj) === '[object String]'
}
| jrpool/js-utility-underscore | src/objects/_isString.js | JavaScript | mit | 93 |
import Vue from 'vue'
import Router from 'vue-router'
import index from '../components/index'
import project from '../components/project/index'
import proAdd from '../components/project/proAdd'
import proList from '../components/project/proList'
import apiList from '../components/project/apiList'
import apiView from '.... | studyweb2017/best-api | web/src/service/router.ts | TypeScript | mit | 3,538 |
var class_mock =
[
[ "Mock", "class_mock.html#a2b9528f2e7fcf9738201a5ea667c1998", null ],
[ "Mock", "class_mock.html#a2b9528f2e7fcf9738201a5ea667c1998", null ],
[ "MOCK_METHOD0", "class_mock.html#ae710f23cafb1a2f17772e8805d6312d2", null ],
[ "MOCK_METHOD1", "class_mock.html#ada59eea6991953353f332e3ea1e7... | bhargavipatel/808X_VO | docs/html/class_mock.js | JavaScript | mit | 1,000 |
#include "StdAfx.h"
#include ".\datawriter.h"
using namespace std;
DataWriter::DataWriter(const std::string &fileName)
{
this->fileName = fileName;
fileStream = NULL;
//Initialize the filestream
fileStream = new fstream(fileName.c_str(), ios::out|ios::binary|ios::trunc);
}
void DataWri... | AngryLawyer/SiegeUnitConverterCpp | DataWriter.cpp | C++ | mit | 1,869 |
namespace mazes.Core.Grids {
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using mazes.Core.Cells;
using mazes.Core.Grids.Cartesian;
public class WeaveGrid : Grid {
private readonly List<UnderCell> _underCells = new List<UnderCell>();
... | ericrrichards/mazes | mazes/Core/Grids/WeaveGrid.cs | C# | mit | 2,678 |
package stream.flarebot.flarebot.mod.modlog;
public enum ModAction {
BAN(true, ModlogEvent.USER_BANNED),
SOFTBAN(true, ModlogEvent.USER_SOFTBANNED),
FORCE_BAN(true, ModlogEvent.USER_BANNED),
TEMP_BAN(true, ModlogEvent.USER_TEMP_BANNED),
UNBAN(false, ModlogEvent.USER_UNBANNED),
KICK(true, Modl... | FlareBot/FlareBot | src/main/java/stream/flarebot/flarebot/mod/modlog/ModAction.java | Java | mit | 1,090 |
<?php
/**
* @package Update
* @category modules
* @author Nazar Mokrynskyi <nazar@mokrynskyi.com>
* @copyright Copyright (c) 2013-2014, Nazar Mokrynskyi
* @license MIT License, see license.txt
*/
namespace cs;
use h;
$Config = Config::instance();
$db = DB::instance();
$Inde... | nazar-pc/cherrytea.org-old | components/modules/Update/admin/index.php | PHP | mit | 1,229 |
import PartyBot from 'partybot-http-client';
import React, { PropTypes, Component } from 'react';
import cssModules from 'react-css-modules';
import styles from './index.module.scss';
import Heading from 'grommet/components/Heading';
import Box from 'grommet/components/Box';
import Footer from 'grommet/components/Foote... | JaySmartwave/palace-bot-sw | app/src/pages/ManageTablesPage/index.js | JavaScript | mit | 17,890 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Core.Interfaces
{
public static class IApplicationCommandConstants
{
/// <summary>
/// This application name represents default commands - when there is no
/// ... | StanislavUshakov/ArduinoWindowsRemoteControl | Core/Interfaces/IApplicationCommand.cs | C# | mit | 1,174 |
module HealthSeven::V2_3
class QryQ02 < ::HealthSeven::Message
attribute :msh, Msh, position: "MSH", require: true
attribute :qrd, Qrd, position: "QRD", require: true
attribute :qrf, Qrf, position: "QRF"
attribute :dsc, Dsc, position: "DSC"
end
end | niquola/health_seven | lib/health_seven/2.3/messages/qry_q02.rb | Ruby | mit | 256 |
//
// Copyright 2014-2015 Amazon.com,
// Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Amazon Software License (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/asl/
//
// or in the "l... | Shogan/Unity3D.CharacterCreator | Assets/AWSSDK/src/Core/Amazon.Runtime/Internal/Transform/CustomMarshallTransformations.cs | C# | mit | 1,054 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using gView.Framework.IO;
using gView.Framework.Data;
using gView.Framework.UI;
namespace gView.Framework.UI.Dialogs
{
public partial class FormMetada... | jugstalt/gViewGisOS | gView.Explorer.UI/Framework/UI/Dialogs/FormMetadata.cs | C# | mit | 1,880 |
namespace EgaViewer_v2
{
partial class CustomPictureBox
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | ChainedLupine/BSAVEViewer | EgaViewer_v2/CustomPictureBox.Designer.cs | C# | mit | 1,033 |
namespace StudentClass
{
public class Course
{
public Course(string name)
: this()
{
this.Name = name;
}
public Course()
{
}
public string Name { get; private set; }
public override string ToString()
{
... | TomaNikolov/TelerikAcademy | OOP/06.CommonTypeSystem/StudentClass/Course.cs | C# | mit | 361 |
# encoding: UTF-8
module DocuBot::LinkTree; end
class DocuBot::LinkTree::Node
attr_accessor :title, :link, :page, :parent
def initialize( title=nil, link=nil, page=nil )
@title,@link,@page = title,link,page
@children = []
end
def anchor
@link[/#(.+)/,1]
end
def file
@link.sub(/#.+/,'')
end
def ... | Phrogz/docubot | lib/docubot/link_tree.rb | Ruby | mit | 2,249 |
"use strict"
const messages = require("..").messages
const ruleName = require("..").ruleName
const rules = require("../../../rules")
const rule = rules[ruleName]
testRule(rule, {
ruleName,
config: ["always"],
accept: [ {
code: "a { background-size: 0 , 0; }",
}, {
code: "a { background-size: 0 ,0; }... | hudochenkov/stylelint | lib/rules/value-list-comma-space-before/__tests__/index.js | JavaScript | mit | 5,084 |
# -*- coding: utf-8 -*-
"""
"""
from datetime import datetime, timedelta
import os
from flask import request
from flask import Flask
import pytz
import db
from utils import get_remote_addr, get_location_data
app = Flask(__name__)
@app.route('/yo-water/', methods=['POST', 'GET'])
def yowater():
payload = re... | YoApp/yo-water-tracker | server.py | Python | mit | 1,851 |
from django.conf.urls import patterns, include, url
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
admin.autodiscover()
import views
urlpatterns = patterns('',
url(r'^pis', views.pis),
url(r'^words', views.words, { 'titles': False }),
url(r'^p... | ctames/conference-host | webApp/urls.py | Python | mit | 1,850 |
var test = require('tap').test;
var CronExpression = require('../lib/expression');
test('Fields are exposed', function(t){
try {
var interval = CronExpression.parse('0 1 2 3 * 1-3,5');
t.ok(interval, 'Interval parsed');
CronExpression.map.forEach(function(field) {
interval.fields[field] = [];
... | harrisiirak/cron-parser | test/fields.js | JavaScript | mit | 1,093 |
package br.eti.qisolucoes.contactcloud.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.conf... | nosered/contact-cloud | src/main/java/br/eti/qisolucoes/contactcloud/config/SecurityConfig.java | Java | mit | 1,557 |
package de.chandre.admintool.security.dbuser.repo;
import java.util.List;
import java.util.Set;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import de.chandre.admintool.security.dbuser.do... | andrehertwig/admintool | admin-tools-security/admin-tools-security-dbuser/src/main/java/de/chandre/admintool/security/dbuser/repo/RoleRepository.java | Java | mit | 724 |
#!/usr/bin/env node
var listCommand = [];
require('./listCommand')(listCommand)
var logDetail = (str) => {
console.log(' > '+str);
}
var printHelp = () => {
var txtHelp = "";
var h = ' ';
var t = ' ';
txtHelp += "\n"+h+"Usage : rider [command] \n";
txtHelp += "\n"+h+"Command List : \n";
var maxText = 0;
... | khajer/rider.js | cli.js | JavaScript | mit | 2,029 |
<?php
/*
* Arabian language
*/
$lang = [
'albums' => 'Альбомы'
]; | Speennaker/tanyaprykhodko | application/language/arabian/main_lang.php | PHP | mit | 78 |
import { BaseController } from "./BaseController";
import { Route } from "./BaseController";
import * as loadHtml from "./HtmlLoader";
export class MainController extends BaseController
{
main = (): void =>
{
loadHtml.load(this.requestData, '/views/index.html', {});
}
routes: Route[] = [
... | Kasperki/NodeBlog | blog/MainController.ts | TypeScript | mit | 357 |
import React from "react";
import $ from "jquery";
import "bootstrap/dist/js/bootstrap.min";
import "jquery-ui/ui/widgets/datepicker";
import {
postFulltimeEmployer,
postParttimeEmployer,
putFullTimeEmployer,
putParttimeEmployer
} from "../actions/PostData";
import DropDownBtn from "../components/DropDo... | liemnt/quanlynv | quanlynhanvien/src/components/ModalEmployer.js | JavaScript | mit | 10,454 |
require 'spec_helper'
describe Character do
before do
@character = Character.new(name: "Walder Frey", page: 'index.html')
end
subject { @character}
it { should respond_to(:name)}
it { should respond_to(:icon)}
it { should respond_to(:page)}
it { should respond_to(:degrees)}
it { should respond_to(... | thatguyandy27/DegreesOfWalderFrey | degrees_of_frey/spec/models/character_spec.rb | Ruby | mit | 1,683 |
package net.sf.jabref.gui.util;
import javafx.concurrent.Task;
/**
* An object that executes submitted {@link Task}s. This
* interface provides a way of decoupling task submission from the
* mechanics of how each task will be run, including details of thread
* use, scheduling, thread pooling, etc.
*/
public inte... | Mr-DLib/jabref | src/main/java/net/sf/jabref/gui/util/TaskExecutor.java | Java | mit | 528 |
package com.mgireesh;
public class Solution extends VersionControl {
public int firstBadVersion(int n) {
int badVersion = 0;
int start = 1;
int end = n;
while (start < end) {
int mid = start + (end - start) / 2;
if (isBadVersion(mid)) {
end = mid;
} else {
start = mid + 1;
}
}
return ... | mgireesh05/leetcode | first-bad-version/src/com/mgireesh/Solution.java | Java | mit | 331 |
<?php
namespace Aurex\Framework\Module\Modules\FormDoctrineModule;
use Symfony\Bridge\Doctrine\Form\DoctrineOrmExtension,
Silex\Provider\TranslationServiceProvider,
Aurex\Framework\Module\ModuleInterface,
Silex\Provider\SessionServiceProvider,
Silex\Provider\FormServiceProvider,
Aurex\Framework\Au... | J7mbo/Aurex | lib/Framework/Module/Modules/FormDoctrineModule/FormDoctrineModule.php | PHP | mit | 1,340 |
define('exports@*', [], function(require, exports, module){
exports.a = 1;
}); | kaelzhang/neuron | test/mod/exports/*/exports.js | JavaScript | mit | 84 |
package types
// ApiVersion custom ENUM for SDK forward compatibility
type ApiVersion int
const (
ApiV1 ApiVersion = iota
)
// EnvironmentType
// https://docs.coinapi.io/#endpoints-2
type EnvironmentType int
const (
ProdEncrypted EnvironmentType = iota
ProdInsecure
TestEncrypted
TestInsecure
)
// MessageType ... | coinapi/coinapi-sdk | data-api/go-ws/api/types/enums.go | GO | mit | 1,517 |
require 'rubygems'
require 'bundler'
Bundler.require
require 'sinatra'
set :public_folder, 'static'
get '/' do
File.read(File.join('index.html'))
end
get '/api/' do
#content_type :js
content_type("application/javascript")
response["Content-Type"] = "application/javascript"
#require 'config/initializers/b... | TigerWolf/beamly_demo | main.rb | Ruby | mit | 1,529 |
using System.Threading.Tasks;
using FluentAssertions;
using Histrio.Testing;
using Xunit;
namespace Histrio.Tests.Cell
{
public class When_getting_a_value_from_a_cell : GivenWhenThen
{
[Theory,
InlineData(true),
InlineData(333),
InlineData(new[] {true, true}),
Inline... | MCGPPeters/Histrio | old/src/Histrio.Tests/Cell/When_getting_a_value_from_a_cell.cs | C# | mit | 1,321 |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class oscilation : MonoBehaviour {
public float m_speed = 0.008f;
public int m_distance = 45;
private int compteur = 0;
private int compteur2 = 0;
// Use this for initialization
void Start () {
Vector3 yOrigin = transform.l... | Wormkil/firstProject | Assets/oscilation.cs | C# | mit | 962 |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Threading.Tasks;
using System.Net;
using System.Web;
using System.Web.Mvc;
using Transit.Models;
namespace Transit.Controllers
{
public class RoutesController : Controller
{
pri... | cdchild/TransitApp | Transit/Controllers/RoutesController.cs | C# | mit | 4,630 |
/*
* This file is part of LuckPerms, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <luck@lucko.me>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... | lucko/LuckPerms | nukkit/src/main/java/me/lucko/luckperms/nukkit/inject/server/InjectorSubscriptionMap.java | Java | mit | 4,057 |
jQuery(document).ready(function(){
jQuery('.carousel').carousel()
var FPS = 30;
var player = $('#player')
var pWidth = player.width();
$window = $(window)
var wWidth = $window.width();
setInterval(function() {
update();
}, 1000/FPS);
function update() {
if(keydown.space) {
player.shoot();
}... | ni5ni6/chiptuna.com | js/main.js | JavaScript | mit | 739 |
// Copyright (c) 2015 The original author or authors
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
#if UNITY_EDITOR
using SpriterDotNet;
using System;
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEngine;
namespace S... | adamholdenyall/SpriterDotNet | SpriterDotNet.Unity/Assets/SpriterDotNet/SpriterImporter.cs | C# | mit | 4,693 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import base64
import json
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
from behave import *
@step('I share first element in the history list')
def step_impl(... | jsargiot/restman | tests/steps/share.py | Python | mit | 2,709 |
import { entryPoint } from '@rpgjs/standalone'
import globalConfigClient from './config/client'
import globalConfigServer from './config/server'
import modules from './modules'
document.addEventListener('DOMContentLoaded', function() {
entryPoint(modules, {
globalConfigClient,
globalConfigServer
... | RSamaium/RPG-JS | packages/sample3/src/standalone.ts | TypeScript | mit | 338 |
/* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// Elements part
//
// Contrib... | pavel-pimenov/sandbox | mediainfo/MediaInfoLib/Source/MediaInfo/Multiple/File_Riff_Elements.cpp | C++ | mit | 147,762 |
package cwr;
import java.util.ArrayList;
public class RobotBite
{
//0 = time [state]
//1 = x [state]
//2 = y [state]
//3 = energy [state]
//4 = bearing radians [relative position]
//5 = distance [relative position]
//6 = heading radians [travel]
//7 = velocity [travel]
String name;
long c... | buckbaskin/RoboCodeGit | old_src/cwr/RobotBite.java | Java | mit | 1,934 |
export default function closest(n, arr) {
let i
let ndx
let diff
let best = Infinity
let low = 0
let high = arr.length - 1
while (low <= high) {
// eslint-disable-next-line no-bitwise
i = low + ((high - low) >> 1)
diff = arr[i] - n
if (diff < 0) {
low = i + 1
} else if (diff > ... | octopitus/rn-sliding-up-panel | libs/closest.js | JavaScript | mit | 493 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ClearScript.Installer.Demo
{
public class Class1
{
}
}
| eswann/ClearScript.Installer | src/ClearScript.Installer.Demo/Class1.cs | C# | mit | 197 |
/**
* 斐波那契数列
*/
export default function fibonacci(n){
if(n <= 2){
return 1;
}
let n1 = 1, n2 = 1, sn = 0;
for(let i = 0; i < n - 2; i ++){
sn = n1 + n2;
n1 = n2;
n2 = sn;
}
return sn;
}
| lomocc/react-boilerplate | src/utils/fibonacci.js | JavaScript | mit | 230 |
import * as UTILS from '@utils';
const app = new WHS.App([
...UTILS.appModules({
position: new THREE.Vector3(0, 40, 70)
})
]);
const halfMat = {
transparent: true,
opacity: 0.5
};
const box = new WHS.Box({
geometry: {
width: 30,
height: 2,
depth: 2
},
modules: [
new PHYSICS.BoxModu... | WhitestormJS/whs.js | examples/physics/Constraints/DofConstraint/script.js | JavaScript | mit | 1,332 |
package unit.com.bitdubai.fermat_dmp_plugin.layer.basic_wallet.bitcoin_wallet.developer.bitdubai.version_1.structure.BitcoinWalletBasicWalletAvailableBalance;
import com.bitdubai.fermat_api.layer.dmp_basic_wallet.common.exceptions.CantRegisterDebitException;
import com.bitdubai.fermat_api.layer.dmp_basic_wallet.bitco... | fvasquezjatar/fermat-unused | DMP/plugin/basic_wallet/fermat-dmp-plugin-basic-wallet-bitcoin-wallet-bitdubai/src/test/java/unit/com/bitdubai/fermat_dmp_plugin/layer/basic_wallet/bitcoin_wallet/developer/bitdubai/version_1/structure/BitcoinWalletBasicWalletAvailableBalance/DebitTest.java | Java | mit | 5,573 |
// ******************************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTAB... | phmatray/UWPCommunityToolkit | Microsoft.Toolkit.Uwp.Services/OAuth/OAuthUriExtensions.cs | C# | mit | 2,612 |
/*
gopm (Go Package Manager)
Copyright (c) 2012 cailei (dancercl@gmail.com)
The MIT License (MIT)
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... | cailei/gopm | gopm/agent.go | GO | mit | 3,137 |
package org.usfirst.frc.team6135.robot.subsystems;
import java.awt.geom.Arc2D.Double;
import org.usfirst.frc.team6135.robot.RobotMap;
import org.usfirst.frc.team6135.robot.commands.teleopDrive;
import com.kauailabs.navx.frc.AHRS;
import edu.wpi.first.wpilibj.ADXRS450_Gyro;
import edu.wpi.first.wpilibj.RobotDrive;
im... | Arctos6135/frc-2017 | src/org/usfirst/frc/team6135/robot/subsystems/Drive.java | Java | mit | 4,676 |
module Shopping
class LineItem < ActiveRecord::Base
extend Shopping::AttributeAccessibleHelper
belongs_to :cart
belongs_to :source, polymorphic: true
validate :unique_source_and_cart, on: :create
validate :unpurchased_cart
validates :quantity, allow_nil: true, numericality: {only... | barkbox/shopping | app/models/shopping/line_item.rb | Ruby | mit | 1,352 |
using System;
namespace KeyWatcher.Reactive
{
internal sealed class ObservingKeyWatcher
: IObserver<char>
{
private readonly string id;
internal ObservingKeyWatcher(string id) =>
this.id = id;
public void OnCompleted() =>
Console.Out.WriteLine($"{this.id} - {nameof(this.OnCompleted)}");
public vo... | rockfordlhotka/DistributedComputingDemo | src/KeyWatcher - Core/KeyWatcher.Reactive/ObservingKeyWatcher.cs | C# | mit | 552 |
from baroque.entities.event import Event
class EventCounter:
"""A counter of events."""
def __init__(self):
self.events_count = 0
self.events_count_by_type = dict()
def increment_counting(self, event):
"""Counts an event
Args:
event (:obj:`baroque.entities.ev... | baroquehq/baroque | baroque/datastructures/counters.py | Python | mit | 1,120 |
import React from 'react'
import { PlanItineraryContainer } from './index'
const PlanMapRoute = () => {
return (
<div>
<PlanItineraryContainer />
</div>
)
}
export default PlanMapRoute
| in-depth/indepth-demo | src/shared/views/plans/planItinerary/PlanItineraryRoute.js | JavaScript | mit | 206 |
// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ===========================... | Squidex/squidex | backend/src/Squidex/Areas/IdentityServer/Config/AlwaysAddTokenHandler.cs | C# | mit | 1,160 |
using System.Diagnostics.CodeAnalysis;
namespace Npoi.Mapper
{
/// <summary>
/// Information for one row that read from file.
/// </summary>
/// <typeparam name="TTarget">The target mapping type for a row.</typeparam>
[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global")]
public c... | donnytian/Npoi.Mapper | Npoi.Mapper/src/Npoi.Mapper/RowInfo.cs | C# | mit | 1,652 |
const path = require('path');
module.exports = {
lazyLoad: true,
pick: {
posts(markdownData) {
return {
meta: markdownData.meta,
description: markdownData.description,
};
},
},
plugins: [path.join(__dirname, '..', 'node_modules', 'bisheng-plugin-description')],
routes: [{
... | benjycui/bisheng | packages/bisheng-theme-one/src/index.js | JavaScript | mit | 536 |
<?php
namespace WindowsAzure\DistributionBundle\Deployment;
/**
* @author Stéphane Escandell <stephane.escandell@gmail.com>
*/
interface CustomIteratorInterface
{
/**
* @param array $dirs
* @param array $subdirs
*/
public function getIterator(array $dirs, array $subdirs);
} | beberlei/AzureDistributionBundle | Deployment/CustomIteratorInterface.php | PHP | mit | 302 |
import numpy as np
class Surface(object):
def __init__(self, image, edge_points3d, edge_points2d):
"""
Constructor for a surface defined by a texture image and
4 boundary points. Choose the first point as the origin
of the surface's coordinate system.
:param image: image a... | yangshun/cs4243-project | app/surface.py | Python | mit | 3,220 |
import { fullSrc } from '../element/element';
import { pixels } from '../math/unit';
import { Clone } from './clone';
import { Container } from './container';
import { Image } from './image';
import { Overlay } from './overlay';
import { Wrapper } from './wrapper';
export class ZoomDOM {
static useExisting(element... | MikeBull94/zoom.ts | src/dom/zoom-dom.ts | TypeScript | mit | 3,272 |
"use strict";
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var qs = require("querystring");
var partial ... | weixiyen/nba | lib/stats.js | JavaScript | mit | 1,662 |
<?php
/* TwigBundle:Exception:exception.json.twig */
class __TwigTemplate_8d9b12e119daada0de361618d51aaa01 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protec... | waltertschwe/kids-reading-network | app/cache/prod/twig/8d/9b/12e119daada0de361618d51aaa01.php | PHP | mit | 1,455 |
<div id="menu-logo-wrapper" class="animated slideInDown">
<div class="main-menu">
<div class="pull-left">
<div class="toggle-menu-container">
<div class="toggle-menu">
<a href="javascript:void(0)">
<span class="nav-bar"></span>
<span class="nav-bar"></span>
<span class="nav-... | zawzawzaw/scoop | application/themes/scooptherapy/elements/menu.php | PHP | mit | 988 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.vmwarecloudsimple.models;
import com.azure.resourcemanager.vmwarecloudsimple.fluent.models.CustomizationPolicyInner;
/** An imm... | Azure/azure-sdk-for-java | sdk/vmwarecloudsimple/azure-resourcemanager-vmwarecloudsimple/src/main/java/com/azure/resourcemanager/vmwarecloudsimple/models/CustomizationPolicy.java | Java | mit | 2,001 |
import React from 'react';
import ErrorIcon from './ErrorIcon';
export const symbols = {
'ErrorIcon -> with filled': <ErrorIcon filled={true} />,
'ErrorIcon -> without filled': <ErrorIcon filled={false} />
};
| seekinternational/seek-asia-style-guide | react/ErrorIcon/ErrorIcon.iconSketch.js | JavaScript | mit | 214 |
<!DOCTYPE HTML>
<?php include '../inc/draft_config.php'; ?><!-- Use relative path to find config file -->
<html lang="">
<head>
<base href="<?php echo BASE_URL; ?>">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Pro... | Kiriniy/Project_Draft | dist/assets/errors/404.php | PHP | mit | 1,764 |
package commands
import (
"compress/gzip"
"errors"
"fmt"
"io"
"os"
"path/filepath"
"strings"
core "github.com/ipfs/go-ipfs/core"
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
e "github.com/ipfs/go-ipfs/core/commands/e"
tar "gx/ipfs/QmQine7gvHncNevKtG9QXxf3nXcwSj6aDDmMm52mHofEEp/tar-utils"
uarchiv... | chriscool/go-ipfs | core/commands/get.go | GO | mit | 6,703 |
package org.reasm.m68k.assembly.internal;
import javax.annotation.Nonnull;
import javax.annotation.concurrent.Immutable;
import org.reasm.Value;
import org.reasm.ValueToBooleanVisitor;
/**
* The <code>WHILE</code> directive.
*
* @author Francis Gagné
*/
@Immutable
class WhileDirective extends Mnemonic {
@No... | reasm/reasm-m68k | src/main/java/org/reasm/m68k/assembly/internal/WhileDirective.java | Java | mit | 1,747 |
/*
* This file is part of FlexibleLogin
*
* The MIT License (MIT)
*
* Copyright (c) 2015-2018 contributors
*
* 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, incl... | games647/FlexibleLogin | src/main/java/com/github/games647/flexiblelogin/listener/prevent/PreventListener.java | Java | mit | 8,213 |
# coding: utf-8
"""
ORCID Member
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: Latest
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import r... | Royal-Society-of-New-Zealand/NZ-ORCID-Hub | orcid_api/models/contributor_orcid.py | Python | mit | 3,922 |
package com.contexthub.storageapp;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.SearchView;
import android.view.Menu;
import android.view.MenuItem;
import com.ch... | contexthub/storage-android | StorageApp/app/src/main/java/com/contexthub/storageapp/MainActivity.java | Java | mit | 4,259 |
<?php
/**
* @author Victor Demin <mail@vdemin.com>
* @copyright (c) 2015, Victor Demin <mail@vdemin.com>
*/
namespace GlenDemon\ZabbixApi\Repository;
use \GlenDemon\ZabbixApi\Entity\HostGroup;
/**
* HostGroup repository.
*/
class HostGroupRepository extends AbstractRepository
{
/**
* Finds an object by... | glendemon/zabbix-api | src/Repository/HostGroupRepository.php | PHP | mit | 1,128 |
// Copyright Aleksey Gurtovoy 2000-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.lslboost.org/LICENSE_1_0.txt)
//
// Preprocessed version of "lslboost/mpl/list/list10_c.hpp" header
// -- DO NOT modify by hand!
namespace lslb... | gazzlab/LSL-gazzlab-branch | liblsl/external/lslboost/mpl/list/aux_/preprocessed/plain/list10_c.hpp | C++ | mit | 2,868 |
module CardHelper
def card_element_properties(node, options = {})
{ class: dom_class(node, :card),
itemscope: '',
itemtype: 'http://schema.org/Thing',
itemid: node.uuid,
itemtype: node.class.schema_path }.merge(options)
end
def cardtec_header(node)
content_tag(:span, nod... | dinge/dinghub | app/helpers/card_helper.rb | Ruby | mit | 705 |
/*
* The MIT License
*
* Copyright 2014 Jon Arney, Ensor Robotics.
*
* 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 ... | jarney/snackbot | src/main/java/org/ensor/robots/roboclawdriver/CommandReadMainBatteryVoltage.java | Java | mit | 1,602 |
package org.kalnee.trivor.insights.web.rest;
import com.codahale.metrics.annotation.Timed;
import org.kalnee.trivor.insights.domain.insights.Insights;
import org.kalnee.trivor.insights.service.InsightService;
import org.kalnee.trivor.nlp.domain.ChunkFrequency;
import org.kalnee.trivor.nlp.domain.PhrasalVerbUsage;
impo... | kalnee/trivor | insights/src/main/java/org/kalnee/trivor/insights/web/rest/InsightsResource.java | Java | mit | 4,162 |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="GlobalSuppressions.cs">
// Copyright (c) 2017. All rights reserved. Licensed under the MIT license. See LICENSE file in
// the project root for full license information.
/... | spritely/Foundations.WebApi | Foundations.WebApi/GlobalSuppressions.cs | C# | mit | 1,356 |
<?php
# MetInfo Enterprise Content Management System
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
require_once '../login/login_check.php';
if($action=='modify'){
$shortcut=array();
$query="select * from $met_language where value='$name' and lang='$lang'";
$lang_shortcut=$db->get_on... | maicong/OpenAPI | MetInfo5.2/admin/system/shortcut_editor.php | PHP | mit | 1,564 |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 maldicion069
*
* 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,... | maldicion069/HBPWebNodeJs | views/account/experiments/compare/stages.js | JavaScript | mit | 9,900 |
import QUnit from 'qunit';
import { registerDeprecationHandler } from '@ember/debug';
let isRegistered = false;
let deprecations = new Set();
let expectedDeprecations = new Set();
// Ignore deprecations that are not caused by our own code, and which we cannot fix easily.
const ignoredDeprecations = [
// @todo remov... | kaliber5/ember-bootstrap | tests/helpers/setup-no-deprecations.js | JavaScript | mit | 2,205 |
/*
The MIT License (MIT)
Copyright (c) 2014 Manni Wood
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pu... | manniwood/cl4pg | src/main/java/com/manniwood/cl4pg/v1/exceptions/Cl4pgConfFileException.java | Java | mit | 1,781 |
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("10... | emilti/Telerik-Academy-My-Courses | DataBases/03.Processing Xml/Processing XML/10.TraverseDirectoryXDocument/Properties/AssemblyInfo.cs | C# | mit | 1,434 |
package com.cosium.spring.data.jpa.entity.graph.repository.support;
import com.google.common.base.MoreObjects;
import org.springframework.core.ResolvableType;
import org.springframework.data.jpa.repository.query.JpaEntityGraph;
import static java.util.Objects.requireNonNull;
/**
* Wrapper class allowing to hold a {... | Cosium/spring-data-jpa-entity-graph | core/src/main/java/com/cosium/spring/data/jpa/entity/graph/repository/support/EntityGraphBean.java | Java | mit | 2,555 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Page',
fields=[
('id', models.AutoField(verbose... | vollov/i18n-django-api | page/migrations/0001_initial.py | Python | mit | 723 |
<?php
namespace App\Service;
class Message {
public function get()
{
if (isset($_SESSION['message'])) {
$array = explode(',', $_SESSION['message']);
unset($_SESSION['message']);
return $array;
}
return '';
}
public function set($me... | QA-Games/QA-tools | app/Service/Message.php | PHP | mit | 421 |
package mqttpubsub
import (
"encoding/json"
"fmt"
"sync"
"time"
log "github.com/Sirupsen/logrus"
"github.com/brocaar/loraserver/api/gw"
"github.com/brocaar/lorawan"
"github.com/eclipse/paho.mqtt.golang"
)
// Backend implements a MQTT pub-sub backend.
type Backend struct {
conn mqtt.Client
txPacketC... | kumara0093/loraserver | backend/mqttpubsub/backend.go | GO | mit | 4,289 |
package stage2;
public class DecafError {
int numErrors;
DecafError(){
}
public static String errorPos(Position p){
return "(L: " + p.startLine +
", Col: " + p.startCol +
") -- (L: " + p.endLine +
", Col: " + p.endCol +
")";
}
public void error(String s, Position p) {... | bigfatnoob/Decaf | src/stage2/DecafError.java | Java | mit | 471 |
"use strict";
define("ace/mode/asciidoc_highlight_rules", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text_highlight_rules"], function (require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
... | IonicaBizau/arc-assembler | clients/ace-builds/src/mode-asciidoc.js | JavaScript | mit | 13,207 |
/*
*
* Copyright (c) 2013 - 2014 INT - National Institute of Technology & COPPE - Alberto Luiz Coimbra Institute
- Graduate School and Research in Engineering.
* See the file license.txt for copyright permission.
*
*/
package cargaDoSistema;
import modelo.TipoUsuar... | dayse/gesplan | test/cargaDoSistema/CargaUsuario.java | Java | mit | 4,187 |