repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
lajosbencz/phalcon-hint-generator | phalcon-ide/2.0.5.4/Phalcon/Debug/Dump.php | 2409 | <?php
namespace Phalcon\Debug;
class Dump
{
protected $_detailed = false;
public function getDetailed() {
return $this->_detailed;
}
public function setDetailed($value) {
$this->_detailed = $value;
}
protected $_methods = null;
protected $_styles;
/**
* Phalcon\Debug\Dump constructor
*
* @p... | mit |
nico01f/z-pec | ZimbraClient/src/java/com/zimbra/client/event/ZModifyVoiceMailItemEvent.java | 1504 | /*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2007, 2008, 2009, 2010 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy... | mit |
BathnesDevelopment/Public-Art-Website | scripts/map.js | 8967 | ////////////////////////////////////////////////////////////
// Site.js: Handles general page loading and functionality
// Created: 17th Feb 2016.
////////////////////////////////////////////////////////////
$(function () {
//////////////////
// MAP setup
// Uses CartoDB positron
//////////////////
... | mit |
Grimace1975/bclcontrib-web | System.WebEx/Web+Routing/Routing+Dynamic/DynamicRoute.cs | 7769 | #region License
/*
The MIT License
Copyright (c) 2008 Sky Morey
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... | mit |
HMNikolova/Telerik_Academy | WebDesign/homework js/1. JavaScript Fundamentals/3. Conditional Statements/05.DigitAsWord/DigitAsWord.js | 1643 | /* Problem 5. Digit as word
Write a script that asks for a digit (0-9), and depending on the input, shows the digit as a word (in English).
Print “not a digit” in case of invalid input.
Use a switch statement.
Examples:
digit result
2 two
1 one
0 zero
5 five
-0.1 not a digit
hi not a digit
9 nin... | mit |
ambagasdowa/kml | cake/console/controllers/secure_presenters_controller.php | 2224 | <?php
class SecurePresentersController extends AppController {
var $name = 'SecurePresenters';
function index() {
$this->SecurePresenter->recursive = 0;
$this->set('securePresenters', $this->paginate());
}
function view($id = null) {
if (!$id) {
$this->Session->setFlash(__('Invalid secure presenter', tr... | mit |
AmrSaber/XC2 | Util/GUIServer.java | 558 | /*
* 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.
*/
package Util;
/**
*
* @author amr
*/
public interface GUIServer {
public void connect();
public void disconnect()... | mit |
billdueber/searchparser | lib/searchparser/boolean_skeleton.rb | 1942 | require 'searchparser/basics'
module SearchParser
# A simple little parser that defines AND/OR/NOT
# as the and_op, or_op, and not_op, respectively,
# surrounded by whitespace
class UppercaseEnglishOps < Parslet::Parser
include Basics
rule(:and_op) { space? >> str('AND') >> space? }
rule(:or_op)... | mit |
yfeldblum/mongo-lock | lib/mongo/lock/version.rb | 59 | module Mongo
module Lock
VERSION = "0.0.1"
end
end
| mit |
BUCTdarkness/jedis | src/main/java/redis/clients/jedis/HostAndPort.java | 982 | package redis.clients.jedis;
public class HostAndPort {
public static final String LOCALHOST_STR = "localhost";
private String host;
private int port;
public HostAndPort(String host, int port) {
this.host = host;
this.port = port;
}
public String getHost() {
return host;
}
public int getPort() {
... | mit |
iskolbin/lfn | fn.lua | 5634 | --[[
fn - v3.2.3 - public domain Lua functional library
no warranty implied; use at your own risk
author: Ilya Kolbin (iskolbin@gmail.com)
url: github.com/iskolbin/lfn
See documentation in README file.
COMPATIBILITY
Lua 5.1+, LuaJIT
LICENSE
See end of file for license information.
--]]
local function... | mit |
MichMich/MagicMirror | tests/configs/modules/weather/currentweather_default.js | 428 | /* Magic Mirror Test config default weather
*
* By fewieden https://github.com/fewieden
* MIT Licensed.
*/
let config = {
timeFormat: 12,
modules: [
{
module: "weather",
position: "bottom_bar",
config: {
location: "Munich",
mockData: '"#####WEATHERDATA#####"'
}
}
]
};
/*************** D... | mit |
qBit-Solutions/solusvm | lib/modules/TerminateAccount.php | 1123 | <?php
/*
* SolusVM TerminateAccount
*
* Remove / Terminate VPS instance
*
* @package SolusVM
* @category WHMCS Provisioning Modules
* @author Trajche Petrov
* @link https://qbit.solutions/
*/
class SolusVM_TerminateAccount extends SolusVM
{
function _exec()
{
try
{
// check if the VPS is int... | mit |
mark-rushakoff/influxdb | ui/src/alerting/components/endpoints/EndpointOverlayFooter.tsx | 1573 | // Libraries
import React, {useState, FC} from 'react'
// Components
import {
Button,
ComponentColor,
ComponentStatus,
Overlay,
} from '@influxdata/clockface'
// Hooks
import {useEndpointState} from './EndpointOverlayProvider'
// Types
import {NotificationEndpoint, RemoteDataState} from 'src/types'
interfac... | mit |
bohandley/DataVisualization | db/seeds.rb | 498 | # This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
#
# Examples:
#
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
# Ch... | mit |
jjenki11/blaze-chem-rendering | qca_designer/lib/pnetlib-0.8.0/System/IO/Ports/SerialReceivedEventArgs.cs | 1419 | /*
* SerialReceivedEventArgs.cs - Implementation of the
* "System.IO.Ports.SerialReceivedEventArgs" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* 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
* ... | mit |
darkoverlordofdata/artemists | lib/src/utils/HashMap.ts | 2165 | module artemis.utils {
"use strict";
/**
* Decode HashMap key
*
* When the key is an object, we generate a unique uuid and use that as the actual key.
*/
function decode(key) {
switch (typeof key) {
case 'boolean':
return '' + key;
case 'number':
return '' + key;
... | mit |
FriendsOfCake/crud-view | templates/element/actions.php | 2828 | <?php
$links = [];
foreach ($actions as $name => $config) {
$config += ['method' => 'GET'];
if (
(empty($config['url']['controller']) || $this->request->getParam('controller') === $config['url']['controller']) &&
(!empty($config['url']['action']) && $this->request->getParam('action') === $confi... | mit |
kmdouglass/Micro-Manager | plugins/autolase/src/ch/epfl/leb/autolase/DensityThread.java | 6016 | package ch.epfl.leb.autolase;
import java.util.ArrayDeque;
import java.util.List;
import java.util.Queue;
import java.util.ArrayList;
import java.util.Collections;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* This class estimates the density of activations by sampling a Camera at
* regula... | mit |
fetus-hina/stat.ink | migrations/m170328_114202_map2.php | 1380 | <?php
/**
* @copyright Copyright (C) 2015-2017 AIZAWA Hina
* @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT
* @author AIZAWA Hina <hina@fetus.jp>
*/
use app\components\db\Migration;
class m170328_114202_map2 extends Migration
{
public function up()
{
$this->createTable('m... | mit |
zfh1005/IQ_DualHead | WiFi_Test/WiFi_Read_Mac_Address.cpp | 7827 | #include "stdafx.h"
#include "WiFi_Test.h"
#include "IQmeasure.h"
using namespace std;
// Input Parameter Container
map<string, WIFI_SETTING_STRUCT> l_readMacAddressParamMap;
// Return Value Container
map<string, WIFI_SETTING_STRUCT> l_readMacAddressReturnMap;
struct tagParam
{
} l_readMacAddressParam;
struct ta... | mit |
TheCbac/MICA-Desktop | webpack.config.renderer.dev.js | 6091 | /* eslint global-require: 0, import/no-dynamic-require: 0 */
/**
* Build config for development electron renderer process that uses
* Hot-Module-Replacement
*
* https://webpack.js.org/concepts/hot-module-replacement/
*/
import path from 'path';
import fs from 'fs';
import webpack from 'webpack';
import chalk fro... | mit |
JakubJecminek/generator-bobflux-template | generators/app/templates/_cursors.ts | 207 | import { IState, ICursor } from '../node_modules/bobflux/dist/index';
import { IAppState } from './state'
//This is global cursor for global state
export let appCursor: ICursor<IAppState> = {
key: ''
}; | mit |
abidrahmank/MyRoughWork | scikit_roughworks/backtest.py | 676 | import numpy as np
import cv2
from backproject import histogram_backproject as bp
from matplotlib import pyplot as plt
from skimage import data
img1 = cv2.imread('rose.png',0)
img2 = cv2.imread('rose_red.png',0)
b = bp(img1,img2)
img1 = cv2.imread('ihc.jpg')
img2 = cv2.imread('ihc_small.png')
bc = bp(img1,img2)
p... | mit |
Terror5/aima-iks | aimax-osm/src/main/java/aimax/osm/gui/fx/applications/OsmLRTAStarAgentApp.java | 6637 | package aimax.osm.gui.fx.applications;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import aima.core.agent.*;
import aima.core.environment.map.BidirectionalMapProblem;
import aima.core.environment.map.MapEnvironment;
import aima.core.environment.map.MapFunctionFactory;
import aima.core.... | mit |
compactd/compactd | client/src/features/library/components/SuggestionsView/TrackItem.tsx | 2132 | import * as React from 'react';
import {Actions} from 'definitions/actions';
import {LibraryState, CompactdState, PlayerState, Track} from 'definitions';
import * as numeral from 'numeral';
interface TrackItemProps {
actions: Actions;
library: LibraryState;
track: string;
reports?: number;
index: number;
}
e... | mit |
pennymac/action_param_caching | spec/rails/action_controller_spec.rb | 1481 | require 'spec_helper'
class TestController
extend ActionParamCaching::Rails::ActionController
def self.caches_action(action, args)
end
def self.controller_path
"some_controller"
end
end
module ActionParamCaching
module Rails
describe ActionController do
it "provides param configuration for a... | mit |
wislem/berrier | src/Http/macros.php | 6305 | <?php
\Illuminate\Support\Str::macro('slugify', function($str, $separator = '-') {
// Make sure string is in UTF-8 and strip invalid UTF-8 characters
//$str = mb_convert_encoding((string) $str, 'UTF-8', 'ASCII');
$options = array(
'delimiter' => $separator,
'limit' => 72,
'lowercas... | mit |
xpdavid/Ding | database/migrations/2016_06_28_002546_create_subscribe_bookmark_table.php | 692 | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSubscribeBookmarkTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('subscribe_bookmark', function (Blueprint $ta... | mit |
chinxianjun/autorepair | db/migrate/20120709205531_add_fullname_to_vehicles.rb | 251 | class AddFullnameToVehicles < ActiveRecord::Migration
def change
add_column :vehicles, :fullname, :string
add_column :vehicles, :phone, :string
add_column :vehicles, :idcard, :string
add_column :vehicles, :address, :string
end
end
| mit |
yansongda/pay | src/Exception/InvalidParamsException.php | 422 | <?php
declare(strict_types=1);
namespace Yansongda\Pay\Exception;
use Throwable;
class InvalidParamsException extends Exception
{
/**
* Bootstrap.
*
* @param mixed $extra
*/
public function __construct(int $code = self::PARAMS_ERROR, string $message = 'Params Error', $extra = null, Throw... | mit |
kruny1001/pbshop | public/modules/andrewkim/controllers/sample-ctrl.client.controller.js | 647 | 'use strict';
angular.module('andrewkim').controller('SampleCtrlController', ['$scope', '$firebase',
function($scope, $firebase) {
// Sample ctrl controller logic
// ...
var ref = new Firebase('https://restapi.firebaseio.com/');
// create an AngularFile reference to the data
var sync = $f... | mit |
LogboatGroupA/Logboat-Brewing | api/user/create.php | 597 | <?php
require '../init.php';
require '../tools.php';
if(!isUserAdmin()) {
fail("Only admins can create user accounts");
}
$username = htmlspecialchars($_POST['username']);
$query = 'INSERT INTO user (id, username, password, isAdmin, created) VALUES (DEFAULT, ?, ?, DEFAULT, DEFAULT)';
if(($stmt = $link->prepare... | mit |
jsastrawi/jsastrawi | src/main/java/jsastrawi/morphology/defaultimpl/visitor/prefixrules/PrefixRule39b.java | 1818 | /**
* JSastrawi is licensed under The MIT License (MIT)
*
* Copyright (c) 2015 Andy Librian
*
* 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 lim... | mit |
github/codeql | python/ql/src/Statements/ExecUsed.py | 51 |
to_execute = get_untrusted_code()
exec to_execute
| mit |
marc1404/GmailNotifier | GmailNotifier/Account.cs | 1724 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GmailNotifier
{
public class Account
{
public Credentials Credentials { get; set; }
private Inbox inbox;
public Account() { }
p... | mit |
talosdigital/TaskFlex | frontend/app/services/resource.service.js | 1688 | angular.module('tf-client-services.resource')
.factory('resourceService', function($http, $cookies, $location, TF_API) {
function apiProtocol() {
return TF_API.protocol || $location.protocol();
}
function apiHost() {
return TF_API.host || $location.host();
}
function apiPort() {
return TF_API.p... | mit |
hardylake8020/youka-server | app/errors/customer_contact.server.error.js | 297 | /**
* Created by elinaguo on 15/3/26.
*/
'use strict';
var _ = require('lodash');
module.exports = _.extend(exports, {
internal_system_error: {type: 'internal_system_error', message: 'internal system error'},
contact_exist: {type: 'contact_exist', message: 'this contact has existed'}
});
| mit |
jgianpiere/ci_full | application/views/Themes/default/includes/plugins.php | 1081 | <!-- Plugins Adicionales -->
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.11.0/jquery.mobile-1.11.0.min.css" />
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://code.jquery.com/mobile/1.11.0/jquery.mobile-1.11.0.min.js"></script>
<!-- librerias js -->
<?php if(isset($d... | mit |
drdrej/asqjs | gulpfile.js | 725 | var gulp = require('gulp');
gulp.task( 'default', function() {
// place code for your default task here
console.log( "> hello world gulp. " );
var git = require('gulp-git');
var bump = require('gulp-bump');
var tagVersion = require('gulp-tag-version');
gulp.src('.')
.pipe(git.add({a... | mit |
byhieg/JavaTutorial | src/test/java/cn/byhieg/algorithmtutorialtest/SingleLinkListTest.java | 2028 | package cn.byhieg.algorithmtutorialtest;
import cn.byhieg.algorithmtutorial.SingleLinkList;
import junit.framework.TestCase;
/**
* Created by byhieg on 17/5/2.
* Mail to byhieg@gmail.com
*/
public class SingleLinkListTest extends TestCase {
SingleLinkList linkList;
public void setUp() throws Exception {... | mit |
mit-dci/lit | lncore/channels.go | 1598 | package lncore
// LitChannelStorage .
type LitChannelStorage interface {
GetChannel(handle ChannelHandle) (*ChannelInfo, error)
GetChannelHandles() ([]ChannelHandle, error)
GetChannels() ([]ChannelInfo, error)
AddChannel(handle ChannelHandle, info ChannelInfo) error
UpdateChannel(handle ChannelHandle, info Chann... | mit |
AlienEngineer/Cresce | WebApp/Cresce.WebApp.Tests/Controllers/AppointmentsControllerTests.cs | 4289 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using Cresce.Datasources.Repositories;
using Cresce.Models;
using Cresce.Services.Appointments;
using Cresce.Services.Exceptions;
using Cresce.WebApp.BackEnd.Factories;
using Cresce.WebApp.Controllers;
using Cresce.WebApp.Models.A... | mit |
stivalet/PHP-Vulnerability-test-suite | Injection/CWE_89/safe/CWE_89__exec__func_FILTER-CLEANING-number_int_filter__select_from_where-sprintf_%u.php | 1763 | <?php
/*
Safe sample
input : use exec to execute the script /tmp/tainted.php and store the output in $tainted
Uses a number_int_filter via filter_var function
construction : use of sprintf via a %u
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
us... | mit |
ryanabragg/VanguardLARP | test/components/util/Field.test.js | 4189 | import React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import { shallow } from 'enzyme';
import Field from '../../../src/components/util/Field';
describe('<Field />', () => {
it('renders an input', () => {
const edit = spy();
const wrapper = shallow(<Field name='test' value='... | mit |
WeiFund/WeiFund | app/client/templates/components/accountFactory.js | 4907 | /**
Template Controller
@module Templates
*/
/**
The template to allow easy WeiFund contract deployment.
@class [template] components_weihash
@constructor
*/
var template;
Template['components_accountFactory'].created = function() {
TemplateVar.set('deployAccountsState', {
isUndeployed: true
});
};
Templa... | mit |
VelvetMirror/login | app/cache/dev/twig/79/50/af056fa5e6f272663053e995eb8a.php | 4137 | <?php
/* AcmeLoginBundle::layout.html.twig */
class __TwigTemplate_7950af056fa5e6f272663053e995eb8a extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->blocks = array(
'title' => array($this, 'block_title'),
'co... | mit |
ksbobrov/java_pft | addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/tests/ContactCreationTests.java | 2108 | package ru.stqa.pft.addressbook.tests;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.model.ContactData;
import ru.stqa.pft.addressbook.model.Contacts;
import ru.stqa.pft.addressbook.model.Groups;
import ru.stqa... | mit |
midoks/WebCodePush | WCP/app/controller/sys.php | 5098 | <?php
/**
* 系统管理
* 作者 midoks
* 创建时间 2016-11-05
*/
class sysController extends baseController {
//初始化
public function __construct(){
parent::__construct();
$this->conf['hidden'] = explode(',', $this->conf['hidden']);
if($this->userinfo['type'] != 0 ){
$this->jump($this->buildUrl('index'));
}
}
//项... | mit |
node-opcua/node-opcua | packages/node-opcua-nodeset-ua/source/ua_pub_sub_diagnostics_reader_group.ts | 1846 | // ----- this file has been automatically generated - do not edit
import { UAObject } from "node-opcua-address-space-base"
import { DataType } from "node-opcua-variant"
import { UInt32, UInt16 } from "node-opcua-basic-types"
import { UAPubSubDiagnostics_counters, UAPubSubDiagnostics, UAPubSubDiagnostics_Base } from "./... | mit |
Otsimo/simple-notifications | vendor/src/github.com/sendgrid/sendgrid-go/examples/mailboxproviders/mailboxproviders.go | 1007 | package main
import (
"fmt"
"github.com/sendgrid/sendgrid-go"
"os"
)
///////////////////////////////////////////////////
// Retrieve email statistics by mailbox provider.
// GET /mailbox_providers/stats
func Retrieveemailstatisticsbymailboxprovider() {
apiKey := os.Getenv("YOUR_SENDGRID_APIKEY")
host := "http... | mit |
kokspflanze/schmidtke_project | src/Igel/MainBundle/Entity/TicketEntry.php | 2087 | <?php
namespace Igel\MainBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* TicketEntry
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="Igel\MainBundle\Entity\TicketEntryRepository")
*/
class TicketEntry {
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValu... | mit |
stpettersens/DbExporter | DbExporter/Properties/Resources.Designer.cs | 2779 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34209
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | mit |
nationalfield/symfony | lib/helper/I18NHelper.php | 2490 | <?php
/*
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* I18NHelper.
*
* @package symfony
* @subpacka... | mit |
wonderzhou/read4u | src/main/java/com/zoe/wechat/message/resp/TextMessage.java | 257 | package com.zoe.wechat.message.resp;
public class TextMessage extends BaseMessage {
// 回复的消息内容
private String Content;
public String getContent() {
return Content;
}
public void setContent(String content) {
Content = content;
}
} | mit |
grigore-94/STAGE | src/AppBundle/API/ApiJob.php | 1187 | <?php
/**
* Created by PhpStorm.
* User: gbrodicico
* Date: 2/27/2017
* Time: 11:41 AM
*/
namespace AppBundle\API;
use AppBundle\Form\Model\ApiModel;
use Doctrine\ORM\EntityManager;
class ApiJob
{
private $em;
/**
* @InjectParams({
* "em" = @Inject("doctrine.orm.entity_manager")
* ... | mit |
subwaymatch/trackbrowser-client | js/browser-window/view/TabView.js | 13217 | 'use strict';
/**
* TabView consists of a browser tab and it's associated webview
*
* @param {HackBrowserWindowController} hackBrowserWindow - the browser window
* @param {BrowserTabBar} browserTabBar
* @param {string} url - initial url
*
* @constructor
*/
function TabView(hackBrowserWindow, browserTabBar, url... | mit |
mhor-music/push-music-lib-droid | src/com/mhor/pushmusiclib/push/MusicDataPushMaker.java | 4990 | package com.mhor.pushmusiclib.push;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.provider.MediaStore;
import android.provider.Settings;
import com.mhor.pushmusiclib.model.*;
import java.util.Da... | mit |
dondieselkopf/amgcl | amgcl/detail/qr.hpp | 26257 | #ifndef AMGCL_DETAIL_QR_HPP
#define AMGCL_DETAIL_QR_HPP
/*
The MIT License
Copyright (c) 2012-2016 Denis Demidov <dennis.demidov@gmail.com>
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 withou... | mit |
ozmydas/anu123bankinfo | livezilla/_lib/objects.languages.inc.php | 9727 | <?php
$LANGUAGES[""] = array("",false,false);
$LANGUAGES["AB"] = array("Abkhazian",false,false);
$LANGUAGES["AA"] = array("Afar",false,false);
$LANGUAGES["AF"] = array("Afrikaans",false,false);
$LANGUAGES["AK"] = array("Akan",false,false);
$LANGUAGES["SQ"] = array("Albanian",true,false);
$LANGUAGES["AM"] = array("Amhar... | mit |
06wj/three.js | examples/jsm/renderers/webgpu/WebGPUSampledTexture.js | 1303 | import WebGPUBinding from './WebGPUBinding.js';
import { GPUBindingType, GPUTextureViewDimension } from './constants.js';
class WebGPUSampledTexture extends WebGPUBinding {
constructor( name, texture ) {
super( name );
this.texture = texture;
this.dimension = GPUTextureViewDimension.TwoD;
this.type = GPU... | mit |
juanda/CursoSf2.Ejercicio | src/Jazzyweb/CursoSf2/FrontendBundle/JwCursoSf2FrontendBundle.php | 151 | <?php
namespace Jazzyweb\CursoSf2\FrontendBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class JwCursoSf2FrontendBundle extends Bundle
{
}
| mit |
teknobingo/gonzales | lib/gonzales/factories.rb | 2432 | # Copyright (c) 2012 Bingo Entreprenøren AS
# Copyright (c) 2012 Teknobingo Scandinavia AS
# Copyright (c) 2012 Knut I. Stenmark
#
# 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 rest... | mit |
Whathecode/Framework-Class-Library-Extension | Whathecode.System/Reflection/Extensions/Extensions.PropertyInfo.cs | 1034 | using System;
using System.Linq.Expressions;
using System.Reflection;
using Whathecode.System.Reflection.Expressions;
namespace Whathecode.System.Reflection.Extensions
{
public static partial class Extensions
{
/// <summary>
/// Create an expression from which property getters can be created.
/// </summary... | mit |
bradyhullopeter/root | app/views/sysadmin/one/sysadmin-one.spec.js | 310 | 'use strict';
import {expect} from 'chai';
import SysadminOneController from './sysadmin-one-controller';
let ctrl;
describe('app module', () => {
beforeEach(() => {
ctrl = new SysadminOneController();
});
it('should be initialized', () => {
expect(ctrl).to.exist;
});
});
| mit |
colematt/apex-sim | srcs/rob.cpp | 2712 | /* FILE INFORMATION
File: rob.cpp
Authors: Matthew Cole <mcole8@binghamton.edu>
Brian Gracin <bgracin1@binghamton.edu>
Description: Contains the ROB class, which simulates the operation of a Reorder
Buffer.
*/
#include "apex.h"
#include "rob.h"
#include <iostream>
ROB::ROB() { this->initialize(); }
RO... | mit |
zhangqiang110/my4j | pms/src/main/java/cn/ebay/shippingapi/GetAPACShippingRateRequest.java | 9938 | /**
* GetAPACShippingRateRequest.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package cn.ebay.shippingapi;
public class GetAPACShippingRateRequest extends cn.ebay.shippingapi.BaseRequest implements java.io.Serializable {
... | mit |
joaompinto/asciidoctor-vscode | preview-src/loading.ts | 1386 | /*---------------------------------------------------------------------------------------------
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { MessagePoster } from... | mit |
aakselrod/lnd | shachain/utils.go | 2418 | package shachain
import (
"encoding/hex"
"github.com/btcsuite/btcd/chaincfg/chainhash"
)
// changeBit is a functio that function that flips a bit of the hash at a
// particular bit-index. You should be aware that the bit flipping in this
// function a bit strange, example:
// hash: [0b00000000, 0b00000000, ... 0b... | mit |
martijn00/XamarinMediaManager | MediaManager/Platforms/Android/Queue/QueueMediaSourceFactory.cs | 1189 | using System;
using Android.Runtime;
using Android.Support.V4.Media;
using Com.Google.Android.Exoplayer2.Ext.Mediasession;
using Com.Google.Android.Exoplayer2.Source;
using MediaManager.Platforms.Android.Media;
namespace MediaManager.Platforms.Android.Queue
{
public class QueueMediaSourceFactory : Java.Lang.Objec... | mit |
Fast-Forward-llc/FFLib | FFLib/Data/Providers/IDBProvider.cs | 1942 | /*******************************************************
* Project: FFLib V1.0
* Title: ORMInterfaces.cs
* Author: Phillip Bird of Fast Forward,LLC
* Copyright © 2012 Fast Forward, LLC.
* Dual licensed under the MIT or GPL Version 2 licenses.
* Use of any component of FFLib requires acceptance and adhearance
... | mit |
aaubry/YamlDotNet | YamlDotNet/Core/Events/SequenceEnd.cs | 3288 | // This file is part of YamlDotNet - A .NET library for YAML.
// Copyright (c) Antoine Aubry and contributors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, ... | mit |
kevva/if-stream | index.js | 720 | 'use strict';
const streamLib = require('stream');
const isStream = require('is-stream');
const matchCondition = require('match-condition');
const peekStream = require('peek-stream');
module.exports = (condition, stream, fn, opts) => {
opts = Object.assign({}, opts);
const isStreamFn = isStream(fn) || typeof fn ===... | mit |
jawaidss/halalar-web | halalar/api/tests/forms.py | 5174 | from django.test import TestCase
from . import TEST_DATA
from ..forms import AuthenticationForm, UserForm, ProfileForm
class AuthenticationFormTestCase(TestCase):
def test(self):
form = AuthenticationForm(data={'username': TEST_DATA[0]['username'],
'password': TEST_... | mit |
klesta490/BTDB | BTDB/FieldHandler/DefaultTypeConvertorGenerator.cs | 6140 | using System;
using System.Collections.Generic;
using BTDB.Buffer;
using BTDB.Encrypted;
using BTDB.IL;
namespace BTDB.FieldHandler
{
public class DefaultTypeConvertorGenerator : ITypeConvertorGenerator
{
readonly Dictionary<Tuple<Type, Type>, Action<IILGen>> _conversions = new Dictionary<Tuple<Type, ... | mit |
kkrnt/hsp.vs | hsp.vs/HSPConfigContentTypeDefinitions.cs | 477 | using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Utilities;
namespace hsp.vs
{
internal static class HSPConfigContentTypeDefinitions
{
[Export] [Name("hspconf")] [BaseDefinition("text")] internal static ContentTypeDefinition
hidingContentTypeDefinition;
[Expor... | mit |
taku-y/bmlingam | bmlingam/commands/bmlingam_causality.py | 14318 | # -*- coding: utf-8 -*-
"""Include functions used in command bin/bmlingam-causality.
"""
# Author: Taku Yoshioka
# License: MIT
from itertools import combinations
import numpy as np
from os import sep
import pandas as pd
from argparse import ArgumentParser
from bmlingam import load_data, define_hparam_searchspace, ... | mit |
plt-tud/PLT_MRT_ARM-RPi2 | Vorlesungsbeispiele/MRT2_VL-8_OPCUA_FirstSteps_PiServer/OPCUA_FirstSteps_piServer.cpp | 1565 | /*
Copyright (c) 2019 Chris Iatrou <chris_paul.iatrou@tu-dresdden.de>
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... | mit |
sdvincent/xacmlAuthProject | xacmlEngine/Target.php | 960 | <?php
//namespace Xacmlphp;
/**
* Rule target containing Match set
*
* @package Xacmlphp
*/
class Target
{
/**
* Set of Matches for a Target
*
* @var array
*/
private $matches = array();
/**
* Add a new Match to the Target set
*
* @param Match $match Match instance
... | mit |
LorenVS/bacstack | BACnet.Ashrae/Generated/EventParameter.cs | 22228 | using System;
using BACnet.Types;
using BACnet.Types.Schemas;
namespace BACnet.Ashrae
{
public abstract partial class EventParameter
{
public abstract Tags Tag { get; }
public bool IsChangeOfBitstring { get { return this.Tag == Tags.ChangeOfBitstring; } }
public ChangeOfBitstring AsChangeOfBitstring { get {... | mit |
neurospeech/xamarin-ui-atoms-samples | ListView/ViewModels/ListViewMultipleSelectionPageViewModel.cs | 1143 | using NeuroSpeech.UIAtoms;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using UIAtomsDemo.RestServices;
using UIAtomsDemo.RestServices.Models;
namespace ListView.ViewModels
{
public class ListViewMultipleSelectionPageViewModel : AtomViewModel
{
publi... | mit |
orangemug/sql-stamp | test/issues/15/index.js | 611 | var assert = require("assert");
var sqlStamp = require("../../../");
var util = require("../../util");
var results = util.readSync([
"./out.sql"
], __dirname);
describe("issue #15", function() {
var tmpl;
before(function() {
return sqlStamp([__dirname+"/in.sql"], {})
.then(function(_tmpl... | mit |
stephaneAG/Android_tests | TefServices/src/com/example/tefservices/MyServices.java | 15421 | package com.example.tefservices;
import android.app.Activity;
import android.app.PendingIntent;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import andr... | mit |
skratchdot/audio-automator | src/app/routes/index.js | 687 | import React from 'react';
import { Route } from 'react-router';
import App from '../containers/App';
const packageInfo = require('../../../package.json');
// pages
import NotFound from '../pages/NotFound';
import Home from '../pages/Home';
import About from '../pages/About';
import Demo from '../pages/Demo';
const r... | mit |
xesscorp/skidl | skidl/libs/ir_sklib.py | 8735 | from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib
SKIDL_lib_version = '0.0.1'
ir = SchLib(tool=SKIDL).add_parts(*[
Part(name='AUIPS7111S',dest=TEMPLATE,tool=SKIDL,keywords='Current Sense,High Side Switch',description='Current Sense With High Side Switch 24V/30A, D2PAK-5L',ref_prefix='U',num_units=1,fplist=... | mit |
jirutka/gitlabhq | app/presenters/member_presenter.rb | 720 | # frozen_string_literal: true
class MemberPresenter < Gitlab::View::Presenter::Delegated
presents :member
def access_level_roles
member.class.access_level_roles
end
def can_resend_invite?
invite? &&
can?(current_user, admin_member_permission, source)
end
def can_update?
can?(current_us... | mit |
LatoTeam/lato_swpmanager | app/models/lato_swpmanager/application_record.rb | 110 | module LatoSwpmanager
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
end
| mit |
GunnarJ1/LD-38 | src/tek/render/TextureSheet.java | 2418 | package tek.render;
import java.util.ArrayList;
import org.joml.Vector2f;
public class TextureSheet {
public static ArrayList<TextureSheet> sheets;
static {
sheets = new ArrayList<TextureSheet>();
}
public final String name;
public final Texture texture;
public final int subWidth, subHeight;
public f... | mit |
orocrm/platform | src/Oro/Bundle/UserBundle/Tests/Unit/Validator/PasswordComplexityValidatorTest.php | 12230 | <?php
namespace Oro\Bundle\UserBundle\Tests\Unit\Validator;
use Oro\Bundle\ConfigBundle\Config\ConfigManager;
use Oro\Bundle\UserBundle\Provider\PasswordComplexityConfigProvider;
use Oro\Bundle\UserBundle\Validator\Constraints\PasswordComplexity;
use Oro\Bundle\UserBundle\Validator\PasswordComplexityValidator;
use Sy... | mit |
seancdavis/sitetap | lib/sitetap.rb | 73 | require "sitetap/version"
module Sitetap
# Your code goes here...
end
| mit |
asafcarmel/sports_data_api | lib/sports_data_api.rb | 1710 | require "sports_data_api/version"
require "nokogiri"
require "rest_client"
require "time"
require "json"
module SportsDataApi
def self.key(sport)
@key ||= {}
@key[sport] ||= ''
@key[sport]
end
def self.set_key(sport, new_key)
@key ||= {}
@key[sport] = new_key
end
def self.access_level(s... | mit |
ASP-NET-Core-Boilerplate/Framework | Source/Boxed.AspNetCore.Swagger/SchemaFilters/JsonPatchDocumentSchemaFilter.cs | 3349 | namespace Boxed.AspNetCore.Swagger.SchemaFilters
{
using System;
using Microsoft.AspNetCore.JsonPatch;
using Swashbuckle.AspNetCore.Swagger;
using Swashbuckle.AspNetCore.SwaggerGen;
using Operation = Microsoft.AspNetCore.JsonPatch.Operations.Operation;
/// <summary>
/// Shows an ex... | mit |
selvasingh/azure-sdk-for-java | sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRuleCondition.java | 4241 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.j... | mit |
myt00seven/svrg | para_gpu/train_funcs.py | 5615 | import glob
import time
import os
import numpy as np
import hickle as hkl
from proc_load import crop_and_mirror
def proc_configs(config):
if not os.path.exists(config['weights_dir']):
os.makedirs(config['weights_dir'])
print "Creat folder: " + config['weights_dir']
return config
def unpa... | mit |
webforceindonesia/chemistryfairUI | application/models/Email_model.php | 8908 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Email_model extends CI_Model {
public function __construct ()
{
//Call Parent Constructor
parent::__construct();
}
public function contactus ($data)
{
$subject = "Kontak Peserta";
$headers = "From: kontak-kami@chemistryfair-... | mit |
miyakawataku/pubsubtaskrunner | handler_test.go | 13607 | package main
import (
"bytes"
"errors"
"io"
"io/ioutil"
"os"
"sync"
"testing"
"time"
"cloud.google.com/go/pubsub"
"golang.org/x/net/context"
)
// test handleTillShutdown
func makeHandleSingleTaskFunc(callCount *int, actions []handleSingleTaskFunc) handleSingleTaskFunc {
return func(handler *taskHandler, ... | mit |
iwelina-popova/EShipmentSystem | EShipmentSystem/EShipmentSystem.Web/wwwroot/app/app.module.ts | 462 | import { NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
@NgModule({
imports: [
BrowserModule,
FormsModule,
... | mit |
xuan6/admin_dashboard_local_dev | node_modules/react-icons-kit/md/ic_format_quote.js | 253 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var ic_format_quote = exports.ic_format_quote = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z" } }] }; | mit |
takeshik/yacq | Yacq/LanguageServices/Grammar.cs | 25233 | // -*- mode: csharp; encoding: utf-8; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
// $Id$
/* YACQ <http://yacq.net/>
* Yet Another Compilable Query Language, based on Expression Trees API
* Copyright © 2011-2013 Takeshi KIRIYA (aka takeshik) <takeshik@yacq.net>
* All rights reserved.
*
* This f... | mit |
wwood/bioruby-kmer_counter | test/helper.rb | 496 | require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'test/unit'
require 'shoulda'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__),... | mit |