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
=begin = TeamDecorator - version: 6.002 - author: Leega Decorator for the Team model. Contains all presentation-logic centered methods. =end class TeamDecorator < Draper::Decorator delegate_all include Rails.application.routes.url_helpers # Retrieves the team complete name # with link to team ra...
steveoro/goggles
app/decorators/team_decorator.rb
Ruby
mit
3,732
using System; using System.Runtime.InteropServices; using System.Text; namespace Akkomation.TelldusCore.Utils { internal enum MarshalDirection { In, Out } internal class TelldusUtf8Marshaler : ICustomMarshaler { private static readonly TelldusUtf8Marshaler InputInstance = ...
johanclasson/TellCore
Source/Akkomation.TelldusCore/Utils/TelldusUtf8Marshaler.cs
C#
mit
3,510
<?php namespace MicroCMS\Controller; use Silex\Application; use Symfony\Component\HttpFoundation\Request; use MicroCMS\Domain\Article; use MicroCMS\Domain\Experience; use MicroCMS\Domain\User; use MicroCMS\Domain\Perso; use MicroCMS\Domain\Portfolio; use MicroCMS\Domain\Loisir; use MicroCMS\Form\Type\ArticleType; use...
RudyMrb/SiteCV_Silex
src/Controller/AdminController.php
PHP
mit
16,728
# encoding: utf-8 require 'test_helper' require 'earth_tools' require 'earth_tools/result/time_zone' require 'mock_lookup' ## # Tests for Time Zone lookups. class TimeZoneTest < MiniTest::Unit::TestCase def setup @result = EarthTools.time_zone(40.71417, -74.00639) @result2 = EarthTools.tim...
mckramer/earth_tools
test/time_zone_test.rb
Ruby
mit
1,670
/** * Angular Paginate * @homepage https://github.com/darthwade/angular-paginate * @author Vadym Petrychenko https://github.com/darthwade * @license The MIT License (http://www.opensource.org/licenses/mit-license.php) * @copyright 2014 Vadym Petrychenko */ (function (factory) { if (typeof define === 'function' ...
darthwade/angular-paginate
angular-paginate.js
JavaScript
mit
6,581
<?php namespace InoOicClient\Oic\Authorization\State\Exception; class StateMismatchException extends \RuntimeException { }
Yusuke-KOMIYAMA/aiv
binder/app/Vendor/ivan-novakov/php-openid-connect-client/src/InoOicClient/Oic/Authorization/State/Exception/StateMismatchException.php
PHP
mit
132
<?php umask(0000); // Définit une permission 0777 use Symfony\Component\ClassLoader\ApcClassLoader; use Symfony\Component\HttpFoundation\Request; $loader = require_once __DIR__.'/../app/bootstrap.php.cache'; // Enable APC for autoloading to improve performance. // You should change the ApcClassLoader first argument t...
KartographerZ/web_app
web/app.php
PHP
mit
1,058
<?php namespace PlaygroundDesign\Service; use PlaygroundDesign\Entity\Theme as ThemeEntity; use Laminas\Form\Form; use Laminas\ServiceManager\ServiceManager; use Laminas\Validator\NotEmpty; use Laminas\EventManager\EventManagerAwareTrait; use PlaygroundDesign\Options\ModuleOptions; use DoctrineModule\Validator\NoObje...
gregorybesson/PlaygroundDesign
src/Service/Theme.php
PHP
mit
8,422
var express = require('express') var braintree = require('braintree') var router = express.Router() // eslint-disable-line new-cap var gateway = require('../lib/gateway') var TRANSACTION_SUCCESS_STATUSES = [ braintree.Transaction.Status.Authorizing, braintree.Transaction.Status.Authorized, braintree.Transaction....
alexanderalmstrom/alexanderalmstrom
app/routes/checkout.js
JavaScript
mit
2,862
/** * */ package com.kant.datastructure.stacks; import com.kant.sortingnsearching.MyUtil; /** * http://www.geeksforgeeks.org/the-stock-span-problem/ <br/> * * * The stock span problem is a financial problem where we have a series of n * daily price quotes for a stock and we need to calculate spa...
thekant/myCodeRepo
src/com/kant/datastructure/stacks/StockSpanProblem.java
Java
mit
2,329
<?php namespace Eggbe\Helper; use \Eggbe\Helper\Abstractions\AHelper; class Hash extends AHelper { /** * @param int $length * @return string * @throws \Exception */ public final static function solt($length){ if ((int)$length > 62){ throw new \Exception('Max solt length can not be more that 62 charact...
eggbe/helpers
src/Hash.php
PHP
mit
1,219
//****************************************************************************************************** // FrequencyValue.cs - Gbtc // // Copyright © 2012, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // ...
GridProtectionAlliance/gsf
Source/Libraries/GSF.PhasorProtocols/BPAPDCstream/FrequencyValue.cs
C#
mit
7,224
<ul class="context_menu"> <li><a href="?module=menu">Retour aux menus</a></li> </ul> <form action="?module=menu&action=edit" method="post"> <input type="hidden" name="menuId" value="<?php echo $menu->getId(); ?>" /> <label class="mandatory">Titre</label> <input type="text" name="title" value="<?php echo stripslas...
fabienInizan/menuPlugin
templates/admin/menu/displayEditForm.php
PHP
mit
516
import { Component } from 'react'; import Router from 'next/router'; import io from 'socket.io-client'; import fetch from 'isomorphic-fetch'; import Page from '../../layouts/page.js'; import Slide from '../../components/slide.js'; import Code from '../../components/code.js' import Emojis from '../../components/emojis....
AndyBitz/dme11a-js-presentation
pages/slides/0x05_call_by_reference.js
JavaScript
mit
2,834
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("Ex...
msotiroff/Programming-FUNDAMENTALS
Practice/Lists/EqualSumAfterExtraction/Examlpe/Properties/AssemblyInfo.cs
C#
mit
1,390
/* eslint-disable promise/always-return */ import { runAuthenticatedQuery } from "schema/v2/test/utils" import gql from "lib/gql" describe("Me", () => { describe("ShowsByFollowedArtists", () => { it("returns shows by followed artists", async () => { const query = gql` { me { s...
artsy/metaphysics
src/schema/v2/me/__tests__/showsByFollowedArtists.test.ts
TypeScript
mit
1,640
<?php namespace scriptorium\UserBundle\Entity; use FOS\UserBundle\Entity\User as BaseUser; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Compone...
Komrod/UserScriptorium
src/scriptorium/UserBundle/Entity/User.php
PHP
mit
7,423
package com.jasonlam604.stocktechnicals.indicators; import com.jasonlam604.stocktechnicals.util.NumberFormatter; /** * Moving Average Convergence/Divergence Oscillator */ public class MovingAverageConvergenceDivergence { private static final int CROSSOVER_NONE = 0; private static final int CROSSOVER_POSITIVE = 1...
jasonlam604/StockTechnicals
src/com/jasonlam604/stocktechnicals/indicators/MovingAverageConvergenceDivergence.java
Java
mit
2,631
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person ...
RealityFactory/ogre
RenderSystems/GLES2/src/GLSLES/src/OgreGLSLESProgram.cpp
C++
mit
18,117
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package consolealiensgame; import alieninterfaces.*; import java.lang.reflect.Constructor; /** * * @author guberti */ public clas...
guberti/AliensGame
ConsoleAliensGame/src/consolealiensgame/AlienContainer.java
Java
mit
4,017
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Example = mongoose.model('Example'), _ = require('lodash'), upload = require('./upload'); /** * Find example by id */ exports.example = function(req, res, next, id) { Example.load(id, function(err, example) { ...
dylanlawrence/ango
lib/controllers/example.js
JavaScript
mit
2,149
class ApplicationMailer < ActionMailer::Base helper Common::PageHelper end
jbox-web/media-server
app/mailers/application_mailer.rb
Ruby
mit
77
import { fireShuffleTasks } from 'src/model/ModelBase'; import { REFERENCE } from 'config/types'; import { rebindMatch } from 'shared/rebind'; import { isArray, isString } from 'utils/is'; import { escapeKey } from 'shared/keypaths'; import ExpressionProxy from './ExpressionProxy'; import resolveReference from './resol...
ractivejs/ractive
src/view/resolvers/ReferenceExpressionProxy.js
JavaScript
mit
3,804
package model.question; import model.enums.QuestionTypes; public class ImageQuestion implements QuestionIF { private String imagePath; private char[] answer; private QuestionTypes type; public ImageQuestion(String imagePath, char[] answer, QuestionTypes type){ this.setType(type); this.setImage...
KhaledMuahamed/GameDevelop
Game/src/model/question/ImageQuestion.java
Java
mit
1,428
// Copyright 2015, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package queryservice contains the interface for the service definition // of the Query Service. package queryservice import ( "io" "golang.org/x/net/context...
derekstavis/bluntly
vendor/github.com/youtube/vitess/go/vt/tabletserver/queryservice/queryservice.go
GO
mit
6,381
import os from typing import List, Tuple from raiden.network.blockchain_service import BlockChainService from raiden.network.pathfinding import get_random_service from raiden.network.proxies.service_registry import ServiceRegistry from raiden.network.rpc.client import JSONRPCClient from raiden.network.rpc.smartcontrac...
hackaugusto/raiden
raiden/tests/utils/smartcontracts.py
Python
mit
4,965
using System.Reflection; [assembly: AssemblyTitle("Querify.Nh")]
Lotpath/Querify
src/Querify.Nh/Properties/AssemblyInfo.cs
C#
mit
68
class Network < ApplicationRecord end
NextEpisode/NextEpisode
app/models/network.rb
Ruby
mit
38
using FluentValidation; using MediatR; using Shop.Infrastructure.Data; using System.Linq; using System.Threading.Tasks; using AutoMapper; using Microsoft.EntityFrameworkCore; using Shop.Core.Interfaces; using Shop.Infrastructure.Data.Extensions; namespace Shop.Features.Product { public class ProductEdit { ...
jontansey/.Net-Core-Ecommerce-Base
src/Shop/Features/Product/ProductEdit.cs
C#
mit
4,494
using System; using System.Collections.Concurrent; using System.Threading; namespace Napack.Server { /// <summary> /// Holds statistics for the Napack Framework Server system as a whole. /// </summary> /// <remarks> /// This class and its contents is stored in memory. /// </remarks> public...
GuMiner/napack
server/Definitions/SystemStats/SystemStats.cs
C#
mit
1,627
<?php /* * This file is part of PHPExifTool. * * (c) 2012 Romain Neutron <imprec@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\Microsoft; use JMS\Serializer\Annotation\ExclusionPolic...
romainneutron/PHPExiftool
lib/PHPExiftool/Driver/Tag/Microsoft/MediaType.php
PHP
mit
796
# This file is part of Indico. # Copyright (C) 2002 - 2022 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import os from indico.core import signals from indico.core.db import db from .logger import logger from ...
indico/indico
indico/core/oauth/__init__.py
Python
mit
1,252
<?php /** * Created by PhpStorm. * User: Josh Houghtelin <josh@findsomehelp.com> * Date: 12/19/14 * Time: 6:08 PM */ require __DIR__.'/../vendor/autoload.php'; require __DIR__.'/api_key.php'; $vrp = new \Gueststream\Vrp($api_key); print_r($vrp->isOnline());
Gueststream-Inc/gueststream-php
examples/is_online.php
PHP
mit
265
using FlaUI.Core.AutomationElements.Infrastructure; using FlaUI.Core.Patterns; namespace FlaUI.Core.AutomationElements.PatternElements { /// <summary> /// An element which supports the <see cref="ISelectionItemPattern" />. /// </summary> public class SelectionItemAutomationElement : AutomationElement ...
maxinfet/FlaUI
src/FlaUI.Core/AutomationElements/PatternElements/SelectionItemAutomationElement.cs
C#
mit
2,132
#ifndef __SEQ_HPP__ #define __SEQ_HPP__ #include <string> #include <vector> #include <memory> #include <iostream> class SeqNode; typedef std::shared_ptr<SeqNode> SeqNodeSP; class SeqNode { public: enum E_CallType { E_UNKNOWN, E_SYNC, E_ASYNC, E_ASYNC_WAIT }; SeqNode(); void printTree(std::ostream...
thuleqaid/boost_study
demo-xml/include/seq.hpp
C++
mit
1,305
<?php class Upload { private $error = array(); private $name; private $ext; private $orgWidth; private $orgHeight; private $width; private $height; private $maxWidth = 0; private $maxHeight = 0; private $prefix; private $suffix; private $uploadedFile; private $sourc...
MacXGaming/PHP-Uploader
Upload.php
PHP
mit
6,087
using System; using System.Collections.Generic; namespace RefinId.Specs { public class TestStorage : ILongIdStorage { private List<long> _values; public TestStorage(params long[] values) { _values = new List<long>(values); } public List<long> Values { get { return _values; } } public List<l...
OlegAxenow/refinid
Refinid.Specs/TestStorage.cs
C#
mit
737
using SMSServices.Models; using System; using System.Collections.Generic; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Data.Entity.Validation; using System.Data.SqlClient; using System.Linq; using System.Net; using System.Net.Http; using System.Text; using System.Web.Http; using WebA...
zraees/sms-project
SMSServices/SMSServices/Controllers/TeachersSubjectsController.cs
C#
mit
9,436
// Week 5 - Task 7 import java.io.PrintWriter; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import java.io.*; public class TCPSerServer { private static ServerSocket servSock; private static final int PORT = 1...
kieranhogan13/Java
Distributed Systems/Labs/Week 7_Lab_Review/Week_3_T7/TCPSerServer.java
Java
mit
1,769
<?php namespace Easybill\ZUGFeRD211\Model; use JMS\Serializer\Annotation\SerializedName; use JMS\Serializer\Annotation\Type; use JMS\Serializer\Annotation\XmlElement; class DocumentLineDocument { /** * @Type("string") * @XmlElement(cdata = false, namespace = "urn:un:unece:uncefact:data:standard:Reusabl...
easybill/zugferd-php
src/zugferd211/Model/DocumentLineDocument.php
PHP
mit
584
#include "nofx_ofSetOrientation.h" #include "ofAppRunner.h" namespace nofx { namespace AppRunner { NAN_METHOD(nofx_ofSetOrientation) { ofSetOrientation((ofOrientation) args[0]->Uint32Value()); NanReturnUndefined(); } // !nofx_ofSetOrientation ...
sepehr-laal/nofx
nofx/nofx_ofAppRunner/nofx_ofSetOrientation.cc
C++
mit
368
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("6....
tanyta78/ProgramingFundamentals
05Dictionaries/LabDictionariesLambdaLINQ/6. Fold and Sum/Properties/AssemblyInfo.cs
C#
mit
1,406
<html> <title>代客訂位訂餐</title> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script> </head> <body> <div><form> 姓名 : <input type="text" id="name"> <br> 電話:<input type="text" id="phonenum"> <br> 日期:<select name="date_" id="date_"> <?php for($i=0; $i<7; $i++){ ...
floydxiu/Restaurant-reservation-system
application/views/seat_reservation_by_manager.php
PHP
mit
4,390
/** * Created by zhang on 16/5/19. */ $.myjq = function () { alert("hello my jQuery") }; //js的扩展 $.fn.myjq=function(){ $(this).text("hello") };
qiang437587687/pythonBrother
jQueryFirst/jQuery扩展和noConflict/myjQuery.js
JavaScript
mit
161
// Generated by CoffeeScript 1.10.0 var Graphics; Graphics = (function() { function Graphics(ctx, viewport1) { this.ctx = ctx; this.viewport = viewport1; this.transform = { x: 0, y: 0, rotation: 0, scale: 1 }; } Graphics.prototype.translate = function(dx, dy) { this.t...
aziis98/node-canvas-graphics-wrapper
graphics.js
JavaScript
mit
2,626
<?php // Autoload the library using Composer, if you're using a framework you shouldn't need to do this!! require_once '../vendor/autoload.php'; use Ballen\Dodns\CredentialManager; use Ballen\Dodns\Dodns; /** * Example of deleting a domain */ // We now create an instance of the DigitalOcean DNS client passi...
bobsta63/dodns
examples/delete_a_domain.php
PHP
mit
886
<?php /* Plugin Name: FramePress Plugin URI: http://framepress.co Description: Boost your plugins with extra power! Author: Ivan Lansky (@perecedero) Author URI: http://about.me/ivan.lansky */ //init framework require 'bootstrap.php';
perecedero/FramePress
main.php
PHP
mit
245
using System; using DogeNews.Web.Mvp.UserControls.ArticleComments.EventArguments; using WebFormsMvp; namespace DogeNews.Web.Mvp.UserControls.ArticleComments { public interface IArticleCommentsView : IView<ArticleCommentsViewModel> { event EventHandler<ArticleCommetnsPageLoadEventArgs> PageLoad; ...
SuchTeam-NoJoro-MuchSad/Doge-News
DogeNews/Src/Web/DogeNews.Web.Mvp/UserControls/ArticleComments/IArticleCommentsView.cs
C#
mit
390
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Latihan extends CI_Controller{ public function __construct(){ parent::__construct(); //Codeigniter : Write Less Do More } function index(){ $this->load->view('mhs/latihan'); // $this->load->view('sample'); ...
aisy/polieditor
application/controllers/Latihan.php
PHP
mit
334
"use strict"; var EventEmitter = require ('events'); module.exports = new EventEmitter ();
alexandruradovici/messengertrivia
source/bus.js
JavaScript
mit
92
'use strict' const tap = require('tap') const ActiveDirectory = require('../index') const config = require('./config') const serverFactory = require('./mockServer') const settings = require('./settings').getGroupMembershipForUser tap.beforeEach((done, t) => { serverFactory(function (err, server) { if (err) retu...
jsumners/node-activedirectory
test/getgroupmembershipforuser.test.js
JavaScript
mit
2,662
package com.github.lg198.codefray.jfx; import com.github.lg198.codefray.api.game.Team; import com.github.lg198.codefray.game.GameEndReason; import com.github.lg198.codefray.game.GameStatistics; import com.github.lg198.codefray.util.TimeFormatter; import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx...
lg198/CodeFray
src/com/github/lg198/codefray/jfx/GameResultGui.java
Java
mit
3,347
<?php namespace Flatmate\UtilitiesBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * Consumption * * @ORM\Table() * @ORM\Entity * @ORM\HasLifecycleCallbacks() */ class Consumption { /** * @var integer * * @ORM\Column(name="id", type="...
TIIUNDER/flatmate
src/Flatmate/UtilitiesBundle/Entity/Consumption.php
PHP
mit
4,174
<? include('dbconnect.php'); $headerOptions = array( "title" => "Edit Stats" ); require_once "header.php"; ?> <?php $tn = $_GET['tn']; $played = $_GET['played']; $wins = $_GET['wins']; $losses = $_GET['losses']; $draws = $_GET['draws']; $ncs = $_GET['ncs']; $sql = "SELECT team_id FROM Te...
anshaik/recsports
webapp/advproj/editstats.php
PHP
mit
1,187
version https://git-lfs.github.com/spec/v1 oid sha256:b1b66ad7cf63a081650856aed61fbfdf1b6b511e47c622989e9927e504424a5d size 2493
yogeshsaroya/new-cdnjs
ajax/libs/jquery.lazyloadxt/0.8.12/jquery.lazyloadxt.extra.min.js
JavaScript
mit
129
#include "ErrorCodes.h" std::error_code make_error_code(SimBlockErrc ec) { return {static_cast<int>(ec), simblockErrCategory}; }
josokw/Fuzzy
libDySySim/ErrorCodes.cpp
C++
mit
133
<?php /* Safe sample input : backticks interpretation, reading the file /tmp/tainted.txt sanitize : cast in float construction : use of sprintf via a %d with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distri...
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_98/safe/CWE_98__backticks__CAST-cast_float__include_file_id-sprintf_%d_simple_quote.php
PHP
mit
1,212
<?php namespace Oriancci\Query; class Insert extends Built { public function buildQuery() { // INSERT INTO $sql = 'INSERT INTO '; $sql .= $this->buildTableName(INSERT_INTO); // SET $sql .= ' SET '; $sql .= $this->buildSet(SET); return $sql; } ...
bashaus/oriancci
src/Oriancci/Query/Insert.php
PHP
mit
322
package pl.yourempire.api.event; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Map; public class Event { private static Map<Class<Event>, ArrayList<ListenerCaller>> listenerMap = new HashMap<>(); public stat...
YourEmpire/YourEmpire
Your Empire API/src/main/java/pl/yourempire/api/event/Event.java
Java
mit
1,714
tinyMCE.init({ mode : 'textareas', theme : "advanced", theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pastewo...
thoas/i386
src/milkshape/media/tiny_mce/init.js
JavaScript
mit
502
package org.fluentjava.iwant.plannerapi; public interface ResourcePool { boolean hasFreeResources(); Resource acquire(); void release(Resource resource); }
wipu/iwant
essential/iwant-planner-api/src/main/java/org/fluentjava/iwant/plannerapi/ResourcePool.java
Java
mit
164
#ifndef ENDOCAST_EXTRACTOR_HPP #define ENDOCAST_EXTRACTOR_HPP 1 #include <mi/VolumeData.hpp> class EndocastExtractor { private: public: EndocastExtractor ( void ) ; ~EndocastExtractor ( void ) ; bool extract ( mi::VolumeData<float>& distData, mi::VolumeData<int>& labelData, const doub...
tmichi/xendocast
xendocast/EndocastExtractor.hpp
C++
mit
579
import { SplashEffect } from "./effect.js"; import { Linear } from "../interpolation.js"; export class TranslateFromPosition extends SplashEffect { constructor(element, options) { super(element); options = options || {}; this.x = options.x || 0; this.y = options.y || 0; // Can be whatever, but the effect...
magnontobi/splasher.js
src/js/effects/translateFromPosition.js
JavaScript
mit
1,226
// The MIT License (MIT) // // Copyright (c) Andrew Armstrong/FacticiusVir 2020 // // 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 r...
FacticiusVir/SharpVk
src/SharpVk/FramebufferCreateInfo.gen.cs
C#
mit
4,531
namespace Sorting { using System; using System.Collections.Generic; using Constants; /// <summary> /// Define class for selection sort algorithm and its implementation /// </summary> /// <typeparam name="T">Type of the elements to be sorted</typeparam> /// <see cref="https://en.wikipe...
DimitarSD/Telerik-Academy
01. Programming/05. Data Structures and Algorithms [C#]/11. Sorting Algorithms/Sorting/SelectionSorter.cs
C#
mit
1,456
# encoding: utf-8 module Axiom class Relation module Operation # A mixin for Binary relations module Binary include Axiom::Operation::Binary # Hook called when module is included # # @param [Module] descendant # the module or class including Binary ...
solnic/axiom
lib/axiom/relation/operation/binary.rb
Ruby
mit
1,923
<?php /* /* Safe sample input : use exec to execute the script /tmp/tainted.php and store the output in $tainted SANITIZE : uses indirect reference construction : prepared query and no right verification */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to...
designsecurity/progpilot
projects/tests/tests/vulntestsuite/CWE_862_SQL__exec__Indirect_reference__prepared_query-no_right_verification.php
PHP
mit
2,134
package com.myconnector.client.domain; import java.util.List; import com.google.gwt.user.client.rpc.IsSerializable; import com.myconnector.client.domain.interfaces.ITodoContext; import com.myconnector.client.domain.interfaces.ITodoItem; import com.myconnector.client.domain.interfaces.ITodoList; public class TodoList...
nileshk/truedolist-java
src/main/java/com/myconnector/client/domain/TodoListClient.java
Java
mit
1,476
/** * Wheel, copyright (c) 2019 - present by Arno van der Vegt * Distributed under an MIT license: https://arnovandervegt.github.io/wheel/license.txt **/ const File = require('./File'); exports.FileDetail = class extends File.File { constructor(opts) { opts.className = 'file detail'; super(opts);...
ArnoVanDerVegt/wheel
js/frontend/lib/components/files/FileDetail.js
JavaScript
mit
2,137
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
TeamSPoon/logicmoo_workspace
packs_web/swish/web/node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModelDecorations.js
JavaScript
mit
6,682
<?php namespace Code200\ImageKing\Classes; use Cms\Helpers\File; use Code200\ImageKing\Classes\Exceptions\ExtensionNotAllowedException; use Code200\Imageking\models\Settings; use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\URL; class ImageService { /** * @var string */ private $ht...
webeks/octobercms-imageking
classes/ImageService.php
PHP
mit
8,124
const _transform = require('lodash/transform'); function MatchTransformer(match) { if( !(this instanceof MatchTransformer) ) { return this.transform(new MatchTransformer(match)); } if( typeof match === 'string' ) { // Escape string match = match.replace(/[.*+?^${}()|[\]\\]/g, '\\$&...
bubobox/parse-js
src/transformers/match.js
JavaScript
mit
696
import ProgressBar from "progress"; import padEnd from "lodash/padEnd"; class ProgressBarController { constructor() { this.bar = null; } init(total) { if (this.bar) { this.terminate(); } // Intentionally a noop because node-progress doesn't work well in non-TTY // environments if ...
onigoetz/lerna-hg
src/progressBar.js
JavaScript
mit
1,365
var commons = require('../commons') var frisby = require('frisby'); var FormData = require('form-data'); frisby.create('Get file') .get(commons.host+'/file/2134354/zgzhrthztrh/sgeh' ) .after(function(err, res, body) { expect(res.request.href.match(/errcode=404/)).not.toBeNull() }) .toss()
bodji/test2
test/file/non_existing_spec.js
JavaScript
mit
312
<?php namespace Frontend\PublicBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that loads and ma...
OliverMartin/Travel
src/Frontend/PublicBundle/DependencyInjection/FrontendPublicExtension.php
PHP
mit
887
package command import ( "fmt" "os" "path/filepath" "time" "github.com/kemokemo/gckdir/lib" "github.com/skratchdot/open-golang/open" "github.com/urfave/cli" ) var ( // UsageVerify is Usage of verify subcommand for cli UsageVerify = "Verifies the structure and each hash value of files." ) // CmdVerify verif...
KemoKemo/gckdir
command/verify.go
GO
mit
2,586
/// <reference path="Transform3D.ts" /> namespace zen { export class GameObject extends Transform3D { public name:string = "GameObject"; public tag:string = ""; public layer:string = ""; private _guid:string = zen.guid.create(); public get guid() { return t...
shawn0326/zen
src/GameObject.ts
TypeScript
mit
1,986
<?php get_template_part('templates/front', 'page'); ?>
miso999/nabytoktt
front-page.php
PHP
mit
59
module.exports = function(grunt) { // load all grunt tasks require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); grunt.initConfig({ // watch for changes and trigger compass, jshint, uglify and livereload watch: { js: { files: ['jquery.accrue.js...
jpederson/Accrue.js
gruntfile.js
JavaScript
mit
1,376
require "lita" Lita.load_locales Dir[File.expand_path( File.join("..", "..", "locales", "*.yml"), __FILE__ )] require "lita/handlers/urban"
taylorlapeyre/lita-urban
lib/lita-urban.rb
Ruby
mit
144
using UnityEngine; using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using System.IO; using System.Text; public class KinectManager : MonoBehaviour { public enum Smoothing : int { None, Default, Medium, Aggressive } // Public Bool to determine how m...
Acidburn0zzz/Corridors
Assets/KinectScripts/KinectManager.cs
C#
mit
63,304
<?php namespace Lam\MdlBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Lam\MdlBundle\Entity\FormationInformatique * @ORM\Table() * @ORM\Entity(repositoryClass="Lam\MdlBundle\Entity\FormationInformatiqueRepository") */ class Formationinformatique { /** * @var integer $id * * @ORM\Column(n...
gody77/SymfonyMDL
src/Lam/MdlBundle/Entity/FormationInformatique.php
PHP
mit
3,232
package com.hackathon.hackathon2014.activity; import android.app.Activity; import android.app.Fragment; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import an...
dst-hackathon/socialradar-android
hackathon2014/app/src/main/java/com/hackathon/hackathon2014/activity/QuestionActivity.java
Java
mit
4,070
package net.tqft.iterables.interfaces; public interface Transformer<S, T> { public abstract T evaluate(S s); }
craigfreilly/masters-project-submission
src/KnotTheory/JavaKh-v2/src/net/tqft/iterables/interfaces/Transformer.java
Java
mit
126
require "capybarel/dsl/elements" require "capybarel/dsl/javascript" require "capybarel/dsl/from_yaml" module Capybarel module DSL module All include Capybarel::DSL::Elements include Capybarel::DSL::JavaScript include Capybarel::DSL::FromYaml end end end
fantactuka/capybarel
lib/capybarel/dsl.rb
Ruby
mit
285
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import update from 'immutability-helper'; class ListItemBullet extends Component { render() { let cssClasses = `listbullet`; const bulletStyle = { border: `5px solid ${this.props.color}`, backgroundColor:...
tmt514/se101f17
website/src/App.js
JavaScript
mit
3,281
using System; using System.IO; namespace Pulse.Core { /// <summary> /// НЕ потокобезопасный! /// </summary> public sealed class StreamSegment : Stream { private long _offset, _length; public readonly Stream BaseStream; public StreamSegment(Stream stream, long offset, long...
kidaa/Pulse
Pulse.Core/Components/StreamSegment.cs
C#
mit
3,012
import Ember from 'ember'; export default Ember.Component.extend({ tagName: '', didInsertElement: function() { this.startPoppover(); }, willDestroyElement: function() { this.dismissPoppover(); }, startPoppover: function() { var options = this.getPoppoverOptions(); Ember.$(function() { ...
iorrah/you-rockstar
app/components/resume/yr-download-tips.js
JavaScript
mit
806
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Str; class TagsTableSeeder extends Seeder { /** * Run the database seeding. */ public function run() { DB::table('tags')->truncate(); DB::table('tags')->insert([ [ 'name' => 'Qnique', ...
madsynn/LaraMaker
.temp/seeds/TagsTableSeeder.php
PHP
mit
4,116
/* * SonarLint for Visual Studio * Copyright (C) 2016-2021 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version ...
SonarSource-VisualStudio/sonarlint-visualstudio
src/Integration.Vsix/Delegates/SonarAnalyzerConnectedWorkflow.cs
C#
mit
2,486
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * SoundcloudSearch Schema */ var SoundcloudSearchSchema = new Schema({ // SoundcloudSearch model fields // ... search: { type: String, required: 'There must be a search term', trim: true }, ...
bhops/Music
app/models/soundcloud-search.server.model.js
JavaScript
mit
463
import random # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): _largesize = 300 def __init__(self, head): self.head = head self.lsize = 0 while head.next: h...
daicang/Leetcode-solutions
382-linked-list-random-node.py
Python
mit
1,372
package db import ( "io/ioutil" "os" . "fmt" "strings" . "github.com/yak-labs/chirp-lang" "github.com/yak-labs/smilax-web/table/levi" ) /* table get Site Table Row -> []Value table set Site Table Row []Value table match Site Table RowPattern ValuePattern -> []{row value} */ var Lev = levi.New("leveldb.dat")...
yak-labs/smilax-web
table/table.go
GO
mit
3,563
package eu.cyfronoid.core.configuration.evaluator; import java.util.ArrayDeque; public class Stack extends ArrayDeque<Double> { private static final long serialVersionUID = 1L; @Override public void push(Double v) { super.push(v); } @Override public Double pop() { ...
widmofazowe/cyfronoid-core
src/eu/cyfronoid/core/configuration/evaluator/Stack.java
Java
mit
694
// * ———————————————————————————————————————————————————————— * // // * cli upload // * uploads image by providing a link by running: // * enduro upload http://www.imgur.com/asd.png // * ———————————————————————————————————————————————————————— * // var cli_upload = function () {} // vendor dependencies var Promise = ...
dmourato/mastercv
libs/cli_tools/cli_upload.js
JavaScript
mit
1,479
import React from "react" import Img from "gatsby-image" import { StaticQuery, graphql } from "gatsby" import html5 from "../images/html5.svg" import js from "../images/javascript.svg" import jQuery from "../images/jquery.svg" import php from "../images/php.svg" import python from "../images/python.svg" import css3 fro...
ajspotts/ajspotts.github.io
src/components/about.js
JavaScript
mit
9,133
var debug = require('debug')('harmonyhubjs:client:login:hub') var Client = require('node-xmpp-client') var Q = require('q') var util = require('../util') /** PrivateFunction: getIdentity * Logs in to a Harmony hub as a guest and uses the userAuthToken from logitech's * web service to retrieve an identity token. * ...
swissmanu/harmonyhubjs-client
lib/login/hub.js
JavaScript
mit
4,310
from players.player import player from auxiliar.aux_plot import * import random from collections import deque import sys sys.path.append('..') import tensorblock as tb import numpy as np import tensorflow as tf # PLAYER REINFORCE RNN class player_reinforce_rnn_2(player): # __INIT__ def __init__(self): ...
NiloFreitas/Deep-Reinforcement-Learning
reinforcement/players/player_reinforce_rnn_2.py
Python
mit
4,361
/* * This file is part of SpongeAPI, 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 "Soft...
gabizou/SpongeAPI
src/main/java/org/spongepowered/api/text/Texts.java
Java
mit
19,598
module SupportEngine class SupportType < ActiveRecord::Base attr_accessible :name, :email has_many :tickets, inverse_of: :support_type # TODO: Detect background job def notify!(ticket) SupportEngine::TicketMailer.notify(self, ticket).deliver end end end
orbitalimpact/SupportEngine
app/models/support_engine/support_type.rb
Ruby
mit
286