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
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, browserHistory } from 'react-router'; import * as firebase from "firebase"; import './css/index.css'; import PetPage from './pet'; import Welcome from './welcome'; import AddPet from './add-pet'; import MainLayout from './main-layout'...
beleidy/Pet-Land
src/index.js
JavaScript
mit
986
// ----------------------------------------------------------------------- // Licensed to The .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // ----------------------------------------------------------------------- // This is a generated file. //...
SteveSyfuhs/Kerberos.NET
Kerberos.NET/Entities/Krb/KrbAsRep.generated.cs
C#
mit
1,321
package com.dranawhite.mybatis.Service; /** * @author dranawhite 2017/9/30 * @version 1.0 */ public class PersonService { }
dranawhite/test-java
test-framework/test-mybatis/src/main/java/com/dranawhite/mybatis/Service/PersonService.java
Java
mit
129
from wdom.server import start from wdom.document import set_app from wdom.tag import Div, H1, Input class MyElement(Div): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.h1 = H1(parent=self) self.h1.textContent = 'Hello, WDOM' self.input = Input(parent=se...
miyakogi/wdom
docs/guide/samples/wdom2.py
Python
mit
526
#include<iostream> int* f(int* fst, int* lst, int v) { std::cout << "in f function, pointers are copied" << std::endl; std::cout << "&fst == " << &fst << ", &lst == " << &lst << std::endl; std::cout << "fst == " << fst << ", lst == " << lst << std::endl; while(fst != lst && *fst != v) { ++f...
sylsaint/cpp_learning
tcpppl/arguments_passing.cc
C++
mit
881
const { ArgumentError } = require('rest-facade'); const Auth0RestClient = require('../Auth0RestClient'); const RetryRestClient = require('../RetryRestClient'); /** * Abstracts interaction with the stats endpoint. */ class StatsManager { /** * @param {object} options The client options. * @param {s...
auth0/node-auth0
src/management/StatsManager.js
JavaScript
mit
3,012
const initialState = { minimoPalpite: 2, valorMaximoAposta: 500, valorMinimoAposta: 5, } function BancaReducer(state= initialState, action) { return state; } export default BancaReducer
sysbet/sysbet-mobile
src/reducers/sistema/banca.js
JavaScript
mit
205
// Package acceptlang provides a Martini handler and primitives to parse // the Accept-Language HTTP header values. // // See the HTTP header fields specification for more details // (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4). // // Example // // Use the handler to automatically parse the Accept-L...
martini-contrib/acceptlang
handler.go
GO
mit
3,280
using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using MonoGame.Extended; using MonoGame.Extended.ViewportAdapters; using LudumDare38.Managers; namespace LudumDare38.Scenes { public abstract class SceneBase { ...
Phantom-Ignition/LudumDare38
LudumDare38/Scenes/SceneBase.cs
C#
mit
2,014
export default { "hljs-comment": { "color": "#776977" }, "hljs-quote": { "color": "#776977" }, "hljs-variable": { "color": "#ca402b" }, "hljs-template-variable": { "color": "#ca402b" }, "hljs-attribute": { "color": "#ca402b" }, "hljs-ta...
conorhastings/react-syntax-highlighter
src/styles/hljs/atelier-heath-light.js
JavaScript
mit
1,709
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using MySql.Data.MySqlClient; using Jam; using System.IO; public partial class UIControls_ImageCover : JamUIControl { public UIControls_ImageCover() { m_Code = 56;...
hardsky/music-head
web/UIControls/ImageCover.ascx.cs
C#
mit
7,390
module Log2irc class Channel class << self # hostname or ip def move(to, hostname_ip) if channels[to].nil? channels[to] = {} Log2irc.bot.join(to) end ip, hostname = remove(hostname_ip) channels[to][ip] = { hostname: hostname, last...
l3akage/log2irc
lib/log2irc/channel.rb
Ruby
mit
3,230
class DropFactualPages < ActiveRecord::Migration[5.0] def up drop_table :factual_pages end def down raise ActiveRecord::IrreversibleMigration end end
artsy/bearden
db/migrate/20170223222333_drop_factual_pages.rb
Ruby
mit
167
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; using OpenORPG.Database.DAL; using Server.Game.Combat; using Server.Game.Database; using Server.Game.Database.Models.ContentTemplates; using Server.Game.Entities; using Server.I...
hilts-vaughan/OpenORPG
OpenORPG.Server/Game/Items/SkillbookItem.cs
C#
mit
1,487
module Gandi class Domain class Host include Gandi::GandiObjectMethods #The hostname of the Host attr_reader :hostname def initialize(hostname, attributes = nil) @hostname = hostname @attributes = attributes || info end #Delete a host. ...
pickabee/gandi
lib/gandi/domain/host.rb
Ruby
mit
1,820
#!/bin/python3 import sys time = input().strip() # 12AM = 00:00 # 12PM = 12:00 # 01PM = 13:00 meridian = time[-2:] time = time[:-2] hour, minute, second = time.split(":") hour = int(hour, 10) if meridian == "PM": if hour != 12: hour += 12 else: if hour == 12: hour = 0 print("{:0>2d}:{}:{}"...
costincaraivan/hackerrank
algorithms/warmup/python3/time_conversion.py
Python
mit
351
""" Test suite for the cppext library. The script can be executed on its own or incorporated into a larger test suite. However the tests are run, be aware of which version of the package is actually being tested. If the package is installed in site-packages, that version takes precedence over the version in this proje...
mdklatt/cppext-python
test/test_cppext.py
Python
mit
1,176
/* * Copyright (c) 2017 Andrew Kelley * * This file is part of zig, which is MIT licensed. * See http://opensource.org/licenses/MIT */ #include "bigfloat.hpp" #include "bigint.hpp" #include "buffer.hpp" #include "softfloat.hpp" #include <stdio.h> #include <math.h> #include <errno.h> void bigfloat_init_128(BigFl...
Dimenus/zig
src/bigfloat.cpp
C++
mit
5,573
<?php class Bug extends Eloquent { public $table = 'bugs'; public static $rules = array( 'page'=>'required', 'prio'=>'required', 'message'=>'required' ); public function user() { return $this->belongsTo('User'); } }
murum/baxacykel
app/models/Bug.php
PHP
mit
243
require 'thread_safe' module ActiveModel class Serializer extend ActiveSupport::Autoload autoload :Configuration autoload :ArraySerializer autoload :Adapter include Configuration class << self attr_accessor :_attributes attr_accessor :_attributes_keys attr_accessor :_associ...
Yakrware/active_model_serializers
lib/active_model/serializer.rb
Ruby
mit
7,560
@extends('app') @section('title',$profile->user->name.'的主页') {{--@section('header-css') <link rel="stylesheet" href="/css/profile.css"> <link rel="stylesheet" href="/css/search.css"> @endsection--}} {{--@section('header-js') <script src="/js/source/vue.js"></script> <script src="/js/source/vue-resource....
GeekGhc/ISpace
resources/views/profile/post.blade.php
PHP
mit
2,510
import { types } from './types'; interface FetchCafeRequested { type: types.FETCH_CAFE_REQUESTED; payload: number; } interface FetchCafeSucceeded { type: types.FETCH_CAFE_SUCCEEDED; payload: any; } interface FetchCafeFailed { type: types.FETCH_CAFE_FAILED; payload: any; } export type FetchCafeAction = | Fetc...
mjlaufer/cafe-tour-client
src/client/components/screens/CafeDetail/actions/index.ts
TypeScript
mit
691
namespace E06_BirthdayCelebrations.Models { public class Robot : SocietyMember { private string model; public Robot(string id, string model) : base(id) { this.Model = model; } public string Model { get { return this.model; }...
Rusev12/Software-University-SoftUni
C# OOP Advanced/01-Interfaces-and-Abstraction/E06-BirthdayCelebrations/Models/Robot.cs
C#
mit
397
# flake8: noqa # -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Event.is_published' db.add_column('event_rsvp_event', 'is_published', ...
bitmazk/django-event-rsvp
event_rsvp/migrations/0008_auto__add_field_event_is_published.py
Python
mit
7,470
<?php namespace Bit3\FakerCli\Command; use Faker\Factory; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class ...
bit3/faker-cli
src/Command/GenerateCommand.php
PHP
mit
7,146
<h4><b>Statistics Summary</b></h4> <br> <p><b>A) Gender Student Distribution</b></p> <hr> <table class="table table-striped table-responsive table-hover"> <thead id="gender_table_head"> </thead> <tbody id="gender_table_body"> </tbody> </table> <br> <p><b>B) Muslim Student Distribution</b></p> <hr> <...
stinkymonkeyph/Studenizer
resources/views/components/tables/data_summary.blade.php
PHP
mit
9,401
import { generate } from "randomstring" import { NON_EXECUTABLE_FILE_MODE, EXECUTABLE_FILE_MODE, } from "../src/patch/parse" import { assertNever } from "../src/assertNever" export interface File { contents: string mode: number } export interface Files { [filePath: string]: File } export interface TestCase...
ds300/patch-package
property-based-tests/testCases.ts
TypeScript
mit
5,362
using System.Collections.Generic; namespace CSharp2nem.ResponseObjects.Account { public class ExistingAccount { public class Cosignatory { public string Address { get; set; } public int HarvestedBlocks { get; set; } public long Balance { get; set; } ...
NemProject/csharp2nem
NemApi/Wrapper/ResponseObjects/Account/ExistingAccountData.cs
C#
mit
2,257
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("05...
helena999/SoftUni-Assignments
00. Programming Basics/05. Console-Input-Output-Homework/05.FormattingNumbers/Properties/AssemblyInfo.cs
C#
mit
1,416
# coding: utf-8 from numpy import matrix from oneVsAll import oneVsAll from numpy import loadtxt, savetxt from predictOneVsAll import predictOneVsAll def train(): num_labels = 34 print '... Training' X = matrix(loadtxt('X.dat')) / 255.0 y = matrix(loadtxt('y.dat')).transpose() the_lambda = 0.1 ...
skyduy/zfverify
Verify-Manual-python/train/core/train.py
Python
mit
950
#!/usr/bin/env python import queue class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None self.size = 1 self.self_count = 1 def treeBuilder(nodeString): nodeList = nodeString[1:-1].split(',') nodeQueue = queue.Queue() if nodeList...
eroicaleo/LearningPython
interview/leet/tree.py
Python
mit
2,092
using System; using LanguageExt.Common; using System.Threading.Tasks; using static LanguageExt.Prelude; using System.Diagnostics.Contracts; using System.Runtime.CompilerServices; using LanguageExt.Effects.Traits; using LanguageExt.Pipes; using LanguageExt.Thunks; namespace LanguageExt { /// <summary> /// Synch...
louthy/language-ext
LanguageExt.Core/Effects/Eff/Eff.cs
C#
mit
6,359
using MathSite.BasicAdmin.ViewModels.SharedModels.Posts; namespace MathSite.BasicAdmin.ViewModels.News { public class NewsViewModel : PostViewModel { } }
YarGU-Demidov/math-site
src/MathSite.BasicAdmin.ViewModels/News/NewsViewModel.cs
C#
mit
169
<?php if (!is_array($module)): ?> <p>404. No such module.</p> <?php else: ?> <h1>Module: <?= $module['name'] ?></h1> <h2>Description</h2> <p>File: <code><?= $module['filename'] ?></code></p> <p><?= nl2br($module['doccomment']) ?></p> <h2>Details</h2> <table> ...
guni12/siteshop
src/CCModules/view.tpl.php
PHP
mit
3,244
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using Microsoft.Azure.Management.Fluent; using Microsoft.Azure.Management.KeyVault.Fluent.Models; using Microsoft.Azure.Management.ResourceManager.Fluent; using ...
hovsepm/azure-libraries-for-net
Samples/KeyVault/ManageKeyVault.cs
C#
mit
6,663
class Solution { public int solution (String S) { int length = S.length(); // Such index only exists if the length of the string is odd if (length % 2 == 0) { return -1; } int middle = length / 2; for (int i = middle - 1, j = middle + 1; i >= 0 && j < length; i--, j++) { if (S.c...
shengmin/coding-problem
codility/task-1/Driver.java
Java
mit
810
package fsb.semantics.empeagerpso; import java.util.Set; import ags.constraints.AtomicPredicateDictionary; import ags.constraints.Formula; import fsb.ast.MProgram; import fsb.ast.Statement; import fsb.ast.Statement.StatType; import fsb.ast.tvl.ArithValue; import fsb.ast.tvl.DeterArithValue; import fsb.explore.Action...
hetmeter/awmm
fender-sb-bdd/branches/three valued logic branch/fender-sb-bdd/src/fsb/semantics/empeagerpso/EmpEagerAbsState.java
Java
mit
5,589
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package jenkins.plugins.pivot.render; import java.util.ArrayList; import java.util.List; /** * 2-dimension matrix utility * @author zijiang */ public final class Matrix2D { private int[][] data; ...
gougoujiang/programmable-section
src/main/java/jenkins/plugins/pivot/render/Matrix2D.java
Java
mit
2,516
package com.jinwen.thread.multithread.synchronize.example2; public class HasSelfPrivateNum { private int num = 0; synchronized public void addI(String username) { try { if (username.equals("a")) { num = 100; System.out.println("a set over"); ...
jinchen92/JavaBasePractice
src/com/jinwen/thread/multithread/synchronize/example2/HasSelfPrivateNum.java
Java
mit
611
package app_error import "log" func Fatal(err error) { if err != nil { log.Fatal(err) } }
Jurevic/FaceGrinder
pkg/api/v1/helper/app_error/app_error.go
GO
mit
96
// Copyright (c) 2017-2021 offa // // 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, // ...
offa/danek
src/danek/internal/ToString.cpp
C++
mit
5,007
<?php namespace PHPStrap\Form\Validation; class BaseValidation{ protected $errormessage; /** * @param string $errormessage * @return void */ public function __construct($errormessage){ $this->errormessage = $errormessage; } /** * @return string */ public function errorMessage(){ ...
kktuax/PHPStrap
src/PHPStrap/Form/Validation/BaseValidation.php
PHP
mit
364
<?php namespace MindOfMicah\LaravelDatatables\DatatableQuery; class Sorter { private $column_index; private $direction; public function __construct($column_index, $direction = 'ASC') { $this->column_index = $column_index; $this->direction = $direction; } public function toArr...
mindofmicah/laravel-datatables
src/MindOfMicah/LaravelDatatables/DatatableQuery/Sorter.php
PHP
mit
459
/* jshint unused: false */ /* global describe, before, beforeEach, afterEach, after, it, xdescribe, xit */ 'use strict'; var fs = require('fs'); var restify = require('restify'); var orm = require('orm'); var assert = require('assert'); var restormify = require('../'); var dbProps = {host: 'logger', protocol: 'sqlite...
toddself/restormify
test/validation-bubbling.js
JavaScript
mit
2,293
require 'sinatra' require 'cgi' require 'json' require 'sequel' require 'logger' require 'zlib' require 'base64' require 'digest' configure :production do require 'newrelic_rpm' $production = true end DB = Sequel.connect(ENV['MYSQL_DB_URL'] || 'mysql2://root@localhost/android_census', :max_con...
vlad902/census.tsyrklevich.net
web.rb
Ruby
mit
12,074
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var Item = function Item() { _classCallCheck(this, Item); this.chords = ''; t...
aggiedefenders/aggiedefenders.github.io
node_modules/chordsheetjs/lib/chord_sheet/item.js
JavaScript
mit
364
require "spec_helper" describe Architect4r::Model::Relationship do let(:person) { Person.create(:name => 'Niobe', :human => true) } let(:ship) { Ship.create(:name => 'Logos', :crew_size => 2) } describe "initialization of new instances" do it "should accept zero arguments" do lambda { CrewMe...
namxam/architect4r
spec/model/relationship_spec.rb
Ruby
mit
2,756
package com.cloutteam.jarcraftinator.exceptions; public class PluginUnloadedException extends RuntimeException { public PluginUnloadedException(String message){ super(message); } }
Clout-Team/JarCraftinator
src/main/java/com/cloutteam/jarcraftinator/exceptions/PluginUnloadedException.java
Java
mit
200
package demoinfocs import ( "fmt" "io" "math" "sync" "time" "github.com/gogo/protobuf/proto" "github.com/markus-wa/go-unassert" dispatch "github.com/markus-wa/godispatch" "github.com/pkg/errors" common "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/common" events "github.com/markus-wa/demoinfoc...
markus-wa/demoinfocs-golang
pkg/demoinfocs/parsing.go
GO
mit
11,489
namespace School { using System; internal class Validator { internal static bool ValidateName(string name) { bool isNameValid = string.IsNullOrWhiteSpace(name); return isNameValid; } internal static bool ValidateUniqueNumber(int uniqueNumber, int mi...
dushka-dragoeva/Telerik
Homeworks/CSharp/HQC/13. UnitTestingHomeworkMine/School/Validator.cs
C#
mit
484
def tsvread(filename, delimiter = "\t", endline = "\n", **kwargs): """ Parses tsv file to an iterable of dicts. Args: filename (str): File to read. First line is considered header. delimiter (str, Optional): String used to mark fields in file. Defaults to '\\t' ...
btoth/utility
tsvio.py
Python
mit
1,931
<?php namespace Litmus\Email; use Litmus\Base\BaseCallback; /** * EmailCallback class * * @author Benjamin Laugueux <benjamin@yzalis.com> */ class EmailCallback extends BaseCallback { }
yzalis/Litmus
src/Litmus/Email/EmailCallback.php
PHP
mit
196
<?php /** * The template for displaying CPT download single page * * @package llorix-one-lite */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class( 'content-single-page' ); ?>> <header class="entry-header single-header"> <?php the_title( '<h1 itemprop="headline" class="entry-title single-title">', '</h1...
WWWCourses/ProgressBG-Front-End-Dev
projects/Templates/Portfolio/llorix-one-lite/content-single-download.php
PHP
mit
1,027
<?php return array ( 'id' => 'ginovo_mid_ver1', 'fallback' => 'generic_android_ver2_2', 'capabilities' => array ( 'is_tablet' => 'true', 'model_name' => 'MID', 'brand_name' => 'Ginovo', 'can_assign_phone_number' => 'false', 'physical_screen_height' => '153', 'physical_screen_width' => '...
cuckata23/wurfl-data
data/ginovo_mid_ver1.php
PHP
mit
400
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="HtmlInputSubmit.cs" company=""> // // </copyright> // <summary> // The html input submit. // </summary> // ------------------------------------------------------------...
athlete1/UXTestingFrameworks
UX.Testing.Core/Controls/HtmlInputNumber.cs
C#
mit
741
<?php namespace Pixelistik; use \Pixelistik\UrlCampaignify; class UrlCampaignifyTest extends \PHPUnit_Framework_TestCase { public function setUp() { $this->uc = new UrlCampaignify(); } /* Tests for single URLs */ /** * Test if the conversion works with URLs being fed in that do not h...
pixelistik/url-campaignify
tests/Pixelistik/UrlCampaignify.php
PHP
mit
11,823
/** * ## The autocomplete is a normal text input enhanced by a panel of suggested options. * * You can read more about autocompletes in the [Material Design spec](https://material.io/guidelines/components/text-fields.html#text-fields-auto-complete-text-field). * * You can see live examples in the Material [docu...
tomlandau/material2-new
src/lib/autocomplete/index.ts
TypeScript
mit
8,564
/* eslint no-use-before-define: "off" */ import React from 'react'; import { act } from 'react-dom/test-utils'; import { mount } from 'enzyme'; import Transfer from '..'; const listProps = { dataSource: [ { key: 'a', title: 'a', disabled: true, }, { key: 'b', title: 'b', ...
ant-design/ant-design
components/transfer/__tests__/dropdown.test.js
JavaScript
mit
3,765
addJs('http://10.16.28.75:3000/block.js?v=2');
SKing7/charted
pub/resource.js
JavaScript
mit
47
namespace Gar.Client.Contracts.Profiles { public interface ICsvInputProfile { #region methods void SetCsvInputProfile(); #endregion } }
KatoTek/Gar
Gar.Client.Contracts/Profiles/ICsvInputProfile.cs
C#
mit
177
<?php namespace Gogol\Admin\Providers; use Illuminate\Support\ServiceProvider; class HashServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = true; /** * Register the service provider. * *...
MarekGogol/crudadmin
src/Providers/HashServiceProvider.php
PHP
mit
1,017
using System.Windows.Controls; namespace Parakeet.Views.PrimaryWindow { /// <summary> /// Logique d'interaction pour SortByView.xaml /// </summary> public partial class SortByView : UserControl { public SortByView() { InitializeComponent(); } } }
Serasvatie/Parakeet
Parakeet/Parakeet/Views/PrimaryWindow/SortByView.xaml.cs
C#
mit
266
var UserProxy = (function(){ /** * @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/almond for details */ //Going sloppy to avoid 'use strict' string cost, but strict practices should //be followed. /...
YePpHa/UserProxy
UserProxy.js
JavaScript
mit
55,778
export { default as Audience } from './audiences/model' export { default as Client } from './clients/model' export { default as Communication } from './communications/model' export { default as InboundEmail } from './sendgrid/models/inboundEmail' export { default as Lead } from './leads/model' export { default as Marke...
LeadGrabr/api
src/components/models.js
JavaScript
mit
584
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Consumption::Mgmt::V2017_12_30_preview # # A service client - single point of access to the REST API. # class ConsumptionManagementCli...
Azure/azure-sdk-for-ruby
management/azure_mgmt_consumption/lib/2017-12-30-preview/generated/azure_mgmt_consumption/consumption_management_client.rb
Ruby
mit
5,431
using System; using System.Collections.Generic; using DXFramework.Util; using Poly2Tri; using SharpDX; namespace DXFramework.PrimitiveFramework { public class PTriangle : Primitive { private Vector2 a; private Vector2 b; private Vector2 c; public PTriangle( PTriangle triangle ) : base( triangle ) { ...
adamxi/SharpDXFramework
DXFramework/PrimitiveFramework/PTriangle.cs
C#
mit
3,697
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function ...
wgerro/sprintko
database/migrations/2014_10_12_000000_create_users_table.php
PHP
mit
814
#include "Math/Math.h" float Math::Distance(float x0, float y0, float x1, float y1) { return sqrt(pow(x0 - x1, 2) + pow(y1 - y0, 2)); } float Math::Distance(Vector &a, Vector &b) { return sqrt(pow(a.m_x - b.m_x, 2) + pow(a.m_y - b.m_y, 2)); } bool RangeIntersect(float min0, float max0, float min1, float max1) { ...
vitorfhc/ZebraEngine
src/Math/Math.cpp
C++
mit
361
require 'cases/helper' class ArrayItemClass < GQL::String string :upcased, -> { target.upcase } end class MyFixnum < GQL::Number string :whoami, -> { 'I am a number.' } end class MyString < GQL::String string :whoami, -> { 'I am a string.' } end class FieldWithArrays < GQL::Field array :class_as_item_class,...
martinandert/gql
test/cases/array_test.rb
Ruby
mit
2,274
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var User = require('./user'); var entitySchema = new Schema({ room: { type: Schema.Types.ObjectId, ref: 'Room' }, x: { type: Number, default: -1 }, y: { type: Number, default: -1 }, body: Schema.Types.Mixed, character: String, color: String,...
Huntrr/mp.txt
app/schema/entity.js
JavaScript
mit
1,017
<?xml version="1.0" ?><!DOCTYPE TS><TS language="nl" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About TPPcoin</source> <translation>Over TPPcoin</translation> </messa...
tppcoin/tppcoin
src/qt/locale/bitcoin_nl.ts
TypeScript
mit
118,342
""" Django settings for ProgrammerCompetencyMatrix project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.joi...
FiaDot/programmer-competency-matrix
ProgrammerCompetencyMatrix/settings.py
Python
mit
2,486
require 'test_helper' module Cms class CategoriesHelperTest < ActionView::TestCase end end
dreamyourweb/dyw-cms
test/unit/helpers/cms/categories_helper_test.rb
Ruby
mit
96
angular.module('backAnd.services') .constant('CONSTANTS', { URL: "https://api.backand.com", DEFAULT_APP: null, VERSION : '0.1' });
backand/angularbknd
app/backand/js/services/constants.js
JavaScript
mit
162
class CommentsController < ApplicationController before_action :set_comment, only: [:show, :update, :destroy] def index render json: { comments: Comment.all }, methods: :post_id end def show render json: { comment: @comment }, methods: :post_id end def create @comment = Comment.new(comment_pa...
brunoocasali/ember-n-rails
blog-backend/app/controllers/comments_controller.rb
Ruby
mit
769
const JSUnit = imports.jsUnit; const Cairo = imports.cairo; const Everything = imports.gi.Regress; function _ts(obj) { return obj.toString().slice(8, -1); } function _createSurface() { return new Cairo.ImageSurface(Cairo.Format.ARGB32, 1, 1); } function _createContext() { return new Cairo.Context(_create...
danilocesar/gwkjs
installed-tests/js/testCairo.js
JavaScript
mit
5,061
package org.testcontainers.dockerclient; import com.github.dockerjava.api.DockerClient; import com.github.dockerjava.core.DockerClientBuilder; import com.github.dockerjava.core.DockerClientConfig; import com.github.dockerjava.netty.NettyDockerCmdExecFactory; import com.google.common.base.Throwables; import org.apache....
barrycommins/testcontainers-java
core/src/main/java/org/testcontainers/dockerclient/DockerClientProviderStrategy.java
Java
mit
8,768
package pass.core.scheduling.distributed; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import java.util.UUID; import java.util.logging.Level; import java.util.logg...
mzohreva/PASS
pass-core/src/main/java/pass/core/scheduling/distributed/Job.java
Java
mit
1,683
<?php /* * This file is part of KoolKode Security Database. * * (c) Martin Schröder <m.schroeder2007@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace KoolKode\Security\Database; use KoolKode\Database\Connecti...
koolkode/security-database
src/DatabaseNonceTracker.php
PHP
mit
6,412
Ember.Fuel.Grid.View.Toolbar = Ember.Fuel.Grid.View.ContainerBase.extend({ classNames: ['table-toolbar'], classNameBindings: ['childViews.length::hide'], childViewsBinding: 'controller.toolbar' });
redfire1539/ember-fuel
Libraries/Grid/Views/Toolbar.js
JavaScript
mit
203
<?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\Flash; use JMS\Serializer\Annotation\ExclusionPolicy; u...
romainneutron/PHPExiftool
lib/PHPExiftool/Driver/Tag/Flash/Message.php
PHP
mit
764
angular.module('DashboardModule', ['ui.router', 'toastr', 'ngResource', 'angular-js-xlsx', 'angularFileUpload','ngAnimate']) //.config(function ($routeProvider, $locationProvider) { // $routeProvider // // .when('/', { // templateUrl: '/js/private/dashboard/tpl/dashboard.tpl.htm...
SETTER2000/price
assets/js/public/dashboard/DashboardModule.js
JavaScript
mit
8,259
<!-- Safe sample input : execute a ls command using the function system, and put the last result in $tainted sanitize : cast via + = 0.0 File : unsafe, use of untrusted data in a comment --> <!--Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, m...
stivalet/PHP-Vulnerability-test-suite
XSS/CWE_79/safe/CWE_79__system__CAST-cast_float_sort_of__Unsafe_use_untrusted_data-comment.php
PHP
mit
1,275
# describe 'Users feature', type: :feature do # let!(:first_user) { create :user, name: 'Admin' } # let!(:second_user) { create :user, name: 'User' } # before do # visit root_path # click_link 'All users' # end # describe '#index' do # it 'shows page title' do # expect(page).to have_conte...
vrtsev/LifeLog
spec/features/publications/users_feature_spec.rb
Ruby
mit
872
module App { /** * Наследуйте все директивы не имеющие html-темплейта от этого класса. * Стили будут загружаться относительно папки URL.DIRECTIVES_ROOT/<имя-директивы>. * Скоуп, элемент и атрибуты директивы доступны через св-ва $scope, $element, $attrs. * По умолчанию доступны сервисы $parse, ...
lionsoft/SampleSPA
Sam/app/common/Directive.ts
TypeScript
mit
1,419
(function() { function ce(p, n, id, c, html) { var e = document.createElement(n); p.appendChild(e); if (id) e.id = id; if (c) e.className = c; if (html) e.innerHTML = html; return e; } demoModeGameboard = gameboard.extend ({ ...
nbclark/bounding-bandits
bb.demomode.js
JavaScript
mit
4,865
/*global describe, beforeEach, it*/ 'use strict'; var path = require('path'); var helpers = require('yeoman-generator').test; describe('statik generator', function () { beforeEach(function (done) { helpers.testDirectory(path.join(__dirname, 'temp'), function (err) { if (err) { ...
balintgaspar/generator-statik
test/test-creation.js
JavaScript
mit
965
<?php namespace AppBundle\Repository; /** * MsvTConsecutivoRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class MsvTConsecutivoRepository extends \Doctrine\ORM\EntityRepository { //Obtiene el maximo consecutivo disponible según la sede operativ...
edosgn/colossus-sit
src/AppBundle/Repository/MsvTConsecutivoRepository.php
PHP
mit
1,887
var gulp = require('gulp'), nodemon = require('gulp-nodemon'), plumber = require('gulp-plumber'), livereload = require('gulp-livereload'), sass = require('gulp-sass'); gulp.task('sass', function () { gulp.src('./public/stylesheets/*.scss') .pipe(plumber()) .pipe(sass()) .pipe(gulp.dest('./public/...
draptik/rpi-temperature-website
gulpfile.js
JavaScript
mit
936
<?php /** * aPage filter form base class. * * @package symfony * @subpackage filter * @author Your name here * @version SVN: $Id: sfDoctrineFormFilterGeneratedTemplate.php 29570 2010-05-21 14:49:47Z Kris.Wallsmith $ */ abstract class BaseaPageFormFilter extends BaseFormFilterDoctrine { public functi...
samura/asandbox
lib/filter/doctrine/apostrophePlugin/base/BaseaPageFormFilter.class.php
PHP
mit
7,433
package com.charmyin.cmstudio.basic.authorize.service; import java.util.List; import org.springframework.stereotype.Service; import com.charmyin.cmstudio.basic.authorize.vo.TreeItem; @Service public interface TreeItemService { List<TreeItem> getOrganizationWithUsers(int organizationId); }
Feolive/EmploymentWebsite
src/main/java/com/charmyin/cmstudio/basic/authorize/service/TreeItemService.java
Java
mit
300
'use strict'; const loadRule = require('../utils/load-rule'); const ContextBuilder = require('../utils/contextBuilder'); const RequestBuilder = require('../utils/requestBuilder'); const AuthenticationBuilder = require('../utils/authenticationBuilder'); const ruleName = 'require-mfa-once-per-session'; describe(ruleNa...
auth0/rules
test/rules/require-mfa-once-per-session.test.js
JavaScript
mit
1,787
# frozen_string_literal: true require 'numbers_and_words/strategies/figures_converter/languages' require 'numbers_and_words/strategies/figures_converter/options' require 'numbers_and_words/strategies/figures_converter/decorators' module NumbersAndWords module Strategies module FiguresConverter class Base ...
kslazarev/numbers_and_words
lib/numbers_and_words/strategies/figures_converter.rb
Ruby
mit
883
using WebPlatform.Core.Data; namespace WebPlatform.Tests.Core { /// <summary> /// Defines the test entity. /// </summary> public class TestEntity : Entity { /// <summary> /// Gets or sets the caption. /// </summary> public string Caption { get; set; ...
urahnung/webplatform
src/Tests/Core/TestEntity.cs
C#
mit
336
let base_x = {} let dictionaries = {} /// @name Encode /// @description Takes a large number and converts it to a shorter encoded string style string i.e. 1TigYx /// @arg {number} input The number to be encoded to a string /// @arg {number, string} dictionary ['DICTIONARY_52'] - The dictionary to use for the encoding ...
tjbenton/docs
packages/docs-theme-default/src/base-x.js
JavaScript
mit
4,443
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Qoollo.PerformanceCounters { /// <summary> /// Контейнер стандартных счётчиков /// </summary> public static class PerfCountersDefault { private static ...
qoollo/performance-counters
src/Qoollo.PerformanceCounters/PerfCountersDefault.cs
C#
mit
4,487
<?php /* * This file is part of the Fidry\AliceDataFixtures package. * * (c) Théo FIDRY <theo.fidry@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Fidry\AliceDataFixtures\Bridge\Doc...
furtadodiegos/projeto_cv
vendor/theofidry/alice-data-fixtures/fixtures/Bridge/Doctrine/PhpCrDocument/Dummy.php
PHP
mit
577
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sneaking { class Sneaking { static void Main() { var roomSize = int.Parse(Console.ReadLine()); char[][] room = new char[roomSize][]; ...
radoikoff/SoftUni
C Sharp Advanced/Adv 9 The Exam/Task2/Sneaking.cs
C#
mit
5,315
from wodcraft.api import resources # Routing def map_routes(api): api.add_resource(resources.Activity, '/api/v1.0/activities/<int:id>', endpoint='activity') api.add_resource(resources.Activities, '/api/v1.0/activities', endpoi...
the-gigi/wod-craft-server
wodcraft/api/routes.py
Python
mit
1,064
package html import "fmt" const ( NodeError NodeType = "error" NodeText NodeType = "text" NodeElement NodeType = "element" NodeComment NodeType = "comment" ) type NodeType string type Node struct { Parent *Node FirstChild *Node LastChild *Node PrevSibling *Node NextSibling *Node Type NodeTyp...
lysrt/bro
html/node.go
GO
mit
829