repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
arnosthavelka/lambdas-poc
src/main/java/com/github/aha/poc/lambdas/enums/OperationStrategy.java
136
package com.github.aha.poc.lambdas.enums; @FunctionalInterface public interface OperationStrategy<T> { T compute(T x, T y); }
mit
zalando/intellij-swagger
src/main/java/org/zalando/intellij/swagger/completion/value/completion/openapi/StyleValueCompletion.java
679
package org.zalando.intellij.swagger.completion.value.completion.openapi; import com.intellij.codeInsight.completion.CompletionResultSet; import org.zalando.intellij.swagger.completion.CompletionHelper; import org.zalando.intellij.swagger.completion.value.ValueCompletion; import org.zalando.intellij.swagger.completion...
mit
stojanovic/scottyjs
bin/scotty.js
8152
#!/usr/bin/env node const fs = require('fs') const path = require('path') const minimist = require('minimist') const AWS = require('aws-sdk') const scotty = require('../index') const inquirer = require('inquirer') const colors = require('colors') const clipboardy = require('clipboardy') const configFilePath = path.joi...
mit
vondrejc/FFTHomPy
ffthompy/applications.py
5815
import numpy as np import ffthompy.projections as proj from ffthompy.materials import Material from ffthompy.postprocess import postprocess, add_macro2minimizer from ffthompy.general.solver import linear_solver from ffthompy.general.solver_pp import CallBack, CallBack_GA from ffthompy.general.base import Timer from fft...
mit
HaozheGuAsh/Leet_Code
[70] [Climbing Stairs] [Easy] [Dynamic Programming] [Adobe Apple ] [].cpp
1741
/* Question# + Difficulty + Topic + Company + Similar_Question [70] [Climbing Stairs] [Easy] [Dynamic Programming] [Adobe Apple ] [].cpp */ /* The problem seems to be a dynamic programming one. Hint: the tag also suggests that! Here are the steps to get the solution incrementally. Base cases: if n <= 0, then the n...
mit
chrisnankam24/SGP
application/models/Rollbackrejectionabandon_model.php
2009
<?php /* * Generated by CRUDigniter v2.3 Beta * www.crudigniter.com */ class Rollbackrejectionabandon_model extends CI_Model { function __construct() { parent::__construct(); } /* * Get rollbackrejectionabandon by rollbackRejectionAbandoned */ function get_rollbackrejec...
mit
svlcode/HomeManager
sources/HomeManager/HomeManager.GUI/Forms/MainForm.Designer.cs
21912
namespace HomeManager.GUI.Forms { partial class MainForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
mit
JChanceHud/Agate
examples/josh_chance_thing/server/serverGame.js
2667
// serverGame.js // var loopRate = 100.0; //100 ms exports.Game = function(clients, io){ //clients is an array of client sockets this.io = io; this.ships = []; //handles the controllable ships this.shipIDs = []; this.size = {width:1000,height:1000}; var clientCount = clients.length; this.c...
mit
rodzewich/playground
xlib/ui/element/elements/html/IOptions.ts
342
/// <reference path="../IOptions.ts" /> /// <reference path="IElement.ts" /> module xlib.ui.element.elements.html { export interface IOptions<T> extends elements.IOptions<T> { lang?: any; xmlLang?: any; dir?: any; xmlNS?: any; items?: ( elements.head.IElement<T> | elements.body.IElem...
mit
gofullstack/stickies
stickies/stickies/base.js
4011
/*global window, dojo, dojox */ dojo.provide("stickies.base"); dojo.addOnLoad(function () { var url = "http://websticki.es", css = url + "/css/stickies.css", loc = { // page and domain for query domain : window.location.host, path : window.location.pathname }, ...
mit
Azure/azure-sdk-for-ruby
management/azure_mgmt_security/lib/2019-01-01-preview/generated/azure_mgmt_security/assessments.rb
24315
# 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::Security::Mgmt::V2019_01_01_preview # # API spec for Microsoft.Security (Azure Security Center) resource provider # class Assessments ...
mit
BONDARENKO-q/bitrise
version/version.go
56
package version // VERSION ... const VERSION = "1.3.5"
mit
RobinCPC/algorithm-practice
IntegerArray/generate.cpp
1297
/* * #: 118 * Title: Pascal's Triangle * Description: * ------ * Given numRows, generate the first numRows of Pascal's triangle. * * * For example, given numRows = 5, * Return * ``` * [ * [1], * [1,1], * [1,2,1], * [1,3,3,1], * [1,4,6,4,1] * ] * ``` * ------ * Time: O(n) * Space: O(n) * Difficulty: Easy ...
mit
webzeppelin/wz-docker-starter-lib
public-server/public-server-python3/flask_app/services.py
8156
"""Entry point for the server application.""" import logging import json import uuid # import time import redis from gevent.wsgi import WSGIServer from flask import request, Response, jsonify from datetime import datetime from pytz import timezone, utc from tzlocal import get_localzone from .config import configure_ap...
mit
Azure/azure-sdk-for-ruby
management/azure_mgmt_hybrid_compute/lib/2020-08-02/generated/azure_mgmt_hybrid_compute/models/machine_extension.rb
6329
# 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::HybridCompute::Mgmt::V2020_08_02 module Models # # Describes a Machine Extension. # class MachineExtension < TrackedResource...
mit
matija94/show-me-the-code
trydjango/restaurants/admin.py
138
from django.contrib import admin # Register your models here. from restaurants.models import Restaurant admin.site.register(Restaurant)
mit
ddrinka/ApacheOrcDotNet
src/ApacheOrcDotNet/OrcWriter`.cs
812
using System.Collections.Generic; using System.IO; using ApacheOrcDotNet.FluentSerialization; namespace ApacheOrcDotNet { public class OrcWriter<T> : IOrcWriter<T> { readonly OrcWriter _underlyingOrcWriter; public OrcWriter(Stream outputStream, WriterConfiguration configuration, SerializationConfiguration seri...
mit
Mugen87/yuka
test/unit_test/math/OBB.tests.js
15152
/** * @author Mugen87 / https://github.com/Mugen87 */ const expect = require( 'chai' ).expect; const YUKA = require( '../../../build/yuka.js' ); const MathJSONs = require( '../../files/MathJSONs.js' ); const AABB = YUKA.AABB; const BoundingSphere = YUKA.BoundingSphere; const OBB = YUKA.OBB; const Plane = YUKA.Plane...
mit
TomHennen/AntennaPod
app/src/main/java/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java
23310
package de.danoeh.antennapod.activity; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.os.Looper; import android.support.v4.app.NavUtils; import android.support.v7.app.ActionBarActivity; import an...
mit
monde-sistemas/brcobranca
spec/brcobranca/remessa/cnab400/banco_brasilia_spec.rb
9592
# -*- encoding: utf-8 -*- require 'spec_helper' RSpec.describe Brcobranca::Remessa::Cnab400::BancoBrasilia do let(:pagamento) do Brcobranca::Remessa::Pagamento.new(valor: 199.9, data_vencimento: Date.current, nosso_numero: 123, ...
mit
pokedextracker/pokedextracker.com
app/utils/api.js
1037
import { stringify } from 'qs'; import { Store } from '../stores'; async function handleResponse (response) { const json = await response.json(); if (response.status >= 200 && response.status < 300) { return json; } const error = new Error(json.error.message); error.response = response; throw error; ...
mit
alaxos/alaskyzer
src/Model/Table/TasksTable.php
3194
<?php namespace App\Model\Table; use App\Model\Entity\Task; use Cake\ORM\Query; use Cake\ORM\RulesChecker; use Cake\ORM\Table; use Cake\Validation\Validator; use Cake\Event\Event; use Cake\I18n\I18n; use Cake\I18n\Time; use Cake\Core\Configure; /** * Tasks Model */ class TasksTable extends Table { /** * I...
mit
mrpapercut/wscript
testfiles/COMobjects/JSclasses/Microsoft.Update.WebProxy.1.js
778
class microsoft_update_webproxy_1 { constructor() { // string Address () {get} {set} this.Address = undefined; // bool AutoDetect () {get} {set} this.AutoDetect = undefined; // IStringCollection BypassList () {get} {set} this.BypassList = undefined; // bool...
mit
yoku2010/smil-epub
client/actions/navLinkActions.js
170
import { NAV_LINK_HEADER_BAR } from "./types"; export const navLinkHeaderDetails = (message) => { return { type: NAV_LINK_HEADER_BAR, message } }
mit
gmillward/math-flashcards
client/components/navbar/navbar.controller.js
405
'use strict'; angular.module('yoFlashcardFullstackApp') .controller('NavbarCtrl', function ($scope, $location) { $scope.menu = [ { 'title': 'Home', 'link': '/' }, { 'title': 'Settings', 'link': '/settings' } ]; $scope.isCollapsed = true; $scop...
mit
gmessner/ajf
src/main/java/com/messners/ajf/data/converters/StringConverter.java
1400
package com.messners.ajf.data.converters; import com.messners.ajf.data.ConversionException; import com.messners.ajf.data.Converter; /** * Default {@link Converter} implementation to convert a value object * into a String instance. * * @author Greg Messner <gmessner@messners.com> */ public final class StringCon...
mit
holin/nodestroyed
lib/nodestroyed.rb
1929
module ActiveRecord #:nodoc: module Nodestroyed #:nodoc: def self.included(base) base.extend(ClassMethods) class << base alias_method :find_origin, :find alias_method :destroy_origin, :destroy end base.instance_eval do alias_method :destroy_origin, :destroy...
mit
miled/wordpress-social-login
hybridauth/library/src/Provider/Amazon.php
1529
<?php /*! * Hybridauth * https://hybridauth.github.io | https://github.com/hybridauth/hybridauth * (c) 2019 Hybridauth authors | https://hybridauth.github.io/license.html */ namespace Hybridauth\Provider; use Hybridauth\Adapter\OAuth2; use Hybridauth\Exception\UnexpectedApiResponseException; use Hybridauth\Data; use...
mit
magic-lang/magic-doc
source/frontend/tokens/TokenKind.ts
162
export enum TokenKind { Unknown, EndOfLine, LineComment, BlockComment, DocComment, Identifier, Separator, Operator, Literal }
mit
kevinsamyn/sportmonks-soccer
src/main/java/com/sportmonks/data/entity/TeamSeasonStatsRow.java
1348
package com.sportmonks.data.entity; import com.fasterxml.jackson.annotation.*; import java.util.HashMap; import java.util.Map; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({"total", "home", "away"}) public class TeamSeasonStatsRow { @JsonProperty("total") private Integer total; @JsonPro...
mit
JonathonMA/zippo
lib/zippo/binary_structure/base.rb
3719
require 'zippo/binary_structure/structure_member' require 'zippo/binary_structure/structure' require 'zippo/binary_structure/binary_packer' require 'zippo/binary_structure/binary_unpacker' module Zippo # BinaryStructure defines a class level DSL for # implementing binary strucutures. # # The class will then ha...
mit
sylpheeed/blog-api-example
spec/controllers/api/registration_controller_spec.rb
798
require 'rails_helper' RSpec.describe Api::RegistrationController, :type => :controller do def user_attrs @attrs ||= FactoryGirl.attributes_for(:user) end describe 'POST /api/registration' do it 'responds successful and it includes status true and user information' do post :create, {registration:...
mit
moq/moq.proxy
src/Moq.Proxy.Tests/GeneratorTests.cs
4016
using System; using System.Collections.Generic; using System.Linq; using Xunit; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Xunit.Abstractions; using System.Reflection; using Moq.Proxy.Templates; using System.IO; using System.Collections; namespace Moq.Proxy.Tests { public class Generato...
mit
sadakurapati/playground
src/com/sada/misc/InfluenceFinder.java
2244
/* * The MIT License (MIT) * * Copyright (c) 2014 Sada Kurapati <sadakurapati@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limita...
mit
CS2103JAN2017-T09-B4/main
src/main/java/seedu/tache/commons/events/ui/CalendarNextRequestEvent.java
351
//@@author A0142255M package seedu.tache.commons.events.ui; import seedu.tache.commons.events.BaseEvent; /** * Indicates a request to view the next day / week / month at the calendar. */ public class CalendarNextRequestEvent extends BaseEvent { @Override public String toString() { return this.getCl...
mit
softcover/polytexnic
lib/polytexnic/literal.rb
10554
module Polytexnic module Literal extend self # Matches the line for syntax highlighting. # %= lang: <language>[, options: ...] LANG_REGEX = /^\s*%=\s+lang:\s*([\w+]+)(?:,\s*options:(.*))?/ # Makes the caches for literal environments. def cache_literal(polytex, format = :html) output =...
mit
plewis/phycas
src/python/probdist/_Lot.py
3218
from _ProbDistExt import * class Lot(LotBase): #---+----|----+----|----+----|----+----|----+----|----+----|----+----| """ Lot is the pseudorandom number generator used in Phycas. It is based on code written by J. Monahan, Statistics Department, North Carolina State University, and published in the ...
mit
krues8dr/lazuli
lib/install.js
965
'use strict'; const repoManager = require('./pkgmanager/repoManager'); const pLimit = require('p-limit'); class Install { constructor(options) { // Todo: allow multiple repos for mods. this.manager = new repoManager(options); this.limit = pLimit(options.plimit || 5); } async init(args) { retur...
mit
msotiroff/Programming-FUNDAMENTALS
HomeWorks/Arrays/4. Grab and Go/Program.cs
993
using System; using System.Linq; namespace _4.Grab_and_Go { class Program { static void Main(string[] args) { long[] inputNumbers = Console.ReadLine() .Split(' ') .Select(long.Parse) .ToArray(); int n = int.Parse(Console.R...
mit
kurraz-soft/prj-jack
modules/game/models/game_data/AttributesListCharacter.php
1627
<?php /** * Created by PhpStorm. * User: Kurraz */ namespace app\modules\game\models\game_data; use app\modules\game\models\game_data\attributes\BeautyMale; use app\modules\game\models\game_data\attributes\GuildRepo; use app\modules\game\models\game_data\attributes\HealthMale; use app\modules\game\models\game_dat...
mit
gilt/ubar
js/ubar/tracking.js
4429
(function(exports, moduleName) { 'use strict'; function create (pubsub) { /** * Tracking: * * This module exists so that you can tie your * existing tracking system into the UBAR system. * The following events are called at various times * during the workflow. All you have to do is include * your app...
mit
JBZoo/JBZoo-CCK-Free
packages/jbuniversal/jbuniversal/framework/helpers/jbhtml.php
14156
<?php /** * JBZoo is universal CCK, application for YooTheme Zoo component * @package JBZoo * @author JBZoo App http://jbzoo.com * @copyright Copyright (C) JBZoo.com * @license http://www.gnu.org/licenses/gpl.html GNU/GPL */ // no direct access defined('_JEXEC') or die('Restricted access'); class...
mit
johnsnow91/myBlog
app/cache/dev/twig/d/b/db5cf5f2365d7c9271ad0fb42b031ea70f93865870fe2e75ad43955a0a6e8185.php
2951
<?php /* @WebProfiler/Profiler/toolbar_item.html.twig */ class __TwigTemplate_db5cf5f2365d7c9271ad0fb42b031ea70f93865870fe2e75ad43955a0a6e8185 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks =...
mit
Kalvar/MLKNN
ml_distance_kernel.rb
86
module MLDistanceKernel COSINE_SIMILARITY = 0 ECULIDEAN = 1 RBF = 2 end
mit
syfo/jcropper
lib/jcropper/cropped_image.rb
1749
module JCropper class CroppedImage attr_reader :original_geometry, :cropped_geometry, :attachment_name, :style_name, :coord_names, :starting_crop, :attachment, :options def initialize(object, options) @object = object @options = options @attachment_name = object.class.jcropper_defs[:att...
mit
sqdron/sqdron.UI
src/layouts/index.js
37
export Master from './Master/Master'
mit
nubbel/swift-tensorflow
NodeGenerated/oprequest.js
50349
/** * @fileoverview * @enhanceable * @public */ // GENERATED CODE -- DO NOT EDIT! goog.provide('proto.xla.OpRequest'); goog.require('jspb.Message'); goog.require('jspb.BinaryReader'); goog.require('jspb.BinaryWriter'); goog.require('proto.xla.BinaryOpRequest'); goog.require('proto.xla.BroadcastRequest'); goog.req...
mit
SaschaMoellering/jmxtrans-agent
src/main/java/org/jmxtrans/agent/FileOverwriterOutputWriter.java
8178
/* * Copyright (c) 2010-2013 the original author or authors * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy...
mit
duritong/ruby-rhn_satellite
lib/rhn_satellite/api.rb
987
module RhnSatellite class Api < RhnSatellite::Connection::Base class << self def api_version(disconnect=true) @api_version ||= get_version('getVersion',disconnect) end def satellite_version(disconnect=true) @satellite_version ||= get_version('systemVersion',disconnect) ...
mit
jsurfer/JsonSurfer
jsurfer-core/src/main/java/org/jsfr/json/JsonSaxHandler.java
2168
/* * MIT License * * Copyright (c) 2019 WANG Lingsong * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, mo...
mit
pengkobe/ionic-chat
server/middlewares/verify_token.js
993
"use strict"; var config = require("../config/config.js"), jwt = require("jsonwebtoken"); module.exports = function(req, res, next) { var token = ""; if ( req.headers.authorization && req.headers.authorization.split(" ")[0] === "ionchat" ) { var token = req.headers.authorization.split(" ")[1]; } els...
mit
iron-bound-designs/IronBound-DB
src/Table/Column/Date.php
1155
<?php /** * Contains the class for the DateTime column type. * * @author Steven A Zahm * @since 2.0 * @license MIT * @copyright Iron Bound Designs, 2016. */ namespace IronBound\DB\Table\Column; use IronBound\DB\Exception\InvalidDataForColumnException; /** * Class DateTime * * @package IronBound\DB...
mit
anelda/website
assets/js/39.0e7a4f4a.js
689
(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{354:function(t,e,s){"use strict";s.r(e);var o=["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."],n={methods:{getMsg:function(){return o[Math.floor(Math.random()*o.length)]}}},i=s(1),h=Object(i.a)(n...
mit
FernandoPucci/EstudosAspNetMvc
ExercicioVendasMasterDetail/ExercicioVendasMasterDetail/App_Start/IdentityConfig.cs
4362
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using System.Web; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using ...
mit
roooodcastro/gamedev-coursework
Game/SortAndSweep.cpp
201
#include "SortAndSweep.h" SortAndSweep::SortAndSweep(void) { } SortAndSweep::~SortAndSweep(void) { } void SortAndSweep::performDetection(std::vector<PhysicalBody*> *bodies, float millisElapsed) { }
mit
s10018/homebrew-tl
normalizenumexp.rb
429
require "formula" class Normalizenumexp < Formula homepage "http://www.cl.ecei.tohoku.ac.jp/~katsuma/software/normalizeNumexp/" url "https://github.com/nullnull/normalizeNumexp.git", :branch => 'master' version "3.0" depends_on 'ux' depends_on 'pficommon' def install system "./waf configure --prefix=...
mit
SimpleWeek/desktop-tray-app
app/constants/TaskStatuses.js
100
export const STATUS_ACTIVE = 1; export const STATUS_COMPLETED = 2; export const STATUS_DELETED = 3;
mit
martianfield/bindery
index.js
636
'use strict' const bitbucket = require(__dirname + '/lib/bitbucket') // bitbucket.demo() // .then(data => { console.log(data) }) // .catch(err => { console.error(err) }) // bitbucket.changesets('martianfield', 'bindery_test') // .then(data => { console.log(data) }) // .catch(err => { console.error(err) }) ...
mit
siciarek/baseapp
src/Application/MainBundle/DataFixtures/ORM/LoadUserData.php
3147
<?php namespace Application\MainBundle\DataFixtures\ORM; use Application\MainBundle\DataFixtures\BasicFixture; use Doctrine\Common\Persistence\ObjectManager; class LoadUserData extends BasicFixture { /** * @var numeric */ protected $order = 2; /** * {@inheritDoc} */ public funct...
mit
kpdecker/six-speed
lib/data-store.js
681
const _ = require('lodash'); const Fs = require('fs'); const dataFile = `${__dirname}/../data.json`; const notesFile = `${__dirname}/../notes.json`; module.exports.load = () => JSON.parse(Fs.readFileSync(dataFile).toString()); module.exports.notes = () => JSON.parse(Fs.readFileSync(notesFile).toString()); module.exp...
mit
barneywilliams/cmock-build
scripts/create_runner.rb
956
if ($0 == __FILE__) #make sure there is at least one parameter left (the input file) if ARGV.length < 2 puts ["\nusage: ruby #{__FILE__} input_test_file (output)", "", " input_test_file - this is the C file you want to create a runner for", " output - this is the na...
mit
drminix/ctsimulator
source/imagewidget.cpp
1368
/**************************** * Author: Sanghyeb(Sam) Lee * Date: Jan/2013 * email: drminix@gmail.com * Copyright 2013 Sang hyeb(Sam) Lee MIT License * * X-ray CT simulation & reconstruction *****************************/ #include "imagewidget.h" imageWidget::imageWidget(double* data,int twidth,int theight,...
mit
k-kuwahara/event_manage
application/tests/models/query_model_test.php
11386
<?php /** * DBへのデータ挿入、更新、論理削除、物理削除のテスト * データ抽出は必ず使用するため明示的には記載しない **/ class Query_model_test extends TestCase { // セットアップ public function setUp() { $this->CI =& get_instance(); $this->CI->load->model('query_model'); $this->obj_query = $this->CI->query_model; } ...
mit
cdnjs/cdnjs
ajax/libs/react-timeago/4.0.0/language-strings/de-short.min.js
335
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var strings={prefixAgo:null,prefixFromNow:null,suffixAgo:"",suffixFromNow:"",seconds:"s",minute:"1m",minutes:"%dm",hour:"1h",hours:"%dh",day:"1T.",days:"%dT.",month:"1Mt.",months:"%dMt.",year:"1J.",years:"%dJ.",wordSeparator:" ",numbers:null};exports.d...
mit
evought/VCard-Tools
src/TypedPropertyBuilderTrait.php
3053
<?php /** * A trait for a TypedPropertyBuilder. * * @link https://github.com/evought/VCard-Tools * @author Eric Vought * @see RFC 2426, RFC 2425, RFC 6350 * @license MIT http://opensource.org/licenses/MIT */ /* * The MIT License * * Copyright 2014 evought. * * Permission is hereby granted, free of charge,...
mit
ephp/JF
app/Resources/public/js/actions.js
11504
var ws; $(document).ready(function() { ws = $('body').width(); $('a.fancybox').each(function() { if ($(this).attr('href').startsWith('#')) { $(this).fancybox({ hideOnOverlayClick: false, transitionIn: 'elastic', padding: 3, ...
mit
waqasilyas/json-converter-bmpr
BmprArchiveModel/Model/MockupSymbol.cs
459
namespace BmprArchiveModel.Model { public class MockupSymbol : AbstractControl { #region Properties /* [JsonProperty(Order = 20)] public MockupControl[] Symbols { get { if (Children != null && Children.Controls != null) ...
mit
psliwa/idea-composer-plugin
src/test/scala/org/psliwa/idea/composerJson/composer/model/version/VersionSuggestionsTest.scala
4121
package org.psliwa.idea.composerJson.composer.model.version import org.psliwa.idea.composerJson.BasePropSpec import org.psliwa.idea.composerJson.composer.model.version.{VersionGenerators => gen} import org.scalacheck.{Gen, Prop} import org.scalacheck.Prop.{forAll, propBoolean} class VersionSuggestionsTest extends Bas...
mit
mkechinov/frontend_template
template/template.rb
6345
# Simple wrapper to replace Gemfile completely and add readability # @param [Block] block # @return Replaces Gemfile contents with new one from the block def gemfile(&block) run 'echo "" > Gemfile' yield end gemfile do add_source 'https://rubygems.org' append_file 'Gemfile', "\n\# Last stable rails gem", verb...
mit
excellentingenuity/EloquentUUID
src/EloquentUUID.php
420
<?php namespace eig\EloquentUUID; use eig\EloquentUUID\Traits\UUID; use Illuminate\Database\Eloquent\Model; /** * Class EloquentUUID * @package App * @license MIT * @author James Johnson * @author Excellent InGenuity LLC */ abstract class EloquentUUID extends Model { use UUID; /** * Indicates if...
mit
iobuild/io_ask
db/seeds.rb
310
IoAsk::Topic.create(:title => 'test title1') IoAsk::Topic.create(:title => 'test title2') ask_root_category = IoAsk.category_class.create(:name => 'Ask') IoAsk.category_class.create(:name => 'test c1', :parent => ask_root_category) IoAsk.category_class.create(:name => 'test c2', :parent => ask_root_category)
mit
dieggop/prefeiturasertania
resources/views/site/downloads.blade.php
1073
@extends('site.index') @section('content_index') <div class="container"> <div class="row"> <!-- Slider --> <div class="col-sm-12 col-lg-12"> <div class="well"> <h3><strong>Downloads</strong></h3> <div class="divider-dashed"> ...
mit
olegfox/olere
src/Sylius/Bundle/CoreBundle/Model/VariantInterface.php
1991
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sylius\Bundle\CoreBundle\Model; use Doctrine\Common\Collections\Collection; use Sylius\Bund...
mit
gponster/laravel-oauth-server
src/models/AccessToken.php
713
<?php namespace Gponster\OAuth\Provider; use Illuminate\Database\Eloquent\Model; /** * Class AccessToken * * @author Vu Dang a.k.a Gponster <anhvudg@gmail.com> * @see http://code.google.com/p/oauth-php */ class AccessToken extends Model { /** * The database table used by the model. * * @var string */ ...
mit
datapimp/basicpages
lib/basicpages.rb
13
# Basicpages
mit
RectorPHP/Rector
rules/Transform/Rector/StaticCall/StaticCallToFuncCallRector.php
2991
<?php declare (strict_types=1); namespace Rector\Transform\Rector\StaticCall; use PhpParser\Node; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Name\FullyQualified; use Rector\Core\Contract\Rector\ConfigurableRectorInterface; use Rector\Core\Rector\AbstractRector; use Rector...
mit
mensly/attolass
sdl/main.cpp
1219
#ifdef MOCK_SDL #include "../attolass.h" #include "Mockboy.h" #include <iostream> SDL_Window* gWindow = NULL; //SDL_Renderer* gRenderer = NULL; extern Mockboy arduboy; int main(int argc, const char * argv[]) { //Start up SDL and create window if (!arduboy.initSDL()) { printf("Failed to initialize!\n"...
mit
daniel-rodas/wsj
fuel/app/views/blog/frontend/post/show/related.php
838
<?php if(empty($related_articles)): ?> <!-- <p>--><?//= __('frontend.post.empty'); ?><!--</p>--> <div class="advertisement blog-post-related "> <p>Advertisement</p> </div> <?php else: ?> <div class=" blog-post-related"> <?php foreach($related_articles as $post): ?> <article id="post-...
mit
shitikanth/jabref
src/main/java/org/jabref/model/pdf/FileAnnotation.java
6911
package org.jabref.model.pdf; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.time.format.DateTimeParseException; import java.util.Objects; import java.util.Optional; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.pdfbox.co...
mit
stivalet/PHP-Vulnerability-test-suite
URF/CWE_601/safe/CWE_601__shell_exec__whitelist_using_array__http_redirect_file_id-concatenation_simple_quote.php
1354
<?php /* Safe sample input : use shell_exec to cat /tmp/tainted.txt SANITIZE : use in_array to check if $tainted is in the white list construction : concatenation with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, ...
mit
dbreen/games
games/settings.py
1171
import os from local_settings import * PROJECT_ROOT = os.path.dirname(__file__) MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media') MEDIA_URL = '/media/' ADMIN_MEDIA_PREFIX = '/admin_media/' TIME_ZONE = 'America/New_York' LANGUAGE_CODE = 'en-us' SITE_ID = 1 USE_I18N = False SECRET_KEY = 'cz9)$^d0*3v#f(...
mit
xujianming/Alpha
AlphaClient/AlphaGraph/CRenderer.cpp
795
#include "stdafx.h" #include "CRenderer.h" #include "CGraphicD3D9.h" #include "CModel.h" #include "AlphaCommon\CAlphaWindow.h" #pragma comment(lib, "d3dx9.lib") CRenderer::CRenderer() { m_pModel = 0; } CRenderer::~CRenderer() { } void CRenderer::Initialize( CAlphaWindow* pWnd ) { m_pWnd = pWnd; m_pGraphic = new...
mit
kelthalas/agent-terrain-gen
src/camera.cpp
5074
#include "camera.h" #include <cmath> #include <QKeyEvent> #include <iostream> static const float pi = 4 * std::atan(1); float degToRad(float x) { return x * pi / 180.0f; } float radToDeg(float x) { return x * 180.0f / pi; } Camera::Camera() : m_speed{600.0f}, m_phi{4.72111f}, m_theta{-1.1781f}, ...
mit
ambethia/twaxdotcom
app/assets/javascripts/application.js
751
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
mit
joshuaavalon/FluentQuery
fluent-query/src/main/java/com/joshuaavalon/fluentquery/Query.java
4222
package com.joshuaavalon.fluentquery; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.support.annotation.CheckResult; import android.support.annotation.IntRange; import android.support.annotation.NonNull; import com.google....
mit
hck/open_nlp
spec/pos_tagger_spec.rb
1257
require 'spec_helper' RSpec.describe OpenNlp::POSTagger do let(:model) { OpenNlp::Model::POSTagger.new(File.join(FIXTURES_DIR, 'en-pos-maxent.bin')) } let(:pos_tagger) { described_class.new(model) } describe 'initialization' do it 'initialize with a valid model' do expect(pos_tagger.j_instance).to be_...
mit
DavsX/FCleaner
spec/spec_helper.rb
279
require_relative '../lib/fcleaner' require 'date' require 'webmock/rspec' RSpec.configure do |config| config.before { allow($stdout).to receive(:puts) } config.mock_with :rspec do |mock| mock.verify_doubled_constant_names = true end end WebMock.disable_net_connect!
mit
cahyaong/cop.gaia
Archive/Gaia.Engine/Common/IProbabilityManager.cs
1787
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="IProbabilityManager.cs" company="nGratis"> // The MIT License (MIT) // // Copyright (c) 2014 - 2015 Cahya Ong // // Permission is hereby granted, free of charge, to any pers...
mit
SuperUncleCat/ServerMonitoring
node_modules/semantic-ui-react/src/collections/Grid/GridColumn.js
3028
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, createShorthandFactory, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useOnlyProp, useTextAlignProp, useValueAndKey, useVerticalAlignProp, useWidthProp, } from '../../l...
mit
davidmnoll/wp-pdf-tpl
lib/lib/fonts/dompdf_font_family_cache.php
3265
<?php return array ( 'sans-serif' => array( 'normal' => $fontDir . '/Helvetica', 'bold' => $fontDir . '/Helvetica-Bold', 'italic' => $fontDir . '/Helvetica-Oblique', 'bold_italic' => $fontDir . '/Helvetica-BoldOblique', ), 'times' => array( 'normal' => $fontDir . '/Times-Roman', 'bold' => ...
mit
xsolve-pl/xsolve-feat
client/src/app/project/detail/project-detail.component.spec.ts
854
/* tslint:disable:no-unused-variable */ import {async, ComponentFixture, TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {DebugElement} from '@angular/core'; import {ProjectDetailComponent} from './project-detail.component'; describe('ProjectDetailComponent', () => { le...
mit
jimmy-go/srest
_examples/simple/main.go
607
package main import ( "flag" "log" "net/http" "runtime" "github.com/jimmy-go/srest" ) var ( port = flag.Int("port", 9000, "Listen port") ) func main() { flag.Parse() runtime.GOMAXPROCS(runtime.NumCPU()) m := srest.New(nil) m.Get("/", http.HandlerFunc(homeHandler)) <-m.Run(*port) log.Println("Done") } /...
mit
QueueHammer/Mandelbrot
app.js
116
var express = require('express'); var app = express(); app.use(express.static(__dirname + '/')); app.listen(3000);
mit
60East/amps-client-excel
src/ActiveSub.cs
8271
using System; using System.Collections.Generic; using System.Linq; using System.Text; using AMPS.Client; using Excel= Microsoft.Office.Interop.Excel; using System.Threading; using System.Runtime.InteropServices; namespace AMPSExcel { public class ActiveSub { Client _client; CommandId _cmdId; ...
mit
VoidSt4r/Diablo2HeroEditor
src/Diablo2FileFormat/BitOperations.cs
2191
// ----------------------------------------------------------------------- // Copyright (c) VoidSt4r. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // ----------------------------------------------------------------------- using System; usin...
mit
naoto/naobot-webhook
plugins/wikipedia.rb
1122
# encoding: utf-8 require 'open-uri' require 'nokogiri' class Wikipedia < Naobot::Webhook::Base def on_privmsg(message) channel = message.to message = message.body if message =~ /(?<keyword>.+)って(何|なに|誰|だれ)$/ index($~[:keyword]).each do |result| notice(channel, result) end end ...
mit
davidfstr/iTunes-Connect-Autodownload
autodownload_trampoline.py
500
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python import subprocess import notifymail import sys # Run script python = sys.executable scriptDir = sys.path[0] script = subprocess.Popen([python, 'autodownload.py'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=scriptDir) out, err = script.communicate...
mit
ivangabriele/vue-medium
karma.conf.js
391
let webpackConfig = require('./webpack.config.js') delete webpackConfig.entry module.exports = function (config) { config.set({ browsers: ['PhantomJS'], frameworks: ['jasmine'], files: ['test/index.js'], preprocessors: { 'test/index.js': ['webpack'], }, webpack: webpackConfig, webpa...
mit
enova/churnhub
config/environments/production.rb
2482
Churnhub::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded between requests config.cache_classes = true # Full error reports are disabled and caching is turned on config.consider_all_requests_local = false config.actio...
mit
Azure/azure-sdk-for-ruby
management/azure_mgmt_security/lib/2017-08-01-preview/generated/azure_mgmt_security/pricings.rb
39379
# 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::Security::Mgmt::V2017_08_01_preview # # API spec for Microsoft.Security (Azure Security Center) resource provider # class Pricings ...
mit