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
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xam...
xamarin-samples/XamarinFormsHello
XamarinFormsHello/XamarinFormsHello.WinPhone/MainPage.xaml.cs
C#
mit
1,557
<?php namespace LeadCommerce\Shopware\SDK\Query; use LeadCommerce\Shopware\SDK\Util\Constants; /** * Class CustomerQuery * * @author Alexander Mahrt <amahrt@leadcommerce.de> * @copyright 2016 LeadCommerce <amahrt@leadcommerce.de> */ class CustomerQuery extends Base { /** * @var array */ protec...
LeadCommerceDE/shopware-sdk
src/LeadCommerce/Shopware/SDK/Query/CustomerQuery.php
PHP
mit
881
<?php namespace GFire\InvoiceBundle\Entity\Interfaces; interface InvoiceInterface{ }
jerickduguran/gfirev2
src/GFire/InvoiceBundle/Entity/Interfaces/InvoiceInterface.php
PHP
mit
87
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package test.thread; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util...
atealxt/work-workspaces
Test_Java/src/test/thread/CallableAndFutureTest.java
Java
mit
2,091
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
garethj-msft/msgraph-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/IWorkbookFunctionsCumPrincRequestBuilder.cs
C#
mit
997
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.eventhubs.generated; import com.azure.core.util.Context; /** Samples for ConsumerGroups ListByEventHub. */ public final class C...
Azure/azure-sdk-for-java
sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/eventhubs/generated/ConsumerGroupsListByEventHubSamples.java
Java
mit
1,031
/** @jsx m */ import m from 'mithril'; import { linkTo, hrefTo } from '@storybook/addon-links'; const Main = { view: vnode => ( <article style={{ padding: 15, lineHeight: 1.4, fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif', backgroundColo...
storybooks/react-storybook
lib/cli/generators/MITHRIL/template-csf/stories/Welcome.js
JavaScript
mit
4,185
from simtk.openmm import app import simtk.openmm as mm from simtk import unit def findForce(system, forcetype, add=True): """ Finds a specific force in the system force list - added if not found.""" for force in system.getForces(): if isinstance(force, forcetype): return force if add==True: system....
mlund/pyha
pyha/openmm.py
Python
mit
2,333
namespace InControl { using System; // @cond nodoc [AutoDiscover] public class EightBitdoSNES30AndroidProfile : UnityInputDeviceProfile { public EightBitdoSNES30AndroidProfile() { Name = "8Bitdo SNES30 Controller"; Meta = "8Bitdo SNES30 Controller on Android"; // Link = "https://www.amazon.com/Wirel...
benthroop/Frankenweapon
Assets/InControl/Source/Unity/DeviceProfiles/EightBitdoSNES30AndroidProfile.cs
C#
mit
2,543
package context import ( "github.com/Everlane/evan/common" "github.com/satori/go.uuid" ) // Stores state relating to a deployment. type Deployment struct { uuid uuid.UUID application common.Application environment string strategy common.Strategy ref string sha1 string flags ma...
Everlane/evan
context/deployment.go
GO
mit
5,804
window.Lunchiatto.module('Transfer', function(Transfer, App, Backbone, Marionette, $, _) { return Transfer.Layout = Marionette.LayoutView.extend({ template: 'transfers/layout', ui: { receivedTransfers: '.received-transfers', submittedTransfers: '.submitted-transfers' }, behaviors: { ...
lunchiatto/web
app/assets/javascripts/modules/transfer/views/layout.js
JavaScript
mit
1,061
package analytics import ( "fmt" elastic "gopkg.in/olivere/elastic.v3" ) //Elasticsearch stores configuration related to the AWS elastic cache isntance. type Elasticsearch struct { URL string IndexName string DocType string client *elastic.Client } //Initialize initializes the analytics engine. fun...
awkhan/go-utility
analytics/elasticsearch.go
GO
mit
979
'use strict'; var i18n = require('./i18n.js') i18n.add_translation("pt-BR", { test: 'OK', greetings: { hello: 'Olá', welcome: 'Bem vindo' } }); i18n.locale = 'pt-BR'; console.log(i18n.t('greetings.hello')); console.log(i18n.t('greetings.welcome')); console.log("Hallo"); // Example 2 i18n.add_translat...
felipediesel/simple-i18n
node.js
JavaScript
mit
617
/** * @flow */ /* eslint-disable */ 'use strict'; /*:: import type { ReaderFragment } from 'relay-runtime'; export type ReactionContent = "CONFUSED" | "EYES" | "HEART" | "HOORAY" | "LAUGH" | "ROCKET" | "THUMBS_DOWN" | "THUMBS_UP" | "%future added value"; import type { FragmentReference } from "relay-runtime"; decl...
atom/github
lib/views/__generated__/emojiReactionsView_reactable.graphql.js
JavaScript
mit
2,624
require 'bio-ucsc' describe "Bio::Ucsc::Hg19::WgEncodeAffyRnaChipFiltTransfragsKeratinocyteCytosolLongnonpolya" do describe "#find_by_interval" do context "given range chr1:1-100,000" do it "returns an array of results" do Bio::Ucsc::Hg19::DBConnection.default Bio::Ucsc::Hg19::DBConnection...
misshie/bioruby-ucsc-api
spec/hg19/wgencodeaffyrnachipfilttransfragskeratinocytecytosollongnonpolya_spec.rb
Ruby
mit
935
require File.expand_path("../../../test_helper", __FILE__) describe Redcarpet::Render::HTMLAbbreviations do before do @renderer = Class.new do include Redcarpet::Render::HTMLAbbreviations end end describe "#preprocess" do it "converts markdown abbrevations to HTML" do markdown = <<-EOS...
brandonweiss/redcarpet-abbreviations
test/redcarpet/render/html_abbreviations_test.rb
Ruby
mit
1,921
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateList extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('modelList', function(Blueprint $table) { $table->increments('id'); $table->strin...
paufsc/Kanban
web/app/database/migrations/2014_10_24_214547_create_list.php
PHP
mit
488
module Tire module Model module Persistence # Provides infrastructure for storing records in _Elasticsearch_. # module Storage def self.included(base) base.class_eval do extend ClassMethods include InstanceMethods end end mo...
HenleyChiu/tire
lib/tire/model/persistence/storage.rb
Ruby
mit
2,068
require 'googleanalytics/mobile'
mono0x/googleanalytics-mobile
lib/googleanalytics-mobile.rb
Ruby
mit
33
class ItemsController < ApplicationController def create item = Item.new(item_params) item.user_id = @user.id if item.save render json: item, status: 201 else render json: item.errors, status: 422 end end def destroy item = find_item item.destroy head 204 end def index render json: @user...
StuartPearlman/ClosetKeeperAPI
app/controllers/items_controller.rb
Ruby
mit
701
using UnityEngine; using UnityEngine.UI; using System.Collections; public class Killer : MonoBehaviour { public Transform RobotPlayer; public GameObject Robot; public Text GameOVER; // Use this for initialization void Start() { RobotPlayer = GetComponent<Transform>(); } void Fix...
ArcherSys/ArcherSys
C#/Unity/Capital Pursuit Alpha/Assets/Scripts/Killer.cs
C#
mit
487
module Linter class Base def self.can_lint?(filename) self::FILE_REGEXP === filename end def initialize(hound_config:, build:, repository_owner_name:) @hound_config = hound_config @build = build @repository_owner_name = repository_owner_name end def file_review(commit_fil...
Koronen/hound
app/models/linter/base.rb
Ruby
mit
1,430
(function() { 'use strict'; angular .module('app.match') .run(appRun); appRun.$inject = ['routerHelper']; /* @ngInject */ function appRun(routerHelper) { routerHelper.configureStates(getStates()); } function getStates() { return [{ state: 'match', config: { url: '/ma...
otaviosoares/f2f
src/client/app/match/match.route.js
JavaScript
mit
593
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-docu', templateUrl: './docu.component.html', styleUrls: ['./docu.component.scss'] }) export class DocuComponent implements OnInit { constructor() { } ngOnInit() { } }
TeoGia/http-on-fire
src/app/docu/docu.component.ts
TypeScript
mit
262
class Portal::CollaborationPolicy < ApplicationPolicy end
concord-consortium/rigse
rails/app/policies/portal/collaboration_policy.rb
Ruby
mit
58
import { DOCUMENT } from '@angular/common'; import { ApplicationRef, ComponentFactoryResolver, Inject, Injectable, Injector } from '@angular/core'; import { BaseService } from 'ngx-weui/core'; import { ToptipsComponent, ToptipsType } from './toptips.component'; @Injectable({ providedIn: 'root' }) export class ToptipsS...
cipchk/ngx-weui
components/toptips/toptips.service.ts
TypeScript
mit
2,518
require 'test_helper' class QuestionSubjectiveTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
Glastonbury/snusurvey
test/models/question_subjective_test.rb
Ruby
mit
132
var loadJsons = require('../lib/loadJsons'); describe("Get a recursive directory load of JSONs", function() { var data; beforeEach(function(done) { if(data) done(); else { loadJsons("./specs")(function(d) { data = d; done(); }); } }); it("Should return right number of j...
polidore/dfg
specs/fileBased.spec.js
JavaScript
mit
531
using System; using System.Diagnostics; using System.Text; namespace BgeniiusUniversity.Logging { public class Logger : ILogger { public void Information(string message) { Trace.TraceInformation(message); } public void Information(string fmt, params object[] vars)...
bgeniius/bgUniversity
ContosoUniversity/Logging/Logger.cs
C#
mit
2,619
<?php /** * Rule for required elements * * PHP version 5 * * LICENSE: * * Copyright (c) 2006-2010, Alexey Borzov <avb@php.net>, * Bertrand Mansion <golgote@mamasam.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are ...
N3X15/ATBBS-Plus
includes/3rdParty/HTML/QuickForm2/Rule/Required.php
PHP
mit
3,540
class String def split_on_unescaped(str) self.split(/\s*(?<!\\)#{str}\s*/).map{|s| s.gsub(/\\(?=#{str})/, '') } end end
rubysuperhero/hero-notes
lib/clitasks/split_on_unescaped.rb
Ruby
mit
128
import axios from 'axios'; import { updateRadius } from './radius-reducer'; import { AddBType } from './b-type-reducer'; // import { create as createUser } from './users'; // import history from '../history'; /* ------------------ ACTIONS --------------------- */ const ADD_B_TYPE = 'ADD_B_TYPE'; const ADD_LNG_...
Bullseyed/Bullseye
app/reducers/report.js
JavaScript
mit
1,361
module Softlayer module User class Customer module Access autoload :Authentication, 'softlayer/user/customer/access/authentication' end end end end
zertico/softlayer
lib/softlayer/user/customer/access.rb
Ruby
mit
180
(function (global, factory) { if (typeof define === 'function' && define.amd) { define(['exports', 'module', 'skatejs'], factory); } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') { factory(exports, module, require('skatejs')); } else { var mod = { exports: {} }; ...
parambirs/aui-demos
node_modules/@atlassian/aui/lib/js/aui/internal/skate.js
JavaScript
mit
757
using System.Collections; using System.Collections.Generic; using UnityEngine; public class UIButton : MonoBehaviour { [SerializeField] private GameObject targetObject; [SerializeField] private string targetMessage; public Color highlightColor = Color.cyan; public void OnMouseOver() { Sprit...
ivanarellano/unity-in-action-book
Ch05/Assets/UIButton.cs
C#
mit
904
<footer class="main-footer"> <div class="pull-right hidden-xs"> </div> <strong>Orange TV.</strong> All rights reserved. </footer> <!-- Control Sidebar --> <!-- /.control-sidebar --> <!-- Add the sidebar's background. This div must be placed immediately after the control sidebar --> ...
ariefstd/cdone_server_new
application/views/footer.php
PHP
mit
5,358
using Newtonsoft.Json; using System.Collections.Generic; namespace EaToGliffy.Gliffy.Model { public class GliffyParentObject : GliffyObject { [JsonProperty(PropertyName = "children")] public List<GliffyObject> Children { get; set; } } }
vzoran/eatogliffy
eatogliffy/gliffy/model/GliffyParentObject.cs
C#
mit
269
// Copyright (c) 2011-2015 The Cryptonote developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "JsonOutputStreamSerializer.h" #include <cassert> #include <stdexcept> #include "Common/StringTools.h" using Comm...
tobeyrowe/StarKingdomCoin
src/Serialization/JsonOutputStreamSerializer.cpp
C++
mit
3,698
# Be sure to restart your server when you modify this file. Refinery::Application.config.session_store :cookie_store, :key => '_skwarcan_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "rak...
mskwarcan/skwarcan
config/initializers/session_store.rb
Ruby
mit
409
/* * author: Lisa * Info: Base64 / UTF8 * 编码 & 解码 */ function base64Encode(input) { var keyStr = "ABCDEFGHIJKLMNOP" + "QRSTUVWXYZabcdef" + "ghijklmnopqrstuv" + "wxyz0123456789+/" + "="; var output = ""; var chr1, chr2, chr3 = ""; var enc1, enc2, enc3, enc4 = ""; var i = 0; do { chr1 = input[i++]; chr2 =...
jrcjing/cbg-log
lib/Tool/base64.js
JavaScript
mit
2,332
<?php namespace ShinyDeploy\Domain\Database; use ShinyDeploy\Core\Crypto\PasswordCrypto; use ShinyDeploy\Core\Helper\StringHelper; use ShinyDeploy\Exceptions\DatabaseException; use ShinyDeploy\Exceptions\MissingDataException; use ShinyDeploy\Traits\CryptableDomain; class ApiKeys extends DatabaseDomain { use Crypt...
nekudo/shiny_deploy
src/ShinyDeploy/Domain/Database/ApiKeys.php
PHP
mit
2,903
require File.dirname(__FILE__) + '/../spec_helper' describe "Standard Tags" do dataset :users_and_pages, :file_not_found, :snippets it '<r:page> should allow access to the current page' do page(:home) page.should render('<r:page:title />').as('Home') page.should render(%{<r:find url="/radius"><r:title...
joshfrench/radiant
spec/models/standard_tags_spec.rb
Ruby
mit
51,194
module ParametresHelper end
Henrik41/jQuery-Validation-Engine-rails
thingo2/app/helpers/parametres_helper.rb
Ruby
mit
28
class CreateMappableMaps < ActiveRecord::Migration def change create_table :mappable_maps do |t| t.string :subject t.string :attr t.string :from t.string :to t.timestamps end end end
mikebannister/mappable
db/migrate/20110919042052_create_mappable_maps.rb
Ruby
mit
226
export function mockGlobalFile() { // @ts-ignore global.File = class MockFile { name: string; size: number; type: string; parts: (string | Blob | ArrayBuffer | ArrayBufferView)[]; properties?: FilePropertyBag; lastModified: number; constructor( ...
ProtonMail/WebClient
applications/drive/src/app/helpers/test/file.ts
TypeScript
mit
879
package net.talayhan.android.vibeproject.Controller; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.Uri; import android.os.Bundle; import android.provid...
stalayhan/vibeapp
app/src/main/java/net/talayhan/android/vibeproject/Controller/MainActivity.java
Java
mit
9,208
<?php namespace Oro\Bundle\ApiBundle\Processor\Shared\Rest; use Oro\Bundle\ApiBundle\Metadata\RouteLinkMetadata; use Oro\Bundle\ApiBundle\Processor\Context; use Oro\Bundle\ApiBundle\Provider\ResourcesProvider; use Oro\Bundle\ApiBundle\Request\AbstractDocumentBuilder as ApiDoc; use Oro\Bundle\ApiBundle\Request\ApiActi...
orocrm/platform
src/Oro/Bundle/ApiBundle/Processor/Shared/Rest/AddHateoasLinks.php
PHP
mit
2,893
const path = require('path'), fs = require('fs'), glob = require('glob'), pug = require('pug'), stylus = require('stylus'), nib = require('nib'), autoprefixer = require('autoprefixer-stylus'), {rollup} = require('rollup'), rollupPluginPug = require('rollup-plugin-pug'), rollupPluginResolve = require...
stefan-lehmann/atomatic
lib/AppBuilder.js
JavaScript
mit
4,620
module ActiveWarehouse #:nodoc: # Class that supports prejoining a fact table with dimensions. This is useful if you need # to list facts along with some or all of their detail information. class PrejoinFact # The fact class that this engine instance is connected to attr_accessor :fact_class ...
activewarehouse/activewarehouse
lib/active_warehouse/prejoin_fact.rb
Ruby
mit
3,448
package utils; import java.io.*; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.ServerSocket; import java.net.Socket; import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; ...
justayak/ALP5
src/utils/Utils.java
Java
mit
14,112
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
DustinCampbell/vscode
src/vs/workbench/api/electron-browser/mainThreadDocumentContentProviders.ts
TypeScript
mit
4,197
//--------------------------------------------------------------------------- // // <copyright file="ByteAnimationUsingKeyFrames.cs" company="Microsoft"> // Copyright (C) Microsoft Corporation. All rights reserved. // </copyright> // // This file was generated, please do not edit it directly. // // Please see http:...
mind0n/hive
Cache/Libs/net46/wpf/src/Core/CSharp/System/Windows/Media/Animation/Generated/ByteAnimationUsingKeyFrames.cs
C#
mit
39,816
'use strict'; const Hoek = require('hoek'); exports.plugin = { register: async (plugin, options) => { plugin.ext('onPreResponse', (request, h) => { try { var internals = { devEnv: (process.env.NODE_ENV === 'development'), meta: options.meta, credentials: request.auth.isAuthenticated ? request...
SystangoTechnologies/Hapiness
lib/context.js
JavaScript
mit
672
'use strict'; //Customers service used to communicate Customers REST endpoints angular.module('customers') .factory('Customers', ['$resource', function($resource) { return $resource('customers/:customerId', { customerId: '@_id' }, { update: { method: 'PUT' } }); } ]) .factory('Notify', ['$rootScope'...
armackey/spa_practice
public/modules/customers/services/customers.client.service.js
JavaScript
mit
724
/* some devices call home before accepting a wifi access point. Spoof those responses. */ var path = require('path'); exports.load = function(server, boatData, settings) { var endpointMap = [ {'route': '/kindle-wifi/wifiredirect.html', 'responseFile': 'kindle.html'} , {'route': '/kindle-wifi/wi...
HomegrownMarine/boat_computer
apps/wifi_allow/app.js
JavaScript
mit
603
class AlbumsController < ApplicationController respond_to :html, :xml, :json attr_reader :current_album_type, :author_name load_and_authorize_resource def index @albums = Album.by_type params[:album_type] respond_with(@albums) end def show get_current_album_type get_author_name if @cur...
quattro004/scratches
app/controllers/albums_controller.rb
Ruby
mit
1,594
// フォーマット var koyomi = require('../..').create(); var format = koyomi.format.bind(koyomi); var eq = require('assert').equal; koyomi.startMonth = 1; // 序数 (CC:経過日数) eq(format(20150101, 'CC'), '1'); eq(format(20150101, 'CC>0'), '1st'); eq(format(20150102, 'CC>0'), '2nd'); eq(format(20150103, 'CC>0'), '3rd');...
yukik/koyomi
test/format/josu.js
JavaScript
mit
14,614
import { apiGet, apiPut, apiDelete } from 'utils/api' import { flashError, flashSuccess } from 'utils/flash' import { takeLatest, takeEvery, call, put, select } from 'redux-saga/effects' import { filter, find, without, omit } from 'lodash' import { filesUrlSelector } from 'ducks/app' import { makeUploadsSelector } fro...
sinfin/folio
react/src/ducks/files.js
JavaScript
mit
14,083
using ShiftCaptain.Models; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Security.Principal; using System.Web; using System.Web.Security; namespace ShiftCaptain.Infrastructure { public static class Authentication { public...
adabadyitzaboy/ShiftCaptain
ShiftCaptain/Infrastructure/Authentication.cs
C#
mit
3,191
var self = module.exports; self = (function(){ self.debug = true; self.prefix = '/kaskade'; self.ssl = false; /*{ key: {PEM}, cert: {PEM} }*/ self.port = 80; self.host = '0.0.0.0'; self.onConnectionClose = new Function(); self.redis = false; ...
Aldlevine/Kaskade.js-node
lib/cfg.js
JavaScript
mit
577
# coding=utf-8 from setuptools import setup from Cython.Build import cythonize setup( name="cyfib", ext_modules=cythonize('cyfib.pyx', compiler_directives={'embedsignature': True}), )
tleonhardt/Python_Interface_Cpp
cython/wrap_c/setup.py
Python
mit
193
package org.eggermont.hm.cluster; import cern.colt.matrix.DoubleFactory1D; import cern.colt.matrix.DoubleMatrix1D; import cern.colt.matrix.DoubleMatrix2D; public class ClusterFactory { private final DoubleMatrix2D x; private final DoubleMatrix1D blocks; private final DoubleMatrix1D vMin; private f...
meggermo/hierarchical-matrices
src/main/java/org/eggermont/hm/cluster/ClusterFactory.java
Java
mit
669
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading; using SharpDeflate; using vtortola.WebSockets; using vtortola.WebSockets.Rfc6455; namespace RohBot { public sealed class WebSocketServer<TClient> : IDisposable where TClient : WebSocketClient, new(...
Rohansi/RohBot
RohBot/WebSocketServer.cs
C#
mit
3,255
/* eslint-disable no-undef */ const cukeBtnSubmit = '//button[@data-cuke="save-item"]'; const cukeInpSize = '//input[@data-cuke="size"]'; const cukeInpTitle = '//input[@data-cuke="title"]'; const cukeInpContent = '//textarea[@data-cuke="content"]'; const cukeSize = '//x-cuke[@id="size"]'; const cukeTitle = '//x-cu...
warehouseman/meteor-mantra-kickstarter
.pkgs/mmks_widget/.e2e_tests/features/widgets/step_defs.js
JavaScript
mit
5,126
<!DOCTYPE html> <?php include("initial-header.php"); include("config.php"); include('swift/lib/swift_required.php'); $error = ""; if($_SERVER["REQUEST_METHOD"] == "POST") { // username and password sent from form $db = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE); ...
prash1987/GamifyWebsite
login.php
PHP
mit
3,756
package net.spy.digg.parsers; import java.io.IOException; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import org.xml.sax.SAXException; import net.spy.digg.Story; /** * Parse a stories response. */ public class StoriesParser extends TimePagedItemParser<Story> { @Override protected String getRootEl...
dustin/java-digg
src/main/java/net/spy/digg/parsers/StoriesParser.java
Java
mit
621
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("Op...
mswietlicki/OptimalizationFun
OptimalizationFun/Properties/AssemblyInfo.cs
C#
mit
1,410
require "../test_helper" require "rorschart/data/rorschart_data" module Rorschart class TestPivotSeries < Minitest::Unit::TestCase def test_pivot # Given data = [ {"collector_tstamp"=> Date.parse("2013-11-02"), "series" => "A", "count"=> 1}, {"collect...
viadeo/rorschart
test/data/pivot_series_test.rb
Ruby
mit
3,811
package de.thomas.dreja.ec.musicquiz.gui.dialog; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.app.DialogFragment; import android.content.DialogInterface; import android.os.Bundle; import de.thomas.dreja.ec.musicquiz.R; import de.thomas.dreja.ec.musicqu...
Nanobot5770/DasMusikQuiz
src/de/thomas/dreja/ec/musicquiz/gui/dialog/SortOrderSelectionDialog.java
Java
mit
1,823
# cooper document with one key example class RevisionedObject include Cooper::Document revision_field :key, type: String end describe 'Updating documents' do let(:object) do RevisionedObject.new end it 'works like Mongoid::Document' do object.key = 'value0' object.save object.update_attribut...
floum/cooper
features/updating_documents_spec.rb
Ruby
mit
386
<?php namespace BackendBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class DefaultControllerTest extends WebTestCase { public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/'); $this->assert...
haciel/sistema_comtable
tests/BackendBundle/Controller/DefaultControllerTest.php
PHP
mit
394
using System; using System.Net; using Microsoft.Extensions.Logging; namespace CakesNoteProxy { public static class NoteProxyConfigure { public static ILoggerFactory LoggerFactory; public static class NoteApi { public static string SiteFqdn { get; private set; }...
SiroccoHub/CakesNoteProxy
src/CakesNoteProxy/NoteProxyConfigure.cs
C#
mit
1,514
module HealthSeven::V2_5 class Rq1 < ::HealthSeven::Segment # Anticipated Price attribute :anticipated_price, St, position: "RQ1.1" # Manufacturer Identifier attribute :manufacturer_identifier, Ce, position: "RQ1.2" # Manufacturer's Catalog attribute :manufacturer_s_catalog, St, position: "RQ1.3" # Vendor...
niquola/health_seven
lib/health_seven/2.5/segments/rq1.rb
Ruby
mit
581
using System; using Lunt.IO; namespace Lunt { /// <summary> /// Represent a dependency to an asset. /// </summary> public sealed class AssetDependency { private readonly FilePath _path; private readonly long _fileSize; private readonly string _checksum; /// <summar...
lunt/lunt
src/Lunt/AssetDependency.cs
C#
mit
1,748
#include "ofQuickTimeGrabber.h" #include "ofUtils.h" #if !defined(TARGET_LINUX) && !defined(MAC_OS_X_VERSION_10_7) //--------------------------------- #ifdef OF_VIDEO_CAPTURE_QUICKTIME //--------------------------------- //-------------------------------------------------------------- static ComponentResult frameI...
murataka9/iOSinOF-NativeGUISample
of_v0.9.3_ios_release/libs/openFrameworks/video/ofQuickTimeGrabber.cpp
C++
mit
25,185
# frozen_string_literal: true require 'spec_helper' describe 'logging' do it "should have a logger" do expect(Dummy).to respond_to(:logger) end it "should be able to log debug methods" do expect(Dummy.logger).to respond_to(:debug) end it "should be settable" do expect(Dummy).to respond_to(:log...
controlshift/vertebrae
spec/logger_spec.rb
Ruby
mit
412
// Copyright (c) 2015-2018 William W. Fisher (at gmail dot com) // This file is distributed under the MIT License. #include "ofp/tablestatus.h" #include "ofp/writable.h" using namespace ofp; bool TableStatus::validateInput(Validation *context) const { size_t length = context->length(); if (length < sizeof(Tabl...
byllyfish/oftr
src/ofp/tablestatus.cpp
C++
mit
1,028
require 'delegate' module Bizflow module BusinessModel class SimpleWrapper < SimpleDelegator def self.wrap(item) new item end def self.wraps(items) res = items.map do |item| new item end res end end end end
sljuka/bizflow
lib/bizflow/business_model/simple_wrapper.rb
Ruby
mit
294
class Solution { public int solution(int[] A) { int[] temArray = new int[A.length + 2]; for (int i = 0; i < A.length; i++) { temArray[A[i]] = 1; } for (int i = 1; i < temArray.length + 1; i++) { if(temArray[i] == 0){ return i; ...
majusko/codility
PermMissingElem.java
Java
mit
392
function EditMovieCtrl(MovieService,$stateParams) { // ViewModel const edit = this; edit.title = 'Edit Movies' + $stateParams.id; edit.back = function(){ window.history.back() } edit.checker = function(bool){ if(bool=='true') return true; if(bool=='false') return false; } ...
johndoechang888/popcorn
fe/app/js/controllers/EditMovieCtrl.js
JavaScript
mit
882
/** * @fileoverview Rule to require or disallow line breaks inside braces. * @author Toru Nagashima */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ let astUtils = requ...
lauracurley/2016-08-ps-react
node_modules/eslint/lib/rules/object-curly-newline.js
JavaScript
mit
7,202
import random, math import gimp_be #from gimp_be.utils.quick import qL from gimp_be.image.layer import editLayerMask from effects import mirror import numpy as np import UndrawnTurtle as turtle def brushSize(size=-1): """" Set brush size """ image = gimp_be.gimp.image_list()[0] drawable = gimp_be.p...
J216/gimp_be
gimp_be/draw/draw.py
Python
mit
26,770
import {Option} from "./option"; export class HelpOption extends Option { /** * */ constructor() { super(); this.shortName = 'h'; this.longName = 'help'; this.argument = ''; } }
scipper/angularjs-cli
src/angularjs-cli/options/help.option.ts
TypeScript
mit
210
import * as React from 'react'; import { createIcon } from '../Icon'; export const ShieldIcon = createIcon( <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" />, 'ShieldIcon' );
keystonejs/keystone
design-system/packages/icons/src/icons/ShieldIcon.tsx
TypeScript
mit
186
"use strict"; var GLOBAL_MOUNT_POINT_MAX = Math.pow(2, 53); var util = { uuid: function(){ return Math.ceil(Math.random() * GLOBAL_MOUNT_POINT_MAX); } }; module.exports = util;
Ovaldi/node-cqrs
src/util.js
JavaScript
mit
194
<?php namespace ToyLang\Core\Lexer; use ToyLang\Core\Lexer\Token\Token; use ToyLang\Core\Lexer\Token\TokenType; interface Lexer { /** * @param TokenType $tokenType * @return $this */ public function addTokenType(TokenType $tokenType); /** * @param TokenType[] $tokenTypes * @retu...
estelsmith/toy-language
src/Core/Lexer/Lexer.php
PHP
mit
486
require 'test_helper' class CustomerQuestionshipTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
chinxianjun/autorepair
test/unit/customer_questionship_test.rb
Ruby
mit
134
/** * @author Mat Groves http://matgroves.com/ @Doormat23 */ /** * A DisplayObjectContainer represents a collection of display objects. * It is the base class of all display objects that act as a container for other objects. * * @class DisplayObjectContainer * @extends DisplayObject * @constructor */ PIXI.D...
MKelm/pixi.js
src/pixi/display/DisplayObjectContainer.js
JavaScript
mit
7,407
function ga() {} var _gaq = []
NonLogicalDev/ucsd_cat125
client/scripts/ga.js
JavaScript
mit
31
export { default } from 'ember-stripe-elements/components/stripe-card';
code-corps/ember-stripe-elements
app/components/stripe-card.js
JavaScript
mit
72
<?php return [ /** *-------------------------------------------------------------------------- * Default Broadcaster *-------------------------------------------------------------------------- * * This option controls the default broadcaster that will be used by the * framework when ...
lioneil/pluma
config/broadcasting.php
PHP
mit
1,626
#include "binary_buffer.hpp" #include <iterator> #include <algorithm> #include <sstream> #include <boost/endian/conversion.hpp> using boost::endian::native_to_big; using boost::endian::big_to_native; namespace { using aria::byte; template <typename P> void append_bytes_to_vector(std::vector<byte> & vec,...
Andlon/aria
src/util/binary_buffer.cpp
C++
mit
4,531
version https://git-lfs.github.com/spec/v1 oid sha256:a2aca9cd81f31f3e9e83559fdcfa84d3ee900090ee4baeb2bae129e9d06473eb size 1264
yogeshsaroya/new-cdnjs
ajax/libs/foundation/5.4.1/js/foundation/foundation.equalizer.min.js
JavaScript
mit
129
const exec = require('child_process').exec const path = require('path') const fs = require('fs') const execPath = process.execPath const binPath = path.dirname(execPath) const dep = path.join(execPath, '../../lib/node_modules/dep') const repository = 'https://github.com/depjs/dep.git' const bin = path.join(dep, 'bin/de...
depjs/dep
scripts/install.js
JavaScript
mit
676
using MongoDB.Driver; namespace AspNet.Identity.MongoDB { public class IndexChecks { public static void EnsureUniqueIndexOnUserName<TUser>(IMongoCollection<TUser> users) where TUser : IdentityUser { var userName = Builders<TUser>.IndexKeys.Ascending(t => t.UserName); var unique = new CreateIndexOptions...
winterdouglas/aspnet-identity-mongo
src/AspNet.Identity.MongoDB/IndexChecks.cs
C#
mit
993
class SystemModule < ActiveRecord::Base attr_accessible :name def self.CUSTOMER readonly.find_by_name("Customer") end def self.USER readonly.find_by_name("User") end def self.CONTACT readonly.find_by_name("Contact") end end
woese/guara-crm
app/models/system_module.rb
Ruby
mit
262
package org.aikodi.chameleon.support.statement; import org.aikodi.chameleon.core.declaration.Declaration; import org.aikodi.chameleon.core.element.ElementImpl; import org.aikodi.chameleon.core.lookup.DeclarationSelector; import org.aikodi.chameleon.core.lookup.LookupContext; import org.aikodi.chameleon.core.lookup.Loo...
markovandooren/chameleon
src/org/aikodi/chameleon/support/statement/StatementExprList.java
Java
mit
2,449
"use strict"; ace.define("ace/snippets/matlab", ["require", "exports", "module"], function (e, t, n) { "use strict"; t.snippetText = undefined, t.scope = "matlab"; });
IonicaBizau/arc-assembler
clients/ace-builds/src-min-noconflict/snippets/matlab.js
JavaScript
mit
172
(function(){ /** * PubSub implementation (fast) */ var PubSub = function PubSub( defaultScope ){ if (!(this instanceof PubSub)){ return new PubSub( defaultScope ); } this._topics = {}; this.defaultScope = defaultScope || this; }; PubSub.prototype...
lejoying/ibrainstroms
web/PhysicsJS/src/util/pubsub.js
JavaScript
mit
3,581
function fixPosition() { console.log($(window).scrollTop()); // if its anywhee but at the very top of the screen, fix it if ($(window).scrollTop() >= headerHeight) { // magic number offset that just feels right to prevent the 'bounce' // if (headPosition.top > 0){ $('body').addClass('js-fix-positi...
brtdesign/brtdesign.github.io
work/af-december2016/assets/js/_default.js
JavaScript
mit
2,769