repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
vvilhonen/bacon.js
src/sample.js
1469
// build-dependencies: core, source // build-dependencies: functionconstruction // build-dependencies: when, map Bacon.EventStream.prototype.sampledBy = function(sampler, combinator) { return withDesc( new Bacon.Desc(this, "sampledBy", [sampler, combinator]), this.toProperty().sampledBy(sampler, combinator))...
mit
mlakkadshaw/bugtracker
build/.module-cache/ba75a781d11befa683a2c0f3c2d3c119dbdc695b.js
1521
var React = require('react'); var BugInput = require('./BugInput.react'); var AppVersionActions = require('../appversionactions'); var AppVersionStore = require('../stores/AppVersionStore'); var BugList = require('./BugList.react'); var BugVersion = require('./BugVersion.react'); function getAppVersionState() { retur...
mit
hadim/FilamentDetector
src/main/java/sc/fiji/filamentdetector/exporter/FilamentsExporter.java
1490
/*- * #%L * A Fiji plugin that allow easy, fast and accurate detection and tracking of biological filaments. * %% * Copyright (C) 2016 - 2020 Fiji developers. * %% * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software")...
mit
Tiger66639/travis-core
spec/travis/travis_yml_stats_spec.rb
7043
require "spec_helper" require "travis/travis_yml_stats" describe Travis::TravisYmlStats do let(:publisher) { mock("keen-publisher") } subject { described_class.store_stats(request, publisher) } let(:config) { {} } let(:request) do stub({ config: config, payload: { "repository" => {} ...
mit
Ghrind/yabs
lib/yabs/commands/show_index.rb
663
module Yabs class ShowIndex < ConsoleApp::Command def initialize(vault, packages) @vault = vault @packages = packages end def run! # TODO: This seems to create distant folder (which are useless) # List all local packages puts 'Local packages' puts puts "Backup st...
mit
msk-repo01/genetic_algo
src/examples/math_functions/schaffer_n4_func_demo.cpp
1465
/* * schaffer_n4_func_demo.cpp * A demo for minimizing Schaffer N.4 function * * Created on: Feb 22, 2017 * Author: S.Khan * */ #define _USE_MATH_DEFINES #include "function_minimizer_ga.h" using namespace std; /** * Schaffer N.4 Function DEMO * ========================== * A demo run for minimizing ...
mit
aksakalli/gtop
lib/monitor/disk.js
671
var si = require('systeminformation'), utils = require('../utils'); var colors = utils.colors; function Disk(donut) { this.donut = donut; si.fsSize(data => { this.updateData(data); }); this.interval = setInterval(() => { si.fsSize(data => { this.updateData(data); }); }, 10000); } Disk...
mit
mars2601/Eventure-Prod
config/env/development.js
1415
'use strict'; module.exports = { db: 'mongodb://localhost/eventure-dev', app: { title: 'Eventure - Development Environment' }, facebook: { clientID: process.env.FACEBOOK_ID || '1382193778748790', clientSecret: process.env.FACEBOOK_SECRET || 'b449a91f961f5cea3f541f5c13f241d4', callbackURL: 'http://eventure-...
mit
daureg/illalla
neighborhood.py
34865
#! /usr/bin/python2 # vim: set fileencoding=utf-8 """Match polygonal regions between cities Input: name of two cities a list of coordinates that make up a polygon in one city Output: a list of coordinates that make up a polygon in the other city """ from __future__ import print_function import cities import...
mit
boy-jer/santhathi-appointment
app/models/admin/role.rb
43
class Admin::Role < ActiveRecord::Base end
mit
CivicCommons/CivicCommons
app/helpers/reflections_helper.rb
29
module ReflectionsHelper end
mit
snf4j/snf4j
snf4j-core/src/main/java/org/snf4j/core/codec/EventDrivenCompoundEncoder.java
3262
/* * -------------------------------- MIT License -------------------------------- * * Copyright (c) 2021 SNF4J contributors * * 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...
mit
michaelmalonenz/enablefood
db/migrate/20141106060827_add_is_deleted_to_user.rb
206
class AddIsDeletedToUser < ActiveRecord::Migration def change add_column :users, :is_deleted, :boolean, :default => false, :null => false User.all.each {|user| user.is_deleted = false } end end
mit
Jamkyle/raha.zeuweb
app/cache/prod/twig/b5/42/d1da4aac9146cb6b97926fc1e991d868a2cff85deb99e11da4b1b88e0260.php
1760
<?php /* TwigBundle:Exception:error.html.twig */ class __TwigTemplate_b542d1da4aac9146cb6b97926fc1e991d868a2cff85deb99e11da4b1b88e0260 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ...
mit
ashrafuzzaman/discussion
test/unit/discussion/concerns_test.rb
154
require 'test_helper' module Discussion class ConcernsTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end end
mit
dominicm/goa
uuid/uuid_js.go
1401
// +build js //This part is copied from github.com/satori/go.uuid but some feature uses non gopherjs compliants calls //Since goa only needs a subset of the features the js copies them in here package uuid import ( "bytes" "encoding/hex" "fmt" ) // String parse helpers. var ( urnPrefix = []byte("urn:uuid:") b...
mit
LeviRosol/TheWallsMiniGame
rubik_cube_man/plugins/walls/PlayerFoodLevelChangeListner.java
815
package rubik_cube_man.plugins.walls; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.entity.FoodLevelChangeEvent; public class PlayerFoodLevelChangeListner implements Listener { private Walls plugin; public PlayerFoodLev...
mit
starboymanzano/chs-map-directory
application/models/Establish_model.php
1537
<?php class Establish_model extends CI_Model { public function get_estabs($limit = FALSE, $offset = FALSE) { if ($limit) { $this->db->limit($limit, $offset); } $query = $this->db->get('school_establishment'); return $query->result_array(); } public function get_estab_info($id = FALSE) { if ($id ===...
mit
Krzysiek102/StowPatriot
scripts/postController.js
2503
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var stowPatriot; (function (stowPatriot) { var postControl...
mit
andela-fmustapha/document-management
client/test/helper/helper.js
1262
import { jsdom } from 'jsdom'; //eslint-disable-line import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; import nock from 'nock'; //eslint-disable-line import faker from 'faker'; import * as chai from 'chai'; import spies from 'chai-spies'; //eslint-disable-line import sinon from 'sinon'...
mit
bonzyKul/Agile
public/modules/core/controllers/card-controller.client.controller.js
458
'use strict'; var CardController = function ($scope) { $scope.card = {}; $scope.editTitle = false; $scope.editingDetails = false; $scope.editingTitle = false; $scope.$on('OpenCardDetails', function(e, card){ $scope.card = card; $scope.editingDetails = false; $scope.editi...
mit
xCss/bing
utils/bingUtils.js
3809
var request = require('superagent'); var objectAssign = require('object-assign'); var commonUtils = require('./commonUtils'); var bingURL = 'http://www.bing.com/HPImageArchive.aspx'; var story = 'http://cn.bing.com/cnhp/coverstory/'; var cookie = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/53...
mit
magnus-eriksson/config
src/Factory.php
834
<?php namespace Maer\Config; /** * A simple config package to load files containing multidimensional arrays * and fetch them easily using dot notation. * * @author Magnus Eriksson <mange@reloop.se> * @version 1.1.0 * @package Maer * @subpackage Config */ /** * Factory to get the same Config instan...
mit
forsigner/fim
examples/example-react/src/pages/Svg.tsx
1050
import { Box } from '@fower/react'; export default () => { return ( <Box toCenter h-100vh space3 flexWrap> <Box as="svg" fillNone fillCurrent gray800 square10 viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" > <path strok...
mit
ProfilerTeam/Profiler
protected/vendors/Zend/Crypt/DiffieHellman.php
12792
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
mit
pictawall/sdk-js
es5/src/core/Sdk.js
9779
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
mit
jbosboom/streamjit
src/edu/mit/streamjit/test/apps/fft5/FFT5.java
5244
/* * Copyright (c) 2013-2014 Massachusetts Institute of Technology * * 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 us...
mit
phodal/growth-code
chapter6/fabfile.py
3739
import os from fabric.api import local from fabric.decorators import task from fabric.context_managers import settings, hide, cd, prefix from fabric.operations import sudo, run, put from fabric.state import env circus_file_path = os.path.realpath('deploy/circus.ini') circus_upstart_file_path = os.path.realpath('deplo...
mit
Daz2345/dhPulse
packages/dh-api/lib/custom_fields.js
207
Users.addField({ fieldName: 'API_Enabled', fieldSchema: { type: Boolean, optional: true, defaultValue: false, editableBy: ["admin"], autoform: { group: 'API' } } });
mit
14islands/bem-helper-js
src/index.js
2036
/** * BEM helper for generating CSS class names in JS * Returns a chainable API * * @author David Lindkvist */ class BEM { constructor(block, element, modifiers = [], nonBemClasses = []) { this.block = block; this.element = element; this.modifiers = modifiers; this.nonBemClasses = nonBemClasses; } ...
mit
EricSchles/angular-breadcrumb
test/spec/directive-interpolation-test.js
870
/*jshint undef: false */ describe('Directive with interpolation conf', function() { var element, scope, controller, compile; beforeEach(function() { module('ncy-interpolation-conf'); }); beforeEach(inject(function($rootScope, $compile, $controller) { element = angular.element('<div n...
mit
devdigital/LiveDocs
Source/LiveDocs.Diagrams.Ui/Commands/ICommand.cs
143
namespace LiveDocs.Diagrams.Ui.Commands { public interface ICommand { string Name { get; } void Execute(); } }
mit
nilsschmidt1337/ldparteditor
src/org/nschmidt/ldparteditor/data/GTexture.java
38138
/* MIT - License Copyright (c) 2012 - this year, Nils Schmidt 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, me...
mit
east-sussex-county-council/Escc.Umbraco.Inception
Umbraco.Inception/Attributes/UmbracoDataTypeAttribute.cs
1463
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Umbraco.Core.Models; using Umbraco.Core.Services; using Umbraco.Inception.BL; namespace Umbraco.Inception.Attributes { [AttributeUsage(AttributeTargets.Class)] public class UmbracoDataType...
mit
Useurmind/Eventualize
Eventualize.Projection/FluentProjection/EventHandlerContext.cs
559
using System; using System.Linq; using Eventualize.Projection.ProjectionMetaModel; namespace Eventualize.Projection.FluentProjection { public class EventHandlerContext { private Action<ProjectionEventHandler> onAddEventHandler; public EventHandlerContext(Action<ProjectionEventHandler> onAddEv...
mit
eddiebueno/phase-0
week-4/variables-methods.rb
1665
print "What's your first name? " first_name = gets.chomp first_name.capitalize! print "What's your last name? " last_name = gets.chomp last_name.capitalize! print "What's your middle name'? " middle_name = gets.chomp middle_name.capitalize! puts "Hello #{first_name} #{middle_name} #{last_name}! How are you? " print...
mit
stylelint/stylelint
lib/rules/value-list-comma-newline-after/__tests__/index.js
4884
'use strict'; const { messages, ruleName } = require('..'); testRule({ ruleName, config: ['always'], fix: true, accept: [ { code: 'a { background-size: 0,\n0; }', }, { code: 'a { background-size: 0,\n\n0; }', }, { code: 'a { background-size: 0 ,\n 0; }', }, { code: 'a { background-size...
mit
shime/smoke-and-mirrors
addon/mixins/magic-array.js
2828
import Ember from "ember"; import SmartObjectProxy from "../utils/smart-object-proxy"; const { computed, ArrayProxy } = Ember; function computeProxiedArray() { var proxied = this.get('content'); var key = this.get('keyForId'); var content = this.get('__proxyContent'); var newLength; var newObjects = ...
mit
quwahara/Nana
NanaLib/Infr/Tuple.cs
1980
/* * Copyright (C) 2011 Mitsuaki Kuwahara * Released under the MIT License. */ using System; using System.Collections.Generic; using System.Text; namespace Nana.Infr { public class Tuple2<T1, T2> { public T1 F1; public T2 F2; public Tuple2() { } public Tuple2(T1 f1, T2 f2) { F1 = f1...
mit
thaihungle/deepexp
gan/vae.py
11214
import numpy as np import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import matplotlib.pyplot as plt def xavier_init(fan_in, fan_out, constant=1): """ Xavier initialization of network weights""" # https://stackoverflow.com/questions/33640581/how-to-do-xavier-initialization-on-t...
mit
aldeed/autoform-demo
client/views/insertaf/insertaf.js
75
Template.insertaf.helpers({ people() { return People.find(); } });
mit
mrizkir/portalekampus
protected/logic/Logic_ReportNilai.php
137049
<?php prado::using ('Application.logic.Logic_Report'); class Logic_ReportNilai extends Logic_Report { public function __construct ($db) { parent::__construct ($db); } /** * digunakan untuk memprint KHS * @param type $objNilai object */ public function printKHS ($objNilai,$wi...
mit
uhef/Oskari-Routing
service-wfs/src/main/java/fi/nls/oskari/wfs/util/XMLHelper.java
4134
package fi.nls.oskari.wfs.util; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.Reader; import java.io.StringReader; import java.io.StringWriter; import java.io.InputStream; import java.io.UnsupportedEncodingException; import javax.xml.stream.FactoryConfigurationError; import javax.xml...
mit
JoseLuisPucChan/Proyecto4Cuatrimestre
Prácticas/PracticasCuartoParcial/Practica1Postales/Practica1Postales/Properties/AssemblyInfo.cs
1552
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // La información general sobre un ensamblado se controla mediante el siguiente // conjunto de atributos. Cambie estos atributos para modificar la información // asociada con un ensamblado. [assembly: AssemblyTitle(...
mit
salespaulo/nota-fiscal-api
src/main/resources/static/app.js
296
'use strict'; angular.module('app', [ 'ngRoute', 'app.home', 'app.mercadoria', 'app.notafiscal' ]) .config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) { $locationProvider.hashPrefix('!'); $routeProvider.otherwise({redirectTo: '/home'}); }]);
mit
Geodan/gost
configuration/constants.go
368
package configuration const ( // ServerVersion specifies the current GOST Server version ServerVersion string = "v0.5" // SensorThingsAPIVersion specifies the supported SensorThings API version SensorThingsAPIVersion string = "v1.0" // DefaultMaxEntries is used when config maxEntries is empty or $top exceeds th...
mit
sagamors/Perspex
Windows/Perspex.Direct2D1/Media/StreamGeometryImpl.cs
2485
// ----------------------------------------------------------------------- // <copyright file="StreamGeometryImpl.cs" company="Steven Kirk"> // Copyright 2015 MIT Licence. See licence.md for more information. // </copyright> // ----------------------------------------------------------------------- namespace Perspex....
mit
ashimusmani/trinity-core
src/main/java/org/zigmoi/trinity/core/controller/DemoController.java
2083
package org.zigmoi.trinity.core.controller; import java.text.DateFormat; import java.util.Date; import java.util.Locale; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.Requ...
mit
drongo-framework/drongo-nest
nest/parsers/body/body.py
893
from .multipart import MultipartParser from .raw import RawParser from .urlencoded import UrlEncodedParser __all__ = ['BodyParser'] class BodyParser(object): __slots__ = ['_buffer', '_parser', 'complete'] RETAIN_KEYS = set(['CONTENT_TYPE', 'CONTENT_LENGTH']) def __init__(self): self._buffer = ...
mit
vienbk91/fuelphp17
fuel/core/tests/database/query/builder/insert.php
442
<?php /** * Part of the Fuel framework. * * @package Fuel * @version 1.6 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2013 Fuel Development Team * @link http://fuelphp.com */ namespace Fuel\Core; /** * Database_Query_Builder_Insert class tests * * @group C...
mit
longde123/MultiversePlatform
server/src/multiverse/server/engine/WorldFileLoader.java
18338
/******************************************************************** The Multiverse Platform is made available under the MIT License. Copyright (c) 2012 The Multiverse Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
mit
ebemunk/blog
projects/lastwords/viz/legend.ts
4837
import { create, quantize, interpolate, interpolateRound, range, quantile, format, scaleLinear, scaleBand, axisBottom, } from 'd3' export function DOMcanvas(width, height) { var canvas = document.createElement('canvas') canvas.width = width canvas.height = height return canvas } export fun...
mit
CGA1123/helpy
config/environments/development.rb
2397
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. #config.i18n.default_locale = :en # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since y...
mit
ToFuProject/tofu
tofu/spectro/_fit12d_funccostjac.py
25979
# Common import numpy as np import scipy.optimize as scpopt import scipy.sparse as scpsparse from scipy.interpolate import BSpline # Temporary for debugging import matplotlib.pyplot as plt _JAC = 'dense' ########################################################### ##################################################...
mit
glenngillen/dotfiles
.vscode/extensions/tsandall.opa-0.8.0/out/opa.js
7278
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); const cp = require("child_process"); const commandExistsSync = require('command-exists').sync; const vscode = require("vscode"); const install_opa_1 = require("./install-opa"); const util_1 = require("./util"); const fs_1 = require("fs"); cons...
mit
rickding/Hello
HelloHackerRank/src/test/java/com/hello/SubStrTest.java
1123
package com.hello; import org.junit.Assert; import org.junit.Test; import java.util.HashMap; import java.util.Map; public class SubStrTest { @Test public void testSplitTokens() { Map<String, Integer> mapIO = new HashMap<String, Integer>() {{ put("He is a very very good boy, isn't he?", 10...
mit
astronote/astronote-docker
web/app/src/views/Settings/index.js
41
export { default } from './Settings.vue'
mit
tonimichel/djpl-schnippjs
setup.py
1062
#! /usr/bin/env python import os from setuptools import setup, find_packages def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except IOError: return '' setup( name='djpl-schnippjs', version='0.1', description='a django-productline feature to ...
mit
DrunkyBard/CqrsMe
src/Cqrs.Persistance.Core/Properties/AssemblyInfo.cs
1418
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("Cq...
mit
sstu-icsp/afisha
afisha/src/main/java/org/epl/dao/EventDao.java
235
package org.epl.dao; import java.util.List; import org.epl.model.Event; public interface EventDao { Event findById(int id); void saveEvent(Event event); void deleteEventById(int id); List <Event> findAllEvent(); }
mit
huangfeng19820712/hfast
core/js/tree/KendoTree.js
718
/** * @author: * @date: 15-1-9 */ define([ "kendo"], function(kendo,template) { var tree = { menuTree : function(el) { homogeneous = new kendo.data.HierarchicalDataSource({ type:"json", transport : { read : { dataType: "json", url:$route.getCorePath...
mit
alexplatonov/angularity
src/core/test/controllers.test.js
768
describe('CoreController', function() { var $scope, $window; beforeEach(function() { $window = {}; angular.mock.module('angularity'); angular.mock.module(function($provide) { $provide.value('$window', $window); }); angular.mock.inject(function($injector, $controller) { $scope...
mit
AlexPodobed/Angular2.0
src/app/features/courses/state/courses.reducer.ts
1850
import { Action } from '@ngrx/store'; import * as actions from './courses.actions'; import { CoursesState } from './courses-state.model'; const initialState: CoursesState = { loaded: false, loading: false, items: [], page: 0, size: 3, query: '', total: null }; function setState(state, data...
mit
alexlafroscia/ember-steps
tests/assertions/wait-for.js
100
import QUnit from 'qunit'; import { installWaitFor } from 'qunit-wait-for'; installWaitFor(QUnit);
mit
saumitrabhave/qr-zbar-ane
NativeAndroid/src/com/sbhave/nativeExtension/function/ScanBitmapFunction.java
3436
/* * Copyright (c) 2014 Saumitra R Bhave * 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...
mit
att/XACML
XACML-PAP-ADMIN/src/main/java/com/att/research/xacml/admin/view/events/AttributeChangedEventListener.java
329
/* * * Copyright (c) 2014,2019 AT&T Knowledge Ventures * SPDX-License-Identifier: MIT */ package com.att.research.xacml.admin.view.events; import com.att.research.xacml.admin.jpa.Attribute; public interface AttributeChangedEventListener { public void attributeChanged(Attribute attri...
mit
JoAutomation/todo-for-you
ext/comment/asset/js/Ext.js
4870
/**************************************************************************** * todoyu is published under the BSD License: * http://www.opensource.org/licenses/bsd-license.php * * Copyright (c) 2012, snowflake productions GmbH, Switzerland * All rights reserved. * * This script is part of the todoyu project. * The todo...
mit
bhollis/DIM
src/app/loadout/loadout-apply.ts
14690
import { DimStore, StoreServiceType } from 'app/inventory/store-types'; import { Loadout } from './loadout-types'; import { queuedAction } from 'app/inventory/action-queue'; import { loadingTracker } from 'app/shell/loading-tracker'; import { showNotification, NotificationType } from 'app/notifications/notifications'; ...
mit
mejackreed/rspec_say
lib/rspec_say/say_formatter.rb
752
require 'rspec' require 'rspec/core/formatters/base_text_formatter' class SayFormatter < RSpec::Core::Formatters::BaseTextFormatter RSpec::Core::Formatters.register self, :dump_summary def dump_summary(summary) output.puts summary.fully_formatted phrase = "Tests finished in #{format_time(summary.duration)...
mit
janghe11/MobileProgramming
SimpleButton/app/src/androidTest/java/com/jang/simplebutton/ApplicationTest.java
352
package com.jang.simplebutton; 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() { s...
mit
ssherwood/symptom-mgmt-android
app/src/main/java/mobile/symptom/androidcapstone/coursera/org/symptommanagement/ListPatientsActivity.java
7003
package mobile.symptom.androidcapstone.coursera.org.symptommanagement; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import androi...
mit
mikesaelim/arXivOAIHarvester
src/main/java/io/github/mikesaelim/arxivoaiharvester/model/request/ListRecordsRequest.java
3151
package io.github.mikesaelim.arxivoaiharvester.model.request; import io.github.mikesaelim.arxivoaiharvester.model.response.ListRecordsResponse; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.ToString; import org.apache.http.client.utils.URIBuilder; import java.net.URI; import java.net.URISyntaxE...
mit
groupdocs-metadata/GroupDocs.Metadata-for-.NET
Examples/GroupDocs.Metadata.Examples.CSharp/AdvancedUsage/ManagingMetadataForSpecificFormats/Document/Diagram/DiagramReadBuiltInProperties.cs
1153
// <copyright company="Aspose Pty Ltd"> // Copyright (C) 2011-2021 GroupDocs. All Rights Reserved. // </copyright> namespace GroupDocs.Metadata.Examples.CSharp.AdvancedUsage.ManagingMetadataForSpecificFormats.Document.Diagram { using System; using Formats.Document; /// <summary> /// This code sampl...
mit
tohashi/wareki
src/index.ts
1215
type Options = { unit?: boolean } const eraDataList = [ { code: 'reiwa', firstDate: '2019-05-01', name: '令和' }, { code: 'heisei', firstDate: '1989-01-08', name: '平成' }, { code: 'showa', firstDate: '1926-12-25', name: '昭和' }, { code: 'taisho', firstDate: '1912-0...
mit
outsmartin/ispconfig3
vendor/bundler/ruby/2.0.0/gems/librarian-0.0.26/spec/integration/chef/source/git_spec.rb
15567
require 'pathname' require 'securerandom' require 'librarian' require 'librarian/helpers' require 'librarian/error' require 'librarian/action/resolve' require 'librarian/action/install' require 'librarian/action/update' require 'librarian/chef' module Librarian module Chef module Source describe Git do ...
mit
Javier3131/ProyectoDAW
public/config.js
1307
'use strict'; // Init the application configuration module for AngularJS application var ApplicationConfiguration = (function() { // Init module configuration options var applicationModuleName = 'angleApp'; var applicationModuleVendorDependencies = ['ngRoute', 'ngAnimate', 'ngStorage', ...
mit
mahdihijazi/training
beginner/toolbar/ToolbarSample3/app/src/androidTest/java/com/training/toolbarsample3/ApplicationTest.java
358
package com.training.toolbarsample3; 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() { ...
mit
sapirgolan/MFIBlocking
MFIblocks/original/src/main/java/DataStructures/EntityProfile.java
798
package DataStructures; import java.io.Serializable; import java.util.HashSet; /** * * @author gap2 */ public class EntityProfile implements Serializable { private static final long serialVersionUID = 122354534453243447L; private HashSet<Attribute> attributes; private String entityUrl; public E...
mit
jucimarjr/html5games
phaser/ohhman/js/screen/Splash.js
1102
Splash = function() { }; Splash.prototype = { preload : function() { //Preload das telas de Splash game.load.image('bgSplashTeam', fp_bgSplashTeam); game.load.image('bgSplashGame', fp_bgSplashGame); }, create : function() { var bg = game.add.sprite(0, 0, 'bgSplashTeam'); bg.alpha = 0; var fadein = g...
mit
mapbox/glsl-optimizer
src/glsl/opt_algebraic.cpp
17921
/* * Copyright © 2010 Intel Corporation * * 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, pub...
mit
TekMonks/monkshu
backend/server/lib/Timer.js
430
/* * Timer.js - Resetable timer * * (C) 2018 TekMonks. All rights reserved. */ class Timer { constructor(t, fn) { this.fn = fn; this.timeout = t; this.timer = setTimeout(this.fn, this.timeout); } reset() { clearTimeout(this.timer); this.timer = setTimeout(thi...
mit
nagoring/jp-address
src/Nago/JpAddress/StreetData/45/45383.php
88
<?php return ['453830001' => '入野','453830002' => '北俣','453830003' => '南俣',];
mit
dhcode/angular-bingo-game
src/app/bingo/game-board/game-board.component.ts
680
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { BingoGame } from '../bingo-game'; @Component({ selector: 'app-game-board', templateUrl: './game-board.component.html', styleUrls: ['./game-board.component.scss'] }) export class GameBoardComponent implements OnInit { @Inp...
mit
sixohsix/simplecoremidi
simplecoremidi/examples/emitter.py
1403
from itertools import chain from heapq import heappush, heappop from time import time, sleep from random import random, randint from simplecoremidi import MIDISource, MIDIDestination LOOP_WAIT = 1.0 / 200 # 200 Hz def gen_all_off(now): return ((now, tuple(chain(*((0x90, n, 0) for n in range(127))))),) def g...
mit
tobiaghiraldini/DjangoBBB
profiles/serializers.py
248
# -*- coding: utf-8 -*- from rest_framework import serializers from profiles.models import Profile class ProfileSerializer(serializers.ModelSerializer): user = serializers.Field(source='user.username') class Meta: model = Profile
mit
martijn00/XamarinMediaManager
MediaManager.Forms/Platforms/Android/VideoViewRenderer.cs
2435
using Android.Content; using MediaManager.Forms; using MediaManager.Forms.Platforms.Android; using Xamarin.Forms; using Xamarin.Forms.Platform.Android; [assembly: ExportRenderer(typeof(VideoView), typeof(VideoViewRenderer))] namespace MediaManager.Forms.Platforms.Android { [global::Android.Runtime.Preserve(AllMem...
mit
peterdanis/my-js-learning
free-code-camp/where-do-i-belong.js
333
function getIndexToIns(arr, num) { const index = arr.sort((a, b) => a - b).findIndex(x => x >= num); if (index === -1) { return arr.length; } return index; } console.log(getIndexToIns([1, 3], 0.8)); console.log(getIndexToIns([1, 3], 1.8)); console.log(getIndexToIns([1, 3], 3)); console.log(getIndexToIns([1...
mit
jonnorstrom/CardShuffler
runner.rb
186
## run this to see how many times you must shuffle a deck ## until it returns back to it's original state require_relative 'cards' p continuous_shuffle(make_deck, shuffle(make_deck), 1)
mit
andrewelkins/Laravel-5-Bootstrap-Starter-Site
app/Http/Controllers/Admin/DashboardController.php
374
<?php namespace Starter\Http\Controllers\Admin; class DashboardController extends Controller { /** * Create a new controller instance. */ public function __construct() { parent::__construct(); } /** * Show the application dashboard to the user. * * @return Response */ public function index() ...
mit
DanielYKPan/movies-finder
src/app/app.routes.ts
538
import { Routes } from '@angular/router'; import { NoContentComponent } from './no-content'; import { HomeComponent, HomeDataResolver } from "./home"; export const ROUTES: Routes = [ { path: '', component: HomeComponent, resolve: { res: HomeDataResolver } }, {pat...
mit
sensiolabs-de/deprecation-detector
tests/TypeGuessing/SymbolTable/Resolver/PropertyAssignResolverTest.php
3412
<?php namespace SensioLabs\DeprecationDetector\Tests\TypeGuessing\SymbolTable\Resolver; use PhpParser\Node\Expr\Assign; use PhpParser\Node\Expr\PropertyFetch; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Name; use PhpParser\Node\Expr\New_; use SensioLabs\DeprecationDetector\TypeGuessing\SymbolTable\Resolver\P...
mit
feskne/POS_Projekt
app/src/main/java/com/example/ratzf/pos_projekt/MainActivity.java
349
package com.example.ratzf.pos_projekt; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity { //seas @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.la...
mit
codeminery/gfw
app/assets/javascripts/abstract/timeline/TimelineBtnClass.js
7462
/** * The Timeline view module. * * Timeline for all layers configured by setting layer-specific options. * * @return Timeline view (extends Backbone.View). */ define([ 'underscore', 'backbone', 'moment', 'handlebars', 'd3', 'text!templates/timelineBtn-mobile.handlebars' ], function(_, Backbone, mome...
mit
nambawan/g-old
src/components/TableRow/TableRow.js
820
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/withStyles'; import classnames from 'classnames'; import s from './TableRow.css'; class TableRow extends React.Component { static propTypes = { children: PropTypes.element, className: PropTypes.stri...
mit
mgax/mptracker
alembic/versions/38579825699_person_minority_colu.py
268
revision = '38579825699' down_revision = '4bc50a6cca9' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column('person', sa.Column('minority', sa.Boolean(), nullable=True)) def downgrade(): op.drop_column('person', 'minority')
mit
ychaker/sunspot_admin
spec/sunspot_helper.rb
734
require "net/http" class CukeSunspot def initialize @server = Sunspot::Rails::Server.new end def start @started = Time.now @server.start up end def self.stop puts "Sunspot server is stoping..." Sunspot::Rails::Server.new.stop end private def port @server.port end ...
mit
vegvari/AliusInjector
src/Injector.php
6476
<?php namespace Alius\Injector; use Closure; use ReflectionClass; use ReflectionFunction; use ReflectionParameter; use Alius\Injector\Exceptions\AlreadyShared; use Alius\Injector\Exceptions\ImplementationNotFound; use Alius\Injector\Exceptions\SharedInstanceArguments; use Alius\Injector\Exceptions\ImplementationAlrea...
mit
mgomes/lamer
spec/lamer_spec.rb
3430
require File.dirname(__FILE__) + '/spec_helper' describe "A new Lamer" do before(:each) do @la = Lamer.new end it "should have a blank argument list" do @la.argument_list.empty?.should == true end it "should record valid bitrates" do @la.bitrate 128 @la.options[:bitrate].should == "-...
mit
vulcansteel/autorest
AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Dictionary.cs
32701
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespa...
mit
yksz/netlib
src/netlib/error.cpp
13291
#include "netlib/error.h" #include <map> #if defined(_WIN32) || defined(_WIN64) #include <winsock2.h> #else #include <cerrno> #include <netdb.h> #endif // defined(_WIN32) || defined(_WIN64) #ifdef NETLIB_USE_OPENSSL #include <openssl/err.h> #endif // NETLIB_USE_OPENSSL namespace net { const error error::nil ...
mit