repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
cgerrior/recurly-client-net | Library/Coupon.cs | 17804 | using System;
using System.Collections.Generic;
using System.Net;
using System.Xml;
namespace Recurly
{
public class Coupon : RecurlyEntity
{
public enum CouponState : short
{
All = 0,
Redeemable,
Expired,
Inactive,
MaxedOut
}... | mit |
yanisIk/Hobdy | Configuration/HobdyNeo4jConfiguration.java | 336 | @Configuration
@EnableNeo4jRepositories
@EnableTransactionManagement
public class HobdyNeo4jConfiguration extends Neo4jConfiguration{
public static final String PATH;
public HobdyNeo4jConfiguration(){
}
@Bean
public GraphDatabaseService graphDatabaseService(){
return new GraphDatabaseFactory.newEmbeddedData... | mit |
teeparham/ffaker | test/test_identification_es.rb | 331 | # encoding: utf-8
require 'helper'
class TestFakerIdentificationES < Test::Unit::TestCase
include DeterministicHelper
assert_methods_are_deterministic(FFaker::IdentificationES, :gender)
def setup
@tester = FFaker::IdentificationES
end
def test_gender
assert_match(/(Hombre|Mujer)/, @tester.gender)... | mit |
cxn03651/write_xlsx | examples/outline_collapsed.rb | 5589 | #!/usr/bin/env ruby
# -*- coding: utf-8 -*-
#
# Example of how to use Excel::Writer::XLSX to generate Excel outlines and
# grouping.
#
# These examples focus mainly on collapsed outlines. See also the
# outlines.pl example program for more general examples.
#
# reverse ('(c)'), March 2008, John McNamara, jmcnamara@cpa... | mit |
Blizzard/heroprotocol | heroprotocol/hero_cli.py | 4441 | #!/usr/bin/env python
#
# Copyright 2015-2020 Blizzard Entertainment. Subject to the MIT license.
# See the included LICENSE file for more information.
#
from __future__ import print_function
import argparse
import sys
import json
import mpyq
import pprint
from .compat import json_dumps
from .versions import build, ... | mit |
mrageh/slow_factory_formatter | example/config/environments/development.rb | 1085 | Example::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web s... | mit |
TinyPlanetStudios/Project-Crash-Land | export/windows/cpp/obj/src/_List/ListNode.cpp | 4163 | // Generated by Haxe 3.3.0
#include <hxcpp.h>
#ifndef INCLUDED__List_ListNode
#include <_List/ListNode.h>
#endif
namespace _List{
void ListNode_obj::__construct( ::Dynamic item, ::_List::ListNode next){
HX_STACK_FRAME("_List.ListNode","new",0x20597943,"_List.ListNode.new","C:\\Haxe\\haxe\\std/List.hx",2... | mit |
spoton-marketing/laravel-navigation | src/SpotOnMarketing/Navigation/Exceptions/ContainerException.php | 121 | <?php
namespace SpotOnMarketing\Navigation\Exceptions;
use Exception;
class ContainerException extends Exception
{
}
| mit |
i-am-tom/emmeline | test/list/reduce.js | 762 | //= Emmeline: Pure and Simple Javascript.
//> Tom Harding | thedigitalnatives.co.uk
import test from 'tape'
import { reduce } from '../../list'
//- Convert to an array.
function toArray () {
return [... this]
}
test ('List.Reduce', t => {
function * reduceGen () {
yield 1
yield 2
yield 3
}
t.sa... | mit |
fatfreecrm/ffcrm_crowd | lib/ffcrm_crowd/application_controller.rb | 2154 | ApplicationController.class_eval do
include Crowd::SingleSignOn
private
#----------------------------------------------------------------------------
def current_user_session
@current_user_session ||= Authentication.find
# Try AuthLogic first (handles HTTP Basic Auth for XML API), fall back t... | mit |
jjballano/testProjectGrails3 | client/app/city.service.ts | 536 | import { Injectable } from '@angular/core';
import { Country } from './country'
import { City } from './city'
const COUNTRIES : Country[] = [
{id: 1, name: 'Argentina'},
{id: 2, name: 'Chile'},
{id: 3, name: 'Perú'}
]
const CITIES: City[] = [
{id: 1, name: 'Buenos Aires', country: COUNTRIES[0] },
{id: 2... | mit |
OHIF/Viewers | platform/core/src/measurements/measurementHandlers/handleChildMeasurementRemoved.js | 1534 | import cornerstone from 'cornerstone-core';
import { MeasurementApi } from '../classes';
import log from '../../log';
import refreshCornerstoneViewports from '../lib/refreshCornerstoneViewports';
export default function({ eventData, tool, toolGroupId, toolGroup }) {
log.info('CornerstoneToolsMeasurementRemoved');
... | mit |
IvanBernatovic/gameshop | app/Http/Controllers/Admin/CustomerController.php | 547 | <?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
/**
* Custom models
*/
use App\User;
class CustomerController extends Controller
{
const PAGINATION_SIZE = 40;
public function index()
{
$customers = User::paginate(... | mit |
jotak/mipod | libtypes/TagsMap.ts | 1191 | /*
The MIT License (MIT)
Copyright (c) 2014 Joel Takvorian, https://github.com/jotak/mipod
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 righ... | mit |
brewdente/AutoWebPerf | MasterDevs.ChromeDevTools/Protocol/DOMDebugger/RemoveDOMBreakpointCommandResponse.cs | 381 | using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOMDebugger
{
/// <summary>
/// Removes DOM breakpoint that was set using <code>setDOMBreakpoint</code>.
/// </summary>
[CommandResponse(ProtocolName.DOMDebugger.RemoveDOMBreakpoin... | mit |
peterellisjones/rust_move_gen | src/position/fen.rs | 10622 | use super::State;
use castling_rights::*;
use piece::*;
use side::*;
use square;
use square::Square;
pub fn from_fen(fen: &str) -> Result<([Piece; 64], State), String> {
let mut state = State {
castling_rights: ALL_RIGHTS,
ep_square: None,
stm: WHITE,
half_move_clock: 0,
ful... | mit |
myusuf3/racks | racks/main.py | 1134 | #!/usr/bin/env python
#-*- coding: utf-8 -*-
"""
Usage: racks <numbers>...
Examples:
racks 1 25 221 57 32 68 8
Options:
-h --help Show this screen.
-v --version Show version.
"""
from docopt import docopt
from racks import __version__
from termcolor import cprint
steps = u'▁▂▃▄▅▆▇'
def normalize_nu... | mit |
asiboro/asiboro.github.io | vsdoc/toc--/topic_00000000000009F1.html.js | 351 | var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['1429',"Tlece.Recruitment.Models Namespace","topic_00000000000007B3.html"],['1452',"CardDto Class","topic_00000000000009EF.html"],['1453',"Properties","topic_00000000000009EF_props--.html"],['1454',"Brand Property","... | mit |
slolam/aspnet-identity-documentdb | src/Simple.AspNetCore.Identity.DocumentDb/Models/IdentityUserClaim.cs | 1191 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Simple.AspNetCore.Identity.DocumentDb.Models
{
/// <summary>
/// Represents the claims of the identity
/// </summary>
/// <summary>
/// Represents the claims of the identit... | mit |
sundarcse1216/python-crud | PythonCRUD/crud/utils/databaseutils.py | 2075 | import logging.config
import configparser
import pymysql
class DatabaseUtils:
"""
This class will maintain the database connections
"""
def __init__(self):
DatabaseUtils.log = logging.getLogger("DatabaseUtils")
self.load_properties()
@classmethod
def load_properties(cls):
... | mit |
Nohmapp/npm-introspect | server/server.js | 1596 | 'use strict';
const requestData = require('../server/requestData');
const less = require('./less')
const express = require('express');
const app = express();
const path = require('path');
const opn = require('opn');
module.exports.run = (args) => {
console.log('Recieving NPM scores...')
var pkgs = args._;
... | mit |
OdimTech/Sisacon | Sisacon/Sisacon.Infra/Mapping/ProductImagesMap.cs | 361 | using Sisacon.Domain.ValueObjects;
namespace Sisacon.Infra.Mapping
{
public class ProductImagesMap : BaseMap<ProductImages>
{
public ProductImagesMap()
{
Property(x => x.Image)
.HasColumnType("varbinary")
.HasMaxLength(null)
... | mit |
trentm/node-bunyan | test/raw-stream.test.js | 2693 | /*
* Copyright 2020 Trent Mick
*
* Test `type: 'raw'` Logger streams.
*/
var format = require('util').format;
var test = require('tap').test;
var Logger = require('../lib/bunyan');
function CapturingStream(recs) {
this.recs = recs;
}
CapturingStream.prototype.write = function (rec) {
this.recs.push(rec)... | mit |
Neo11/ChitChat | ChitChat/emoji.js | 3134 | var emojis = [
{ code: ["o:)","o:-)"], alt: "😇", cName: "emojiordered1463" },
{ code: [">:-o"], alt: "😠", cName: "emojiordered1488" },
{ code: [">:-)"], alt: "😈", cName: "emojiordered1464" },
{ code: [":)",":-)"], alt: "😊", cName: "emojiordered1466" },
{ code: [";)",";-)"], alt: "😉", cName: "em... | mit |
flarum/core | src/Locale/LocaleManager.php | 2836 | <?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
namespace Flarum\Locale;
use Illuminate\Support\Arr;
use Symfony\Component\Translation\MessageCatalogueInterface;
class LocaleManager
{
/... | mit |
awaywego/awaywego | client/src/modules/home/home.js | 908 | import angular from 'angular';
// components used by this module
import GroupCardComponent from './group-card/group-card';
import ImageSearchComponent from '../image-search/image-search';
import GroupService from '../../services/group/group.service';
// imports for this component
import template from './home.html';
im... | mit |
dukescript/leaflet4j | api/src/main/java/net/java/html/leaflet/TileLayer.java | 4579 | /**
* The MIT License (MIT)
*
* Copyright (C) 2015 Andreas Grimmer <a.grimmer@gmx.at>
* Christoph Sperl <ch.sperl@gmx.at>
* Stefan Wurzinger <swurzinger@gmx.at>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software")... | mit |
qwerty2501/NiconicoUI | NiconicoUI/Onds.Niconico.UI.WinRT/Extentions/NiconicoTextColorExtentions.cs | 650 | #if NETFX_CORE
using Windows.UI;
#endif
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Onds.Niconico.Data.Text;
namespace Onds.Niconico.UI.Extentions
{
public static class NiconicoTextColorExtentions
{
public static Col... | mit |
mauriciotogneri/apply | src/main/java/com/mauriciotogneri/apply/compiler/lexical/TokenList.java | 3091 | package com.mauriciotogneri.apply.compiler.lexical;
import com.mauriciotogneri.apply.compiler.lexical.tokens.delimiters.SpaceToken;
import com.mauriciotogneri.apply.compiler.types.TokenType;
import com.mauriciotogneri.apply.exceptions.lexical.InvalidCharacterException;
import java.util.ArrayList;
import java.util.Lis... | mit |
BonesCoin/Bones | src/qt/locale/bitcoin_en.ts | 115019 | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="en">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Bones</source>
<translation>About Bones</translati... | mit |
BrunoCamargos/billdone | src/commons/pagination.js | 401 | import config from './config';
const paginate = (page, pageLimit) => {
let skip = parseInt(page, 10);
if (isNaN(skip) || skip < 1) {
skip = 1;
}
skip -= 1;
let limit = parseInt(pageLimit, 10);
if (isNaN(limit) || limit < 1 || limit > config.app.defaultPageLimit) {
limit = config.app.defaultPageLim... | mit |
telminov/park-keeper | backend/project/settings.sample.py | 591 | # coding: utf-8
from project.settings_default import *
# must be agreed with park-workers
SECRET_KEY = '321'
DEBUG = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join('/data/', 'db.sqlite3'),
}
}
ALLOWED_HOSTS = ['*']
WEB_SOCKET_SERVER_PORT = 8081
... | mit |
jangsohee/CloudUSB-Client | CloudUSB/CU/CU/Express/DVD-5/DiskImages/DISK1/program files/CloudUSB/CloudUSB/JoinView.xaml.cs | 6165 | using MahApps.Metro.Controls;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
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... | mit |
webdivane/helpers | msg/msg.php | 4230 | <?php
/** The message PHP helper
* @todo Discover bootstrap - it now can use .fade .in so the cf::appendToHeadTag can be omitted */
class msg
{
/**@var array Context "map" to dedicated Bootstrap class attribute*/
private static $contextMapToBootstrapClass = array(
"plain"=>"alert-info", "success"=>"a... | mit |
cknips/b3form | lib/b3form/input/select.rb | 1168 | module B3Form
class Input::Select < Input::TopLevelElement
def render_field
if render_called_with_block
builder.modifier[:select_options] = {}
builder.modifier[:select_modifier] = {}
builder.modifier[:select_field] = field
builder.capture(&render_called_with_block)
... | mit |
modulr/modulr-laravel | resources/views/dashboard.blade.php | 3348 | @extends('layouts.app')
@section('content')
<div class="container-fluid dashboard">
<div class="row">
@permission('read-tasks')
<div class="col-md-4">
<div class="panel panel-default panel-dashboard">
<div class="panel-heading">
... | mit |
KDE/kcolorchooser | kcolorchooser.cpp | 4111 | /*
This file is part of KDE
Copyright (C) 1998-2000 Waldo Bastian (bastian@kde.org)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights... | mit |
Azure/azure-sdk-for-ruby | management/azure_mgmt_sql/lib/2018-06-01-preview/generated/azure_mgmt_sql/models/instance_pool_update.rb | 1420 | # 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::SQL::Mgmt::V2018_06_01_preview
module Models
#
# An update to an Instance pool.
#
class InstancePoolUpdate
include Ms... | mit |
IT-PM-OpenAdaptronik/Webapp | apps/calc/tess_module/tess/tess.py | 7748 | '''
Created on 10.11.2017
@author: stoll
'''
import csv
import os
from numpy import argwhere, transpose
import numpy
from apps.calc.tess_module.tess import helpers
from apps.calc.tess_module.tess import waterfalls
def tess(time,data,data2):
'''
TESS is a software project that is part of the OpenAdaptronics ... | mit |
Enhex/value_ptr | value_ptr.hpp | 512 | #ifndef VALUE_PTR_HPP
#define VALUE_PTR_HPP
// value_ptr automatically dereferences its pointer
// Somewhat similar to std::reference_wrapper
template<typename T>
class value_ptr
{
public:
value_ptr() {}
value_ptr(T* ptr) : ptr(ptr) {}
T* ptr = nullptr;
// assignment
T& operator=(const T x) { *ptr = x; return ... | mit |
dankempster/axstrad-doctrine-extensions | Sluggable/SluggableTrait.php | 960 | <?php
/**
* This file is part of the Axstrad library.
*
* (c) Dan Kempster <dev@dankempster.co.uk>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright 2014-2015 Dan Kempster <dev@dankempster.co.uk>
*/
namespace Axstrad\D... | mit |
spraetor/amdis2 | src/Traits.hpp | 363 | #pragma once
// #include <iostream>
#include "AMDiS_fwd.hpp"
#include "FixVec.hpp"
#include "MatrixVector.hpp"
#include "traits/basic.hpp"
#include "traits/category.hpp"
#include "traits/meta_basic.hpp"
#include "traits/num_cols.hpp"
#include "traits/num_rows.hpp"
#include "traits/size.hpp"
#include "traits/tag.hpp"
... | mit |
bons/b-toggle | test/b-toggle-spec.js | 2279 | 'use strict';
require('angular');
require('angular-mocks');
var app = require('../lib/b-toggle');
function hasClass(element, cls)
{
return (' ' + element.className + ' ').indexOf(' ' + cls + ' ') > -1;
}
// Patch since PhantomJS does not implement click() on HTMLElement. In some
// cases we need to execute the nat... | mit |
jesseh77/UrlFilter | src/UrlFilter/INotNullExpressionProcessor.cs | 218 | using System.Linq.Expressions;
namespace UrlFilter
{
public interface INotNullExpressionProcessor
{
Expression NotNullPropertyExpression(string segment, ParameterExpression paramExpression);
}
} | mit |
conferencesapp/rubyconferences-server | app/services/device_creator.rb | 366 | class DeviceCreator
attr_reader :device
def initialize(params)
@params = params
end
def create
@device ||= Device.find_or_create_by(
token: token,
conference_type: conference_type
)
end
private
attr_reader :params
def token
params[:token]
end
def conference_type
... | mit |
garethj-msft/msgraph-sdk-dotnet | src/Microsoft.Graph/Requests/Generated/WorkbookWorksheetTablesCollectionResponse.cs | 1222 | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... | mit |
kaoscript/kaoscript | test/fixtures/compile/router/router.overflow.func.i_ie.js | 991 | var Type = require("@kaoscript/runtime").Type;
module.exports = function() {
const __ks_foobar_1 = foobar;
function foobar() {
if(arguments.length === 1 && Type.isNumber(arguments[0])) {
let __ks_i = -1;
let a = arguments[++__ks_i];
if(a === void 0 || a === null) {
return __ks_foobar_1(...arguments);
... | mit |
joshsh/ripple | ripple-core/src/main/java/net/fortytwo/ripple/model/types/NumberType.java | 1578 | package net.fortytwo.ripple.model.types;
import net.fortytwo.ripple.RippleException;
import net.fortytwo.ripple.io.RipplePrintStream;
import net.fortytwo.ripple.model.ModelConnection;
import org.openrdf.model.Value;
import java.util.Collection;
/**
* @author Joshua Shinavier (http://fortytwo.net)
*/
public class N... | mit |
bigfoot90/doctrine2 | tests/Doctrine/Tests/ORM/Functional/Ticket/DDC199Test.php | 3177 | <?php
declare(strict_types=1);
namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\Collection;
use Doctrine\Tests\OrmFunctionalTestCase;
use function count;
class DDC199Test extends OrmFunctionalTestCase
{
protected function setUp(): void
{
parent::setUp();
$this... | mit |
juniorgasparotto/SpentBook | src_old/SpentBook.Web/App_Start/RouteConfig.cs | 583 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace SpentBook.Web
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{... | mit |
zengfenfei/ringcentral-ts | src/definitions/CompanyAnsweringRuleTimeIntervalRequest.ts | 235 | /* Generated code */
interface CompanyAnsweringRuleTimeIntervalRequest {
/**
* Time in format hh:mm
*/
from?: string;
/**
* Time in format hh:mm
*/
to?: string;
}
export default CompanyAnsweringRuleTimeIntervalRequest;
| mit |
nunows/agenda-cultural | AC_DAO/src/agendacultural/model/TipoEvento.java | 275 | package agendacultural.model;
/**
* Class que representa um Tipo de Evento
*
*/
public class TipoEvento {
private int id;
private String nome;
public TipoEvento() {
}
public TipoEvento(int id, String nome) {
super();
this.id = id;
this.nome = nome;
}
}
| mit |
GRGSIBERIA/VendingMachine | lib/vending_machine.rb | 535 | require "./lib/coin.rb"
require "./lib/stamp.rb"
require "./lib/coin_pocket.rb"
class VendingMachine
def initialize
@pocket = CoinPocket.new
end
def insert(coin_price)
begin
coin = CoinFactory.coin(coin_price)
return @pocket.insert(coin)
rescue => error_msg
puts error_msg
end
... | mit |
cnvs/canvas | resources/lang/en/app.php | 7009 | <?php
return [
'a_descriptive_summary' => 'A descriptive summary...',
'a_unique_slug' => 'a-unique-slug',
'add_a_caption' => 'Add a caption for your image',
'add_a_new_tag' => 'Add a new tag',
'add_a_new_topic' => 'Add this as a new topic',
'admin' => 'Admin',
'all_stats' => 'All stats',
... | mit |
gusajz/sqlite-client-server-poc | sqlite_server/server.py | 284 | import click
import logging
logging.basicConfig()
@click.command()
@click.option('--path', prompt='Sqlite database', help='Sqlite full path db.')
def server(path):
import thrift_server
thrift_server.serve(8080, path)
if __name__ == '__main__':
server()
| mit |
theoboldt/juvem | app/assets/js/lib/jquery.filedrop.js | 16824 | /*global jQuery:false, alert:false */
/*
* Default text - jQuery plugin for html5 dragging files from desktop to browser
*
* Author: Weixi Yen
*
* Email: [Firstname][Lastname]@gmail.com
*
* Copyright (c) 2010 Resopollution
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license... | mit |
MrPIvanov/SoftUni | 05-Csharp OOP Basics/10-EXERCISE INHERITANCE/10-InheritanceExercises/05-MordorCruelPlan/Factories/Foods/Apple.cs | 135 | public class Apple : Food
{
private const int PointsOfHappiness = 1;
public Apple() : base(PointsOfHappiness)
{
}
} | mit |
nihey/blog | plugins/content.js | 2491 | var fs = require('fs'),
path = require('path'),
glob = require('glob').sync,
cheerio = require('cheerio');
var ContentPlugin = function(pattern, index) {
this.index = index;
this.files = glob(pattern, {nodir: true});
};
ContentPlugin.prototype.apply = function(compiler) {
this.compiler = compiler;
... | mit |
cordoval/Confoo | app/AppKernel.php | 1417 | <?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Sec... | mit |
marcelrf/patternal | patternal.js | 1445 | var SymbolDescriptor = require("./SymbolDescriptor"),
SequenceDescriptor = require("./SequenceDescriptor"),
ParallelDescriptor = require("./ParallelDescriptor"),
RepeatDescriptor = require("./RepeatDescriptor"),
NotDescriptor = require("./NotDescriptor");
function construct(constructor, args) {
fun... | mit |
tinywind/practice-codility.com | java/org/tinywind/codility/lesson5/PassingCars.java | 845 | package org.tinywind.codility.lesson5;
import java.util.Arrays;
/**
* https://codility.com/programmers/task/passing_cars/
* Count the number of passing cars on the road.
*
* @author tinywind
* score: 100
*/
public class PassingCars {
public static void main(String[] args) {
p(0,... | mit |
ruzyrain/modelweb | BRouter/src/HttpServer/ElementalHttpPostBytes.java | 10732 | package HttpServer;
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The A... | mit |
indigophp-archive/fuel-core | lib/Fuel/Orm/SortableInterface.php | 523 | <?php
/*
* This file is part of the Indigo Core package.
*
* (c) Indigo Development Team
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Fuel\Orm;
/**
* Sortable Interface
*
* This interface helps the use of Sort ob... | mit |
codygman/movie-availability-api | src/api/normalize.go | 355 | package api
import (
"strings"
)
func normalizeKeyword(keyword string) (string) {
// normalizes keyword for comparison
// do your own escaping!
var replacementMap = make(map[string]string)
replacementMap["·"] = "-"
for old, replacement := range replacementMap {
keyword = strings.Replace(keyword, old, replac... | mit |
azarkevich/MinskTransSched | MinskTransSched/src/options/GeneralPrefs.java | 4052 | package options;
import javax.microedition.lcdui.*;
import mts.TransSched;
public class GeneralPrefs extends Form implements CommandListener
{
public void commandAction(Command cmd, Displayable d)
{
if(cmd == TransSched.cmdOK)
{
SaveSettings();
TransSched.display.setCurrent(next);
}
... | mit |
rprichard/electron | chromium_src/chrome/browser/printing/printing_message_filter.cc | 9286 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/printing/printing_message_filter.h"
#include <string>
#include "base/bind.h"
#include "chrome/browser/browser_process.h"
#i... | mit |
jobinesh/jet-examples | node-jet1.2.0-mongo-app/public/js/libs/oj/v1.2.0/min-debug/ojarraydatagriddatasource.js | 28188 | /**
* Copyright (c) 2014, 2015, Oracle and/or its affiliates.
* All rights reserved.
*/
"use strict";
define(["ojs/ojcore", "jquery", "ojs/ojdatasource-common"], function($oj$$57$$) {
$oj$$57$$.$ArrayDataGridDataSource$ = function $$oj$$57$$$$ArrayDataGridDataSource$$($data$$157$$, $options$$327$$) {
if... | mit |
zelda/mongodb-for-fhir-resource | app/controllers/enrollmentresponse.js | 5768 | // Copyright (c) 2011+, HL7, Inc & The MITRE Corporation
// 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 source code must retain the above copyright notice, this... | mit |
squeedee/RobotlegsUpDownPlugin | src/org/robotlegs/plugins/upDown/DownAction.java | 682 | package org.robotlegs.plugins.upDown;
import com.intellij.openapi.actionSystem.AnActionEvent;
import org.robotlegs.plugins.upDown.strategy.IUpDownStrategy;
/**
* Created by IntelliJ IDEA. User: rasheed Date: 30/03/2010 Time: 6:36:40 AM To change this template use File | Settings
* | File Templates.
*/
public clas... | mit |
Noders/noders.github.io.dev | test/spec/controllers/header.js | 513 | 'use strict';
describe('Controller: HeaderCtrl', function () {
// load the controller's module
beforeEach(module('nodersApp'));
var HeaderCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
HeaderCtrl = $c... | mit |
Petrakisos/TelerikAcademy | CSharpPart1/06.Loops/01.NumbersFrom1ToN/NumberFrom1ToN.cs | 219 | using System;
class NumberFrom1ToN
{
static void Main()
{
int n = int.Parse(Console.ReadLine());
for (int i = 1; i <= n; i++)
{
Console.Write(i + " ");
}
}
}
| mit |
stackia/DNSAgent | DNSAgent/Logger.cs | 1558 | using System;
namespace DNSAgent
{
internal class Logger
{
private static readonly object OutputLock = new object();
private static string _title;
public static string Title
{
get { return _title; }
set
{
_title = value;
... | mit |
essian/rps10000 | spec/rps10000_spec.rb | 198 | require 'spec_helper'
describe Rps10000 do
it 'has a version number' do
expect(Rps10000::VERSION).not_to be nil
end
it 'does something useful' do
expect(false).to eq(true)
end
end
| mit |
samwhelp/demo-libchewing | python/implement/module/demo-add.py | 233 | #!/usr/bin/env python3
from chewing import userphrase
def main():
phrase = '內稽'
bopomofo = 'ㄋㄟˋ ㄐㄧ'
rtn = userphrase.add(phrase, bopomofo)
print('add (', rtn, ') userphrase')
if __name__ == '__main__':
main()
| mit |
Infragistics/zero-blocks | projects/igniteui-angular/src/lib/select/select-item.component.ts | 1914 | import { IgxDropDownItemComponent } from './../drop-down/drop-down-item.component';
import { Component, DoCheck, Input } from '@angular/core';
@Component({
selector: 'igx-select-item',
template: '<span class="igx-drop-down__inner"><ng-content></ng-content></span>'
})
export class IgxSelectItemComponent extends... | mit |
Surnet/swagger-jsdoc | examples/app/app.spec.js | 616 | const request = require('supertest');
const { app, server } = require('./app');
const swaggerSpec = require('./swagger-spec.json');
describe('Example application written in swagger specification (v2)', () => {
it('should be healthy', async () => {
const response = await request(app).get('/');
expect(response... | mit |
Brockhurst/connect | src/app/pages/partners-page/partners-page.module.ts | 920 | import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { PartnersPageComponent } from './partners-page.component';
import { CarouselModule } from 'ngx-bootstrap';
import { PerfectScrollbarModule } from 'angular2-perfect-scrollbar'... | mit |
glenngillen/dotfiles | .vscode/extensions/hashicorp.terraform-2.11.0/node_modules/applicationinsights/out/Declarations/Contracts/Generated/ExceptionDetails.js | 329 | "use strict";
/**
* Exception details of the exception in a chain.
*/
var ExceptionDetails = (function () {
function ExceptionDetails() {
this.hasFullStack = true;
this.parsedStack = [];
}
return ExceptionDetails;
}());
module.exports = ExceptionDetails;
//# sourceMappingURL=ExceptionDetai... | mit |
prasetyaningyudi/serattamu | application/controllers/Meeting.php | 18811 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Meeting extends CI_Controller {
private $data;
public function __construct(){
parent::__construct();
$this->load->library('session');
$this->load->helper('url');
$this->load->database();
$this->load->model('menu_model'); //c... | mit |
silentsignal/duncan | duncansamples.py | 1783 | #!/usr/bin/env python
import duncan
import requests
class SimpleDuncan(duncan.Duncan): # Inherit from Duncan
def decide(self,guess): # Implement decide()
# Construct your query to split the search space into two at guess
# self._query holds the query to be executed from the command line
# self._pos is the posi... | mit |
t10471/java | Generics/src/observer/Publisher.java | 1845 | package observer;
import java.util.ArrayList;
import java.util.List;
public class Publisher {
@SuppressWarnings("rawtypes")
private static final ThreadLocal<List> subscribers = new ThreadLocal<List>();
// 全ての購読者を一配列に入れる(べつのイベントの購読者も同じ配列にはいる)
private static final ThreadLocal<Boolean> publishing =new ThreadLocal<B... | mit |
LocalJoost/XamarinFormsDemos | XamarinFormsDemos/XamarinFormsDemos/Views/AnimationBehaviorsPage.xaml.cs | 173 | namespace XamarinFormsDemos.Views
{
public partial class AnimationBehaviorsPage
{
public AnimationBehaviorsPage()
{
InitializeComponent();
}
}
}
| mit |
ansin218/p2p-voidphone-nse | code/compute_time.py | 986 | import math
from datetime import datetime
from datetime import timedelta
"""
Gets current starting time with flooding delay
"""
def get_cst_and_fd(nw_size_estimate, overlapping_bits):
hr_in_ms = 3600000.0
flood_delay_in_ms = (hr_in_ms/2) - (hr_in_ms/math.pi) * (math.atan(overlapping_bits - nw_size_estimat... | mit |
lewgun/cloudmusic | cmd/cloudmusicd/web/src/services/flux/flux-boot.ts | 977 |
import {Injectable, Inject} from 'angular2/core';
import {Dispatcher} from "./dispatcher/dispatcher";
import {UserInfoActionCreator} from "./actions/userinfo-action";
import {PlayListActionCreator} from "./actions/playlist-action";
import {PlayActionCreator} from "./actions/play-action";
import {UserInfoStore ... | mit |
MrSkinny/taskzapper | spec/views/lists/index.html.erb_spec.rb | 142 | require 'rails_helper'
RSpec.describe "lists/index.html.erb", :type => :view do
pending "add some examples to (or delete) #{__FILE__}"
end
| mit |
danneu/guild | legacy_html/showthread/139029-Sobetsu-Cloaked-Rancor-OOC_files/ncode_imageresizer.js | 6646 |
/*
FILE ARCHIVED ON 20:33:44 Aug 3, 2012 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 9:01:34 Apr 5, 2015.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
// nCode Image Resizer for vB... | mit |
ArnaudBuchholz/gpf-js | lost+found/test/attributes/xml.js | 61 | "use strict";
describe("attributes/xml", function () {
});
| mit |
iamandrebulatov/Profile | Post-Hack/2/public_html/thinkinglimoCOM/wp-content/themes/TheStyle/includes/breadcrumbs.php | 1528 | <div id="breadcrumbs">
<?php if(function_exists('bcn_display')) { bcn_display(); }
else { ?>
<a href="<?php echo home_url(); ?>"><?php esc_html_e('Home','TheStyle') ?></a> <span class="raquo">»</span>
<?php if( is_tag() ) { ?>
<?php esc_html_e('Posts Tagged ','TheStyle') ?><span class="... | mit |
thejavamonk/hackerrankAlgorithms | algorithms_warmup/src/com/codeprep/correctnessinvariant/Solution.java | 820 | package com.codeprep.correctnessinvariant;
import java.util.Scanner;
public class Solution {
public static void insertionSort(int[] A){
for(int i = 1; i < A.length; i++){
int value = A[i];
int j = i - 1;
while(j >= 0 && A[j] > value){
A[j + 1] = A[j];
... | mit |
Azure/azure-sdk-for-ruby | data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/models/application_load_info.rb | 4110 | # 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::ServiceFabric::V6_2_0_9
module Models
#
# Load Information about a Service Fabric application.
#
class ApplicationLoadInfo
... | mit |
bartosz-wozniak/StockExchangeInvestor | src/StockExchange.Common/Consts.cs | 2931 | namespace StockExchange.Common
{
/// <summary>
/// Global project constants
/// </summary>
public static class Consts
{
/// <summary>
/// Commands for the Task consola app
/// </summary>
public static class Commands
{
/// <summary>
///... | mit |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2019-11-01/generated/azure_mgmt_network/models/flow_log.rb | 6216 | # 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::V2019_11_01
module Models
#
# A flow log resource.
#
class FlowLog < Resource
include MsRestAzure
... | mit |
PrinceOfAmber/Cyclic | src/main/java/com/lothrazar/cyclic/event/ClientInputEvents.java | 2224 | package com.lothrazar.cyclic.event;
import com.lothrazar.cyclic.ModCyclic;
import com.lothrazar.cyclic.base.IHasClickToggle;
import com.lothrazar.cyclic.item.storagebag.StorageBagItem;
import com.lothrazar.cyclic.net.PacketItemGui;
import com.lothrazar.cyclic.net.PacketItemToggle;
import com.lothrazar.cyclic.registry.... | mit |
elBukkit/MagicPlugin | Magic/src/main/java/com/elmakers/mine/bukkit/magic/MageContext.java | 3471 | package com.elmakers.mine.bukkit.magic;
import java.util.logging.Logger;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.bukkit.Color;
import org.bukkit.Location;
import org.bukkit.block.Block;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.Entity;
import ... | mit |
bhollis/XboxLiveGamercardWidget | XboxLiveGamercard.dcproj/project/widget.wdgt/main.js | 3292 | /*
This file was generated by Dashcode.
You may edit this file to customize your widget or web page
according to the license.txt file included in the project.
*/
//
// Function: load()
// Called by HTML body element's onload event when the widget is ready to start
//
function load()
{
dashcode.setupParts()... | mit |
joyce131480/master | app.js | 52745 | /* jshint -W117 */
/* application specific logic */
var connection = null;
var authenticatedUser = false;
var authenticationWindow = null;
var activecall = null;
var nickname = null;
var sharedKey = '';
var focusMucJid = null;
var roomUrl = null;
var roomName = null;
var ssrc2jid = {};
var bridgeIsDown = false;
//TODO:... | mit |
manibs/StoreManage | Models/productModel.js | 286 | var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var productModel = new Schema({
skuid: {
type: String
},
name: {
type: String
},
category: {
type: String
}
});
module.exports = mongoose.model('Product', productModel); | mit |
gilday/mobtown | mobtown-services/src/main/java/mobtown/services/jaxrs/EventNotFoundExceptionMapper.java | 756 | package mobtown.services.jaxrs;
import mobtown.services.EventNotFoundException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
/**
* Maps custom exceptions which do not extend {@link javax.ws.rs.WebApplicationException}
... | mit |
webmasterersm/rsmsite | wp-content/themes/rsm-megasite/page-evento.php | 2765 | <?php
/**
* Template Name: Eventos
*
* @package WordPress
* @subpackage RSM Megasite
* @since RSM Megasite
*/
get_header(); ?>
<main class="main-eventos">
<?php while ( have_posts() ) : the_post(); ?>
<?php $thumb_id = get_post_thumbnail_id();
$thumb_url = wp_get_attachment_image_src($t... | mit |
jovanidash21/jandy | assets/scripts/main.js | 6731 | // Global varianbles
/*global Waypoint, lightbox, WOW */
// Detect IE version
var detectIEVersion = function() {
var userAgent = window.navigator.userAgent;
var internetExplorer = userAgent.indexOf('MSIE ');
if (internetExplorer > 0) {
return parseInt(userAgent.substring(internetExplorer + 5, userAgent.index... | mit |