code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
require "docusign_transaction_rooms/version" require 'docusign_transaction_rooms/configuration' require 'active_support/all' require 'resource_kit' require 'kartograph' module DocusignTransactionRooms autoload :Client, 'docusign_transaction_rooms/client' # Models autoload :BaseModel, 'docusign_transaction_rooms...
omundu/docusign_transaction_rooms
lib/docusign_transaction_rooms.rb
Ruby
mit
9,078
require 'spec_helper' describe "README features" do describe "Custom actions" do let(:custom_path) { 'accounts/:account_id/item_lists.json' } around do |example| begin ExampleCom::ItemList.define_action :index, method: :get, path: custom_path example.run ensure ExampleCom...
neerfri/signaling
spec/integration/readme_features/custom_action_path_spec.rb
Ruby
mit
904
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ky" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About VPSCoin</source> <translation type="unfinished"/> </message> <message> <location line="...
vpscoin/VPSCoin
src/qt/locale/bitcoin_ky.ts
TypeScript
mit
107,742
# frozen_string_literal: true class Projects::TriggersController < Projects::ApplicationController before_action :authorize_admin_build! before_action :authorize_manage_trigger!, except: [:index, :create] before_action :authorize_admin_trigger!, only: [:edit, :update] before_action :trigger, only: [:take_owner...
iiet/iiet-git
app/controllers/projects/triggers_controller.rb
Ruby
mit
2,087
package org.diorite.material.blocks.stony; import java.util.Map; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import org.diorite.BlockFace; import org.diorite.cfg.magic.MagicNumbers; import org.diorite.material.BlockMaterialData; import org.diorite.m...
joda17/Diorite-API
src/main/java/org/diorite/material/blocks/stony/RedSandstoneStairsMat.java
Java
mit
7,654
<?php require(__DIR__ . '/vendor/autoload.php'); Httpful\Bootstrap::init(); RESTful\Bootstrap::init(); Balanced\Bootstrap::init(); Balanced\Settings::$api_key = "ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0"; $order = Balanced\Order::get("/orders/OR5sl2RJVnbwEf45nq5eATdz"); $order->description = 'New description for o...
joelgarciajr84/balanced-php
scenarios/order_update/executable.php
PHP
mit
438
package cn.ezandroid.ezfilter.render; import android.content.Context; import android.opengl.GLES20; import cn.ezandroid.lib.ezfilter.core.util.Path; import cn.ezandroid.lib.ezfilter.extra.IAdjustable; import cn.ezandroid.lib.ezfilter.extra.MultiBitmapInputRender; /** * 黑白滤镜 * * @author like * @date 2017-09-17 *...
uestccokey/EZFilter
app/src/main/java/cn/ezandroid/ezfilter/render/BWRender.java
Java
mit
2,224
@extends ('site.layouts.home.master') @section ('conteudo') <div class="w3-row"> <div class="w3-padding-64 w3-container login"> <div class="w3-content"> <div class="w3-container"> <h2>Resetar Senha</h2> <hr> <form role="form" method="POST" action="{{ route('empresa.reseta-senha.requ...
jthanlopes/SysGAP
resources/views/site/reset-empresa.blade.php
PHP
mit
2,346
<TS language="sq" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Kliko me të djathtën për të ndryshuar adresën ose etiketen.</translation> </message> <message> <source>Create a new address</source...
fcecin/infinitum
src/qt/locale/infinitum_sq.ts
TypeScript
mit
12,467
/* eslint-env jest */ import fs from 'fs-extra' import { join } from 'path' import { killApp, findPort, launchApp, nextStart, nextBuild, fetchViaHTTP, } from 'next-test-utils' import webdriver from 'next-webdriver' import cheerio from 'cheerio' jest.setTimeout(1000 * 60 * 2) const appDir = join(__dirname...
flybayer/next.js
test/integration/404-page-app/test/index.test.js
JavaScript
mit
2,390
/** * Calculates the complex number raised to some power * * @param {numeric} c The power to which the complex number should be raised * @return {Complex} */ pow(c) : Complex { var re, im, abs, arg; if (MathLib.type(c) === 'complex') { re = c.re; im = c.im; abs = this.abs(); arg = this.arg(); // Fixe...
alawatthe/MathLib
src/Complex/prototype/pow.ts
TypeScript
mit
2,048
'use strict'; const sinon = require('sinon'), q = require('q'), mockery = require('mockery'), _ = require('lodash'), should = require('chai').should(); describe('Create episode', () => { const idsGeneratorStub = () => '123'; it('Should call the next callback', done => { let deferred = q.defer(); let promi...
thegameofcode/cucumberly
test/episodes/createEpisodeTest.js
JavaScript
mit
3,231
RSpec.describe Magick::Image, '#find_similar_region' do it 'works' do image = described_class.new(20, 20) girl = described_class.read(IMAGES_DIR + '/Flower_Hat.jpg').first region = girl.crop(10, 10, 50, 50) x, y = girl.find_similar_region(region) expect(x).not_to be(nil) expect(y).not_to be(n...
rmagick/rmagick
spec/rmagick/image/find_similar_region_spec.rb
Ruby
mit
1,562
// Description: C# Extension Methods | Enhance the .NET Framework and .NET Core with over 1000 extension methods. // Website & Documentation: https://csharp-extension.com/ // Issues: https://github.com/zzzprojects/Z.ExtensionMethods/issues // License (MIT): https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/...
zzzprojects/Z.ExtensionMethods
test/Z.Reflection.Test/GetSignature/Field/InternalField.cs
C#
mit
1,044
<?php namespace Igorw\Trashbin; use Silex\Application; use Silex\ServiceProviderInterface; use Symfony\Component\Finder\Finder; class Provider implements ServiceProviderInterface { public function register(Application $app) { $app['app.languages'] = $app->share(function () { $languages = ...
igorw/trashbin
src/Igorw/Trashbin/Provider.php
PHP
mit
1,091
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M4 17h6v2H4zm13-6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3 3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4zM4 5h16v2H4z" /> , 'WrapTextTwoTone');
kybarg/material-ui
packages/material-ui-icons/src/WrapTextTwoTone.js
JavaScript
mit
262
# -*- coding:utf-8 -*- import abc import platform from UserList import UserList class Monitor(object): @abc.abstractmethod def current(self): pass @abc.abstractmethod def percent(self, range): pass @abc.abstractmethod def reset(self): pass @abc.abstractmethod ...
x007007007/pyScreenBrightness
src/pyScreenBrightness/base.py
Python
mit
1,127
/* * The MIT License * * Copyright 2014 Sebastian Russ <citeaux at https://github.com/citeaux/JAHAP>. * * 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 w...
citeaux/JAHAP
src/main/java/org/jahap/business/base/ratesbean.java
Java
mit
11,151
require_relative 'location_splitter' require_relative 'elevation_checker' require_relative 'terrain_checker' class DetailsChecker attr_reader :locations, :services_response def initialize(locations) @locations = locations end def call! split_locations! unless locations.is_a?(Array) check_elevatio...
tolhaje/coords2details
details_checker.rb
Ruby
mit
880
# -*- coding: utf-8 -*- """ Forms for day forms """ from django.conf import settings from django import forms from django.utils.translation import ugettext as _ from arrow import Arrow from datebook.models import DayEntry from datebook.forms import CrispyFormMixin from datebook.utils.imports import safe_import_module...
sveetch/django-datebook
datebook/forms/day.py
Python
mit
6,638
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
Stargrazer82301/CAAPR
CAAPR/CAAPR_AstroMagic/PTS/pts/core/tools/special.py
Python
mit
24,211
import React from 'react'; import {shallow} from 'enzyme'; import {BareCheckSuiteView} from '../../lib/views/check-suite-view'; import CheckRunView from '../../lib/views/check-run-view'; import checkSuiteQuery from '../../lib/views/__generated__/checkSuiteView_checkSuite.graphql'; import {checkSuiteBuilder} from '../...
atom/github
test/views/check-suite-view.test.js
JavaScript
mit
1,809
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var minus = exports.minus = { "viewBox": "0 0 20 20", "children": [{ "name": "path", "attribs": { "d": "M16,10c0,0.553-0.048,1-0.601,1H4.601C4.049,11,4,10.553,4,10c0-0.553,0.049-1,0.601-1h10.799C15.952,9,16,9.447,16,10z" } }] };
xuan6/admin_dashboard_local_dev
node_modules/react-icons-kit/entypo/minus.js
JavaScript
mit
308
/*! * jQuery JavaScript Library v1.11.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-12-17T15:27Z */ (function( global, factory ) { if...
mohamed-mehany/SyntaxTerror
blog/public/assets/test/dummy_rails/app/assets/javascripts/application-768a0262af2eb7663859c5e8395c2b25.js
JavaScript
mit
350,371
#include "Agent.h" #include <algorithm> Agent::Agent() { } Agent::Agent(float _speed, float _health, const glm::vec2 & _startPos, const GameEngine::GLTexture & _texture, GameEngine::ColorRGBA8 & _color, std::weak_ptr<World> _world) : m_movementSpeed(_speed), m_health(_health), m_worldPos(_startPos), m_te...
VasilStamatov/GraphicsLearning
AI_Game/Agent.cpp
C++
mit
4,846
#!/usr/bin/env python # -*- coding: utf-8 -*- """ | This file is part of the web2py Web Framework | Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu> | License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) Provides: - List; like list but returns None instead of IndexOutOfBounds - Storage; like dictionary ...
shashisp/blumix-webpy
app/gluon/storage.py
Python
mit
8,573
/* <one line to give the program's name and a brief idea of what it does.> Copyright (C) 2012 <copyright holder> <email> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either ve...
fridek/uj-gamedev-ai-project
bot/bot.cpp
C++
mit
3,941
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Servidor.Control { internal class CifradoAES { internal string cifrar(string transaccionSerializada) { return transaccionSerializada; } int...
IsidroE/CrypProject
Proyecto/Servidor/Servidor/Control/CifradoAES.cs
C#
mit
421
#include "optionsdialog.h" #include "ui_optionsdialog.h" #include "bitcoinunits.h" #include "monitoreddatamapper.h" #include "netbase.h" #include "optionsmodel.h" #include <QDir> #include <QIntValidator> #include <QLocale> #include <QMessageBox> OptionsDialog::OptionsDialog(QWidget *parent) : QDialog(parent), ...
coingulf/gulfcoin
src/qt/optionsdialog.cpp
C++
mit
8,954
#!/usr/bin/env python from ..debugging import bacpypes_debugging, ModuleLogger from ..capability import Capability from ..basetypes import ErrorType, PropertyIdentifier from ..primitivedata import Atomic, Null, Unsigned from ..constructeddata import Any, Array, ArrayOf, List from ..apdu import \ SimpleAckPDU, Re...
JoelBender/bacpypes
py27/bacpypes/service/object.py
Python
mit
15,660
#include "FeatureIterator.h" #include "Random.h" #include <functional> namespace dungeon { //////////////////////////////////////////////////////////////////////////////// // ADJUSTERS //////////////////////////////////////////////////////////////////////////////// AForward::AForward(const Feature& feature) : m...
DeonPoncini/libdungeon
src/FeatureIterator.cpp
C++
mit
1,608
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
SpatialMap/SpatialMapDev
node_modules/office-ui-fabric-react/lib/components/Check/Check.js
JavaScript
mit
1,851
# Logic for creating a security key during password reset module Authenticatable class SecurityKey < ActiveRecord::Base # Uses the hashable concern include Hashable # Requires user id and an expiration_date to be present validates :user_id,:expiration_date, presence: true # ActiveRecord ...
vmcilwain/authenticatable
app/models/authenticatable/security_key.rb
Ruby
mit
764
var Buffer = require('buffer').Buffer, Jpeg = require('jpeg').Jpeg; function randomColorComponent() { return Math.floor(Math.random() * 256); } /** * Creates a random image */ module.exports = function(width, height, callback) { var buffer = new Buffer(width * height * 3); for (var x = 0; x < width...
davidpadbury/random-image-generator
index.js
JavaScript
mit
754
import { html } from 'lit'; import { Story, Meta } from '@storybook/web-components'; export default { title: 'Addons / Toolbars', } as Meta; const getCaptionForLocale = (locale: string) => { switch (locale) { case 'es': return 'Hola!'; case 'fr': return 'Bonjour !'; case 'zh': return...
storybooks/storybook
examples/web-components-kitchen-sink/src/stories/addons/toolbars/addon-toolbars.stories.ts
TypeScript
mit
605
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@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 limitation the rights # to use, copy, ...
earwig/mwparserfromhell
src/mwparserfromhell/definitions.py
Python
mit
3,915
// Copyright (c) SimControl e.U. - Wilhelm Medetz. See LICENSE.txt in the project root for more information. using System; // TODO CR namespace SimControl.Reactive { /// <summary>Exception trigger.</summary> public class ExceptionTrigger: Trigger { /// <summary>Constructor.</summary> ///...
SimControl/SimControl.Reactive
SimControl.Reactive/ExceptionTrigger.cs
C#
mit
1,633
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
gabizou/SpongeCommon
src/main/java/org/spongepowered/common/data/processor/block/SpongeDirectionalProcessor.java
Java
mit
5,006
<?php /** * CodeIgniter * * An open source application development framework for PHP 5.2.4 or newer * * This content is released under the MIT License (MIT) * * Copyright (c) 2014, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of th...
grcasanova/Codeigniter-Bundle
CodeIgniter/application/language/russian/date_lang.php
PHP
mit
6,785
package com.dreamdevs.sunshine.fragment; import android.content.Intent; import android.content.SharedPreferences; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.preference.PreferenceManager; import android.support.v...
7odri9o/Sunshine
app/src/main/java/com/dreamdevs/sunshine/fragment/ForecastFragment.java
Java
mit
12,550
//Copyright (c) 2010 Lex Li // //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, modify, merge, //publish, distribute...
yonglehou/sharpsnmplib
lib/LogExtension.cs
C#
mit
2,438
from __future__ import print_function from __future__ import division # python bpzchisq2run.py ACS-Subaru # PRODUCES ACS-Subaru_bpz.cat # ADDS A FEW THINGS TO THE BPZ CATALOG # INCLUDING chisq2 AND LABEL HEADERS # ~/p/bpzchisq2run.py NOW INCLUDED! # ~/Tonetti/colorpro/bpzfinalize7a.py # ~/UDF/Elmegreen/phot8/bpzfinal...
boada/planckClusters
MOSAICpipe/bpz-1.99.3/bpzfinalize.py
Python
mit
4,563
module Capistrano module RbEnv VERSION = "1.0.6git" end end
yyuu/capistrano-rbenv
lib/capistrano-rbenv/version.rb
Ruby
mit
68
import React, { Component } from 'react' import PropTypes from 'prop-types' import themed from '@rentpath/react-themed' import clsx from 'clsx' import isEqual from 'lodash/isEqual' import { randomId } from '@rentpath/react-ui-utils' import SubmitButton from './SubmitButton' import Header from './Header' import { Form...
rentpath/react-ui
packages/react-ui-core/src/LeadForm/LeadForm.js
JavaScript
mit
2,529
<?php namespace Poker; use Faker\Factory; use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class RandomGame extends GameCommand { use GameTrait; /** * Co...
RryLee/phppoker
src/RandomGame.php
PHP
mit
1,239
export * from './user'; export * from './template';
nswweb/templateMgr
server/src/schemas/index.js
JavaScript
mit
51
package TankWarGame; import java.awt.Color; import java.awt.Graphics; import java.awt.Image; public class EnergyBar extends GameObject { int energy; int defaultEnergy = 5000/30; public int getEnergy() { return energy; } public void setEnergy(int energy) { this.energy = energy; } public Energ...
TakeshiTseng/JavaTankWarGame
src/TankWarGame/EnergyBar.java
Java
mit
633
package com.amee.domain.data.builder.v2; import com.amee.base.utils.XMLUtils; import com.amee.domain.Builder; import com.amee.domain.ItemBuilder; import com.amee.domain.ItemService; import com.amee.domain.TimeZoneHolder; import com.amee.domain.item.BaseItemValue; import com.amee.domain.item.NumberValue; import com.ame...
OpenAMEE/amee.platform.api
amee-platform-domain/src/main/java/com/amee/domain/data/builder/v2/ItemValueBuilder.java
Java
mit
4,429
// This file is part of the :(){ :|:& };:'s project // Licensing information can be found in the LICENSE file // (C) 2014 :(){ :|:& };:. All rights reserved. #include "sys/common.h" CVar * CVar::root = NULL; // ----------------------------------------------------------------------------- void CVar::Init(const std::s...
DoCGameDev/RPG-Engine
src/sys/cvar.cc
C++
mit
3,887
package cvut.fit.borrowsystem.domain.entity; import org.springframework.data.mongodb.core.mapping.Document; /** * Created by Jakub Tuček on 03/06/16. */ @Document(collection = "item") public class Book extends Item { private int isbn; public Book() { } public Book(String itemName, int count, int ...
jakub-tucek/simple-spring-borrow-system
src/main/java/cvut/fit/borrowsystem/domain/entity/Book.java
Java
mit
521
var gulp = require("gulp"), del = require("del"), ts = require("gulp-typescript"), tsProject = ts.createProject("tsconfig.json") typedoc = require("gulp-typedoc"); var compileTS = function () { return tsProject.src() .pipe(tsProject()) .js.pipe(gulp.dest("app")); }; gulp.task("doc", function() { return gulp...
SantiMA10/HomePi
gulpfile.js
JavaScript
mit
674
#============================================================================== #description : Solves travelling salesman problem by using Hill Climbing. #author : Yakup Cengiz #date : 20151121 #version : 0.1 #notes : #python_version : 3.5.0 #Reference : http://www.psy...
yakupc/Artificial-Intelligence
Algorithms/SolveTSPSimulatedAnnealing/SolveTSPSimulatedAnnealing.py
Python
mit
4,196
/* global describe, it, beforeEach */ 'use strict'; process.env.NODE_ENV = 'test'; var sharedModule = require('../lib/module-shared'); var instance1; var instance2; var should = require('should'); var stubs = {}; describe('Private Module Tests', function () { beforeEach(function (done) { for (var stub ...
Icehunter/npm-base-package
test/module-shared-tests.js
JavaScript
mit
3,863
"""django_todo URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Clas...
GunnerJnr/_CodeInstitute
Stream-3/Full-Stack-Development/21.Django REST Framework/4.User-Authentication/django_todo/django_todo/urls.py
Python
mit
869
<?php /* * This file is part of the ItaPaypalPlugin package. * (c) Matteo Montanari <matteo@italinux.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * @package PayPal */ /** * Make sure our parent class is defined...
italinux/PaypalPlugin-v1
sdk/lib/PayPal/Type/GetBillingAgreementCustomerDetailsRequestType.php
PHP
mit
1,251
package com.jim.portal.controller; import com.jim.portal.entity.BooksEntity; import com.jim.portal.hibernate.BookManagementRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import o...
liu1084/springmvc-cookbook
cloudstreetmarket-parent/cloudstreetmarket-webapp/src/main/java/com/jim/portal/controller/BookController.java
Java
mit
1,630
<?php /** * miniShop * * @author Team phpManufaktur <team@phpmanufaktur.de> * @link https://kit2.phpmanufaktur.de/miniShop * @copyright 2014 Ralf Hertsch <ralf.hertsch@phpmanufaktur.de> * @license MIT License (MIT) http://www.opensource.org/licenses/MIT */ namespace phpManufaktur\miniShop\Data\Setup; use Sile...
phpManufaktur/kfMiniShop
Data/Setup/Uninstall.php
PHP
mit
1,312
# coding: utf-8 [ { pt: 'Arte', en: 'Art' }, { pt: 'Artes plásticas', en: 'Visual Arts' }, { pt: 'Circo', en: 'Circus' }, { pt: 'Comunidade', en: 'Community' }, { pt: 'Humor', en: 'Humor' }, { pt: 'Quadrinhos', en: 'Comicbooks' }, { pt: 'Dança', en: 'Dance' }, { pt: 'Design', en: 'Design' }, { pt: 'E...
razaosocial/irs_crowdfunding
db/seeds.rb
Ruby
mit
3,096
/* Copyright (c) 2015 Pozirk Games * http://www.pozirk.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 limitation the rights * to use, copy,...
openfl/extension-amazonads
dependencies/amazonads/src/com/pozirk/ads/AmazonAdsListener.java
Java
mit
2,319
package com.codepoetics.protonpack.selectors; import java.util.Comparator; import java.util.Objects; import java.util.stream.Stream; public final class Selectors { private Selectors() { } public static <T> Selector<T> roundRobin() { return new Selector<T>() { private int startIndex = ...
poetix/protonpack
src/main/java/com/codepoetics/protonpack/selectors/Selectors.java
Java
mit
1,740
<?php namespace Cinemino\SiteBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class DefaultController extends Controller { public function indexAction($name) { return $this->render('CineminoSiteBundle:Default:index.html.twig', array('name' => $name)); } }
hclerb/Cinemino
src/Cinemino/SiteBundle/Controller/DefaultController.php
PHP
mit
307
<?php namespace JDT\Api; use Illuminate\Http\Request; use Illuminate\Routing\Router; use Laravel\Passport\Passport; use Illuminate\Http\UploadedFile; use JDT\Api\Http\InternalApiRequest; use Illuminate\Filesystem\Filesystem; use Laravel\Passport\ApiTokenCookieFactory; use Symfony\Component\HttpFoundation\Cookie; use ...
jdtsoftware/api
src/InternalRequest.php
PHP
mit
11,858
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("Do...
guitarrapc/AzureFunctionsIntroduction
v1/src/DotNetFrameworkVersionResponseCSharp/Properties/AssemblyInfo.cs
C#
mit
1,408
class Public::PeopleController < ApplicationController layout false after_action :allow_iframe skip_before_action :verify_authenticity_token skip_before_action :authenticate_user! # GET /people/new def new @referrer = false if params[:referrer] begin uri = URI.parse(params[:referrer])...
smartchicago/kimball
app/controllers/public/people_controller.rb
Ruby
mit
2,632
<?php class AnnotatorException extends Exception { } class Annotator { const INFO = 0; const BEFORE = 1; const AFTER = 2; const AROUND = 3; public static $annotations = array(); /** * Register annotation handler * * @param string $annotation Annotation code * @param callable $handler Annotation handl...
baryshev/Annotator
Annotator.php
PHP
mit
6,141
using AppShell.NativeMaps; namespace AppShell.Samples.NativeMaps { public class NativeMapsShellCore : ShellCore { public override void Run() { Push<MasterDetailShellViewModel>(new { Name = "Main", Master = new NativeMapsMasterViewModel(serviceDispatcher) }); serviceDis...
cschwarz/AppShell
samples/NativeMaps/AppShell.Samples.NativeMaps/NativeMapsShellCore.cs
C#
mit
490
import { featureCollection, lineString, multiLineString, // Typescript Definitions Polygon, LineString, MultiLineString, MultiPolygon, Feature, FeatureCollection } from '@turf/helpers' import lineStringToPolygon from './' // Fixtures const coords = [[125, -30], [145, -30], [145,...
hooplert/jesper
packages/turf-linestring-to-polygon/types.ts
TypeScript
mit
702
module Ruboty module Variable module Actions class Get < Ruboty::Variable::Actions::Variable def call(key) if var.data.has_key?(key) message.reply(var.get(key)) else message.reply(undefined_message(key)) end end def undefined_mes...
snakazawa/ruboty-variable
lib/ruboty/variable/actions/get.rb
Ruby
mit
400
<?php /** * Trait for Control that use Vue Lookup component. */ declare(strict_types=1); namespace Atk4\Ui\Form\Control; use Atk4\Ui\Callback; trait VueLookupTrait { /** @var Callback */ public $dataCb; public function initVueLookupCallback(): void { if (!$this->dataCb) { $thi...
atk4/ui
src/Form/Control/VueLookupTrait.php
PHP
mit
1,370
//////////////////////////////////////////////////////////////////////////// // // This file is part of RTIMULibCS // // Copyright (c) 2015, richards-tech, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), ...
emmellsoft/RPi.SenseHat
RPi.SenseHat/RTIMULibCS/Devices/LSM9DS1/LSM9DS1Config.cs
C#
mit
3,360
// C++. #include <cassert> #include <sstream> #include <algorithm> // Qt. #include <QWidget> #include <QMessageBox> #include <QDesktopWidget> #include <QFileDialog> // Infra. #include <QtCommon/Util/RestoreCursorPosition.h> #include <QtCommon/Scaling/ScalingManager.h> #include <Utils/Include/rgaCliDefs.h> // Local. ...
GPUOpen-Tools/RGA
RadeonGPUAnalyzerGUI/Src/rgBuildSettingsViewVulkan.cpp
C++
mit
41,275
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("Cu...
marianamn/Telerik-Academy-Activities
Homeworks/01. CSharp-Basics/01. Intro Programing Homework/CurrentDateAndTime/Properties/AssemblyInfo.cs
C#
mit
1,412
<?php /* PMUserBundle:Registration:register_content.html.twig */ class __TwigTemplate_f6e31e9e2fb72ad7021d9bf921bafcc5a9a3a5263216ec6875135a086381234f extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->...
quentinl-c/Player_manager
app/cache/dev/twig/f6/e3/1e9e2fb72ad7021d9bf921bafcc5a9a3a5263216ec6875135a086381234f.php
PHP
mit
8,748
<?php class SmartWikiInitializeController { private $log; /** * Constructor */ function __construct() { # TODO: Do something or remove } /** * Do the initialize of SmartWiki * * @param boolean $showInMenu * * @return HTML output code */ public function execute($showInMenu =...
Mantix/SmartWiki
includes/controller/SmartWikiInitializeController.class.php
PHP
mit
1,968
package me.xwang1024.sifResExplorer.model; public class UnitSkill { }
xwang1024/SIF-Resource-Explorer
src/main/java/me/xwang1024/sifResExplorer/model/UnitSkill.java
Java
mit
77
import React from 'react'; import ReactDOM from 'react-dom'; import Layout from './layout.js'; document.addEventListener('DOMContentLoaded', () => { ReactDOM.render(<Layout />, document.getElementById('main')); });
gauravchl/react-simple-sidenav
demo/src/index.js
JavaScript
mit
218
$.fn.onEnterKey = function( closure ) { $(this).keypress( function( event ) { var code = event.keyCode ? event.keyCode : event.which; if (code == 13) { closure(); return false; } } ); } Str...
junajan/YoutubeDownloader
public/libs/common.js
JavaScript
mit
466
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Text.RegularExpressions; using ConverterContracts.ConversionElementsStyles; using FB2Library.Elements; using XHTMLClassLibrary.BaseElements; using XHTMLClassLibrary.BaseElements.InlineElements...
LordKiRon/fb2converters
fb2epub/FB2EPubConverter/HRefManagerV2.cs
C#
mit
13,852
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _01.StringBuilderSubstring { public static class StringBuilderExtention { public static StringBuilder Substring(this StringBuilder input, int index, int length) { ...
zvet80/TelerikAcademyHomework
03.C# OOP/03.ExtensionMethodsDelegatesLambdaLINQ/01.StringBuilderSubstring/StringBuilder.cs
C#
mit
939
/* Sample code file for CPJ2e. All code has been pasted directly from the camera-ready copy, and then modified in the smallest possible way to ensure that it will compile -- adding import statements or full package qualifiers for some class names, adding stand-ins for classes and methods that are referred ...
Ericliu001/BigBangJava
src/main/resources/DougLea.java
Java
mit
121,587
/** * Pipedrive API v1 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * ...
pipedrive/client-nodejs
src/model/UpdateFileRequest.js
JavaScript
mit
2,415
""" Example ------- class SystemSetting(KVModel): pass setting = SystemSetting.create(key='foo', value=100) loaded_setting = SystemSetting.get_by_key('foo') """ from django.db import models from .fields import SerializableField class KVModel(models.Model): """ An Abstract model that has key and value...
amdorra/django-kvmodel
kvmodel/models.py
Python
mit
1,100
<?php return array ( 'id' => 'opwv_sdk_ver1_sub40wpk010149', 'fallback' => 'uptext_generic', 'capabilities' => array ( ), );
cuckata23/wurfl-data
data/opwv_sdk_ver1_sub40wpk010149.php
PHP
mit
136
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $this->call(UsersTableSeeder::class); $this->call(CoursesTableSeeder::class); //$this->call(RepositoryTableSeede...
guelph-code-ninjas/core
database/seeds/DatabaseSeeder.php
PHP
mit
339
<?php namespace Chebur\SphinxBundle\Sphinx\Connection; use Foolz\SphinxQL\Drivers\Mysqli\Connection as FoolzMysqliConnection; class MysqliConnection extends FoolzMysqliConnection implements ConnectionInterface { /** * потому что Exception лучше error * @var bool */ protected $silence_connectio...
vchebotarev/sphinx-bundle
Sphinx/Connection/MysqliConnection.php
PHP
mit
355
export default class ContestType { constructor(options) { let _id = null; let _name = null; let _berryFlavor = null; let _color = null; Object.defineProperty(this, 'id', { enumarable: true, get() { return _id; } }); Object.defineProperty(this, 'name', { e...
milk-shake/electron-pokemon
app/js/entities/contestType.js
JavaScript
mit
850
<?php /** * */ class M_login extends CI_Model{ public function login_authen($username, $password){ $this->db->select('*'); $this->db->where('username', $username); $this->db->where('password', $password); $this->db->from('user'); $query = $this->db->get(); ...
ericsrizal/kopiganes
application/models/M_login.php
PHP
mit
441
#include <map> #include <assert.h> #include <exception> #include "pf/base/string.h" #include "pf/file/database.h" namespace pf_file { Database::Database(uint32_t id) { __ENTER_FUNCTION id_ = id; string_buffer_ = NULL; index_column_ = -1; record_number_ = 0; __LEAVE_FUNCTION } Database::~Database(...
viticm/plainframework1
pf/core/src/file/database.cc
C++
mit
18,796
(function() { var lastTime = 0; var vendors = ['ms', 'moz', 'webkit', 'o']; for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame']; window.cancelAnimationFrame = window[vendors[x]+'CancelA...
randuhmm/html5-prototype-mode7
js/main.js
JavaScript
mit
6,851
package query import ( "context" "errors" "fmt" "os" "runtime/debug" "strconv" "sync" "sync/atomic" "time" "github.com/influxdata/influxdb/models" "github.com/influxdata/influxql" "go.uber.org/zap" ) var ( // ErrInvalidQuery is returned when executing an unknown query type. ErrInvalidQuery = errors.New...
vladlopes/influxdb
query/query_executor.go
GO
mit
15,829
using System.Data.Entity; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; namespace TwitterBot.Models { // You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http:...
b1thunt3r/sixdegree
TwitterBot/Models/IdentityModels.cs
C#
mit
1,209
require 'spec_helper' describe ActionView::Helpers::FormHelper do before do helper.form_for(FakeModel.new, :url => "myurl", :builder => Manageable::Helpers::FormBuilder) do |f| @text_field = f.text_field(:name) @password_field = f.password_field(:name) @telephone_field = f.telephone_field(:nam...
fabiokr/manageable
spec/helpers/form_builder_spec.rb
Ruby
mit
4,704
<?php /* @Debug/Profiler/dump.html.twig */ class __TwigTemplate_87214dbb795c597762c22e04f33cdac6be858641b8887823b0d50282e4b88981 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 $this->parent = $this->loadTemplate("@WebPr...
rince1990/photocool
app/cache/dev/twig/6b/6b71bb18f4add4f495b2075399e972f2b6c75277cfc00146f5f2f88109075914.php
PHP
mit
18,596
package armored.g12matrickapp.Activities; import android.content.ComponentName; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.ResolveInfo; import android.graphics.Bitmap; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.H...
RhinoSoftware/G12Matric
app/src/main/java/armored/g12matrickapp/Activities/subject_Choose.java
Java
mit
21,736
//! //! @author Wang Weixu 13114633, Xiufeng Zhang 06197620, Boxi Zhang, 12238967 //! @date 12.12.2014 //! //! @brief This code implemented Big Number using linked list as underlying //! data structure. //! //! Assignment 4, 159.201,s3,2014 //! #include <iostream> #include <fstream> #include <s...
Mooophy/159201
assignment4/as4/assignment04_159201_final_version.cpp
C++
mit
3,226
using System; using System.Collections.Generic; using System.Linq; using System.Text; using EspaceClient.FrontOffice.Infrastructure.Services.Translation; using EspaceClient.FrontOffice.Web.ViewModels.Pages.Module.StaticModel; using EspaceClient.FrontOffice.Domaine.Results; namespace EspaceClient.FrontOffice.Web.ViewM...
apo-j/Projects_Working
EC/espace-client-dot-net/EspaceClient.FrontOffice.Web.ViewModels/Pages/Document/DocumentsAuditViewModel.cs
C#
mit
655
version https://git-lfs.github.com/spec/v1 oid sha256:0f088644576fe6fee42bb3ce7f1d056f5db1079bf284c312f2acb895c5510851 size 11112
yogeshsaroya/new-cdnjs
ajax/libs/angular-strap/2.1.5/modules/select.js
JavaScript
mit
130
import re from datetime import datetime from flask import current_app as app from flask_jwt import current_identity from flask_restplus import Namespace, Resource, fields, reqparse from sqlalchemy.exc import IntegrityError from packr.models import Message api = Namespace('contact', description='Opera...
KnightHawk3/packr
packr/api/contact.py
Python
mit
4,011
package panels; import javax.swing.JPanel; import javax.swing.JTextArea; public class EditPanel extends JPanel { JTextArea srcEdit; public EditPanel() { srcEdit = new JTextArea(20, 30); String src = ".data\n" + "a: .word 1, 2, 3\n"; srcEdit.setText(src); add(srcEdit); } public JTextArea get...
mulderp/plutoasm
src/panels/EditPanel.java
Java
mit
496
class Projects::UsersController < ApplicationController include StaffPlan::SharedFinderMethods before_filter :find_target_user before_filter :find_project, :only => [:update, :destroy] def update if @project.users << @target_user render(json: { users: @project.users.map { |u| UserDecorat...
rescuedcode/StaffPlan
app/controllers/projects/users_controller.rb
Ruby
mit
709