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.ComponentModel;
using System.Runtime.CompilerServices;
namespace NAudioUniversalDemo
{
internal class ViewModelBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName... | skor98/DtWPF | speechKit/NAudio-master/NAudioUniversalDemo/ViewModelBase.cs | C# | mit | 517 |
$(function(){
$("#addCompanyForm").validate({
rules: {
name : {
required : true
},
email: {
required: true,
email: true
},
url : {
required : true,
url : true
}
},
messages: {
name : {
required : "Please enter your company name"
},
url : {
required : "P... | CREA-KO/NPoint.Api | public/js/companies.js | JavaScript | mit | 3,124 |
<?php
namespace Kendo\Dataviz\UI;
class DiagramShapeConnectorDefaultsStroke extends \Kendo\SerializableObject {
//>> Properties
/**
* Defines the stroke color.
* @param string $value
* @return \Kendo\Dataviz\UI\DiagramShapeConnectorDefaultsStroke
*/
public function color($value) {
ret... | deviffy/laravel-kendo-ui | wrappers/php/lib/Kendo/Dataviz/UI/DiagramShapeConnectorDefaultsStroke.php | PHP | mit | 909 |
# reads uniprot core file and generates core features
from features_helpers import score_differences
def build_uniprot_to_index_to_core(sable_db_obj):
uniprot_to_index_to_core = {}
for line in sable_db_obj:
tokens = line.split()
try:
# PARSING ID
prot = tokens[0]
... | wonjunetai/pulse | features/uniprot_core.py | Python | mit | 2,151 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Project.Models
{
public enum WordRel
{
None,
Synonym,
Similar,
Related,
Antonym
}
} | Midnightgarden101/WCSU-2017-CS350-Final_Project | Project/Models/WordRel.cs | C# | mit | 234 |
module.exports = {
entry: {
'public/js/bundle.js': ['./index.js'],
},
output: {
filename: '[name]',
},
devtool: 'eval',
module: {
loaders: [
{
test: /.js$/,
exclude: /node_modules/,
loaders: ['babel'],
}
]
}
}
| LegitTalon/js-dedupe | webpack.config.js | JavaScript | mit | 276 |
// Copyright (c) 2014-2015 The AsturCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "asturcoinamountfield.h"
#include "asturcoinunits.h"
#include "guiconstants.h"
#include "qvaluecombobox.h"
#inclu... | KaTXi/ASTC | src/qt/asturcoinamountfield.cpp | C++ | mit | 4,947 |
using System.Collections.Generic;
using System.Linq;
namespace ComputerAlgebra
{
public static class Combinatorics
{
/// <summary>
/// Enumerate the permutations of x.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="n"></param>
/// <returns>... | dsharlet/ComputerAlgebra | ComputerAlgebra/Utils/Combinatorics.cs | C# | mit | 1,703 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleStatePattern
{
public class StateB : StateBase
{
char currentLetter = 'B';
public void Change(Context context)
{
Console.Write(System.Environm... | cbycraft/CarlRepo | learning/CS/SimpleStatePattern/SimpleStatePattern/SimpleStatePattern/StateB.cs | C# | mit | 1,007 |
package main
import (
"bytes"
"os"
"os/exec"
)
func panicOn(err error) {
if err != nil {
panic(err)
}
}
func FileExists(name string) bool {
fi, err := os.Stat(name)
if err != nil {
return false
}
if fi.IsDir() {
return false
}
return true
}
func DirExists(name string) bool {
fi, err := os.Stat(nam... | glycerine/geist | util.go | GO | mit | 707 |
import { expect } from 'chai'
import {List, Map} from 'immutable'
import categories from '../src/reducer.js'
describe("Category Test", () => {
it("should add a category", () => {
let initialState = Map({
user: 'Skye'
})
let expectedState = Map({
user: 'Skye',
categories: Map({
'Love': 0
})
})... | sheepfunk/poly-polygons | test/category_test.js | JavaScript | mit | 1,827 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ky" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About SweetStake</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... | SweetStake/SweetStake | src/qt/locale/bitcoin_ky.ts | TypeScript | mit | 107,903 |
/*
* Copyright (c) 2016 Oiri Project
*
* This software is distributed under an MIT-style license.
* See LICENSE file for more information.
*/
package com.github.kimikage.oiri.svg;
import org.w3c.dom.svg.SVGMatrix;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Tran... | kimikage/oiri | app/src/main/java/com/github/kimikage/oiri/svg/Transform.java | Java | mit | 2,233 |
/**
* DevExtreme (core/component_registrator.js)
* Version: 16.2.5
* Build date: Mon Feb 27 2017
*
* Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED
* EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml
*/
"use strict";
var $ = require("jquery"),
errors = require("./errors"),
... | imironica/Fraud-Detection-System | FraudDetection.Web/wwwroot/node_modules/devextreme/core/component_registrator.js | JavaScript | mit | 1,997 |
class MemeSlug < ActiveRecord::Base
belongs_to :meme
end
| b1nary/MayMay | app/models/meme_slug.rb | Ruby | mit | 59 |
using System;
using System.Text;
using System.Web;
using System.Web.Http.Description;
namespace WebApiAuthSample.Areas.HelpPage
{
public static class ApiDescriptionExtensions
{
/// <summary>
/// Generates an URI-friendly ID for the <see cref="ApiDescription"/>. E.g. "Get-Values-id_name" instead... | asezer/WebApiAuthSample | WebApiAuthSample/Areas/HelpPage/ApiDescriptionExtensions.cs | C# | mit | 1,506 |
package main
import (
"context"
"fmt"
"log"
"net/http"
"strconv"
"strings"
"time"
"github.com/PuerkitoBio/goquery"
)
const (
userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36"
timeLayout = "02/01/2006"
storagePath = ".local/... | igungor/cmd | notion-yt/fund.go | GO | mit | 2,429 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eo" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BitSeeds</source>
<translation type="unfinished"/>
</message>
<message>
<location line=... | BitSeedsFoundation/BitSeeds | src/qt/locale/bitcoin_eo.ts | TypeScript | mit | 117,796 |
<?
// DATABASE
define("DB_SERVER", "localhost"); //the mysql server address - often, localhost
define("DB_USERNAME", "root"); //the mysql username
define("DB_PASSWORD", "11913431"); //the mysql password
define("DB_NAME", "draygon"); //the name of the mysql database
// CLIENT
define... | snider/draygonknights | server/app/classes/config.php | PHP | mit | 1,743 |
#!/usr/bin/env python3
# Copyright (c) 2015-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test block processing."""
import copy
import struct
import time
from test_framework.blocktools import ... | Bushstar/UFO-Project | test/functional/feature_block.py | Python | mit | 60,904 |
@extends("layout")
@section("content")
<script type="text/javascript" src="{{ URL("js/interactive.js") }}">
</script>
<section id="wrapper">
@if ($imagenes->isEmpty())
<section id="photos-empty">
<p class="center">
Todavía no hay imágenes
</p>
</section>
@else
<section id... | iamas92/piclike | resources/views/user.blade.php | PHP | mit | 5,037 |
<?php
namespace Zakharovvi\HumansTxtBundle\Tests\Renderer;
use Zakharovvi\HumansTxtBundle\Tests\Filesystem;
use Zakharovvi\HumansTxtBundle\Renderer\TwigRenderer;
use Zakharovvi\HumansTxtBundle\Authors\Author;
/**
* @author Vitaliy Zakharov <zakharovvi@gmail.com>
*/
class TwigRendererTest extends \PHPUnit_Framework_... | zakharovvi/ZakharovviHumansTxtBundle | Tests/Renderer/TwigRendererTest.php | PHP | mit | 2,993 |
package pl.edu.wat.tim.webstore.service;
import pl.edu.wat.tim.webstore.model.UploadFile;
/**
* Created by Piotr on 15.06.2017.
*/
public interface UploadFileService {
void save(UploadFile uploadFile);
UploadFile getUploadFile(String name);
}
| PiotrJakubiak/GymNotes | src/main/java/pl/edu/wat/tim/webstore/service/UploadFileService.java | Java | mit | 256 |
'use strict';
angular.module('mgcrea.ngStrap.dropdown', ['mgcrea.ngStrap.tooltip'])
.provider('$dropdown', function() {
var defaults = this.defaults = {
animation: 'am-fade',
prefixClass: 'dropdown',
prefixEvent: 'dropdown',
placement: 'bottom-left',
template: 'dropdown/dropdown.t... | avizuber/karma-web | app/bower_components/angular-strap/src/dropdown/dropdown.js | JavaScript | mit | 4,859 |
/*
*
* hocNotification
*
*/
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { compose, setPropTypes } from 'recompose';
import { createStructuredSelector } from 'reselect';
import { selectNotifications } from 'features/common_ui/selectors';
const mapStateToProps = createStructure... | ch-apptitude/goomi | setup/src/universal/features/common_ui/hoc/hocNotification.js | JavaScript | mit | 615 |
<?php
declare(strict_types=1);
/*
* This file is part of the G.L.S.R. Apps package.
*
* (c) Dev-Int Création <info@developpement-interessant.com>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Core\Infrastructure\Doc... | Dev-Int/glsr | server/src/Core/Infrastructure/Doctrine/Migrations/Version20210502131525.php | PHP | mit | 4,815 |
package com.mybatistemplate.adapter;
import com.mybatistemplate.core.GeneratorIdSqlCallback;
import com.mybatistemplate.core.IdGeneratorType;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.mapping.ResultMap;
/**
* Created by leicheng on 2016/7/12.
*/
public abstract class Templ... | leicheng6563/MybatisTemplate | MybatisTemplate/src/main/java/com/mybatistemplate/adapter/TemplateExAdapter.java | Java | mit | 673 |
<?php
namespace Proxies\__CG__\Mistra\TutoBundle\Entity;
/**
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
*/
class User extends \Mistra\TutoBundle\Entity\User implements \Doctrine\ORM\Proxy\Proxy
{
private $_entityPersister;
private $_identifier;
public $__isInitialized__ = fal... | sportelli/mistra_tuto_symfony2 | app/cache/prod/doctrine/orm/Proxies/__CG__MistraTutoBundleEntityUser.php | PHP | mit | 3,004 |
// This contains the module definition factory function, application state,
// events, and the router.
this.jda = {
// break up logical components of code into modules.
module: function()
{
// Internal module cache.
var modules = {};
// Create a new module reference scaffold or loa... | corinnecurcie/Japan-Digital-Archive | web/js/app/jda.js | JavaScript | mit | 15,904 |
require 'spec_helper'
module Sendgrid
module API
module Entities
describe Stats do
subject { described_class.new }
it { should respond_to(:delivered) }
it { should respond_to(:request) }
it { should respond_to(:unique_open) }
it { should respond_to(:unique_click) }
... | renatosnrg/sendgrid-api | spec/sendgrid/api/entities/stats_spec.rb | Ruby | mit | 728 |
//! @file
//! @copyright See <a href="LICENSE.txt">LICENSE.txt</a>.
#pragma once
#include "entity.hpp"
namespace ql {
//! Makes @p entity_id an entity: a being or object that can exist in the world.
auto make_entity(reg& reg, id entity_id, location location) -> id {
reg.assign<ql::location>(entity_id, location);... | jonathansharman/Questless | Questless/Questless/src/entities/entity.cpp | C++ | mit | 346 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Threading;
using System.Runtime.Remoting.Lifetime;
using System.Windows.Forms;
using System.Drawing;
using System.Linq;
using... | jstammers/EDMSuite | NavHardwareControl/Controller.cs | C# | mit | 35,814 |
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("Kh... | khaale/Khaale.TechTalks.AwesomeLibs | src/BusinessService/Properties/AssemblyInfo.cs | C# | mit | 1,478 |
package at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.impl;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
... | patrickneubauer/XMLIntellEdit | xmlintelledit/xmltext/src/main/java/at/ac/tuwien/big/xmlintelledit/xmltext/ecoretransform/impl/TransformatorStructure.java | Java | mit | 62,302 |
require 'rails_helper'
RSpec.describe Scrap, :type => :model do
context 'factories' do
it 'valid' do
expect(build(:scrap)).to be_valid
end
end
context 'validation' do
it { is_expected.to validate_presence_of(:message) }
end
end
| ppdeassis/scrapbook | spec/models/scrap_spec.rb | Ruby | mit | 257 |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/trafficgraphwidget.h>
#include <interfaces/node.h>
#include <qt/clientmodel.h>
#include <QColor>
#include <QPa... | cculianu/bitcoin-abc | src/qt/trafficgraphwidget.cpp | C++ | mit | 5,102 |
package de.felixroske.jfxsupport.util;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.type.classreading.MetadataReader;
import org.springframework.core.type.classreading.MetadataReaderFactory;
import java.io.IOException;
/**
* Created by Krystian Kałużny on 03.0... | krystiankaluzny/springboot-javafx-support | src/test/java/de/felixroske/jfxsupport/util/InactiveSpringBootAppExcludeFilter.java | Java | mit | 812 |
'''
Created by auto_sdk on 2015.06.23
'''
from aliyun.api.base import RestApi
class Rds20140815CheckAccountNameAvailableRequest(RestApi):
def __init__(self,domain='rds.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.AccountName = None
self.DBInstanceId = None
self.resourceOwnerAccount = None
... | francisar/rds_manager | aliyun/api/rest/Rds20140815CheckAccountNameAvailableRequest.py | Python | mit | 408 |
# frozen_string_literal: true
module Eve
class AllRegionsContractsImporter
def import
region_ids.each do |region_id|
Eve::RegionContractsJob.perform_later(region_id)
end
end
private
def region_ids
@region_ids ||= Eve::Region.pluck(:region_id).sort.uniq
end
end
end
| biow0lf/evemonk | app/importers/eve/all_regions_contracts_importer.rb | Ruby | mit | 318 |
#!/usr/bin/env node
let layouts = [
`# French
&é"'(-è_çà)=
azertyuiop^$*
qsdfghjklmù
wxcvbn,;:!
`,
`# German (German (IBM) is the same)
1234567890ß
qwertzuiopü+#
asdfghjklöä
yxcvbnm,.-
`,
`# Spanish
1234567890'¡
qwertyuiop+ç
asdfghjklñ
zxcvbnm,.-
## ESV
1234567890-
qwertyuiop÷
asdfghjklñç
zxcvbnm,.=
`,
`# Port... | gdh1995/vimium-plus | tests/unit/keyboard-layouts.js | JavaScript | mit | 2,107 |
import Ember from 'ember';
export default Ember.Component.extend({
tagName : '',
item : null,
isFollowing : false,
isLoggedIn : false,
init() {
this.set('isLoggedIn', !!this.get('application.user.login'));
if (this.get('application.places.length') > 0) {
this.set('isFollowing', !!this.get('app... | b37t1td/barapp-freecodecamp | client/app/components/user-following.js | JavaScript | mit | 389 |
class CB::Util::ServiceRescuer
def initialize instance
@instance = instance
end
def method_missing method, *args, &block
if @instance.respond_to? method
begin
@instance.public_send method, *args, &block
rescue => e
error_type = e.is_a?(ActiveRecord::RecordNotFound) ? :not_found... | contentbird/contentbird | app/services/cb/util/service_rescuer.rb | Ruby | mit | 439 |
package com.nicolas.coding.common.photopick;
import android.content.Context;
import android.database.Cursor;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.CursorAdapter;
import android.widget.ImageView;
import com.nos... | liwangadd/Coding | app/src/main/java/com/nicolas/coding/common/photopick/GridPhotoAdapter.java | Java | mit | 3,262 |
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as 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 'Idea.color'
db.add_column(u'brainstorming_idea', 'color',... | atizo/braindump | brainstorming/migrations/0005_auto__add_field_idea_color.py | Python | mit | 4,031 |
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int ratio = 3; //per canny's suggestion
int canny_thresh = 12; //starts at 12, this is what we will be changing though
int hough_thresh = 27;
int angle_tracker = 20;
int max_thresh = 255;//max for both thresh variable
doub... | robotics-at-maryland/qubo | src/vision/src/tuners/gate_tuner.cpp | C++ | mit | 6,479 |
const ircFramework = require('irc-framework')
const store = require('../store')
const attachEvents = require('./attachEvents')
const connect = connection => {
const state = store.getState()
let ircClient = state.ircClients[connection.id]
if (!ircClient) {
ircClient = new ircFramework.Client({
nick: ... | daGrevis/msks | backend/src/irc/connect.js | JavaScript | mit | 982 |
const assert = require('assert')
const { unparse } = require('uuid-parse')
const supertest = require('supertest')
const createApp = require('../app')
const { createSetup, getAuthPassword } = require('./lib')
const { createPlayer, createKick } = require('./fixtures')
describe('Query player kick', () => {
let setup
... | BanManagement/BanManager-WebUI | server/test/playerKick.query.test.js | JavaScript | mit | 1,807 |
<?php
namespace Application\Success\CoreBundle\Twig;
//use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
class EventoExtension extends \Twig_Extension {
//private $container;
private $repository_evento;
private $templating;
public function __construct($repository_evento, $templating) {
//$... | chugas/symfony-without-vendors-2.1.9 | src/Application/Success/CoreBundle/Twig/EventoExtension.php | PHP | mit | 1,397 |
<?php
namespace EntityManager5230d19111d8e_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM;
/**
* CG library enhanced proxy class.
*
* This code was generated automatically by the CG library, manual changes to it
* will be lost upon next generation.
*/
class EntityManager extends \Doctrine\ORM\Entit... | vistorr/panel | app/cache/dev/jms_diextra/doctrine/EntityManager_5230d19111d8e.php | PHP | mit | 16,022 |
module Test
PI = 3.14
class Test2
def what_is_pi
puts PI
end
end
end
Test::Test2.new.what_is_pi # => 3.14
module MyModule
MyConstant = 'Outer Constant'
class MyClass
puts MyConstant # => Outer Constant
MyConstant = 'Inner Constant'
puts MyConstant # => Inner Constant
... | rbaladron/rails-coursera | intro_rails/modulo2/Ejemplos/Lecture13-Scope/constants_scope.rb | Ruby | mit | 371 |
<?php
class SV_WarningImprovements_XenForo_ControllerPublic_Member extends XFCP_SV_WarningImprovements_XenForo_ControllerPublic_Member
{
public function actionMember()
{
SV_WarningImprovements_Globals::$warning_user_id = $this->_input->filterSingle('user_id', XenForo_Input::UINT);
$response = ... | Xon/XenForo-WarningImprovements | upload/library/SV/WarningImprovements/XenForo/ControllerPublic/Member.php | PHP | mit | 7,086 |
# this is the interface for `python archiver`
import archiver
import appdirs
import os
import sys
import pickle
import json
from archiver.archiver import Archiver
from archiver.parser import parseArgs
args = parseArgs()
from edit import edit
# ==============================================
print args
# TODO: s... | jdthorpe/archiver | __main__.py | Python | mit | 13,106 |
/*
* The MIT License
*
* Copyright (c) 2016 Marcelo "Ataxexe" Guimarães <ataxexe@devnull.tools>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, includ... | devnull-tools/boteco | main/boteco/src/test/java/tools/devnull/boteco/predicates/TargetPredicateTest.java | Java | mit | 2,605 |
using System;
using System.Collections.Generic;
using System.Text;
using Icy.Util;
namespace Icy.Database.Query
{
public class JoinClauseOptions{
public object first;
public string operator1;
public object second;
public string boolean;
public bool where;
public bo... | mattiamanzati/Icy | Icy/Database/Query/JoinClause.cs | C# | mit | 8,200 |
// All code points in the Khmer Symbols block as per Unicode v5.0.0:
[
0x19E0,
0x19E1,
0x19E2,
0x19E3,
0x19E4,
0x19E5,
0x19E6,
0x19E7,
0x19E8,
0x19E9,
0x19EA,
0x19EB,
0x19EC,
0x19ED,
0x19EE,
0x19EF,
0x19F0,
0x19F1,
0x19F2,
0x19F3,
0x19F4,
0x19F5,
0x19F6,
0x19F7,
0x19F8,
0x19F9,
0x19FA,
0x19F... | mathiasbynens/unicode-data | 5.0.0/blocks/Khmer-Symbols-code-points.js | JavaScript | mit | 360 |
jQuery(document).ready(function() {
$('.alert-close').bind('click', function() {
$(this).parent().fadeOut(100);
});
function createAutoClosingAlert(selector, delay) {
var alert = $(selector).alert();
window.setTimeout(function() { alert.alert('close') }, delay);
}
createAutoClosingAlert(".ale... | scr-be/mantle-bundle | src/Resources/public/js/scribe/alert.js | JavaScript | mit | 337 |
package com.rrajath.orange;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInst... | rrajath/Orange | app/src/main/java/com/rrajath/orange/MainActivity.java | Java | mit | 1,118 |
package org.zezutom.schematic.model.json;
import org.zezutom.schematic.service.generator.json.StringGenerator;
public class StringNodeTest extends NodeTestCase<String, StringGenerator, StringNode> {
@Override
StringNode newInstance(String name, StringGenerator generator) {
return new StringNode(name,... | zezutom/schematic | src/test/java/org/zezutom/schematic/model/json/StringNodeTest.java | Java | mit | 521 |
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Reservation's</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<div class="row">
<div class="col-lg-12">
<?php if($this->s... | shakilkhan12/Rent_Room | application/views/admin/parts/book.php | PHP | mit | 5,242 |
<?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\Olympus;
use JMS\Serializer\Annotation\ExclusionPolicy;... | romainneutron/PHPExiftool | lib/PHPExiftool/Driver/Tag/Olympus/WBGLevel.php | PHP | mit | 835 |
<?php
return array (
'id' => 'mot_v3i_ver1_sub080305r',
'fallback' => 'mot_v3i_ver1',
'capabilities' =>
array (
),
);
| cuckata23/wurfl-data | data/mot_v3i_ver1_sub080305r.php | PHP | mit | 129 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="uk" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About GoobyCoin</source>
<translation>Про GoobyCoin</translation>
</message>
<message>
<locat... | GoobyCoin/GoobyCoin | src/qt/locale/bitcoin_uk.ts | TypeScript | mit | 127,958 |
// ===========================================================================
//
// PUBLIC DOMAIN NOTICE
// Agricultural Research Service
// United States Department of Agriculture
//
// This software/database is a "United States Government Work" unde... | adolgert/hop-skip-bite | hopskip/src/semimarkov-0.1/partial_core_matrix.hpp | C++ | mit | 7,601 |
using System;
using Xamarin.Forms;
namespace TextSpeaker.Views
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
private async void Button_OnClicked(object sender, EventArgs e)
{
var result = await Disp... | jxug/PrismAndMoqHansOn | before/TextSpeaker/TextSpeaker/TextSpeaker/Views/MainPage.xaml.cs | C# | mit | 539 |
var fans=require('../../modules/blog/fans');
var User=require('../../modules/resume/user');
var async = require('asyncawait/async');
var await = require('asyncawait/await');
module.exports=(async(function(method,req,res){
var result;
if(method==='get'){
}
else if(method==='post'){
var userId=req.session.uid;
v... | weijiafen/antBlog | src/main/server/controler/blog/fans.js | JavaScript | mit | 1,918 |
<?php
namespace Guardian\User\Caller;
use Assert\Assertion;
use Guardian\Caller\HasLoginToken;
use Guardian\User\Caller;
/**
* Simple user caller
*
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
*/
class User implements Caller, HasLoginToken, \ArrayAccess
{
/**
* @var string|integer
*/
pr... | guardianphp/user | src/Caller/User.php | PHP | mit | 2,639 |
module HashRollup
extend self
def rollup data, into
raise ArgumentError, "arguments must be Hashes" unless data.is_a?(Hash) && into.is_a?(Hash)
into.merge(data) do |key, current_val, new_val|
if current_val.class.name != new_val.class.name
raise "Mismatch in types detected! Key = #{key}, cur... | UKHomeOffice/platform-hub | platform-hub-api/app/lib/hash_rollup.rb | Ruby | mit | 609 |
"""
.. module:: mlpy.auxiliary.datastructs
:platform: Unix, Windows
:synopsis: Provides data structure implementations.
.. moduleauthor:: Astrid Jackson <ajackson@eecs.ucf.edu>
"""
from __future__ import division, print_function, absolute_import
import heapq
import numpy as np
from abc import ABCMeta, abstract... | evenmarbles/mlpy | mlpy/auxiliary/datastructs.py | Python | mit | 10,818 |
<?php
/**
* Created by PhpStorm.
* User: gseidel
* Date: 16.10.18
* Time: 23:45
*/
namespace Enhavo\Bundle\FormBundle\Form\Type;
use Enhavo\Bundle\FormBundle\Form\Helper\EntityTreeChoiceBuilder;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\... | npakai/enhavo | src/Enhavo/Bundle/FormBundle/Form/Type/EntityTreeType.php | PHP | mit | 1,622 |
// @flow
import React, { Component } from 'react'
import { Helmet } from 'react-helmet'
import AlternativeMedia from './AlternativeMedia'
import ImageViewer from './ImageViewer'
import { Code, CodeBlock, Title } from '../components'
const propFn = k => {
const style = { display: 'inline-block', marginBottom: 4, ma... | jossmac/react-images | docs/pages/CustomComponents/index.js | JavaScript | mit | 4,414 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
namespace LibGit2Sharp.Core
{
/// <summary>
/// Ensure input parameters
/// </summary>
[DebuggerStepThrough]
internal static class Ensure
{
/// <summary>
///... | GeertvanHorrik/libgit2sharp | LibGit2Sharp/Core/Ensure.cs | C# | mit | 10,346 |
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Graphics;
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Mods
{
public abstract class ModPerfect : ModSuddenDeath
{
public o... | naoey/osu | osu.Game/Rulesets/Mods/ModPerfect.cs | C# | mit | 664 |
var gulp = require('gulp');
var browserify = require('browserify');
//transform jsx to js
var reactify = require('reactify');
//convert to stream
var source = require('vinyl-source-stream');
var nodemon = require('gulp-nodemon');
gulp.task('browserify', function() {
//source
browserify('./src/js/main.js')
... | felixcriv/react_scheduler_component | gulpfile.js | JavaScript | mit | 1,039 |
<?php
namespace TodoListBundle\Repository;
use TodoListBundle\Entity\Todo;
use TodoListBundle\Google\Client;
use Google_Service_Tasks;
use Google_Service_Tasks_Task;
class GTaskApiTodoRepository implements ITodoRepository
{
/**
* @var Google_Service_Tasks
*/
private $taskService;
private $todoRepository;
p... | Green92/gcTodoList | src/TodoListBundle/Repository/GTaskApiTodoRepository.php | PHP | mit | 2,671 |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... | ginach/msgraph-sdk-dotnet | src/Microsoft.Graph/Requests/Generated/WorkbookFunctionsNetworkDaysRequestBuilder.cs | C# | mit | 3,138 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Tell the browser to be responsive to screen width -->
<title>SI Administrasi Desa</ti... | swantara/si-administrasi-kependudukan | application/views/template.php | PHP | mit | 9,733 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;
using System.Security;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die... | mk-prg-net/mk-prg-net.lib | mko/Properties/AssemblyInfo.cs | C# | mit | 1,762 |
/**
* @namespace http
*
* The C<http> namespace groups functions and classes used while making
* HTTP Requests.
*
*/
ECMAScript.Extend('http', function (ecma) {
// Intentionally private
var _documentLocation = null
function _getDocumentLocation () {
if (!_documentLocation) _documentLocation = new ecm... | ryangies/lsn-javascript | src/lib/ecma/http/http.js | JavaScript | mit | 3,860 |
<?php
namespace Anax\Questions;
/**
* A controller for question-related pages
*
*/
class QuestionsController implements \Anax\DI\IInjectionAware
{
use \Anax\DI\TInjectable;
public function initialize()
{
$this->questions = new \Anax\Questions\Question();
$this->questions->setDI($this->di);
... | sebastianjonasson/phpmvcprojekt | app/src/Question/QuestionsController.php | PHP | mit | 4,081 |
# Uncomment this if you reference any of your controllers in activate
# require_dependency 'application'
class ReservationExtension < Radiant::Extension
version "0.1"
description "Small Reservation System"
url "http://github.com/simerom/radiant-reservation-extension"
define_routes do |map|
map.namespace... | raskhadafi/radiant-reservation-extension | reservation_extension.rb | Ruby | mit | 662 |
<?php
/**
* Routes - all standard routes are defined here.
*/
/** Create alias for Router. */
use Core\Router;
use Helpers\Hooks;
/* Force user to login unless running cron */
if(!isset($_SESSION['user']) && $_SERVER['REDIRECT_URL'] != "/reminders/run") {
$c = new Controllers\Users();
$c->login();
exit();
}
/**... | tsnudden/afsc | app/Core/routes.php | PHP | mit | 4,351 |
// Copyright Johannes Falk
// example for directed percolation
// one can choose the probability in the main
// critical-value = 0.68
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <algorithm>
#include <cstdlib>
#include <vector>
#include "../xcbwin.h"
double get_rand() {
return static_cast<dou... | jofalk/Xcbwin | demo/directed_percolation.cpp | C++ | mit | 1,357 |
package ee.shy.cli;
import ee.shy.Builder;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* Class for building help text with preset format
*/
public class HelptextBuilder implements Builder<String> {
/**
* Data structure that contains command... | sim642/shy | app/src/main/java/ee/shy/cli/HelptextBuilder.java | Java | mit | 2,440 |
package org.asciicerebrum.neocortexengine.domain.events;
/**
*
* @author species8472
*/
public enum EventType {
/**
* Event thrown directly after the initialization of a new combat round.
*/
COMBATROUND_POSTINIT,
/**
* Event thrown before the initialization of a new combat round.
*/... | asciiCerebrum/neocortexEngine | src/main/java/org/asciicerebrum/neocortexengine/domain/events/EventType.java | Java | mit | 1,310 |
package shadows;
import java.util.List;
import java.util.Map;
import org.lwjgl.opengl.GL11;
import org.lwjgl.util.vector.Matrix4f;
import org.lwjgl.util.vector.Vector2f;
import org.lwjgl.util.vector.Vector3f;
import entities.Camera;
import entities.Entity;
import entities.Light;
import entities.Player;
... | jely2002/Walk-Simulator | src/shadows/ShadowMapMasterRenderer.java | Java | mit | 7,992 |
import debounce from 'debounce';
import $ from 'jquery';
const groupElementsByTop = (groups, element) => {
const top = $(element).offset().top;
groups[top] = groups[top] || [];
groups[top].push(element);
return groups;
};
const groupElementsByZero = (groups, element) => {
groups[0] = groups[0] || [];
grou... | dubbs/equal-height | src/jquery.equalHeight.js | JavaScript | mit | 1,714 |
/// <reference path="typings/tsd.d.ts" />
var plugins = {
beautylog: require("beautylog")("os"),
gulp: require("gulp"),
jade: require("gulp-jade"),
util: require("gulp-util"),
vinylFile: require("vinyl-file"),
jsonjade: require("./index.js"),
gulpInspect: require("gulp-inspect")
};
var ja... | pushrocks/gulp-jsonjade | ts/test.ts | TypeScript | mit | 1,117 |
// Structure to represent a proof
class ProofTree {
constructor({equation, rule, newScope=false }) {
this.equation = equation;
this.rule = rule;
this.newScope = newScope;
this.parent = null;
this.children = [];
this.isSound = !newScope;
}
isAssumption() {
return this.newScope;
}
... | jackdeadman/Natural-Deduction-React | src/js/classes/Proof/ProofTree.js | JavaScript | mit | 2,618 |
package me.puras.common.controller;
import me.puras.common.domain.DomainModel;
import me.puras.common.error.BaseErrCode;
import me.puras.common.json.Response;
import me.puras.common.json.ResponseHelper;
import me.puras.common.service.CrudService;
import me.puras.common.util.ClientListSlice;
import me.puras.common.util... | puras/mo-common | src/main/java/me/puras/common/controller/CrudController.java | Java | mit | 2,669 |
version https://git-lfs.github.com/spec/v1
oid sha256:20e35c5c96301564881e3f892b8c5e38c98b131ea58889ed9889b15874e39cbe
size 8394
| yogeshsaroya/new-cdnjs | ajax/libs/preconditions/5.2.4/preconditions.min.js | JavaScript | mit | 129 |
using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using AgileSqlClub.MergeUi.DacServices;
using AgileSqlClub.MergeUi.Merge;
using AgileSqlClub.MergeUi.Metadata;
using AgileSqlClub.MergeUi.PackageP... | GoEddie/MergeUi | src/AgileSqlClub.MergeUiPackage/UI/MyControl.xaml.cs | C# | mit | 8,845 |
<?php
namespace Aquicore\API\PHP\Common;
class BatteryLevelModule
{
/* Battery range: 6000 ... 3600 */
const BATTERY_LEVEL_0 = 5500;/*full*/
const BATTERY_LEVEL_1 = 5000;/*high*/
const BATTERY_LEVEL_2 = 4500;/*medium*/
const BATTERY_LEVEL_3 = 4000;/*low*/
/* below 4000: very low */
}
| koodiph/acquicore-api | src/Common/BatteryLevelModule.php | PHP | mit | 311 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
usi... | GearsAD/zasteroids | ZAsteroids/World/HUD/HUDSheilds.cs | C# | mit | 26,807 |
namespace Miruken.Callback
{
using System;
[AttributeUsage(AttributeTargets.Parameter)]
public class KeyAttribute : Attribute
{
public KeyAttribute(object key)
{
Key = key;
}
public KeyAttribute(string key, StringComparison comparison)
{
... | Miruken-DotNet/Miruken | Source/Miruken/Callback/KeyAttribute.cs | C# | mit | 419 |
namespace OpenProtocolInterpreter.IOInterface
{
/// <summary>
/// IO interface message category. Every IO interface mid must implement <see cref="IIOInterface"/>.
/// </summary>
public interface IIOInterface
{
}
}
| Rickedb/OpenProtocolInterpreter | src/OpenProtocolInterpreter/IOInterface/IIOInterface.cs | C# | mit | 241 |
require 'RMagick'
class MemesController < ApplicationController
before_action :check_meme_destroy_permission, only: [:destroy]
before_action :check_meme_group_permissions, only: [:show]
# GET /memes
# GET /memes.json
def index
@memes = Meme.where(:group_id => nil).order("created_at DESC")
@group = n... | ignition25/memegen | app/controllers/memes_controller.rb | Ruby | mit | 5,069 |
/**
* Javascript file for Category Show.
* It requires jQuery.
*/
function wpcs_gen_tag() {
// Category Show searches for term_id since 0.4.1 and not term slug.
// There is a need to add the id%% tag to be compatible with other versions
$("#wpcs_gen_tag").val("%%wpcs-"+$("#wpcs_term_dropdown").val()+"%%"+$("#wpc... | mfolker/saddind | wp-content/plugins/wp-catergory-show/wp-category-show.js | JavaScript | mit | 438 |
function mathGame(){
var game = new Phaser.Game(window.innerWidth, window.innerHeight, Phaser.auto, 'math', {
preload: onPreload,
create: onCreate,
// resize:onResize
});
WebFontConfig = {
active: function() { game.time.events.add(Phaser.Timer.SECOND, createText, this); },
google: {
fami... | JulianBoralli/klink | app/assets/javascripts/math.js | JavaScript | mit | 5,149 |
package com.javarush.test.level14.lesson08.bonus03;
/**
* Created by Алексей on 12.04.2014.
*/
public class Singleton
{
private static Singleton instance;
private Singleton()
{
}
public static Singleton getInstance()
{
if ( instance == null )
{
instance = new Sin... | Juffik/JavaRush-1 | src/com/javarush/test/level14/lesson08/bonus03/Singleton.java | Java | mit | 381 |
// Copyright (c) Rotorz Limited. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root.
namespace Rotorz.Games.Collections
{
/// <summary>
/// Can be implemented along with <see cref="IReorderableListAdaptor"/> when drop
/// insertion or ordering is desired.
/// <... | tenvick/hugula | Client/Assets/Third/PSD2UGUI/@rotorz/unity3d-reorderable-list/Editor/Collections/IReorderableListDropTarget.cs | C# | mit | 2,164 |