code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
๏ปฟusing Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Horus.Models; namespace Horus.Data { public class ApplicationDbContext : IdentityDbContext<UserApplication> { public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : b...
HackBiacGDLucios/SafeLand
Horus/src/Horus/Data/ApplicationDbContext.cs
C#
mit
497
<?php $lang['str_herb_name'] = "์•ฝ์ดˆ๋ช…"; $lang['str_latin_name'] = "ํ•™๋ช…"; $lang["str_part"] = "์‚ฌ์šฉ ๋ถ€์œ„"; $lang["str_nature"] = "์„ฑ์งˆ"; $lang["str_usage"] = "์‚ฌ์šฉ ๋ฐฉ๋ฒ•"; $lang["str_taste"] = "๋ง›"; $lang["str_effect"] = "ํšจ๊ณผ"; $lang["str_compound"] = "์œ ํšจ์„ฑ๋ถ„"; $lang["str_side_effect"] = "์•Œ๋ ค์ง„ ๋ถ€์ž‘์šฉ"; ...
Tresint/worldherb
application/language/korean/basic_lang.php
PHP
mit
7,951
# souffleur module module Souffleur VERSION = '0.1.0' end
sebastiaandegeus/souffleur
lib/souffleur/version.rb
Ruby
mit
60
/* * Wegas * http://wegas.albasim.ch * * Copyright (c) 2013, 2014, 2015 School of Business and Engineering Vaud, Comem * Licensed under the MIT License */ package com.wegas.core.security.persistence; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonManagedReference;...
ghiringh/Wegas
wegas-core/src/main/java/com/wegas/core/security/persistence/User.java
Java
mit
5,838
๏ปฟusing System; using System.Linq.Expressions; using Vulpecula.Scripting.Lexer; namespace Vulpecula.Scripting.Parser.Expressions { // Parsing Script // RelationalExpression // EqualityExpression "==" RelationalExpression // EqualityExpression "!=" RelationalExpression internal class EqualityExpress...
fuyuno/Vulpecula
Vulpecula.Scripting/Parser/Expressions/EqualityExpression.cs
C#
mit
1,968
<TS language="ca@valencia" version="2.0"> <context> <name>AboutDialog</name> <message> <source>About Petecoin Core</source> <translation type="unfinished"/> </message> <message> <source>&lt;b&gt;Petecoin Core&lt;/b&gt; version</source> <translation type="unfinished"/> ...
sjmariogolf/petecoin
src/qt/locale/bitcoin_ca@valencia.ts
TypeScript
mit
109,401
import { Transform } from './transform.js'; /** * Calculate the transform for a Cornerstone enabled element * * @param {EnabledElement} enabledElement The Cornerstone Enabled Element * @param {Number} [scale] The viewport scale * @return {Transform} The current transform */ export default function (enabledElemen...
google/cornerstone
src/internal/calculateTransform.js
JavaScript
mit
2,065
module Gene module Handlers module Ruby class StatementHandler def initialize @logger = Logem::Logger.new(self) end def call context, data @logger.debug('call', data) if data.is_a? Gene::Types::Base "#{data.type}(#{data.data.join(', ')})" ...
gcao/gene
lib/gene/handlers/ruby/statement_handler.rb
Ruby
mit
407
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import IntlWrapper from '../client/modules/Intl/IntlWrapper'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.confi...
zivkaziv/MazorTech
server/server.js
JavaScript
mit
8,791
<?php /* * This file is part of the symfony package. * (c) Fabien Potencier <fabien.potencier@symfony-project.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ require_once(dirname(__FILE__).'/sfYamlInline.class.php'); /** * ...
xenophy/xFrameworkPX
library/PHPUnit/Util/YAML/sfYamlDumper.class.php
PHP
mit
1,667
from django.conf.urls import url from . import views from django.views.decorators.cache import cache_page app_name = 'webinter' urlpatterns = [ url(r'^$', views.IndexView.as_view(), name='index'), url(r'^logout/$', views.logout_view, name='logout'), ]
ipriver/0x71aBot-Web-Interface
webinter/urls.py
Python
mit
262
package ninja.egg82.concurrent; import java.util.Set; public interface IConcurrentSet<T> extends Set<T> { //functions int getRemainingCapacity(); int getCapacity(); }
egg82/Java-Lib
Collections-Lib/src/ninja/egg82/concurrent/IConcurrentSet.java
Java
mit
172
package vhosts import ( "net/http" "strings" "sync" ) type VirtualHosts struct { vhosts map[string]http.Handler mu sync.RWMutex } func NewVirtualHosts(vhosts map[string]http.Handler) *VirtualHosts { v := &VirtualHosts{} for hosts, h := range vhosts { for _, host := range strings.Split(hosts, " ") { i...
alxarch/go-http
vhosts/vhosts.go
GO
mit
984
package com.xiaofeng; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class SpringcloudConfigClientApplicationTests { @Test public vo...
nellochen/springboot-start
springcloud-config-client/src/test/java/com/xiaofeng/SpringcloudConfigClientApplicationTests.java
Java
mit
346
#include "optionsmodel.h" #include "bitcoinunits.h" #include <QSettings> #include "init.h" #include "walletdb.h" #include "guiutil.h" OptionsModel::OptionsModel(QObject *parent) : QAbstractListModel(parent) { Init(); } bool static ApplyProxySettings() { QSettings settings; CService addrProxy(settings...
BreakoutCoin/Breakout-Chain-Client
src/qt/optionsmodel.cpp
C++
mit
13,372
/** * @file singleton.hpp * @brief dynamic Singleton pattern design template class * @author Byunghun Hwang<bhhwang@nsynapse.com> * @date 2015. 8. 2 * @details singleton ร†รร…ร ร…ร›ร‡รƒยธยด ร…ยฌยทยกยฝยบ */ #ifndef _COSSB_ARCH_SINGLETON_HPP_ #define _COSSB_ARCH_SINGLETON_HPP_ #include <iostream> #include <utility> using...
bhhwang/cossb
include/arch/singleton.hpp
C++
mit
1,028
/******************************************************************** 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 "...
longde123/MultiversePlatform
server/src/multiverse/server/engine/SearchManager.java
Java
mit
7,815
'use strict'; const AWS = require('aws-sdk'); let x = "/delegationset/NHKXBB6SHGKLN"; console.log(x.replace('/delegationset/', '')); return; const route53 = new AWS.Route53(); route53.listHostedZones({}).promise() .then(response => { console.log(response); return response.HostedZones.find(hostedZone => { ...
manapaho/cloudy
.temp/test.js
JavaScript
mit
2,248
const defaultEnv = process.env.NODE_ENV || 'development'; function getEnv(name = defaultEnv) { const isProduction = name === 'production' || name === 'prod'; const isDev = !isProduction; return { name, isProduction, isDev, getEnv }; } const env = getEnv(); module.exports = env;
tofishes/a-rule
utils/env.js
JavaScript
mit
289
package crawler.impl; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.net.UnknownHostException; import java.util.Date; import java.util.List; import main.Constants; import model.News; import org.horrabin.horrorss.RssFeed; import org.horrabin.horrorss.RssItemBean; imp...
RangerWolf/Finance-News-Helper
src/crawler/impl/BaiduNewsCrawler.java
Java
mit
2,712
using System; using System.Runtime.InteropServices; using System.Text; using System.Collections.Generic; using OpenHome.Net.Core; namespace OpenHome.Net.Device.Providers { public interface IDvProviderOpenhomeOrgTestLights1 : IDisposable { } /// <summary> /// Provider for the openhome.org:T...
DoomHammer/ohNetGenerated
OpenHome/Net/Bindings/Cs/Device/Providers/DvOpenhomeOrgTestLights1.cs
C#
mit
25,734
async function arraySort() { "use speedyjs"; const array = [1, 2]; const ascending = array.sort(); const descending = array.sort(descendingComparator); } function descendingComparator(a: int, b: int) { "use speedyjs"; return b - a as number; }
MichaReiser/speedy.js
packages/compiler/__tests__/code-generation/cases/array/sort.ts
TypeScript
mit
272
# encoding: UTF-8 """ ไธ€ไธชATR-RSIๆŒ‡ๆ ‡็ป“ๅˆ็š„ไบคๆ˜“็ญ–็•ฅ๏ผŒ้€‚ๅˆ็”จๅœจ่‚กๆŒ‡็š„1ๅˆ†้’Ÿๅ’Œ5ๅˆ†้’Ÿ็บฟไธŠใ€‚ ๆณจๆ„ไบ‹้กน๏ผš 1. ไฝœ่€…ไธๅฏนไบคๆ˜“็›ˆๅˆฉๅšไปปไฝ•ไฟ่ฏ๏ผŒ็ญ–็•ฅไปฃ็ ไป…ไพ›ๅ‚่€ƒ 2. ๆœฌ็ญ–็•ฅ้œ€่ฆ็”จๅˆฐtalib๏ผŒๆฒกๆœ‰ๅฎ‰่ฃ…็š„็”จๆˆท่ฏทๅ…ˆๅ‚่€ƒwww.vnpy.orgไธŠ็š„ๆ•™็จ‹ๅฎ‰่ฃ… 3. ๅฐ†IF0000_1min.csv็”จctaHistoryData.pyๅฏผๅ…ฅMongoDBๅŽ๏ผŒ็›ดๆŽฅ่ฟ่กŒๆœฌๆ–‡ไปถๅณๅฏๅ›žๆต‹็ญ–็•ฅ """ from ctaBase import * from ctaTemplate import CtaTemplate import talib import numpy as np ###################...
lukesummer/vnpy
vn.trader/ctaAlgo/strategyAtrRsi.py
Python
mit
9,927
var React = require('react-native'); var { StyleSheet, View, Animated, } = React; var Dot = React.createClass({ propTypes: { isPlacedCorrectly: React.PropTypes.bool.isRequired, }, getInitialState: function() { return { scale: new Animated.Value(this.props.isPlacedCorrectly ? 1 : 0.1), ...
nosovsh/fifteen
src/Dot.js
JavaScript
mit
1,364
import os import yaml MONGO_USERNAME = os.getenv('MONGO_USERNAME', None) MONGO_PASSWORD = os.getenv('MONGO_PASSWORD', None) MONGODB_HOST = os.getenv('MONGODB_HOST', '127.0.0.1') MONGODB_PORT = int(os.getenv('MONGODB_PORT', '27017')) MONGODB_SERVERS = os.getenv('MONGODB_SERVERS') \ or '{}:{}'.format(...
ymind/docker-mongo-es
conf/appconfig.py
Python
mit
1,677
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /* * Users of PHP 5.2 should be able to run the requirements checks. * This is why the ...
olivierlb73/musicall
app/SymfonyRequirements.php
PHP
mit
27,587
var namespacehryky_1_1log = [ [ "AutoElapsed", "structhryky_1_1log_1_1_auto_elapsed.html", null ], [ "level_type", "namespacehryky_1_1log.html#a6005efaf1fc45416ed6aa211f939993f", null ], [ "writer_type", "namespacehryky_1_1log.html#a855ba68dea65f57a39b7a1cb03aee800", null ], [ "write", "namespacehryky_1...
hiroyuki-seki/hryky-codebase
doc/html/namespacehryky_1_1log.js
JavaScript
mit
376
require 'spec_helper' # Specs in this file have access to a helper object that includes # the QuizHelper. For example: # # describe QuizHelper do # describe "string concat" do # it "concats two strings with spaces" do # helper.concat_strings("this","that").should == "this that" # end # end # end desc...
jparbros/magnolia_cream
spec/helpers/quiz_helper_spec.rb
Ruby
mit
400
/**************************************************************************** Copyright (c) 2011-2012 cocos2d-x.org Copyright (c) 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation...
zry656565/MoonWarriors
frameworks/cocos2d-html5/extensions/cocostudio/armature/CCBone.js
JavaScript
mit
19,960
/* * 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. */ ...
fhoring/autorest
src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/implicit.js
JavaScript
mit
31,107
/*! * Bootstrap v3.3.6 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under the MIT license */ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') } + function($) { 'use strict'; var version = $.fn.jquery.split(' ')[0].split('.') ...
octapush/octapushJS
docs/assets/bootstrap/js/bootstrap.js
JavaScript
mit
75,339
"use strict"; import { GW_FRAME_REQ } from "./common"; export class GW_RTC_SET_TIME_ZONE_REQ extends GW_FRAME_REQ { // /** // * Creates an instance of GW_RTC_SET_TIME_ZONE_REQ. // * // * @param {string} [TimeZoneName="localtime"] Time zone name, e.g. IANA time zones. See https://github.com/SpiritI...
MiSchroe/klf-200-api
src/KLF200-API/GW_RTC_SET_TIME_ZONE_REQ.ts
TypeScript
mit
4,384
๏ปฟusing SoundDevices; namespace SoundDeviceRemotes { public class SpeakersRemote { public static ISoundDevice GetSoundDevice() { return new Speakers(); } } }
dmarkov00/Design-Patterns
Command Pattern/SoundDeviceRemotes/SpeakersRemote.cs
C#
mit
208
<?php // Composer autoloading if (file_exists('vendor/autoload.php')) { $loader = include 'vendor/autoload.php'; } $zf2Path = false; if (is_dir('vendor/ZF2/library')) { $zf2Path = 'vendor/ZF2/library'; } elseif (getenv('ZF2_PATH')) { // Support for ZF2_PATH environment variable or git submodule $zf2...
arvind2110/ZF2-Collection-Form
init_autoloader.php
PHP
mit
999
@extends('layouts.app') @section('content') <div class="container m-t-2"> @foreach($users as $user) <h3><a href="/players/{{ $user->username }}">{{ $user->username }}</a></h3> @endforeach </div> @endsection
g33kidd/bracket
resources/views/site/players.blade.php
PHP
mit
213
๏ปฟusing Newtonsoft.Json; using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using UnityEngine; using UnityEngine.SceneManagement; using UnityStandardAssets.CrossPlatformInput; using UnityStandardAssets.Vehicles.Car; public class Environment : MonoBehaviour { ...
Amathlog/rl-unity
simulator/Assets/Scripts/Environment.cs
C#
mit
10,767
# frozen_string_literal: true require 'spec_helper' RSpec.describe Responders::PaginateResponder do subject(:json) do action.call JSON.parse(response.body) end let(:resource) { ArModel.all } let(:method) { :get } let(:params) { {format: :json} } let(:action) { -> { send(method, :index, par...
jgraichen/paginate-responder
spec/responders/paginate_responder_spec.rb
Ruby
mit
6,158
<?php namespace FlickrDownloadr\Tool; class SpeedFormater { /** @var \FlickrDownloadr\Tool\FilesizeFormater */ private $filesizeFormater; function __construct(\FlickrDownloadr\Tool\FilesizeFormater $filesizeFormater) { $this->filesizeFormater = $filesizeFormater; } /** * @param int $bytes * @param float...
michalsanger/cli-flickr-downloadr
src/Tool/SpeedFormater.php
PHP
mit
572
/*============================================================================= Copyright (c) 2012, Ludo Sapiens Inc. and contributors. See accompanying file LICENSE.txt for details. =============================================================================*/ #include <Fusion/Widget/Canvas.h> #include <Fusion/...
LudoSapiens/Dev
Projects/Fusion/Widget/Canvas.cpp
C++
mit
7,948
#include "Log.h" #include "Socket.h" #include <string.h> #include <iostream> #include <atomic> #define SOCKET_MAX_CONNECTIONS 20 #if (defined __CYGWIN__ || defined __GNUC__) #include <unistd.h> #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #define SOC...
Eelco81/server-test-project
Lib/Core/Src/Socket.cpp
C++
mit
8,470
# -*- coding: utf-8 -*- """ Created on Tue Mar 14 02:17:11 2017 @author: guida """ import json import requests def get_url(url): response = requests.get(url) content = response.content.decode("utf8") return content #Json parser def get_json_from_url(url): content = get_url(url) j...
DiegoGuidaF/telegram-raspy
modules.py
Python
mit
358
package com.reason.ide.console; import com.intellij.execution.ui.ConsoleView; import com.intellij.icons.AllIcons; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.CommonDataKeys; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.project.DumbAwareActi...
reasonml-editor/reasonml-idea-plugin
src/com/reason/ide/console/ClearLogAction.java
Java
mit
918
#region Licence /* The MIT License (MIT) Copyright ยฉ 2014 Francesco Pighi <francesco.pighi@gmail.com> 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 limitat...
dstockhammer/Brighter
tests/Paramore.Brighter.Tests/CommandStore/Sqlite/When_writing_a_message_to_the_command_store.cs
C#
mit
2,789
<?php return array ( 'id' => 'sonyericsson_xperia_acro_so02c_suban234', 'fallback' => 'sonyericsson_xperia_acro_ver1_sub02', 'capabilities' => array ( 'device_os_version' => '2.3', ), );
cuckata23/wurfl-data
data/sonyericsson_xperia_acro_so02c_suban234.php
PHP
mit
202
๏ปฟusing System; using System.Collections.Generic; using AutomaticTypeMapper; using Microsoft.Xna.Framework.Graphics; using SixLabors.ImageSharp; using SixLabors.ImageSharp.Drawing.Processing; using SixLabors.ImageSharp.Formats.Png; using SixLabors.ImageSharp.Processing; namespace EOLib.Graphics { [MappedType(BaseTy...
ethanmoffat/EndlessClient
EOLib.Graphics/NativeGraphicsManager.cs
C#
mit
3,895
๏ปฟusing System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Xml.Linq; using TremAn.Decorators.AreaOfInterest; using TremAn.Models.AreaOfInterest; namespace TremAn.ViewModels.AreaOfInterest { public class TracerViewModel : INotifyPropertyChanged { public...
binao/TremAn
TremAn/ViewModels/AreaOfInterest/TracerViewModel.cs
C#
mit
3,740
module Gallery VERSION = "0.0.1" end
mazharoddin/camaleon_cms_gallery
lib/gallery/version.rb
Ruby
mit
39
/*------------------------------------------------------------------------- This source file is a part of Whisperwind.(GameEngine + GamePlay + GameTools) For the latest info, see http://lisuyong.com Copyright (c) 2012 Suyong Li (79481268@qq.com) Permission is hereby granted, free of charge, to any person obtaining a ...
harr999y/Whisperwind
Whisperwind/Whisperwind_GeneralSceneManager/src/ABTreeSceneNode.cpp
C++
mit
1,526
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2014 Alan Aguiar alanjas@hotmail.com # Copyright (c) 2012-2014 Butiรก Team butia@fing.edu.uy # Butia is a free and open robotic platform # www.fing.edu.uy/inco/proyectos/butia # Facultad de Ingenierรญa - Universidad de la Repรบblica - Uruguay # # This p...
nvazquez/Turtlebots
plugins/butia/pybot/__init__.py
Python
mit
1,171
module Transmat class Money module Arithmetic def -@ Money.new currency, -amount end def == other amount == other.amount && currencies_match?(other) end def eql? other self == other end def <=> other assert_matching_currencies other ...
juliogreff/transmat
lib/transmat/money/arithmetic.rb
Ruby
mit
873
import json import os from pokemongo_bot import inventory from pokemongo_bot.base_dir import _base_dir from pokemongo_bot.base_task import BaseTask from pokemongo_bot.human_behaviour import action_delay from pokemongo_bot.services.item_recycle_worker import ItemRecycler from pokemongo_bot.tree_config_builder import Co...
dmateusp/PokemonGo-Bot
pokemongo_bot/cell_workers/recycle_items.py
Python
mit
5,073
import org.junit.Test; import java.util.Stack; import static junit.framework.Assert.assertEquals; /** * https://leetcode.com/problems/min-stack/ */ public class MinStack { class StackItem { int value; int min; StackItem(int value, int min) { this.value = value; ...
bunnyc1986/leetcode
min-stack/src/MinStack.java
Java
mit
1,302
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>js/sweetalert2.css"> <script src="<?php echo base_url(); ?>js/sweetalert2.min.js"></script> <script> function hapusData(education_id) { var id = education_id; swal({ title: 'Are You Sure ?', text: 'This Dat...
jamboljack/hrdsystem
application/views/master/education_view.php
PHP
mit
7,566
class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: node = parent = None def deleteNode(self, root: TreeNode, key: int) -> TreeNode: # search for the node and its parent self.findNodeAndParent(root, key) if s...
shobhitmishra/CodingProblems
LeetCode/Session3/DeleteNodeBST.py
Python
mit
2,274
public class Solution { public int maxDepth(TreeNode root) { if (root == null) { return 0; } else { return 1 + Math.max(maxDepth(root.left), maxDepth(root.right)); } } }
caizixian/algorithm_exercise
LeetCode/104.Maximum Depth of Binary Tree.java
Java
mit
225
/** * */ package com.velocity.enums; /** * This Enum defines the values for ApplicationLocation * * @author Vimal Kumar * @date 12-March-2015 */ public enum ApplicationLocation { HomeInternet, NotSet, OffPremises, OnPremises, Unknown }
nab-velocity/java-sdk
velocity-sdk/velocity-services/src/main/java/com/velocity/enums/ApplicationLocation.java
Java
mit
249
/* * */ package umlClassMetaModel.diagram.navigator; import org.eclipse.core.runtime.IAdaptable; import org.eclipse.emf.common.ui.URIEditorInput; import org.eclipse.emf.common.util.URI; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.resource.Resource; import org.eclipse.emf.ecore.util.EcoreUtil;...
KuehneThomas/model-to-model-transformation-generator
src/MetaModels.UmlClass.diagram/src/umlClassMetaModel/diagram/navigator/UmlClassMetaModelNavigatorActionProvider.java
Java
mit
4,850
var assert = require('assert'); describe('src/components/model/classes/Collection', function () { var Collection = require('../../../../src/components/model/classes/Collection'); var collection; var handler = function (event, changes) { callbacks[event]++; }; var callbacks = { add:...
moduleon/nucleon
test/components/model/classes/Collection.js
JavaScript
mit
2,216
๏ปฟusing System.IO; using System.Numerics; using OpenSage.Mathematics; namespace OpenSage.FileFormats.W3d { public sealed class W3dRingHeader { public uint ChunkType { get; private set; } public uint ChunkSize { get; private set; } public uint Version { get; private set; } publ...
feliwir/openSage
src/OpenSage.FileFormats.W3d/W3dRingHeader.cs
C#
mit
2,978
/** * boot/middleware.js * Express middleware */
swhite24/react-todo-exploration
server/boot/middleware.js
JavaScript
mit
52
/* * This file is part of TechReborn, licensed under the MIT License (MIT). * * Copyright (c) 2018 TechReborn * * 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, inc...
Dimmerworld/TechReborn
src/main/java/techreborn/tiles/TileGenericMachine.java
Java
mit
3,620
export const getUrlForAbsolutePath = (path: string) => { return path.split('pages').pop().replace('.md', '') } export const getJobPath = (path: string) => { return path.split('jobs').pop().replace('.md', '') } export const getFileNameOnly = (path: string) => { return path.split('/').pop().replace('.md', '') } ...
bright/new-www
src/helpers/pathHelpers.ts
TypeScript
mit
607
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package elektra; import java.io.IOException; import java.io.PrintWriter; import java.io.FileInputStream; import java.io.InputStreamReader; import java.io.BufferedReader; import java.io.BufferedOutputStream; import java...
yanhongwang/TicketBookingSystem
src/elektra/WebChangeCustomerPassword.java
Java
mit
14,526
import React from 'react'; import Status from 'components/Status'; import renderer from 'react-test-renderer'; describe('Status component', () => { function getComponent(piecesLeftCount) { return renderer.create( <Status piecesLeftCount={piecesLeftCount} /> ); } it('should show pieces left', () =>...
dawid-drelichowski/puzzle-react-redux
src/js/tests/components/Status.test.js
JavaScript
mit
507
package com.ke2g.cued_recall; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.v...
ke2g/cuedRecall
app/src/main/java/com/ke2g/cued_recall/LoginActivity.java
Java
mit
5,334
package BusinessLogic.ConnectionStates; import BusinessLogic.ActualConnection; import BusinessLogic.Message; public class MessageMenuState implements ConnectionState{ public void dial(String key, ActualConnection connection) { if (key.equals("1")) { String output = ""; Messag...
PatriciaRosembluth/VoiceMailSimulator
src/BusinessLogic/ConnectionStates/MessageMenuState.java
Java
mit
1,243
๏ปฟnamespace Nettle.Compiler.Parsing { using Nettle.Compiler.Parsing.Blocks; using System; using System.Linq; /// <summary> /// Represents a model binding code block parser /// </summary> internal sealed class ModelBindingParser : NettleParser, IBlockParser { /// <summary> ...
craigbridges/Nettle
src/Nettle/Compiler/Parsing/ModelBindingParser.cs
C#
mit
2,245
var struct_l_p_c___r_t_c___type_def = [ [ "ALDOM", "struct_l_p_c___r_t_c___type_def.html#aae1199a3f1f40f90aba18aee4d6325fd", null ], [ "ALDOW", "struct_l_p_c___r_t_c___type_def.html#a5f56710f005f96878defbdb8ef1333c2", null ], [ "ALDOY", "struct_l_p_c___r_t_c___type_def.html#a4c7ceb477c4a865ae51f5052dd558667...
NicoLingg/TemperatureSensor_DS1621
html/struct_l_p_c___r_t_c___type_def.js
JavaScript
mit
5,285
๏ปฟusing System.Collections; using System.Collections.Generic; using UnityEngine; public class Projectile : MonoBehaviour { public float duration = 1.0f; public int damage = 1; public bool destroyOnHit = false; void Start () { } void Update () { if (duration > 0.0f) { duration -...
sasvdw/LD37
Unity/LD37/Assets/Scripts/Items/Projectile.cs
C#
mit
794
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ var RemoveTileAt = require('./RemoveTileAt'); var WorldToTileX = require('./WorldToTileX'); var WorldToTileY = require...
pixelpicosean/phaser
src/tilemaps/components/RemoveTileAtWorldXY.js
JavaScript
mit
1,442
๏ปฟnamespace Gestion.Forms { partial class Fibonachi { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <para...
Altairseven/Gestion
Forms/Fibonachi.Designer.cs
C#
mit
3,752
# -*- coding: utf-8 -*- # @Author: yancz1989 # @Date: 2017-01-17 23:43:18 # @Last Modified by: yancz1989 # @Last Modified time: 2017-02-22 20:33:29 import utilities as util from utilities import parse_image_file, filterBoxes, voxel_2_world, mkdir import numpy as np import os import json import sys from PIL import I...
yancz1989/cancer
scan.py
Python
mit
2,610
# frozen_string_literal: true class Passport include Mongoid::Document field :number, type: String field :country, type: String field :exp, as: :expiration_date, type: Date embedded_in :person, autobuild: true end
mongodb/mongoid
spec/support/models/passport.rb
Ruby
mit
227
/** * Created by JiaHao on 27/10/15. */ var fs = require('fs'); var path = require('path'); var normalizeNewline = require('normalize-newline'); function occurenceIndexes(inp, toFind) { var indices = []; var element = toFind; var idx = inp.indexOf(element); while (idx != -1) { indices.push(i...
jiahaog/brat
lib/parser.js
JavaScript
mit
2,364
module.exports.sum = function (arr, prop, exp) { var total = 0 for (var i = 0, _len = arr.length; i < _len; i++) { var value = arr[i][prop]; if (exp) { if (arr[i][exp.field] == exp.value) { total += value * 1; } } else { total ...
inamvar/bean
util/array.js
JavaScript
mit
375
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-comp-1489', templateUrl: './comp...
angular/angular-cli-stress-test
src/app/components/comp-1489/comp-1489.component.ts
TypeScript
mit
484
describe('Modules.Ellipsis.js', function() { it('should exist with expected constructures', function() { expect(moj.Modules.CaseCreation.init).toBeDefined(); }); });
ministryofjustice/correspondence_tool_staff
spec/javascripts/modules/EllipsisSpec.js
JavaScript
mit
174
import React, { Component } from 'react' import { Circle, FeatureGroup, LayerGroup, Map, Popup, Rectangle, TileLayer, } from '../../src' export default class OtherLayersExample extends Component { render () { const center = [51.505, -0.09] const rectangle = [ [51.49, -0.08], [51.5,...
yavuzmester/react-leaflet
example/components/other-layers.js
JavaScript
mit
1,171
<?php /* * Gwatkin, 15146508 */ namespace cgwatkin\a3\model; use cgwatkin\a3\exception\MySQLDatabaseException; use mysqli; /** * Class Model * * Connects to and configures the MySQL database with dummy data for testing. * * Base code provided by Andrew Gilman <a.gilman@massey.ac.nz> * * @package cgwatkin/a3 ...
CaiGwatkin/PHP_StockControlSystem
web/src/model/Model.php
PHP
mit
4,842
<?php class Autoload { public static function register($path) { if (function_exists('__autoload')) { spl_autoload_register('__autoload'); } spl_autoload_register(function ($class) use(&$path) { set_include_path($path); spl_autoload($class); ...
lcp0578/helloword
library/system/Autoload.php
PHP
mit
337
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NumberGuessing { partial class Program { public static bool doDebug = false; static void MyDebug() { if (doDebug) { Console.WriteLine("Debug informatio...
zelbo/Number-Guessing
Debug.cs
C#
mit
735
# frozen_string_literal: true require 'spec_helper' RSpec.describe DiffFileEntity do include RepoHelpers let_it_be(:project) { create(:project, :repository) } let(:repository) { project.repository } let(:commit) { project.commit(sample_commit.id) } let(:diff_refs) { commit.diff_refs } let(:diff) { commit...
mmkassem/gitlabhq
spec/serializers/diff_file_entity_spec.rb
Ruby
mit
2,686
from django.conf.urls import url from audiotracks import feeds from audiotracks import views urlpatterns = [ url(r"^$", views.index, name="audiotracks"), url(r"^(?P<page_number>\d+)/?$", views.index, name="audiotracks"), url(r"^track/(?P<track_slug>.*)$", views.track_detail, name="track_detail"),...
amarandon/django-audiotracks
audiotracks/urls.py
Python
mit
955
๏ปฟnamespace ProjectManagement { partial class EntryForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /...
RuzmanovDev/ProjectManagementSystem
ProjectManagement/EntryForm.Designer.cs
C#
mit
4,179
<?php namespace Frontiernxt\Models; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ '...
codelust/laravel-skeleton
src/Models/User.php
PHP
mit
689
require 'rails_helper' RSpec.describe "Homes", type: :request do describe "GET /homes" do it "works! (now write some real specs)" do get homes_path expect(response).to have_http_status(200) end end end
ddrscott/sql_probe
spec/dummy/spec/requests/homes_spec.rb
Ruby
mit
227
/** * */ package com.sivalabs.jcart.common.services; import javax.mail.MessagingException; import javax.mail.internet.MimeMessage; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.mail.MailException; import org.spri...
sivaprasadreddy/jcart
jcart-core/src/main/java/com/sivalabs/jcart/common/services/EmailService.java
Java
mit
1,464
class CreateCheckInSurveys < ActiveRecord::Migration def change create_table :check_in_surveys do |t| t.string :title t.text :description t.string :version, index: true t.text :question_1 t.text :question_2 t.text :question_3 t.text :question_4 t.timestamps end...
ccfapprn/network
db/migrate/20150204085338_create_check_in_surveys.rb
Ruby
mit
331
/** * Base js functions */ $(document).ready(function(){ //Init jQuery Masonry layout init_masonry(); //Select menu onchange $("#collapsed-navbar").change(function () { window.location = $(this).val(); }); }); function init_masonry(){ var $container = $('#content'); $container...
goldschadt/mason
assets/js/base.js
JavaScript
mit
563
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use Auth; // models use App\User; use App\models\Student; use App\models\Opd; class AdminStudents extends Controller { /* * E S T U D I A N T E S * ---------------------------------------------------------------- *...
GobiernoFacil/vinculacion
app/Http/Controllers/AdminStudents.php
PHP
mit
2,152
#pragma once #include <gtest/gtest.h> class HeroTest : public ::testing::Test { // Test interface protected: void SetUp() override { } void TearDown() override { } };
H4kor/tiny-hero
test/test_hero.hh
C++
mit
198
var React = require('react'); var RulePicker = require('./RulePicker.js'); var TimePicker = require('react-time-picker'); var DatePicker = require('react-date-picker'); var RuleSummary = require("./RuleSummary.js"); var moment = require('moment'); var Tabs = require('react-simpletabs'); var RecurringSelect = React.cre...
colinwahl/react-recurring-select
dist/RecurringSelect.js
JavaScript
mit
4,318
<?php /* TwigBundle:Exception:exception_full.html.twig */ class __TwigTemplate_c7b8e0c7c14064ee8fe3074f2af4519e extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = $this->env->loadTemplate("TwigBundle::layout.html.twig"); ...
hechec/StoNinoSF
app/cache/prod/twig/c7/b8/e0c7c14064ee8fe3074f2af4519e.php
PHP
mit
3,162
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = eachLimit; var _eachOfLimit = require('./internal/eachOfLimit'); var _eachOfLimit2 = _interopRequireDefault(_eachOfLimit); var _withoutIndex = require('./internal/withoutIndex'); var _withoutIndex2 = _interopRequireDef...
muhbalhester/comex-app
node_modules/async/eachLimit.js
JavaScript
mit
1,623
package cz.vhromada.utils.file.gui; import java.io.IOException; import java.nio.file.FileVisitResult; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.SimpleFileVisitor; import java.nio.file.attribute.BasicFileAttributes; import java.util.ArrayList; import java.ut...
vhromada/File_utils
src/main/java/cz/vhromada/utils/file/gui/CopyingFileVisitor.java
Java
mit
5,102
package api import ( "net/http" "strconv" "time" "gopkg.in/gin-gonic/gin.v1" "github.com/knopt/iot/backend/api/model" "github.com/knopt/iot/backend/error" ) // GetStatisticsByDeviceDataType by given requests parameters func (api *Api) GetStatisticsByDeviceDataType(context *gin.Context) { deviceID := context....
knopt/iot
backend/api/statistic.go
GO
mit
2,234
angular.module('green-streak.controllers', ['LocalStorageModule']) .controller('MenuController', function ($scope, $location, MenuService) { // "MenuService" is a service returning mock data (services.js) $scope.list = MenuService.all(); $scope.goTo = function (page) { console....
GeorgiCodes/green-streak-ui
www/js/controllers.js
JavaScript
mit
4,242
<?php //--> /** * This file is part of the Cradle PHP Command Line * (c) 2016-2018 Openovate Labs * * Copyright and license information can be found at LICENSE * distributed with this package. */ namespace Cradle\Framework\CommandLine; use Cradle\Framework\CommandLine; use Cradle\Framework\Exception; use Cradle...
CradlePHP/framework
src/CommandLine/Package.php
PHP
mit
5,588
// Copyright (c) 2014-2017 The Innova Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "activemasternode.h" #include "consensus/validation.h" #include "darksend.h" #include "init.h" #include "governan...
innovacoin/innova
src/masternode.cpp
C++
mit
36,708
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "log" "os" ) const GIN_MODE = "GIN_MODE" const ( DebugMode string = "debug" ReleaseMode string = "release" TestMode st...
bfosberry/gin
mode.go
GO
mit
875