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
""" Tests for a door card. """ import pytest from onirim import card from onirim import component from onirim import core from onirim import agent class DoorActor(agent.Actor): """ """ def __init__(self, do_open): self._do_open = do_open def open_door(self, content, door_card): retu...
cwahbong/onirim-py
tests/test_door.py
Python
mit
2,159
/* **============================================================================== ** ** Copyright (c) 2003, 2004, 2005, 2006, Michael Brasher, Karl Schopmeyer ** ** Permission is hereby granted, free of charge, to any person obtaining a ** copy of this software and associated documentation files (the "Software"), ** ...
LegalizeAdulthood/cimple
src/server/OS_close.cpp
C++
mit
1,444
'use strict'; const test = require('ava'); const hashSet = require('../index'); const MySet = hashSet(x => x); test('should not change empty set', t => { const set = new MySet(); set.clear(); t.is(set.size, 0); }); test('should clear set', t => { const set = new MySet(); set.add(1); set.c...
blond/hash-set
test/clear.js
JavaScript
mit
356
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Network::Mgmt::V2019_08_01 module Models # # Response for ListBastionHosts API service call. # class BastionHostListResult ...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2019-08-01/generated/azure_mgmt_network/models/bastion_host_list_result.rb
Ruby
mit
2,770
### This script fetches level-1 PACS imaging data, using a list generated by the ### archive (in the CSV format), attaches sky coordinates and masks to them ### (by calling the convertL1ToScanam task) and save them to disk in the correct ### format for later use by Scanamorphos. ### See important instructions below. ...
alvaroribas/modeling_TDs
Herschel_mapmaking/scanamorphos/PACS/general_script_L1_PACS.py
Python
mit
2,499
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sim908Connect.Lib.Constants { internal class CommandFormats { internal const string AT_CGSNBASE = "AT+CGSN"; internal const string ATE = "ATE"; internal const s...
thehoneymad/Sim908Connect
Sim908Connect/Lib/Constants/CommandFormats.cs
C#
mit
358
<!-- START REVOLUTION SLIDER 5.0 --> <div id="slider_container" class="rev_slider_wrapper"> <div id="rev-slider" class="rev_slider" data-version="5.0"> <ul> <li data-transition="slideremovedown"> <!-- MAIN IMAGE --> <img src="<?php echo $this->common->theme_link(...
dodeagung/KLGH
public_html/application/views/frontpage/home_view.php
PHP
mit
24,501
<?php namespace AppBundle\Form; use AppBundle\AppBundle; use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; class ProductType extends AbstractType { /** * {@inherit...
Bunkermaster/exosymfony
src/AppBundle/Form/ProductType.php
PHP
mit
885
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from conans.model import Generator from conans.client.generators import VisualStudioGenerator from xml.dom import minidom from conans.util.files import load class VisualStudioMultiGenerator(Generator): template = """<?xml version="1.0" encoding="utf-8"?> <P...
lasote/conan
conans/client/generators/visualstudio_multi.py
Python
mit
2,436
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class M_slider extends Main_model { function __construct() { parent::__construct(); $this->table = array( 'name' => 'tbl_slider', 'coloumn' => array( 'slider_id' => ar...
dwivivagoal/KuizMilioner
application/modules/webadmin/models/M_slider.php
PHP
mit
2,465
package org.katlas.JavaKh.rows; import org.katlas.JavaKh.utils.RedBlackIntegerTree; public class RedBlackIntegerMap<F> extends RedBlackIntegerTree<F> implements MatrixRow<F> { /** * */ private static final long serialVersionUID = 5885667469881867107L; public void compact() { } public voi...
craigfreilly/masters-project-submission
src/KnotTheory/JavaKh-v2/src/org/katlas/JavaKh/rows/RedBlackIntegerMap.java
Java
mit
518
/** * 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. */ package com.microsoft.azure.management.mediaservices.v2018_07_01; import com.fasterxml....
selvasingh/azure-sdk-for-java
sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ListEdgePoliciesInput.java
Java
mit
1,044
/** * 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. * jkl */ package com.microsoft.azure.management.apimanagement.v2019_12_01.implementation; ...
selvasingh/azure-sdk-for-java
sdk/apimanagement/mgmt-v2019_12_01/src/main/java/com/microsoft/azure/management/apimanagement/v2019_12_01/implementation/LoggersImpl.java
Java
mit
3,159
<?php /** * Created by PhpStorm. * User: jmannion * Date: 04/08/14 * Time: 22:17 */ namespace JamesMannion\ForumBundle\Form\User; use Symfony\Component\Form\FormBuilderInterface; use JamesMannion\ForumBundle\Constants\Label; use JamesMannion\ForumBundle\Constants\Button; use JamesMannion\ForumBundle\Constants\Va...
mannion007/JamesMannionForum
src/JamesMannion/ForumBundle/Form/User/UserCreateForm.php
PHP
mit
3,204
/*! Slidebox.JS - v1.0 - 2013-11-30 * http://github.com/trevanhetzel/slidebox * * Copyright (c) 2013 Trevan Hetzel <trevan.co>; * Licensed under the MIT license */ slidebox = function (params) { // Carousel carousel = function () { var $carousel = $(params.container).children(".carousel"), ...
trevanhetzel/slidebox
slidebox.js
JavaScript
mit
3,369
<?php // ============================================================================= // VIEWS/ETHOS/_POST-CAROUSEL.PHP // ----------------------------------------------------------------------------- // Outputs the post carousel that appears at the top of the masthead. // ============================================...
whskyneat/element-wheels-blog
web/app/themes/x/framework/views/ethos/_post-carousel.php
PHP
mit
2,761
import test from 'ava'; import Server from '../../src/server'; import IO from '../../src/socket-io'; test.cb('mock socket invokes each handler with unique reference', t => { const socketUrl = 'ws://roomy'; const server = new Server(socketUrl); const socket = new IO(socketUrl); let handlerInvoked = 0; const ...
thoov/mock-socket
tests/issues/65.test.js
JavaScript
mit
2,017
import React from 'react' import PropTypes from 'prop-types' import VelocityTrimControls from './VelocityTrimControls' import Instrument from '../../images/Instrument' import styles from '../../styles/velocityTrim' import { trimShape } from '../../reducers/velocityTrim' const handleKeyDown = (event, item, bank, userCh...
dkadrios/zendrum-stompblock-client
src/components/trims/VelocityTrim.js
JavaScript
mit
2,066
class CreateTips < ActiveRecord::Migration[5.0] def change create_table :tips do |t| t.text :body t.timestamps end end end
agonzalez0515/Coco-app
db/migrate/20161220004643_create_tips.rb
Ruby
mit
148
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class MY_Controller extends CI_Controller { public function __construct() { parent::__construct(); $this->load->helper('url'); } } class Admin_Controller extends MY_Controller { public function __construct() { ...
bivinvinod/footballCrazy
application/core/MY_Controller.php
PHP
mit
439
/* * Copyright (c) 2014-2016, Santili Y-HRAH KRONG * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * lis...
Santili/cppsqlx
source/sqlcreatetable.cpp
C++
mit
2,452
<?php /** * Link posts * * @package Start Here * @since Start Here 1.0.0 */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="post-header"> <div class="header-metas"> <?php sh_post_format(); ?> <?php if( is_singular() ) { edit_post_l...
Manoz/start-here
start-here/templates/content-link.php
PHP
mit
2,213
# Scrapy settings for helloscrapy project # # For simplicity, this file contains only the most important settings by # default. All the other settings are documented here: # # http://doc.scrapy.org/en/latest/topics/settings.html # BOT_NAME = 'helloscrapy' SPIDER_MODULES = ['helloscrapy.spiders'] NEWSPIDER_MODULE ...
orangain/helloscrapy
helloscrapy/settings.py
Python
mit
525
""" Django settings for djangoApp project. Generated by 'django-admin startproject' using Django 1.10.5. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import ...
reggieroby/devpack
frameworks/djangoApp/djangoApp/settings.py
Python
mit
3,105
namespace Engine.Contracts { public interface IAct { /// <summary> /// Makes an act (or try) and returns how much time it takes /// </summary> /// <param name="scene">Scene on which act plays</param> /// <returns>Time passed</returns> ActResult Do(IScene scene); string Name { get...
sheix/GameEngine
Engine/Contracts/IAct.cs
C#
mit
482
/** * @fileoverview Rule to flag use of implied eval via setTimeout and setInterval * @author James Allardice */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const ast...
pvamshi/eslint
lib/rules/no-implied-eval.js
JavaScript
mit
5,435
/* --------------------------------------------------------------------------- Open Asset Import Library (ASSIMP) --------------------------------------------------------------------------- Copyright (c) 2006-2010, ASSIMP Development Team All rights reserved. Redistribution and use of this software in source and bin...
mtwilliams/mojo
dependencies/assimp-2.0.863/tools/assimp_view/LogWindow.cpp
C++
mit
6,958
module Tasklist end
chaimedes/HanamiTaskList
lib/tasklist.rb
Ruby
mit
20
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Library to generate items for Sortable.js */ class Sortable { protected $CI; protected $mItems; protected $mPostName = 'sortable_ids'; public function __construct() { $this->CI =& get_instance(); $this->CI->load->library('parser')...
jiji262/codeigniter_boilerplate
application/modules/admin/libraries/Sortable.php
PHP
mit
2,088
import NodeFunction from '../core/NodeFunction.js'; import NodeFunctionInput from '../core/NodeFunctionInput.js'; const declarationRegexp = /^\s*(highp|mediump|lowp)?\s*([a-z_0-9]+)\s*([a-z_0-9]+)?\s*\(([\s\S]*?)\)/i; const propertiesRegexp = /[a-z_0-9]+/ig; const pragmaMain = '#pragma main'; const parse = ( source ...
jpweeks/three.js
examples/jsm/renderers/nodes/parsers/GLSLNodeFunction.js
JavaScript
mit
2,740
"use strict"; 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 = R...
mail2yugi/ProjectTodoList
src/app/app.component.js
JavaScript
mit
1,606
using Feria_Desktop.View.Usuario; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; u...
lagrantorre/PortafolioTItulo
Feria Desktop/Feria Desktop/View/Mantenedor/Bodega.xaml.cs
C#
mit
912
/** * Copies the values of `source` to `array`. * * @private * @param {Array} source The array to copy values from. * @param {Array} [array=[]] The array to copy values to. * @returns {Array} Returns `array`. */ function arrayCopy(source, array) { var index = -1, length = source.length; array || (arra...
gdgzdar/2048
node_modules/karma/node_modules/lodash/internal/arrayCopy.js
JavaScript
mit
442
package de.uni.bremen.stummk.psp.calculation; import java.lang.reflect.InvocationTargetException; import java.util.List; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.CoreException; import org.ecl...
stummk/psp-eclipse
Source/de.uni.bremen.stummk.psp/src/de/uni/bremen/stummk/psp/calculation/EditorToolbarAction.java
Java
mit
5,479
/// This is the sensor class /// /// Sensor is a box2d fixture that is attached to a parent body /// Sensors are used to detect entities in an area. #pragma once #include <AFP/Scene/SceneNode.hpp> #include <AFP/Entity/Entity.hpp> #include <AFP/Entity/Character.hpp> namespace AFP { class Sensor : public SceneNode ...
Pinqvin/afp-game
include/AFP/Entity/Sensor.hpp
C++
mit
2,350
package insanityradio.insanityradio; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class PlayPauseReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { try { FragmentNowPlayin...
dylanmaryk/InsanityRadio-Android
app/src/main/java/insanityradio/insanityradio/PlayPauseReceiver.java
Java
mit
663
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/ # SECURITY WARNING: keep t...
seccom-ufsc/hertz
hertz/settings.py
Python
mit
3,237
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("Ro...
phristov/CSharp.DesignPatterns
Builder - Robot/Properties/AssemblyInfo.cs
C#
mit
1,402
<?php /* FOSUserBundle:Resetting:request_content.html.twig */ class __TwigTemplate_16fccc8b4081822ba4c49543c44f48b24850d6b4ad9846152c39968be5b4e7c7 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blo...
thecoons/thecoontube
app/cache/dev/twig/16/fc/cc8b4081822ba4c49543c44f48b24850d6b4ad9846152c39968be5b4e7c7.php
PHP
mit
2,146
export default (callback) => { setTimeout(() => { callback(); setTimeout(() => { callback(); }, 3000); }, 3000); }
csxiaoyaojianxian/JavaScriptStudy
13-自动化测试&mock数据/01-jest入门/09-mock-timer.js
JavaScript
mit
158
import re import warnings import ctds from .base import TestExternalDatabase from .compat import PY3, PY36, unicode_ class TestTdsParameter(TestExternalDatabase): def test___doc__(self): self.assertEqual( ctds.Parameter.__doc__, '''\ Parameter(value, output=False) Explicitly de...
zillow/ctds
tests/test_tds_parameter.py
Python
mit
7,779
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace HolisticWare.Ph4ct3x.Server.Pages.Ph4ct3x.Communication { public class InstantMessagingChatModel : PageModel { public vo...
moljac/Ph4ct3x
samples/Clients/HolisticWare.Ph4ct3x.Server.ASPnet.UI.RazorPages.shared/Pages/Ph4ct3x/Communication/InstantMessagingChat.cshtml.cs
C#
mit
361
#include "Renderer.h" #include "Core/Windows/Window.h" #include <Resources/ResourceCache.h> namespace uut { UUT_MODULE_IMPLEMENT(Renderer) {} Renderer::Renderer() : _screenSize(0) { } Renderer::~Renderer() { } ////////////////////////////////////////////////////////////////////////////// bool Renderer::...
kolyden/uut-engine
UUT/Video/Renderer.cpp
C++
mit
896
package jnt.scimark2; public class kernel { // each measurement returns approx Mflops public static double measureFFT(int N, double mintime, Random R) { // initialize FFT data as complex (N real/img pairs) double x[] = RandomVector(2*N, R); double oldx[] = NewVectorCopy(x); long cycles = 1; ...
BU-PCM-Testbed/ThermalProfiler
app/src/main/java/jnt/scimark2/kernel.java
Java
mit
7,529
'use strict' const reduce = Function.bind.call(Function.call, Array.prototype.reduce); const isEnumerable = Function.bind.call(Function.call, Object.prototype.propertyIsEnumerable); const concat = Function.bind.call(Function.call, Array.prototype.concat); const keys = Reflect.ownKeys; if (!Object.values) { Object.v...
vitaliiznak/game-fluky_colors
polifill.js
JavaScript
mit
1,634
class Admin::DashboardController < AdminAreaController def index #You are entering an area where no project is concerned, so forget about your current project session[:project] = nil end end
atoulme/collaboa-clone
app/controllers/admin/dashboard_controller.rb
Ruby
mit
207
<?php use History\Entities\Models\Company; use History\Entities\Models\Question; use History\Entities\Models\Request; use History\Entities\Models\Threads\Comment; use History\Entities\Models\Threads\Thread; use History\Entities\Models\User; use History\Entities\Models\Vote; use League\FactoryMuffin\FactoryMuffin; use ...
madewithlove/why-cant-we-have-nice-things
resources/factories/factories.php
PHP
mit
3,327
import {Routes} from '@angular/router'; import {JournalComponent} from '../journal/journal.component'; export const LUOO_APP_ROUTERS: Routes = [ {path: 'journal', component: JournalComponent} ]
Tneciv/Poseidon
frontend/src/app/common/routers.ts
TypeScript
mit
197
// This file is part of SWGANH which is released under the MIT license. // See file LICENSE or go to http://swganh.com/LICENSE #include "swganh_core/gamesystems/gamesystems_service_binding.h" BOOST_PYTHON_MODULE(py_gamesystems) { docstring_options local_docstring_options(true, true, false); exportGameSystems...
anhstudios/swganh
src/swganh_core/GameSystems/GameSystems_service_binding.cc
C++
mit
332
var htmlparser = require('htmlparser2'); var _ = require('lodash'); var ent = require('ent'); module.exports = sanitizeHtml; function sanitizeHtml(html, options) { var result = ''; if (!options) { options = sanitizeHtml.defaults; } else { _.defaults(options, sanitizeHtml.defaults); } // Tags that co...
effello/cms
node_modules/apostrophe/node_modules/sanitize-html/index.js
JavaScript
mit
4,431
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { ExtendComponent } from './src/components/extend.component'; import { SubExtendComponent } from './src/components/sub-extend.component'; const extendRoutes: Routes = [ { path: '', component: ExtendCompo...
seveves/ng2-lib-test
@lib-test/extend/extend.routes.ts
TypeScript
mit
595
(function(){ 'use strict' angular .module("jobDetail") .service("jobDetailService",jobDetailService); jobDetailService.$inject = ['apiService','apiOptions']; function jobDetailService(apiService,apiOptions) { var jobId; this.getJobDetail=function(jobId) { // return "ok"; return apiService.get("j...
dozgunyal/ang-oboy
app/job-detail/job-detail.service.js
JavaScript
mit
351
/** * Copyright MaDgIK Group 2010 - 2015. */ package madgik.exareme.worker.art.container.job; import madgik.exareme.worker.art.container.ContainerJob; import madgik.exareme.worker.art.container.ContainerJobType; import madgik.exareme.worker.art.executionEngine.session.PlanSessionReportID; /** * @author heraldkllap...
madgik/exareme
Exareme-Docker/src/exareme/exareme-worker/src/main/java/madgik/exareme/worker/art/container/job/TableTransferJob.java
Java
mit
667
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_BR" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About SwansonCoin</source> <translation>Sobre o SwansonCoin</translatio...
swansoncoin/swansoncoin
src/qt/locale/bitcoin_pt_BR.ts
TypeScript
mit
118,810
package com.twitter.meil_mitu.twitter4holo.api.help; import com.twitter.meil_mitu.twitter4holo.AbsGet; import com.twitter.meil_mitu.twitter4holo.AbsOauth; import com.twitter.meil_mitu.twitter4holo.ITwitterJsonConverter; import com.twitter.meil_mitu.twitter4holo.OauthType; import com.twitter.meil_mitu.twitter4holo.Resp...
MeilCli/Twitter4Holo
library/src/main/java/com/twitter/meil_mitu/twitter4holo/api/help/Tos.java
Java
mit
1,064
module Cranium::ImportStrategy autoload :Base, 'cranium/import_strategy/base' autoload :DeleteInsert, 'cranium/import_strategy/delete_insert' autoload :Delete, 'cranium/import_strategy/delete' autoload :TruncateInsert, 'cranium/import_strategy/truncate_insert' autoload :Delta, 'cranium/import_strategy/delta'...
emartech/cranium
lib/cranium/import_strategy.rb
Ruby
mit
376
var STATE_START = 0; var STATE_END = 1; var STATE_GROUND = 2; var STATE_FOREST = 3; var STATE_WATER = 4; function Cell(col, row) { this.col = col; this.row = row; this.state = STATE_GROUND; } Cell.prototype.draw = function() { stroke(66); switch (this.state) { case STATE_START: Color.Material.light_green[5...
dylandevalia/dylan.devalia.com
old/pathfinding/cell.js
JavaScript
mit
996
'use strict'; /* Services */ // Demonstrate how to register services // In this case it is a simple value service. angular.module('baApp.services', []). value('version', '0.1');
alnutile/drag-and-drop-page
app/js/services.js
JavaScript
mit
183
var fs = require('fs'); var join = require('path').join; var iconv = require('iconv-lite'); var debug = require('debug')('ip'); var util = require('util'); var EventEmitter = require('events').EventEmitter; var thunkify = require('thunkify-wrap'); function IpUtil(ipFile, encoding, isLoad) { if (typeof encoding === '...
leoner/iputil
index.js
JavaScript
mit
7,755
using System; using CommandLine; using System.IO; using Nancy.Hosting.Self; using SeudoBuild.Core; using SeudoBuild.Core.FileSystems; using SeudoBuild.Pipeline; using SeudoBuild.Net; namespace SeudoBuild.Agent { class Program { private const string Header = @" _ _ _ _ _ ...
mstevenson/SeudoBuild
SeudoBuild.Agent/Program.cs
C#
mit
10,540
/* Noble cread UART service example This example uses Sandeep Mistry's noble library for node.js to read and write from Bluetooth LE characteristics. It looks for a UART characteristic based on a proprietary UART service by Nordic Semiconductor. You can see this service implemented in Adafruit's BLEFriend library. ...
evejweinberg/SuperHeroAutoPilot
ble-uart.js
JavaScript
mit
4,710
class QuestionGroupTracker attr_reader :questions, :question_group_id, :question_group def initialize(question_group_id) @questions = Question.where('question_group_id=?', question_group_id) @counter = 0 @question_group_id = question_group_id @question_group = QuestionGroup.find(question_group_id...
weedySeaDragon/surveyor_gui
app/models/question_group_tracker.rb
Ruby
mit
588
import logging import requests from django.conf import settings from django.contrib.sites.models import Site from django.core.mail import EmailMultiAlternatives from django.template.loader import get_template from django.utils import timezone from invitations.models import Invitation logger = logging.getLogger('email...
phildini/logtacts
invitations/consumers.py
Python
mit
1,739
/* ********************************************************************************************************** * The MIT License (MIT) * * * * Copyright (c) 2016 Hypermediasystems Ges. f. Software mbH * * Web: http://www.hypermediasystems.de * ...
helmuttheis/hmsspx
hmssp/SP.gen/ServerSettings.cs
C#
mit
4,781
//using System; //using System.Collections.Generic; //using System.Linq; //using System.Text; //using parser; // //namespace runic.lexer //{ // public class Lexer_Bootstrap_Old : Parser_Context // { // public Lexer_Bootstrap_Old(Definition definition) // : base(definition) // ...
silentorb/runic
Runic/lexer/Lexer_Bootstrap_Old.cs
C#
mit
1,047
using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using StockExchangeYahooFinance.DbContext; namespace StockExchangeYahooFinance.Migrations { [DbContext(typeof(YahooFi...
error505/YahooFinanceApi
StockExchangeYahooFinance/Migrations/20170419132834_updateExAddCountry.Designer.cs
C#
mit
12,032
'use strict'; const util = require('util'); const colors = require('colors/safe'); Object.entries({ info: colors.blue, warn: colors.yellow, error: colors.red }).map(([method, color]) => { const _ = global.console[method]; global.console[method] = (...args) => { if (args.length) { ...
cravler/whaler
lib/console.js
JavaScript
mit
509
require.ensure([], function(require) { require("./73.async.js"); require("./147.async.js"); require("./294.async.js"); require("./588.async.js"); }); module.exports = 589;
skeiter9/javascript-para-todo_demo
webapp/node_modules/webpack/benchmark/fixtures/589.async.js
JavaScript
mit
171
<rtl code> var m = function (){ function T(){ this.a = []; } var r = new T(); var a = RTL$.makeArray(3, 0); var dynamicInt = []; var dynamicString = []; var dynamicChar = []; var dynamicByte = []; var dynamicRecord = []; var dynamicArrayOfStaticArrayInt = []; var i = 0; var s = ''; var byte = 0; function assignDynami...
vladfolts/oberonjs
test/expected/eberon/dynamic_array.js
JavaScript
mit
2,536
def burrows_wheeler(text): """Calculates the burrows wheeler transform of <text>. returns the burrows wheeler string and the suffix array indices The text is assumed to not contain the character $""" text += "$" all_permutations = [] for i in range(len(text)): all_permutations.append(...
alneberg/sillymap
sillymap/burrows_wheeler.py
Python
mit
567
using System.ComponentModel.Composition; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.Azure; using Microsoft.Azure.Management.Resources; using Microsoft.Azure.Management.Resources.Models; using Microsoft.Deployment.Common.ActionModel; using Microsoft.Deploym...
mayankon24/d-final
Source/Actions/Microsoft.Deployment.Actions.AzureCustom/HCL/CreateAzureMLWorkspace.cs
C#
mit
4,495
package com.example.dao; import com.example.model.Publisher; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; import java.util.List; @Mapper public interface PublisherMapper { @Select("SELECT *, PHONE as phoneNumber from PUBLISHERS") //SQL List<Publisher> findAll(); // ...
doubleirish/mybatis-spring-boot
src/main/java/com/example/dao/PublisherMapper.java
Java
mit
683
<?php while (have_posts()) : the_post(); ?> <article <?php post_class(); ?>> <div class="entry-content content-medicina-prepagada"> <header class="menu-med-prep text-center"> <ul class="list-inline"> <?php $loop = new WP_Query( array( 'post_type' => 'aps', 'order' => 'ASC', 'category_name'=> 'link'));?>...
nedilio/rescarven-wp-theme
templates/content-single-aps.php
PHP
mit
4,240
package wikimediaparser import ( "fmt" "github.com/golang/glog" "strings" ) // Node as it is emitted by the parser // - contains a NodeType for clear identification // - a string val Val // - a list of named parameters which are actually Node Lists // -a list of anonymous parameters, a Node list aga...
octplane/wikiquote-parser
node.go
GO
mit
2,562
import Vue from 'vue'; import VueForm from 'vue-form'; Vue.use(VueForm, { validators: { 'step': function(value, stepValue) { return stepValue === `any` || Number(value) % Number(stepValue) === 0; }, 'data-exclusive-minimum': function(value, exclusiveMinimum) { return Number(value) > Number(ex...
FloEdelmann/open-fixture-library
ui/plugins/vue-form.js
JavaScript
mit
2,583
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Post extends Application { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/in...
ericytsang/comp4711.lab2.partB.local
application/controllers/Post.php
PHP
mit
939
var resources = require('jest'), util = require('util'), models = require('../../models'), async = require('async'), common = require('./../common'), calc_thresh = require('../../tools/calc_thresh.js'), GradeActionSuggestion = require('./grade_action_suggestion_resource.js'), ActionSuggesti...
saarsta/sheatufim
api/actions/GradeActionResource.js
JavaScript
mit
12,565
module Sample VERSION = '1.2' end
pavolzbell/bump
spec/fixtures/inputs/gem-2-version-numbers.rb
Ruby
mit
36
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; namespace CameraModifications { public class LookButton : MonoBehaviour { public bool isHead; public H_Scene h_scene; public H...
Eusth/Illusion-Plugins
CameraModifications/LookButton.cs
C#
mit
6,055
/** * This Control enables to render a Scene with a Screen Space Ambient Occlusion (SSAO) effect. * * @namespace GIScene * @class Control.SSAO * @constructor * @extends GIScene.Control */ GIScene.Control.SSAO = function() { //inherit GIScene.Control.call(this); var scenePass; var ssaoEffect; var fxaaEf...
GIScience/GIScene.js
lib/GIScene/Control/SSAO.js
JavaScript
mit
7,334
package com.cnpc.framework.utils; import com.cnpc.framework.base.pojo.GenerateSetting; import freemarker.template.Configuration; import freemarker.template.DefaultObjectWrapper; import freemarker.template.Template; import freemarker.template.TemplateException; import org.springframework.core.io.Resource; import org.sp...
XilongPei/Openparts
Openparts-framework/src/main/java/com/cnpc/framework/utils/FreeMarkerUtil.java
Java
mit
3,038
<?php /* @SRVDVServer/Registration/checkEmail.html.twig */ class __TwigTemplate_b7388a253fe83dce0c06be9794c45a140b6b7d51b0d7f4393b8bb6ea03bbb2f5 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 $this->parent = $this->load...
youcefboukersi/serveurdevoeux
app/cache/prod/twig/26/2661d52b18638f3c0557a97abe21ab4f663d0577907552ec42ba9fb1790acde1.php
PHP
mit
2,198
import * as b from "bobril"; import { IRouteWithNavDefinition } from "../../../../common/routing"; import { Anchor } from "../../../../common/Anchor"; import { Example } from "../../../../common/Example"; import { Col, Form, margin, Row } from "../../../../../index"; import { Code } from "../../../../common/Code"; impo...
keeema/bobrilstrap
example/documentation/content/forms/parts/FormsControls.tsx
TypeScript
mit
10,921
package easyauth import ( "context" "crypto/rand" "encoding/base64" "fmt" "html/template" "log" "net/http" "strings" "time" "github.com/gorilla/mux" ) //Role is a number representing a permission level. //Specific roles will be defined by the host application. //It is intended to be a bitmask. //Each user ...
alienth/bosun
vendor/github.com/captncraig/easyauth/auth.go
GO
mit
8,164
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M20 15H4c-.55 0-1 .45-1 1s.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1zm0-5H4c-.55 0-1 .45-1 1v1c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-1c0-.55-.45-1-1-1zm0-6H4c-.55 0-1 .45-1 1v2c0 .55.45 1 1 1h16c.55 0 1-...
AlloyTeam/Nuclear
components/icon/esm/line-weight-rounded.js
JavaScript
mit
447
using ENode.EQueue; using ENode.Eventing; namespace ENode.Tests { public class EventTopicProvider : AbstractTopicProvider<IDomainEvent> { public override string GetTopic(IDomainEvent source) { return "EventTopic"; } } }
ouraspnet/ENode.Standard
test/ENode.Test/Providers/EventTopicProvider.cs
C#
mit
272
#!/usr/bin/env python # coding: utf-8 import os,sys import ctypes import numpy as np from .hmatrix import _C_HMatrix, HMatrix class _C_MultiHMatrix(ctypes.Structure): """Holder for the raw data from the C++ code.""" pass class AbstractMultiHMatrix: """Common code for the two actual MultiHMatrix classes...
PierreMarchand20/htool
interface/htool/multihmatrix.py
Python
mit
10,354
public class Grid { public Tile array[][] = new Tile[10][8]; public Grid() { // for(int y = 0; y < getHeight(); y++) { for(int x = 0; x < getWidth(); x++) { array[x][y] = new Tile(); } } } public int getWidth() { return 9; } public int getHeight() { return 7; } p...
Caaz/danmaku-class-project
Grid.java
Java
mit
1,391
import {normalize, resolve} from "path"; import {existsSync, readFileSync} from "fs"; import {sys, ScriptSnapshot, resolveModuleName, getDefaultLibFilePath} from "typescript"; export function createServiceHost(options, filenames, cwd) { const normalizePath = (path) => resolve(normalize(path)); const moduleResoluti...
tsne/rollup-plugin-tsc
src/servicehost.js
JavaScript
mit
2,558
package main import ( "fmt" "log" ) type ListCommand struct { All bool `short:"a" long:"available" description:"also prints all available version for installation"` } type InitCommand struct{} type InstallCommand struct { Use bool `short:"u" long:"use" description:"force use of this new version after installati...
biorob/webots-manager
commands.go
GO
mit
5,064
/* * $Id: Perl5Matcher.java,v 1.27 2003/11/07 20:16:25 dfs Exp $ * * ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and b...
venanciolm/afirma-ui-miniapplet_x_x
afirma_ui_miniapplet/src/main/java/org/apache/oro/text/regex/Perl5Matcher.java
Java
mit
62,090
import path from 'path'; import {runScheduler} from './scheduler'; import logger from '../util/logger'; import dotenv from 'dotenv'; import {loadConfig} from '../../config'; import {initQueue} from './pipeline.queue'; logger.info(" _____ _ _ _ _ _ _ _ _ "); logger.info("| | |_|__...
clinwiki-org/clinwiki
api/src/pipeline/worker.js
JavaScript
mit
747
<?php /* Unsafe sample input : get the field userData from the variable $_GET via an object Uses a special_chars_filter via filter_var function construction : use of sprintf via a %s with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to ...
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_78/unsafe/CWE_78__object-classicGet__func_FILTER-CLEANING-special_chars_filter__cat-sprintf_%s_simple_quote.php
PHP
mit
1,514
describe VagrantHyperV do it 'should have a version number' do VagrantHyperV::VERSION.should_not be_nil end it 'should do something useful' do false.should be_true end end
tehgeekmeister/VagrantHyperV
spec/VagrantHyperV_spec.rb
Ruby
mit
189
import primes as py def lcm(a, b): return a * b / gcd(a, b) def gcd(a, b): while b != 0: (a, b) = (b, a % b) return a # Returns two integers x, y such that gcd(a, b) = ax + by def egcd(a, b): if a == 0: return (0, 1) else: y, x = egcd(b % a, a) return (x - (b ...
ioguntol/NumTy
numty/congruences.py
Python
mit
3,551
package com.aokyu.service; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { super...
aoq/resident-background-service
app/src/androidTest/java/com/aokyu/service/ApplicationTest.java
Java
mit
348
using System; using System.Collections.Generic; using System.Linq; using System.IO; using System.Data.SqlTypes; using Microsoft.SqlServer.Server; using PowerLib.System; using PowerLib.System.Collections; using PowerLib.System.IO; using PowerLib.System.IO.Streamed.Typed; using PowerLib.System.Numerics; using PowerLib.S...
vaseug/PowerLib
PowerLib.System.Data.SqlTypes/Collections/SqlGradAngleCollection.cs
C#
mit
7,128
require 'spec_helper' describe Pagerage::IncidentsParser do before(:each) do Pagerage::Incident.delete end let(:incidents_json) { File.read(File.dirname(__FILE__) + '/incidents_sample.json') } let(:incidents_data) { JSON.parse(incidents_json) } let(:parser) { Pagerage::IncidentsParser.new(incidents_json)...
gorsuch/pagerage
spec/pagerage/incidents_parser_spec.rb
Ruby
mit
546
a = a # e 4 a = 1 # 0 int l = [a] # 0 [int] d = {a:l} # 0 {int:[int]} s = "abc" c = ord(s[2].lower()[0]) # 0 int # 4 (str) -> int l2 = [range(i) for i in d] # 0 [[int]] y = [(a,b) for a,b in {1:'2'}.iteritems()] # 0 [(int,str)] b = 1 # 0 int if 0: b = '' # 4 str else: b = str(b) # 4 str # 12 int ...
kmod/icbd
icbd/type_analyzer/tests/basic.py
Python
mit
1,818
<?php //var_dump($games) ?> <?php $this->load->view('includes/tables-head') ?> <body class="fixed-header" ng-app="app" ng-controller="gameCtrl"> <?php $this->load->view('admin/admin-nav') ?> <div class="page-container"> <?php $this->load->view('admin/admin-header') ?> <div class="page-content-wrapper "> ...
massivebrains/poolapp
application/views/admin/admin-game-new.php
PHP
mit
5,597