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 |
|---|---|---|---|---|---|
from typing import cast
from pytest import raises
from graphql import graphql_sync
from graphql.type import (
GraphQLArgument,
GraphQLBoolean,
GraphQLEnumType,
GraphQLEnumValue,
GraphQLField,
GraphQLFloat,
GraphQLID,
GraphQLInt,
GraphQLObjectType,
GraphQLSchema,
GraphQLStri... | graphql-python/graphql-core | tests/utilities/test_build_client_schema.py | Python | mit | 35,277 |
import { withStyles } from '@material-ui/core/styles';
import cx from 'clsx';
export const SideSection = withStyles(theme => ({
aside: {
[theme.breakpoints.up('md')]: {
minWidth: 0,
flex: 1,
padding: '0 20px',
background: theme.palette.background.paper,
borderRadius: theme.shape.bo... | cofacts/rumors-site | components/SideSection.js | JavaScript | mit | 2,921 |
var $topnav = $('#topnav-row .col');
var $sidebar = $('#main-row .sidebar');
var $main = $('#main-row .main');
$(document).on('click', '.on-sidebar-toggler', function (e) {
$sidebar.toggleClass('col-md-3 col-lg-2 d-md-block col-12');
$topnav.toggleClass('d-md-none');
$main.toggleClass('col-md-9 col-lg-10 ... | osalabs/osafw-asp.net | www/App_Data/template/layout/common.js | JavaScript | mit | 334 |
/**
* @jsx React.DOM
*/
/* not used but thats how you can use touch events
* */
//React.initializeTouchEvents(true);
/* not used but thats how you can use animation and other transition goodies
* */
var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup;
/**
* we will use yes for true
* we will use no f... | inquisive/wallet-manager | public/js/.module-cache/ab49b1cc9df6578c57e04eb43cab7040e5bdb3ee.js | JavaScript | mit | 21,475 |
package jp.gr.java_conf.kgd.library.cool.jsfml.actor.parts.scroll.bar;
public interface IConstScrollbarController
{
boolean isVertical();
float getSliderPositionRate();
float getSliderLengthRate();
}
| t-kgd/library-cool | cool-jsfml/src/main/java/jp/gr/java_conf/kgd/library/cool/jsfml/actor/parts/scroll/bar/IConstScrollbarController.java | Java | mit | 206 |
response.title = "Enter H4H"
response.subtitle = "Smart House4H Access Control"
response.meta.keywords = "arduino hacker space"
response.menu = [
(T('Gate'), False, URL('default','gate')),
(T('Door'), False, URL('default','door')),
(T('About'), False, URL('default','about')),
]
| house4hack/openSHAC | web2py_shac/applications/enter/models/menu.py | Python | mit | 282 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es_MX" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Aleacoin</source>
<translation type="unfinished"/>
</message>
<message>
<location li... | aleacoin/aleacoin-release | src/qt/locale/bitcoin_es_MX.ts | TypeScript | mit | 110,454 |
<?php
declare(strict_types=1);
namespace Overblog\GraphQLBundle\Command;
use GraphQL\Type\Introspection;
use GraphQL\Utils\SchemaPrinter;
use InvalidArgumentException;
use Overblog\GraphQLBundle\Request\Executor as RequestExecutor;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\In... | overblog/GraphQLBundle | src/Command/GraphQLDumpSchemaCommand.php | PHP | mit | 4,754 |
/**
* Wrapper for the component that compatible with amd, commonjs and as global object
*/
(function (root, factory) {
if(typeof define === "function" && define.amd) {
define(function () {
return factory();
});
} else if(typeof module === "object" && module.exports) {
module.exports = f... | yjcxy12/react-treeview-component | src/Tree/intro.js | JavaScript | mit | 417 |
package org.robolectric.shadows;
import android.widget.AbsSpinner;
import android.widget.SpinnerAdapter;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
import org.robolectric.util.ReflectionHelpers.ClassParameter;
import st... | cesar1000/robolectric | robolectric-shadows/shadows-core/src/main/java/org/robolectric/shadows/ShadowAbsSpinner.java | Java | mit | 1,436 |
module.exports = require('./src/LensedStateMixin'); | Laiff/react-lensed-state | index.js | JavaScript | mit | 51 |
require 'active_support/basic_object'
module CleverElements
class Proxy
attr_reader :client, :wsdl, :proxy_methods, :response_methods
def initialize client
@client = client
@wsdl = client.savon.wsdl
@proxy_methods = Module.new
@response_methods = Module.new
build_pro... | kayoom/clever_elements | lib/clever_elements/proxy.rb | Ruby | mit | 2,432 |
package com.ziyuan.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.net.URL;
import java.net.URLDecoder;
import java.util.Collections;
import java.util.Enumeration;
import java... | carryxyh/Electrons | electrons/src/main/java/com/ziyuan/util/ClassUtil.java | Java | mit | 13,408 |
<?php
/**
* Post archive for tags and categories
*
* @package mb
*/
namespace MauroBringolf;
?>
<?php get_header(); ?>
<main class="content">
<?php if ( have_posts() ) : ?>
<section>
<h2>#<?php single_tag_title(); ?></h2>
<?php post_list(); ?>
</section>
<?php endif; ?>
</main>
<?php get_footer(); ... | maurobringolf/mb | archive.php | PHP | mit | 323 |
package auth
import (
"errors"
"fmt"
"golang.org/x/net/context"
"google.golang.org/appengine/datastore"
)
var (
sessionKey = contextKey("session-key")
)
// Errors
var (
ErrMissingToken = errors.New("no auth token found")
ErrNoSuchAccount = errors.New("failed to find account")
)
// Session provides helper m... | chrisolsen/ae | auth/session.go | GO | mit | 1,237 |
/*
* Open Payments Cloud Application API
* Open Payments Cloud API
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.ixaris.ope.applications.cl... | ixaris/ope-applicationclients | java-client/src/main/java/com/ixaris/ope/applications/client/model/DepositProfiles.java | Java | mit | 4,465 |
# Enter your code here. Read input from STDIN. Print output to STDOUT
import re
t = int(raw_input())
for i in range(t):
try:
x = re.compile(raw_input())
if x:
print True
except:
print False | ugaliguy/HackerRank | Python/Errors-and-Exceptions/incorrect-regex.py | Python | mit | 246 |
using System.Collections.Generic;
using UltimateTeam.Toolkit.Parameters;
namespace UltimateTeam.Toolkit.Models
{
public class ItemData
{
public long AssetId { get; set; }
public ushort Assists { get; set; }
public List<Attribute> AttributeList { get; set; }
public ushort Car... | lorenzh/FIFA-Ultimate-Team-Toolkit | UltimateTeam.Toolkit/Models/ItemData.cs | C# | mit | 1,750 |
#include "PathSearchNode.h"
bool PathSearchNode::IsSameState( PathSearchNode &rhs , void* context)
{
return coord == rhs.coord && timestamp == rhs.timestamp;
}
float PathSearchNode::GoalDistanceEstimate( PathSearchNode &nodeGoal , void* _context)
{
int cost_hX = abs(coord.x - nodeGoal.coord.x);
int cost_hY = ab... | Drona-Org/DronaForPX4 | Src/Lib/ExternalMotionPlanners/AStarPlanner/Src/PathSearchNode.cpp | C++ | mit | 3,025 |
/**
* Module dependencies
*/
var utils = require('../utils');
var safeRequire = utils.safeRequire;
var cassandra = safeRequire('cassandra-driver');
var Types = cassandra.types;
var timeUUID = Types.timeuuid;
var util = require('util');
var BaseSQL = require('../sql');
exports.initialize = function initializeSchema(s... | philipz/caminte | lib/adapters/cassandra.js | JavaScript | mit | 23,406 |
$(document).ready(function(){
$("#lang").change(function(){
var lang = $("#lang").val();
$.ajax({
"type":"POST",
// "url":baseUrl+"home/checklang",
"data":"lang="+lang,
"async":true,
"success":function(result){
window.location=baseUrl+lang;
}
... | vungocgiao1510/giao | public/default/js/jquery_code.js | JavaScript | mit | 339 |
import Pyro4
import Pyro4.errors
from diffiehellman import DiffieHellman
dh = DiffieHellman(group=14)
with Pyro4.locateNS() as ns:
uri = ns.lookup("example.dh.secretstuff")
print(uri)
p = Pyro4.Proxy(uri)
try:
p.process("hey")
raise RuntimeError("this should not be reached")
except Pyro4.errors.Pyro... | irmen/Pyro4 | examples/diffie-hellman/client.py | Python | mit | 786 |
#region License Information (GPL v3)
/*
ShareX - A program that allows you to take screenshots and share any file type
Copyright (c) 2007-2016 ShareX Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the ... | Jaex/puush-installer | puush-installer/ShareX.HelpersLib/GitHubUpdateChecker.cs | C# | mit | 7,044 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace FancyAsyncMagic
{
public class AsyncWriter
{
private readonly Stream _Stream;
public AsyncWriter(Stream stream)
{
... | main--/FancyAsyncMagic | FancyAsyncMagic/AsyncWriter.cs | C# | mit | 2,141 |
<?php
/*
* This file is part of KoolKode BPMN.
*
* (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.
*/
declare(strict_types = 1);
namespace KoolKode\BPMN\Task\Command;
use KoolKode\BP... | koolkode/bpmn | src/Task/Command/UnclaimUserTaskCommand.php | PHP | mit | 1,946 |
# -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies and Contributors
# See license.txt
import frappe
import unittest
# test_records = frappe.get_test_records('OAuth Authorization Code')
class TestOAuthAuthorizationCode(unittest.TestCase):
pass
| mhbu50/frappe | frappe/integrations/doctype/oauth_authorization_code/test_oauth_authorization_code.py | Python | mit | 261 |
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
from folium.plugins.marker_cluster import MarkerCluster
from folium.utilities import _validate_coordinates
from jinja2 import Template
class FastMarkerCluster(MarkerCluster):
"""
Add marker clusters to a map using in... | QuLogic/folium | folium/plugins/fast_marker_cluster.py | Python | mit | 3,213 |
namespace OggVorbisEncoder.Setup.Templates.FloorBooks
{
public class Line256X7_0Sub3 : IStaticCodeBook
{
public int Dimensions { get; } = 1;
public byte[] LengthList { get; } = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 2, 5, 3, 5... | vr-the-feedback/vr-the-feedback-unity | Assets/VRTheFeedback/Scripts/OggVorbisEncoder/Setup/Templates/FloorBooks/Line256X7_0Sub3.cs | C# | mit | 775 |
#include "SumUnique.cc"
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <sys/time.h>
#include <vector>
const static double __EPSILON = 1e-9;
static double __time = 0.0;
static void __timer_start()
{
struct timeval tv;
i... | mathemage/CompetitiveProgramming | topcoder/SRM/Rookie-SRM-7-DIV-1/500/driver.cc | C++ | mit | 3,736 |
/* jshint node: true */
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
all: [
'*.js',
'spec/*.js'
],
options: {
jshintrc: '.jshintrc'
}
},
jasmine: {
src: 'method-proxy.js... | causes/method-proxy-js | Gruntfile.js | JavaScript | mit | 584 |
var gulp = require('gulp'),
sass = require('gulp-sass'),
scsslint = require('gulp-scss-lint');
gulp.task('sass', function () {
gulp.src('./_sass/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./css'));
});
gulp.task('scsslint', function () {
gulp.src('./_sass/**/*.scss')
.... | rogeralbinoi/html5-boilerplate-sass-lint | Gulpfile.js | JavaScript | mit | 557 |
<?php
require_once __DIR__ . '/vendor/autoload.php';
use Chadicus\Marvel\Api\Client;
use Chadicus\Marvel\Api\Entities\ImageVariant;
use DominionEnterprises\Util\Arrays;
$nameStartsWith = Arrays::get($_POST, 'nameStartsWith');
?>
<html>
<head>
<style>
label { display: inline-block; width: 140... | chadicus/marvel-api-client | examples/gallery/index.php | PHP | mit | 2,104 |
<?php
/*******************************************************************
* Glype is copyright and trademark 2007-2015 UpsideOut, Inc. d/b/a Glype
* and/or its licensors, successors and assigners. All rights reserved.
*
* Use of Glype is subject to the terms of the Software License Agreement.
* http://www.glype.com/li... | selecterskyphp/glype_chs | includes/parser.php | PHP | mit | 34,604 |
namespace NorthwindWindowsStore.DAL.Model.Interface
{
public interface ITerritory
{
}
} | krzysztofkolek/NorthwindWindowsStore | NorthwindWindowsStoreService/NorthwindWindowsStore.DAL.Model/Interface/ITerritory.cs | C# | mit | 99 |
/*
Project : 4-9 Math Tutor
Author : Mohammad Al-Husseini
Description : Displays two random numbers to be added then waits for the user to solve it.
The user can type their result in and the program tells them if they are correct.
Knowns : 2x Random Numbers - Int
Inputs : Answer - Int
Display : ... | menarus/C-Course | Solutions/Ch4/4-09 Math Tutor.cpp | C++ | mit | 1,339 |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | Azure/azure-sdk-for-python | sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_04_01/models/__init__.py | Python | mit | 6,678 |
<?php
require_once __DIR__ . '/../../lib/DoublyLinkedListNode.php';
class SumListNoConvertReversed {
public static function sum(Node $n1, Node $n2) {
$head = $tail = null;
$n1Length = self::getLinkedListSize($n1);
$n2Length = self::getLinkedListSize($n2);
$maxLength = max($n1Lengt... | Kiandr/CrackingCodingInterview | php/src/chapter02/question2.5/SumListNoConvertReversed.php | PHP | mit | 2,104 |
#!/usr/bin/env node
import {cd, exec, rm, set} from 'shelljs';
import * as fs from 'fs';
// Fail on first error
set('-e');
// Install Angular packages that are built locally from HEAD.
// This also gets around the bug whereby yarn caches local `file://` urls.
// See https://github.com/yarnpkg/yarn/issues/2165
// The... | mgechev/angular | integration/ng_elements_schematics/test.ts | TypeScript | mit | 2,456 |
<?php
class Pilotes extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->model('Pilote_model');
}
public function index() {
$data['title'] = 'Gestion des pilotes';
$this->load->view('header', $data);
// Critères sur les pilotes à afficher
$champs = $this->Pilote_... | Sayomul/GestionParapente | application/controllers/Pilotes.php | PHP | mit | 3,292 |
<?php
namespace SEC\SolicitudesBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class ProcesoType extends AbstractType {
public function buildForm(FormBuilderInterface $builder, array $options)... | miguelplazasr/sec | src/SEC/SolicitudesBundle/Form/ProcesoType.php | PHP | mit | 2,796 |
require 'rails_helper'
describe UserImportResult do
#pending "add some examples to (or delete) #{__FILE__}"
end
# == Schema Information
#
# Table name: user_import_results
#
# id :bigint not null, primary key
# user_import_file_id :bigint
# user_id :bigint
# body ... | next-l/enju_library | spec/models/user_import_result_spec.rb | Ruby | mit | 464 |
package com.example.alexeyglushkov.uimodulesandclasses.activitymodule.presenter;
import com.example.alexeyglushkov.uimodulesandclasses.activitymodule.view.ActivityModuleItemView;
import com.example.alexeyglushkov.uimodulesandclasses.activitymodule.view.ActivityModuleView;
/**
* Created by alexeyglushkov on 02.04.17.... | soniccat/android-taskmanager | ui/src/main/java/com/example/alexeyglushkov/uimodulesandclasses/activitymodule/presenter/ActivityModuleItem.java | Java | mit | 422 |
'use strict';
// helper to start and stop the redis process.
var config = require('./config');
var fs = require('fs');
var path = require('path');
var spawn = require('win-spawn');
var spawnFailed = false;
var tcpPortUsed = require('tcp-port-used');
// wait for redis to be listening in
// all three modes (ipv4, ipv6,... | MailOnline/node_redis | test/lib/redis-process.js | JavaScript | mit | 2,328 |
/*global
piranha, tinymce
*/
//
// Create a new inline editor
//
piranha.editor.addInline = function (id, toolbarId) {
tinymce.init({
selector: "#" + id,
browser_spellcheck: true,
fixed_toolbar_container: "#" + toolbarId,
menubar: false,
branding: false,
statusba... | PiranhaCMS/piranha.core | core/Piranha.Manager.TinyMCE/assets/piranha.editor.js | JavaScript | mit | 1,717 |
'use strict';
import path from 'path';
import autoprefixer from 'autoprefixer-core';
import gulpif from 'gulp-if';
export default function(gulp, plugins, args, config, taskTarget, browserSync) {
let dirs = config.directories;
let entries = config.entries;
let dest = path.join(taskTarget, dirs.styles.replace(/^_... | jacekpolak/generator-yeogurt | app/templates/gulp/es6/sass.js | JavaScript | mit | 1,348 |
@extends('adminlte::page')
@section('title', 'Redirects')
@section('content_header')
<h1>Redirects</h1>
@stop
@section('content')
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-body">
@include('admin.redirects._form', [
... | patrykwozinski/shared-flat | resources/views/admin/redirects/create.blade.php | PHP | mit | 474 |
namespace EngineOverflow.Web.ViewModels.Manage
{
using System.ComponentModel.DataAnnotations;
public class AddPhoneNumberViewModel
{
[Required]
[Phone]
[Display(Name = "Phone Number")]
public string Number { get; set; }
}
}
| delyan-nikolov-1992/EngineOverflow | Source/Web/EngineOverflow.Web/ViewModels/Manage/AddPhoneNumberViewModel.cs | C# | mit | 276 |
var Articles = require("../articles");
var summarize = require("../summarize");
var translate = require("../translate");
var pipeline = require("../pipeline");
var veoozInterface = require("./veoozInterface.js");
module.exports = function (socketEnsureLoggedIn, socket) {
function handleError(err) {
return... | nisargjhaveri/news-access | server/handleSocket.js | JavaScript | mit | 4,291 |
module Fog
module OpenStack
class Compute
class Real
def list_os_interfaces(server_id)
request(
:expects => [200, 203],
:method => 'GET',
:path => "servers/#{server_id}/os-interface"
)
end
end
class Mock
def lis... | fog/fog-openstack | lib/fog/openstack/compute/requests/list_os_interfaces.rb | Ruby | mit | 530 |
'use strict';
var _ = require('lodash');
var moment = require('moment');
var util = require('util');
var articleService = require('../../services/article');
var listOrSingle = require('./lib/listOrSingle');
function parse (params) {
var formats = ['YYYY', 'MM', 'DD'];
var parts = _.values(params);
var len = par... | cshum/ponyfoo | controllers/articles/dated.js | JavaScript | mit | 1,693 |
using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.OS;
using Android.Support.V7.App;
using System;
using System.IO;
namespace Teaching.Skills.Droid.Activities
{
[Activity(Label = "@string/app_title", Icon = "@drawable/icon", Theme = "@style/App.Default",
ConfigurationCh... | ennerperez/teaching-skills | teaching.skills.droid/Activities/BaseActivity.cs | C# | mit | 2,260 |
using System.Collections.Immutable;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Diagnostics;
namespace CodeTiger.CodeAnalysis.Analyzers.Readability
{
/// <summary>
/// Analyzes general readability issues.
/// </summary>
[DiagnosticAnalyzer(LanguageNa... | csdahlberg/CodeTiger.CodeAnalysis | CodeTiger.CodeAnalysis/Analyzers/Readability/GeneralReadabilityAnalyzer.cs | C# | mit | 1,931 |
#include "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "walletmodel.h"
#include <QMessageBox>
#include <QPushButton>
#include <QKeyEvent>
AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
QDialog(parent),
ui(new Ui::AskPassphraseDialog),
... | rcoinwallet/RCoinUSA | src/qt/askpassphrasedialog.cpp | C++ | mit | 9,309 |
namespace Mirage.Urbanization.ZoneStatisticsQuerying
{
public interface IQueryCrimeResult : IQueryCellValueResult { }
} | Miragecoder/Urbanization | src/Mirage.Urbanization/ZoneStatisticsQuerying/IQueryCrimeResult.cs | C# | mit | 123 |
# frozen_string_literal: true
require 'spec_helper'
require 'vk/api/ads/targ_suggestions_regions'
RSpec.describe Vk::API::Ads::TargSuggestionsRegions do
subject(:model) { described_class }
it { is_expected.to be < Dry::Struct }
it { is_expected.to be < Vk::Schema::Object }
describe 'attributes' do
subject... | alsemyonov/vk | spec/vk/api/ads/targ_suggestions_regions_spec.rb | Ruby | mit | 497 |
package percolate;
/******************************************************************************
* Compilation: javac InteractivePercolationVisualizer.java
* Execution: java InteractivePercolationVisualizer N
* Dependencies: PercolationVisualizer.java Percolation.java
*
* This program takes the grid size... | TicknorN/B8-CSC301 | Percolate/src/percolate/InteractivePercolationVisualizer.java | Java | mit | 2,166 |
/*! \file */
/* ************************************************************************
* Copyright (c) 2019-2022 Advanced Micro Devices, Inc.
*
* 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 S... | ROCmSoftwarePlatform/rocSPARSE | clients/testings/testing_gthr.cpp | C++ | mit | 6,546 |
<?php
/**
* @package start
*/
?>
<h1>integration</h1>
<div class="content-section-b">
<div class="container">
<h1 class="title">Carreiras</h1>
<div class="sidebar col-md-3">
<div>
<h4 class='col-md-6'>total (<span id="total_vagas99">0</span>)</h4>
<!--<div class... | deigmaranderson/99carreiras | 99carreiras/template-parts/integration.php | PHP | mit | 2,732 |
namespace Bridge.Redux.Tests
{
using Html5;
using QUnit;
public static class ReduxThunkTests
{
public static void Run()
{
var initialCounter = new Counter { Count = 5 };
var counterReducer =
BuildReducer.For<Counter>()
... | Zaid-Ajaj/Bridge.Redux | Bridge.Redux.Tests/ReduxThunkTests.cs | C# | mit | 1,774 |
<?php
/* TwigBundle:Exception:traces.txt.twig */
class __TwigTemplate_39f631a2eb2e29d9f4069821c7f3afd5beaf2ed87b37023f3fdd2045c6e3f438 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | spvernet/symfony_2 | app/cache/dev/twig/39/f6/31a2eb2e29d9f4069821c7f3afd5beaf2ed87b37023f3fdd2045c6e3f438.php | PHP | mit | 1,750 |
using Jobber.Core;
using Jobber.Sample.Contract;
namespace Jobber.Sample.JobProducer
{
class TodoJob : Job<Todo>
{
}
} | GokGokalp/Jobber | Jobber.Sample.JobProducer/TodoJob.cs | C# | mit | 134 |
function onInitSchema(schema, className) {
schema.helpers = {};
};
export default onInitSchema; | jagi/meteor-astronomy | lib/modules/helpers/hooks/onInitSchema.js | JavaScript | mit | 98 |
module Adman
# Indicates this service is a web application
WEB_APPLICATION = "_web_app"
# Announces services on a network or other venue.
class Campaign
attr_reader :message
attr_reader :venues
# Create a new Campaign to advertize the given service.
#
# If the service given isn't already... | MarkBennett/announcer | lib/announcer.rb | Ruby | mit | 1,899 |
using System.Collections;
using UnityEngine;
[RequireComponent (typeof(Animator))]
public class SpriteDestruction : MonoBehaviour
{
private SpriteBuilder m_spriteBuilder;
private Animator m_animator;
public float TimeToDestroy = 1;
public int DestroySquarePixelSize = 10;
public int DestroySquareCount = 5;
voi... | skahal/SpaceInvadersRemake | src/SpaceInvadersRemake/Assets/Scripts/SpriteDestruction.cs | C# | mit | 1,423 |
var angular = require('angular');
angular.module('rsInfiniteScrollDemo', [require('rs-infinite-scroll').default])
/*@ngInject*/
.controller('RsDemoController', ['$q', '$timeout', function($q, $timeout) {
var ctrl = this;
ctrl.scrollProxy = {
loadPrevious,
loadFollowing
};
ctrl.dummyLis... | RetroSquareGroup/rs-infinite-scroll | demo/demo.js | JavaScript | mit | 1,907 |
<?php
/*
* This file is part of the json-schema bundle.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace HadesArchitect\JsonSchemaBundle\Exception;
use HadesArchitect\JsonSchemaBundle\Error\Error;
class ViolationExceptio... | HadesArchitect/JsonSchemaBundle | Exception/ViolationException.php | PHP | mit | 898 |
/***************************************
** Tsunagari Tile Engine **
** window.cpp **
** Copyright 2011-2014 PariahSoft LLC **
***************************************/
// **********
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software ... | pariahsoft/TsunagariC | src/window.cpp | C++ | mit | 1,938 |
class MagicDictionary {
public:
map<int, vector<string>> m;
/** Initialize your data structure here. */
MagicDictionary() {
}
/** Build a dictionary through a list of words */
void buildDict(vector<string> dict) {
for (auto &i : dict) {
m[i.length()].push_b... | MegaShow/college-programming | OJ/LeetCode/676 Implement Magic Dictionary.cpp | C++ | mit | 1,046 |
<?php
return array (
'id' => 'zte_z750c_ver1',
'fallback' => 'generic_android_ver4_1',
'capabilities' =>
array (
'model_name' => 'Z750C',
'brand_name' => 'ZTE',
'marketing_name' => 'Savvy',
'physical_screen_height' => '88',
'physical_screen_width' => '53',
'resolution_width' => '480',
... | cuckata23/wurfl-data | data/zte_z750c_ver1.php | PHP | mit | 361 |
/*
* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file.
*/
package com.microsoft.o365_android_onenote_rest;
import com.microsoft.AzureADModule;
import com.microsoft.AzureAppCompatActivity;
import com.microsoft.live.LiveAuthClient;
import com.mic... | OneNoteDev/Android-REST-API-Explorer | app/src/main/java/com/microsoft/o365_android_onenote_rest/BaseActivity.java | Java | mit | 3,525 |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | portchris/NaturalRemedyCompany | src/app/code/core/Mage/Paypal/Block/Adminhtml/System/Config/Fieldset/PathDependent.php | PHP | mit | 2,121 |
<?php
namespace Domora\TvGuide\Data;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use JMS\Serializer\Annotation as Serializer;
/**
* @ORM\Entity
* @ORM\Table(name="service")
*/
class Service
{
/**
* @ORM\Id
* @ORM\Column(type="string")
* @Serializer\Groups({... | domora/tvguide | src/Domora/TvGuide/Data/Service.php | PHP | mit | 2,698 |
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("No... | DDReaper/XNAGameStudio | Samples/PushRecipe_WP7_SL/Source/WindowsPhone.Recipes.Push.Messasges/Properties/AssemblyInfo.cs | C# | mit | 1,525 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = {
reddit: {
userAgent: 'USER_AGENT',
clientId: 'CLIENT ID',
clientSecret: 'CLIENT SECRET',
username: 'BOT USERNAME',
password: 'BOT PASSWORD'
},
mods: ['MODERATOR_1', 'MODERATOR_2']
}; | cmhoc/fuckmwbot | dist/config.js | JavaScript | mit | 308 |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Powder_Plastic_Coat_Model extends CI_Model {
private $powder_plastic_coatTable = 'powder_plastic_coat';
private $powder_plastic_coatColumn = 'powder_plastic_coat_id';
public function __construct()
{
parent::__const... | aliudin-ftc/just-in-time-version-2 | application/models/Powder_Plastic_Coat_Model.php | PHP | mit | 16,688 |
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Ci::Pipeline::Seed::Environment do
let_it_be(:project) { create(:project) }
let(:job) { build(:ci_build, project: project) }
let(:seed) { described_class.new(job) }
let(:attributes) { {} }
before do
job.assign_attributes(**attributes)... | stoplightio/gitlabhq | spec/lib/gitlab/ci/pipeline/seed/environment_spec.rb | Ruby | mit | 1,171 |
<?php
namespace Phrest\API;
use PHPUnit\Framework\TestCase;
use Zend\Diactoros\ServerRequest;
class RESTActionTraitTestClassBase
{
use RESTActionTrait;
}
class RESTActionTraitTestClass extends RESTActionTraitTestClassBase
{
public function get()
{
}
public function delete()
{
}
}
cla... | DonUrks/phrest | tests/Phrest/API/RESTActionTraitTest.php | PHP | mit | 4,648 |
using Naxis.Core.Components;
namespace Naxis.Core.Security
{
public class AuthedUser
{
/// <summary>
/// 授权服务
/// </summary>
private static readonly IAuthenticationService Service = ObjectContainer.Resolve<IAuthenticationService>();
/// <summary>
/// 获取当前用户信息
... | swpudp/Naxis | Naxis.Common/Security/AuthedUser.cs | C# | mit | 494 |
<?php
$pageTitle = "News Feed";
require('includes/header.php');
$my_friends=$mysqli->query("SELECT friendArray FROM profile WHERE userID=$userID");
$myfriends=mysqli_fetch_row($my_friends);
$myfriends=implode("",$myfriends);
$my_friends_array=explode(",",$myfriends);
//echo $my_friends_array;
?>
<link href="css/4Ins... | mgander/4inst | home.php | PHP | mit | 1,563 |
"use strict";
var inspirationArchitectFactory = require('../inspiration-architect.min');
var should = require('should');
var _get = require('lodash/get');
var _set = require('lodash/set');
var globalTests = require('./global-tests');
var factoryTests = require('./factory-tests');
var config_files = require('../tes... | musejs/inspiration-architect | test-src/browserify.js | JavaScript | mit | 8,096 |
using System;
using System.IO;
using System.Reflection.Metadata;
using System.Reflection.PortableExecutable;
using System.Security.Cryptography;
namespace Radical.Windows.Bootstrap
{
//courtesy of NServiceBus https://github.com/Particular/NServiceBus/blob/4954af83fad81cc80769c8ed161ee4a37812d443/src/NServiceBus.C... | RadicalFx/Radical.Windows | src/Radical.Windows/Bootstrap/AssemblyValidator.cs | C# | mit | 2,902 |
var amqp=require("amqplib");
amqp.connect('amqp://localhost').then(function(connection){
return connection.createChannel().then(function(ch){
var ex="logs";
ch.assertExchange(ex,'fanout',{durable:true});
var ok=ch.assertQueue('',{exclusive:true})
.then(function(q){
console.log("[x]Waiting for message in '... | zhangmingkai4315/RabbitMQ-Nodejs | pub_sub/receive_logs.js | JavaScript | mit | 569 |
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "util.h"
#include "init.h"
#include <QString>
#include <QDateTime>
#include <QDoubleValidator>
#include <QFont>
#include <QLineEdit>
#include <QUrl>
#include <QTextDocument> // For Qt::escape
#include ... | testfaucetcoin/testfaucetcoin | src/qt/guiutil.cpp | C++ | mit | 13,417 |
<?php
namespace Tests\App;
use App\VCS\Git;
use App\VCS\Tagged;
use Illuminate\Filesystem\Filesystem;
use Mockery;
use App\VCS\Repository;
use Symfony\Component\Process\Exception\ProcessFailedException;
use Symfony\Component\Process\Process;
class GitTest extends \TestCase
{
/** @var Mockery\MockInterface */
... | realpage/asset-publisher | tests/unit/VCS/GitTest.php | PHP | mit | 3,894 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Topics.Radical.Model
{
/// <summary>
/// Applied to properties asks that models skip this property when notifying property changes.
/// </summary>
[AttributeUsage( AttributeTargets.Property )]
public se... | micdenny/radical | src/net35/Radical/Model/SkipPropertyValidationAttribute.cs | C# | mit | 392 |
/*
* SonarLint for Visual Studio
* Copyright (C) 2016-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version ... | SonarSource-VisualStudio/sonarlint-visualstudio | src/TestInfrastructure/Framework/ConfigurableRuleSetSerializer.cs | C# | mit | 4,356 |
package com.mdsol.mauth.proxy;
import com.typesafe.config.Config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.UUID;
public class ProxyConfig {
private static final Logger logger = LoggerFactory.getLogger(ProxyConfig.class);
public static final String V2_ONLY_SIGN_REQUESTS = "mauth.... | mdsol/mauth-java-client | modules/mauth-proxy/src/main/java/com/mdsol/mauth/proxy/ProxyConfig.java | Java | mit | 1,784 |
<?php
class updatePitchDeck_m extends CI_Model{
function __construct(){
parent::__construct();
}
function updateIdeaGen($data){
$sql = "update idea_genboard set problem = ? , people = ? , behavior = ? , solution = ? where idea_id = ?";
$query = $this->db->query($sql,array($data['problem'],$dat... | jLKisni/PitchItUp | application/modules/Web/models/updatePitchDeck_m.php | PHP | mit | 3,710 |
#ifndef M3D_RANDOM_UTILS_H
#define M3D_RANDOM_UTILS_H
#include <stdlib.h>
#include <math.h>
namespace m3D {
namespace utils {
float ranf()
{
return ((float) rand()) / ((float) RAND_MAX);
}
float box_muller(float m, float s)
{
float x1, x2, w, y1;
... | meteo-ubonn/meanie3D | src/utils/rand_utils.cpp | C++ | mit | 1,159 |
package co.navdeep.popmovies.tmdb.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Genre {
@SerializedName("id")
@Expose
private Integer id;
@SerializedName("name")
@Expose
private String name;
/**
*
* @return
... | navdeepsekhon/PopMovies | app/src/main/java/co/navdeep/popmovies/tmdb/model/Genre.java | Java | mit | 778 |
#include <cstring>
#include <occa/types/bits.hpp>
#include <occa/types/primitive.hpp>
#include <occa/internal/io.hpp>
#include <occa/internal/utils/lex.hpp>
#include <occa/internal/utils/string.hpp>
namespace occa {
primitive::primitive(const char *c) {
*this = load(c);
}
primitive::primitive(const std::st... | libocca/occa | src/types/primitive.cpp | C++ | mit | 49,514 |
/**
* pax
* https://github.com/reekoheek/pax
*
* Copyright (c) 2013 PT Sagara Xinix Solusitama
* Licensed under the MIT license.
* https://github.com/reekoheek/pax/blob/master/LICENSE
*
* Composer command
*
*/
var spawn = require('child_process').spawn,
d = require('simply-deferred');
module.exports = f... | krisanalfa/pax | lib/commands/grunt/add.js | JavaScript | mit | 1,004 |
/* globals require module */
const modelRegistrator = require("./utils/model-registrator");
module.exports = modelRegistrator.register("Superhero", {
name: {
type: String,
required: true
},
secretIdentity: {
type: String,
required: true
},
alignment: {
type:... | Minkov/Superheroes-Universe | models/superhero-model.js | JavaScript | mit | 594 |
var engine = require('../data.js');
var collection = engine.getCollection('posts');
var requiredKeys = ['title', 'markdown', 'body', 'slug', 'createdAt'];
var requiredMessage = 'You must provide at least these keys: ' + requiredKeys.join(', ');
function _dummyIndex(err, indexName) {
if (err) {
throw new Error(e... | joaodubas/blog | lib/data-post/index.js | JavaScript | mit | 3,760 |
package edu.psu.sweng500.emrms.service;
import edu.psu.sweng500.emrms.application.ApplicationSessionHelper;
import edu.psu.sweng500.emrms.mappers.ChartingMapper;
import edu.psu.sweng500.emrms.model.HAuditRecord;
import edu.psu.sweng500.emrms.model.HProblem;
import edu.psu.sweng500.emrms.util.PersonPatientUtils;
import... | Nilbog21/EMRMS | src/main/java/edu/psu/sweng500/emrms/service/ManageProblemServiceImpl.java | Java | mit | 2,947 |
#include "world/Obstacle.h"
#include <math.h>
using namespace manip_core;
using namespace matrices;
using namespace Eigen;
Obstacle::Obstacle(const Vector3& p1, const Vector3& p2, const Vector3& p3, bool donttouch)
: p1_(p1)
, p2_(p2)
, p3_(p3)
, p4_(p1+ (p3 - p2))
, u_(p3-p1)
, v_(p2-p1)
, n_(u_.cross(v_))... | stonneau/manipulabilityreduced | src/world/Obstacle.cpp | C++ | mit | 2,741 |
package com.hps.wizard.sample.states;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.RadioGroup.OnCheckedChangeListener;
import android.widget.TextView;
im... | HeartlandPaymentSystems/Android-Wizard-Framework | WizardSample/src/com/hps/wizard/sample/states/AreYouSure.java | Java | mit | 3,465 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.aspose.imaging.examples;
/**
*
* @author mfazi
*/
public final class Assert {
public static void areEqu... | aspose-imaging/Aspose.Imaging-for-Java | Examples/src/main/java/com/aspose/imaging/examples/Assert.java | Java | mit | 1,281 |
using System;
using System.IO;
using NUnit.Framework;
namespace EventStreams.Persistence.FileSystem {
using Resources;
using Serialization.Events;
using Streams;
[TestFixture]
public class FileSystemPersistenceStrategyTests {
private readonly RepositoryHierarchy _repository... | nbevans/EventStreams | EventStreams.Tests/Persistence/FileSystem/FileSystemPersistenceStrategyTests.cs | C# | mit | 1,664 |
<?php
$navbar = [
"config" => [
"navbar-class" => "navbar"
],
"items" => [
"start" => [
"text" => "Start",
"route" => "",
],
"about" => [
"text" => "About",
"route" => "about",
],
"report" => [
"tex... | Marv2/anax-lite | view/navbar1/navbar.php | PHP | mit | 772 |