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 |
|---|---|---|---|---|---|
require 'ostruct'
module SimCtl
class Command
module StatusBar
# Clear all status bar overrides
#
# @param device [SimCtl::Device] the device
# @return [void]
def status_bar_clear(device)
unless Xcode::Version.gte? '11.4'
raise UnsupportedCommandError, 'Needs at le... | plu/simctl | lib/simctl/command/status_bar.rb | Ruby | mit | 1,529 |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | jamesu/libDTShape | libdts/src/core/util/triListOpt.cpp | C++ | mit | 13,083 |
'use strict';
const path = require('path')
const webpack = require('webpack')
const pkg = require('./package.json')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const WebpackNotifierPlugin = require('webpack-notifier')
var paths = {
dist: path.join(__dirname, 'dist'),
src: path.join(__dirname, 'sr... | shprink/react-redux-webpack-todo | webpack.config.js | JavaScript | mit | 3,162 |
var EcommerceProductsEdit = function () {
var handleImages = function() {
// see http://www.plupload.com/
var uploader = new plupload.Uploader({
runtimes : 'html5,html4',
browse_button : document.getElementById('tab_images_uploader_pickfiles'), // you can pass in i... | webstruction/eCommerce | assets/admin/pages/scripts/products-edit.js | JavaScript | mit | 24,442 |
var dotBeautify = require('../index.js');
var fs = require('fs');
var chai = require('chai');
var assert = chai.assert;
var expect = chai.expect;
var setup = 'function start (resp)\
{\
resp.writeHead(200, {"Content-Type": "text/html"\
});\
fs.readFile(filename, "utf8", function(err, data) {\
if (e... | bearjaws/dotbeautify | test/index.spec.js | JavaScript | mit | 1,510 |
/*
* 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")... | Stephen-Cameron-Data-Services/isis-agri | dom/src/main/java/au/com/scds/agric/dom/simple/SimpleObjectRepository.java | Java | mit | 2,086 |
function Block() {
this.isAttacked = false;
this.hasShip = false;
this.shipType = "NONE";
this.attackable = true;
this.shipSize = 0;
this.direction = "no"
}
function Ship(x,y,direction,size){
this.x = x;
this.y = y;
this.direction = direction;
this.size = size;
this.win = fa... | MAGKILLER/magkiller.github.io | Demo/battleship/mapObject.js | JavaScript | mit | 14,779 |
/*
* FILE: S3Operator
* Copyright (c) 2015 - 2019 GeoSpark Development Team
*
* 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
*
* Un... | Sarwat/GeoSpark | viz/src/main/java/org/datasyslab/geosparkviz/utils/S3Operator.java | Java | mit | 3,664 |
import Ember from 'ember';
export default Ember.Component.extend({
colorMap: {
running: 'green',
waiting: 'orange',
terminated: 'red'
},
getStatusByName(name) {
let retval = null;
Ember.$.each(this.get('containerStatuses'), (i, containerStatus) => {
if (name === containerStatus.name) {... | holandes22/kube-admin | app/components/pod-containers/component.js | JavaScript | mit | 987 |
define(function() {
var TramoView = Backbone.View.extend({
tagName: 'tr',
template: _.template($('#tramo-tmpl').html()),
events: {},
initialize: function() {},
render: function(index) {
$(this.el).html(this.template(this.model.toJSON()))
.add... | tapichu/highway-maps | project/media/js/views/TramoView.js | JavaScript | mit | 436 |
import * as Q from 'q'
export {Q} | cabralRodrigo/Mineswepper | src/ts/libs/lib.ts | TypeScript | mit | 34 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DefaultValues
{
class Program
{
static void Main(string[] args)
{
var dict = new Dictionary<string, string>();
var currValue = Console.ReadLine... | stefanliydov/SoftUniLab | LINQ/DefaultValues/Program.cs | C# | mit | 1,113 |
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("Qu... | mimiem/CSharp-Part1 | ConsoleInputOutput/QuadraticEquation/Properties/AssemblyInfo.cs | C# | mit | 1,410 |
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("Ch... | Jarrey/ChameWeather | src/ChameWeather.Service/Properties/AssemblyInfo.cs | C# | mit | 1,060 |
module.exports = {
moduleFileExtensions: ['js', 'jsx', 'json', 'vue', 'ts', 'tsx'],
transform: {
'^.+\\.vue$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
'^.+\\.tsx?$': 'ts-jest'
},
transformIgnorePatterns: ['/node_modules/'],
moduleNameMapper: {
'^@/(.... | vue-styleguidist/vue-styleguidist | examples/vuecli3-class-pug-ts/jest.config.js | JavaScript | mit | 655 |
package pttravis;
import java.util.List;
public class ScoreElementalDef implements ScoreItems {
public ScoreElementalDef() {
}
@Override
public String getName() {
return "Elemental Def";
}
@Override
public float score(List<Item> items) {
if( items == null ) return 0;
float score = 0;
for( Item ... | pttravis/ds-armor | src/pttravis/ScoreElementalDef.java | Java | mit | 726 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-23 15:47
from __future__ import unicode_literals
from django.db import migrations, models
import oktansite.models
class Migration(migrations.Migration):
dependencies = [
('oktansite', '0004_news_attachment'),
]
operations = [
... | aliakbr/oktan | oktansite/migrations/0005_news_image.py | Python | mit | 526 |
/******************************************************************************
** Filename: cutoffs.c
** Purpose: Routines to manipulate an array of class cutoffs.
** Author: Dan Johnson
** History: Wed Feb 20 09:28:51 1991, DSJ, Created.
**
** (c) Copyright Hewlett-Packard Company, 1988.
** Lic... | koobonil/Boss2D | Boss2D/addon/_old/tesseract-3.04.01_for_boss/classify/cutoffs.cpp | C++ | mit | 3,102 |
require 'basalt/packages/repo'
require 'basalt/packages/package_assert'
module Basalt
class Packages
# Allows the searching of multiple repos as if it was one repo
class MultiRepo
include PackageAssert
# @return [Array<Repo>]
attr_accessor :repos
def initialize
@repos = []
... | polyfox/moon-basalt | lib/basalt/packages/multi_repo.rb | Ruby | mit | 1,070 |
# frozen_string_literal: true
module Citywrapper
class Configuration
attr_accessor :api_key
end
end
| JoeSouthan/citywrapper | lib/citywrapper/configuration.rb | Ruby | mit | 109 |
import React from 'react';
import PropTypes from 'prop-types';
import './index.css';
const TemplateWrapper = ({children}) => <div>{children()}</div>;
TemplateWrapper.propTypes = {
children: PropTypes.func,
};
export default TemplateWrapper;
| jwngr/jwn.gr | src/layouts/index.js | JavaScript | mit | 247 |
require "spec_helper"
require "active_support/core_ext/string/strip"
describe FeedSearcher do
describe ".search" do
context "when there are link elements of feeds in the resource" do
before do
stub_request(:get, "http://example.com/").to_return(
:body => <<-EOS.strip_heredoc
<... | fastladder/feed_searcher | spec/feed_searcher_spec.rb | Ruby | mit | 6,780 |
<?php
namespace Brainteaser\Domain\Exercise;
use Brainteaser\Domain\Training\Training;
use DateTime;
interface Exercise
{
/**
* @return string
*/
public function getId() : string;
/**
* @return Training
*/
public function getTraining() : Training;
/**
* @return SequenceN... | floegel/brainteaser-api | src/Brainteaser/Domain/Exercise/Exercise.php | PHP | mit | 895 |
//
// TomKitten48.xaml.cpp
// Implementation of the TomKitten48 class
//
#include "pch.h"
#include "TomKitten48.xaml.h"
using namespace PrintableTomKitten;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::UI::Xaml;
... | nnaabbcc/exercise | windows/pw6e.official/CPlusPlus/Chapter17/PrintableTomKitten/PrintableTomKitten/TomKitten48.xaml.cpp | C++ | mit | 765 |
'use strict';
describe('Purchases E2E Tests:', function () {
describe('Test purchases page', function () {
it('Should report missing credentials', function () {
browser.get('http://localhost:3000/purchases');
expect(element.all(by.repeater('purchase in purchases')).count()).toEqual(0);
});
});
... | bakmar/piwi | modules/purchases/tests/e2e/purchases.e2e.tests.js | JavaScript | mit | 324 |
(function(){
function render (context, points) {
console.log ('render called');
var angle = 0,
center = new Point3D (400,400,400);
return function () {
context.clearRect(0,0,800,600);
if (points.length < 1000) {
points.push (randomPoint... | davepkennedy/js-canvas | 3d-starfield/terrain.js | JavaScript | mit | 2,403 |
version https://git-lfs.github.com/spec/v1
oid sha256:59e6f2fa6c70c504d839d897c45f9a84348faf82342a31fb5818b1deb13861fa
size 294301
| yogeshsaroya/new-cdnjs | ajax/libs/handsontable/0.14.1/handsontable.full.min.js | JavaScript | mit | 131 |
using System;
using System.Collections.Generic;
using Orleans.Streams;
namespace Orleans.Providers.Streams.Common
{
/// <summary>
/// CachedMessageBlock is a block of tightly packed structures containing tracking data for cached messages. This data is
/// tightly packed to reduced GC pressure. The t... | gigya/orleans | src/OrleansProviders/Streams/Common/PooledCache/CachedMessageBlock.cs | C# | mit | 5,772 |
<?php
/**
* Campaign Monitor Magento Extension
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you are unable to obtain it through the world-wide-web, please... | campaignmonitor/magento-extension | app/code/community/Campaignmonitor/Createsend/Model/Config/ExampleSegments.php | PHP | mit | 8,610 |
module Jobbr
class ApplicationController < ActionController::Base
before_action :set_locale
protected
def set_locale
I18n.locale = :en
end
end
end
| cblavier/jobbr | app/controllers/jobbr/application_controller.rb | Ruby | mit | 177 |
// Copyright (c) 2013 Andrew Downing
// 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, publish, distribut... | ad510/plausible-deniability | Assets/Scripts/ProtoVector3.cs | C# | mit | 1,821 |
import { Component } from '@angular/core';
@Component({
template: `
<h2>Page not found</h2>
`
})
export class PageNotFoundComponent {}
| donrebel/akvilor | client_app/app/structure/page-not-found/page-not-found.component.ts | TypeScript | mit | 152 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from Models.FeatureProcessing import *
from keras.models import Sequential
from keras.layers import Activation, Dense, LSTM
from keras.optimizers import Adam, SGD
import numpy as np
import abc
from ClassificationModule import ClassificationModule
class descriptionreponame... | Ichaelus/Github-Classifier | Application/Models/ClassificationModules/descriptionreponamelstm.py | Python | mit | 3,641 |
exports.seed = function(knex, Promise) {
// Deletes ALL existing entries
return knex('coffee').del()
.then(function () {
// Inserts seed entries
return knex('coffee').insert([
{
id: 1,
name: 'Three Africas',
producer_id: 1,
flavor_profile: 'Fruity, ra... | Jitters-API/jitters | db/seeds/development/04_coffee.js | JavaScript | mit | 1,738 |
__author__ = 'sekely'
'''
we are using variables almost everywhere in the code.
variables are used to store results, calculations and many more.
this of it as the famous "x" from high school
x = 5, right?
the only thing is, that in Python "x" can store anything
'''
# try this code:
x = 5
y = x + 3
print(y)
# what... | idosekely/python-lessons | lesson_1/variables.py | Python | mit | 403 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SistemaMundoAnimal.Forms {
public partial class FormPrincipal : Form {
public For... | diegomrod95/Descontinuado_MundoAnimal | SistemaMundoAnimal/Forms/FormPrincipal.cs | C# | mit | 2,415 |
class IngredientsController < ApplicationController
def index
@terms = params[:search] ? params[:search][:terms] : nil
@ingredients = Ingredient.find_ingredients(@terms).page(params[:page])
end
def update
fetch_ingredient
if @ingredient.update(ingredient_params)
flash[:success] = "Ingredie... | tankwanghow/least_cost_feed | app/controllers/ingredients_controller.rb | Ruby | mit | 1,398 |
<?php
/* @WebProfiler/Icon/time.svg */
class __TwigTemplate_327588cc42a9f6e80c428485ea2a1d4ea5de9af6826ac009602f5b121f9a4949 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);... | UchiKir/SymfonyPadelApp | var/cache/dev/twig/a6/a6f60ba4d81ded0d5b110bd2302970761310d2ce83bcbaac8bdb5727f0e9ee23.php | PHP | mit | 2,350 |
using UnityEditor;
using UnityEngine;
using System.Collections.Generic;
[CanEditMultipleObjects]
[CustomEditor(typeof(tk2dTiledSprite))]
class tk2dTiledSpriteEditor : tk2dSpriteEditor
{
tk2dTiledSprite[] targetTiledSprites = new tk2dTiledSprite[0];
new void OnEnable() {
base.OnEnable();
targetTiledSprites = Get... | Conflei/IndiesVSPewDiePie | Game/Assets/TK2DROOT/tk2d/Editor/Sprites/tk2dTiledSpriteEditor.cs | C# | mit | 5,235 |
'use strict';
var express = require('express'),
router = express.Router(),
Post = require('../models/post');
module.exports = function (app) {
app.use('/', router);
};
router.get('/', function (req, res, next) {
var posts = [new Post({
"title": "dummy posty"
}), new Post()];
res.render('index', {
... | bman4789/brianm.me | app/controllers/home.js | JavaScript | mit | 406 |
/*
* Copyright (c) 2008-2018 SLIBIO <https://github.com/SLIBIO>
*
* 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
* ... | SLIBIO/SLib | src/slib/ui/ui_event_gtk.cpp | C++ | mit | 9,334 |
package zornco.reploidcraft.network;
import net.minecraft.entity.Entity;
import net.minecraft.server.MinecraftServer;
import net.minecraft.world.WorldServer;
import zornco.reploidcraft.ReploidCraft;
import zornco.reploidcraft.entities.EntityRideArmor;
import zornco.reploidcraft.utils.RiderState;
import io.netty.buffer... | ZornTaov/ReploidCraft | src/main/java/zornco/reploidcraft/network/MessageRideArmor.java | Java | mit | 2,840 |
"use strict";
const express = require('express');
const router = express.Router();
const quoteCtrl = require('../controllers/quote.js');
//returns an array of stocks that potentially match the query string
//no result will return an empty string
router.get('/quote/:quote', quoteCtrl.quote);
module.exports = router; | AJPcodes/stocks | routes/quote.js | JavaScript | mit | 319 |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | portchris/NaturalRemedyCompany | src/app/code/core/Mage/Reports/sql/reports_setup/mysql4-upgrade-0.7.3-0.7.4.php | PHP | mit | 2,362 |
var Blasticator = function() {
var init = function() {
registerSettings();
};
var showDialogue = function() {
new ModalDialogue({
message:'This will destroy EVERYTHING. FOREVER.',
buttons:[{
label:'Keep my data',
role:'secondary',
autoClose:true
},{
lab... | elliottmina/chronos | docroot/modules/Blasticator/Blasticator.js | JavaScript | mit | 742 |
# img
# trigger = attributes[12]
# http://ws-tcg.com/en/cardlist
# edit
import os
import requests
import sqlite3
def get_card(browser):
attributes = browser.find_elements_by_xpath('//table[@class="status"]/tbody/tr/td')
image = attributes[0].find_element_by_xpath('./img').get_attribute('src')
if attri... | electronicdaisy/WeissSchwarzTCGDatabase | card.py | Python | mit | 3,176 |
using JEFF.Dto.Smartables.Request;
using JEFF.Dto.Smartables.Response;
using Newtonsoft.Json;
using System;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Threading.Tasks;
namespace JEFF.GreenHouseController
{
/// <summary>
/// SmartablesBoard
/// </summary>
public class Sma... | strillo/JEFF | JEFF.GreenHouseController/SmartablesBoard.cs | C# | mit | 4,225 |
//============================================================================
// Name : GraphGenerator.cpp
// Author : Sindre S. Fjermestad
// Version :
// Copyright : My copyright notice
// Description : Generator for graphs of a certain type
//=======================================================... | alexisshaw/COMP6741_ass2 | graph_gen.cpp | C++ | mit | 10,694 |
(function ()
{
window.AgidoMockups = window.AgidoMockups || {};
AgidoMockups.icons = AgidoMockups.icons || {};
AgidoMockups.icons.underline = new Kinetic.Group({name: "underlineIcon", width: 18, height: 20});
AgidoMockups.icons.underline.add(new Kinetic.Text({text: "U", fill: '#000', fontSize: 20, fontS... | it-crowd/agido-mockups | src/icons/underline.icon.js | JavaScript | mit | 489 |
(function() {
var myPromise = new Promise((resolve, reject) => {
navigator.geolocation.getCurrentPosition((pos) => {
resolve(pos);
})
});
function parsePosition(pos) {
return {
lat: pos.coords.latitude,
lon: pos.coords.longitude
}
}
... | iliyaST/TelerikAcademy | JavaScript-Applications/01. Promises and asynchronous programming/homework/01. GeoLocations/GeoLocation.js | JavaScript | mit | 626 |
//sys_init_policy.hpp chromatic universe 2017-2020 william k. johnson
#include <memory>
#include <string>
//contrib
#include "ace/Log_Msg.h"
#include "ace/Trace.h"
//cci
#include <cci_time_utils.h>
#include <cci_daemonize.h>
using namespace cpp_real_stream;
namespace cci_policy
{
//
//system in... | chromatic-universe/cci-daemon | cci_daemon/src/meta-core/policies/sys_init_policy.hpp | C++ | mit | 3,642 |
package iso20022
// Set of characteristics shared by all individual transactions included in the message.
type GroupHeader41 struct {
// Point to point reference, as assigned by the instructing party, and sent to the next party in the chain to unambiguously identify the message.
// Usage: The instructing party has ... | fgrid/iso20022 | GroupHeader41.go | GO | mit | 4,972 |
import React from "react";
import { WorldGeneratorObject } from "../../../../services";
import { Row, Col } from "../../../layout";
import { Card, DatumGroup, PlanetDiagram } from "../../../ui";
export const WorldOverview = ({ world }: WorldOverviewProps) => {
return (
world && (
<Card
title={<p>Wo... | claytuna/traveller | app/src/components/character-creation/world-selector/world-overview/WorldOverview.tsx | TypeScript | mit | 11,469 |
module.exports = function(grunt) {
grunt.initConfig({
// package.json is shared by all examples
pkg: grunt.file.readJSON('../../package.json'),
// Uglify the file at `src/foo.js` and output the result to `dist/foo.min.js`
//
// It's likely that this task is preceded by a `grunt-contrib-concat` t... | searaig/grunt-cookbook | examples/06.grunt-contrib-uglify/Gruntfile.js | JavaScript | mit | 677 |
#
# NineMSN CatchUp TV Video API Library
#
# This code is forked from Network Ten CatchUp TV Video API Library
# Copyright (c) 2013 Adam Malcontenti-Wilson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), ... | predakanga/plugin.video.catchuptv.au.ninemsn | resources/lib/ninemsnvideo/objects.py | Python | mit | 3,248 |
package info.bati11.otameshi.dbflute.allcommon;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.dbflute.Entity;
import org.dbflute.hook.CommonColumnAutoSetupper;
/**
* The basic implementation of the auto set-upper of common column.
* @author DBFlute(AutoGenerator)
*/
public class ImplementedC... | bati11/otameshi-webapp | spring4+dbflute/src/main/java/info/bati11/otameshi/dbflute/allcommon/ImplementedCommonColumnAutoSetupper.java | Java | mit | 1,934 |
// Copyright (c) 2011-2013 The Biton developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "transactionview.h"
#include "transactionfilterproxy.h"
#include "transactionrecord.h"
#include "walletmodel.h"
#inclu... | bitoncoin/biton | src/qt/transactionview.cpp | C++ | mit | 15,503 |
package com.winterwell.depot;
import java.util.Map;
import org.junit.Test;
import com.winterwell.depot.merge.Merger;
import com.winterwell.es.client.ESConfig;
import com.winterwell.es.client.ESHttpClient;
import com.winterwell.gson.FlexiGson;
import com.winterwell.utils.Dep;
import com.winterwell.utils.Utils;
import... | sodash/open-code | winterwell.depot/test/com/winterwell/depot/ESStoreTest.java | Java | mit | 1,093 |
/**
* @providesModule Case
*/
const DOM = require('DOM');
var Case = (function () {
/**
* A Case is a test against an element.
*/
function Case (attributes) {
return new Case.fn.init(attributes);
}
// Prototype object of the Case.
Case.fn = Case.prototype = {
constructor: Case,
init: fun... | quailjs/quail-core | src/core/Case.js | JavaScript | mit | 11,829 |
require 'remit/common'
module Remit
module GetTokens
class Request < Remit::Request
action :GetTokens
parameter :caller_reference
parameter :token_friendly_name
parameter :token_status
end
class Response < Remit::Response
class GetTokensResult < Remit::BaseResponse
... | tylerhunt/remit | lib/remit/operations/get_tokens.rb | Ruby | mit | 616 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import * as ts from 'typescript';
import {TypeScriptReflectionHost} from '../../metadata';
import {AbsoluteReferenc... | ValtoFrameworks/Angular-2 | packages/compiler-cli/src/ngtsc/annotations/test/selector_scope_spec.ts | TypeScript | mit | 5,668 |
# frozen_string_literal: true
module OrgAdmin
class SectionsController < ApplicationController
include Versionable
respond_to :html
after_action :verify_authorized
# GET /org_admin/templates/[:template_id]/phases/[:phase_id]/sections
def index
authorize Section.new
phase = Phase.i... | CDLUC3/dmptool | app/controllers/org_admin/sections_controller.rb | Ruby | mit | 5,303 |
package it.gvnn.slackcast.search;
import java.util.ArrayList;
public class PodcastDataResponse extends ArrayList<Podcast> {
}
| gvnn/slackcast | app/src/main/java/it/gvnn/slackcast/search/PodcastDataResponse.java | Java | mit | 129 |
package com.iyzipay.model.subscription.enumtype;
public enum SubscriptionUpgradePeriod {
NOW(1),
NEXT_PERIOD(2);
private final Integer value;
SubscriptionUpgradePeriod(Integer value) {
this.value = value;
}
public Integer getValue() {
return value;
}
}
| iyzico/iyzipay-java | src/main/java/com/iyzipay/model/subscription/enumtype/SubscriptionUpgradePeriod.java | Java | mit | 302 |
package bolianeducation.bolianchild.view;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.... | iamlisa0526/bolianeducation-child | app/src/main/java/bolianeducation/bolianchild/view/ReplyActivity.java | Java | mit | 11,068 |
/*!
* Vitality v2.0.0 (http://themes.startbootstrap.com/vitality-v2.0.0)
* Copyright 2013-2017 Start Bootstrap
* Purchase a license to use this theme at (https://wrapbootstrap.com)
*/
/*!
* Vitality v2.0.0 (http://themes.startbootstrap.com/vitality-v2.0.0)
* Copyright 2013-2017 Start Bootstrap
* Purchase a licen... | EricRibeiro/DonactionTIS | donaction-enterprise/scripts/source/agency/vitality.js | JavaScript | mit | 4,078 |
import pagination from '@admin/store/modules/paginationStore'
import {HTTP} from '@shared/config/api'
const state = {
clientList: []
}
const getters = {
getClientList: state => state.clientList
}
const mutations = {
set(state, {type, value}) {
state[type] = value
},
delete(state, {id}) {
... | mt89vein/mvc5-vuejs | Vue/src/admin/store/modules/clientListStore.js | JavaScript | mit | 2,609 |
import "cutaway"
import { assert, report } from "tapeless"
import createPlayer from "./main.js"
const { ok, notOk, equal } = assert
try {
createPlayer()
} catch (e) {
ok
.describe("will throw sans video input")
.test(e, e.message)
}
const source = document.createElement("video")
source.src = ""
const {... | thewhodidthis/playah | test.js | JavaScript | mit | 591 |
class dximagetransform_microsoft_maskfilter {
constructor() {
// Variant Color () {get} {set}
this.Color = undefined;
}
}
module.exports = dximagetransform_microsoft_maskfilter;
| mrpapercut/wscript | testfiles/COMobjects/JSclasses/DXImageTransform.Microsoft.MaskFilter.js | JavaScript | mit | 206 |
package com.devicehive.client.impl.rest.providers;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.devicehive.client.impl.Constants;
import com.devicehive.client.impl.json.GsonFactory;
import com.devicehive.client.impl.... | lekster/devicehive-java | client/src/main/java/com/devicehive/client/impl/rest/providers/JsonRawProvider.java | Java | mit | 3,161 |
<?php
namespace Craft;
class FormBuilder_FieldsetService extends BaseApplicationComponent
{
// Properties
// =========================================================================
// Public Methods
// =========================================================================
/**
* Save f... | owldesign/Form-Builder | formbuilder/services/FormBuilder_FieldsetService.php | PHP | mit | 3,050 |
module Arpa
module Repositories
module Resources
class Finder
include Arpa::Repositories::Base
def find(id)
record = repository_class.find(id)
mapper_instance.map_to_entity(record)
end
def all
repository_class.all.collect do |record|
... | rachidcalazans/arpa | lib/arpa/repositories/resources/finder.rb | Ruby | mit | 756 |
package uk.co.edgeorgedev.lumber;
/**
* Root of Logging interface
* @author edgeorge
* @version 1.0
* @since 2014-06-23
*/
public interface Stump {
/** Log a verbose message */
void v(Class<?> clazz, String message);
void v(Class<?> clazz, Throwable th);
//v,d,i,w,e,wtf
} | ed-george/Lumber | src/uk/co/edgeorgedev/lumber/Stump.java | Java | mit | 294 |
<?php
namespace Seahinet\Article\Listeners;
use Seahinet\Article\Exception\OutOfStock;
use Seahinet\Article\Model\Warehouse;
use Seahinet\Lib\Listeners\ListenerInterface;
class Inventory implements ListenerInterface
{
public function check($event)
{
$warehouse = new Warehouse;
... | peachyang/py_website | app/code/Article/Listeners/Inventory.php | PHP | mit | 2,290 |
<?php
namespace Noylecorp\DoctrineExtrasBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class NoylecorpDoctrineExtrasBundle extends Bundle
{
}
| noylecorp/doctrine-extras-bundle | NoylecorpDoctrineExtrasBundle.php | PHP | mit | 154 |
<?php
declare(strict_types=1);
namespace StructType;
use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for GetRemindersType StructType
* @package Ews
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class EwsGetRemindersType extends EwsBaseR... | WsdlToPhp/PackageEws365 | src/StructType/EwsGetRemindersType.php | PHP | mit | 5,223 |
package br.eti.mertz.wkhtmltopdf.wrapper.params;
import java.util.ArrayList;
import java.util.List;
public class Params {
private List<Param> params;
public Params() {
this.params = new ArrayList<Param>();
}
public void add(Param param) {
params.add(param);
}
public void ad... | eamonfoy/trello-to-markdown | src/main/java/br/eti/mertz/wkhtmltopdf/wrapper/params/Params.java | Java | mit | 982 |
require 'happymapper'
module RSokoban
attr_accessor :levels
class LevelData
include HappyMapper
tag 'Level'
element :id, String
element :copyright, String
element :width, Integer
element :height, Integer
has_many :lines, String, :tag => 'L'
end
class Level
attr_access... | mstahl/rsokoban | lib/level.rb | Ruby | mit | 1,361 |
module BoshReleaseDiff::Release
class Package
attr_reader :name
def initialize(name)
@name = name
end
end
end
| cppforlife/bosh_release_diff | lib/bosh_release_diff/release/package.rb | Ruby | mit | 133 |
/**
* Created by fuzhihong on 16/10/14.
*/
import { Injectable } from '@angular/core';
import {Headers,Http,Response} from '@angular/http';
import {Subject} from 'rxjs/Subject';
import 'rxjs/add/operator/toPromise'
import {User} from './user'
@Injectable()
export class UserService{
private headers=new Hea... | fzh199410/angular2-FirstAPP | app/service/user.service.ts | TypeScript | mit | 1,441 |
from Bio import SeqIO
def get_proteins_for_db(fastafn, fastadelim, genefield):
"""Runs through fasta file and returns proteins accession nrs, sequences
and evidence levels for storage in lookup DB. Duplicate accessions in
fasta are accepted and removed by keeping only the last one.
"""
records = {... | glormph/msstitch | src/app/readers/fasta.py | Python | mit | 4,853 |
package uk.co.lucelle;
import org.springframework.web.bind.annotation.*;
@RestController
public class Controller {
@RequestMapping("/")
public @ResponseBody String index(@RequestBody String data) {
// echo
return data;
}
}
| jonathonadler/ziplet-base64-test | src/main/java/uk/co/lucelle/Controller.java | Java | mit | 256 |
Puppet::Parser::Functions::newfunction(:arnold_include, :doc => "Include classes from Arnold") do
classes = function_hiera_array(['classes', ['*****'], ['arnold/nodename/%{fqdn}','arnold/macaddr/%{macaddress}']])
# The version of hiera_array() shipping in Puppet 2.7 won't let you default to nothing
return if cla... | binford2k/arnold | binford2k-arnold/lib/puppet/parser/functions/arnold_include.rb | Ruby | mit | 399 |
import {Exception} from "../core/Exception";
export class Forbidden extends Exception {
static readonly STATUS = 403;
constructor(message: string, origin?: Error | string | any) {
super(Forbidden.STATUS, message, origin);
}
}
| Romakita/ts-express-decorators | packages/specs/exceptions/src/clientErrors/Forbidden.ts | TypeScript | mit | 238 |
<?php
ClassLoader::requireClassOnce( 'util/Settings' );
ClassLoader::requireClassOnce( 'util/IndexRoutingItem' );
ClassLoader::requireClassOnce( 'actions/AccessImageAction' );
/**
* This class provides utility functions for formatting URLs for this application.
* @author craigb
*/
class UrlFormatter
{
private s... | GreyMatterCatalyst/ArtJourney | src/php/util/UrlFormatter.class.php | PHP | mit | 2,034 |
/* eslint-disable */
import * as Types from '../graphqlTypes.generated';
import { gql } from '@apollo/client';
import { ProjectPromotionFieldsFragmentDoc } from './queries.generated';
import * as Apollo from '@apollo/client';
const defaultOptions = {};
export type PromoteProjectMutationVariables = Types.Exact<{
proj... | neinteractiveliterature/larp_library | app/javascript/ProjectPromotions/mutations.generated.ts | TypeScript | mit | 5,256 |
/**
* Calculates the radius of the Hill Sphere,
* for a body with mass `m1`
* @param {Number} m1 Mass of the lighter body
* @param {Number} m2 Mass of the heavier body
* @param {Number} a Semi-major axis
* @param {Number} e Eccentricity
* @return {Number} Hill Sphere radius
*/
function hillSphere( m1, ... | jhermsmeier/node-hill-sphere | lib/hill-sphere.js | JavaScript | mit | 432 |
/*
* Created on Apr 28, 2005
*/
package jsrl.net;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import jsrl.LoadLibrary;
/**
* JavaPing
* Java Bindings for the SRL Library's Ping Logic
*/
public class JavaPing implemen... | 311labs/SRL | java/src/jsrl/net/JavaPing.java | Java | mit | 5,558 |
<?php
namespace Abbiya\GrabberBundle\Services;
/*
* 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.
*/
/**
* Description of ParseHtml
*
* @author seshachalam
*/
use Goutte\Client;
use ... | mseshachalam/grabber | src/Abbiya/GrabberBundle/Services/ParseHtml.php | PHP | mit | 7,572 |
var httpRequester = (function() {
var makeHttpRequest = function(url, type, data) {
var deferred = $.Deferred();
$.ajax({
url: url,
type: type,
contentType: 'application/json',
data: data,
success: function(resultData) {
def... | Vali0/WBTA | public/js/httpRequester.js | JavaScript | mit | 664 |
<?php
/**
* Description of SectionType
*
* @author Birko
*/
namespace Jamii\UserBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
class UserType extends AbstractType
{
protected $em;
public function __construct(\Doctrine\ORM\EntityManager $em)
{
... | birko/Jamii | src/Jamii/UserBundle/Form/UserType.php | PHP | mit | 2,074 |
import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosCopy extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<polygon points="144,416 144,400 144,112 112,112 112,448 352,448 352,416 160,416 "></polygon>
<g>
<path d="M325.3,64H160v... | fbfeix/react-icons | src/icons/IosCopy.js | JavaScript | mit | 693 |
module Captions
class Cue
include Util
# Text Properties supported
ALIGNMENT = "alignment"
COLOR = "color"
POSITION = "position"
# List of Text Properties
TEXT_PROPERTIES = [ALIGNMENT, COLOR, POSITION]
attr_accessor :number, :start_time, :end_time, :duration, :text, :p... | navinre/captions | lib/captions/cue.rb | Ruby | mit | 2,887 |
<?php
namespace Ekyna\Bundle\SurveyBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Ekyna\Bundle\SurveyBundle\Model\AnswerInterface;
use Ekyna\Bundle\SurveyBundle\Model\QuestionInterface;
use Ekyna\Bundle\SurveyBundle\Model\ResultInterface;
/**
* Class Answer
* @package Ekyna\Bundle\SurveyBundle... | ekyna/SurveyBundle | Entity/Answer.php | PHP | mit | 3,139 |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { Link } from 'react-router-dom';
import _ from 'lodash';
import User from './User';
import Loading from '../../components/Icon/Loading';
import './InterestingPeople.less';
import steemAPI... | ryanbaer/busy | src/components/Sidebar/InterestingPeopleWithAPI.js | JavaScript | mit | 2,712 |
package com.xcode.mobile.smilealarm.alarmpointmanager;
import android.content.Context;
import java.io.IOException;
import java.sql.Date;
import java.sql.Time;
import java.util.Calendar;
import java.util.HashMap;
import com.xcode.mobile.smilealarm.DataHelper;
import com.xcode.mobile.smilealarm.DateTimeHelp... | anhnguyenbk/XCODE-MOBILE-APPS-DEV | SmileAlarm/app/src/main/java/com/xcode/mobile/smilealarm/alarmpointmanager/RisingPlanHandler.java | Java | mit | 7,754 |
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="row">
<div class='col-md-3'>
<div class="menutext">
<?php echo $content_header; ?>
</div>
</div>
<div class='col-md-2'></div>
<div class='col-md-2'><a type='button' class='btn bg-purple btn-lg' id='b... | leesaw/posngg | views/includes/content_header.php | PHP | mit | 1,102 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hapil.Testing.NUnit;
using NUnit.Framework;
namespace Hapil.UnitTests.Statements
{
[TestFixture]
public class CallStatementTests : NUnitEmittedTypesTestBase
{
[Test]
public void CanCallVoidMethodOnReferenceTypeTarget()
... | felix-b/Hapil | Source/Hapil.UnitTests/Statements/CallStatementTests.cs | C# | mit | 5,789 |
package ny2.ats.model.tool;
import java.util.function.BiPredicate;
/**
* 取引条件計算の演算子のクラスです
*/
public enum TradeConditionOperator {
EQUAL((d1, d2) -> Double.compare(d1, d2) == 0, null, "="),
LESS((d1, d2) -> d1 < d2, null, "<"),
LESS_EQUAL((d1, d2) -> d1 <= d2, null, "<="),
GRATER((d1, d2) -> d1 >... | Naoki-Yatsu/FX-AlgorithmTrading | ats/src/main/java/ny2/ats/model/tool/TradeConditionOperator.java | Java | mit | 1,710 |
#include <iostream>
#include <vector>
using namespace std;
void separateOddsAndEvens(const vector<int>& arr, vector<int>& odds, vector<int>& evens);
void printVector(const vector<int>& vec);
int main() {
vector<int> arrUnsplit = {1,2,3,4,5,6,7,8,9,10};
vector<int> odds, evens;
cout << "main array is: " << endl;
... | playmice/cplusplus_snippets | References/separateOddsAndEvens.cpp | C++ | mit | 1,006 |