repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
DimitarGaydardzhiev/TelerikAcademy | 02. C# Part 2/06. Strings-and-Text-Processing/03.CorrectBrackets/CorrectBrackets.cs | 1134 | /*
Problem 3. Correct brackets
Write a program to check if in a given expression the brackets are put correctly.
Example of correct expression: ((a+b)/5-d) . Example of incorrect expression: )(a+b)) .
*/
using System;
class CorrectBrackets
{
static bool CheckBreckets (string text)
{
int counterOpeni... | mit |
armadillo-systems/inquire | iNQUIRE.v2/Models/IInqItem.cs | 1794 | using System;
using System.Collections.Generic;
using System.Xml.Linq;
using iNQUIRE.Helper;
namespace iNQUIRE.Models
{
public interface IInqItem
{
#region properties
// fields here MUST match \\armserv\solr\multicore\core1\conf\schema.xml,
// else when updating a Solr record (when cre... | mit |
shunjikonishi/flectSalesforce | src/main/java/jp/co/flect/salesforce/io/ImportRequest.java | 2007 | package jp.co.flect.salesforce.io;
import java.io.File;
import java.io.IOException;
import java.util.TimeZone;
import jp.co.flect.soap.SoapException;
import jp.co.flect.salesforce.SalesforceClient;
import jp.co.flect.salesforce.SObjectDef;
import jp.co.flect.salesforce.update.ModifyOperation;
import jp.co.fle... | mit |
whiteboardmonk/droplet | node_modules/mongodb/lib/mongodb/cursor.js | 22403 | var QueryCommand = require('./commands/query_command').QueryCommand,
GetMoreCommand = require('./commands/get_more_command').GetMoreCommand,
KillCursorCommand = require('./commands/kill_cursor_command').KillCursorCommand,
Integer = require('./goog/math/integer').Integer,
Long = require('./goog/math/long').Long;... | mit |
akbarsatria/test-pidsus-ci | application/modules/admin/views-Ori/themes/default/kasuss_create.php | 6417 | <div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h2>
Kasus
<a href="<?= base_url('admin/kasuss') ?>" class="btn btn-warning">Kembali ke Daftar Kasus</a>
</h2>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- ... | mit |
smitchell/exploringspatial | js/demos/demo7/collections/Counties.js | 1148 | /**
* Activities is a Backbone Collection of Activity Backbone Models.
* Each model represents a single activity from a Garmin device..
*/
define([
'backbone',
'models/Feature'
], function(Backbone, Feature) {
var Counties = Backbone.Collection.extend({
state: 'ks',
url: "http://data.exploringspati... | mit |
danieljoppi/gulp-html-i18n | lib/index.js | 8241 | (function() {
var EOL, Q, async, fs, getLangResource, getProperty, gutil, handleUndefined, langRegExp, options, path, replaceProperties, supportedType, through,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
... | mit |
shopping24/pagerDutySynchronizer | src/test/java/com/s24/pagerduty/bridge/transformer/PagerdutyIncidentstatusToStatusPageIOIncidentstatusTransformerTest.java | 1022 | package com.s24.pagerduty.bridge.transformer;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import com.s24.pagerduty.bridge.pagerduty.PagerdutyIncidentStatus;
import com.s24.pagerduty.bridge.statuspageio.StatusPageIOIncidentStatus;
public class PagerdutyIncidentstatusToStatusPageIOIncidentst... | mit |
Hexeption/Youtube-Hacked-Client-1.8 | minecraft/net/minecraft/client/resources/SimpleResource.java | 4022 | package net.minecraft.client.resources;
import com.google.common.collect.Maps;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Map;
import net.minecraft.client.resources.data.IMetadataSec... | mit |
andreykata/SoftUni | Programming Basics/2017 January/ProgrammingBasics05Loops/Task03.AToZ/AToZ.cs | 236 | using System;
class AToZ
{
static void Main(string[] args)
{
for (char i = 'a'; i <= 'z'; i++)
{
Console.WriteLine(i);
// Console.WriteLine("{0} -> {1}", i, (int)i);
}
}
}
| mit |
Zuehlke/cookbook-windev | resources/cache_package.rb | 363 | #
# Author:: Vassilis Rizopoulos (<var@zuehlke.com>)
# Cookbook Name:: windev
# Resource:: cache_package
#
# Copyright:: 2015, Zühlke
actions :cache
default_action :cache
attribute :save_as, :name_attribute => true,:kind_of => String, :required=>true
attribute :depot, :kind_of => String, :required=>true
attribute :so... | mit |
BeltranGomezUlises/machineAdminAPI | src/main/java/com/auth/managers/commons/ManagerFacade.java | 3887 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.auth.managers.commons;
import com.auth.entities.commons.IEntity;
import java.util.List;
/**
* fachada de manager general... | mit |
DRIVER-EU/CISadaptor | templates/REST example implementation/CISAdaptorStandaloneAIT/src/main/java/com/frequentis/cis/template/controller/CISConnectorRestController.java | 1518 | package com.frequentis.cis.template.controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.frequentis.cis.connector.CISToolConnector;
import com.frequentis.cis.conn... | mit |
Dzhey/DroidWorker | droidworker/src/main/java/com/be/android/library/worker/models/LoadJobResult.java | 2266 | package com.be.android.library.worker.models;
import com.be.android.library.worker.base.JobEvent;
import com.be.android.library.worker.models.JobResultStatus;
import com.be.android.library.worker.base.JobStatus;
public class LoadJobResult<TData> extends JobEvent {
private TData mData;
public static <T> LoadJ... | mit |
fedeaux/brain_damage | lib/generators/brain_damage/lib/displays/base.rb | 701 | require_relative '../templateable/base'
module BrainDamage
module Displays
class Base < Templateable::Base
def initialize(options)
super
end
def input_html(args = {})
field_description.input.html(args)
end
def include_nested_on_guard?
field_description.rela... | mit |
ljepojevic/Phactory-PHP-framework | Core/Cookie.php | 448 | <?php
namespace Core;
class Cookie {
public static function get($name){
if (isset($_COOKIE[$name])) {
return $_COOKIE[$name];
}
else {
return false;
}
}
public static function set($name, $value, $expire, $path = '', $domain = '', $secure = false, $httponly = false){
setcookie($name, $value, time(... | mit |
RiZAR88/SoftUni | Advanced Collections - Exercises/03. Forum Topics/Properties/AssemblyInfo.cs | 1408 | 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 |
sferik/octokit.rb | lib/octokit/client/repositories.rb | 29419 | module Octokit
class Client
# Methods for the Repositories API
#
# @see http://developer.github.com/v3/repos/
module Repositories
# Check if a repository exists
#
# @see http://developer.github.com/v3/repos/#get
# @param repo [String, Hash, Repository] A GitHub repository
... | mit |
blendee/blendee | src/main/java/org/blendee/assist/Values.java | 4544 | package org.blendee.assist;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.UUID;
import org.blendee.sql.Bindable;
import org.blendee.sql.Binder;
import org.blendee.sql.Column;
import org.blendee.sql.InsertDMLBuilder... | mit |
jmorg/synapse | SynapseBackend/synapseScore.py | 1467 | from vincenty import vincenty
from collections import namedtuple
import math
def exponentialDecay(distance, maxDelta = 10, k = 1):
return maxDelta * pow(math.e, -k * distance)
def extractVoteFeatures(vote):
voteCoef = 1 if vote['vote'] == "\'verify\'" else -1
voteLocation = (vote['location_lat'], vote['location_l... | mit |
kalinalazarova1/TelerikAcademy | Programming/6. Databases/06.ADO.NET/ADO.NET/10.SQLite/Properties/AssemblyInfo.cs | 1394 | 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("10... | mit |
dwmkerr/node-docker-mircroservice | users-service/repository/repository.js | 2119 | // repository.js
//
// Exposes a single function - 'connect', which returns
// a connected repository. Call 'disconnect' on this object when you're done.
'use strict';
var mysql = require('mysql');
// Class which holds an open connection to a repository
// and exposes some simple functions for accessing data.
cl... | mit |
DecodeGenetics/graphtyper | src/graph/ref.cpp | 604 | #include <vector>
#include <graphtyper/constants.hpp>
#include <graphtyper/graph/ref.hpp>
namespace gyper
{
Ref::Ref(std::vector<char> && _seq) : seq(std::forward<std::vector<char>>(_seq))
{
}
Ref::Ref(std::vector<char> const & _seq) : seq(_seq)
{
}
Ref::Ref(std::initializer_list<char> l) : seq(l)
{
}
void Ref::cl... | mit |
stonedz/pff2 | src/modules/logger/Abs/ALogger.php | 922 | <?php
namespace pff\modules\Abs;
/**
* Abstract class that must be exteded by any logger.
*
* @author paolo.fagni<at>gmail.com
*/
abstract class ALogger {
// Log levels
const LVL_NORM = 0;
const LVL_ERR = 1;
const LVL_FATAL = 2;
/**
* Log level names
*
* @var string[]
... | mit |
kaukulpr/nsdk | Job Postings/Global.asax.cs | 573 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace Job_Postings
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
... | mit |
blackfireio/php-sdk | src/Blackfire/LoopClient.php | 6596 | <?php
/*
* This file is part of the Blackfire SDK package.
*
* (c) Blackfire <support@blackfire.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Blackfire;
use Blackfire\Exception\LogicException;
use Blackfire\Excep... | mit |
OGRECave/ogre | OgreMain/src/OgreMesh.cpp | 100788 | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | mit |
Sy4z/OpenGLTest | src/graphicsRender/Render.java | 3972 | package graphicsRender;
import org.lwjgl.LWJGLException;
import org.lwjgl.input.Keyboard;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
import org.lwjgl.opengl.GL11;
import static org.lwjgl.opengl.GL11.GL_DEPTH_TEST;
import static org.lwjgl.opengl.GL11.GL_BLEND;
import static org.lwjgl.opengl.G... | mit |
henkaku/henkaku | urop/loader.py | 3647 | #!/usr/bin/env python3
from target_360 import Rop360, G, F
from rop import Ret, Load
from relocatable import SceWebKit_base, SceLibKernel_base, SceLibc_base, \
SceLibHttp_base, SceNet_base, SceAppMgr_base
from sys import argv, exit
# Constants
stack_size = 6 * 1024 * 1024
max_code_size = stack_size // 2
memblock... | mit |
unbornchikken/NOOOCL | lib/clSampler.js | 1812 | "use strict";
var CLWrapper = require("./clWrapper");
var util = require("util");
var fastcall = require("fastcall");
var ref = fastcall.ref;
var clUtils = require("./clUtils");
function createReleaseFunction(cl, handle) {
return CLWrapper._releaseFunction(function () {
cl.imports.clReleaseSampler(handle)... | mit |
interpunkt/generator-craftskeleton | generators/app/templates/_plugins/retour/migrations/m160426_020311_retour_FixIndexes.php | 861 | <?php
namespace Craft;
/**
* The class name is the UTC timestamp in the format of mYYMMDD_HHMMSS_pluginHandle_migrationName
*/
class m160426_020311_retour_FixIndexes extends BaseMigration
{
/**
* Any migration code in here is wrapped inside of a transaction.
*
* @return bool
*/
public function safeUp()
{
... | mit |
ilfeng/hsr | src/js/framework/core/utils/url.js | 2675 | /**
* 地址辅助类。
*
* @type {class}
* @static
*/
define(['jquery', 'ns', 'util-string'], function ($, ns, StringUtils) {
'use strict';
return (ns.UrlUtils = {
/**
* 转换字符串地址为对象。
*
* @param {string} url 地址。
*
* @return {object} 地址对象。
*/
pars... | mit |
devcycle/devcycle.github.io | vendor/bundle/gems/jekyll-algolia-1.6.0/lib/jekyll/algolia/version.rb | 94 | # frozen_string_literal: true
module Jekyll
module Algolia
VERSION = '1.6.0'
end
end
| mit |
voxie-viewer/voxie | src/Voxie/filter/filterchain3d.cpp | 4786 | #include "filterchain3d.hpp"
#include <cmath>
#include <Voxie/ivoxie.hpp>
#include <Voxie/plugin/metafilter3d.hpp>
#include <Voxie/plugin/voxieplugin.hpp>
#include <Voxie/scripting/scriptingexception.hpp>
#include <QtWidgets/QMessageBox>
using namespace voxie::data;
using namespace voxie::filter;
using namespace v... | mit |
jpwerka/SistemaSFG | SfgEstoque.cpp | 2622 | //---------------------------------------------------------------------------
#include <vcl.h>
#include <windows.h>
#include "uSfgGlobals.h"
#include "uSfgTools.h"
#pragma hdrstop
//---------------------------------------------------------------------------
// Important note about DLL memory management when your DLL ... | mit |
luanhsd/IFLattes | application/models/Area_model.php | 517 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Area_Model extends CI_Model {
public function __construct() {
parent::__construct();
}
public function datalist() {
$query = $this->db->query('SELECT grande_area,if(area="","Não Informado",area) as area,if(sub_ar... | mit |
Sebubu/BringToAfrica | app/viewmodels/ProjectDetail.java | 1440 | package viewmodels;
import models.Donation;
import models.DonationGoal;
import models.Project;
import models.User;
import services.DonationGoalService;
import services.ProjectService;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
public class ProjectDetail {
private int state;
priv... | mit |
martinski74/SoftUni | C#_Basic/Задачи/CSharpBasicExam11AprlilEvening2014/05.CatchTheBits/Program.cs | 906 | using System;
class Program
{
static void Main()
{
int n = int.Parse(Console.ReadLine());
int step = int.Parse(Console.ReadLine());
int sequence = 0;
int bitCount = 0;
for (int i = 1, k = 1; i <= n; i++)
{
byte currentByte = byte.Parse(Console.ReadLi... | mit |
Karasiq/scalajs-highcharts | src/main/scala/com/highmaps/config/PlotOptionsIkhMarkerStatesSelect.scala | 3967 | /**
* Automatically generated file. Please do not edit.
* @author Highcharts Config Generator by Karasiq
* @see [[http://api.highcharts.com/highmaps]]
*/
package com.highmaps.config
import scalajs.js, js.`|`
import com.highcharts.CleanJsObject
import com.highcharts.HighchartsUtils._
/**
* @note JavaScript n... | mit |
PenguinSquad/Harvest-Festival | src/main/java/joshie/harvest/npcs/gui/GuiNPCGift.java | 2253 | package joshie.harvest.npcs.gui;
import joshie.harvest.api.npc.gift.IGiftHandler.Quality;
import joshie.harvest.core.HFTrackers;
import joshie.harvest.core.helpers.TextHelper;
import joshie.harvest.npcs.NPCHelper;
import joshie.harvest.npcs.entity.EntityNPC;
import net.minecraft.entity.player.EntityPlayer;
import net.... | mit |
PieterScheffers/ll-protocol | src/utils/FrameHeader.js | 1263 | 'use strict';
// | ID (4) | index (4) | isLast (1) (170 === true) |
class FrameHeader {
constructor(fields = {}) {
this._fields = fields;
}
// TODO: add frame length to validate length
toBuffer() {
let buffer = Buffer.alloc(FrameHeader.headerLength());
buffer.writeUInt32LE(th... | mit |
zingcoin/zingcoin | src/net.cpp | 56641 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2013 Zingcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "db.h"
#include "net.h"
#includ... | mit |
protobi/msexcel-builder | test/numberformat.js | 1557 | var fs = require('fs');
var assert = require('assert');
var JSZip = require('jszip');
var path = require('path')
var compareWorkbooks = require('./util/compareworkbooks.js')
var excelbuilder = require('../lib/msexcel-builder');
describe('It generates a simple workbook', function () {
it('takes a file name on sav... | mit |
south-coast-science/scs_core | src/scs_core/sys/serial.py | 3284 | """
Created on 19 Mar 2019
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
https://stackoverflow.com/questions/7266558/pyserial-buffer-wont-flush
"""
import time
from abc import ABC, abstractmethod
# -------------------------------------------------------------------------------------------------------... | mit |
ni4ka7a/TelerikAcademyHomeworks | WebServicesAndCloud/02.ASP.NETWebAPI/01.StudentSystem/StudentSystem.Services/Models/Homeworks/HomeworkResponseModel.cs | 342 | namespace StudentSystem.Services.Models.Homeworks
{
using System;
public class HomeworkResponseModel
{
public int Id { get; set; }
public string Content { get; set; }
public int CourseId { get; set; }
public int StudentId { get; set; }
public DateTime TimeSent {... | mit |
cschwebk/mellon | lib/mud.js | 2051 | 'use strict';
var net = require('net'),
TelnetInput = require('telnet-stream').TelnetInput,
TelnetOutput = require('telnet-stream').TelnetOutput,
localSocket = null;
module.exports = {
connectToMud: function(config, webSocket, logger, debug) {
var telnetInput = new TelnetInput(),
t... | mit |
rinman24/ucsd_ch | coimbra_chamber/utility/plot/contracts.py | 1226 | """Data contracts for plot utility."""
from dataclasses import dataclass, field
from datetime import datetime
from typing import List
# ----------------------------------------------------------------------------
# Plot utility DTOs
@dataclass(frozen=True)
class DataSeries:
"""DataSeries to plot on a single a... | mit |
j5ik2o/reactive-redis | core/src/main/scala/com/github/j5ik2o/reactive/redis/command/lists/BLPopRequest.scala | 2811 | package com.github.j5ik2o.reactive.redis.command.lists
import java.util.UUID
import cats.data.NonEmptyList
import com.github.j5ik2o.reactive.redis.RedisIOException
import com.github.j5ik2o.reactive.redis.command.{ CommandRequest, CommandResponse, StringParsersSupport }
import com.github.j5ik2o.reactive.redis.parser.S... | mit |
qingweibinary/binary-charts | src/parts/rangeSelector.js | 644 | export default () => ({
buttons: [{
type: 'second',
count: 15,
text: 'TICK',
}, {
type: 'minute',
count: 1,
text: '1M',
}, {
type: 'minute',
count: 15,
text: '15M',
}, {
type: 'hour',
count: 1,
text: '1H',
... | mit |
oscarotero/Embed | src/Detectors/Keywords.php | 1472 | <?php
declare(strict_types = 1);
namespace Embed\Detectors;
class Keywords extends Detector
{
public function detect(): array
{
$tags = [];
$metas = $this->extractor->getMetas();
$ld = $this->extractor->getLinkedData();
$types = [
'keywords',
'og:video:... | mit |
mnahm5/django-estore | src/carts/views.py | 8335 | import braintree
from django.conf import settings
from django.contrib import messages
from django.contrib.auth.forms import AuthenticationForm
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect, Http404, JsonResponse
from django.shortcuts import render, get_object_or_404, redirec... | mit |
Roxxik/Evolve5.0 | src/field.rs | 1457 | use std::collections::BTreeMap;
use types::*;
use organism::OrgRef;
#[derive(Debug)]
enum Tile {
Organism(OrgRef),
Corpse(Energy),//the energy contained in the corpse
}
#[derive(Debug)]
pub struct Field{
cols: Coord,
rows: Coord,
field: BTreeMap<(Coord,Coord),Tile>,
}
impl Field {
pub fn n... | mit |
fabiocicerchia/Silex-Setup | src/Tests/ValidateCodingStandardsTest.php | 1884 | <?php
/**
* SilexSetup
*
* PHP version 5
*
* @category Framework
* @package SilexSetup
* @author Fabio Cicerchia <info@fabiocicerchia.it>
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link https://github.com/fabiocicerchia/Silex-Setup
*/
/**
* ValidateCodingStandardsTest
*
*... | mit |
oligus/jad | tests/e2e/RelationshipsTest.php | 4503 | <?php declare(strict_types=1);
namespace Jad\E2E;
use Jad\Jad;
use Jad\Database\Manager;
use Jad\Map\AnnotationsMapper;
use Jad\Tests\TestCase;
use Spatie\Snapshots\MatchesSnapshots;
/**
* Class RelationshipsTest
* @package Jad\E2E
*/
class RelationshipsTest extends TestCase
{
use MatchesSnapshots;
/**
... | mit |
gz/bespin | kernel/src/prelude.rs | 115 | #[macro_export]
macro_rules! round_up {
($num:expr, $s:expr) => {
(($num + $s - 1) / $s) * $s
};
}
| mit |
juliomar/ACBr.Net | ACBr.Net.NFe/Classes/NFe/RefNF.cs | 471 | using System;
using System.Collections.Generic;
namespace ACBr.Net.NFe
{
public sealed class RefNF
{
#region Constructor
public RefNF()
{
}
#endregion Constructor
#region Properties
public int CUF { get; set; }
public string AAMM { get; set; }
public string CNPJ { get; set; ... | mit |
dinhoarakaki/marariFE | out/artifacts/marariHTML_war_exploded/js/produto.js | 4020 | var app = new Vue({
el:'#app',
data:{
indexUpdate: -1,
isActive: false,
newProduto:{
id:'',
descricao:'',
codBarras:'',
fornecedor:'',
precoCusto:'',
precoVenda:'',
precoMinVenda:'',
precoMaxV... | mit |
Doshibu/AfkWatch | src/Doshibu/AfkWatchBundle/Controller/NewsController.php | 4807 | <?php
namespace Doshibu\AfkWatchBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\Respo... | mit |
lmazuel/azure-sdk-for-python | azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/application_gateway_redirect_configuration_py3.py | 3957 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit |
jbroadway/elefant-quickstart | bootstrap.php | 1276 | <?php
conf ('Database', 'master', array (
'driver' => 'mysql',
'host' => $_SERVER["DB1_HOST"] . ':' . $_SERVER["DB1_PORT"] ,
'name' => $_SERVER["DB1_NAME"],
'user' => $_SERVER["DB1_USER"],
'pass' => $_SERVER["DB1_PASS"]
));
// After the first run through, you can comment out or remove
// this entire block and re... | mit |
marlontamo/store-management | application/views/header.php | 2555 | <?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Site title</title>
<meta name="description" conte... | mit |
nassafou/serApp | src/Sdz/CatalogueBundle/Entity/Cproduits.php | 2405 | <?php
namespace Sdz\CatalogueBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Cproduits
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="Sdz\CatalogueBundle\Entity\CproduitsRepository")
*/
class Cproduits
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
... | mit |
tedc/polaris-theme | builder/blog.php | 641 | <?php
$args = array(
'posts_per_page' => 2,
'post__in' => get_sub_field('news')
);
$q = new WP_Query($args);
$blog = true;
if($q->have_posts()) : ?>
<div class="news news--shrink news--grow-lg news--grid">
<header class="news__cell news__cell--shrink news__cell--s12">
<h2 class="news__title news__title--big-u... | mit |
portchris/NaturalRemedyCompany | src/lib/Mage/Archive/Helper/File/Bz.php | 2412 | <?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | mit |
H-EAL/vfs | include/vfs/file.hpp | 2796 | #pragma once
#include <memory>
#include "vfs/platform.hpp"
// File interface
#include "vfs/file_interface.hpp"
// Platform specific implementations
#if VFS_PLATFORM_WIN
# include "vfs/win_file.hpp"
#elif VFS_PLATFORM_POSIX
# include "vfs/posix_file.hpp"
#else
# error No file implementation defined for the current p... | mit |
hugojunior/ci-base | ci/application/modules/auth/libraries/Authenticator.php | 278 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Authenticator {
protected $ci, $user;
public function __construct()
{
$this->ci = &get_instance();
}
public function loggedin()
{
return $this->user;
}
}
| mit |
derekgreer/expectedObjects | src/ExpectedObjects.Specs/IgnoreSpecs.cs | 2179 | using System;
using ExpectedObjects.Specs.Extensions;
using ExpectedObjects.Specs.Properties;
using ExpectedObjects.Specs.TestTypes;
using Machine.Specifications;
namespace ExpectedObjects.Specs
{
public class IgnoreSpecs
{
[Subject("Ignoring Equals Override")]
public class when_comparing_uneq... | mit |
NewEconomyMovement/nem.core | src/test/java/org/nem/core/utils/ByteUtilsTest.java | 6934 | package org.nem.core.utils;
import org.hamcrest.core.IsEqual;
import org.junit.*;
public class ByteUtilsTest {
//region bytesToLong / longToBytes
// region bytesToLong
@Test
public void canConvertBytesToLong() {
// Assert:
assertBytesToLongConversion(new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 }, 0x0... | mit |
hengkx/note | packages/web/webpack.config.dev.js | 1735 | import webpack from 'webpack';
import path from 'path';
import webpackMerge from 'webpack-merge';
import pxtorem from 'postcss-pxtorem';
import ip from 'ip';
import baseConfig from './webpack.config.base';
import theme from './themes/theme';
const host = ip.address();
const port = 5005;
export default webpackMerge(ba... | mit |
DPOH-VAR/PowerNBT | src/main/java/me/dpohvar/powernbt/command/action/Action.java | 404 | package me.dpohvar.powernbt.command.action;
import me.dpohvar.powernbt.exception.NBTTagNotFound;
import me.dpohvar.powernbt.nbt.*;
import org.bukkit.ChatColor;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import static me.dpohvar.powernbt.PowerNBT.plugin;
publ... | mit |
mt830813/code | Lib/ADOUtility/ADOUtility.Model/SampleDbDataStructureListExt.cs | 1246 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ADOUtility.Model
{
public static class SampleDbDataStructureListExt
{
public static int InsertOrUpdateMulti(this List<SampleDBDataStructure> list)
{
... | mit |
googlecreativelab/three.js | src/Three.Legacy.js | 39188 | /**
* @author mrdoob / http://mrdoob.com/
*/
import { Audio } from './audio/Audio.js';
import { AudioAnalyser } from './audio/AudioAnalyser.js';
import { PerspectiveCamera } from './cameras/PerspectiveCamera.js';
import { CullFaceFront, CullFaceBack, FlatShading } from './constants.js';
import {
Float64BufferAttrib... | mit |
zzjkf2009/Midterm_Astar | opencv/modules/imgproc/src/undistort.avx2.cpp | 10014 | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | mit |
lsjroberts/node-tfl | lib/bus.js | 25 | var bus = function() { }; | mit |
TrayboonBucks/Trayboon_Bucks | src/qt/guiutil.cpp | 13561 | #include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "util.h"
#include "init.h"
#include "base58.h"
#include <QString>
#include <QDateTime>
#include <QDoubleValidator>
#include <QFont>
#include <QLineEdit>
#include <QUrl>
#include <QTextDocument> // For ... | mit |
misterhaan/track7.org | comments.php | 3818 | <?php
define('MAX_COMMENT_GET', 24);
require_once $_SERVER['DOCUMENT_ROOT'] . '/etc/class/t7.php';
$u = FindUser();
$html = new t7html(['vue' => true]);
if($u) {
$html->Open(htmlspecialchars($u->displayname) . '’s comments');
?>
<h1 data-user=<?=$u->id; ?>>
<a href="/user/<?=$u->username; ?>/">
<img clas... | mit |
paydirt/delayable_km | lib/delayable_km/km.rb | 2336 | # The main delayable_km class, containing methods for initializing a KISSmetrics API client and making API calls
class KM
# The default KISSmetrics API endpoint that all requests are sent to
DEFAULT_API_ENDPOINT = 'http://trk.kissmetrics.com'
# Create a KISSmetrics API client.
#
# @param [String] :api_key Yo... | mit |
Canadensys/canadensys-data-access | src/main/java/net/canadensys/dataportal/occurrence/model/ResourceContactModel.java | 2693 | package net.canadensys.dataportal.occurrence.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
@Entity
@Table(name = "resource_contact")
@Seq... | mit |
ysden123/ys-pnodejs | modules/pmocha/lib/config.js | 207 | // Defines list of the automation tests.
'use strict';
module.exports = function () {
return {
tests: [
"google_adwords/test/auth_test.js",
"ppc/test/*"
]
};
} | mit |
negrinho/deep_architect | dev/google_communicator/worker.py | 5680 | import argparse
import pickle
import json
import time
import threading
import pprint
import deep_architect.utils as ut
from google.cloud import pubsub_v1
from deep_architect.contrib.misc.datasets.loaders import (load_cifar10,
load_mnist)
from deep_architect.con... | mit |
marcusfcbarbosa/myPortfolio | MyPortFolio.WebUI/Controllers/AccountController.cs | 15926 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Transactions;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using DotNetOpenAuth.AspNet;
using Microsoft.Web.WebPages.OAuth;
using WebMatrix.WebData;
using MyPortFolio.WebUI.Filters;
using MyPortFolio.WebUI.... | mit |
anitagraham/refinerycms-testimonials | spec/models/testimonial_spec.rb | 1319 | require 'spec_helper'
module Refinery
module Testimonials
describe Testimonial, type: :model do
let(:good_testimonial) { FactoryBot.create(:testimonial)}
let(:no_name_testimonial) { FactoryBot.create(:testimonial, name: "") }
let(:no_quote_testimonial) { FactoryBot.create(:testimonial, qu... | mit |
QuincyWork/AllCodes | Cpp/Codes/Practice/LeetCode/205 Isomorphic Strings.cpp | 730 | #include <gtest\gtest.h>
#include <map>
using namespace std;
bool isIsomorphic(string s, string t)
{
const int lengthS = s.length();
const int lengthT = t.length();
if (lengthS != lengthT)
{
return false;
}
map<int, int> deltaS;
map<int, int> deltaT;
for (int i = 0; i < lengthS; ++i)
{
int m = s[i];
i... | mit |
xinton/exercicio-vox | src/VoxSocioBundle/VoxSocioBundle.php | 123 | <?php
namespace VoxSocioBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class VoxSocioBundle extends Bundle
{
}
| mit |
ksonbol/portfolio | public/js/bootstrap.js | 67347 | /*!
* Bootstrap v3.3.1 (http://getbootstrap.com)
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=4d95e0409bc83a676390)
* Config saved to config.json and https:... | mit |
UKHomeOffice/removals_integration | api/controllers/CentresController.js | 1099 | 'use strict';
const findOneAction = require('sails/lib/hooks/blueprints/actions/findOne');
const findAction = require('sails/lib/hooks/blueprints/actions/find');
const BedCountService = require('../services/BedCountService');
/**
* CentreController
*
* @description :: Server-side logic for managing centres
* @hel... | mit |
OpenESDH/OpenESDH-UI | app/src/shared/filters/oeParametersFilter.js | 295 | angular
.module('openeApp')
.filter('oeParam', oeParametersFilterFactory);
function oeParametersFilterFactory(oeParametersService) {
function oeParamFilter(oeParameterName) {
return oeParametersService.getParameter(oeParameterName);
}
return oeParamFilter;
} | mit |
gameofbombs/pixi-super-atlas | src/core/AtlasNode.ts | 1726 | namespace pixi_atlas {
import Rectangle = PIXI.Rectangle;
const INF = 1 << 20;
//TODO: add some padding
export class AtlasNode<T> {
public childs: Array<AtlasNode<T>> = [];
public rect = new Rectangle(0, 0, INF, INF);
public data: T = null;
public insert(atlasWidth: number, atlasHeight: number,
... | mit |
akiellor/gemjars-deux | lib/gemjars/deux/http.rb | 816 | require 'gemjars/deux/streams'
module Gemjars
module Deux
class Http
def self.default
new
end
def initialize
connection_manager = Java::OrgApacheHttpImplConn::PoolingClientConnectionManager.new
@client = Java::org.apache.http.impl.client.DefaultHttpClient.new(connection... | mit |
rusinikita/recipies-app | app/src/androidTest/java/com/nikita/recipiesapp/RecyclerViewMatcher.java | 2590 | package com.nikita.recipiesapp;
import android.content.res.Resources;
import android.support.test.espresso.Espresso;
import android.support.test.espresso.contrib.RecyclerViewActions;
import android.support.test.espresso.matcher.ViewMatchers;
import android.support.v7.widget.RecyclerView;
import android.view.View;
imp... | mit |
metalvarez/tonada-prototype | src/Tonada/ApplicationBundle/Resources/skeleton/crud/tests/test.php | 397 | <?php
namespace {{ namespace }}\Tests\Controller{{ entity_namespace ? '\\' ~ entity_namespace : '' }};
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class {{ entity_class }}ControllerTest extends WebTestCase
{
/*
{%- if 'new' in actions %}
{%- include 'tests/others/full_scenario.php' -%}
{%- else %}
... | mit |
mitjajez/SONCE | imports/ui/test-helpers.js | 756 | // TODO -- this should probably be some kind of test package that people use
import { _ } from 'meteor/underscore';
import { Template } from 'meteor/peerlibrary:blaze-components';
import { Blaze } from 'meteor/blaze';
import { Tracker } from 'meteor/tracker';
const withDiv = function withDiv(callback) {
const el = ... | mit |
bgotink/libdoorman | doorman/parser.hpp | 312 | #ifndef __parser_h
#define __parser_h
namespace doorman
{
void initParser();
struct state_t;
class parser_t {
state_t *state;
public:
unsigned int bits[12];
unsigned int length;
parser_t();
void reset();
bool consume(unsigned int);
bool is_ready() const;
};
}
#endif
| mit |
makandra/katapult | lib/generators/katapult/model/model_generator.rb | 2203 | # Generate a Rails model, including migration and spec.
require 'katapult/generator'
require 'generators/katapult/model_specs/model_specs_generator'
module Katapult
module Generators
class ModelGenerator < Katapult::Generator
desc 'Generate a Rails Model'
check_class_collision
source_root Fi... | mit |
huntie/laravel-simple-jsonapi | src/Routing/Router.php | 944 | <?php
namespace Huntie\JsonApi\Routing;
class Router extends \Illuminate\Routing\Router
{
/**
* Register an array of JSON API resource controllers.
*
* @param array $resources
*/
public function jsonApiResources(array $resources)
{
foreach ($resources as $name => $controller) {... | mit |
jking6884/ember-cli-table-pagination | addon/components/bs-table-pagination/table-content.js | 5063 | import Ember from 'ember';
import layout from '../../templates/components/bs-table-pagination/table-content';
import ResizeAware from 'ember-resize/mixins/resize-aware';
const { Component, computed, observer, on, run} = Ember;
const { reads } = computed;
export default Component.extend(ResizeAware, {
layout,
resi... | mit |
andyw8/mutant | meta/match_current_line.rb | 283 | # encoding: utf-8
Mutant::Meta::Example.add do
source 'true if /foo/'
singleton_mutations
mutation 'false if /foo/'
mutation 'true if //'
mutation 'nil if /foo/'
mutation 'true if true'
mutation 'true if false'
mutation 'true if nil'
mutation 'true if /a\A/'
end
| mit |
onajphi/CmsSitioAdministrador | src/Cms/CmsBundle/Controller/EstadoCivilesController.php | 6337 | <?php
namespace Cms\CmsBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Cms\CmsBundle\Entity\EstadoCiviles;
use Cms\CmsBundle\Form\EstadoCivilesType;
/**
* EstadoCiviles controller.
*
*/
class EstadoCivilesController extends Controller... | mit |
websoftwares/adr | src/Action/Page/ReadAction.php | 740 | <?php
namespace Websoftwares\Adr\Action\Page;
use Websoftwares\Adr\Action\ActionInterface,
Symfony\Component\HttpFoundation\Request,
Websoftwares\Adr\IoCInterface as Domain,
Websoftwares\Adr\Responder\Page\ReadResponder as Responder;
class ReadAction implements ActionInterface
{
public function __const... | mit |
vanatka/auth0client | Auth0Client/src/main/java/com/helloworldlab/auth0client/core/utils/DeviceId.java | 985 | package com.helloworldlab.auth0client.core.utils;
import android.os.Build;
/**
* @author Ivan Aläxkin (ivan.alyakskin@gmail.com)
*/
public class DeviceId {
/**
* @return pseudo unique id
*/
public static String getDeviceId( ) {
StringBuilder sb = new StringBuilder();
return sb.append( "35" )
... | mit |