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
class Commit < ApplicationRecord has_many :contributions, dependent: :destroy has_many :contributors, through: :contributions belongs_to :release, optional: true scope :with_no_contributors, -> { select('commits.*'). # otherwise we get read-only records left_joins(:contributions). where(contributio...
fxn/rails-contributors
app/models/commit.rb
Ruby
mit
7,250
<div class="footer"> <img src="{{asset('images/pay.png')}}" class="img-responsive" alt=""/> <ul class="footer_nav"> <li><a href="#">Inicio</a></li> <li><a href="#">Blog</a></li> <li><a href="#">Tienda</a></li> <li><a href="#">Acerca de nosotros</a></li> <li><a href="conta...
SoftTecnologias/chocoburbujas
resources/views/partials/footer.blade.php
PHP
mit
630
'use strict'; require('mocha'); const assert = require('assert'); const Generator = require('..'); let base; describe('.task', () => { beforeEach(() => { base = new Generator(); }); it('should register a task', () => { const fn = cb => cb(); base.task('default', fn); assert.equal(typeof base.ta...
doowb/composer
test/app.task.js
JavaScript
mit
4,755
package creationalPattern.builder; public abstract class ColdDrink implements Item { public Packing packing() { return new Bottle(); } public abstract float price(); }
ajil/Java-Patterns
src/main/java/creationalPattern/builder/ColdDrink.java
Java
mit
192
using System; using OpenTK.Graphics; using OpenTK.Graphics.OpenGL4; namespace SMH { public sealed class VAO : IDisposable { private const int InvalidHandle = -1; public int Handle { get; private set; } public int VertexCount { get; private set; } // Число вершин для отрисовки ...
Yeyti/Stellaris-Moding-Helper
SMH/GL/VAO.cs
C#
mit
1,627
require 'unicode_japanese' class Text class TextDecodeError < StandardError ; end class TextEncodeError < StandardError ; end NDS_SPECIAL_CHARACTERS = "・¡¢£¨©®°±´¸¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýŒœˆ˜‐‗‘’‚“”„•…′″›※€™«»⁰" AOS_SPECIAL_CHARACTERS = { 0x90 => "Œ", 0x91 =...
LagoLunatic/DSVEdit
dsvlib/text.rb
Ruby
mit
22,491
<?php namespace Icecave\Pasta\AST\Expr; // @codeCoverageIgnoreStart class BitwiseOr extends PolyadicOperator { }
IcecaveStudios/pasta-ast
src/Expr/BitwiseOr.php
PHP
mit
115
import containers from './containers' import ui from './ui' import App from './App' module.exports = {...containers, ...ui, App}
MoonTahoe/cyber-chat
components/index.js
JavaScript
mit
129
<?php namespace Concrete\Package\AttributePlainText; use Concrete\Core\Backup\ContentImporter; use Package; class Controller extends Package { protected $pkgHandle = 'attribute_plain_text'; protected $appVersionRequired = '5.7.4'; protected $pkgVersion = '1.0.1'; public function getPackageName() ...
Remo/concrete5-attribute-plain-text
controller.php
PHP
mit
964
'use strict'; // Production specific configuration // ================================= module.exports = { // Server IP ip: process.env.OPENSHIFT_NODEJS_IP || process.env.IP || undefined, // Server port port: process.env.OPENSHIFT_NODEJS_PORT || process.env.PORT |...
johnttan/spicybattle
server/config/environment/production.js
JavaScript
mit
597
/* * generated by Xtext */ package co.edu.uniandes.mono.gesco.ui.contentassist.antlr; import java.util.Collection; import java.util.Collections; import org.eclipse.xtext.AbstractRule; import org.eclipse.xtext.ui.codetemplates.ui.partialEditing.IPartialContentAssistParser; import org.eclipse.xtext.ui.editor.contenta...
lfmendivelso10/GescoFinal
DSL/co.edu.uniandes.mono.gesco.ui/src-gen/co/edu/uniandes/mono/gesco/ui/contentassist/antlr/PartialDSLContentAssistParser.java
Java
mit
1,288
#!/usr/bin/env node 'use strict'; const fs = require('fs'); const repl = require('repl'); const program = require('commander'); const esper = require('..'); const Engine = esper.Engine; function enterRepl() { function replEval(cmd, context, fn, cb) { engine.evalDetatched(cmd).then(function(result) { cb(null, r...
codecombat/esper.js
contrib/cli.js
JavaScript
mit
3,797
using System.IO; using System.Linq; namespace Moonfish.Guerilla.Tags { partial class StructureBspClusterBlock : IResourceBlock { public ResourcePointer GetResourcePointer(int index = 0) { return GeometryBlockInfo.BlockOffset; } public int GetResourceLength(int inde...
jacksoncougar/Moonfxsh
Moonfish/Guerilla/Tags/StructureBspClusterBlock.cs
C#
mit
2,077
<?php if(isset($user)) {?> <table> <tr> <td><?php echo $user->username;?></td> <td><?php echo $user->password;?></td> <td><?php echo $user->email;?></td> </tr> </table> <?php }?> <?php echo validation_errors('<p class="error">');?>
Du-an-Giao-Duc/education
application/views/login/register_confirm.php
PHP
mit
231
package selector; import java.awt.event.AdjustmentEvent; import java.awt.event.AdjustmentListener; import java.util.EventObject; class Barra implements AdjustmentListener { SelectorApplet applet; public Barra(SelectorApplet applet) { this.applet = applet; } public void adjustmentValueC...
Thaenor/magnetic-and-electric-forces-study
src/selector/Barra.java
Java
mit
659
const express = require('express'); const router = express.Router(); const queries = require('../db/queries'); const knex = require('../db/knex.js'); const request = require('request'); router.get('/clear', (req, res, next) => { queries.clearStationsTable((results) => { console.log(results); }); res.redirect...
gvickstrom/Fishing_App
src/server/routes/sites.js
JavaScript
mit
6,277
//=============================================================================== // TinyIoC // // An easy to use, hassle free, Inversion of Control Container for small projects // and beginners alike. // // https://github.com/grumpydev/TinyIoC //========================================================================...
chrisriesgo/making-mobile-click
Demo.IoC/TinyIoC.cs
C#
mit
124,512
class AddStateToSites < ActiveRecord::Migration def self.up add_column :sites, :state, :string end def self.down remove_column :sites, :state end end
techvalidate/portrait
db/migrate/20090619225703_add_state_to_sites.rb
Ruby
mit
167
version https://git-lfs.github.com/spec/v1 oid sha256:8b2c75ae8236614319bbfe99cee3dba6fa2183434deff5a3dd2f69625589c74a size 391
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.15.0/arraylist-filter/arraylist-filter-min.js
JavaScript
mit
128
package org.luaj.vm2; import java.io.ByteArrayOutputStream; import java.io.PrintStream; /** * Debug helper class to pretty-print lua bytecodes. * @see Prototype * @see LuaClosure */ public class Print extends Lua { /** opcode names */ private static final String STRING_FOR_NULL = "null"; private static fina...
dwing4g/luaj
src/org/luaj/vm2/Print.java
Java
mit
10,612
/* * Copyright (c) 2009 WiQuery team * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publi...
WiQuery/wiquery
wiquery-jquery-ui/src/test/java/org/odlabs/wiquery/ui/resizable/ResizableBehaviorTestCase.java
Java
mit
10,375
<?php namespace Meling\Cart; /** * Class Totals * @package Meling\Cart */ class Totals { /** * @var Products */ protected $products; /** * @var Actions */ protected $actionsAfter; /** * @var Cards\Card */ protected $card; /** * @var \PHPixie\ORM\Wrap...
Linfuby/Cart
src/Meling/Cart/Totals.php
PHP
mit
2,866
import DOMUtils from 'tinymce/core/api/dom/DOMUtils'; interface Bookmark { startContainer: Node; startOffset: number; endContainer?: Node; endOffset?: number; } /** * Returns a range bookmark. This will convert indexed bookmarks into temporary span elements with * index 0 so that they can be restored proper...
tinymce/tinymce
modules/tinymce/src/plugins/quickbars/main/ts/selection/Bookmark.ts
TypeScript
mit
3,254
from random import randint, seed, choice, random from numpy import zeros, uint8, cumsum, floor, ceil from math import sqrt, log from collections import namedtuple from PIL import Image from logging import info, getLogger class Tree: def __init__(self, leaf): self.leaf = leaf self.lchild = None self.rchild = Non...
juancroldan/derinkuyu
generation/BSPTree.py
Python
mit
6,186
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var rx_1 = require("rx"); /* tslint:enable */ function cache(callback) { var cached$ = this.replay(undefined, 1); var subscription = cached$.connect(); callback(function () { return subscription.dispose(); }); return cached$; }...
ZachBray/eye-oh-see-react
dist/Rx.js
JavaScript
mit
392
var chai = require('chai'); var should = chai.should(); var pictogramResponse = require('../../../lib/model/response/pictogramResponse'); describe('pictogramResponse model test', function () { var id = 'id'; var category = 'category'; var url = 'url'; it('should create model', function (done) { var pict...
xclipboard/npm-xclipboard-model
test/model/response/pictogramResponseTest.js
JavaScript
mit
1,113
<?php /** * Choice.php provides additional data access classes for the SurveySez project * * An instance of the Response class will attempt to identify a SurveyID from the srv_responses * database table, and if it exists, will attempt to create all associated Survey, Question & Answer * objects, nearly exactly ...
BrettSpencer/SurveySez
SurveySez/Choice.php
PHP
mit
1,641
"use strict"; /** * @license * Copyright 2017 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
ManakCP/NestJs
node_modules/@tensorflow/tfjs-core/dist/variable_test.js
JavaScript
mit
13,815
import React from "react"; import { useResponse } from "@curi/react-dom"; import NavLinks from "./NavLinks"; export default function App() { let { response } = useResponse(); let { body: Body } = response; return ( <div> <NavLinks /> <Body response={response} /> </div> ); }
pshrmn/curi
examples/misc/server-rendering/src/components/App.js
JavaScript
mit
305
import { Tween } from '../core'; import { mat4 } from '../math'; export class MatrixTween extends Tween { action() { for (let i = 0; i < this.from.length; i++) { this.object[i] = this.from[i] + this.current_step * (this.to[i] - this.from[i]); } } pre_start() { super.pre_start(); this.fro...
michalbe/cervus
tweens/matrix-tween.js
JavaScript
mit
355
#include "stdafx.h" #include "model.h" #include "node.h" #include "../manager/resourcemanager.h" #include "mesh.h" #include "bonemgr.h" using namespace graphic; // Bone¸¶´Ù °æ°è¹Ú½º¸¦ »ý¼ºÇÑ´Ù. struct sMinMax { Vector3 Min; Vector3 Max; sMinMax() : Min(Vector3(0,0,0)), Max(Vector3(0,0,0)) {} }; cModel::cMode...
kami36/3Dproject
Graphic/model/model.cpp
C++
mit
4,095
<?php declare(strict_types=1); /** * This file is part of the Netrc package. * * (c) Alex Medvedev <alex.medwedew@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Date: 3/21/14 */ namespace Fduch\Netrc\Exception; us...
fduch/netrc
src/Exception/ParseException.php
PHP
mit
448
import React from 'react'; import MobileTearSheet from './MobileTearSheet'; import List from 'material-ui/lib/lists/list'; import ListItem from 'material-ui/lib/lists/list-item'; import ActionInfo from 'material-ui/lib/svg-icons/action/info'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-u...
PranavRam/pfrally
src/pages/home/ListExampleFolder.js
JavaScript
mit
1,876
module.exports = function Boot(game) { return { preload: function(){ game.load.image('mars', '/assets/images/mars.png'); }, create: function(){ //This is just like any other Phaser create function console.log('Boot was just loaded'); this.mars = game.add.sprite(0, 0, 'mars'); ...
krzychukula/browserify-phaser
src/states/boot.js
JavaScript
mit
439
var topics = require('../data').topics; console.log(topics); var result = topics.filter(function (topic) { //filter renvoie les 'true' return topic.user.name === 'Leonard'; //? true : false; }); var result2 = topics.filter(topic=>topic.user.name === 'Leonard'); var titles = topics.map(function (topic) { retu...
florianfouchard/javascript-training
src/function/ES5.js
JavaScript
mit
3,573
using System; using System.Collections.Generic; using System.Text; namespace Imml { public interface IElementFactory { ImmlElement Create(string elementName, IImmlElement parentElement); } }
craigomatic/IMML
src/Imml/IElementFactory.cs
C#
mit
215
File.dirname(__FILE__).tap do |supermarket| Dir[File.join(supermarket, 'import', '*.rb')].map do |file| file.split(File::SEPARATOR).last.split('.').first end.each do |name| require "supermarket/import/#{name}" end end require 'supermarket/community_site' module Supermarket module Import def self.d...
gofullstack/chef-legacy
lib/supermarket/import.rb
Ruby
mit
1,365
StatsGopher.PresenceMonitor = function PresenceMonitor (opts) { opts = opts || {}; this.statsGopher = opts.statsGopher; this.key = opts.key; this.send = this.executeNextSend; this.paused = false; } StatsGopher.PresenceMonitor.prototype = { ignoreNextSend: function () { }, queueNextSend: function () { ...
sjltaylor/stats-gopher-js
src/stats_gopher.presence_monitor.js
JavaScript
mit
1,828
app.service('operacoes', function() { this.somar = function(valor1, valor2) { return valor1 + valor2; } this.subtrair = function(valor1, valor2) { return valor1 - valor2; } });
rodriggoarantes/rra-angular
js/aula09.service.js
JavaScript
mit
220
<?php /* * This file is part of the Topycs package. * * (c) Daniel Ribeiro <drgomesp@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Topycs\Discussions\Builder; /** * Defines a fluent builder for threads. ...
adamelso/Topycs
src/Topycs/Discussions/Builder/ThreadBuilderInterface.php
PHP
mit
665
from modelmapper.declarations import Mapper, Field from modelmapper.qt.fields import QLineEditAccessor class String(QLineEditAccessor): def get_value(self): return str(self.widget.text()) def set_value(self, value): self.widget.setText(str(value)) class Integer(QLineEditAccessor): def...
franramirez688/model-mapper
tests/factory/qt/mapper_data.py
Python
mit
1,040
function paddAppendClear() { jQuery('.append-clear').append('<div class="clear"></div>'); } function paddWrapInner1() { jQuery('.wrap-inner-1').wrapInner('<div class="inner"></div>'); } function paddWrapInner3() { jQuery('.wrap-inner-3').wrapInner('<div class="m"></div>'); jQuery('.wrap-inner-3').prepend('<div c...
chin8628/SIC
wp-content/themes/germaniumify/js/main.loading.js
JavaScript
mit
1,282
<?php /** * FurryBear * * PHP Version 5.3 * * @category Congress_API * @package FurryBear * @author lobostome <lobostome@local.dev> * @license http://opensource.org/licenses/MIT MIT License * @link https://github.com/lobostome/FurryBear */ namespace FurryBear\Resource\SunlightCongress\Method; use...
lobostome/FurryBear
src/FurryBear/Resource/SunlightCongress/Method/Votes.php
PHP
mit
1,233
/* globals $ */ const modals = window.modals; const footer = window.footer; const notifier = window.notifier; const admin = window.admin; ((scope) => { const modalLogin = modals.get("login"); const modalRegister = modals.get("register"); const helperFuncs = { loginUser(userToLogin) { co...
VenelinGP/Gemstones
src/public/pages/nav/nav.js
JavaScript
mit
6,675
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateForumOrdersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('forum_orders', function (Blueprint $table) { ...
adam-boduch/coyote
database/migrations/2015_12_09_212709_create_forum_orders_table.php
PHP
mit
1,086
__author__ = 'bptripp' import numpy as np from scipy.optimize import curve_fit import matplotlib.pyplot as plt from sklearn.cluster import KMeans from sklearn.discriminant_analysis import LinearDiscriminantAnalysis from keras.models import Sequential from keras.layers.core import Dense, Activation, Flatten from keras....
bptripp/grasp-convnet
py/cninit.py
Python
mit
7,083
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe WeeklyDigestsController do end
hadley/crantastic
spec/controllers/weekly_digests_controller_spec.rb
Ruby
mit
111
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> ii; typedef vector<int> vi; typedef vector<ii> vii; int pd[110][110] = {}; int choose(int a, int b) { if(pd[a][b]) return pd[a][b]; if(a==b) return 1; if(a<b) return 0; if(b==0) return 1; return pd[a][b] = choose(a-1...
matheuscarius/competitive-programming
maratonando/Seletiva UFPE 2016/e.cpp
C++
mit
839
//============================================================================ // Name : Code.cpp // Author : Yahya Milani // Version : // Copyright : Use as much as you like with author's name for noncommercial cases ONLY // Description : C++, Ansi-style //============================================...
yahya-milani/Parallel-FEM
src/Static.cpp
C++
mit
17,272
// Copyright (C) 2015-2021 The Neo Project. // // The neo is free software distributed under the MIT software license, // see the accompanying file LICENSE in the main directory of the // project or http://www.opensource.org/licenses/mit-license.php // for more details. // // Redistribution and use in source and bi...
AntShares/AntShares
src/neo/IO/Caching/ECPointCache.cs
C#
mit
771
(function () { 'use strict'; angular .module('patients') .controller('PatientsListController', PatientsListController); PatientsListController.$inject = ['PatientsService']; function PatientsListController(PatientsService) { var vm = this; vm.patients = PatientsService.query(); } })();
anshuman-singh-93/patient-crud-simple-app
modules/patients/client/controllers/list-patients.client.controller.js
JavaScript
mit
317
// Polyfills // (these modules are what are in 'angular2/bundles/angular2-polyfills' so don't use that here) // import 'ie-shim'; // Internet Explorer // import 'es6-shim'; // import 'es6-promise'; // import 'es7-reflect-metadata'; // Prefer CoreJS over the polyfills above require('core-js'); require('zone.js/dist/zone...
karnex47/iaa
src/polyfills.js
JavaScript
mit
508
require 'time_crisis/tzinfo/timezone_definition' module TimeCrisis::TZInfo module Definitions module Asia module Tehran include TimezoneDefinition timezone 'Asia/Tehran' do |tz| tz.offset :o0, 12344, 0, :LMT tz.offset :o1, 12344, 0, :TMT tz.offset :o2,...
ttilley/time_crisis
lib/time_crisis/tzinfo/definitions/Asia/Tehran.rb
Ruby
mit
5,409
<script type="text/javascript"> function changeKotaKab(){ var select_provinsi = $("#select_provinsi").val(); $.ajax({ url: "<?php echo base_url('index.php/kecamatan/selectkotakab' ); ?>/" + select_provinsi, success: function(result) { $("#select_kota_kab").html(result); } }); } </script> <div class...
andie87/MOUSystem
application/modules/kecamatan/views/edit.php
PHP
mit
3,133
/* * Nana GUI Programming Interface Implementation * Nana C++ Library(http://www.nanapro.org) * Copyright(C) 2003-2015 Jinhao(cnjinhao@hotmail.com) * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * @fil...
Greentwip/Windy
3rdparty/nana/include/nana/gui/programming_interface.hpp
C++
mit
12,662
<?php use google\appengine\api\users\User; use google\appengine\api\users\UserService; $user = UserService::getCurrentUser(); if (isset($user)) { /* echo sprintf('<li>Welcome, %s! (<a href="%s">sign out</a>)', $user->getNickname(), UserService::createLogoutUrl('/')); */ $u...
Autchariyakk/web592group08
admin.php
PHP
mit
735
<TS language="vi_VN" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Nhấn chuột phải để sửa địa chỉ hoặc nhãn</translation> </message> <message> <source>Create a new address</source> <trans...
ppcoin/ppcoin
src/qt/locale/bitcoin_vi_VN.ts
TypeScript
mit
42,099
<?php /** * 3 latest posts under slider. */ $thumb = has_post_thumbnail ()? wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large' ): [null]; if (!$thumb[0]){ if ( get_post_meta( $post->ID, '_scheduled_thumbnail_id' ) ){ $array = get_post_meta( $post->ID, '_scheduled_thumbnail_id' ); $thumb =...
damnmagazine/damn-sage
templates/home-company-posts.php
PHP
mit
1,880
<?php namespace Dazzle\Redis\Command\Compose; use Dazzle\Redis\Command\Builder; use Dazzle\Redis\Command\Enum; use Dazzle\Redis\Driver\Request; trait ApiSetTrait { /** * @param Request $request * @return mixed */ abstract function dispatch(Request $request); /** * @override * @i...
dazzle-php/redis
src/Redis/Command/Compose/ApiSetTrait.php
PHP
mit
4,082
namespace AAWebSmartHouse.Data.Migrations { using System.Data.Entity.Migrations; using System.Linq; using AAWebSmartHouse.Common; using AAWebSmartHouse.Data.Models; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; public sealed class Configuration : DbMigr...
Obelixx/AASmartHouse
AAWebSmartHouse/Data/AAWebSmartHouse.Data/Migrations/Configuration.cs
C#
mit
4,177
// Copyright (c) 2009-2012 Bitcoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" // for pwalletMain #include "bitcoinrpc.h" #include "ui_interface.h" #include "base58.h" #include <boost/lexica...
volumecoin/volume
src/rpcdump.cpp
C++
mit
2,846
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("Pr...
ReapeR-MaxPayne/SU-TM-PF-Ext-0517-Excersises-CSharp
03-DataTypesAndVariables-Exercises/Problem_15_Calculator/Properties/AssemblyInfo.cs
C#
mit
1,418
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
eriklieben/aurelia-materialize-css
dist/amd/components/card/cardActionElement.js
JavaScript
mit
1,745
module ValidatorIE class StateAP include ActiveModel::Validations attr_accessor :number validates :number, length: { minimum: 9, maximum: 9 }, numericality: true, presence: true validate :number_should_code_state validate :number_should_range_code validate :number_should_mod11 ...
rmomogi/validator_ie
lib/validator_ie/core/state_ap.rb
Ruby
mit
1,328
# -*- coding: utf-8 -*- tokens = [ 'LPAREN', 'RPAREN', 'LBRACE', 'RBRACE', 'EQUAL', 'DOUBLE_EQUAL', 'NUMBER', 'COMMA', 'VAR_DEFINITION', 'IF', 'ELSE', 'END', 'ID', 'PRINT' ] t_LPAREN = r"\(" t_RPAREN = r"\)" t_LBRACE = r"\{" t_RBRACE = r"\}" t_EQUAL = r"\=" t_DOU...
pablogonzalezalba/a-language-of-ice-and-fire
lexer_rules.py
Python
mit
1,138
using IoTHelpers.Helpers; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using Windows.Devices.I2c; namespace IoTHelpers.I2c.Devices { public struct Acceleration { public double X { get; internal set; } ...
Dot-and-Net/IoTHelpers
Src/IoTHelpers/I2c/Devices/Adxl345Accelerometer.cs
C#
mit
5,521
module.exports = function (grunt) { // Define the configuration for all the tasks grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), // Configure a mochaTest task mochaTest: { test: { options: { reporter: 'spec', ...
prateekbhatt/testing-sinon
GruntFile.js
JavaScript
mit
782
<?php //Names the page template for each section /* Template Name: Early College */ get_header(); ?> <?php get_template_part( 'parts/banners' ); ?> <div class="row"> <div class="container"> <?php // Gets the alert custom post type id for each sub page needing special announcement $post_id = 5447; $queried_post = get...
mattrhummel/GermannaCC-WPTheme
page-early-college.php
PHP
mit
799
import { createEllipsisItem, createFirstPage, createLastItem, createNextItem, createPageFactory, createPrevItem, } from 'src/lib/createPaginationItems/itemFactories' describe('itemFactories', () => { describe('createEllipsisItem', () => { it('"active" is always false', () => { createEllipsisIte...
Semantic-Org/Semantic-UI-React
test/specs/lib/createPaginationItems/itemFactories-test.js
JavaScript
mit
3,176
#include <algorithm> #include "GI/uvmapper.h" UVMapper::UVMapper( glm::ivec2 size) : m_size(size), m_scale(0.f), m_border(glm::vec2(1.)/glm::vec2(size)) {} UVMapper::~UVMapper() {} void UVMapper::computeLightmapPack(std::vector<Object*> &obj) { m_obj = obj; std::vector<Quadrilateral> m_quad; ...
XT95/PBGI
src/GI/uvmapper.cpp
C++
mit
4,909
import java.lang.IndexOutOfBoundsException; public interface Sequence { public int size(); // Return number of elements in sequence. public void addFirst(int e); // Insert e at the front of the sequence. public void addLast(int e); // Insert e at the back of the sequence. // Inserts an eleme...
adamjcook/cs27500
exam1/problem15/Sequence.java
Java
mit
646
module Multichain describe Client do let(:client) { described_class.new } it 'knows about its asset' do expect(client.asset).to eq 'odi-coin' end context 'send a coin' do it 'sends to a simple address', :vcr do expect(client.send_asset 'stu', 1).to eq ( { rec...
theodi/multichain-client
spec/multichain/send_data_spec.rb
Ruby
mit
2,158
// The MIT License (MIT) // // Copyright (c) 2014-2017, Institute for Software & Systems Engineering // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including wit...
maul-esel/ssharp
Source/SafetySharp/Runtime/SafetySharpRuntimeModel.cs
C#
mit
9,662
import pyqtgraph as pg from pyqtgraph.Qt import QtGui, QtCore import numpy# from pyqtgraph.parametertree import Parameter, ParameterTree, ParameterItem, registerParameterType class FeatureSelectionDialog(QtGui.QDialog): def __init__(self,viewer, parent): super(FeatureSelectionDialog, self).__init...
timoMa/vigra
vigranumpy/examples/boundary_gui/bv_feature_selection.py
Python
mit
3,993
/** * App */ 'use strict'; // Base setup var express = require('express'); var app = express(); var path = require('path'); var bodyParser = require('body-parser'); var logger = require('morgan'); var mongoose = require('mongoose'); var config = require('./config'); var routes = require('./routes/index'); var val...
lucianot/dealbook-node-api
app.js
JavaScript
mit
2,082
$(document).ready(function(){ 'use strict'; //Turn off and on the music $("#sound-control").click(function() { var toggle = document.getElementById("sound-control"); var music = document.getElementById("music"); if(music.paused){ music.play(); $("#sound-control").attr('src', 'img/ljud_pa.png'); ...
emmb14/MegaSlider
js/megaslider.js
JavaScript
mit
3,148
/* * Manifest Service * * Copyright (c) 2015 Thinknode Labs, LLC. All rights reserved. */ (function() { 'use strict'; // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Service function loggerService() { /* jshint validthis: true */ this.logs = []; /** ...
thinknode/desktop
src/services/logger.js
JavaScript
mit
930
from engine.api import API from engine.utils.printing_utils import progressBar from setup.utils.datastore_utils import repair_corrupt_reference, link_references_to_paper def remove_duplicates_from_cited_by(): print("\nRemove Duplicates") api = API() papers = api.get_all_paper() for i, paper in enumer...
thomasmauerhofer/search-engine
src/setup/check_for_currupt_references.py
Python
mit
2,124
import { NgModule, Provider } from '@angular/core'; import { NgxsModule } from '@ngxs/store'; import { AppSoundcloudService } from './soundcloud.service'; import { AppSoundcloudState } from './soundcloud.store'; import { AppSoundcloudApiService } from './soundcloud-api.service'; export const soundcloudStoreModuleProv...
rfprod/dnbhub
src/app/store/soundcloud/soundcloud.module.ts
TypeScript
mit
511
package com.tkmdpa.taf.definitions.pantheon; import com.tkmdpa.taf.steps.pantheon.UserAccountSteps; import net.thucydides.core.annotations.Steps; import org.jbehave.core.annotations.Given; import org.jbehave.core.annotations.Then; import org.jbehave.core.annotations.When; public class UserAccountDefinition { @St...
ticketmaster-api/ticketmaster-api.github.io
tests/serenity/src/test/java/com/tkmdpa/taf/definitions/pantheon/UserAccountDefinition.java
Java
mit
1,145
// $Id: CurrentFunction.java 96 2005-02-28 21:07:29Z blindsey $ package com.blnz.xsl.expr; import com.blnz.xsl.om.*; /** * Represents the XSLT Function: node-set current() * * The current function returns a node-set that has the * current node as its only member. For an outermost * expression (an expression n...
blnz/palomar
src/main/java/com/blnz/xsl/expr/CurrentFunction.java
Java
mit
874
export { default } from './src/layout-container.vue';
wisedu/bh-mint-ui2
packages/layout-container/index.js
JavaScript
mit
54
@extends('masterPage') @section('content') <div class="box"> <div class="box-header"><h3 class="box-title"> Page3</h3></div> <!-- /.box-header --> <div class="box-body"> <form role="form"> <div class="box-body"> <div class="form-group"> ...
benAsiri/divisionalSecSystem
resources/views/HR/yearly_Increment_Calc/YICPage3.blade.php
PHP
mit
1,113
require 'rails_helper' def create_service(student, educator) FactoryGirl.create(:service, { student: student, recorded_by_educator: educator, provided_by_educator_name: 'Muraki, Mari' }) end describe StudentsController, :type => :controller do describe '#show' do let!(:school) { FactoryGirl.cre...
erose/studentinsights
spec/controllers/students_controller_spec.rb
Ruby
mit
19,225
/* *@author jaime P. Bravo */ $(document).ready(function () { //forms general function sendDataWithAjax(type, url, data) { return $.ajax({ type: type, url: url, data: data, dataType: 'json', beforeSend: function () { console...
fireflex/matters
assets/js/general.js
JavaScript
mit
2,874
<?php class Ess_M2ePro_Sql_Upgrade_v6_4_14__v6_5_0_16_AllFeatures extends Ess_M2ePro_Model_Upgrade_Feature_AbstractFeature { //######################################## public function execute() { $tablesList = array( 'processing_request', 'product_change', 'lock...
portchris/NaturalRemedyCompany
src/app/code/community/Ess/M2ePro/sql/Upgrade/v6_4_14__v6_5_0_16/AllFeatures.php
PHP
mit
1,746
var LedgerRequestHandler = require('../../helpers/ledgerRequestHandler'); /** * @api {post} /gl/:LEDGER_ID/add-filter add filter * @apiGroup Ledger.Utils * @apiVersion v1.0.0 * * @apiDescription * Add a filter for caching balances. This will speed up balance * requests containing a matching filters. * * @...
electronifie/accountifie-svc
lib/routes/gl/addFilter.js
JavaScript
mit
1,756
from polyphony import testbench def g(x): if x == 0: return 0 return 1 def h(x): if x == 0: pass def f(v, i, j, k): if i == 0: return v elif i == 1: return v elif i == 2: h(g(j) + g(k)) return v elif i == 3: for m in range(j): ...
ktok07b6/polyphony
tests/if/if28.py
Python
mit
922
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <link href="css/admin.css" type="text/css" rel="stylesheet"> <script src="js/main/jquery.js"></script>
alexander-shibisty/subscribeonme
administrator/blocks/main/header.php
PHP
mit
180
package postactions import ( "net/http" "github.com/fragmenta/auth/can" "github.com/fragmenta/mux" "github.com/fragmenta/server" "github.com/fragmenta/view" "github.com/fragmenta/fragmenta-cms/src/lib/session" "github.com/fragmenta/fragmenta-cms/src/posts" "github.com/fragmenta/fragmenta-cms/src/users" ) //...
fragmenta/fragmenta-cms
src/posts/actions/update.go
GO
mit
2,058
/* * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, O...
pelger/Kafkaesque
lib/message/request/describeGroups.js
JavaScript
mit
1,146
package main.habitivity.services; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.net.ConnectivityManager; import android.net.NetworkInfo; /** * Created by Shally on 2017-12-01. */ public class Connectivity...
CMPUT301F17T20/Habitivity
app/src/main/java/main/habitivity/services/ConnectivityService.java
Java
mit
1,916
<?php /* @WebProfiler/Collector/twig.html.twig */ class __TwigTemplate_793d44b82b00b11058566fd43a938457dfbf8bd2ba53b4f3f33086ff7eecb7a9 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 $this->parent = $this->loadTemplate(...
peterpangl/sso-project
var/cache/dev/twig/3c/3c143050536fee4bbe81d2075bb2515ac85282e72e70471d06862fa83c81a660.php
PHP
mit
15,225
<?php namespace Qafoo\ChangeTrack\FISCalculator; class TransactionDatabase { /** * Row based data set * * @var array */ private $data; /** * Items that occur in this data base * * @var string[] */ private $items = array(); /** * @param array $data ...
Qafoo/changetrack
src/main/Qafoo/ChangeTrack/FISCalculator/TransactionDatabase.php
PHP
mit
1,795
// @flow /* ********************************************************** * File: Footer.js * * Brief: The react footer component * * Authors: Craig Cheney, George Whitfield * * 2017.04.27 CC - Document created * ********************************************************* */ import React, { Component } from 'react'; import ...
TheCbac/MICA-Desktop
app/components/Footer.js
JavaScript
mit
1,554
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import {Typography, Popover, Input, Select, Checkbox} from 'antd'; import {DataInspectorSetValue} from './DataInsp...
facebook/flipper
desktop/flipper-plugin/src/ui/data-inspector/DataDescription.tsx
TypeScript
mit
18,166
using System; using Windows.ApplicationModel.Activation; using Windows.UI.Core; using Windows.UI.Input; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Input; using Windows.UI.Xaml.Navigation; // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&c...
AndrewGaspar/Podcasts
Podcasts/Chrome.xaml.cs
C#
mit
6,129
/** * Auction collection */ 'use strict'; var Model = require('../models/auction_model.js'); var Collection = require('tungstenjs/adaptors/backbone').Collection; var AuctionCollection = Collection.extend({ model: Model }); module.exports = AuctionCollection;
marielb/roadshow
app/public/js/collections/auction_collection.js
JavaScript
mit
264
# Public: Executes a block of code and retries it up to `tries` times if an # exception was raised. # # tries - An Integer (default: Float::Infinity). # exceptions - A list of Exceptions (default: StandardError). # # Examples # # class Wrapper # include Bonehead # # def login(username, password) # ...
britishtea/bonehead
lib/bonehead.rb
Ruby
mit
813
// Regular expression that matches all symbols in the Devanagari Extended block as per Unicode v6.0.0: /[\uA8E0-\uA8FF]/;
mathiasbynens/unicode-data
6.0.0/blocks/Devanagari-Extended-regex.js
JavaScript
mit
121