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 |
|---|---|---|---|---|---|
#include "mdl_file.hpp"
MDLFile::MDLFile(std::string file_path): File(std::move(file_path))
{this->update();}
bool MDLFile::exists_tag(const std::string& tag_name) const
{
return this->parsed_tags.find(tag_name) != this->parsed_tags.end();
}
bool MDLFile::exists_sequence(const std::string& sequence_name) const
{
r... | Harrand/MDL | src/mdl_file.cpp | C++ | mit | 6,776 |
package outbound_test
import (
"context"
"testing"
"v2ray.com/core"
"v2ray.com/core/app/policy"
. "v2ray.com/core/app/proxyman/outbound"
"v2ray.com/core/app/stats"
"v2ray.com/core/common/net"
"v2ray.com/core/common/serial"
"v2ray.com/core/features/outbound"
"v2ray.com/core/proxy/freedom"
"v2ray.com/core/tr... | panzer13/v2ray-core | app/proxyman/outbound/handler_test.go | GO | mit | 2,146 |
# -*- coding: utf-8 -*-
# Copyright (c) 2013, Theo Crevon
# Copyright (c) 2013, Greg Leclercq
#
# See the file LICENSE for copying permission.
from boto.swf.exceptions import SWFResponseError
from swf.constants import REGISTERED
from swf.querysets.base import BaseQuerySet
from swf.models import Domain
from swf.model... | botify-labs/python-simple-workflow | swf/querysets/workflow.py | Python | mit | 25,485 |
module DataTablesController
def self.included(cls)
cls.extend(ClassMethods)
end
module ClassMethods
def datatables_source(action, model, *attrs)
modelCls = Kernel.const_get(model.to_s.capitalize)
modelAttrs = modelCls.new.attributes
columns = []
modelAttrs.each_key { |k| ... | chrismoos/datatables | lib/data_tables_controller.rb | Ruby | mit | 3,255 |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Resources::Mgmt::V2019_03_01
module Models
#
# Deployment operation information.
#
class DeploymentOperation
include ... | Azure/azure-sdk-for-ruby | management/azure_mgmt_resources/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_operation.rb | Ruby | mit | 1,938 |
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... | s5s5/BegVCSharp | Chapter05/Ch05Ex02/Ch05Ex02/Properties/AssemblyInfo.cs | C# | mit | 1,392 |
# frozen_string_literal: true
require 'spec_helper'
describe Promo do
let(:promo) { build(:promo, promoter_type: 'discount') }
subject { promo }
describe 'validations' do
it { is_expected.to validate_presence_of :name }
it { is_expected.to validate_presence_of :type }
it { is_expected.to validate_p... | smartvpnbiz/smartvpn-billing | spec/models/promo_spec.rb | Ruby | mit | 2,452 |
// File auto generated by STUHashTool
using static STULib.Types.Generic.Common;
namespace STULib.Types.Dump {
[STU(0xBE0222CD)]
public class STU_BE0222CD : STU_3DD6C6E9 {
[STUField(0x982D7B62)]
public STUVec3 m_982D7B62;
}
}
| kerzyte/OWLib | STULib/Types/Dump/STU_BE0222CD.cs | C# | mit | 254 |
import tensorflow as tf
from ocnn import *
# octree-based resnet55
def network_resnet(octree, flags, training=True, reuse=None):
depth = flags.depth
channels = [2048, 1024, 512, 256, 128, 64, 32, 16, 8]
with tf.variable_scope("ocnn_resnet", reuse=reuse):
data = octree_property(octree, property_name="feature... | microsoft/O-CNN | tensorflow/script/network_cls.py | Python | mit | 2,557 |
package de.espend.idea.shopware.reference.provider;
import com.intellij.codeInsight.lookup.LookupElement;
import com.intellij.codeInsight.lookup.LookupElementBuilder;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiPolyVariantReferenceBase;
import com.intellij.psi.ResolveResult;
import com.jetbrains.php... | Haehnchen/idea-php-shopware-plugin | src/main/java/de/espend/idea/shopware/reference/provider/StringReferenceProvider.java | Java | mit | 1,454 |
<?php namespace Fes\Blog\Models;
use Model;
use Schema;
/**
* Category Model
*/
class Category extends Model
{
/**
* @var string The database table used by the model.
*/
public $table = 'rainlab_blog_categories';
/**
* @var array Guarded fields
*/
protected $guarded = ['*'];
... | FrontEndStudio/oc-blog-plugin | models/Category.php | PHP | mit | 869 |
#ifndef DT3_SCRIPTINGKEYFRAMESMATERIALRESOURCE
#define DT3_SCRIPTINGKEYFRAMESMATERIALRESOURCE
//==============================================================================
///
/// File: ScriptingKeyframesMaterialResource.hpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
/... | pakoito/DT3 | DT3Core/Scripting/ScriptingKeyframesMaterialResource.hpp | C++ | mit | 3,534 |
package com.algorithms.sorting;
public class MergeBU {
public static void sort(Comparable[] a) {
Comparable[] aux = new Comparable[a.length];
int N = a.length;
for (int size = 1; size < N; size = size*2) {
for (int i = 0; i < N; i = i + size) merge(a, aux, i, i+size-1, Math.m... | SkullTech/algorithms-princeton | Algorithms/src/sorting/MergeBU.java | Java | mit | 1,193 |
// All code points in the `Hatran` script as per Unicode v10.0.0:
[
0x108E0,
0x108E1,
0x108E2,
0x108E3,
0x108E4,
0x108E5,
0x108E6,
0x108E7,
0x108E8,
0x108E9,
0x108EA,
0x108EB,
0x108EC,
0x108ED,
0x108EE,
0x108EF,
0x108F0,
0x108F1,
0x108F2,
0x108F4,
0x108F5,
0x108FB,
0x108FC,
0x108FD,
0x108FE,
0... | mathiasbynens/unicode-data | 10.0.0/scripts/Hatran-code-points.js | JavaScript | mit | 329 |
#!/usr/bin/env python
from distutils.core import setup
from dangagearman import __version__ as version
setup(
name = 'danga-gearman',
version = version,
description = 'Client for the Danga (Perl) Gearman implementation',
author = 'Samuel Stauffer',
author_email = 'samuel@descolada.com',
url =... | saymedia/python-danga-gearman | setup.py | Python | mit | 699 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Drawing.Drawing2D;
namespace Scheduler
{
public class Scheduler<T, K> : IRuntimeScheduler, IScheduler<K> where T:ScheduleTask, new()
{
... | weihuajiang/SchedulerEngineDotNet | SchedulerLib/definition/Scheduler.cs | C# | mit | 53,715 |
<?php
declare(strict_types = 1);
/**
* TransactionType.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace FireflyIII\Rules\Triggers;
use FireflyIII\Models\TransactionJournal;... | tonicospinelli/firefly-iii | app/Rules/Triggers/TransactionType.php | PHP | mit | 1,900 |
<?php
return [
'mandrill' => [
'secret' => $_ENV['MANDRILL_SECRET']
]
];
| BRANDTELIER/reyes | app/config/services.php | PHP | mit | 78 |
import React, {Component, PropTypes} from 'react';
import * as actions from './ForumAction';
import ForumPage from './ForumPage';
class ForumContainer extends Component {
constructor(props) {
super(props);
this.state = {
questions: []
};
this.postQuestion = this.postQues... | JSVillage/military-families-backend | client/components/forum/ForumContainer.js | JavaScript | mit | 830 |
/* Copyright (c) 2015 Sai Jayanthi
This source file is licensed under the "MIT license".
Please see the file COPYING in this distribution for license terms.
*/
/*
This program provides the functionality to implement sound and swipe features for Colors activity
*/
package projects.oss2015.cs.fundookid;
import ... | saipjayanthi23/Fundoo-Tots | app/src/main/java/projects/oss2015/cs/fundookid/Colors.java | Java | mit | 3,586 |
((bbn)=>{let script=document.createElement('script');script.innerHTML=`<div :class="['bbn-iblock', componentClass]">
<input class="bbn-hidden"
ref="element"
:value="modelValue"
:disabled="disabled"
:required="required"
>
<div :style="getStyle()">
<div v-for="(d, idx) in sou... | nabab/bbn-vue | dist/js_single_files/components/radio/radio.min.js | JavaScript | mit | 2,648 |
#!/usr/bin/env python
from __future__ import print_function
import sys
import re
from utils import CDNEngine
from utils import request
if sys.version_info >= (3, 0):
import subprocess as commands
import urllib.parse as urlparse
else:
import commands
import urlparse
def detect(hostname):
"""
P... | Nitr4x/whichCDN | plugins/ErrorServerDetection/behaviors.py | Python | mit | 907 |
class BookingsController < ApplicationController
respond_to :html, :json
before_action :find_booking, except: [:create, :index]
def index
@bookings = Booking.current.order(:starts_at)
respond_with @bookings
end
def new
@booking = Booking.new
end
def create
@booking = Booking.new(bookin... | codenamev/bookings | lib/bookings/generators/templates/bookings_controller.rb | Ruby | mit | 1,474 |
package edacc.parameterspace.domain;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
@SuppressWarnings("serial")
public class IntegerDomain extends Domain {
protected Integer low, high;
public static final String name = "Integer";
@SuppressWarnings("unused")
private IntegerDomain... | EDACC/edacc_api | src/edacc/parameterspace/domain/IntegerDomain.java | Java | mit | 3,522 |
import {StringUtils} from "../node_modules/igv-utils/src/index.js"
class Locus {
constructor({chr, start, end}) {
this.chr = chr
this.start = start
this.end = end
}
contains(locus) {
return locus.chr === this.chr && locus.start >= this.start && locus.end <= this.end
}... | igvteam/igv.js | js/locus.js | JavaScript | mit | 1,337 |
using MonoGame.Extended.BitmapFonts;
using System;
using System.Collections.Generic;
using System.Text;
namespace XmasHell.Extensions
{
public static class StringExtension
{
public static List<String> FormatBoxString(String text, int width, BitmapFont font)
{
var strings = new List... | Noxalus/Xmas-Hell | Xmas-Hell/Xmas-Hell-Core/Extensions/StringExtension.cs | C# | mit | 940 |
<?php
$sectionName ="About Us";
$pageTitle = "Who We Are";
$bodyCss = "about page page-simple";
?>
<?php include "_header.php"; ?>
<div class="container">
<!-- <ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/about-us/"><?php echo $sectionName; ?></a></li>
<li class="active"><?php echo ... | rohm/reviveourhearts_com_redesign | about-who-we-are.php | PHP | mit | 3,597 |
require 'test/unit/testcase'
require 'assert_microformats'
Test::Unit::TestCase.send :include, AssertMicroformats
| georgebrock/assert-microformats | rails/init.rb | Ruby | mit | 115 |
//
// File: Math.cpp
// Author: John Barbero Unenge
// Date: 10/11/12.
//
// Copyright (c) 2012 Catch22. All rights reserved.
//
// All code is my own except where credited to others.
//
// License: The following code is licensed under the Catch22-License
//
#include "Math.hpp"
#include <math.h>
Vector2d* Math... | JBarberU/CatchLib | src/Math/Math.cpp | C++ | mit | 761 |
import Ember from 'ember';
import layout from './template';
export default Ember.Component.extend({
layout: layout,
classNames: ['kit-canvas-scroller'],
canvasStyle: Ember.computed('parentView.canvasStyle', function() {
return this.get('parentView').get('canvasStyle');
}),
numberOfItems: Ember.computed('parent... | dpostigo/ember-cli-kit | addon/components/kit-canvas-scroller/component.js | JavaScript | mit | 525 |
package main
import (
"fmt"
"net/http"
"log"
"strconv"
"github.com/stvndall/languagetechstats/src/go/services/factors"
"github.com/gorilla/mux"
)
func main(){
router := mux.NewRouter().StrictSlash(true)
router.HandleFunc("/{numbers}", factorise)
log.Fatal(http.ListenAndServe(":2500", router))
}
func factoris... | stvndall/LanguageTechStats | src/go/http/factorsSvr/factorssvr.go | GO | mit | 525 |
/*
The parser for parsing US's date format that begin with month's name.
EX.
- January 13
- January 13, 2012
- January 13 - 15, 2012
- Tuesday, January 13, 2012
*/
var moment = require('moment');
require('moment-timezone');
var Parser = require('../parser').Parser;
va... | trever/chrono | src/parsers/EN/ENMonthNameMiddleEndianParser.js | JavaScript | mit | 4,981 |
#include <iostream>
#include "ringo.hpp"
void ringo () {
std::cout << "and Ringo" << std::endl;
}
| CajetanP/code-learning | Build Systems/CommandLine/HelloBeatles/src/georgeringo/ringo.cpp | C++ | mit | 101 |
using System;
using System.Collections.Generic;
namespace TranscendenceChat.ServerClient.Entities.Ws.Requests
{
public class MessageSeenStatusAcknowledgeRequest : BaseRequest
{
public List<Guid> Messages { get; set; }
}
} | tamifist/Transcendence | TranscendenceChat.ServerClient/Ws/Requests/MessageSeenStatusAcknowledgeRequest.cs | C# | mit | 245 |
<?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/dev/tests/functional/tests/app/Mage/Adminhtml/Test/Fixture/StoreGroup/CategoryId.php | PHP | mit | 3,093 |
'use strict';
import React, {PureComponent} from 'react';
import {StyleSheet, View, Text} from 'react-native';
import withMaterialTheme from './styles/withMaterialTheme';
import {withMeasurementForwarding} from './util';
import * as typo from './styles/typo';
import shades from './styles/shades';
/**
* Section headin... | material-native/material-native | src/Subheader.js | JavaScript | mit | 1,665 |
public class TestSea6Task1 {
public static void main(String[] args) {
String text = "Sun is shining. Today is a good day for test. Sun is shining. The students are happy. The birds are blue.";
int indexSent = -1;
int lengthSen = 0;
int counterSen = 0;
int indexLast = 0;
int maxLengthSen = 0;
for (int ... | marmotka/Java-Exercises-Basics | Tests/src/TestSea6Task1.java | Java | mit | 831 |
interface Foo extends stdClass
{
/**
* @var string
*/
const FOO = 'theValue';
/**
* @var string
*/
const BAR = 'theOtherValue';
/**
* @var int
*/
/**
* @var bool
*/
/**
* This method is very useful
* @date 2012-03-01
* @return mixed
... | WsdlToPhp/PhpGenerator | tests/resources/PhpInterfaceTest_SimpleToStringWithReturnType.php | PHP | mit | 573 |
require "roadkill/version"
module Roadkill
# Your code goes here...
end
| agapered/roadkill | lib/roadkill.rb | Ruby | mit | 75 |
package controller
import (
"net/http"
"encoding/json"
"rest-commander/store"
"rest-commander/model/dto"
)
type AuthenticationController interface {
HandleLogin(w http.ResponseWriter, r *http.Request)
HandleLogout(w http.ResponseWriter, r *http.Request)
}
func (t *AuthenticationRoute) HandleLogin(w http.Respon... | rainu/rest-commander | server-go/src/rest-commander/controller/auth_handler.go | GO | mit | 1,102 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="nb" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Podcoin</source>
<translation>Om Podcoin</translation>
</message... | mgrigajtis/podcoin | src/qt/locale/bitcoin_nb.ts | TypeScript | mit | 113,153 |
package hugs.support;
import hugs.*;
public class ScoreParameter extends Parameter {
public Score value;
public ScoreParameter (String name) { this(name,null);}
public ScoreParameter (String name, Score value) {
super(name);
this.value = value;
}
public Object getValue () {return value;... | guwek/HuGS | hugs/support/ScoreParameter.java | Java | mit | 451 |
package com.riteshakya.subs.views.screens.login;
import android.content.Intent;
import android.support.v4.app.FragmentActivity;
import com.google.android.gms.common.api.GoogleApiClient;
import com.riteshakya.subs.mvp.FlowListener;
import com.riteshakya.subs.mvp.IPresenter;
import com.riteshakya.subs.mvp.IView;
import... | riteshakya037/Subs | presentation/src/main/java/com/riteshakya/subs/views/screens/login/LoginPresenter.java | Java | mit | 859 |
/*
* Copyright (C) 2013 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | EricHyh/FileDownloader | lib-common/src/main/java/com/hyh/common/picasso/PicassoExecutorService.java | Java | mit | 4,271 |
<?php
namespace Brasa\RecursoHumanoBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
class RhuAcreditacionTipoType extends AbstractType
{
/*... | wariox3/brasa | src/Brasa/RecursoHumanoBundle/Form/Type/RhuAcreditacionTipoType.php | PHP | mit | 959 |
<?php
namespace Emayk\Ics\Repo\Taxtype;
/**
* Copyright (C) 2013 Emay Komarudin
* 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 later... | emayk/ics | src/Emayk/Ics/Repo/Taxtype/TaxtypeInterface.php | PHP | mit | 1,765 |
module SimpleHL7
VERSION = "1.0.2"
end
| alivecor/simple_hl7 | lib/simple_hl7/version.rb | Ruby | mit | 41 |
class CreateQuestionsTags < ActiveRecord::Migration
def change
create_table :questions_tags, id: false do |t|
t.references :question, index: true
t.references :tag, index: true
end
end
end
| leemour/underflow | db/migrate/20140429172646_create_questions_tags.rb | Ruby | mit | 213 |
<?php
/**
* Thankyou page
*
* This template can be overridden by copying it to yourtheme/woocommerce/checkout/thankyou.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to ... | AustinWinnett/jenny-b-photo | woocommerce/checkout/thankyou.php | PHP | mit | 3,682 |
/*Package websocket implements Websocket transport
Websocket transport implements an HTTP(S) compliable, surveillance proof transport method with plausible deniability.
*/
package websocket
//go:generate go run v2ray.com/core/common/errors/errorgen
| v2ray/v2ray-core | transport/internet/websocket/ws.go | GO | mit | 251 |
package eu.bcvsolutions.idm.core.bulk.action.impl;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.List;
import java.util.Set;
import java.util.UUID;
import org.junit.After;
imp... | bcvsolutions/CzechIdMng | Realization/backend/core/core-impl/src/test/java/eu/bcvsolutions/idm/core/bulk/action/impl/IdentityDisableBulkActionTest.java | Java | mit | 9,528 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace WarZ
{
public class ParticlesManager : DrawableGameComponent
{
private WarZGame WZGame;
//PARTICLES
// This sample uses five different particle systems.
... | vvolkgang/WarZ | src/WarZ/WarZ/3D/Particles/ParticlesManager.cs | C# | mit | 5,427 |
import { onChange, getBits } from '../state'
import { inputWidth, centerInputs } from './inputs'
const $bits = document.getElementById('bits')
const setBitsWidth = width => {
$bits.style.width = inputWidth(width)
centerInputs()
}
const setBitsValue = value => {
setBitsWidth(value.length)
$bits.value = value
... | hhelwich/floating-point-converter | src/gui/inputBits.js | JavaScript | mit | 610 |
var plugin = require("./plugin");
module.exports = function(PluginHost) {
var app = PluginHost.owner;
/**
* used like so:
* --external-aliases privateapi,privateAPI,hiddenAPI
* or
* -ea privateapi,privateAPI
*/
app.options.addDeclaration({ name: 'external-aliases', short: 'ea' });
/**
* used l... | arindamangular/ShopNow | node_modules/angular-ui-router/node_modules/typedoc-plugin-internal-external/index.js | JavaScript | mit | 555 |
var gulp = require('gulp'),
plugins = require('gulp-load-plugins')(),
Karma = require('karma').Server;
var paths = {
scripts: {
src: ['src/**/*.js'],
dest: 'dist',
file: 'mention.js'
},
styles: {
src: ['src/**/*.scss'],
dest: 'dist',
file: 'mention.css'
},
example: {
scrip... | kasperlewau/ui-mention | gulpfile.js | JavaScript | mit | 2,033 |
#include "TestBase.h"
const char *testPostExpressions =
"typedef char[] string;\r\n\
\r\n\
int string:find(char a)\r\n\
{\r\n\
int i = 0;\r\n\
while(i < this.size && this[i] != a)\r\n\
i++;\r\n\
if(i == this.size)\r\n\
i = -1;\r\n\
return i;\r\n\
}\r\n\
\r\n\
int a = (\"hello\").size + \"me\".si... | WheretIB/nullc | tests/TestPostExpr.cpp | C++ | mit | 1,952 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.compute.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azur... | Azure/azure-sdk-for-java | sdk/resourcemanagerhybrid/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryProperties.java | Java | mit | 3,142 |
import { StyleSheet } from 'react-native'
const s = StyleSheet.create({
flexRowAround: {
flexDirection: 'row',
justifyContent: 'space-around',
},
dot: {
height: 7,
width: 7,
borderRadius: 3.5,
},
green: {
color: '#50d2c2',
},
flexWrap: {
flexWrap: 'wrap',
},
textCenter: {
... | SeunLanLege/react-native-mobx-calender | src/styles.js | JavaScript | mit | 3,411 |
# frozen_string_literal: true
require 'wegift/version'
require 'wegift/client'
require 'wegift/models/initializable'
require 'wegift/models/response'
require 'wegift/models/product'
require 'wegift/models/products'
require 'wegift/models/order'
module Wegift
end
| kendrikat/wegift-ruby-client | lib/wegift.rb | Ruby | mit | 266 |
exports.CLI = require(__dirname + '/lib/cli');
exports.Events = require(__dirname + '/lib/events'); | krg7880/node-stubby-server-cli | index.js | JavaScript | mit | 99 |
import {AbstractControl, FormBuilder, FormGroup, Validators} from "@angular/forms";
import {DatePickerOptions} from "ng2-datepicker";
import {MatchesDataStoreService} from "../../matches-data-store";
import {MatchesConstants} from "../../matches.constant.service";
import {IOption} from "ng-select";
import {Component, E... | malikme3/angular4 | src/app/ctcl/Matches/components/submit.score/match.basic.details.component/basic.details.component.ts | TypeScript | mit | 14,964 |
using System;
namespace Ducksoft.SOA.Common.Filters
{
/// <summary>
/// Class which is used to store filter changed event arguments.
/// </summary>
public class SortChangedEventArgs : EventArgs
{
/// <summary>
/// Gets a value indicating whether this instance is reset.
///... | hpsanampudi/Ducksoft.Soa.Common | Filters/SortChangedEventArgs.cs | C# | mit | 844 |
import json
from chargebee.model import Model
from chargebee import request
from chargebee import APIError
class Plan(Model):
class Tier(Model):
fields = ["starting_unit", "ending_unit", "price", "starting_unit_in_decimal", "ending_unit_in_decimal", "price_in_decimal"]
pass
class ApplicableAddon(Mo... | chargebee/chargebee-python | chargebee/models/plan.py | Python | mit | 2,784 |
<?php
namespace denbora\R_T_G_Services\services\REST;
use denbora\R_T_G_Services\R_T_G_ServiceException;
class GameService extends RestService
{
/**
* First part in url after /api/
*/
const API_URL = 'games';
/**
* @param $query
* @param null $array
* @param string $endpoint
... | Denbora/R_T_G_Services | src/services/REST/GameService.php | PHP | mit | 2,636 |
'use strict';
!function($) {
/**
* OffCanvas module.
* @module foundation.offcanvas
* @requires foundation.util.keyboard
* @requires foundation.util.mediaQuery
* @requires foundation.util.triggers
* @requires foundation.util.motion
*/
class OffCanvas {
/**
* Creates a new instance of an off-canvas wrappe... | PassKitInc/foundation-sites | js/foundation.offcanvas.js | JavaScript | mit | 10,884 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.avs.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.ut... | Azure/azure-sdk-for-java | sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/VirtualMachineRestrictMovementState.java | Java | mit | 1,489 |
require "jenkins_ruby_jobs/version"
require "jenkins_ruby_jobs/jenkinsapi"
require "jenkins_ruby_jobs/configuration"
require "jenkins_ruby_jobs/buildjob"
module Jenkins
end
| mlnewman/jenkins_ruby_jobs | lib/jenkins_ruby_jobs.rb | Ruby | mit | 174 |
var Dispatcher = require('flux').Dispatcher;
var assign = require('object-assign')
var AppDispatcher = assign(new Dispatcher(), {
handleViewAction: function(action) {
this.dispatch({
actionType: 'VIEW_ACTION',
action: action
});
},
handleServerAction: function(action) {
this.dispatch({
... | kwbock/todos-react | app/assets/javascripts/dispatchers/app-dispatcher.js | JavaScript | mit | 424 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>First Steps Into PHP</title>
</head>
<body>
<form>
N: <input type="text" name="num" />
<input type="submit" />
</form>
<!--Write your PHP Script here-->
</body>
</html>
<?php
if (isset($_GET['num'])) {
$n1 = intval($_GET['num'])... | VaskoViktorov/SoftUni-Homework | 03. Software Technologies - 27.02.2017/3. PHP First Steps - Exercises/06. Numbers from N to 1_Скелет.php | PHP | mit | 388 |
/*
* 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/clipboard_gtk.cpp | C++ | mit | 2,093 |
#pragma once
#include <string>
namespace pyconv {
namespace language {
namespace types{
namespace line {
using std::string;
class LineType {
public:
typedef int line_t;
static const line_t BLANK = 0;
static const line_t CLOSE_BRACE = 1;
static const line_t ELIF_STATEMENT = 2;
static const line... | mattheuslee/PyConv | src/PyConv/main/language/types/line/LineType.hpp | C++ | mit | 2,232 |
<?php
class Klevu_Boosting_Model_Boost extends Mage_CatalogRule_Model_Rule
{
protected $_eventPrefix = 'boosting';
protected $_eventObject = 'object';
protected function _construct()
{
$this->_init("boosting/boost");
}
public function getConditionsInstance()
{
return Mage::ge... | klevu/klevu-smart-search-M1 | app/code/community/Klevu/Boosting/Model/Boost.php | PHP | mit | 1,698 |
require 'rails_helper'
describe HeadingService::CachedHeadingService do
let(:heading) { create :heading, :non_grouping,
:with_description }
let(:measure_type) { create :measure_type, measure_type_id: '103' }
let(:actual_date) { Date.current }
describe '#serializable_hash' do
... | bitzesty/trade-tariff-backend | spec/services/heading_service/cached_heading_service_spec.rb | Ruby | mit | 8,845 |
$(document).ready(function(){
//enable the return time input and dropdown
$("#round").change(function() {
if(this.checked) {
console.log("Return data field open!");
$("#rD").removeClass('ui disabled input').addClass('ui input');
$("#rY").removeClass('ui disabled inp... | yanx611/Flightonight | public/resources/main.js | JavaScript | mit | 6,549 |
module ::Refinery
module Admin
module DashboardHelper
def activity_message_for(record)
if (plugin = ::Refinery::Plugins.active.find_by_model(record.class)) &&
(activity = plugin.activity.first)
# work out which action occured
action = record.updated_at.eql?(record.cre... | pcantrell/refinerycms | dashboard/app/helpers/refinery/admin/dashboard_helper.rb | Ruby | mit | 1,045 |
(function(){
angular.module('list-products', [])
.directive('productInfo', function() {
return {
restrict: 'E',
templateUrl: 'partials/product-info.html'
}
})
.directive('productForm', function() {
return {
restrict: 'E',
templateUrl: 'partials/product-for... | portojs/angular-project-1 | app/products.js | JavaScript | mit | 1,211 |
export * from './types'
export * from './takeWhile'
| TylorS167/167 | src/list/takeWhile/index.ts | TypeScript | mit | 52 |
using System.Reflection;
using System.Runtime.CompilerServices;
using Android.App;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("GifViewer.Droid")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConf... | jamesmontemagno/Xamarin.Forms-Awesome-Controls | GifImageView/Droid/Properties/AssemblyInfo.cs | C# | mit | 1,016 |
namespace More.IO
{
using System;
using System.Diagnostics.Contracts;
using System.IO;
using System.Threading.Tasks;
/// <summary>
/// Represents a file with information about its contents and ways to manipulate it.
/// </summary>
[ContractClass( typeof( IFileContract ) )]
public i... | commonsensesoftware/More | src/More/More/IO/IFile.cs | C# | mit | 3,144 |
# encoding: utf-8
require "phonology"
require File.expand_path("../spanish/orthography", __FILE__)
require File.expand_path("../spanish/phonology", __FILE__)
require File.expand_path("../spanish/syllable", __FILE__)
# This library provides some linguistic and orthographic tools for Spanish
# words.
module Spanish
e... | norman/spanish | lib/spanish.rb | Ruby | mit | 1,408 |
#include "math/lu.hh"
#include <cassert>
#include <cmath>
#include "math/vlist.hh"
LU::lu_t LU::lu(const Matrix& a)
{
assert(a.rows() == a.cols());
std::size_t n = a.rows();
auto l = Matrix::id(n);
auto u = a;
for (std::size_t j = 0; j < n; ++j)
for (std::size_t i = j + 1; i < n; ++i)
{
do... | obs145628/ai-cpp | src/math/lu.cc | C++ | mit | 2,463 |
<?php
namespace RestSpec\Output\ConstraintDescriber;
use Symfony\Component\Validator\Constraint;
class NotBlank
{
public function describe(Constraint $constraint)
{
$output = 'is required';
return $output;
}
}
| talkrz/rest-spec | src/RestSpec/Output/ConstraintDescriber/NotBlank.php | PHP | mit | 242 |
##
# $Id$
##
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##
require 'msf/core'
class Metasp... | hahwul/mad-metasploit | archive/exploits/linux/remote/9954.rb | Ruby | mit | 2,217 |
require "json"
require "spec_helper"
require_relative "../../lib/simpl"
describe Simpl::Url do
let(:url) { "http://example.com/test-page" }
let(:actual_api_key) { "1234567890abcdef" }
before do
Simpl.api_key = actual_api_key
Simpl.timeout = 30
end
subject { Simpl::Url.new(url) }
context "w... | krisquigley/simpl | spec/simpl/url_spec.rb | Ruby | mit | 3,724 |
<?php
/*
* MIT License
*
* Copyright (c) 2017 Eugene Bogachov
*
* 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, ... | granulephp/data-bind | lib/DependencyResolverAware.php | PHP | mit | 1,273 |
require 'thor/group'
require_relative '../routing/extractor'
require_relative '../templates/js_paths.rb'
require_relative '../templates/js_paths_template_str'
module LieutenantGovernor
module Generators
class JsRouteHelpers < Thor::Group
extend Thor::Actions
# Use the extractor to get the hash
... | JordanLittell/lieutenant_governor | lib/lieutenant_governor/generators/js_route_helpers.rb | Ruby | mit | 965 |
<?php namespace Waynestate\Api;
use Waynestate\Api\ConnectorException;
/**
* Class Connector
* @package Waynestate\Api
*/
class Connector
{
public $apiKey; // To obtain an API key: http://api.wayne.edu/
public $parser = 'json'; // Use the included XML parser? Default: true.
public $debug = false; // S... | waynestate/waynestate-api-php | src/Connector.php | PHP | mit | 11,839 |
angular.module('material.animations')
.directive('inkRipple', [
'$materialInkRipple',
InkRippleDirective
])
.factory('$materialInkRipple', [
'$window',
'$$rAF',
'$materialEffects',
'$timeout',
InkRippleService
]);
function InkRippleDirective($materialInkRipple) {
return function(scope, element, attr... | mauricionr/material | src/components/animate/inkCssRipple.js | JavaScript | mit | 5,058 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bs" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About SpamSlayer</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... | SpamSlayer/live | src/qt/locale/bitcoin_bs.ts | TypeScript | mit | 108,067 |
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="Bludit">
<!-- Generate <title>...</title> -->
<?php echo HTML::metaTagTitle(); ?>
<!-- Generate <meta name="description" content="..."> -->
<?php echo HTML::metaTagDescription(); ?>
<!-- Genera... | bludit/bludit | bl-themes/blogx/php/head.php | PHP | mit | 1,114 |
import math
from service.fake_api_results import ALL_TITLES, OFFICIAL_COPY_RESULT, SELECTED_FULL_RESULTS
SEARCH_RESULTS_PER_PAGE = 20
def get_title(title_number):
return SELECTED_FULL_RESULTS.get(title_number)
def _get_titles(page_number):
nof_results = len(ALL_TITLES)
number_pages = math.ceil(nof_resu... | LandRegistry/drv-flask-based-prototype | service/api_client.py | Python | mit | 898 |
using System;
namespace Firestorm.Stems.Analysis
{
/// <summary>
/// Exception that is thrown when <see cref="StemAttribute"/>s have been setup incorrectly.
/// </summary>
public class StemAttributeSetupException : Exception // TODO StemException from Fuel?
{
public StemAttributeSetupExcept... | connellw/Firestorm | src/Firestorm.Stems.Core/Analysis/StemAttributeSetupException.cs | C# | mit | 529 |
package jp.ac.nii.prl.mape.controller.service;
import jp.ac.nii.prl.mape.controller.model.MAPEKComponent;
public interface KnowledgeBaseService {
void put(MAPEKComponent kb, String bx, String view, String param);
String get(MAPEKComponent kb, String bx, String param);
} | prl-tokyo/MAPE-controller | src/main/java/jp/ac/nii/prl/mape/controller/service/KnowledgeBaseService.java | Java | mit | 277 |
var boletesPinya = $.merge($.merge($.merge($("#cDB").find("path"), $("#cB4").find("path")), $("#cB3").find("path")), $("#cB2").find("path"));
var boletesTronc = $.merge($.merge($("#cB4").find("path"), $("#cB3").find("path")), $("#cB2").find("path"));
var usedTweets = {};
$(document).ready(function () {
$.each(b... | MPapus/QuanHiSomTots | js/tweets.js | JavaScript | mit | 5,021 |
# frozen_string_literal: true
# Grammar for a simple subset of English language
# It is called nano-English because it has a more elaborate
# grammar than pico-English but remains still tiny compared to "real" English
require 'rley' # Load the gem
########################################
# Define a grammar for a nan... | famished-tiger/Rley | examples/NLP/nano_eng/nano_grammar.rb | Ruby | mit | 2,096 |
package org.nnsoft.shs.core.http.parse;
/*
* Copyright (c) 2012 Simone Tripodi (simonetripodi@apache.org)
*
* 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, includin... | simonetripodi/shs | core/src/main/java/org/nnsoft/shs/core/http/parse/ParserTrigger.java | Java | mit | 1,894 |
<?php
class Addsemester_model extends CI_Model {
function validateSem($semesterid) {
$this->db->select('semester_id');
$this->db->where('semester_id', $semesterid);
$query = $this->db->get('semester');
if ($query->result_array()) {
return TRUE;
} else {
... | juliemh/tatui | application/models/Addsemester_model.php | PHP | mit | 574 |
var sc1 = {
//funhouse mirror
setup:function(){
// videoSetup();
tree = new TREE();
tree.generate({
joints: [5,3,1,10],
divs: [1],
start: [0,0,2,0],
angles: [0,Math.PI/2,1],
length: [20,15,4,1],
rads: [1,2,1,3],
width: [1,2,2,1]
});
scene.add(tree);
tree.position... | dlobser/treejs | sketches/sc27.js | JavaScript | mit | 1,772 |
'use strict';
// 頑シミュさんの装飾品検索の結果と比較しやすくする
function simplifyDecombs(decombs) {
return decombs.map(decomb => {
let torsoUp = Object.keys(decomb).map(part => decomb[part]).some(comb => {
if (comb == null) return false;
return comb.skills['胴系統倍加'] ? true : false;
});
let... | sakusimu/mh-skillsimu | test/support/util.js | JavaScript | mit | 755 |
<div ng-if="checkPermissions( 'transferValidations', 'view' )">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Transfer #{{ transferItem.id }}</h3>
</div>
<div class="panel-body">
<form class="form-horizontal">
<div class="row">
<div class="col-sm-12 col-md-... | winskie/frogims | application/views/partial_transfer_validation_form.php | PHP | mit | 11,954 |