repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
viraj-qspl/teamQ
www/js/devjs/services.js
563
angular.module('starter.services', ['ngResource']) /** * A simple example service that returns some data. */ .factory('ListService',['$resource', function($resource) { return $resource('http://115.113.151.200:8081/user/maphook/mobile/list_trends\\/', {}, { query: {method:'GET', params:{}, isArray:false, cache:t...
mit
Gaubee/Simple-OMS
src/app/md-dev-com/core/ripple/ripple-renderer.ts
6787
import { ElementRef, } from '@angular/core'; /** TODO: internal */ export enum ForegroundRippleState { NEW, EXPANDING, FADING_OUT, } /** * Wrapper for a foreground ripple DOM element and its animation state. * TODO: internal */ export class ForegroundRipple { state = ForegroundRippleState.NEW; construc...
mit
orbingol/NURBS-Python
geomdl/linalg.py
25437
""" .. module:: linalg :platform: Unix, Windows :synopsis: Provides linear algebra utility functions .. moduleauthor:: Onur Rauf Bingol <orbingol@gmail.com> """ import os import math from copy import deepcopy from functools import reduce from .exceptions import GeomdlException from . import _linalg try: ...
mit
kicumkicum/vknplayer
app/api/index.js
304
/** * @type {{ * Api: Api, * vk: vk, * Gmusik: GMusic, * yandexMusic: yandexMusic * }} */ var api = {}; module.exports = api; api.Api = require('./lib/api'); api.vk = require('./lib/vk'); api.Gmusik = require('./lib/gmusic'); api.yandexMusic = require('./lib/yandex-music');
mit
ekzoplasm/yoxima
app/cache/prod/annotations/81f8000a42e2165862ce52927a39470968d73f82$comments.cache.php
257
<?php return unserialize('a:1:{i:0;O:30:"Doctrine\\ORM\\Mapping\\OneToMany":6:{s:8:"mappedBy";s:7:"article";s:12:"targetEntity";s:33:"yoxima\\BlogBundle\\Entity\\Comments";s:7:"cascade";N;s:5:"fetch";s:4:"LAZY";s:13:"orphanRemoval";b:0;s:7:"indexBy";N;}}');
mit
bign8/purchasing-system
src/app/security/login/toolbar.js
723
angular.module('security.login.toolbar', []) // The loginToolbar directive is a reusable widget that can show login or logout buttons // and information the current authenticated user .directive('loginToolbar', ['security', function(security) { var directive = { templateUrl: 'app/security/login/toolbar.tpl.html', ...
mit
projetCartoSavoie/carto
src/Carto/AccueilBundle/CartoAccueilBundle.php
524
<?php /** * Bundle frontal * * * @author Rémy Cluze <Remy.Cluze@etu.univ-savoie.fr> * @author Anthony Di Lisio <Anthony.Di-Lisio@etu.univ-savoie.fr> * @author Juliana Leclaire <Juliana.Leclaire@etu.univ-savoie.fr> * @author Rémi Mollard <Remi.Mollard@etu.univ-savoie.fr> * @author Céline de Roland <Celine.de-Rol...
mit
erikringsmuth/suri
app-built/bower_components/ace/lib/ace/mode/vbscript.js
2069
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2012, Ajax.org B.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of so...
mit
Haufe-Lexware/haufe.no-frills-transformation
src/NoFrillsTransformation/NoFrillsTransformation.Plugins.Salesforce.DotNet/SfdcDotNetReaderFactory.cs
2000
using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.IO; using System.Linq; using System.Text; using System.Xml.Serialization; using NoFrillsTransformation.Interfaces; using NoFrillsTransformation.Plugins.Salesforce.Config; namespace NoFrillsTransformation.Plugins.Sale...
mit
gemmaan/moviesenal
Hasil/locdetection.py
1600
import json from mpl_toolkits.basemap import Basemap tweet_files = ['hasilstreaming.json'] tweets = [] for file in tweet_files: with open(file, 'r') as f: for line in f.readlines(): tweets.append(json.loads(line)) def populate_tweet_df(tweets): df = pd.DataFrame() df['text'] =...
mit
SlonCorp/laravel-acl
src/migrations/acl/2017_04_25_092657_create_permission_role_table.php
830
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePermissionRoleTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('permission_role', function (Blueprint $table) ...
mit
uber-common/luma.gl
modules/gltools/src/index.js
653
// Installs polyfills to support a subset of WebGL2 APIs on WebGL1 contexts export {default as polyfillContext} from './polyfill/polyfill-context'; // unified parameter APIs export { getParameters, setParameters, resetParameters, withParameters } from './state-tracker/unified-parameter-api'; // state tracking...
mit
spryker/demoshop
tests/PyzTest/Zed/CmsGui/_support/CmsGuiPresentationTester.php
3606
<?php /** * This file is part of the Spryker Demoshop. * For full license information, please view the LICENSE file that was distributed with this source code. */ namespace PyzTest\Zed\CmsGui; use Codeception\Actor; use Codeception\Scenario; /** * Inherited Methods * @method void wantToTest($text) * @method v...
mit
atlascoinorg/atlas
share/qt/clean_mac_info_plist.py
891
#!/usr/bin/env python # Jonas Schnelli, 2013 # make sure the Atlas-Qt.app contains the right plist (including the right version) # fix made because of serval bugs in Qt mac deployment (https://bugreports.qt-project.org/browse/QTBUG-21267) from string import Template from datetime import date bitcoinDir = "./"; inFil...
mit
RoboAvatar65/ChessRobot
PlayerVsAi.py
5518
############################################################ ###PlayerVsAI.py Player vs computer file ### ###Written by Nicholas Maselli ### ### ### ###Purpose: Allows a player to play against a computer AI### ##...
mit
msmith491/project-euler-rust
problem_26/src/main.rs
680
use std::collections::HashSet; fn main() { fn calc_sequence(numerator: usize, denominator: usize) -> usize { let mut seq: HashSet<usize> = HashSet::new(); let mut new_num = numerator; let mut length = 0; loop { if length >= denominator { break; ...
mit
googlestadia/pal
src/core/layers/dbgOverlay/dbgOverlayImage.cpp
2117
/* *********************************************************************************************************************** * * Copyright (c) 2015-2021 Advanced Micro Devices, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associ...
mit
ignaciocases/hermeneumatics
node_modules/scala-node/main/target/streams/compile/externalDependencyClasspath/$global/package-js/extracted-jars/scalajs-library_2.10-0.4.0.jar--29fb2f8b/scala/io/BytePickle$Ref$.js
3107
/** @constructor */ ScalaJS.c.scala_io_BytePickle$Ref$ = (function() { ScalaJS.c.scala_runtime_AbstractFunction0.call(this) }); ScalaJS.c.scala_io_BytePickle$Ref$.prototype = new ScalaJS.inheritable.scala_runtime_AbstractFunction0(); ScalaJS.c.scala_io_BytePickle$Ref$.prototype.constructor = ScalaJS.c.scala_io_BytePi...
mit
Cendey/schema
scheme/src/main/java/edu/mit/lab/meta/Keys.java
7225
package edu.mit.lab.meta; import edu.mit.lab.constant.Scheme; import edu.mit.lab.infts.IRelevance; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.reflections.ReflectionUtils; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.M...
mit
lyuboasenov/scheduler
packages/AForge.NET Framework-2.2.5/Unit Tests/AForge.Math.Tests/Geometry/SimpleShapeCheckerTest.cs
14837
using System; using System.Collections.Generic; using AForge; using AForge.Math.Geometry; using MbUnit.Framework; namespace AForge.Math.Geometry.Tests { [TestFixture] public class SimpleShapeCheckerTest { private SimpleShapeChecker shapeChecker = new SimpleShapeChecker( ); pr...
mit
synaq/SynaqZasaBundle
DependencyInjection/Configuration.php
1484
<?php namespace Synaq\ZasaBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and merges configuration from your app/config files * * To learn more see {@link http://symfony....
mit
VizArtJS/vizart-basic
src/axis/is-tick-div.js
95
const isTickDiv = (data, units) => (data.length - 1) % units === 0; export default isTickDiv;
mit
ajlopez/SimpleMongo
test/findOne.js
1873
var collections = require('../lib/collections'); exports['null in empty collection'] = function (test) { var collection = collections.createCollection('people'); var doc = collection.findOne(); test.equal(doc, null); } exports['find one document'] = function (test) { var collection = collections.cre...
mit
gabrieldodan/php-dancer
system/libraries/SwiftMailer/lib/classes/Swift/Transport/SimpleMailInvoker.php
1553
<?php /* Invokes the mail() function in Swift Mailer. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This ...
mit
SPDEVGUY/Multi-device-network-controller
NetworkController.Server.Logic/Broadcaster.cs
6428
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; using System.Threading.Tasks; using NetworkController.Logic.Controller; using NetworkController.Logic.Plugin.Interfaces; using NetworkController.Server.Logic.Communi...
mit
Leviyu/Maligaro
cpp_lib/01_cpp_lib/tx2011.cpp
6143
#include "hongyulibcpp.h" /************************************************************* * This C function is a 1D reference earth model for TX2011 tomography * INPUT * double depth; * * OUTPUT * double* vs * * Hongyu DATE: June 20 2014 * Key words: prem vs vp out ***************************************************...
mit
DanielAmah/eDocCabinet
server/middleware/authentication.js
1128
import jwt from 'jsonwebtoken'; require('dotenv').config(); const authentication = { /** * verifyToken: This verifies all routes that starts with /api * It checks if there is token and check if the token is valid * if the token is valid, then it decodes it and send to the next route * @function verifyUse...
mit
reflectoring/coderadar
coderadar-ui/src/app/city-map/autosuggest-wrapper/autosuggest-wrapper.component.spec.ts
1088
import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {AutosuggestWrapperComponent} from './autosuggest-wrapper.component'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {MatAutocompleteModule, MatFormFieldModule, MatInputModule} from '@angular/material'; import {Brow...
mit
leventgunay/experimental
cakemake/src/main/java/org/basesource/cakemake/domain/User.java
1482
package org.basesource.cakemake.domain; import java.util.ArrayList; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import ja...
mit
n-pigeon/godot
core/variant.cpp
68119
/*************************************************************************/ /* variant.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
mit
pmq20/ruby-compiler
ruby/lib/rubygems/commands/build_command.rb
2702
# frozen_string_literal: true require 'rubygems/command' require 'rubygems/package' class Gem::Commands::BuildCommand < Gem::Command def initialize super 'build', 'Build a gem from a gemspec' add_option '--force', 'skip validation of the spec' do |value, options| options[:force] = true end a...
mit
lodemo/CATANA
src/face_recognition/MtcnnModel.py
794
# -*- coding: utf-8 -*- ''' Model file module, so that model files are only loaded once when imported ''' import os import sys import tensorflow as tf from facenet.src import facenet from facenet.src.align import detect_face fileDir = os.path.dirname(os.path.realpath(__file__)) facenetDir = os.path.join(fileDir, ...
mit
mmckegg/mutant
lib/release-next-tick.js
321
var queue = [] module.exports = function (item) { if (queue.length === 0) { setImmediate(flush) } queue.push(item) } function flush () { while (queue.length) { var item = queue.pop() if (!item.bound && typeof item.release === 'function') { item.release() item.release = null } } }...
mit
fgrid/iso20022
CashOption10.go
2937
package iso20022 // Provides information about the cash option. type CashOption10 struct { // Indicates whether the value is a debit or a credit. CreditDebitIndicator *CreditDebitCode `xml:"CdtDbtInd"` // Specifies information regarding outturn resources that cannot be processed by the Central Securities Deposito...
mit
artofhuman/django-youtube-wrapper
youtube_wrapper/tests/test_field.py
1851
# coding: utf-8 from django.test import TestCase from django import forms from django.db import models from ..fields import YoutubeField class TestModel(models.Model): youtube = YoutubeField() class TestModelForm(forms.ModelForm): class Meta: model = TestModel class FormTest(TestCase): def te...
mit
sburnett/seattle
repy/tests/ut_repytests_testremovefilefnf.py
88
#pragma error #pragma repy removefile("this.file.does.not.exist") # should fail (FNF)
mit
juan-urtazun/Taller_de_Software
app/cache/dev/assetic/config/1/1f046d9a4caab1d49db643c62dcabba9.php
65
<?php // BackendBundle:Persona:show.html.twig return array ( );
mit
fanlinchong/TechMixture
TechMixture.Blog.Domain.Repositories/EntityFramework/BlogContext.cs
1124
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; using TechMixture.Blog.Domain.Model; using TechMixture.Blog.Domain.Repositories.EntityFramework.ModelConfigurations; namespace TechMixture.Blog.Domain.Repositories.EntityFramew...
mit
wizawu/1c
@types/jdk/java.nio.file.OpenOption.d.ts
115
declare namespace java { namespace nio { namespace file { interface OpenOption { } } } }
mit
tomlandau/material2-new
src/lib/sidenav/sidenav.spec.ts
19030
import {fakeAsync, async, tick, ComponentFixture, TestBed} from '@angular/core/testing'; import {Component, ElementRef, ViewChild} from '@angular/core'; import {By} from '@angular/platform-browser'; import {MdSidenav, MdSidenavModule, MdSidenavContainer} from './index'; import {A11yModule} from '@angular/cdk'; import {...
mit
pegurnee/2013-01-111
Projects/P1 - Fortress Management/P1 - Fortress Management 3 with Classes Update/SinglePlayer.java
50230
/* Single player form of the game * */ import java.util.Comparator; // imports comparator import java.util.Scanner; // imports scanner import java.util.Random; // imports random import java.util.Arrays; // imports arrays import java.io.*; // imports all input/output java public class SinglePlayer { public sta...
mit
plutoniumRODS/Plutonium
src/rpcwallet.cpp
63058
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "wallet.h" #include "walletdb.h" #include "bitcoinrpc.h" #include "ini...
mit
latteware/marble-seed
api/middlewares/errorHandler.js
284
module.exports = async function (ctx, next) { ctx.type = 'application/json' try { await next() } catch (err) { ctx.body = { message: err.message } ctx.status = err.status || 500 if (ctx.status === 500) { console.error('=>', err.message, err) } } }
mit
teki-io/teki
server/config/routes.rb
940
Rails.application.routes.draw do devise_for :users, controllers: { sessions: 'users/sessions', registrations: 'users/registrations' } # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html # Serve websocket cable requests in-process # mount ActionCable...
mit
MrRobb/CodeFights
The Core/2. Corner of 0s and 1s/second-rightmostZeroBit.cpp
147
int secondRightmostZeroBit(int n) { return ~(n | (n+1)) & ((n | (n+1))+1); } /* 00100101 +1 00100110 | 00100111 ~ 11011000 +1 ~ 00101000 & */
mit
steinkel/cakefest-basic-workshop-2013
Config/email.php
2531
<?php /** * This is email configuration file. * * Use it to configure email transports of Cake. * * PHP 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and l...
mit
lauracurley/2016-08-ps-react
node_modules/eslint/lib/rules/no-trailing-spaces.js
4823
/** * @fileoverview Disallow trailing spaces at the end of lines. * @author Nodeca Team <https://github.com/nodeca> */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ m...
mit
thatswhatyouget/tpp-progress
display/elements/run-status/game-stats.tsx
2165
/// <reference path="../pokebox.tsx" /> /// <reference path="../../shared.ts" /> namespace TPP.Display.Elements.RunStatus { interface GameStatsDisplayProps { gameStats: { [key: string]: number }; title: string; } export class GameStats extends React.Component<GameStatsDisplayProps, {}> { ...
mit
spkm/isamsapi
src/Commands/EstateManagerBuildingCommand.php
1309
<?php namespace spkm\IsamsApi\Commands; use Illuminate\Console\Command; use spkm\IsamsApi\Models\School; use spkm\IsamsApi\Models\Building; use spkm\IsamsApi\Isams\EstatesManager\Buildings; class EstateManagerBuildingCommand extends Command { /** * The name and signature of the console command. * ...
mit
battlesuit/str-inflections
lib/str/inflections.php
3583
<?php namespace str; if(defined('loader\available')) require __DIR__."/autoload.php"; require __DIR__."/functions.php"; /** * Inflections for pluralize() and singularize() functions * * PHP Version 5.3+ * @author Thomas Monzel <tm@apparat-hamburg.de> * @version $Revision$ * @package Battlesuit * @subpackage str...
mit
wmira/react-icons-kit
src/md/ic_save.js
327
export const ic_save = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"},"children"...
mit
xavividal/kanboard
app/Helper/SubtaskHelper.php
3613
<?php namespace Kanboard\Helper; use Kanboard\Core\Base; /** * Subtask helpers * * @package helper * @author Frederic Guillot */ class SubtaskHelper extends Base { public function getTitle(array $subtask) { if ($subtask['status'] == 0) { $html = '<i class="fa fa-square-o fa-fw"></i>...
mit
alkcxy/flickrize
test/dummy/test/unit/with_gallery_test.rb
125
require 'test_helper' class WithGalleryTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
mit
yusukemurayama/ppytrading
manager.py
2313
#!/usr/bin/env python # coding: utf-8 import os import sys import argparse import importlib from ppyt.const import BASE_DIR # locale.setlocale(locale.LC_ALL, 'en_US') SCRIPT_DIR = os.path.join(BASE_DIR, 'commands') def main(): # パスを追加します。 sys.path.append(BASE_DIR) # 実行するコマンドを決定します。 if len(sys.argv) ...
mit
cliffano/swaggy-jenkins
clients/scala-finch/generated/src/main/scala/org/openapitools/models/PipelineBranchesitemlatestRun.scala
1450
package org.openapitools.models import io.circe._ import io.finch.circe._ import io.circe.generic.semiauto._ import io.circe.java8.time._ import org.openapitools._ /** * * @param durationInMillis * @param estimatedDurationInMillis * @param enQueueTime * @param endTime * @param id * @param organization ...
mit
drakmail/mandarin_pay
lib/mandarin_pay.rb
678
require "mandarin_pay/engine" require "mandarin_pay/client" require "mandarin_pay/payment_interface" require "mandarin_pay/notification" module MandarinPay def configure(&block) MandarinPay::Client.configure(&block) end MandarinPay::Configuration::ATTRIBUTES.map do |name| define_singleton_method name do...
mit
zepi/turbo
tests/modules-not-working/WrongModule/Module.php
2098
<?php /* * The MIT License (MIT) * * Copyright (c) 2015 zepi * * 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, c...
mit
AshV/Design-Patterns
H-Command Pattern/H Solution 3/AbstractCommand.cs
337
namespace H_Solution_3 { public abstract class AbstractCommand { protected Square square; public AbstractCommand(Square square) { this.square = square; } public Square getSquare() { return square; } public abstract void ...
mit
paulpatarinski/WebClientGenerator
ServerComponent/WebClientAutomatorTest/WebApiSchemaReaderTest.cs
2851
using System.Linq; using System.Reflection; using FluentAssertions; using NUnit.Framework; using WebClientAutomator; using WebClientAutomator.Models; namespace WebClientAutomatorTest { [TestFixture] public class WebApiSchemaReaderTest { private Assembly _webApiAssembly; private WebApiSchemaReader _webAp...
mit
CvetoslavSimeonov/TelerikAcademy
C#/1-Intro-Programming-Homework/03. Print Numbers/Properties/AssemblyInfo.cs
1410
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("03...
mit
MrRacoon/reredeux
dist/deux.js
4773
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.patchAction = undefined; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor ===...
mit
Hayawi/TAB2PDF
src/ParseFile.java
6412
import java.io.FileInputStream; import java.io.IOException; import java.util.ArrayList; import java.util.HashSet; import java.util.LinkedList; import java.util.Queue; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.io.IOUtils; import com.itextpdf.text.DocumentExcep...
mit
mryyomutga/CS_Exercise
Beginners/p3/Iteration1.cs
704
/* * while文による繰り返し処理 */ using System; namespace iteration1{ class Program{ public static void Main(string[] args){ int a, b; Console.WriteLine("ユークリッドの互除法を用いて最大公約数を求めます"); Console.Write("1つめの整数を入力してください : "); a = int.Parse(Console.ReadLine()); Console.Write("2つめの整数を入力してください : "); b =...
mit
connectim/Android
app/src/main/java/connect/ui/activity/login/KeepLiveActivity.java
2436
package connect.ui.activity.login; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; import android.os.PowerManager; import android.view.Gravity; import android.view.Window; import android.view.WindowM...
mit
freedot/uts
Assets/Resources/tss/test/test_dynamic_load_ui.ts
5078
import ut = require("../unittest/unittest"); import uts = require("../uts/uts"); namespace UnityEngine { export class UObject extends __DynBind { constructor(isCreate: boolean = true, name: string = 'UnityEngine.Object,UnityEngine') { if (isCreate) super(name); } static Instanti...
mit
Quallcode/forkes
application/controllers/Compiler/Import.php
678
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Import extends CI_Controller { function __construct() { // Construct the parent class parent::__construct(); $this->load->helper('cURL_helper'); $this->load->model('users_model'); $this->load->library(array('...
mit
licaomeng/Android-PullToRefresh-SwipeMenuListView-Sample
Eclipse/Library_PullToRefreshSwipeMenuListView/src/edu/swu/pulltorefreshswipemenulistview/library/swipemenu/view/SwipeMenuView.java
3195
package edu.swu.pulltorefreshswipemenulistview.library.swipemenu.view; import java.util.List; import android.text.TextUtils; import android.view.Gravity; import android.view.View; import android.view.View.OnClickListener; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextV...
mit
nathantreid/shattered
rljs/typings/rot-js.d.ts
15438
declare module "rot-js" { /** Declaration file generated by dts-gen */ export class Display { constructor(options: any); DEBUG(x: any, y: any, what: any): void; clear(): void; computeFontSize(availWidth: any, availHeight: any): any; computeSize(availWidth: any, availHeight: any): any; ...
mit
janko33bd/bitcoinjs-lib
test/ecpair.js
7216
/* global describe, it, beforeEach */ /* eslint-disable no-new */ var assert = require('assert') var ecdsa = require('../src/ecdsa') var ecurve = require('ecurve') var proxyquire = require('proxyquire') var sinon = require('sinon') var BigInteger = require('bigi') var ECPair = require('../src/ecpair') var fixtures =...
mit
eapearson/kbase-ui-plugin-vis-widgets
src/plugin/modules/GeneDistribution.js
7796
define('GeneDistribution', [ 'jquery', 'd3', 'kb_vis_visWidget', ], function ( $, d3) { $.KBWidget({ name: 'GeneDistribution', parent: 'kbaseVisWidget', version: '1.0.0', options: { xScaleType: 'ordinal', overColor: 'yellow', s...
mit
science09/SpringBootDemo
src/main/java/com/example/service/UserService.java
1240
package com.example.service; import com.example.dao.UserMapper; import com.example.entity.User; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetai...
mit
thl/mms_engine
db/migrate/20081001180931_add_exif_tag_to_capture_device_maker_and_model.rb
338
class AddExifTagToCaptureDeviceMakerAndModel < ActiveRecord::Migration def self.up add_column :capture_device_makers, :exif_tag, :string add_column :capture_device_models, :exif_tag, :string end def self.down remove_column :capture_device_makers, :exif_tag remove_column :capture_device_models, :e...
mit
sebradloff/movie-surfer
src/index.js
691
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import App from './App'; import DiscoverContainer from './discover/DiscoverContainer'; import DetailedMovieCardContainer from './movie/DetailedMovieCardContainer'; import PageNotFound ...
mit
ebookr/ebookr-status
test/when-supplying-url.js
438
var expect = require('chai').expect; describe('When supplying url', function () { var ebookr; beforeEach(function () { ebookr = require('ebookr').new(); require('../lib/status')(ebookr); ebookr.metadata.set('status', { 1: 'foo', url: 'http://test.com/#' }); }); it('should return rendered text', fun...
mit
ruippeixotog/functional-brodal-queues
src/main/scala/net/ruippeixotog/structs/Benchmark.scala
3055
package net.ruippeixotog.structs import compat.Platform._ import scala.math._ import util.Random import Complexity._ object Complexity { val const = { _: Int => 1.0 } val logN = { n: Int => log(n) } val linear = { n: Int => n } val nLogN = { n: Int => n * log(n) } def complexityTest(durations: Map[Int, Lo...
mit
zulip/zulip-js
test/resources/events.js
1076
const chai = require('chai'); const events = require('../../lib/resources/events'); const common = require('../common'); chai.should(); describe('Events', () => { it('should fetch events', async () => { const params = { last_event_id: -1, dont_block: true, }; const validator = (url, options)...
mit
EscherLabs/Graphene
public/assets/js/vendor/vs/basic-languages/solidity/solidity.contribution.js
991
define(["require", "exports", "../_.contribution"], function (require, exports, __contribution_1) { /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.tx...
mit
var-bin/reactjs-training
es2015/get-users-avatars.js
248
"use strict"; function getUsersAvatars(userNames, cb) { let url = "/userAvatars"; for (let index in userNames) { _fetchAvatar(url + userNames[index], function (avatarUrl) { _displayAvatar(userNames[index], avatarUrl); }) } }
mit
lokielse/omnipay-global-alipay
src/Message/WebPurchaseRequest.php
8926
<?php namespace Omnipay\GlobalAlipay\Message; use Omnipay\Common\Exception\InvalidRequestException; use Omnipay\Common\Message\AbstractRequest; use Omnipay\Common\Message\ResponseInterface; use Omnipay\GlobalAlipay\Common\Signer; use Omnipay\GlobalAlipay\Helper; class WebPurchaseRequest extends AbstractRequest { ...
mit
jrochkind/blacklight_facet_browse
lib/blacklight_facet_browse/version.rb
53
module BlacklightFacetBrowse VERSION = "0.0.1" end
mit
overblog/recurly-client-php
lib/Recurly/Invoice.php
1947
<?php namespace Recurly; class Invoice extends Resource { protected static $_writeableAttributes; protected static $_nestedAttributes; public static function init() { Invoice::$_writeableAttributes = array(); Invoice::$_nestedAttributes = array('account','line_items','transactions'); } /** * ...
mit
BigEggTools/ConsoleExtension
ConsoleExtension/Parameters/Errors/ErrorType.cs
2202
namespace BigEgg.Tools.ConsoleExtension.Parameters.Errors { /// <summary> /// The enumeration of error types /// </summary> internal enum ErrorType { /// <summary> /// User request the help. /// </summary> HelpRequest, /// <summary> /// User request t...
mit
cwgem/Random-Ruby-Code
singleton_method.rb
92
myobject = "test" def myobject.mymethod puts "Hello World" end myobject.send(:mymethod)
mit
Undev/libftdi-ruby
lib/ftdi.rb
15555
require 'ffi' require "ftdi/version" # Represents libftdi ruby bindings. # End-user API represented by {Ftdi::Context} class. module Ftdi extend FFI::Library ffi_lib ["libftdi", "libftdi.so.1"] # FTDI chip type. ChipType = enum(:type_am, :type_bm, :type_2232c, :type_r, :type_2232h, :type_4232h, :type_232h) ...
mit
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2017-10-01/generated/azure_mgmt_network/models/network_interface_association.rb
1914
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Network::Mgmt::V2017_10_01 module Models # # Network interface and its custom security rules. # class NetworkInterfaceAssoci...
mit
Microsoft/vso-httpclient-java
Rest/alm-tfs-client/src/main/generated/com/microsoft/alm/teamfoundation/testmanagement/webapi/TestFailuresAnalysis.java
1711
// @formatter:off /* * --------------------------------------------------------- * Copyright(C) Microsoft Corporation. All rights reserved. * Licensed under the MIT license. See License.txt in the project root. * --------------------------------------------------------- * * ---------------------------------------------...
mit
link78954/NaolisTest
src/Formation/CatBundle/Controller/CatController.php
2171
<?php namespace Formation\CatBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Formation\ModelBundle\Form\CatType; class CatController extends Controller { /**...
mit
bjornaa/ladim
examples/killer/killer_ibm.py
464
# Minimal IBM to kill old particles DAY = 24 * 60 * 60 # Number of seconds in a day class IBM: def __init__(self, config): print("Initializing killer feature") self.lifetime = config["ibm"]["lifetime"] def update_ibm(self, grid, state, forcing): # Update the particle age st...
mit
phpcr/phpcr-shell
src/PHPCR/Shell/Console/Command/Phpcr/RetentionHoldListCommand.php
1643
<?php /* * This file is part of the PHPCR Shell package * * (c) Daniel Leech <daniel@dantleech.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ namespace PHPCR\Shell\Console\Command\Phpcr; use PHPCR\RepositoryInterface; u...
mit
haricm/authserver
config/passport.js
5665
/** * Module dependencies. */ var passport = require('passport') , LocalStrategy = require('passport-local').Strategy , BasicStrategy = require('passport-http').BasicStrategy , ClientPasswordStrategy = require('passport-oauth2-client-password').Strategy , BearerStrategy = require('passport-http-bearer...
mit
JacksonTian/ali-oss
lib/client.js
7606
/**! * ali-oss - lib/client.js * * Copyright(c) ali-sdk and other contributors. * MIT Licensed * * Authors: * dead_horse <dead_horse@qq.com> * fengmk2 <m@fengmk2.com> (http://fengmk2.com) */ 'use strict'; /** * Module dependencies. */ var debug = require('debug')('ali-oss'); var crypto = require('cryp...
mit
libgraviton/graviton
src/Graviton/AnalyticsBundle/DependencyInjection/GravitonAnalyticsExtension.php
996
<?php /** * Extension config and loader */ namespace Graviton\AnalyticsBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /...
mit
dshorthouse/SimpleMappr
public/javascript/jquery.download.js
953
/* * jQuery Download */ /*global $, jQuery, unescape */ (function() { "use strict"; $.fn.download = function(url, data, method) { var clean_string = function(str) { return unescape(str.replace(/\+/g, ' ')).replace(/\"/g, '&quot;'); }; return this.each(function() { var form = '', id = '...
mit
SlicesOfPi/Steam-Account-Creator
accountGen/src/signup/MakeAcc.java
4065
package signup; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.util.Map; import java.util.Random; import java.util.Scanner; import org.jsoup.Connection; import org.jsoup.Connection.Method; import org.jsoup.Connection.Response; import org.jsoup.Jsoup; import org.jsoup...
mit
huoyaoyuan/osu
osu.Game/Graphics/Containers/OsuClickableContainer.cs
1487
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Cursor; using osu.Framework.Localisat...
mit
Azure/azure-sdk-for-ruby
management/azure_mgmt_event_grid/lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/string_contains_advanced_filter.rb
2068
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::EventGrid::Mgmt::V2020_04_01_preview module Models # # StringContains Advanced Filter. # class StringContainsAdvancedFilter ...
mit
chrisntr/FindTheMonkey-GoogleGlass
MonkeyGlass/Properties/AssemblyInfo.cs
1009
using System.Reflection; using System.Runtime.CompilerServices; using Android.App; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle ("MonkeyGlass")] [assembly: AssemblyDescription ("")] [assembly: AssemblyConfigu...
mit
xabbuh/PandaBundle
Tests/Command/UploadVideoCommandTest.php
3426
<?php /* * This file is part of the XabbuhPandaBundle package. * * (c) Christian Flothmann <christian.flothmann@xabbuh.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Xabbuh\PandaBundle\Tests\Command; use Symfony\Br...
mit
Chanaka1215/Angular2DashBoard
app/components/dashBoard/driverForm/newDriver.component.ts
817
/** * Created by Chanaka Fernando on 2/4/2017. */ /** * Created by Chanaka Fernando on 2/4/2017. */ import {Component} from '@angular/core'; import {ServiceCalls} from "../../../services/serviceCalls.service"; @Component({ moduleId :module.id, selector: 'driver', templateUrl: 'newDriver.component.html', })...
mit
hphilippe/TT-pontrambertois
src/TT/platformBundle/DependencyInjection/Configuration.php
842
<?php namespace TT\platformBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and merges configuration from your app/config files. * * To learn more see {@link http://symfon...
mit