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 |
|---|---|---|---|---|---|
<?php
namespace AppBundle\Repository;
use Doctrine\ORM\EntityRepository;
/**
* ProductRepository
*
* This class was generated by the PhpStorm "Php Annotations" Plugin. Add your own custom
* repository methods below.
*/
class UserRepository extends EntityRepository
{
}
| YX11/timiya | src/AppBundle/Repository/UserRepository.php | PHP | mit | 277 |
import { combineReducers } from 'redux';
import { reducer as form } from 'redux-form';
import { list } from './list';
import { draw } from './draw';
const reducers = combineReducers({ list, draw, form });
export default reducers;
| ansonpellissier/gordon-shuffle-react | src/reducers/index.js | JavaScript | mit | 233 |
'use strict';
// Init the application configuration module for AngularJS application
var ApplicationConfiguration = (function() {
// Init module configuration options
var applicationModuleName = 'angleApp';
// var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ng... | andreilaza/alt-be-back-server | public/dist/application.js | JavaScript | mit | 50,852 |
/*!
* stepviz 0.1.0 (30-05-2016)
* https://github.com/suhaibkhan/stepviz
* MIT licensed
* Copyright (C) 2016 Suhaib Khan, http://suhaibkhan.github.io
*/
(function() {
'use strict';
// check for dependencies
if (typeof window.d3 === 'undefined') {
throw 'd3 library not found.';
}
// init namespac... | suhaibkhan/stepviz | dist/stepviz.js | JavaScript | mit | 30,623 |
'use strict';
module.exports = function (req, res) {
res.statusCode = 401;
res.setHeader('X-Frame-Options', 'SAMEORIGIN');
res.setHeader('X-Xss-Protection', '1; mode=block');
res.setHeader('X-Content-Type-Options', 'nosniff');
res.setHeader('Content-Type', 'application/json; charset=utf-8');
res.setHeader... | regalii/regaliator_node | test/tapes/account/failed_info.js | JavaScript | mit | 708 |
<?php
require_once('core/action/Action.php');
require_once('core/action/ActionResponse_Default.php');
require_once('model/entities/User.php');
require_once('model/containers/AccessLevelContainer.php');
class Action_user_displayAddForm implements Action
{
public function run(HttpRequest $httpRequest)
{
$actionResp... | fabienInizan/WebKernel | modules/user/Action_user_displayAddForm.php | PHP | mit | 957 |
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
import Card from '@material-ui/core/Card';
import CardContent from '@material-ui/core/CardContent';
import CardHeader from '@material-ui/core/CardHeader';
import CardActions from '@m... | meedan/check-web | src/app/components/user/UserEmail.js | JavaScript | mit | 3,974 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ro_RO" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About GeyserCoin</source>
<translation>Despre GeyserCoin</translation>
</message>
<message>
... | geysercoin/geysercoin | src/qt/locale/bitcoin_ro_RO.ts | TypeScript | mit | 130,407 |
/* eslint no-unused-vars: 0 */
import { mount, shallow } from 'avoriaz'
import should from 'should'
import sinon from 'sinon'
import { pSwitchbox } from 'prpllnt'
describe('switchbox.vue', () => {
it('renders a wrapper div with class p-input-group', () => {
const value = false
const component = shallow(pSwit... | pearofducks/propellant | test/switchbox.spec.js | JavaScript | mit | 2,482 |
<?php
/*
* This file is part of the Sulu CMS.
*
* (c) MASSIVE ART WebServices GmbH
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Sulu\Bundle\Sales\OrderBundle\Cart;
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Componen... | sulu-io/SuluSalesOrderBundle | Cart/CartManager.php | PHP | mit | 23,396 |
<?php
namespace YourApp\App\Newsletter;
use Welp\MailchimpBundle\Provider\ProviderInterface;
use Welp\MailchimpBundle\Subscriber\Subscriber;
use YourApp\Model\User\UserRepository;
use YourApp\Model\User\User;
class ExampleSubscriberProvider implements ProviderInterface
{
// these tags should match the one you ad... | welpdev/mailchimp-bundle | src/Provider/ExampleSubscriberProvider.php | PHP | mit | 1,790 |
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface HeartBeatI extends Remote {
public void sendHeartBeat() throws RemoteException;
}
| jpavelw/SWEN-755 | HeartBeatRedundancy/HeartBeatI.java | Java | mit | 161 |
<?php
App::uses('AppController', 'Controller');
App::uses('CakeEmail', 'Network/Email');
App::uses('CakeTime', 'Utility');
class CategoriesController extends AppController {
public $uses = array(
'SpeedyCake',
'Page',
'User',
'Article',
'Articlefield',
'File',
'Categorie',
'Articlescategorie'
);
... | Mr-Robota/speedy-cake-cms | Controller/CategoriesController.php | PHP | mit | 5,139 |
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
import React from 'react';
import {
MappingProvider,
MappingProviderProps,
} from '../mapping/mappingProvider.component';
import {
ThemeProvider,
ThemePro... | akveo/react-native-ui-kitten | src/components/theme/style/styleProvider.component.tsx | TypeScript | mit | 796 |
using System;
using System.Linq;
using AdventOfCodeLibrary;
using AdventOfCodeLibrary.FileImport;
using AdventOfCodeLibrary.Frequencies;
namespace Day6
{
class Program
{
static void Main(string[] args)
{
Part1();
Console.WriteLine();
Part2();
Co... | codemonkey047/AdventOfCode | Day6/Day6/Program.cs | C# | mit | 1,471 |
# frozen_string_literal: true
module Analytics
class SubjectController < AnalyticsController
# rubocop:disable Metrics/PerceivedComplexity
# rubocop:disable Metrics/MethodLength
# rubocop:disable Metrics/CyclomaticComplexity
# rubocop:disable Metrics/AbcSize
def index
@subject_series = if @... | MindLeaps/tracker | app/controllers/analytics/subject_controller.rb | Ruby | mit | 3,998 |
<?php
namespace FMI\ImportBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Prices
*
* @ORM\Table(name="prices")
* @ORM\Entity(repositoryClass="FMI\ImportBundle\Repository\PricesRepository")
*/
class Prices
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* ... | LAYLSAYF/IMPORT | src/FMI/ImportBundle/Entity/Prices.php | PHP | mit | 1,900 |
// èÌof[^ð\¦·é
#include "pxcsensemanager.h"
#include "pxchandconfiguration.h"
#include <opencv2\opencv.hpp>
class RealSenseApp
{
public:
~RealSenseApp()
{
if ( senseManager != 0 ){
senseManager->Release();
}
}
void initilize()
{
// SenseManagerð... | RealSense-Book/RealSense-Book-CPP | CH5-1_3/RealSenseSample/main.cpp | C++ | mit | 6,752 |
package alec_wam.CrystalMod.entities.minions.worker;
import net.minecraft.entity.EntityLiving;
import net.minecraft.pathfinding.Path;
import net.minecraft.pathfinding.PathNavigate;
import net.minecraft.pathfinding.WalkNodeProcessor;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.ChunkCache;... | Alec-WAM/CrystalMod | src/main/java/alec_wam/CrystalMod/entities/minions/worker/PathFinderWorker.java | Java | mit | 1,491 |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto
package google_devtools_clouderrorreporting_v1beta1
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "go.pedge.io/pb/go/google/api"
import goo... | peter-edge/pb | go/google/devtools/clouderrorreporting/v1beta1/report_errors_service.pb.go | GO | mit | 7,473 |
#
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
class Hhvm488 < Formula
desc "JIT compiler and runtime for the Hack language"
homepage "http://hhvm.com/"
head "ht... | hhvm/homebrew-hhvm | Formula/hhvm-4.88.rb | Ruby | mit | 9,629 |
# frozen_string_literal: true
FactoryBot.define do
factory :access_procedure, class: "Renalware::Accesses::Procedure" do
type { create(:access_type) }
side { :right }
performed_on { Time.zone.today }
end
end
| airslie/renalware-core | spec/factories/accesses/procedures.rb | Ruby | mit | 225 |
module.exports = function (grunt) {
"use strict";
require('matchdep').filterDev("grunt-*").forEach(grunt.loadNpmTasks);
//grunt.option('verbose', true);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
compass: {
prod: {
options: {
... | dbondus/code-samples | js/2015-chat-application/Gruntfile.js | JavaScript | mit | 3,745 |
const fs = require('fs');
const de = require('./locale/de.json');
const en = require('./locale/en.json');
const esMX = require('./locale/esMX.json');
const es = require('./locale/es.json');
const fr = require('./locale/fr.json');
const it = require('./locale/it.json');
const ja = require('./locale/ja.json');
const ko ... | DestinyItemManager/DIM | src/build-browsercheck-utils.js | JavaScript | mit | 1,744 |
module Omnitest
class Psychic
module Execution
class TokenStrategy < DefaultStrategy
def execute(*extra_args)
template = File.read(absolute_file)
# Default token pattern/replacement (used by php-opencloud) should be configurable
token_handler = Tokens::RegexpTokenHandle... | omnitest/psychic | lib/omnitest/psychic/execution/token_strategy.rb | Ruby | mit | 2,030 |
/*
html2canvas 0.5.0-alpha2 <http://html2canvas.hertzen.com>
Copyright (c) 2015 Niklas von Hertzen
Released under MIT License
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof windo... | ao-dexter/html2canvas | dist/html2canvas.js | JavaScript | mit | 154,883 |
<?php
namespace Mtls\ProjectBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* MessageRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class MessageRepository extends EntityRepository
{
public function findOrderedByDate()
{
return $this->g... | tolgap/Project56 | src/Mtls/ProjectBundle/Entity/MessageRepository.php | PHP | mit | 462 |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace VoteApp.Models.AccountViewModels
{
public class RegisterViewModel
{
[Required]
[EmailAddress]
[Display(Name = "Email")]
public... | GOlssn/VoteApp | Models/AccountViewModels/RegisterViewModel.cs | C# | mit | 861 |
// stdafx.cpp : source file that includes just the standard includes
// AllyTester.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
| AndrewAMD/AllyInvestZorroPlugin | AllyTester/stdafx.cpp | C++ | mit | 289 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Windows.Forms;
using KojtoCAD.KojtoCAD3D.UtilityClasses;
#if !bcad
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoC... | kojtoLtd/KojtoCAD | KojtoCAD.2012/KojtoCAD3D/Placement.cs | C# | mit | 138,960 |
print ("Hello python world! My first python script!!")
print ("feeling excited!!") | balajithangamani/LearnPy | hello.py | Python | mit | 82 |
<?php
/**
* キーと値の取得サンプル
*/
//キーの取得(連想配列)
//インデックスはいてるでも使用できますが
//あまり意味がないため割愛します。
$array_associat = array(
'blue' => '空',
'yellow' => 'バナナ',
'red' => '血液'
);
$keys = array_keys($array_associat);
var_dump($keys);
//値の取得(連想配列)
//インデックスはいてるでも使用できますが
//あまり意味がないため割愛します。
$values = array_values($... | Kaoru-1127/php | fuel/app/views/array/array_sample5.php | PHP | mit | 568 |
<?php
namespace Application\Modules\Rest;
use \Phalcon\Mvc\Router\Group;
/**
* Routes Rest V1. Api router component
*
* @package Application\Modules\Rest
* @subpackage Routes
* @since PHP >=5.6
* @version 1.0
* @author Stanislav WEB | Lugansk <stanisov@gmail.com>
* @copyright Stanislav WEB
* @f... | stanislav-web/Phalcon-development | Application/Modules/Rest/Routes.php | PHP | mit | 1,560 |
package iso20022
// Choice between a standard code or proprietary code to specify a rate type.
type RateType49Choice struct {
// Standard code to specify the type of gross dividend rate.
Code *GrossDividendRateType2Code `xml:"Cd"`
// Proprietary identification of the type of gross dividend rate.
Proprietary *Gen... | fgrid/iso20022 | RateType49Choice.go | GO | mit | 601 |
# -*- coding: utf-8 -*-
require "spec_helper"
require "date"
describe Date do
describe "Meiji period to Heisei period" do
it "should parse gregorian calendar date correctly" do
Date.parse("2012-02-15").should == Date.new(2012, 2, 15)
Date.parse("2012/02/15").should == Date.new(2012, 2, 15)
end
... | meltedice/wareki | spec/wareki/default_date_spec.rb | Ruby | mit | 2,538 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sjl.mlbapp.gui.util;
import java.awt.GridBagConstraints;
import java.awt.Insets;
/**
*
* @author samlevin
*/
public class GBConstrManager extends GridBagConstraints {
public GBConstrManager... | levinsamuel/rand | java/MLB2012App/src/main/java/sjl/mlbapp/gui/util/GBConstrManager.java | Java | mit | 2,162 |
module Confluence
class BlogEntry < Record
extend Findable
record_attr_accessor :id => :entry_id
record_attr_accessor :space
record_attr_accessor :title, :content
record_attr_accessor :publishDate
record_attr_accessor :url
def store
# reinitialize blog entry after storing it
... | sspinc/confluencer | lib/confluence/blog_entry.rb | Ruby | mit | 737 |
<?php
/**
* Emy Itegbe
* CMPE 207
* 008740953
*
**/
?>
<!DOCTYPE html>
<html>
<head>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bo... | Budweiser-CMPE207/FileSharingSystem_CMPE207 | Emy Itegbe/Php/webclient.php | PHP | mit | 2,891 |
using Microsoft.Azure.Mobile.Server;
namespace Miles.People.MobileAppService.DataObjects
{
public class Item : EntityData
{
public string Text { get; set; }
public string Description { get; set; }
}
} | pjsamuel3/xPlatformDotNet | app/Miles.People/Miles.People/Miles.People.MobileAppService/DataObjects/Item.cs | C# | mit | 232 |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2021 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <httpserver.h>
#include <index/blockfilterindex.h>
#include <index/coinstatsi... | GroestlCoin/bitcoin | src/rpc/misc.cpp | C++ | mit | 36,710 |
<?php
namespace Milax\Mconsole\Models;
use Illuminate\Database\Eloquent\Model;
class Upload extends Model
{
use \HasTags;
protected $fillable = ['type', 'path', 'preset_id', 'filename', 'copies', 'related_id', 'related_class', 'group', 'order', 'unique', 'language_id', 'title', 'description', 'link'];
... | misterpaladin/mconsole | src/Milax/Mconsole/Models/Upload.php | PHP | mit | 3,675 |
class Station < ActiveRecord::Base
belongs_to :forecast
# validates :pws_id, uniqueness: true
end
| jackzampolin/my_weather_map | app/models/station.rb | Ruby | mit | 102 |
package com.ngll_prototype;
import android.app.ProgressDialog;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Rec... | GIOT-POC/NGLL-APP | app/src/main/java/com/ngll_prototype/MainActivity.java | Java | mit | 20,066 |
#region File Header
// The MIT License (MIT)
//
// Copyright (c) 2016 Stefan Stolz
//
// 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 ... | StefanStolz/EmbeddedDataVisualStudioExtension | EmbeddedData/EmbeddedData/Properties/AssemblyInfo.cs | C# | mit | 2,427 |
"""
Last: 5069
Script with simple UI for creating gaplines data
Run: python WordClassDM.py --index 0
Controls:
setting gaplines - click and drag
saving gaplines - 's' key
reseting gaplines - 'r' key
skip to next img - 'n' key
delete last line - 'd' key
"""
import cv2
import os
import numpy as... | Breta01/handwriting-ocr | src/data/data_creation/WordClassDM.py | Python | mit | 6,492 |
class FixColumnVerificationTypeVerifications < ActiveRecord::Migration
def self.up
change_column :verifications, :verification_type, "enum('idchecker', 'directid', 'netverify', 'authenticid')"
end
def self.down
end
end
| malahinisolutions/verify | db/migrate/20151008092718_fix_column_verification_type_verifications.rb | Ruby | mit | 232 |
package tilat;
import java.awt.Graphics2D;
import java.awt.event.KeyEvent;
import hallinta.Grafiikka;
import hallinta.Hiiri;
import hallinta.Musiikki;
import hallinta.Nappaimisto;
import hallinta.PeliAlue;
import hallinta.PeliOhi;
import hallinta.PeliPaussi;
import main.IkkunaPaneeli;
/**Luokka, joka h... | Qurred/Bubble-Game | src/tilat/Peli.java | Java | mit | 3,583 |
<?php
/* SonataAdminBundle:CRUD:edit_sonata_type_immutable_array.html.twig */
class __TwigTemplate_4756e8c5a9c146a3fcb19b2bc6e739a2 extends Twig_Template
{
protected $parent;
public function getParent(array $context)
{
if (null === $this->parent) {
$this->parent = $this->getContext($co... | kohr/HRSymfony2 | app/cache/dev/twig/47/56/e8c5a9c146a3fcb19b2bc6e739a2.php | PHP | mit | 992 |
/**
* @author weism
* copyright 2015 Qcplay All Rights Reserved.
*/
qc.RoundedRectangle = Phaser.RoundedRectangle;
/**
* 类名
*/
Object.defineProperty(qc.RoundedRectangle.prototype, 'class', {
get : function() { return 'qc.RoundedRectangle'; }
});
/**
* 序列化
*/
qc.RoundedRectangle.prototype.toJson = function(... | qiciengine/qiciengine-core | src/geom/RoundedRectangle.js | JavaScript | mit | 594 |
package zame.game.store.products;
public class ProductText extends Product {
public int purchasedTextResourceId;
public int purchasedImageResourceId;
public ProductText(
int id,
int dependsOnId,
int price,
int titleResourceId,
int descriptionResourceId,
int iconResourceId,
int imageResourceId,
int ... | restorer/gloomy-dungeons-2 | src/main/java/zame/game/store/products/ProductText.java | Java | mit | 610 |
shared_examples_for type: :collection do |context|
let(:described_collection) { described_class.new(service: service) }
end
| cpb/opennorth-represent | spec/support/shared_examples/collection_spec.rb | Ruby | mit | 126 |
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "treemap.hoverlabel"
_path_str = "treemap.hoverlabel.font"
_valid_props = {"color", "colorsrc",... | plotly/python-api | packages/python/plotly/plotly/graph_objs/treemap/hoverlabel/_font.py | Python | mit | 11,209 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Mi... | diryboy/roslyn | src/EditorFeatures/CSharpTest/CodeActions/Preview/PreviewExceptionTests.cs | C# | mit | 4,931 |
export enum Collection {
NESTJS = '@nestjs/schematics',
}
| ThomRick/nest-cli | lib/schematics/collection.ts | TypeScript | mit | 60 |
namespace DataTradeExamples
{
class Program
{
static void Main()
{
string address = "localhost";
string username = "5";
string password = "123qwe!";
//var example = new TradeServerInfoExample(address, username, password);
var example ... | SoftFx/FDK | Examples/CSharp/DataTradeExamples/Program.cs | C# | mit | 1,518 |
package com.skidsdev.fyrestone.item;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraftforge.common.util.EnumHelper;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.oredict.OreDictio... | gunnerwolf/Fyrestone | src/main/java/com/skidsdev/fyrestone/item/ItemRegister.java | Java | mit | 2,022 |
// Copyright (c) 2013 Richard Long & HexBeerium
//
// Released under the MIT license ( http://opensource.org/licenses/MIT )
//
package jsonbroker.library.common.broker;
import jsonbroker.library.common.exception.BaseException;
/**
*
* @deprecated use jsonbroker.library.broker.BrokerMessageType
*
*/... | rlong/java.jsonbroker.library | src/jsonbroker/library/common/broker/BrokerMessageType.java | Java | mit | 1,946 |
class DropTable < ActiveRecord::Migration
def up
end
def down
drop_table :Stat
end
end
| suhasdeshpande/DigFollowers | db/migrate/20120308180244_drop_table.rb | Ruby | mit | 97 |
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("Bu... | PhatTrien-MNM/ptnm_cuoiki | BusinessLogic/Properties/AssemblyInfo.cs | C# | mit | 1,402 |
require 'spec_helper'
module Recurly
describe BillingInfo do
# version accounts based on this current files modification dates
timestamp = File.mtime(__FILE__).to_i
def verify_billing_info(billing_info, billing_attributes)
# check the billing data fields
billing_info.first_name.should == bil... | compactcode/recurly-client-ruby | spec/integration/billing_info_spec.rb | Ruby | mit | 5,228 |
<?php
namespace Fer\UserBundle\Security\User\Provider;
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Core\User\UserInterface;... | farconada/sfapi | src/Fer/UserBundle/Security/User/Provider/FacebookProvider.php | PHP | mit | 2,117 |
<?php
/*
* The MIT License
*
* Copyright 2014 Ronny Hildebrandt <ronny.hildebrandt@avorium.de>.
*
* 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, includ... | avorium/myphotostorage | install.php | PHP | mit | 7,966 |
package com.mindera.skeletoid.rxbindings.extensions.views.searchview.support;
import android.view.View;
import androidx.appcompat.widget.SearchView;
import com.jakewharton.rxbinding3.InitialValueObservable;
import io.reactivex.Observer;
import io.reactivex.android.MainThreadDisposable;
public class SearchViewFocusC... | Mindera/skeletoid | rxbindings/src/main/java/com/mindera/skeletoid/rxbindings/extensions/views/searchview/support/SearchViewFocusChangeObservable.java | Java | mit | 1,529 |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="PlotRenderer.cs" company="OxyPlot">
// The MIT License (MIT)
//
// Copyright (c) 2012 Oystein Bjorke
//
// Permission is hereby granted, free of charge, to any person ... | ylatuya/oxyplot | Source/OxyPlot/Render/PlotRenderer.cs | C# | mit | 7,113 |
version https://git-lfs.github.com/spec/v1
oid sha256:d99fc51072a5fe30289f7dc885457700f9b08ae17fe81d034245aba73c408033
size 34706
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.17.1/model/model.js | JavaScript | mit | 130 |
<?php
namespace App\AWS;
use Aws\S3\S3Client;
use Psr\Log\LoggerInterface;
class S3
{
private $s3;
private $bucketName;
private $baseUrl;
private $logger;
/**
* S3 constructor.
*
* @param S3Client $s3
* @param $baseUrl
* @param $bucketName
* @param LoggerInterface $... | ekreative/apps-server | src/AWS/S3.php | PHP | mit | 2,714 |
namespace CameraBazar.Services.Models.Users
{
using System;
public class UserDetailsModel
{
public string Id { get; set; }
public string Email { get; set; }
public string Password { get; set; }
public string Phone { get; set; }
public DateTime LasLogin { get; se... | VaskoViktorov/SoftUni-Homework | 11. C# ASP.NET Core - 30.10.2017/06. Razor & Filters - Part II - Exercise/CameraBazar/CameraBazar.Services/Models/Users/UserDetailsModel.cs | C# | mit | 335 |
module GURPS
class Template
@modifiers = []
def initialize name
@name = name
end
def << modifier
@modifiers << modifier
end
def applyTo char
# Apply this template to a GURPS character.
@modifiers.each do |modifier|
modifier.applyTo char
end
char... | AlexSafatli/gurps | lib/gurps/template.rb | Ruby | mit | 840 |
package org.karoglan.tollainmear.signeditor.commandexecutor;
import org.karoglan.tollainmear.signeditor.KSECommandManager;
import org.karoglan.tollainmear.signeditor.KSERecordsManager;
import org.karoglan.tollainmear.signeditor.KaroglanSignEditor;
import org.karoglan.tollainmear.signeditor.utils.Translator;
import org... | Tollainmear/KaroglanSignEditor | src/main/java/org/karoglan/tollainmear/signeditor/commandexecutor/ReloadExecutor.java | Java | mit | 1,591 |
package gl8080.lifegame.web.resource;
import java.net.URI;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.w... | opengl-8080/lifegame-javaee | src/main/java/gl8080/lifegame/web/resource/GameDefinitionResource.java | Java | mit | 2,858 |
package edacc.parameterspace.domain;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
@SuppressWarnings("serial")
public class RealDomain extends Domain {
protected Double low, high;
public static final String name = "Real";
@SuppressWarnings("unused")
private RealDomain() {
}... | EDACC/edacc_api | src/edacc/parameterspace/domain/RealDomain.java | Java | mit | 2,816 |
//# sourceMappingURL=request-constructor.js.map | jlberrocal/ng2-dynatable | src/interfaces/request-constructor.js | JavaScript | mit | 47 |
/*
* jQuery File Upload Plugin 5.0.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://creativecommons.org/licenses/MIT/
*/
/*jslint nomen: false, unparam: true, regexp: false */
/*global document, XMLHttpReq... | ilyakatz/cucumber-cinema | public/javascripts/jquery.fileupload.js | JavaScript | mit | 31,875 |
import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosPint extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M368,170.085c0-21.022-0.973-88.554-19.308-125.013C344.244,36.228,336.25,32,316.999,32H195.001
c-19.25,0-27.246,4.197-31.... | fbfeix/react-icons | src/icons/IosPint.js | JavaScript | mit | 1,517 |
#include "pch.h"
#include "Item.h"
#include "GameManager.h"
#include "ObjectLayer.h"
Item::Item(Vec2 createPos, float scale, BuffTarget buffType)
{
m_UnitType = UNIT_ITEM;
m_CenterSprite->setPosition(createPos);
m_CenterSprite->setScale(scale);
switch (buffType)
{
case BUFF_HP: m_RealS... | dlakwwkd/CommitAgain | Skima/Classes/Item.cpp | C++ | mit | 873 |
namespace TwitterBackup.Services
{
using TwitterBackup.Data;
using TwitterBackup.Models;
using TwitterBackup.Services.Contracts;
using System.Linq;
using System.Collections.Generic;
using System;
using TwitterBackup.Services.Exceptions;
public class UserService : IUserService
{
... | luboganchev/TwitterBackup | TwitterBackup/TwitterBackup.Services/UserService.cs | C# | mit | 1,545 |
package ee.golive.personal.model;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Entity
@Table(name = "workout")
public class Workout implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optional = false)
@Column(name = "id", uniqu... | ilves/finance | src/main/java/ee/golive/personal/model/Workout.java | Java | mit | 1,619 |
/**
* Wheel, copyright (c) 2020 - present by Arno van der Vegt
* Distributed under an MIT license: https://arnovandervegt.github.io/wheel/license.txt
**/
const $ = require('../../program/commands');
const errors = require('../errors');
const err = require('../errors').errors;
const t ... | ArnoVanDerVegt/wheel | js/frontend/compiler/keyword/CompileObjct.js | JavaScript | mit | 3,710 |
"""Transformation functions for expressions."""
from tt.expressions import BooleanExpression
from tt.transformations.utils import ensure_bexpr
def apply_de_morgans(expr):
"""Convert an expression to a form with De Morgan's Law applied.
:returns: A new expression object, transformed so that De Morgan's Law ... | welchbj/tt | tt/transformations/bexpr.py | Python | mit | 11,265 |
const assert = require('assert');
const MockServer = require('../../../../lib/mockserver.js');
const CommandGlobals = require('../../../../lib/globals/commands.js');
const Nightwatch = require('../../../../lib/nightwatch.js');
describe('browser.getFirstElementChild', function(){
before(function(done) {
Command... | nightwatchjs/nightwatch | test/src/api/commands/element/testGetFirstElementChild.js | JavaScript | mit | 3,229 |
#!/usr/bin/python2.7
#-*- coding: utf-8 -*-
import numpy as np
import gl
def testkf(input1,Q,R):
print gl.X_i_1
print gl.P_i_1
#rang(1,N) do not contain N
K_i = gl.P_i_1 / (gl.P_i_1 + R)
X_i = gl.X_i_1 + K_i * (input1 - gl.X_i_1)
P_i = gl.P_i_1 - K_i * gl.P_i_1 + Q
#print (X[i])
#Upd... | zharuosi/2017 | pythonNRC/modules/testkf.py | Python | mit | 379 |
using System;
using System.Collections.Generic;
using System.Text;
namespace Nucleo.Web.EventsManagement
{
public class ProviderErrorEvent : WebMonitoringEventBase
{
private const string EVENT_MESSAGE = "An error occurred within the provider '{0}', with an exception of: {1}";
private const int EVENT_CODE = 10010... | brianmains/Nucleo.NET | src/Nucleo.Web/Web/EventsManagement/ProviderErrorEvent.cs | C# | mit | 550 |
version https://git-lfs.github.com/spec/v1
oid sha256:e63ec89c8bce1f67a79c0a8042e7ad0f2197f9bf615c88fd1ce36266c4050e1b
size 5126
| yogeshsaroya/new-cdnjs | ajax/libs/backbone.layoutmanager/0.7.0/backbone.layoutmanager.min.js | JavaScript | mit | 129 |
<?php
use Illuminate\Database\Seeder;
use App\System\System;
/**
* @author Setiadi, 20 Agustus 2017
*/
class RoleUserTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('t_role_user')->delete();
DB::table('t_... | setiadi01/Office-Attendance-System-Rest | database/seeds/RoleUserTableSeeder.php | PHP | mit | 917 |
class AndroidController < ApplicationController
def index
end
def create
app = RailsPushNotifications::GCMApp.new
app.gcm_key = params[:gcm_api_key]
app.save
if app.save
notif = app.notifications.build(
destinations: [params[:destination]],
data: { text: params[:message] }
... | calonso/rails_push_notifications_test | app/controllers/android_controller.rb | Ruby | mit | 776 |
module tsp {
export interface IDOMBinder {
attributes?: { [name: string]: string; };
contentEditable?: bool;
dynamicAttributes?: { [name: string]: { (el: IElX): string; }; };
dynamicClasses?: { [name: string]: { (el: IElX): bool; }; };
dynamicStyles?: { [name: string]: { (e... | bahrus/teaspoon | TypeStrictTests/Interface_ElX.ts | TypeScript | mit | 2,489 |
package ee.tuleva.onboarding.user.exception;
public class UserAlreadyAMemberException extends RuntimeException {
public UserAlreadyAMemberException(String message) {
super(message);
}
}
| TulevaEE/onboarding-service | src/main/java/ee/tuleva/onboarding/user/exception/UserAlreadyAMemberException.java | Java | mit | 196 |
namespace ImageGallery.Data.Common.Models
{
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
public abstract class BaseModel<TKey> : IAuditInfo, IDeletableEntity
{
public DateTime CreatedOn { get; set; }
public DateTime... | atanas-georgiev/ImageGallery | src/ImageGallery.Data.Common/Models/BaseModel{TKey}.cs | C# | mit | 581 |
<!--main content start-->
<section id="main-content">
<section class="wrapper">
<!--overview start-->
<div class="row">
<div class="col-lg-12">
<h3 class="page-header"><i class="fa fa-laptop"></i> 한글제품 현재사용내역</h3>
</div>
</div>
<br/>
<... | jangmac/CodeIgniter | application/views/list/computational/using_soft/use_hangul.php | PHP | mit | 1,961 |
//-----------------------------------------
// Grunt configuration
//-----------------------------------------
module.exports = function(grunt) {
// Init config
grunt.initConfig({
// environment constant
ngconstant: {
options: {
space: ' ',
name: '... | andreavitali/instalurker | gruntfile.js | JavaScript | mit | 2,712 |
<?php
namespace Smath\VentasBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;... | rsuarezdeveloper/smath | src/Smath/VentasBundle/Controller/PedidoController.php | PHP | mit | 7,983 |
package com.backusnaurparser.helper;
import java.io.PrintStream;
import java.io.PrintWriter;
/**
* Runtime Exception thrown when something goes wrong with parsing the EBNF
* grammar. A reason is always given (automatically printed via every
* printStackTrace(...) permutation)
*
* @author Dominik Horn
*
*/
pub... | DominikHorn/FormalLanguageParser | src/com/backusnaurparser/helper/LanguageParseException.java | Java | mit | 981 |
require 'spec_helper'
describe Skywriter::Resource::CloudFormation::Authentication do
it "is a Resource" do
expect(Skywriter::Resource::CloudFormation::Authentication.new('name')).to be_a(Skywriter::Resource)
end
describe "#as_json" do
it "allows the user to define the keyspace" do
resource = Skyw... | otherinbox/skywriter | spec/skywriter/resource/cloud_formation/authentication_spec.rb | Ruby | mit | 937 |
/*!
* vue-i18n v9.0.0-beta.13
* (c) 2020 kazuya kawaguchi
* Released under the MIT License.
*/
import { ref, getCurrentInstance, computed, watch, createVNode, Text, h, Fragment, inject, onMounted, onUnmounted, isRef } from 'vue';
/**
* Original Utilities
* written by kazuya kawaguchi
*/
const inBrowser ... | cdnjs/cdnjs | ajax/libs/vue-i18n/9.0.0-beta.13/vue-i18n.esm-browser.js | JavaScript | mit | 168,066 |
# generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/arvind/clover_hack_day/er1_robot/src/er1_motor_driver/msg/Motors.msg"
services_str = "/home/arvind/clover_hack_day/er1_robot/src/er1_motor_driver/srv/AddTwoInts.srv"
pkg_name = "er1_motor_driver"
dependencies_str = "std_msgs"
langs = "gencpp;gen... | arvindpereira/clover_hack_day | er1_robot/build/er1_motor_driver/cmake/er1_motor_driver-genmsg-context.py | Python | mit | 677 |
export default {
name: 'selfie-card',
type: 'text',
render() {
return '[ :) ]';
}
};
| atonse/mobiledoc-kit | demo/app/mobiledoc-cards/text/selfie.js | JavaScript | mit | 97 |
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("Ch... | NativeScriptHybrids/ChallengeAccepted | ChallengeAccepted.Service/ChallengeAccepted.Models/Properties/AssemblyInfo.cs | C# | mit | 1,424 |
from mimetypes import guess_type
def get_git_info():
"""
Parses the git info and returns a tuple containg the owner and repo
:deprecated:
:rtype: tuple
:return: (owner name, repo name)
"""
repo = ''
with open('.git/config') as f:
for line in f.readlines():
if 'url' ... | GrappigPanda/pygemony | pyg/utils.py | Python | mit | 811 |
#include "ticTacToeFunc.h"
#include <cstdio>
TicTacToeFunc::TicTacToeFunc()
{
size = 3;
winSize = 3;
field = new States *[size];
for (int i = 0; i < size; i++)
field[i] = new States[size];
for (int i = 0; i < size; i++)
for (int j = 0; j < size; j++)
field[... | Sergey-Pravdyukov/Homeworks | term2/hw7/3/tictactoefunc.cpp | C++ | mit | 4,600 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace QrF.Core.Admin.Dto
{
public class BasePageInput
{
public BasePageInput()
{
this.Page = 1;
this.PageSize = 20;
}
/// <summary>
/// 当前分页
... | ren8179/QrF.Core | src/apis/QrF.Core.Admin/Dto/BasePageInput.cs | C# | mit | 507 |