repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
anarcheuz/Funny-school-projects | DevOO/src/test/Test.java | 4576 | package test;
import java.io.File;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.io.*;
import java.nio.file.Path;
import javax.xml.parsers.*;
import org.w3c.dom.*;
import org.xml.sax.*;
import modele.*;
import controleur.*;
public class Test {
public static void... | mit |
quintusdias/glymur | tests/test_jp2box_uuid.py | 13523 | # -*- coding: utf-8 -*-
"""Test suite for printing.
"""
# Standard library imports
import importlib.resources as ir
import io
import shutil
import struct
import unittest
import uuid
import warnings
# Third party library imports ...
import lxml.etree
# Local imports
import glymur
from glymur import Jp2k
from glymur.j... | mit |
vivet/GoogleApi | .tests/GoogleApi.Test/Maps/DistanceMatrix/DistanceMatrixTests.cs | 9895 | using System;
using System.Threading;
using GoogleApi.Entities.Common;
using GoogleApi.Entities.Common.Enums;
using GoogleApi.Entities.Maps.Common;
using GoogleApi.Entities.Maps.Common.Enums;
using GoogleApi.Entities.Maps.DistanceMatrix.Request;
using NUnit.Framework;
namespace GoogleApi.Test.Maps.DistanceMatrix
{
... | mit |
coffeeaddict/kindergarten | spec/kindergarten/perimeter_spec.rb | 3111 | require 'spec_helper'
describe Kindergarten::Perimeter do
describe :class do
it "should have a :expose method" do
SpecPerimeter.should respond_to(:expose)
SpecPerimeter.should respond_to(:exposed_methods)
end
it "should return exposed methods" do
SpecPerimeter.exposed_methods.should_not... | mit |
bytenoodles/symfony2-orm | src/ByteNoodles/Bundle/Symfony2ORMBundle/Controller/DefaultController.php | 334 | <?php
namespace ByteNoodles\Bundle\Symfony2ORMBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
public function indexAction($name)
{
return $this->render('ByteNoodlesSymfony2ORMBundle:Default:index.html.twig', array('name' => $na... | mit |
europa1613/java | leetcode/src/com/test/median/twosortedarrays/Solution.java | 1074 | package com.test.median.twosortedarrays;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
class Solution {
public static void main(String[] args) {
System.out.println(findMedianSortedArrays(new int[] { 1, 2 }, new int[] { 3, 4 }));
}
public static d... | mit |
GethosTheWalrus/Goverwatch | models/models.Hero.List.Hero.go | 299 | package models
// Model representing a watered down hero, for the hero list call
// Fields:
// Name: The name of the hero
// Roles: The role(s) of the hero
// Portrait: The hero's portrait (As displayed on Blizzard's website)
type HeroListHero struct {
Name string
Roles string
Portrait string
} | mit |
djfoxer/healthyWithVS | djfoxer.HealthyWithVS/djfoxer.HealthyWithVS/Helpers/Consts.cs | 1129 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace djfoxer.HealthyWithVS.Helpers
{
public static class Consts
{
public const string OptionsCategoryBasicName = "Basic";
public const string PluginName = "Healthy With VS";... | mit |
zielq701/slack-radio-dj | src/interface/song-metadata.interface.ts | 780 | export interface SongMetadata {
kind: string;
etag: string;
id: string;
snippet: {
publishedAt: string;
channelId: string;
title: string;
description: string;
thumbnails: any;
channelTitle: string;
tags: [
string
],
categoryId: string;
liveBroadcastContent: string... | mit |
alexdzul/myPage | myPage/apps/social/models.py | 552 | from django.db import models
# Create your models here.
class SocialNetwork(models.Model):
def image_path(self, filename):
ruta = "SocialNetwork/%s/%s" % (self.name, str(filename))
return ruta
name = models.CharField(max_length=300)
url = models.URLField(max_length=700)
icon = models.... | mit |
Azure/azure-sdk-for-java | sdk/keyvault/azure-security-keyvault-keys/src/test/java/com/azure/security/keyvault/keys/KeyAsyncClientManagedHsmTest.java | 6348 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.security.keyvault.keys;
import com.azure.core.exception.ResourceModifiedException;
import com.azure.core.http.HttpClient;
import com.azure.core.test.TestMode;
import com.azure.core.util.Configuration;
impo... | mit |
kasperisager/generator-vanilla | app/templates/class.themehooks.php | 526 | <?php if (!defined('APPLICATION')) exit;
/**
* <%= name %> Theme Hooks
*
* @author <%= author.name %><% if (author.email) { %> <<%= author.email %>><% } %>
* @copyright <%= year %> (c) <%= author.name %>
* @license <%= license %>
* @since 1.0.0
*/
class <%= _(name).classify() %>ThemeHooks implements Gd... | mit |
breakwang/pykit | daemonize/test/foo.py | 297 | import time
import daemonize
fn = '/tmp/foo'
pidfn = '/tmp/test_daemonize.pid'
def write_file(fn, cont):
with open(fn, 'w') as f:
f.write(cont)
def run():
write_file(fn, 'foo-before')
time.sleep(1)
write_file(fn, 'foo-after')
daemonize.daemonize_cli(run, pidfn)
| mit |
mattsoulanille/compSci | RandomDataAnalyzer/RandomData.java | 714 | /**
* RandomDataAnalyzer.java program
* @author Matthew Soulanille
* @version 2014-10-30
*/
import java.util.ArrayList;
import java.lang.Math;
import java.util.Collections;
public class RandomData
{
public double average;
public double max;
public ArrayList<Double> database = new ArrayList<Double>(100... | mit |
MarcelBraghetto/BlogDemos | DijkstraPart2/app/src/main/java/io/github/marcelbraghetto/dijkstra/part2/models/Crab.java | 2518 | package io.github.marcelbraghetto.dijkstra.part2.models;
import android.support.annotation.NonNull;
import java.util.Stack;
import io.github.marcelbraghetto.dijkstra.part2.systems.Graph;
import io.github.marcelbraghetto.dijkstra.part2.utils.MathUtils;
import io.github.marcelbraghetto.dijkstra.part2.R;
import io.gith... | mit |
SparkRebel/sparkrebel.com | src/PW/UserBundle/PWUserBundle.php | 196 | <?php
namespace PW\UserBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class PWUserBundle extends Bundle
{
public function getParent()
{
return 'FOSUserBundle';
}
}
| mit |
instructure/lti_skydrive_engine | jsapp/karma.conf.js | 1610 | module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['mocha'],
files: [
// need to figure out how to get webpack to take a glob w/o duplicating
// stuff everywhere
'node_modules/sinon/pkg/sinon.js',
'node_modules/jquery/dist/jquery.js',
'node_modules... | mit |
mabotech/maboq | py/redis_lua.py | 1110 | """
redis lua
"""
import time
import redis
def main():
# connection pool
r = redis.Redis(host='localhost', port=6379, db=0)
"""
compare value
update value when change
create job to update db when value change
set heartbeat pre tag
"""
lua_code = """if redis.call("EXISTS", ... | mit |
apiaryio/swagger2blueprint | test.js | 570 | 'use strict';
var assert = require('assert');
var converter = require('./index');
describe('Swagger converter', function () {
it('should read a local file', function (done) {
converter.run({'_': ['petstore_expanded.yaml']}, function (err, blueprint) {
assert.ifError(err);
assert(blueprint);
do... | mit |
alexmohr/Ikarus | Ikarus.Desktop.Server/Ikarus.Desktop.Server.cpp | 1421 | // Ikarus.Desktop.Server.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "../Ikarus.Base/CommandHandler.h"
#include "FakePinManager.h"
#include "TcpConnection.h"
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
using namespace Ikarus::Communication... | mit |
ubivar/ubivar-python | ubivar/test/resources/test_event.py | 2765 | import os
import ubivar
import warnings
from ubivar.test.helper import (UbivarTestCase, DUMMY_EVENT_1, DUMMY_EVENT_2, DUMMY_EVENT_3)
class UbivarAPIResourcesTests(UbivarTestCase):
def test_event_create(self):
response = ubivar.Event.create(parameters=DUMMY_EVENT_1)
event = response.data[0]
... | mit |
butala/pyrsss | pyrsss/mag/themis_stations.py | 1448 | from urllib2 import urlopen
from contextlib import closing
from collections import OrderedDict, namedtuple
INFO_URL = 'http://themis.ssl.berkeley.edu/gmag/gmag_groups.php'
class Info(namedtuple('Info', 'lat lon name mlat mlon')):
pass
PARSE_MAP = {'ccode': ('key', str),
'lat': ('lat', float... | mit |
symulakr/gwt-generators | src/main/java/com/github/symulakr/gwt/generators/rebind/utils/StringUtils.java | 742 | package com.github.symulakr.gwt.generators.rebind.utils;
public class StringUtils
{
public static boolean isEmpty(String str)
{
return str == null || str.length() == 0;
}
public static boolean isNotEmpty(String str)
{
return !StringUtils.isEmpty(str);
}
public static boolean equals(... | mit |
mandino/hotelmilosantabarbara.com | wp-content/plugins/wpml-string-translation/menu/string-translation.php | 42062 | <?php
/** @var WPML_String_Translation $WPML_String_Translation */
global $sitepress, $WPML_String_Translation, $wpdb, $wpml_st_string_factory;
$string_settings = $WPML_String_Translation->get_strings_settings();
icl_st_reset_current_translator_notifications();
if((!isset($sitepress_settings['existing_content_languag... | mit |
sonata-project/SonataMediaBundle | src/Resources/config/actions.php | 1006 | <?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Sonata\MediaBundle\Action\MediaDow... | mit |
selametsubu/newmpo | application/models/Vw_smart_vs_sas_detail_last_m.php | 2964 | <?php
/*
* 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.
*/
/**
* Description of Vw_smart_vs_sas_detail_last_m
*
* @author Selamet Subu - Dell 5459
*/
class Vw_smart_vs_sas_detail_las... | mit |
GLSea1979/fit-o-matic-frontend | app/component/admin/bike/display-bike/display-bike.js | 1389 | 'use strict';
require('./_display-bike.scss');
module.exports = {
template: require('./display-bike.html'),
controller: ['$log','$timeout','$uibModal','bikeService', DisplayBikeController],
controllerAs: 'displayBikeCtrl',
bindings: {
brand: '<',
currentBike: '<',
passCurrentBike: '&'
}
};
funct... | mit |
twem007/p1 | code/client/src/core/utils/MD5.ts | 14382 | /*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as defined in RFC 1321.
* Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http:/... | mit |
maqsoftware/maqsoftware | js/contact-form.js | 2048 | (function ($) {
"use strict";
$("#contact").validate();
/* CONTACT FORM */
$("#contact").submit(function (e) {
e.preventDefault();
var name = $("#form-name").val();
var email = $("#form-email").val();
var subject = $("#form-subject").val();
var message = $("#for... | mit |
gw4e/gw4e.project | bundles/gw4e-eclipse-plugin/src/org/gw4e/eclipse/builder/BuildPoliciesCache.java | 10038 | package org.gw4e.eclipse.builder;
/*-
* #%L
* gw4e
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2017 gw4e-project
* %%
* 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 restrict... | mit |
jagrutkosti/dashit | app/src/main/java/dashit/uni/com/dashit/model/HistoryFiles.java | 2584 | package dashit.uni.com.dashit.model;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Jagrut on 17-Feb-16.
* POJO to store all data related to one History item
*/
public class HistoryFiles {
//Absolute path
private List<String> filesInDirectory;
//Only the directory name
private ... | mit |
hitmeister/api-sdk-php | src/Endpoints/ImportFiles/Find.php | 761 | <?php
namespace Hitmeister\Component\Api\Endpoints\ImportFiles;
use Hitmeister\Component\Api\Endpoints\AbstractEndpoint;
use Hitmeister\Component\Api\Endpoints\Traits\RequestGet;
/**
* Class Find
*
* @category PHP-SDK
* @package Hitmeister\Component\Api\Endpoints\ImportFiles
* @author Maksim Naumov <maksim.n... | mit |
YesTeam/Labyrinth | Client/src/main/entities/BatAi.java | 171 | package entities;
public class BatAi extends CreatureAi {
public BatAi(Creature creature) {
super(creature);
}
public void onUpdate(){
wander();
wander();
}
} | mit |
ng2-dev/angular-quick-starter | config/karma.conf.js | 3258 | /**
* @author: @AngularClass
*/
module.exports = function (config) {
var testWebpackConfig = require('./webpack.test.js')({ env: 'test' });
var configuration = {
/**
* Base path that will be used to resolve all patterns (e.g. files, exclude).
*/
basePath: '',
/**
* Frameworks to use
... | mit |
lolitaframework/branding | LolitaFramework/Controls/Button/Button.php | 824 | <?php
namespace branding\LolitaFramework\Controls\Button;
use \branding\LolitaFramework\Controls\Control;
use \branding\LolitaFramework\Core\Arr;
class Button extends Control
{
/**
* Render control
*
* @author Guriev Eugen <gurievcreative@gmail.com>
* @return string html code.
*/
publ... | mit |
kevinCefalu/vscode-favorites | src/controllers/FavoritesController.ts | 1463 | 'use strict';
import {window} from 'vscode';
import {FavoriteType} from '../common/Enums';
import {Favorite} from '../common/models/favorite';
import {ConfigurationController} from '../controllers/ConfigurationController';
import {FileSystemController} from '../controllers/FileSystemController';
export class Favorite... | mit |
ngraziano/isystem-to-mqtt | isystem_to_mqtt/convert.py | 24029 | """ Function to convert raw modbus value """
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import datetime
import json
from . import time_delta_json
def unit(raw_table, base_index):
""" Direct word value """
raw_value = raw_table[base_index]
... | mit |
Kta-M/nested_attributes_validator | lib/nested_attributes_validator/active_model/validations/nested_attributes_uniqueness_validator.rb | 980 | class NestedAttributesUniquenessValidator < ActiveModel::EachValidator
include NestedAttributesValidatorUtil
def validate_each(record, _attribute, values)
trg_fields = target_fields
# detect duplicated values
duplicated_values = target_values(trg_fields, values)
.group_by{|_k... | mit |
gabzon/experiensa | templates/about.php | 1005 | <?php
/**
* Template Name: About template
*/
use Experiensa\Modules\QueryBuilder;
$design_settings = get_option('experiensa_design_settings');
$page_object = get_queried_object();
$page_id = get_queried_object_id();
?>
<br>
<br>
<br>
<br>
<div class="ui container" style="margin-top:40px">
<?php while (have_post... | mit |
sandwich99/jspm_typescript | app/component/table/table.ts | 187 |
enum Color {Red, Green, Blue};
function printColor(color: Color) {
console.log("", Color.Red);
console.log("", color);
}
printColor(Color.Red);
export function Table(){
} | mit |
lgrabarevic/BuildsAppReborn | BuildsAppReborn.Access/TFS2017/Models/Tfs2017User.cs | 156 | namespace BuildsAppReborn.Access.Models
{
// ReSharper disable once ClassNeverInstantiated.Global
internal class Tfs2017User : TfsUser
{
}
} | mit |
jugstalt/gViewGisOS | gView.MapServer.Lib/MapServer/Lib/TileService/TileServiceInterpreter.cs | 40735 | using System;
using System.Collections.Generic;
using System.Text;
using gView.MapServer;
using gView.Framework.Metadata;
using gView.Framework.IO;
using System.IO;
using gView.Framework.Carto;
using gView.Framework.system;
using gView.Framework.Geometry;
using gView.Framework.Geometry.Tiling;
using gView.MapServer.Li... | mit |
ilian1902/TelerikAcademy | C#Part1-Homework/04.Console - Input - Output - Homework/10.FibonacciNumbers/Properties/AssemblyInfo.cs | 1414 | 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 |
ristorantino/ristorantino-vendor | Compras/Test/Case/Controller/PedidoMercaderiasControllerTest.php | 296 | <?php
App::uses('PedidoMercaderiasController', 'Compras.Controller');
/**
* PedidoMercaderiasController Test Case
*/
class PedidoMercaderiasControllerTest extends ControllerTestCase {
/**
* Fixtures
*
* @var array
*/
public $fixtures = array(
'plugin.compras.pedido_mercaderia'
);
}
| mit |
sobeckley/Foreknown | App/src/hophacks/JHU/foreknown/ReadCSV.java | 1173 | package hophacks.JHU.foreknown;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.lang.Number;
public class ReadCSV {
public float[] run(String file) {
//String csvFile = file;
BufferedReader br = null;
String line = "";
... | mit |
leobauza/microcosm | src/history.js | 7732 | import Action from './action'
import Emitter from './emitter'
import defaultUpdateStrategy from './default-update-strategy'
import { merge } from './utils'
import { BIRTH, START } from './lifecycle'
const DEFAULTS = {
maxHistory: 1,
batch: false,
updater: defaultUpdateStrategy
}
/**
* @fileoverview All Microco... | mit |
Welvin/stingle | packages/Users/Users/Exceptions/UserDisabledException.class.php | 58 | <?php
class UserDisabledException extends UserException{ } | mit |
sequelize/umzug | examples/node_modules/umzug/index.d.ts | 29 | export * from '../../../lib'
| mit |
devsunny/jbdstudio | src/main/java/com/asksunny/jbdstudio/JBDStudioCommand.java | 121 | package com.asksunny.jbdstudio;
public interface JBDStudioCommand extends JBDStudioService
{
public void execute();
}
| mit |
CACBridge/ChromeCAC | NativeApps/ChromeCAC.NET/MainWindow.xaml.cs | 2302 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using Syste... | mit |
TimGeyssens/MCFly | MCFly/Core/FieldTypes/Upload.cs | 1249 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Umbraco.Core;
namespace MCFly.Core.FieldTypes
{
public class Upload : FieldType
{
public Upload()
{
BackOfficeEditView = UIOMatic.Constants.FieldEditors.File;
... | mit |
blond/ho-iter | lib/done.js | 63 | 'use strict';
module.exports = Object.freeze({ done: true });
| mit |
Breeze/breeze.server.java | breeze-hibernate/src/test/java/com/breeze/test/PredicateTest.java | 17537 | package com.breeze.test;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.hibernate.SessionFactory;
import com.breeze.hib.HibernateMetadata;
import com.breeze.metadata.DataType;
import com.breeze.metadata.IEntityType;
import com.breeze.metadata.Metadata;
imp... | mit |
TeamSPoon/logicmoo_workspace | docker/rootfs/usr/local/lib/swipl/doc/packages/examples/protobufs/some_message.py | 1251 | # A simple message for testing interoperability.
# More tests are in the interop directory.
import some_message_pb2 # generated by: protoc some_message.proto --python_out=.
msg = some_message_pb2.SomeMessage()
msg.first = 100
msg.second = "abcd"
msg.third.extend(["foo", "bar"])
msg.fourth = True
msg.fifth.value = -6... | mit |
robpaveza/dbcexplorer | src/DbcReader/ChatProfanityRecord.cs | 398 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DbcReader
{
public class ChatProfanityRecord
{
[DbcRecordPosition(0)]
public int ID { get; set; }
[DbcRecordPosition(1)]
public DbcStringReference Dirty... | mit |
Eelco81/server-test-project | Lib/Http/Src/HttpHeaderTester.cpp | 913 |
#include "gmock/gmock.h"
#include "HttpHeader.h"
TEST (HttpHeaderTester, Constructor) {
HTTP::Header header ("my-key", "my-value");
EXPECT_EQ (std::string ("my-key"), header.GetKey ());
EXPECT_EQ (std::string ("my-value"), header.GetValue ());
}
TEST (HttpHeaderTester, GetSetKey) {
HTTP::Header heade... | mit |
segun-adeleye/converter-money | spec/spec_helper.rb | 269 | require "bundler/setup"
require "converter/money"
RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = ".rspec_status"
config.expect_with :rspec do |c|
c.syntax = :expect
end
end
| mit |
junwang1216/btgk-edms | edms-admin/src/main/java/com/admin/controller/AdminCenterController.java | 295 | package com.admin.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* Created by wangjun on 2017/5/1.
*/
@Controller
@RequestMapping("/admin/center")
public class AdminCenterController extends BaseController {
}
| mit |
dragomirevgeniev/HackBulgaria | Programming101-CSharp/week06/2.Thursday/Filters(selectors)/Properties/AssemblyInfo.cs | 1412 | 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("Fi... | mit |
mrchess/oracle-sage | test/setup/oracle.js | 4326 | /**
* Used to help set up testing environments.
*/
var oracledb = require('oracledb');
oracledb.stmtCacheSize = 0; // setting this to 0 seems to make import go faster
var Promise = require("bluebird");
var _ = require('lodash');
var fs = require("fs");
var OracleConnector;
var OracleConnector = (function... | mit |
naoto/api-agent | spec/api/agent/json_spec.rb | 257 | #-*- encoding: utf-8
require 'spec_helper'
require './lib/api/agent'
describe JSON do
describe 'open url' do
it 'success' do
json = JSON.open("http://echo.jsontest.com/key/value")
expect(json).to eq({"key" => "value"})
end
end
end
| mit |
karim/adila | database/src/main/java/adila/db/hwu8655_huawei20ideos20y20200.java | 226 | // This file is automatically generated.
package adila.db;
/*
* Huawei
*
* DEVICE: hwu8655
* MODEL: HUAWEI IDEOS Y 200
*/
final class hwu8655_huawei20ideos20y20200 {
public static final String DATA = "Huawei||";
}
| mit |
swaiing/studydeck | root/app/controllers/deck_tags_controller.php | 120 | <?php
class DeckTagsController extends AppController{
var $name = 'DeckTags';
//var $scaffold;
}
?> | mit |
wangi4myself/myFirstReactJs | node_modules/antd/lib/form/Form.js | 6103 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = exports.FormComponent = undefined;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _defineProperty2 = require('babel-runtime/helpers/defineProperty')... | mit |
andersao/l5-repository | src/Prettus/Repository/Events/RepositoryEventBase.php | 1136 | <?php
namespace Prettus\Repository\Events;
use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\RepositoryInterface;
/**
* Class RepositoryEventBase
* @package Prettus\Repository\Events
* @author Anderson Andrade <contato@andersonandra.de>
*/
abstract class RepositoryEventBase
{
/**
*... | mit |
kodazzi/amazonas | public_html/src/tools/js/k-alert.js | 2694 | /**
* Created by jorge on 29/06/15.
*/
$(document).ready(function() {
Alert.init();
});
var Alert = {
id : 'ds-alert',
idBottom: 'alert ds-alert-bottom',
classSuccess : 'alert alert-success',
classError : 'alert alert-danger',
classInformation : 'alert alert-info',
classWarning : 'alert ... | mit |
piohhmy/euler | p038.py | 784 | def concat_multiples(num, multiples):
return int("".join([str(num*multiple) for multiple in range(1,multiples+1)]))
def is_pandigital(num):
return sorted([int(digit) for digit in str(num)]) == list(range(1,10))
def solve_p038():
# retrieve only 9 digit concatinations of multiples where n = (1,2,..n)
... | mit |
Discordius/Telescope | packages/lesswrong/lib/collections/notifications/permissions.ts | 694 | import Users from '../users/collection';
import Notifications from './collection';
const membersActions = [
'notifications.new.own',
'notifications.edit.own',
'notifications.view.own',
];
Users.groups.members.can(membersActions);
const adminActions = [
'notifications.new.all',
'notifications.edit.all',
'n... | mit |
JamaSoftware/simpleCSVExport | verifier.py | 952 | from jama import Jama
from csv_writer import CSVWriter
def verify():
jama = Jama()
csv = CSVWriter()
projects = jama.getProjects()
csv.write("projects.csv", projects)
project_ids = [project["id"] for project in projects]
item_type_ids = [item_type["id"] for item_type in jama.getItemTypes()]
... | mit |
sigma-geosistemas/django-tenants | django_tenants/management/commands/collectstatic_schemas.py | 207 | # -*- coding: utf-8 -*-
from . import TenantWrappedCommand
from django.contrib.staticfiles.management.commands import collectstatic
class Command(TenantWrappedCommand):
COMMAND = collectstatic.Command
| mit |
dealproc/Drey | source/Drey.Server.Core/Extensions/ExceptionExtensions.cs | 677 | using System;
namespace Drey.Server.Extensions
{
public static class ExceptionExtensions
{
/// <summary>
/// Pulls the deepest exception out of an exception stack for further processing.
/// </summary>
/// <param name="exc">The exc.</param>
/// <returns></returns>
... | mit |
madgik/exareme | Exareme-Docker/src/exareme/exareme-tools/madis/src/functions/vtable/keep_numeric.py | 2736 | """
.. function:: rowidvt(query:None)
Returns the query input result adding rowid number of the result row.
:Returned table schema:
Same as input query schema with addition of rowid column.
- *rowid* int
Input *query* result rowid.
Examples::
>>> table1('''
... James 10 2
... Mark ... | mit |
czen/MMCS_CS311 | Module3/mymain.cs | 1908 | using System;
using System.IO;
using SimpleScanner;
using ScannerHelper;
namespace GeneratedLexer
{
class mymain
{
static void Main(string[] args)
{
int cnt_id = 0;//êîë-âî èäåíòèôèêàòîðîâ
int min_id_len = Int32.MaxValue, max_id_len = 0; //ìèíèìàëüíàÿ, ìàêñèìàëüíàÿ äëèí... | mit |
bonfimtm/aden | src/app/services/alert.service.ts | 537 | import { Injectable } from '@angular/core';
import * as swal from 'sweetalert';
@Injectable()
export class AlertService {
constructor() {
}
info(message) {
console.log(message);
return swal('Info', message, 'info');
}
success(message) {
console.log(message);
return swal('Success', message,... | mit |
MatthiasHoldorf/FoodControl | FoodControlTests/RepositoryTests/ActivityLogRepositoryTests.cs | 3773 | using System;
using System.Linq;
using System.Transactions;
using FoodControl.DataAccessLayer;
using FoodControl.Model;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace FoodControlTests.RepositoryTests
{
/// <summary>
/// This is a test class for <see cref="ActivityLog"/> repository and is intend... | mit |
jfelipebc/iojs-api-rethinkdb | lib/utils/logger.js | 300 | 'use strict'
import winston from 'winston'
const consoleOptions = {
colorize : true,
prettyPrint : true,
level : 'debug',
label : 'Employees API'
}
let logger = new (winston.Logger)({
transports: [ new winston.transports.Console(consoleOptions) ]
})
export default logger | mit |
BUCTdarkness/jedis | src/test/java/redis/clients/jedis/tests/ShardedJedisPoolTest.java | 6580 | package redis.clients.jedis.tests;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import redis.clients.jedis.HostAndPort;... | mit |
Daivuk/cpp11-and-DX11-Tutorials | Chapter2/Chapter2_Tutorial3/Renderer.cpp | 1483 | #include "Renderer.h"
Renderer::Renderer(Window& window) {
createDevice(window);
createRenderTarget();
}
void Renderer::createDevice(Window& window) {
// Define our swap chain
DXGI_SWAP_CHAIN_DESC swapChainDesc = { 0 };
swapChainDesc.BufferCount = 1;
swapChainDesc.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;... | mit |
ist-dresden/composum-platform | testing/testutil/src/main/java/com/composum/sling/platform/testing/testutil/AroundActionsWrapper.java | 5318 | package com.composum.sling.platform.testing.testutil;
import com.composum.sling.platform.testing.testutil.ErrorCollectorAlwaysPrintingFailures.TestingRunnableWithException;
import org.apache.commons.lang3.ClassUtils;
import org.junit.runners.model.MultipleFailureException;
import org.slf4j.Logger;
import org.slf4j.Log... | mit |
levinhtxbt/dotnetcore-vega | Controllers/HomeController.cs | 502 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace vega.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
return View();
}
... | mit |
abique/hefur | hefur/stat-handler.cc | 3285 | #include <mimosa/format/format.hh>
#include <mimosa/format/print.hh>
#include <mimosa/stream/string-stream.hh>
#include <mimosa/tpl/dict.hh>
#include <mimosa/tpl/include.hh>
#include <mimosa/tpl/list.hh>
#include <mimosa/tpl/template.hh>
#include <mimosa/tpl/value.hh>
#include "hefur.hh"
#include "mimosa/stream/base16... | mit |
mjseaman/retrofitta | app.js | 3498 | /**
* Module dependencies.
*/
var express = require('express')
, http = require('http')
, path = require('path')
, request = require('request')
, ejs = require('ejs');
//SET APP_RELATIVE_PATH to a folder where your app's index.html resides.
var APP_RELATIVE_PATH = path.join(__dirname, '/public/');
c... | mit |
SkewedAspect/pokegonav | client/layers/portal.js | 4330 | //----------------------------------------------------------------------------------------------------------------------
/// PortalLayer
///
/// @module
//----------------------------------------------------------------------------------------------------------------------
import _ from 'lodash'
import $http from 'axi... | mit |
fcc-joemcintyre/pinster | app/client/src/lib/Form/FormButtonRow.js | 199 | import styled from 'styled-components';
export const FormButtonRow = styled.div`
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-top: 20px;
> * {
margin: 10px;
}
`;
| mit |
bravebelgica/website | clancenter/json/json_user_full_data.php | 943 |
<?php
require_once( dirname(__FILE__) . '/center-config.php' );
require_once( dirname(__FILE__) . '/center-connect.php' );
$bStatus = true;
$bList = false;
$query = "select P.id_clanplayer, P.alias, C.clanname, CR.role, R.email
from
cc_clanplayer P,
cc_clans C,
cc_clanroles CR,
coc_registrations R
where P.... | mit |
netcosports/material-calendarview | library/src/main/java/com/prolificinteractive/materialcalendarview/DayViewFacade.java | 3470 | package com.prolificinteractive.materialcalendarview;
import android.graphics.drawable.Drawable;
import androidx.annotation.NonNull;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
/**
* Abstraction layer to help in decorating Day views
*/
public class DayViewFacade {
private... | mit |
zwei14/node-arp | lib/arp.js | 5582 | var util = require('util');
var spawn = require('child_process').spawn;
/**
* Read the MAC address from the ARP table.
*
* 3 methods for lin/win/mac Linux reads /proc/net/arp
* mac and win read the output of the arp command.
*
* all 3 ping the IP first without checking the response to encourage the
* OS to upd... | mit |
sebastienhouzet/nabaztag-source-code | server/OS/net/violet/platform/api/actions/applications/AddContent.java | 2233 | package net.violet.platform.api.actions.applications;
import java.util.List;
import net.violet.platform.api.actions.AbstractAction;
import net.violet.platform.api.actions.ActionParam;
import net.violet.platform.api.authentication.SessionManager;
import net.violet.platform.api.exceptions.ForbiddenException;
import net... | mit |
vinylhero/vinylBlack | JS/Factories/SimonFactory.js | 4726 | vinylApp.factory('SimonFactory', function () {
return {
level: {
difficulty: 1
},
order : {
currentGame: [],
lastGame: []
},
simonColours: [
{
Name: 'blue',
Difficulty: '1'
},
... | mit |
kpandya91/WakeUpWithKinect | Accord.NET projects/Accord.Math/Transforms/SineTransform.cs | 5600 | // Accord Math Library
// The Accord.NET Framework
// http://accord-framework.net
//
// Copyright © César Souza, 2009-2015
// cesarsouza at gmail.com
//
// Copyright © Diego Catalano, 2013
// diego.catalano at live.com
//
// This library is free software; you can redistribute it and/or
// modify it un... | mit |
radiocosmology/draco | draco/analysis/sensitivity.py | 9694 | """Sensitivity Analysis Tasks"""
import numpy as np
from caput import config
from ..core import task, io, containers
from ..util import tools
class ComputeSystemSensitivity(task.SingleTask):
"""Compute the sensitivity of beamformed visibilities.
Parameters
----------
exclude_intracyl : bool
... | mit |
kapouer/cache-debounce | test/test.js | 1911 | var assert = require("assert");
var cacheOnDemand = require('../index.js');
describe('cacheOnDemand', function(){
var didTheWork = 0;
var fn = cacheOnDemand(function(a, b, callback) {
// Add two numbers, but take 20 ms to do it asynchronously
setTimeout(function() {
didTheWork++;
return callba... | mit |
leomelin/throwa.com | gulp-tasks/concat-js.js | 618 | var gulp = require('gulp'),
uglify = require('gulp-uglify'),
concat = require('gulp-concat'),
rev = require('gulp-rev'),
RELEASE_FOLDER = require('../gulp-config.json').RELEASE_FOLDER
module.exports = function () {
return gulp.src(require('../scripts.json').map(function (src) { return './public/' + src }))
... | mit |
sanofuzir/grafit-group.si | app/cache/dev/assetic/config/8/80640920a9f86f520aacec206358b090.php | 67 | <?php
// StaticBundle:Gallery:gallery.html.twig
return array (
);
| mit |
jievro/parser | spec/expression/binary/multiplicative/divide/adivb_spec.rb | 558 | def source
'a/b'
end
def expected_tokens
[
{
type: 'T_IDENTIFIER',
value: 'a'
},
{
type: 'T_OPERATOR',
value: '/'
},
{
type: 'T_IDENTIFIER',
value: 'b'
}
]
end
def expected_ast
{
__type: 'program',
body: [
{
__type: 'binary-expr... | mit |
RabbitStewDio/AutoCake | src/AutoCake.Release/InternalArgumentParser.cs | 4720 | using System;
using System.Collections.Generic;
using System.Linq;
using Cake.Core;
using Cake.Core.Diagnostics;
internal class InternalArgumentParser
{
readonly ICakeLog _log;
readonly VerbosityParser _verbosityParser;
internal InternalArgumentParser(ICakeLog log)
{
_log = log;
_ver... | mit |
piratecb/up1and | app/dashboard/components/PostEditor.js | 4918 | import React from 'react'
import { inject, observer } from 'mobx-react'
import { withRouter, Link } from 'react-router-dom'
// import SimpleMDE from 'simplemde'
import Toolbox from './Toolbox'
function EditorHeader(props) {
return (
<div className='writer-head'>
<div className='writer-head-left'>
... | mit |
gautamsi/aurelia-OfficeUIFabric | dist/amd/Label/Label.js | 1771 | var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... | mit |
fuybooo/modularization | app/vendor/bootstrap-table/src/locale/bootstrap-table-hr-HR.js | 732 | !function(r){"use strict";r.fn.bootstrapTable.locales["hr-HR"]={formatLoadingMessage:function(){return"Molimo pričekajte ..."},formatRecordsPerPage:function(r){return r+" broj zapisa po stranici"},formatShowingRows:function(r,n,o){return"Prikazujem "+r+". - "+n+". od ukupnog broja zapisa "+o},formatSearch:function(){re... | mit |
moteus/lua-odbc | test/dba/test.lua | 23964 | print("------------------------------------")
print("Lua version: " .. (_G.jit and _G.jit.version or _G._VERSION))
print("------------------------------------")
print("")
local HAS_RUNNER = not not lunit
local IS_WINDOWS = (require"package".config:sub(1,1) == '\\')
local function prequire(...)
local ok, mod = pcal... | mit |