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 |
|---|---|---|---|---|---|
<?php
namespace MF\QueryBuilderComposer;
use Doctrine\ORM\QueryBuilder;
interface Modifier
{
public function __invoke(QueryBuilder $queryBuilder): QueryBuilder;
}
| MortalFlesh/php-query-builder-composer | src/Modifier.php | PHP | mit | 170 |
package backup
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.... | Azure/azure-sdk-for-go | services/recoveryservices/mgmt/2021-12-01/backup/protectionpolicyoperationstatuses.go | GO | mit | 5,253 |
package servicebus
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenera... | Azure/azure-sdk-for-go | services/preview/servicebus/mgmt/2021-06-01-preview/servicebus/queues.go | GO | mit | 49,392 |
<?php
return array (
'id' => 'docomo_n2701c_ver1',
'fallback' => 'docomo_generic_jap_ver2',
'capabilities' =>
array (
'columns' => '11',
'max_image_width' => '121',
'rows' => '11',
'resolution_width' => '176',
'resolution_height' => '198',
'max_image_height' => '190',
'flash_lite_ve... | cuckata23/wurfl-data | data/docomo_n2701c_ver1.php | PHP | mit | 342 |
<?php
namespace HMLB\Date\Tests\Localization;
/*
* This file is part of the Date package.
*
* (c) Hugues Maignol <hugues@hmlb.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use HMLB\Date\Date;
use HMLB\Date\Tests\AbstractTe... | hmlb/date | tests/Localization/ItTest.php | PHP | mit | 840 |
// http://www.w3.org/2010/05/video/mediaevents.html
var poppy = popcorn( [ vid_elem_ref | 'id_string' ] );
poppy
// pass-through video control methods
.load()
.play()
.pause()
// property setters
.currentTime( time ) // skip forward or backwards `time` seconds
.playbackRate( rate )
.volume( delt... | rwaldron/butter | popcorn-js/popcorn-api-notes.js | JavaScript | mit | 2,970 |
/*
_____ __ _____________ _______ ______ ___________
/ \| | \____ \__ \\_ __ \/ ___// __ \_ __ \
| Y Y \ | / |_> > __ \| | \/\___ \\ ___/| | \/
|__|_| /____/| __(____ /__| /____ >\___ >__|
\/ |__| \/ \/ \/
Copyright (C) 2004 - 2020 Ingo Berg
Redistri... | Siv3D/OpenSiv3D | Siv3D/src/ThirdParty/muparser/muParserDLL.cpp | C++ | mit | 25,026 |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bundle\DoctrineMongoDBBundle\Command;
use Doctrine\ODM\MongoDB\... | ajessu/jobeet | vendor/symfony/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/InfoDoctrineODMCommand.php | PHP | mit | 3,442 |
module LiveScript
module Source
VERSION = '1.5.0'
end
end
| Roonin-mx/livescript-source | lib/livescript/source/version.rb | Ruby | mit | 66 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Topup extends MY_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this co... | seegan/Myproj | application/controllers/super_admin/topup.php | PHP | mit | 1,936 |
define(['myweb/jquery'], function ($) {
'use strict';
var error = function (message) {
$('.form-feedback').removeClass('form-success').addClass('form-error').text(message).fadeIn(200);
};
var success = function (message) {
$('.form-feedback').removeClass('form-error').addClass('form-suc... | broekema41/Device-lab-access-point | static/js/message.js | JavaScript | mit | 576 |
# encoding: UTF-8
include Vorax
describe 'tablezip layout' do
before(:each) do# {{{
@sp = Sqlplus.new('sqlplus')
@sp.default_convertor = :tablezip
@prep = [VORAX_CSTR,
"set tab off",
"set linesize 10000",
"set markup html on",
"set echo off",
... | talek/vorax4 | vorax/ruby/spec/tablezip_spec.rb | Ruby | mit | 2,817 |
from django.contrib.admin.models import LogEntry
from django.contrib.auth.models import User, Group, Permission
from simple_history import register
from celsius.tools import register_for_permission_handling
register(User)
register(Group)
register_for_permission_handling(User)
register_for_permission_handling(Group)
... | cytex124/celsius-cloud-backend | src/addons/management_user/admin.py | Python | mit | 408 |
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
<!-- Basic -->
<meta charset="utf-8">
<title>VirUCA</title>
<meta name="keywords" content="" />
<meta n... | mariamartinmarin/virUCA | application/views/jugar.php | PHP | mit | 17,711 |
namespace ConsoleStudentSystem.Models
{
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
public class User
{
private ICollection<UserProfile> userProfiles;
public User()
{
this.userProfiles = new HashSet<UserProfile>();
}
... | studware/Ange-Git | MyTelerikAcademyHomeWorks/DataBase/12.EntityFrameworkCodeFirst/ConsoleStudentSystem/ConsoleStudentSystem.Models/Student.cs | C# | mit | 492 |
const gulp = require('gulp'),
zip = require('gulp-zip');
/**
* Metadata about the plugin.
*
* @var object
*/
const plugin = {
name: 'example-plugin',
directory: '.'
}
gulp.task('distribute', function () {
let paths = [
'vendor/twig/**/*',
'vendor/composer/**/*',
'v... | p810/wordpress-plugin-scaffold | gulpfile.js | JavaScript | mit | 542 |
package com.management.dao.impl.calcs;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanListHandler;
import com.management.bean.calculate.ProjectCalc;
import com.management.bean.calculate.Pro... | ztmark/managementsystem | src/com/management/dao/impl/calcs/ProjectCalcDaoImpl.java | Java | mit | 2,035 |
// // Copyright (c) Microsoft. All rights reserved.
// // Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Windows;
using System.Windows.Forms;
using System.Windows.Forms.Integration;
using System.Windows.Media;
using WPFControls;
namespace... | Microsoft/WPF-Samples | Migration and Interoperability/WindowsFormsHostingWpfControl/FormsApp/Form1.cs | C# | mit | 5,369 |
using System.Collections.Immutable;
using JetBrains.Annotations;
using JsonApiDotNetCore.Configuration;
using JsonApiDotNetCore.Queries.Expressions;
using JsonApiDotNetCore.Resources;
using JsonApiDotNetCore.Resources.Annotations;
using Microsoft.Extensions.Primitives;
namespace JsonApiDotNetCoreTests.IntegrationTests... | json-api-dotnet/JsonApiDotNetCore | test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Reading/MoonDefinition.cs | C# | mit | 2,427 |
/*
* Author: Minho Kim (ISKU)
* Date: March 3, 2018
* E-mail: minho.kim093@gmail.com
*
* https://github.com/ISKU/Algorithm
* https://www.acmicpc.net/problem/13169
*/
import java.util.*;
public class Main {
private static long[] array;
private static int N;
public static void main(String... args) {
Scann... | ISKU/Algorithm | BOJ/13169/Main.java | Java | mit | 630 |
from django import forms
from miniURL.models import Redirection
#Pour faire un formulaire depuis un modèle. (/!\ héritage différent)
class RedirectionForm(forms.ModelForm):
class Meta:
model = Redirection
fields = ('real_url', 'pseudo')
# Pour récupérer des données cel apeut ce faire avec un POST... | guillaume-havard/testdjango | sitetest/miniURL/forms.py | Python | mit | 615 |
package pp.iloc.model;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import pp.iloc.model.Num.NumKind;
import pp.iloc.model.Operand.Type;
import pp.iloc.parse.FormatException;... | tcoenraad/compiler-construction | lib/pp/iloc/model/Program.java | Java | mit | 7,199 |
import { IHiveMindNeuron, IHiveMindNeurons } from './HiveMindNeurons';
import { UserInput } from '../../BasicUserInput';
import { RequestContext } from '../../BasicRequestContext';
import { INeuronsResponse, ISingleNeuronsResponse, SingleNeuronsResponse } from './NeuronsResponse';
import { INeuronResponse } from '../..... | OFTechLabs/oratio | src/emergent/hivemind/neurons/PureEmergentHiveMindNeurons.ts | TypeScript | mit | 2,881 |
require_relative 'spec_helper'
require_relative '../lib/nixonpi/animations/easing'
describe NixonPi::Easing do
before :each do
@object = Object.new
@object.extend(NixonPi::Easing)
end
# @param [Object] x percent complete (0.0 - 1.0)
# @param [Object] t elapsed time ms
# @param [Object] b start value... | danielkummer/nixon-pi | spec/easing_spec.rb | Ruby | mit | 604 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 25 21:11:45 2017
@author: hubert
"""
import numpy as np
import matplotlib.pyplot as plt
class LiveBarGraph(object):
"""
"""
def __init__(self, band_names=['delta', 'theta', 'alpha', 'beta'],
ch_names=['TP9', 'AF7', 'A... | bcimontreal/bci_workshop | python/extra_stuff/livebargraph.py | Python | mit | 940 |
require 'spec_helper'
describe 'ssh::default' do
let(:chef_run){ ChefSpec::SoloRunner.new(platform: 'ubuntu', version: '12.04').converge(described_recipe) }
it 'should include the ssh::client recipe' do
expect(chef_run).to include_recipe('ssh::client')
end
it 'should include the ssh::server recipe' do
expec... | ersmith/cookbook-ssh | spec/default_spec.rb | Ruby | mit | 373 |
<?php
namespace Ekyna\Bundle\CartBundle\Provider;
use Ekyna\Bundle\CartBundle\Model\CartProviderInterface;
use Ekyna\Bundle\OrderBundle\Entity\OrderRepository;
use Ekyna\Component\Sale\Order\OrderInterface;
use Ekyna\Component\Sale\Order\OrderTypes;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
/**
... | ekyna/CartBundle | Provider/CartProvider.php | PHP | mit | 2,736 |
<h1><?php echo $titulo_pagina; ?></h1>
<p>Usuários cadastrados no sistema</p>
<p class="alert bg-danger" style="display:none;"><strong>Mensagem!</strong> <span></span></p>
<p><a href="<?php echo base_url().'admin/usuarios/cadastrar'; ?>" class="btn btn-primary">Cadastrar</a></p>
<table class="table table-bordered table... | bmarquesn/bmnprojetopiloto | application/views/admin/usuarios/listar.php | PHP | mit | 1,435 |
# -*- coding: utf-8 -*-
from modules import Robot
import time
r = Robot.Robot()
state = [0, 1000, 1500]
(run, move, write) = range(3)
i = run
slowdown = 1
flag_A = 0
flag_C = 0
lock = [0, 0, 0, 0]
while(True):
a = r.Read()
for it in range(len(lock)):
if lock[it]:
lock[it] = lock[it] - 1
... | KMPSUJ/lego_robot | pilot.py | Python | mit | 4,781 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using Windows.Foundation.Collections;
using Windows.Media;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Contr... | jimshalo10/HoloLensCompanionKit | MixedRemoteViewCompositor/Samples/LowLatencyMRC/UWP/Viewer/Playback.xaml.cs | C# | mit | 4,072 |
<?php
class ModelTask
{
public $Model;
public $MethodName;
public $Request;
public $ResponseInfo;
public $Response;
public $Headers;
public static function Prepare(&$model, $methodName)
{
$newTask = new self;
$newTask->Model = &$model;
$newTask->MethodName = $methodName;
$newTask->Request = null;
$... | lekster/md_new | libraries/common/Rest/class.ModelTask.php | PHP | mit | 431 |
/*
* This code it's help you to check JS plugin function (e.g. jQuery) exist.
* When function not exist, the code will auto reload JS plugin from your setting.
*
* plugin_name: It's your plugin function name (e.g. jQuery). The type is string.
* reload_url: It's your reload plugin function URL. The type is string.... | opoepev/checkJSPluginExist | checkJSPluginExist.js | JavaScript | mit | 1,273 |
# -*- coding: utf-8 -*-
from django.db import models
from Corretor.base import CorretorException
from Corretor.base import ExecutorException
from Corretor.base import CompiladorException
from Corretor.base import ComparadorException
from Corretor.base import LockException
from model_utils import Choices
class Retorn... | arruda/amao | AMAO/apps/Corretor/models/retorno.py | Python | mit | 2,633 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ur_PK" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About ShadowCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location ... | hansacoin/hansacoin | src/qt/locale - Copy/bitcoin_ur_PK.ts | TypeScript | mit | 107,848 |
<?php include $_SERVER['DOCUMENT_ROOT'] . '/snippets/document/header/index.php'; ?>
<div class="layout-project">
<div class="project project_glow context-content">
<section class="project__layout">
<header class="project__header">
<div class="container">
<h1 class="project__title">Glow</h... | Booozz/portfolio-m | app/templates/project-glow.php | PHP | mit | 2,356 |
<?php
require "../zxcd9.php";
//$stmt = $db->prepare("SELECT * from fin_allotments where hrdbid=:id");
//$stmt->bindParam(':id', $_SESSION['id']);
//$stmt->execute();
//$rowfa = $stmt->fetch(PDO::FETCH_ASSOC);
//echo $rowfa['hrdbid'];
// echo $_SESSION['id'];
// while ($rowfa = $stmt->fetch(PDO::FETCH_ASSOC)) {... | jmigdelacruz/SLPonline | finance/allotments.php | PHP | mit | 18,757 |
package iso20022
type RepurchaseType6Code string
| fgrid/iso20022 | RepurchaseType6Code.go | GO | mit | 50 |
namespace XHTMLClassLibrary.AttributeDataTypes
{
/// <summary>
/// One or more digits.
/// </summary>
public class Number : IAttributeDataType
{
private int? _number = null;
public string Value
{
get
{
if (_number.HasValue)
... | LordKiRon/fb2converters | fb2epub/HTML5ClassLibrary/AttributeDataTypes/Number.cs | C# | mit | 693 |
# coding=utf-8
# --------------------------------------------------------------------------
# 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 ... | lmazuel/azure-sdk-for-python | azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/application_gateway_ssl_predefined_policy.py | Python | mit | 1,826 |
const path = require('path');
const inquirer = require('inquirer');
const yargs = require('yargs');
const {
sanitizeArgs,
ui,
invalidGitRepo,
ingredients,
addIngredients,
promiseTimeout
} = require('../common');
const {
cloneRepo,
deleteGitFolder,
establishLocalGitBindings,
addGitRemote,
pushLoca... | appirio-digital/ezbake | commands/prepare.js | JavaScript | mit | 6,465 |
import React from 'react'
import { useSelector } from 'react-redux'
import Container from 'react-bootstrap/Container'
import Row from 'react-bootstrap/Row'
import Col from 'react-bootstrap/Col'
import MoveSelector from '../containers/move-selector'
import Footer from '../containers/footer'
import Player from '../conta... | koscelansky/Dama | src/components/game.js | JavaScript | mit | 1,182 |
class LateMigration < ActiveRecord::Migration
def up
puts "Doing schema LateMigration"
end
def down
puts "Undoing LateMigration"
end
end
| ajvargo/data-migrate | spec/db/migrate/4.2/20131111111111_late_migration.rb | Ruby | mit | 154 |
const fs = require('fs');
const path = require('path');
class Service {
constructor() {
this.getFileRecursevly = this.getFileRecursevly.bind(this);
this.getFiles = this.getFiles.bind(this);
}
getFileRecursevly(folderPath, shortPath = '') {
var files = [];
var folder = fs.read... | blckt/electron | app/src/TreeView/service.js | JavaScript | mit | 1,003 |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="MemoryStandardStream.Read.cs" company="Naos Project">
// Copyright (c) Naos Project 2019. All rights reserved.
// </copyright>
// ----------------------------------------------... | NaosProject/Naos.Database | Naos.Database.Domain/Protocols/Classes/Stream/MemoryStandard/MemoryStandardStream.Read.cs | C# | mit | 10,172 |
package com.falcon.cms.web.rest;
import com.falcon.cms.web.rest.vm.LoggerVM;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.LoggerContext;
import com.codahale.metrics.annotation.Timed;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.a... | dooma/falconcms | src/main/java/com/falcon/cms/web/rest/LogsResource.java | Java | mit | 1,166 |
#include "stdafx.h"
#include "record.hpp"
namespace tc { namespace log {
const char* record::type_acronym( void ) const {
switch( type ) {
case log::trace: return "T";
case log::debug: return "D";
case log::info: return "I";
case log::warn: return "W";
case log::error: return "E";
case log::fatal: return "F";
... | aoziczero/deprecated-libtc | srcs/tc.log/record.cpp | C++ | mit | 591 |
exports.LOADING = "LOADING";
exports.ERROR = "ERROR";
exports.SUCCESS = "SUCCESS";
exports.FETCH = "FETCH";
exports.CREATE = "CREATE";
exports.UPDATE = "UPDATE";
exports.DELETE = "DELETE";
exports.SET_EDIT_MODE = "SET_EDIT_MODE";
exports.SET_ADD_MODE = "SET_ADD_MODE";
exports.CLOSE_FORM = "CLOSE_FORM";
exports.SET_PAGE... | Em-Ant/fcc-options-app | client/src/constants/actionTypes/modelActionTypes.js | JavaScript | mit | 334 |
'use strict';
exports.ContainerBuilder = require('./CqrsContainerBuilder');
exports.EventStream = require('./EventStream');
exports.CommandBus = require('./CommandBus');
exports.EventStore = require('./EventStore');
exports.AbstractAggregate = require('./AbstractAggregate');
exports.AggregateCommandHandler = require... | snatalenko/node-cqrs | src/index.js | JavaScript | mit | 953 |
'use strict';
var _ = require('./underscore-mixins.js');
var fnToNode = new Map();
exports.load = function (nodes, prefix) {
let uuid = require('uuid');
if (prefix != null && prefix.length > 0) {
prefix = prefix + ':';
} else {
prefix = '';
}
_(nodes).forEach(function (fn, name... | Alex-D/one-gulp | lib/dag.js | JavaScript | mit | 8,407 |
import { connect } from 'react-redux';
import Main from './Main';
import * as userActions from '../../state/user/userActions';
const mapStateToProps = (state, ownProps) => {
return {
activeTab: ownProps.location.pathname.split('/')[2]
};
};
const mapDispatchToProps = (dispatch) => {
return {
getUserData... | GerManson/bodymass | src/dashboard/components/Main/MainContainer.js | JavaScript | mit | 440 |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { MembersComponent } from './members/members.component';
import { SeatingMapComponent } from './seating-map/seating-map.component';
const routes: Routes = [
{
path: 'members',
component: MembersComponent... | pedrorohr/crescer-cwi | src/app/app-routing.module.ts | TypeScript | mit | 589 |
(function(angular) {
'use strict';
angular
.module('jstube.chromeExtensionCleaner.popup')
.directive('jstubeNavbar', jstubeNavbar);
function jstubeNavbar() {
return {
restrict: 'E',
templateUrl: 'nav/_navbar.html',
controller: 'NavbarController',
... | dayanand-saraswati/chrome-extension-cleaner | chromeExtensionCleaner/app/popup/nav/navbarDirective.js | JavaScript | mit | 389 |
// Just re-export everything from the other files
export * from './base-table-name';
export * from './compound-constraint';
export * from './constraint';
export * from './constraint-type';
export * from './default-value';
export * from './error-response';
export * from './filter-operation';
export * from './filter';
e... | mattbdean/Helium | common/api/index.ts | TypeScript | mit | 723 |
package com.dranawhite.mybatis.handler;
import com.alibaba.fastjson.JSON;
import com.dranawhite.mybatis.model.Address;
import com.dranawhite.mybatis.model.FullAddress;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;
import org.apache.ibatis.type.MappedTypes;
import org.apache.iba... | dranawhite/test-java | test-framework/test-mybatis/src/main/java/com/dranawhite/mybatis/handler/FullAddressJsonHandler.java | Java | mit | 1,582 |
from util.tipo import tipo
class S_PARTY_MEMBER_INTERVAL_POS_UPDATE(object):
def __init__(self, tracker, time, direction, opcode, data):
print(str(type(self)).split('.')[3]+'('+str(len(data))+'): '+ str(data.get_array_hex(1))[1:-1])
| jeff-alves/Tera | game/message/unused/S_PARTY_MEMBER_INTERVAL_POS_UPDATE.py | Python | mit | 246 |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ retu... | mind0n/hive | Frontend/demo/dist/demo.bundle.js | JavaScript | mit | 281,070 |
/*
* Copyright (C) 2013 The Android Open Source Project
*
* 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 app... | cedar-renjun/RemoteControl-Car | App/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/DeviceControlActivity.java | Java | mit | 25,314 |
package tasks
// This file is generated by methodGenerator.
// DO NOT MOTIFY THIS FILE.
import (
"net/url"
"github.com/kawaken/go-rtm/methods"
)
// AddTags returns "rtm.tasks.addTags" method instance.
func AddTags(timeline string, listID string, taskseriesID string, taskID string, tags string) *methods.Method {
... | kawaken/go-rtm | methods/tasks/add_tags.go | GO | mit | 582 |
App.SubPhotoInstance = DS.Model.extend({
width: DS.attr('number'),
height: DS.attr('number'),
url: DS.attr('string'),
type: 'sub_photo_instance'
});
| Mause/tumblr-ember | src/js/app/models/photo_model/sub_photo_instance_model.js | JavaScript | mit | 157 |
require "sendgrid-parse/version"
require "sendgrid-parse/encodable_hash"
| robforman/sendgrid-parse | lib/sendgrid-parse.rb | Ruby | mit | 73 |
"""Kytos SDN Platform."""
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
| kytos/kytos-utils | kytos/__init__.py | Python | mit | 102 |
finApp.directive('brief', function () {
return {
restrict: 'E',
templateUrl: 'views/directives/brief.html',
controller: 'BriefController',
controllerAs: 'bfc'
};
}); | ferpsanta/FinWallet | app/js/directives/brief.js | JavaScript | mit | 185 |
using OpenTK;
using OpenTK.Graphics.OpenGL;
namespace p_1
{
class Spritebatch
{
public static void DrawSprite(Texture2D texture, RectangleF rectangle)
{
DrawSprite(texture, new Vector2(rectangle.X, rectangle.Y), new Vector2(rectangle.Width / texture.Width, rectangle.Height / texture.Height), Color.White, Vect... | doshaq/Dosha_Engine | SpriteBatch.cs | C# | mit | 2,305 |
describe("grid-columns", function() {
function createSuite(buffered) {
describe(buffered ? "with buffered rendering" : "without buffered rendering", function() {
var defaultColNum = 4,
totalWidth = 1000,
grid, view, colRef, store, column;
function spy... | san4osq/bindformext | ext/classic/classic/test/specs/grid/grid-columns.js | JavaScript | mit | 120,088 |
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pigame.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | MoonCheesez/stack | PiGame/pigame/manage.py | Python | mit | 804 |
/*
* Copyright 2011 Matt Crinklaw-Vogt
*
* 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, publ... | tantaman/commons | src/examples/java/com/tantaman/commons/examples/ParallelForDemo.java | Java | mit | 2,605 |
<?php
namespace Akamon\OAuth2\Server\Domain\Service\Token\TokenGranter;
use Akamon\OAuth2\Server\Domain\Exception\OAuthError\GrantTypeNotFoundOAuthErrorException;
use Akamon\OAuth2\Server\Domain\Exception\OAuthError\UnauthorizedClientForGrantTypeOAuthErrorException;
use Akamon\OAuth2\Server\Domain\Exception\OAuthErro... | Akamon/oauth2-server | src/Akamon/OAuth2/Server/Domain/Service/Token/TokenGranter/TokenGranterByGrantType.php | PHP | mit | 2,338 |
package com.flockinger.spongeblogSP.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.A... | daflockinger/spongeblogSP | src/main/java/com/flockinger/spongeblogSP/config/SwaggerConfig.java | Java | mit | 1,216 |
import {keccak256, bufferToHex} from "ethereumjs-util"
export default class MerkleTree {
constructor(elements) {
// Filter empty strings and hash elements
this.elements = elements.filter(el => el).map(el => keccak256(el))
// Deduplicate elements
this.elements = this.bufDedup(this.eleme... | livepeer/protocol | utils/merkleTree.js | JavaScript | mit | 3,202 |
//
// peas.js
//
// tree data structure in javascript
//
//////////////////////////
var peas = function() {
// "sub" here is used as an object container for
// operations related to sub nodes.
// Each pea node will have a "sub" property
// with an instance of "sub"
var sub = function() {}
// the current node... | nzonbi/peas.js | peas.js | JavaScript | mit | 4,109 |
using System;
using System.Linq;
using System.Reflection;
using System.Text;
namespace Stealer
{
public class Spy
{
public string StealFieldInfo(string className, params string[] fieldsNames)
{
var sb = new StringBuilder();
sb.AppendLine($"Class under investigation: {c... | BlueDress/School | C# OOP Advanced/Reflection/Stealer/Spy.cs | C# | mit | 857 |
from .. import Provider as CompanyProvider
class Provider(CompanyProvider):
formats = (
"{{last_name}} {{company_suffix}}",
"{{last_name}} {{last_name}} {{company_suffix}}",
"{{large_company}}",
)
large_companies = (
"AZAL",
"Azergold",
"SOCAR",
"So... | joke2k/faker | faker/providers/company/az_AZ/__init__.py | Python | mit | 1,274 |
import formatPhoneNumber, { formatPhoneNumberIntl } from './formatPhoneNumberDefaultMetadata'
describe('formatPhoneNumberDefaultMetadata', () => {
it('should format phone numbers', () => {
formatPhoneNumber('+12133734253', 'NATIONAL').should.equal('(213) 373-4253')
formatPhoneNumber('+12133734253', 'INTERNATIONAL... | halt-hammerzeit/react-phone-number-input | source/formatPhoneNumberDefaultMetadata.test.js | JavaScript | mit | 433 |
import React from 'react';
import { withStyles } from '@material-ui/core/styles';
import { green } from '@material-ui/core/colors';
import Radio, { RadioProps } from '@material-ui/core/Radio';
import RadioButtonUncheckedIcon from '@material-ui/icons/RadioButtonUnchecked';
import RadioButtonCheckedIcon from '@material-u... | kybarg/material-ui | docs/src/pages/components/radio-buttons/RadioButtons.tsx | TypeScript | mit | 1,939 |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 Litecoin Developers
// Copyright (c) 2013 doriancoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licen... | doriancoin/doriancoin-v3 | src/wallet.cpp | C++ | mit | 52,573 |
<?php
/*
Safe sample
input : get the field UserData from the variable $_POST
sanitize : settype (float)
construction : use of sprintf via a %u with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute this ... | stivalet/PHP-Vulnerability-test-suite | Injection/CWE_89/safe/CWE_89__POST__CAST-func_settype_float__select_from_where-sprintf_%u_simple_quote.php | PHP | mit | 1,590 |
var final_transcript = '';
var recognizing = false;
//var socket = io.connect('http://collab.di.uniba.it:48922');//"http://collab.di.uniba.it/~iaffaldano:48922"
//socket.emit('client_type', {text: "Speaker"});
if ('webkitSpeechRecognition' in window) {
var recognition = new webkitSpeechRecognition();
recognitio... | collab-uniba/scriba | client/src/js/transcriptor.js | JavaScript | mit | 2,613 |
/* eslint-disable promise/always-return */
import { runAuthenticatedQuery, runQuery } from "schema/v1/test/utils"
describe("UpdateCollectorProfile", () => {
it("updates and returns a collector profile", () => {
/* eslint-disable max-len */
const mutation = `
mutation {
updateCollectorProfile(in... | mzikherman/metaphysics-1 | src/schema/v1/me/__tests__/update_collector_profile.test.js | JavaScript | mit | 2,055 |
module.exports = require('./src/tracking');
| JoshuaTang/jstracking | index.js | JavaScript | mit | 44 |
/**
* Created by Administrator on 2017/3/11.
*/
public class ReverseWordsInSequence {
public void reverseSequence(String str) {
if (str == null) return;
String[] strArray = str.split(" ");
StringBuilder sb = new StringBuilder();
for (int i = strArray.length-1; i >= 0; --i)
... | RudyZH/Aim2Offer | 042_ReverseWordsInSequence.java | Java | mit | 1,796 |
<?php
class Autoreportemail_model extends CI_Model {
public function __construct()
{
parent::__construct();
}
public function get_milist($where = array())
{
$this->db->select('*');
$this->db->where($where);
$query = $this->db->get('autoreport_email');
re... | garpepi/Mini-HRM | application/models/Autoreportemail_model.php | PHP | mit | 2,189 |
/*
Configures webpack to build only assets required
for integration environments.
*/
const webpack = require('webpack');
const merge = require('webpack-merge');
const { source, sourceAll } = require('../lib/path-helpers');
const ciBuildWorkflow = require('./workflow/build.ci');
const { entries } = require(source... | connectivedx/fuzzy-chainsaw | build/webpack/webpack.config.build.ci.js | JavaScript | mit | 671 |
/**
* A null-safe function to repeat the source string the desired amount of times.
* @private
* @param {String} source
* @param {Number} times
* @returns {String}
*/
function _repeat (source, times) {
var result = "";
for (var i = 0; i < times; i++) {
result += source;
}
return result;
... | ascartabelli/lamb | src/privates/_repeat.js | JavaScript | mit | 347 |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Handles backports of the standard library's `fractions.py`.
The fractions module in 2.6 does not handle being instantiated using a
float and then calculating an approximate fraction based on that.
This functionality is required by the FITS unit format... | piotroxp/scibibscan | scib/lib/python3.5/site-packages/astropy/utils/compat/fractions.py | Python | mit | 568 |
/* eslint-disable func-names */
const {
sampleUrls,
shortSampleUrls,
E2E_WAIT_TIME: WAIT_TIME,
E2E_PRESENT_WAIT_TIME: PRESENT_WAIT_TIME
} = require('../e2e_helper');
module.exports = {
after(browser) {
browser.end();
},
'Go to top page': browser => {
browser.page.index().navigate().waitForEleme... | unblee/jukebox | e2e/tests/index_test.js | JavaScript | mit | 3,824 |
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under the MIT license
*/
if (typeof jQuery === 'undefined') {
throw new Error('Bootstrap\'s JavaScript requires jQuery')
}
+function ($) {
'use strict';
var version = $.fn.jquery.split(' ')[0].split('.')
if ((v... | austinxiao-ucsd/cogs120-webapp | js/bootstrap.js | JavaScript | mit | 71,641 |
<?php
/**
* @package AcyMailing for Joomla!
* @version 5.6.5
* @author acyba.com
* @copyright (C) 2009-2017 ACYBA S.A.R.L. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
$name = 'Technology';
$thumb = 'media/com_acymaili... | yaelduckwen/libriastore | joomla/media/com_acymailing/templates/technology_resp/install.php | PHP | mit | 2,281 |
<?php
namespace EntityManager5178714d05176_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM;
/**
* CG library enhanced proxy class.
*
* This code was generated automatically by the CG library, manual changes to it
* will be lost upon next generation.
*/
class EntityManager extends \Doctrine\ORM\Entit... | deivy90/Detoditoonline | app/cache/dev/jms_diextra/doctrine/EntityManager_5178714d05176.php | PHP | mit | 16,022 |
# -*- coding: utf-8 -*-
import os.path
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.conf import settings as django_settings
from django.db.models import signals
from know.plugins.attachments import settings
from know import managers
from know.models.pluginbase import ... | indexofire/gork | src/gork/application/know/plugins/attachments/models.py | Python | mit | 6,582 |
package h1z1.screens;
import h1z1.MainFrame;
import h1z1.game.GameState;
import h1z1.input.ButtonHandler;
import h1z1.input.InputButton;
import h1z1.input.InputProvider;
import h1z1.io.ResourceManager;
import javax.imageio.ImageIO;
import java.awt.*;
import java.util.List;
import h1z1.game.Maze;
public class PlayGa... | johnathandavis/H1Z1 | src/main/java/h1z1/screens/PlayGameScreenManager.java | Java | mit | 1,193 |
import express from 'express'
import cors from 'cors'
import bodyParser from 'body-parser'
import helmet from 'helmet'
import httpStatus from 'http-status'
import path from 'path'
import routes from './routes'
import logger from './helpers/logger.js'
const app = express()
// Pug
app.set('view engine', 'pug')
app.set... | AitorDB/API-NodeJS | app/app.js | JavaScript | mit | 1,199 |
<?php
namespace PandaGroup\StoreLocator\Controller\Adminhtml\Index;
use Magento\Framework\Exception\LocalizedException;
class Save extends \Magento\Backend\App\Action
{
/** @var \Magento\Framework\App\Request\DataPersistorInterface */
protected $dataPersistor;
/** @var \PandaGroup\StoreLocator\Model\Reg... | pandagrouppl/StoreLocator | Controller/Adminhtml/Index/Save.php | PHP | mit | 6,561 |
using TwinTechs.Controls;
using TekConf.Core.Data.Dtos;
namespace TekConf.Forms.Cells
{
public partial class ConferenceListSessionsListCell : FastCell
{
protected override void InitializeCell ()
{
InitializeComponent ();
}
protected override void SetupCell (bool isRecycled)
{
var session = BindingC... | tekconf/TekConf.Forms | TekConf/TekConf.Forms/Cells/ConferenceListSessionsListCell.xaml.cs | C# | mit | 499 |
<?php
namespace SilexMarkdown\Parser;
use SilexMarkdown\Filter\FilterInterface;
interface ParserInterface
{
public function transform($source);
public function registerFilter($method, FilterInterface $filter);
public function getFilters();
public function hasFilter($method);
public function useFi... | MadCatme/SilexMarkdown | src/SilexMarkdown/Parser/ParserInterface.php | PHP | mit | 356 |
import Lab from 'lab';
import server from '../../server';
import data from '../data';
const expect = Lab.assertions.expect;
export const lab = Lab.script();
lab.experiment('ProfileCtrl', function() {
lab.before(done => {
data.sync().then(done, done);
});
lab.test('[getAuthenticated] returns the current pr... | FOUfashion/api | src/tests/controllers/profile.js | JavaScript | mit | 4,337 |
package net.glowstone.net.message.play.entity;
import com.flowpowered.network.Message;
import java.util.List;
import lombok.Data;
@Data
public final class DestroyEntitiesMessage implements Message {
private final List<Integer> ids;
}
| GlowstoneMC/GlowstonePlusPlus | src/main/java/net/glowstone/net/message/play/entity/DestroyEntitiesMessage.java | Java | mit | 242 |
// ArduinoJson - https://arduinojson.org
// Copyright © 2014-2022, Benoit BLANCHON
// MIT License
#include <ArduinoJson.h>
#include <catch.hpp>
#define SHOULD_WORK(expression) REQUIRE(DeserializationError::Ok == expression);
#define SHOULD_FAIL(expression) \
REQUIRE(DeserializationError::TooDeep == expression);
TE... | bblanchon/ArduinoJson | extras/tests/JsonDeserializer/nestingLimit.cpp | C++ | mit | 4,306 |
const fs = require('fs')
const path = require('path')
const LRU = require('lru-cache')
const express = require('express')
const favicon = require('serve-favicon')
const compression = require('compression')
const resolve = file => path.resolve(__dirname, file)
const { createBundleRenderer } = require('vue-server-rendere... | wenyejie/trading-tiger | server.js | JavaScript | mit | 4,301 |
module FinancialStatementHelper
include HyaccConst
def colspan( node_level )
@max_node_level - node_level + 1
end
def is_visible_on_report( account, branch_id )
# 削除された科目は表示しない
return false if account.deleted?
# 決算書科目以外は表示しない
return false unless account.is_settlement_rep... | hybitz/hyacc | app/helpers/financial_statement_helper.rb | Ruby | mit | 611 |
<?php
class kml_TimeSpan extends kml_TimePrimitive {
protected $tagName = 'TimeSpan';
var $begin;
var $end;
/* Constructor */
function kml_TimeSpan($begin = null, $end = null) {
parent::kml_TimePrimitive();
if ($begin !== null) $this->set_begin($begin);
if ($end !== null... | lifelink1987/old.life-link.org | libs/php-kml/kml_TimeSpan.php | PHP | mit | 845 |