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 |
|---|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloPowerBiServiceApi.Models {
public class Report {
public string id { get; set; }
public string name { get; set; }
public string webUrl { get; set; }
public string embedUrl { get; ... | CriticalPathTraining/PBD365 | Modules/04_PBIServiceApi/Demo/HelloPowerBiServiceApi/HelloPowerBiServiceApi/Models/JsonConverterClasses.cs | C# | mit | 491 |
<?php
/*
* @author M2E Pro Developers Team
* @copyright M2E LTD
* @license Commercial use is forbidden
*/
class Ess_M2ePro_Block_Adminhtml_Wizard_InstallationAmazon_Notification
extends Ess_M2ePro_Block_Adminhtml_Wizard_Notification
{
//########################################
//#############... | portchris/NaturalRemedyCompany | src/app/code/community/Ess/M2ePro/Block/Adminhtml/Wizard/InstallationAmazon/Notification.php | PHP | mit | 350 |
var Icon = require('../icon');
var element = require('magic-virtual-element');
var clone = require('../clone');
exports.render = function render(component) {
var props = clone(component.props);
delete props.children;
return element(
Icon,
props,
element('path', { d: 'M3 21h2v-2H3v2zM5 7H3v2h2V7zM3 17... | goto-bus-stop/deku-material-svg-icons | lib/editor/border-horizontal.js | JavaScript | mit | 548 |
/*++
NASM Assembly Language Plugin
Copyright (c) 2017-2019 Aidan Khoury. All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any... | dude719/JetBrains-NASM-Language | src/com/nasmlanguage/NASMCommenter.java | Java | mit | 1,389 |
// ****************************************************************************
// <copyright file="IntExtensions.cs" company="Pedro Lamas">
// Copyright © Pedro Lamas 2011
// </copyright>
// ****************************************************************************
// <author>Pedro Lamas</author>
// <email>pedrolam... | Cimbalino/Cimbalino-Phone-Toolkit | src/Cimbalino.Phone.Toolkit.Background (WP71)/Extensions/IntExtensions.cs | C# | mit | 4,435 |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class AddLastNameToPeopleTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('people', function(Blueprint $table)
{
$table->dropColumn('nam... | svpernova09/SvperCRM | app/database/migrations/2014_09_14_020434_add_last_name_to_people_table.php | PHP | mit | 748 |
<?php
/**
* Created by PhpStorm.
* User: Admin
* Date: 4/6/14
* Time: 2:46 PM
*/
namespace Nfq\NomNomBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class AddUsersToEventType extends AbstractType
{
/**
* Returns the name of this type.
*... | nfqakademija/nomnom | src/Nfq/NomNomBundle/Form/Type/AddUsersToEventType.php | PHP | mit | 744 |
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library
// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "your_auth_token";
$client = new Services_Twilio($si... | teoreteetik/api-snippets | rest/message/instance-get-example-1/instance-get-example-1.4.x.php | PHP | mit | 546 |
/// -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: t -*-
///
/// \file subject.cpp
/// \author Martin Reddy
/// \brief The subject of an observer relationship.
///
/// Copyright (c) 2010, Martin Reddy. All rights reserved.
/// Distributed under the X11/MIT License. See LICENSE.txt.
/// See http://APIBook.com... | goodspeed24e/Programming | DesignInterface/observer/subject.cpp | C++ | mit | 372 |
#include <muduo/net/EventLoop.h>
#include <muduo/net/EventLoopThread.h>
#include <stdio.h>
using namespace muduo;
using namespace muduo::net;
void runInThread()
{
printf("runInThread(): pid = %d, tid = %d\n",
getpid(), CurrentThread::tid());
}
int main()
{
printf("main(): pid = %d, tid = %d\n",
... | JnuSimba/muduo_tests | Reactor_test06.cc | C++ | mit | 745 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KDCLLC.Web.Models.Data
{
public class SalesOrder : IObjectWithState
{
public SalesOrder()
{
SalesOrderItems = new List<SalesOrderItem>();
}
... | kdcllc/KDCLLCWeb | KDCLLC.Web.Models/Data/SalesOrder.cs | C# | mit | 640 |
define(['./alasqlportfoliodividenddata', './monthstaticvalues', './bankdatadividend', './dateperiod'], function(alasqlportfoliodividenddata, monthstaticvalues, bankdatadividend, dateperiod) {
var gridData = [];
var gridId;
var months = monthstaticvalues.getMonthWithLettersValues();
var currentMonth = n... | nnava/nnava.github.io | js/gridportfoliodividend.js | JavaScript | mit | 13,859 |
/* eslint-disable global-require */
// polyfills and vendors
if (!window._babelPolyfill) {
require('babel-polyfill')
}
| ri/news-emote | src/vendor.js | JavaScript | mit | 123 |
/*
* This file is part of ThermalRecycling, licensed under the MIT License (MIT).
*
* Copyright (c) OreCruncher
*
* 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, i... | OreCruncher/ThermalRecycling | src/main/java/org/blockartistry/mod/ThermalRecycling/support/recipe/accessor/ForestryFabricatorRecipeAccessor.java | Java | mit | 1,809 |
import json
import logging
from foxglove import glove
from httpx import Response
from .settings import Settings
logger = logging.getLogger('ext')
def lenient_json(v):
if isinstance(v, (str, bytes)):
try:
return json.loads(v)
except (ValueError, TypeError):
pass
return... | tutorcruncher/morpheus | src/ext.py | Python | mit | 3,555 |
/*
Copyright (C) 2003-2013 by Kristina Simpson <sweet.kristas@gmail.com>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any pur... | sweetkristas/xhtml | src/xhtml/css_parser.cpp | C++ | mit | 13,689 |
package org.udger.parser;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.io.IOException;
import java.net.URL;
import java.net.UnknownHostException;
import java.sql.SQLException;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.CyclicBarrier;... | udger/udger-java | src/test/java/org/udger/parser/UdgerParserTest.java | Java | mit | 3,881 |
<?php namespace Illuminate\Database\Eloquent\Relations;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\ModelNotFoundException;
class BelongsToMany extends Relation {
/**
* The intermediate table for th... | brunoalbano/uniac | src/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php | PHP | mit | 25,569 |
// Created by Ron 'Maxwolf' McDowell (ron.mcdowell@gmail.com)
// Timestamp 01/03/2016@1:50 AM
using System.Diagnostics.CodeAnalysis;
using OregonTrailDotNet.Event.Prefab;
using OregonTrailDotNet.Module.Director;
namespace OregonTrailDotNet.Event.Person
{
/// <summary>
/// Rocky Mountain spotted fever (R... | Maxwolf/OregonTrail | src/Event/Person/MountainFever.cs | C# | mit | 1,107 |
import { Cursor } from '../diagram/Cursor';
import { DiagramElement } from '../diagram/DiagramElement';
import { Handle } from '../diagram/Handle';
import { AbstractCanvas } from './AbstractCanvas';
const zoomLevels = [1 / 8, 1 / 7, 1 / 6, 1 / 5, 1 / 4, 1 / 3, 1 / 2, 2 / 3, 1, 3 / 2, 2, 3, 4, 5, 6, 7, 8];
export abst... | ksm2/metagram | modules/@metagram/framework/canvas/InteractiveCanvas.ts | TypeScript | mit | 4,938 |
#include "peerreview/vrf.h"
#define SUBSYSTEM "VrfExtInfoPolicy"
VrfExtInfoPolicy::VrfExtInfoPolicy(VerifiablePRNG *vprng) : ExtInfoPolicy()
{
this->vprng = vprng;
}
VrfExtInfoPolicy::~VrfExtInfoPolicy()
{
}
int VrfExtInfoPolicy::storeExtInfo(SecureHistory *history, long long followingSeq, unsigned char *buffer, ... | jdecouchant/PAG | ORPR/libpeerreview-1.0.9-light/src/vrf/extinfo.cc | C++ | mit | 724 |
const iNaturalistAPI = require( "../inaturalist_api" );
const ControlledTerm = require( "../models/controlled_term" );
const Observation = require( "../models/observation" );
const Project = require( "../models/project" );
const Taxon = require( "../models/taxon" );
const User = require( "../models/user" );
const obse... | inaturalist/inaturalistjs | lib/endpoints/observations.js | JavaScript | mit | 7,513 |
package dk.itu.ejuuragr.tests;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.anji.util.Properties;
import dk.itu.ejuuragr.turing.MinimalTuringMachine;
public class MinimalTuringMachineTest {
MinimalTuringMachine tm;
@Before
public void before(){
Properties props = new P... | Fumaloko92/MSc-Thesis | 17-05-2017/neuralturingmachines-master/src/dk/itu/ejuuragr/tests/MinimalTuringMachineTest.java | Java | mit | 3,649 |
package meta_test
import (
"reflect"
"testing"
"time"
"github.com/archsaber/influxdb/influxql"
"github.com/archsaber/influxdb/services/meta"
)
func Test_Data_DropDatabase(t *testing.T) {
data := &meta.Data{
Databases: []meta.DatabaseInfo{
{Name: "db0"},
{Name: "db1"},
{Name: "db2"},
{Name: "db4"... | archsaber/influxdb | services/meta/data_test.go | GO | mit | 5,658 |
<?php
use awheel\App;
use Monolog\Logger;
use awheel\Support\Arr;
use awheel\Http\Request;
use awheel\Http\Response;
use awheel\Routing\Router;
use awheel\Http\Kernel as HttpKernel;
use awheel\Console\Kernel as ConsoleKernel;
/**
* 返回应用实例, 或应用组件
*
* @param $make
*
* @return App|Router|Request|Response|HttpKernel... | awheel/framework | src/Support/Helpers.php | PHP | mit | 1,379 |
package examples
const JSONExample_User = `{
"name": "calavera"
}`
| calavera/json_generate | examples/simple.go | GO | mit | 69 |
#include "../widgetslib.h"
#include "button.h"
#include "Meta/math/vector4.h"
#include "vertex.h"
#include "Meta/keyvalue/metatable_impl.h"
#include "Meta/serialize/serializetable_impl.h"
#include "fontloader.h"
#include "imageloader.h"
METATABLE_BEGIN_BASE(Engine::Widgets::Button, Engine::Widgets::WidgetBase)
M... | MadManRises/Madgine | plugins/core/widgets/src/Madgine/widgets/button.cpp | C++ | mit | 3,973 |
// Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package base
import (
"container/list"
"encoding/json"
"fmt"
"html/template"
"runtime"
"strings"
"time"
"golang.org/x/net/html/charset"
"golang.org... | pecastro/gogs | modules/base/template.go | GO | mit | 6,062 |
/**
* @author Adam Meadows <adam.meadows@gmail.com>
* @copyright 2015 Adam Meadows. All rights reserved.
*/
'use strict';
/* eslint-disable max-nested-callbacks */
let $ = require('jquery');
let main = require('aiw-ui');
describe('main', () => {
let $container;
beforeEach(() => {
$container = $(... | jobsquad/aiw-ui | spec/karma/index-spec.6.js | JavaScript | mit | 513 |
import {Sample} from './sample'
import {context} from './init_audio'
let instanceIndex = 0
export class SampleOscillator extends Sample{
constructor(sampleData, event){
super(sampleData, event)
this.id = `${this.constructor.name}_${instanceIndex++}_${new Date().getTime()}`
if(this.sampleData === -1){
... | abudaan/qambi | src/sample_oscillator.js | JavaScript | mit | 1,076 |
require "spec_helper"
describe TecDoc::DateParser do
describe "#to_date" do
it "should convert 199904 to April 1st, 1999" do
TecDoc::DateParser.new("199904").to_date.should == Date.new(1999, 4, 1)
end
it "should convert 201012 to December 1st, 2012" do
TecDoc::DateParser.new("201012").to_dat... | mak-it/tec_doc | spec/tec_doc/date_parser_spec.rb | Ruby | mit | 476 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.datalakestore.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.faste... | Azure/azure-sdk-for-java | sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/models/EncryptionIdentity.java | Java | mit | 2,508 |
<div id="center">
<div class="col-md-6 center">
<div id="notification" class="notification row">
<ul class="nav nav-tabs">
<li role="presentation" class="active"><a data-toggle="pill" href="#noti1">Notification</a></li>
<li role="presentation"><a data-toggle="pill" href="#events1">Assignment</a><... | babirali/myproject | application/views/layouts/center.php | PHP | mit | 8,464 |
import { Client } from 'discord.js';
import { isFunction, isRegExp, isString } from 'lodash/lang';
import CommandRegistry from '../command/CommandRegistry';
import Dispatcher from './dispatcher/Dispatcher';
import ServiceContainer from './services/ServiceContainer';
/**
* @external {ClientOptions} https://discord.js.... | hkwu/ghastly | src/client/Ghastly.js | JavaScript | mit | 1,545 |
/*
* Copyright (c) 2010 Simon Hardijanto
*
* 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, ... | metaluna/magefortress | test/magefortress/jobs/subtasks/MFGotoLocationSubtaskTest.java | Java | mit | 8,185 |
using System;
using System.Runtime.CompilerServices;
using Pantheon.Core.MessageRouting;
namespace Pantheon.Core
{
public class MessageCallback
{
private ulong _callback;
private MessageCode _expected;
private Message _request;
private Message _response;
private Message... | seaboy1234/Pantheon | Pantheon.Core/MessageCallback.cs | C# | mit | 3,007 |
var React = require('react'),
cx = require('classnames'),
constants = require('./constants');
var Preloader = React.createClass({
propTypes: {
size: React.PropTypes.oneOf(constants.SCALES),
active: React.PropTypes.bool,
colors: React.PropTypes.array
},
getDefaultProps() {
return {
... | openmaphub/react-materialize | src/Preloader.js | JavaScript | mit | 1,309 |
class DotenvHaiku
# Dotenv Railtie for using Dotenv to load environment from a file into
# Ruby applications
class App
# Public: Load dotenv
#
# Manually call `Dotenv::Railtie.load` in your app's config
def load(options = {})
Dotenv.load(*to_load(options))
end
# Internal: Try the `R... | metavida/dotenv-haiku | lib/dotenv-haiku/to_load/generic.rb | Ruby | mit | 835 |
#include "nilConfig.h"
#include "nil.h"
#include "nilUtil.h"
#include "nilWindows.h"
#ifdef NIL_PLATFORM_WINDOWS
#define NIL_FIELD_OFFSET(type, field) ((LONG_PTR)&(((type*)0)->field))
#define NIL_DIJ2OFS_BUTTON(n) (NIL_FIELD_OFFSET(DIJOYSTATE2, rgbButtons)+(n))
#define NIL_DIJ2OFS_POV(n) (NIL_FIELD_OFFSET(DIJO... | noorus/nil | src/windows/directinput/DirectInputController.cpp | C++ | mit | 9,142 |
#include "processview.h"
ProcessView::ProcessView(QWidget *parent)
: QTableView(parent)
{
initialActions();
connect(m_refresh, SIGNAL(triggered()), this, SLOT(onRefreshActionTriggered()));
connect(m_modules, SIGNAL(triggered()), this, SLOT(onModulesActionTriggered()));
connect(m_threads, SIGNAL(triggered()), thi... | martinkro/tutorial-qt | Beautiful/Process/src/processview.cpp | C++ | mit | 2,165 |
module Dominion
class Smithy < Action
def cost() 4 end
def to_s() 'Smithy' end
def play(turn)
turn.draw 3
end
end
end | jmckible/dominion | lib/dominion/action/base/smithy.rb | Ruby | mit | 167 |
from distutils.core import setup
setup(
name='sequencehelpers',
py_modules=['sequencehelpers'],
version='0.2.1',
description="A library consisting of functions for interacting with sequences and iterables.",
author='Zach Swift',
author_email='cras.zswift@gmail.com',
url='https://github.com/2achary/sequen... | 2achary/sequencehelpers | setup.py | Python | mit | 467 |
require 'spec_helper'
require 'feature/testing'
describe 'Feature testing support' do
let(:repository) { Feature::Repository::SimpleRepository.new }
before(:each) do
repository.add_active_feature(:active_feature)
Feature.set_repository(repository)
end
it 'should execute code block with an deactivate... | moneyadviceservice/feature | spec/feature/testing_spec.rb | Ruby | mit | 1,561 |
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('kirppu', '0039_counter_private_key'),
]
operations = [
migrations.AlterUniqueTogether(
name='itemtype',
unique_together={('event', 'order')},
),
migrations.R... | jlaunonen/kirppu | kirppu/migrations/0040_remove_itemtype_key.py | Python | mit | 408 |
from django.contrib import admin
from .models import BackgroundImages, Widget
class WidgetAdmin(admin.ModelAdmin):
list_display = ('name', 'link', 'is_featured')
ordering = ('-id',)
class BackgroundAdmin(admin.ModelAdmin):
list_display = ('name', 'created_at')
ordering = ('-id',)
admin.site.regis... | malikshahzad228/widget-jack | widgets/admin.py | Python | mit | 400 |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => 'user/config/system.yaml',
'modified' => 1431195484,
'data' => [
'home' => [
'alias' => '/home'
],
'pages' => [
'theme' => 'deliver',
'markdown_extra' => false,
... | camoncal/julioewebsite | cache/compiled/files/50d05a56140aa6d4a1a465e38ca8c7a4.yaml.php | PHP | mit | 1,190 |
let userDao = require('../dao/userDao'),
articleDao = require('../dao/articleDao'),
commentDao = require('../dao/commentDao'),
starDao = require('../dao/starDao'),
messageDao = require('../dao/messageDao'),
voteDao = require('../dao/voteDao'),
settings = require('../config/settings'),
tools ... | wayshon/community-server | routes/api.js | JavaScript | mit | 8,947 |
from pandac.PandaModules import *
from toontown.toonbase.ToonBaseGlobal import *
from DistributedMinigame import *
from direct.interval.IntervalGlobal import *
from direct.fsm import ClassicFSM, State
from direct.fsm import State
from toontown.safezone import Walk
from toontown.toonbase import ToontownTimer
from direct... | ToonTownInfiniteRepo/ToontownInfinite | toontown/minigame/DistributedTagGame.py | Python | mit | 10,955 |
"""Pipeline configuration parameters."""
from os.path import dirname, abspath, join
from sqlalchemy import create_engine
OS_TYPES_URL = ('https://raw.githubusercontent.com/'
'openspending/os-types/master/src/os-types.json')
PIPELINE_FILE = 'pipeline-spec.yaml'
SOURCE_DATAPACKAGE_FILE = 'source.datapa... | Victordeleon/os-data-importers | eu-structural-funds/common/config.py | Python | mit | 3,382 |
/* @flow */
import * as React from 'react';
import cn from 'classnames';
import { StyleClasses } from '../theme/styleClasses';
type Props = {
// An optional inline-style to apply to the overlay.
style: ?Object,
// An optional css className to apply.
className: ?string,
// Boolean if this divider should be in... | boldr/boldr-ui | src/Divider/Divider.js | JavaScript | mit | 1,118 |
<?php
/*
* This file is part of the FOSGoogleBundle package.
*
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FOS\GoogleBundle\Templating\Helper;
... | CaoPhiHung/CRM | vendor/bundles/FOS/GoogleBundle/Templating/Helper/GoogleHelper.php | PHP | mit | 950 |
import * as $ from 'jquery';
import { clearStyles } from '../util';
import { Article } from '..';
export const cleanup = () => {
$('#scrollDiv').remove();
}
export function parse(): Article {
let articleBody = clearStyles($('.article-text')[0].cloneNode(true));
let $subtitle = $('.subtitle', articleBody);... | disjukr/jews | src/impl/한겨레.ts | TypeScript | mit | 1,117 |
/*
* Author: 陈志杭 Caspar
* Contact: 279397942@qq.com qq:279397942
* Description: 数据接口契约文件
* 文件由模板生成,请不要直接修改文件,如需修改请创建一个对应的partial文件
*/
using System;
using System.Collections;
using Zh.DAL.Base.Define;
using Zh.DAL.Define.Entities;
using Zh.DAL.Define;
namespace Zh.DAL.Define.Contracts
{
/// <summary>
/// ... | Caspar12/Csharp | src/Zh.DAL.Define/Contracts/AutoCode/IMemberAccountDao.cs | C# | mit | 569 |
package com.aspose.spreadsheeteditor;
import java.util.logging.Logger;
import javax.enterprise.context.ApplicationScoped;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.inject.Named;
import org.primefaces.context.RequestContext;
/**
*
* @author Saqib Masood
*/
@N... | fahadadeel/Aspose.Cells-for-Java | Showcases/Html5_Spreadsheet_Editor_by_Aspose.Cells_for_Java/src/main/java/com/aspose/spreadsheeteditor/MessageService.java | Java | mit | 952 |
import {Task} from './task.model'
import {Injectable} from 'angular2/core'
import {Http, Response, Headers, RequestOptions} from 'angular2/http';
import {Observable} from "rxjs/Observable";
@Injectable()
export class TaskService {
constructor(
private http: Http
) { }
private _tasksUrl = 'api/... | c-bata/kobin-example | front/ts/task.service.ts | TypeScript | mit | 2,019 |
class BusStopController < ApplicationController
protect_from_forgery with: :null_session, if: Proc.new { |c| c.request.format == 'application/json' }
def api
obj = params["data"]
p params["data"]
address = obj.split("','")[0]
bus_num = obj.split("','")[1]
bus_num = bus_num[0..-2]
response = ... | danasweet/somebody-stop-me | app/controllers/bus_stop_controller.rb | Ruby | mit | 585 |
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered.org <http://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... | SpongeHistory/SpongeAPI-History | src/main/java/org/spongepowered/api/item/properties/DoubleProperty.java | Java | mit | 4,824 |
<?php
/**
* Copyright 2016 Sony Corporation
*/
namespace CdnPurge\Limelight;
use CdnPurge\Common\Enum\BasicEnum;
/**
* Limelight specific constants
*/
abstract class ApiConstants extends BasicEnum
{
/** constants root */
const CONST_ROOT = 'limelight';
/** Configuration related constants */
cons... | sony/cdn-purge-control-php | src/Limelight/ApiConstants.php | PHP | mit | 1,130 |
package desktopvirtualization
// 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 ... | Azure/azure-sdk-for-go | services/preview/desktopvirtualization/mgmt/2020-11-02-preview/desktopvirtualization/operations.go | GO | mit | 3,672 |
// File auto generated by STUHashTool
using static STULib.Types.Generic.Common;
namespace STULib.Types.Dump {
[STU(0x35AA91CE)]
public class STU_35AA91CE : STUInstance {
[STUField(0x4227DBDA, EmbeddedInstance = true)]
public STULib.Types.Dump.STU_7C27312D[] m_4227DBDA;
[STUField(0xD7A9... | kerzyte/OWLib | STULib/Types/Dump/STU_35AA91CE.cs | C# | mit | 484 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// This file enables 'go generate' to regenerate this specific SDK
//go:generate pwsh.exe ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -ti... | Azure/azure-sdk-for-go | sdk/resourcemanager/kubernetesconfiguration/armkubernetesconfiguration/build.go | GO | mit | 436 |
var windowHeight = $(window).height();
var menuBarHeight = $('#codeplayer-menubar').height();
$('.codeplayer-code-container').css('height', (windowHeight - menuBarHeight) + 'px');
$('.codeplayer-toogle').click(function() {
$(this).toggleClass('codeplayer-selected');
var codeContainerDiv = '#codeplayer-' + $(thi... | phillipemoreira/web-development | robpercival/4.jQuery/js/codeplayer.js | JavaScript | mit | 1,020 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using TAlex.MathCore.ExpressionEvaluation.Extensions;
using TAlex.MathCore.ExpressionEvaluation.Helpers;
namespace TAlex.MathCore.ExpressionEvaluation.Trees.Metadata
{
public class DefaultFunctionMetada... | T-Alex/MathCore | src/TAlex.MathCore.ExpressionsBase/Trees/Metadata/DefaultFunctionMetadataProvider.cs | C# | mit | 3,158 |
/// <reference types="react" />
import * as React from "react";
import { ITab2Props, TabId } from "./tab2";
export interface ITabTitleProps extends ITab2Props {
/** Handler invoked when this tab is clicked. */
onClick: (id: TabId, event: React.MouseEvent<HTMLElement>) => void;
/** ID of the parent `Tabs` to... | aggiedefenders/aggiedefenders.github.io | node_modules/@blueprintjs/core/dist/components/tabs2/tabTitle.d.ts | TypeScript | mit | 813 |
var randomBytes = require('mz/crypto').randomBytes;
module.exports = function* trace(next) {
this.id = yield randomBytes(24);
var ctx = this;
var req = this.req;
var res = this.res;
// request start
this.trace('time.start');
// request end
req.once('end', this.trace.bind(this, 'time.... | phamann/wedding-holding-page | server/lib/middleware/trace.js | JavaScript | mit | 615 |
(function() {
'use strict';
angular.module('cd.app.registerForm')
.controller('RegisterFormController', RegisterFormController);
/* @ngInject */
function RegisterFormController ($location, StepsService) {
var $ctrl = this;
$ctrl.selectedPlatform = JSON.parse(localStorage.g... | RaphaelGuimaraes/celular-direto | src/pages/register-form/register-form.controller.js | JavaScript | mit | 1,265 |
class String
# Changes an underscored string into a class reference.
def _as_class
# classify expects self to be plural
self.classify.constantize
end
# For compatibility with the Symbol extensions.
alias :_singularize :singularize
alias :_pluralize :pluralize
alias :_classify :classify
end
cla... | charlotte-ruby/calagator_techclt | vendor/plugins/has_many_polymorphs/lib/has_many_polymorphs/support_methods.rb | Ruby | mit | 1,954 |
from pokemongo_bot.human_behaviour import sleep
from pokemongo_bot.base_task import BaseTask
class IncubateEggs(BaseTask):
SUPPORTED_TASK_API_VERSION = 1
last_km_walked = 0
def initialize(self):
self.ready_incubators = []
self.used_incubators = []
self.eggs = []
self.km_w... | Compjeff/PokemonGo-Bot | pokemongo_bot/cell_workers/incubate_eggs.py | Python | mit | 8,649 |
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Verify data doesn't have basic mistakes, like empty text fields or empty label
candidates.
## Examples
```shell
par... | facebookresearch/ParlAI | parlai/scripts/verify_data.py | Python | mit | 5,106 |
//******************************************************************************************************
// ChannelFrameCollectionBase.cs - Gbtc
//
// Copyright © 2012, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreemen... | rmc00/gsf | Source/Libraries/GSF.PhasorProtocols/ChannelFrameCollectionBase.cs | C# | mit | 4,185 |
package gonfler
import (
"archive/tar"
"os"
)
type TarArchive struct {
handle *tar.Reader
file *os.File
}
func (archive TarArchive) Close() error {
return archive.file.Close()
}
func (archive TarArchive) Volumes() VolumeIterator {
var next func() VolumeIterator
next = func() VolumeIterator {
header, err ... | AlbanSeurat/gonfler | untar.go | GO | mit | 705 |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp>
#include "wallet.h"
#include "walletdb.h"
#include... | pangubi/pangubi | src/rpcwallet.cpp | C++ | mit | 53,760 |
import { Actor } from './game';
import { Point, Size } from './foundation';
export class Rectangle implements Actor {
public isAlive: boolean;
protected rectCenter: Point;
protected rectSize: Size;
protected horizontalDirection: number;
protected verticalDirection: number;
constructor(center:... | garolard/graphic-toys | src/shapes.ts | TypeScript | mit | 2,760 |
#!/usr/bin/php
<?php
require "../api/Init.php";
require "../api/AbzuDB.php";
$AbzuDB = new AbzuDB($db);
echo $AbzuDB->get_gauge_to_date("7813517", "month", "2016-03") . "\n";
// $AbzuDB->get_meter_data("7813517", "week");
// $AbzuDB->insert_meter_data("042014", "01245", "10/Oct/2000:13:55:36 -0700");
?>
| jacobm001/independence_water | tools/test_AbzuDB.php | PHP | mit | 312 |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Threading.Tasks;
namespace Hstar.Lara.Cache.Tests
{
[TestClass]
public class SimpleMemoryCacheTest
{
private static CacheItem<int> intCache;
private static int cacheValue = 1;
[ClassInitialize]
public static v... | hstarorg/Hstar.Core | test/Lara.Cache.Tests/SimpleMemoryCacheTest.cs | C# | mit | 1,099 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.desk.notifications import delete_notification_count_for
from frappe.core.doctype.user.user import STANDARD_USERS
from frappe.utils.u... | vCentre/vFRP-6233 | frappe/desk/page/messages/messages.py | Python | mit | 3,886 |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... | garethj-msft/msgraph-sdk-dotnet | src/Microsoft.Graph/Requests/Generated/DeviceRegisteredUsersCollectionReferencesRequest.cs | C# | mit | 2,890 |
import {CORE_DIRECTIVES} from 'angular2/common';
import {Component} from 'angular2/core';
import {OnInit} from 'angular2/core';
import {NotificationService} from '../../service/notification-service';
import {Alert} from 'ng2-bootstrap/ng2-bootstrap';
@Component({
selector: 'notification-center',
template: re... | z424brave/DKClient | src/app/common/directives/notification-center/notification-center.ts | TypeScript | mit | 967 |
'use strict';
function fixImports() {
let editor = atom.workspace.getActiveTextEditor()
if (editor) {
// fixImports(editor)
// editor.selectLinesContainingCursors()
}
}
module.exports = {
fixImports,
};
| madhusudhand/atom-angular2 | lib/command-handlers.js | JavaScript | mit | 231 |
using System.Threading.Tasks;
namespace _2.Thread_Save_Singleton
{
class Program
{
static void Main(string[] args)
{
Parallel.For(0, 6, x => LazyThreadSafeLogger.Instance.SaveToLog(x));
LazyThreadSafeLogger.Instance.PrintLog();
}
}
}
| VVoev/Telerik-Academy | 14.Design-Patterns/02. Design-Patterns/DesignPatternsDemo/2.Thread-Save-Singleton/Program.cs | C# | mit | 298 |
require 'json'
autoload :EbayItem, "ebay_ruby/ebay_item"
class EbayFindItem
def initialize(json)
@json = json
end
attr_reader :json
def parse
JSON.parse(json).values.first
end
def all_items
total_items = []
begin
parse.first["searchResult"].first["item"].each do |item|
eba... | rajcybage/ebay_ruby | lib/ebay_ruby/ebay_find_item.rb | Ruby | mit | 503 |
var $iterators = require('./es6.array.iterator')
, redefine = require('./_redefine')
, global = require('./_global')
, hide = require('./_hide')
, Iterators = require('./_iterators')
, wks = require('./_wks')
, CORRECT_SYMBOL = require('./_correct-symbol')
, ITE... | eteeselink/core-js | modules/web.dom.iterable.js | JavaScript | mit | 1,075 |
/* tslint:disable */
/* eslint-disable */
import { ConcreteRequest } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type FairHeader_Test_QueryVariables = {};
export type FairHeader_Test_QueryResponse = {
readonly fair: {
readonly " $fragmentRefs": FragmentRefs<"FairHeader_fair">... | artsy/force-public | src/v2/__generated__/FairHeader_Test_Query.graphql.ts | TypeScript | mit | 5,927 |
// Copyright (c) 2013 ActiveState Software Inc. All rights reserved.
package watch
import (
"log"
"os"
"sync"
"syscall"
"github.com/hpcloud/tail/util"
"gopkg.in/fsnotify.v1"
)
type InotifyTracker struct {
mux sync.Mutex
watcher *fsnotify.Watcher
chans map[string]chan fsnotify.Event
done map[stri... | millken/kaman | vendor/github.com/hpcloud/tail/watch/inotify_tracker.go | GO | mit | 3,931 |
/**
* Copyright (c) 2014 Famous Industries, Inc.
*
* 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, m... | hemantasapkota/pdfspeaker | src/app/js/main.js | JavaScript | mit | 4,131 |
import React, { Component, PropTypes } from 'react';
import Select from 'react-select';
import { omit } from 'lodash';
import classNames from 'classnames';
import styles from './styles.scss';
import chevronIcon from '../../../assets/images/icons/chevron-down.svg';
export const THEMES = { OLD: 'old', INTERNAL: 'interna... | singaporesamara/SOAS-DASHBOARD | app/components/UIKit/SelectField/index.js | JavaScript | mit | 2,115 |
<?php
declare(strict_types=1);
namespace Thunder\Currenz\Tests;
use PHPUnit\Framework\TestCase;
use Thunder\Currenz\Utility\Utility;
final class UtilityTest extends TestCase
{
public function testXmlToArray()
{
$this->assertCount(179, Utility::xmlToArray(file_get_contents(__DIR__.'/../data/list_one.xm... | thunderer/Currenz | tests/UtilityTest.php | PHP | mit | 335 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
import logging
from django.core.management.base import BaseCommand
from optparse import make_option
from py3compat import PY2
from... | yeleman/snisi | snisi_maint/management/commands/entities_to_cascades.py | Python | mit | 2,414 |
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
#
# sl-ls.py: get information utility
# Created by NAKAJIMA Takaaki
# Last modified: Apr 16, 2014.
#
# Require: Python v3
#
# See also https://softlayer-api-python-client.readthedocs.org
#
# You should set env variables
# SL_USER... | ryumei/softlayer-utility | sl-ls.py | Python | mit | 3,178 |
require "aop"
require "contracts"
class BankAccount < Struct.new(:number, :amount)
include Contracts
Contract BankAccount, Num => Num
def transfer(other, amount)
self.amount -= amount
other.amount += amount
end
end
@actual = nil
@expected = "Transfered 100 from 12345 to 98765"
Aop["BankAccount#trans... | waterlink/aop | integration/contracts.rb | Ruby | mit | 595 |
from .View import View
class MethuselahView(View):
type = "Methuselah"
trans = {
"stableAfter": {"pick": "l"}
}
| mir3z/life.js | library-scrapper/views/Methuselah.py | Python | mit | 134 |
module Downsampler
module TimeExt
def floor(seconds = 60)
Time.at((self.to_f / seconds).floor * seconds)
end
end
end | omockler/downsampler | lib/downsampler/time_extensions.rb | Ruby | mit | 134 |
<?php
namespace Virgin\ChannelGuideBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Channel
*
* @ORM\Table(name="channel")
* @ORM\Entity(repositoryClass="Virgin\ChannelGuideBundle\Entity\ChannelRepository")
*/
class Channel implements ChannelInterface
{
/**
* @var integer
*
* @ORM\Column... | guided1/virgin-symfony-test | src/Virgin/ChannelGuideBundle/Entity/Channel.php | PHP | mit | 1,127 |
# coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import deserialize
from twilio.base import values
from twilio.base.instance_resource import InstanceResource
from twilio.base.list_resource import ListResource
from twilio.base.page i... | angadpc/Alexa-Project- | twilio/rest/api/v2010/account/message/feedback.py | Python | mit | 5,676 |
require 'uri'
class SuperSearch
def self.url
"http://search.alaska.test/"
end
def self.query_param_for(item_name)
# item_name.gsub(/\s+/, '+')
URI.encode item_name
end
def self.url_for(item_name)
"#{SuperSearch.url}index.php?q=#{SuperSearch.query_param_for(item_name)}"
end
def self.url_for_engine(engine... | allen-garvey/booklist-rails | lib/super_search.rb | Ruby | mit | 424 |
<?php
//common environment attributes including search paths. not specific to Learnosity
include_once '../../env_config.php';
//site scaffolding
include_once 'includes/header.php';
//common Learnosity config elements including API version control vars
include_once '../../lrn_config.php';
use LearnositySdk\Request\I... | Learnosity/learnosity-demos | www/usecases/customquestions/custom.php | PHP | mit | 4,981 |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.ProjectOxford.Video.Contract
{
/// <summary>
/// An individual event during FaceDetection action, returned in the <see cref="FaceDetectionR... | Microsoft/ProjectOxford-ClientSDK | Video/Windows/ClientLibrary/Contract/FaceEvent.cs | C# | mit | 1,241 |
package openperipheral.adapter;
public interface IMethodCall {
public IMethodCall setEnv(String name, Object value);
public Object[] call(Object... args) throws Exception;
}
| OpenMods/OpenPeripheral | src/main/java/openperipheral/adapter/IMethodCall.java | Java | mit | 180 |
#pragma once
#include <glkernel/noise.h>
#include <glkernel/glm_compatability.h>
namespace
{
// From // JAVA REFERENCE IMPLEMENTATION OF IMPROVED NOISE - COPYRIGHT 2002 KEN PERLIN. (http://mrl.nyu.edu/~perlin/noise/)
// and (Improving Noise - Perlin - 2002) - http://mrl.nyu.edu/~perlin/paper445.pdf
const std::v... | cginternals/glkernel | source/glkernel/include/glkernel/noise.hpp | C++ | mit | 15,839 |
using System;
namespace MicrosoftGraph.Model
{
/// <summary>
/// Room
/// </summary>
[Serializable]
public class Room
{
/// <summary>
/// Room name
/// </summary>
public string Name { get; set; }
/// <summary>
/// Room email
/// </summar... | gled4er/doc-translator-api | MicrosoftGraph/Model/Room.cs | C# | mit | 599 |