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 |
|---|---|---|---|---|---|
'use strict';
var clear = require('es5-ext/array/#/clear')
, eIndexOf = require('es5-ext/array/#/e-index-of')
, setPrototypeOf = require('es5-ext/object/set-prototype-of')
, callable = require('es5-ext/object/valid-callable')
, d = require('d')
, ee = require('ev... | Socratacom/socrata-europe | wp-content/themes/sage/node_modules/asset-builder/node_modules/main-bower-files/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/unique-stream/node_modules/es6-set/polyfill.js | JavaScript | gpl-2.0 | 2,730 |
'use strict';
const TYPE = Symbol.for('type');
class Data {
constructor(options) {
// File details
this.filepath = options.filepath;
// Type
this[TYPE] = 'data';
// Data
Object.assign(this, options.data);
}
}
module.exports = Data;
| mshick/velvet | core/classes/data.js | JavaScript | isc | 266 |
package sodium
// #cgo pkg-config: libsodium
// #include <stdlib.h>
// #include <sodium.h>
import "C"
func RuntimeHasNeon() bool {
return C.sodium_runtime_has_neon() != 0
}
func RuntimeHasSse2() bool {
return C.sodium_runtime_has_sse2() != 0
}
func RuntimeHasSse3() bool {
return C.sodium_runtime_has_sse3() != 0
... | GoKillers/libsodium-go | sodium/runtime.go | GO | isc | 322 |
<?php
interface Container {
/**
* Checks if a $x exists.
*
* @param unknown $x
*
* @return boolean
*/
function contains($x);
} | guide42/php-immutable | src/base.php | PHP | isc | 165 |
angular.module('appTesting').service("LoginLocalStorage", function () {
"use strict";
var STORE_NAME = "login";
var setUser = function setUser(user) {
localStorage.setItem(STORE_NAME, JSON.stringify(user));
}
var getUser = function getUser() {
var storedTasks = localStorage.getIte... | pikachumetal/cursoangular05 | app/loginModule/services/localstorage.js | JavaScript | isc | 515 |
/* eslint-disable no-console */
const buildData = require('./build_data');
const buildSrc = require('./build_src');
const buildCSS = require('./build_css');
let _currBuild = null;
// if called directly, do the thing.
buildAll();
function buildAll() {
if (_currBuild) return _currBuild;
return _currBuild =
P... | kartta-labs/iD | build.js | JavaScript | isc | 591 |
function LetterProps(o, sw, sc, fc, m, p) {
this.o = o;
this.sw = sw;
this.sc = sc;
this.fc = fc;
this.m = m;
this.p = p;
this._mdf = {
o: true,
sw: !!sw,
sc: !!sc,
fc: !!fc,
m: true,
p: true,
};
}
LetterProps.prototype.update = function (o, sw, sc, fc, m, p) {
... | damienmortini/dlib | node_modules/lottie-web/player/js/utils/text/LetterProps.js | JavaScript | isc | 1,212 |
/*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2014 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
* permission notice appear in all copies.
... | DanielAeolusLaude/DPF-NTK | distrho/src/DistrhoPluginLV2export.cpp | C++ | isc | 16,790 |
// The following are instance methods and variables
var Note = Class.create({
initialize: function(id, is_new, raw_body) {
if (Note.debug) {
console.debug("Note#initialize (id=%d)", id)
}
this.id = id
this.is_new = is_new
this.document_observers = [];
// Cache the elements
this.ele... | rhaphazard/moebooru | lib/assets/javascripts/moe-legacy/notes.js | JavaScript | isc | 21,067 |
// Copyright (c) 2021 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package indexers
import (
"context"
"fmt"
"sync"
"sync/atomic"
"github.com/decred/dcrd/blockchain/v4/internal/progresslog"
"github.com/decred/dcrd/database/v3"
"github... | decred/dcrd | blockchain/indexers/indexsubscriber.go | GO | isc | 10,267 |
describe('dJSON', function () {
'use strict';
var chai = require('chai');
var expect = chai.expect;
var dJSON = require('../lib/dJSON');
var path = 'x.y["q.{r}"].z';
var obj;
beforeEach(function () {
obj = {
x: {
y: {
'q.{r}': {
z: 635
},
q: {... | bsander/dJSON | test/dJSON.spec.js | JavaScript | isc | 3,391 |
/**
* The MIT License Copyright (c) 2015 Teal Cube Games
*
* 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, modi... | TealCube/strife | src/main/java/land/face/strife/managers/CombatStatusManager.java | Java | isc | 2,828 |
from django import forms
from django.core.exceptions import ValidationError
from django.core.validators import validate_slug
from django.db import models
from django.utils import simplejson as json
from django.utils.text import capfirst
from django.utils.translation import ugettext_lazy as _
from philo.forms.fields im... | ithinksw/philo | philo/models/fields/__init__.py | Python | isc | 4,971 |
<?php
/**
* Time Controller
*
* @package Argentum
* @author Argentum Team
* @copyright (c) 2008 Argentum Team
* @license http://www.argentuminvoice.com/license.txt
*/
class Time_Controller extends Website_Controller {
/**
* Creates a new time block on a ticket
*/
public function add($ticket_id)
{
... | la5942/argentum-invoice | application/controllers/admin/time.php | PHP | isc | 1,554 |
var fusepm = require('./fusepm');
module.exports = fixunoproj;
function fixunoproj () {
var fn = fusepm.local_unoproj(".");
fusepm.read_unoproj(fn).then(function (obj) {
var inc = [];
if (obj.Includes) {
var re = /\//;
for (var i=0; i<obj.Includes.length;i++) {
if (obj.Includes[i] === '*') {
inc.... | bolav/fusepm | lib/fixunoproj.js | JavaScript | isc | 752 |
import mod437 from './mod437';
var value=mod437+1;
export default value;
| MirekSz/webpack-es6-ts | app/mods/mod438.js | JavaScript | isc | 73 |
const defaults = {
base_css: true, // the base dark theme css
inline_youtube: true, // makes youtube videos play inline the chat
collapse_onebox: true, // can collapse
collapse_onebox_default: false, // default option for collapse
pause_youtube_on_collapse: true, // default option for pausing yo... | rlemon/se-chat-dark-theme-plus | script.js | JavaScript | isc | 4,901 |
'use strict';
const expect = require('expect.js');
const http = require('http');
const express = require('express');
const linkCheck = require('../');
describe('link-check', function () {
this.timeout(2500);//increase timeout to enable 429 retry tests
let baseUrl;
let laterCustomRetryCounter;
befor... | tcort/link-check | test/link-check.test.js | JavaScript | isc | 18,014 |
function daysLeftThisWeek (date) {
return 6 - date.getDay()
}
module.exports = daysLeftThisWeek
| akileez/toolz | src/date/daysLeftThisWeek.js | JavaScript | isc | 99 |
import hashlib
import json
import logging
import os
import subprocess
import sys
import time
from collections import defaultdict
from shutil import copy
from shutil import copyfile
from shutil import copystat
from shutil import copytree
from tempfile import mkdtemp
import boto3
import botocore
import yaml
import sys
... | nficano/python-lambda | aws_lambda/aws_lambda.py | Python | isc | 26,779 |
# Copyright (c) 2015, Max Fillinger <max@max-fillinger.net>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND... | mfil/getebook | getebook/epub.py | Python | isc | 25,314 |
package minecraft
import (
"testing"
"vimagination.zapto.org/minecraft/nbt"
)
func TestNew(t *testing.T) {
biomes := make(nbt.ByteArray, 256)
biome := int8(-1)
blocks := make(nbt.ByteArray, 4096)
add := make(nbt.ByteArray, 2048)
data := make(nbt.ByteArray, 2048)
for i := 0; i < 256; i++ {
biomes[i] = biome... | MJKWoolnough/minecraft | chunk_test.go | GO | isc | 7,980 |
using System.Collections.Generic;
namespace ConsoleDemo.Visitor.v0
{
public class CommandsManager
{
readonly List<object> items = new List<object>();
// The client class has a structure (a list in this case) of items (commands).
// The client knows how to iterate through the structure... | iQuarc/Code-Design-Training | DesignPatterns/ConsoleDemo/Visitor/v0/CommandsManager.cs | C# | mit | 440 |
var contenedor = {};
var json = [];
var json_active = [];
var timeout;
var result = {};
$(document).ready(function() {
$('#buscador').keyup(function() {
if (timeout) {
clearTimeout(timeout);
timeout = null;
}
timeout = setTimeout(function() {... | mpandolfelli/papelera | js/function.js | JavaScript | mit | 5,520 |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license a... | levfurtado/scoops | vendor/bombayworks/zendframework1/library/Zend/Gdata/YouTube/Extension/Username.php | PHP | mit | 1,488 |
module V1
class EventUserSchedulesController < ApplicationController
before_action :set_event_session, only: [:create]
# POST /event_user_schedules
def create
@event_user_schedule = current_user.add_session_to_my_schedule(@event_session)
if @event_user_schedule.save
render json: @e... | danjohnson3141/rest_api | app/controllers/v1/event_user_schedules_controller.rb | Ruby | mit | 1,200 |
package com.jeecg.qywx.core.service;
import com.jeecg.qywx.base.entity.QywxReceivetext;
/**
* 文本处理接口
* @author 付明星
*
*/
public interface TextDealInterfaceService {
/**
* 文本消息处理接口
* @param receiveText 文本消息实体类
*/
void dealTextMessage(QywxReceivetext receiveText);
}
| xiongmaoshouzha/test | jeecg-p3-biz-qywx/src/main/java/com/jeecg/qywx/core/service/TextDealInterfaceService.java | Java | mit | 326 |
<?php namespace EugeneTolok\Telegram\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class BuilderTableUpdateEugenetolokTelegramDialogsSteps2 extends Migration
{
public function up()
{
Schema::table('eugenetolok_telegram_dialogs_steps', function($table)
{
$tab... | eugenetolok/easy-telegram-bot | updates/builder_table_update_eugenetolok_telegram_dialogs_steps_2.php | PHP | mit | 553 |
import React from 'react';
import ons from 'onsenui';
import {
Page,
Toolbar,
BackButton,
LazyList,
ListItem
} from 'react-onsenui';
class InfiniteScroll extends React.Component {
renderRow(index) {
return (
<ListItem key={index}>
{'Item ' + (index + 1)}
</ListItem>
);
}
r... | gnetsys/OnsenUIv2-React-PhoneGap-Starter-Kit | www/components/InfiniteScroll.js | JavaScript | mit | 854 |
/**
* 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.
*/
package com.microsoft.azure.management.datafactory.v2018_06_01;
import com.fasterxml.ja... | selvasingh/azure-sdk-for-java | sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleCloudStorageLocation.java | Java | mit | 2,402 |
$js.module({
prerequisite:[
'/{$jshome}/modules/splice.module.extensions.js'
],
imports:[
{ Inheritance : '/{$jshome}/modules/splice.inheritance.js' },
{'SpliceJS.UI':'../splice.ui.js'},
'splice.controls.pageloader.html'
],
definition:function(){
var scope = this;
var
imports = scope.imports
;
var
Class =... | jonahgroup/SpliceJS.Modules | src/ui.controls/splice.controls.pageloader.js | JavaScript | mit | 545 |
RSpec.describe AuthorizeIf do
let(:controller) {
double(:dummy_controller, controller_name: "dummy", action_name: "index").
extend(AuthorizeIf)
}
describe "#authorize_if" do
context "when object is given" do
it "returns true if truthy object is given" do
expect(controller.authorize_if(t... | vrybas/authorize_if | spec/authorize_if_spec.rb | Ruby | mit | 3,092 |
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("34... | steliyan/ProjectEuler | 34_FactorialSum/Properties/AssemblyInfo.cs | C# | mit | 1,406 |
namespace MyColors
{
partial class SimpleToolTip
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <p... | cborrow/MyColors | SimpleToolTip.Designer.cs | C# | mit | 2,497 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | PFC-acl-amg/GamaPFC | GamaPFC/Gama.Atenciones.Wpf/Views/SearchBoxView.xaml.cs | C# | mit | 663 |
<?php
namespace Terrific\Composition\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\SerializerBundle\Annotation\ReadOnly;
use JMS\SerializerBundle\Annotation\Type;
use JMS\SerializerBundle\Annotation\Exclude;
use JMS\SerializerBundle\Annotation\Groups;
use JMS\SerializerBundle\Annotation\Accessor;
/**
... | brunschgi/terrific-io-old | src/Terrific/Composition/Entity/Module.php | PHP | mit | 5,480 |
using System;
using System.Collections;
using System.Linq;
using Xunit;
namespace Popsql.Tests
{
public class SqlValuesTests
{
[Fact]
public void Add_WithNullValues_ThrowsArgumentNull()
{
var values = new SqlValues();
Assert.Throws<ArgumentNullException>(() => values.Add(null));
}
[Fact]
public v... | WouterDemuynck/popsql | src/Popsql.Tests/SqlValuesTests.cs | C# | mit | 1,149 |
package se.dsv.waora.deviceinternetinformation;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.widget.TextView;
/**
* <code>ConnectionActivity</code> presents... | dushantSW/ip-mobile | 7.3.1/DeviceInternetInformation/app/src/main/java/se/dsv/waora/deviceinternetinformation/ConnectionActivity.java | Java | mit | 2,212 |
'use babel';
import MapQueries from '../lib/map-queries';
// Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs.
//
// To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit`
// or `fdescribe`). Remove the `f` to unfocus the block.
describe('MapQueries', () => {
let wor... | shamshoum/map-queries | spec/map-queries-spec.js | JavaScript | mit | 2,710 |
package com.github.kwoin.kgate.core.sequencer;
import com.github.kwoin.kgate.core.message.Message;
import com.github.kwoin.kgate.core.session.Session;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Nullable;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import jav... | Kwoin/KGate | kgate-core/src/main/java/com/github/kwoin/kgate/core/sequencer/AbstractSequencer.java | Java | mit | 3,496 |
/*!
* jQuery JavaScript Library v1.8.3 -css,-effects,-offset,-dimensions
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Mon Nov 19 2012 11:58:00 GMT-0800 (PST... | alexoldenburg/subzero | node_modules/grunt-requirejs/node_modules/grunt-jquerybuilder/node_modules/jquery-builder/dist/1.8.3/jquery-css.js | JavaScript | mit | 215,458 |
module Discordrb::Webhooks
# An embed is a multipart-style attachment to a webhook message that can have a variety of different purposes and
# appearances.
class Embed
def initialize(title: nil, description: nil, url: nil, timestamp: nil, colour: nil, color: nil, footer: nil,
image: nil, th... | Roughsketch/discordrb | lib/discordrb/webhooks/embeds.rb | Ruby | mit | 7,499 |
var config = require('./config');
var express = require('express');
var superagent = require('superagent');
/**
* Auth Token
*/
var authToken = null;
var expires = 0;
var expires_in = 20160; // 14 days in minutes
/**
* Urls
*/
var OAUTH = 'https://www.arcgis.com/sharing/oauth2/token';
var GEOCODE =
'http://ge... | Code4Maine/modeify | lib/geocode.js | JavaScript | mit | 5,275 |
package billing
// 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/preview/billing/mgmt/2020-05-01-preview/billing/operations.go | GO | mit | 5,145 |
import Immutable from 'immutable';
import * as ActionType from '../../actions/auth/auth';
const defaultState = Immutable.fromJS({
loggedIn: false,
});
function authReducer(state = defaultState, action) {
const {
loggedIn,
} = action;
switch (action.type) {
case ActionType.VERIFIED_LOGIN:
retu... | phillydorn/CAProject2 | app/reducers/auth/auth.js | JavaScript | mit | 439 |
package fr.pizzeria.admin.web;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
impo... | kmokili/formation-dta | pizzeria-admin-app/src/main/java/fr/pizzeria/admin/web/LoginController.java | Java | mit | 1,588 |
import { gql } from '@apollo/client'
import avatarFragment from 'v2/components/AvatarUploader/fragments/avatar'
export default gql`
query AvatarCheck {
me {
...Avatar
}
}
${avatarFragment}
`
| aredotna/ervell | src/v2/components/AvatarUploader/queries/avatar.ts | TypeScript | mit | 213 |
var PassThrough = require('stream').PassThrough
describe('Object Streams', function () {
it('should be supported', function (done) {
var app = koala()
app.use(function* (next) {
var body = this.body = new PassThrough({
objectMode: true
})
body.write({
message: 'a'
})... | francisbrito/koala | test/app/object-streams.js | JavaScript | mit | 538 |
YUI.add("inputex-inplaceedit", function(Y){
var lang = Y.Lang;//, Event = YAHOO.util.Event, Dom = YAHOO.util.Dom, CSS_PREFIX = 'inputEx-InPlaceEdit-';
/**
* Meta field providing in place editing (the editor appears when you click on the formatted value).
* @class inputEx.InPlaceEdit
* @extends inputEx.Field
*... | piercus/inputex | js/fields/InPlaceEdit.js | JavaScript | mit | 10,155 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
////////////////////////////////////////////////////////////////////////////
//
//
// Purpose: This class defines ... | Dmitry-Me/coreclr | src/mscorlib/src/System/Globalization/StringInfo.cs | C# | mit | 14,973 |
package org.anodyneos.xp.tag.core;
import javax.servlet.jsp.el.ELException;
import org.anodyneos.xp.XpException;
import org.anodyneos.xp.XpOutput;
import org.anodyneos.xp.tagext.XpTagSupport;
import org.xml.sax.SAXException;
/**
* @author jvas
*/
public class DebugTag extends XpTagSupport {
public DebugTag() ... | jvasileff/aos-xp | src.java/org/anodyneos/xp/tag/core/DebugTag.java | Java | mit | 679 |
class SessionsController < ApplicationController
before_filter :authenticate_user, :only => [:home, :profile, :setting]
before_filter :save_login_state, :only => [:login, :login_attempt]
def login
end
def login_attempt
authorized_user = User.authenticate(params[:username_or_email],params[:login_password])
if au... | app-man/LoginEasy | app/controllers/sessions_controller.rb | Ruby | mit | 1,156 |
import numpy as np
import pandas as pd
from pandas import Series, DataFrame
from scipy.spatial import distance
import matplotlib.pyplot as plt
from sklearn.cluster import DBSCAN
from sklearn import metrics
from sklearn.datasets.samples_generator import make_blobs
from sklearn.preprocessing import StandardScaler
from s... | banacer/door-wiz | src/identification/Identifier.py | Python | mit | 1,449 |
<?php
/* TwigBundle:Exception:traces.html.twig */
class __TwigTemplate_034400bfb816a72b7b3da36dd2d8e07ee89621bac614688be25a4e8ff872b3ad extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(... | JoseGMaestre/Cupon_check | app/cache/dev/twig/9e/9e7ec4c116a05cf87d6dedc6906bdf1b530cafcee29ed870fee22e6360fa5e44.php | PHP | mit | 8,589 |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | ng2-slavs/Sportsemblr | public/app/pipes/remainingTimePipe.js | JavaScript | mit | 4,775 |
/* eslint-disable import/no-extraneous-dependencies,import/no-unresolved */
import React, { useState } from 'react';
import { Form } from 'react-bootstrap';
import { Typeahead } from 'react-bootstrap-typeahead';
/* example-start */
const options = [
'Warsaw',
'Kraków',
'Łódź',
'Wrocław',
'Poznań',
'Gdańsk... | ericgio/react-bootstrap-typeahead | example/src/examples/FilteringExample.js | JavaScript | mit | 1,572 |
@extends('layouts.app')
@section('content')
<div class="container-fluid">
<div class="row">
<div class="panel panel-default">
<div class="panel-heading" style="padding-bottom: 40px;">PREVIEW
<div class="col-xs-3 pull-right">
<a href="/ssearch">... | ayoshoks/ncs | resources/views/search/specific_result.blade.php | PHP | mit | 3,877 |
export default {
hello : "hello"
};
| hasangilak/react-multilingual | example/locales/en.js | JavaScript | mit | 37 |
using System.Collections.Generic;
using UnityEngine;
using System;
namespace AI
{
public class GreedyAIController : PlayerController
{
enum NextState
{
Wait, Draw, Play
}
private NextState nextState;
Dictionary<DominoController, List<DominoController>> place... | hahamty/Dominoes | Game/Assets/Scripts/AI/GreedyAIController.cs | C# | mit | 14,285 |
package com.codenotfound.endpoint;
import java.math.BigInteger;
import org.example.ticketagent.ObjectFactory;
import org.example.ticketagent.TFlightsResponse;
import org.example.ticketagent.TListFlights;
import org.example.ticketagent_wsdl11.TicketAgent;
public class TicketAgentImpl implements TicketAgent {
@Over... | code-not-found/jaxws-cxf | jaxws-cxf-digital-signature/src/main/java/com/codenotfound/endpoint/TicketAgentImpl.java | Java | mit | 588 |
/*
The MIT License (MIT)
Copyright (c) 2014 Mehmetali Shaqiri (mehmetalishaqiri@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 without restriction, including with... | spartanbeg/OpenVPN-Event-Viewer | openvpn.api/openvpn.api/Controllers/UsersController.cs | C# | mit | 3,668 |
name 'google_app_engine'
description 'A cookbook to download and install the google app engine SDK on a Linux system.'
version '1.0.0'
maintainer 'Bernd Hoffmann'
maintainer_email 'info@gebeat.com'
license 'MIT'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.... | GeBeater/gae-cookbook | metadata.rb | Ruby | mit | 325 |
TaskManager.module('ContentModule.List', function (List, App, Backbone) {
'use strict';
List.Controller = Marionette.Controller.extend({
initialize: function (options) {
var tasksList = App.request('taskList'),
listView = this.getView(tasksList);
if (options.region) {
this.region = options.region;
... | vlyahovich/Task-Manager | src/js/modules/content/list/listController.js | JavaScript | mit | 499 |
namespace SharedWeekends.MVC.Areas.Administration.Controllers
{
using System.Web.Mvc;
using SharedWeekends.Data;
using SharedWeekends.MVC.Controllers;
[Authorize(Roles = "admin")]
public abstract class AdminController : BaseController
{
public AdminController(IWeekendsData data)
... | kalinalazarova1/SharedWeekends | SharedWeekends.MVC/Areas/Administration/Controllers/AdminController.cs | C# | mit | 369 |
'use strict';
var Project = require('ember-cli/lib/models/project');
function MockProject() {
var root = process.cwd();
var pkg = {};
Project.apply(this, [root, pkg]);
}
MockProject.prototype.require = function(file) {
if (file === './server') {
return function() {
return {
listen: functio... | mattjmorrison/ember-cli-testem | tests/helpers/mock-project.js | JavaScript | mit | 1,206 |
'use strict';
function NavalMap(canvasId, imageMapUrl, imageCompassUrl, config) {
this.canvas = document.getElementById(canvasId);
this.imageMap = new Image();
this.imageCompass = new Image();
this.config = config;
this.itemsLoaded = false;
this.nationsLoaded = false;
this.shopsLoaded = fal... | Rodrive/na-map | js/map.js | JavaScript | mit | 15,072 |
import _curry2 from "./_curry2";
/**
* Accepts an object and build a function expecting a key to create a "pair" with the key
* and its value.
* @private
* @function
* @param {Object} obj
* @returns {Function}
*/
var _keyToPairIn = _curry2(function (obj, key) {
return [key, obj[key]];
});
export default _k... | ascartabelli/lamb | src/privates/_keyToPairIn.js | JavaScript | mit | 332 |
'use strict';
/**
* The basic http module, used to create the server.
*
* @link http://nodejs.org/api/http.html
*/
alchemy.use('http', 'http');
/**
* This module contains utilities for handling and transforming file paths.
* Almost all these methods perform only string transformations.
* The file system is n... | skerit/alchemy | lib/init/requirements.js | JavaScript | mit | 2,142 |
package com.eaw1805.data.model.map;
import com.eaw1805.data.constants.RegionConstants;
import com.eaw1805.data.model.Game;
import java.io.Serializable;
/**
* Represents a region of the world.
*/
public class Region implements Serializable {
/**
* Required by Serializable interface.
*/
static fin... | EaW1805/data | src/main/java/com/eaw1805/data/model/map/Region.java | Java | mit | 7,717 |
/**
* Copyright (c) 2015, Alexander Orzechowski.
*
* 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, ... | Need4Speed402/tessellator | src/model/modules/DrawObject.js | JavaScript | mit | 1,391 |
#!-*- coding:utf-8 -*-
import time
def retries(times=3, timeout=1):
"""对未捕获异常进行重试"""
def decorator(func):
def _wrapper(*args, **kw):
att, retry = 0, 0
while retry < times:
retry += 1
try:
return func(*args, **kw)
... | wanghuafeng/spider_tools | decorator.py | Python | mit | 1,524 |
#region License
// Distributed under the MIT License
// ============================================================
// Copyright (c) 2019 Hotcakes Commerce, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software")... | HotcakesCommerce/core | Libraries/Hotcakes.Commerce.Dnn/DnnConfigurationManager.cs | C# | mit | 2,605 |
<!--
Safe sample
input : backticks interpretation, reading the file /tmp/tainted.txt
SANITIZE : use of preg_replace with another regex
File : use of untrusted data in one side of a quoted expression in a script
-->
<!--Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royal... | stivalet/PHP-Vulnerability-test-suite | XSS/CWE_79/safe/CWE_79__backticks__func_preg_replace2__Use_untrusted_data_script-side_Quoted_Expr.php | PHP | mit | 1,351 |
var crypto = require('crypto');
var lob = require('lob-enc')
var hashname = require('hashname');
var log = require("./log")("Handshake")
module.exports = {
bootstrap : handshake_bootstrap,
validate : handshake_validate,
from : handshake_from,
types : handshake_types,
collect : handshake_collect
}... | telehash/telehash-js | lib/util/handshake.js | JavaScript | mit | 4,311 |
'use strict';
/* https://github.com/angular/protractor/blob/master/docs/toc.md */
describe('my app', function() {
browser.get('index.html');
it('should automatically redirect to /home when location hash/fragment is empty', function() {
expect(browser.getLocationAbsUrl()).toMatch("/home");
});
describe... | Mschmidt19/MarekSchmidt.com | e2e-tests/scenarios.js | JavaScript | mit | 927 |
function RenderPassManager(renderer)
{
// not implemented yet
throw "Not implemented";
var mRenderPasses = [];
return this;
}
RenderPassManager.prototype.addRenderPass = function(renderPass)
{
mRenderPasses.push(renderPass);
};
RenderPassManager.prototype.render = function()
{
for(var renderPass i... | RuggeroVisintin/SparkPreviewer | src/js/core/Renderer/RenderPassManager.js | JavaScript | mit | 426 |
package com.malalaoshi.android.ui.dialogs;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.widg... | malaonline/Android | app/src/main/java/com/malalaoshi/android/ui/dialogs/CommentDialog.java | Java | mit | 10,909 |
#!/usr/bin/env node
var path = require('path');
var fs = require('fs');
var optimist = require('optimist');
var prompt = require('prompt');
var efs = require('efs');
var encext = require('./index');
var defaultAlgorithm = 'aes-128-cbc';
var argv = optimist
.usage('usage: encext [-r] [-a algorithm] [file ...]')
.d... | kunklejr/node-encext | cli.js | JavaScript | mit | 1,910 |
using CertificateManager.Entities;
using CertificateManager.Entities.Interfaces;
using System.Collections.Generic;
using System.Security.Claims;
namespace CertificateManager.Logic.Interfaces
{
public interface IAuditLogic
{
IEnumerable<AuditEvent> GetAllEvents();
void LogSecurityAuditSuccess(C... | corymurphy/CertificateManager | CertificateManager.Logic/Interfaces/IAuditLogic.cs | C# | mit | 919 |
<?php
if (empty($content)) {
return;
}
$title = 'Bank Emulator Authorization Center';
?>
<html lang="ru">
<?=
View::make('ff-bank-em::layouts.head', array(
'title' => $title,
)); ?>
<body>
<div class="navbar navbar-default">
<?=
View::make('ff-bank-em::layouts.navbar-header', array(
'title' => $title,
)); ?>... | fintech-fab/bank-emulator | src/views/layouts/authorization.php | PHP | mit | 398 |
export function wedgeYZ(a, b) {
return a.y * b.z - a.z * b.y;
}
export function wedgeZX(a, b) {
return a.z * b.x - a.x * b.z;
}
export function wedgeXY(a, b) {
return a.x * b.y - a.y * b.x;
}
| geometryzen/davinci-newton | build/module/lib/math/wedge3.js | JavaScript | mit | 204 |
module Mlblog
VERSION = "0.0.1"
end
| DevMpl/mlblog | lib/mlblog/version.rb | Ruby | mit | 38 |
package cloudformation
// AWSECSService_DeploymentConfiguration AWS CloudFormation Resource (AWS::ECS::Service.DeploymentConfiguration)
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-deploymentconfiguration.html
type AWSECSService_DeploymentConfiguration struct {
// ... | minutelab/mless | vendor/github.com/awslabs/goformation/cloudformation/aws-ecs-service_deploymentconfiguration.go | GO | mit | 1,159 |
var scroungejs = require('scroungejs'),
startutils = require('./startutil');
startutils.createFileIfNotExist({
pathSrc : './test/indexSrc.html',
pathFin : './test/index.html'
}, function (err, res) {
if (err) return console.log(err);
scroungejs.build({
inputPath : [
'./test/testbuildSrc',
... | iambumblehead/bttnsys | test/testrun.js | JavaScript | mit | 654 |
var Struct = ( function()
{
return function ( members )
{
var mode = "default";
var ctor = function( values )
{
if ( mode === "new" )
{
mode = "void";
return new Struct();
}
if ( mode === "void" )
... | stephenbunch/type | src/Struct.js | JavaScript | mit | 3,084 |
var utils = require('./utils')
, request = require('request')
;
module.exports = {
fetchGithubInfo: function(email, cb) {
var githubProfile = {};
var api_call = "https://api.github.com/search/users?q="+email+"%20in:email";
var options = { url: api_call, headers: { 'User-Agent': 'Blogdown' } };
... | xdamman/blogdown | core/server/lib/contributors.js | JavaScript | mit | 1,262 |
using Radical.Reflection;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Reflection;
namespace Radical.Windows
{
static class PropertyInfoExtensions
{
public static string GetDisplayName(this PropertyInfo propertyInfo)
{
if (propertyInfo != ... | RadicalFx/Radical.Windows | src/Radical.Windows/PropertyInfoExtensions.cs | C# | mit | 801 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleCiphers.Models
{
public static class ArrayOperations
{
// Содержится ли text в encAbc. Если да, то возвращаются индексы в encAbc
// a b text = 1
// ... | slavitnas/SimpleCiphers | SimpleCiphers/Models/ArrayOperations.cs | C# | mit | 1,318 |
import java.text.NumberFormat;
// ****************************************************************
// ManageAccounts.java
// Use Account class to create and manage Sally and Joe's bank accounts
public class ManageAccounts
{
public static void main(String[] args)
{
Account acct1, acct2;
NumberFormat us... | pegurnee/2013-03-211 | workspace/Lecture 09_18_13/src/ManageAccounts.java | Java | mit | 1,595 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<?php include_http_metas() ?>
<?php include_metas() ?>
<?php include_title() ?>
</head>
<body id="body" lang="en">
<?php ... | appflower/appflower_engine | modules/appFlower/templates/layout.php | PHP | mit | 357 |
from api_request import Api
from util import Util
from twocheckout import Twocheckout
class Sale(Twocheckout):
def __init__(self, dict_):
super(self.__class__, self).__init__(dict_)
@classmethod
def find(cls, params=None):
if params is None:
params = dict()
response = ... | 2Checkout/2checkout-python | twocheckout/sale.py | Python | mit | 3,388 |
<?php
/**
* wm.class.php - window manager
*
* handles window groups and multiple gtkwindow object easily
*
* This is released under the GPL, see docs/gpl.txt for details
*
* @author Leon Pegg <leon.pegg@gmail.com>
* @author Elizabeth M Smith <emsmith@callicore.net>
* @copyright Leon Pe... | callicore/library | lib/lib/wm.class.php | PHP | mit | 4,546 |
module.exports = FormButtonsDirective;
function FormButtonsDirective () {
return {
restrict: 'AE',
replace: true,
scope: {
submitClick: '&submitClick',
cancelClick: '&cancelClick'
},
templateUrl: '/src/utils/views/formButtons.tmpl.html',
link:... | zazujs/mufasa | app/src/utils/formButtons.directive.js | JavaScript | mit | 687 |
ActionController::Routing::Routes.draw do |map|
map.resources :projects
map.resources :priorities
map.resources :tasks
# The priority is based upon order of creation: first created -> highest priority.
# Sample of regular route:
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'... | elseano/intervention | test/config/routes.rb | Ruby | mit | 1,991 |
$context.section('Простое связывание', 'Иерархическое связывание с данными с использованием простых и составных ключей');
//= require data-basic
$context.section('Форматирование', 'Механизм одностороннего связывания (one-way-binding)');
//= require data-format
$context.section('Настройка', 'Управление изменением видж... | eliace/ergojs-site | samples/core/widget/data/index.js | JavaScript | mit | 1,056 |
/*The MIT License (MIT)
Copyright (c) 2016 Muhammad Hammad
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... | hammadirshad/dvare | src/main/java/org/dvare/annotations/Type.java | Java | mit | 1,450 |
import json
import os
from flask import request, g, render_template, make_response, jsonify, Response
from helpers.raw_endpoint import get_id, store_json_to_file
from helpers.groups import get_groups
from json_controller import JSONController
from main import app
from pymongo import MongoClient, errors
HERE = os.pat... | CenterForOpenScience/scinet | scinet/views.py | Python | mit | 4,696 |
package com.arekusu.datamover.model.jaxb;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlT... | Arrekusu/datamover | components/datamover-core/src/main/java/com/arekusu/datamover/model/jaxb/ModelType.java | Java | mit | 2,303 |
<?php
namespace PragmaRX\Sdk\Services\Accounts\Exceptions;
use PragmaRX\Sdk\Core\HttpResponseException;
class InvalidPassword extends HttpResponseException {
protected $message = 'paragraphs.invalid-password';
}
| antonioribeiro/sdk | src/Services/Accounts/Exceptions/InvalidPassword.php | PHP | mit | 218 |
import React from 'react';
import './skills.scss';
export default () => {
return (
<section className="skills-section">
<svg className="bigTriangleColor separator-skills" width="100%" height="100" viewBox="0 0 100 102" preserveAspectRatio="none">
<path d="M0 0 L0 100 L70 0 L100 100 L100 0 Z" />
... | musicbender/my-portfolio | src/components/skills/skills.js | JavaScript | mit | 851 |