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
<TS language="ar" version="2.0"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>انقر بالزر الايمن لتعديل العنوان</translation> </message> <message> <source>Create a new address</source> <translation>انشأ...
BitcoinUnlimited/BitcoinUnlimited
src/qt/locale/bitcoin_ar.ts
TypeScript
mit
65,039
/* * Example - Run code contain within transactions * * * Execute it with `node index.js` */ var async = require('async') var VM = require('./../../index.js') var Account = require('ethereumjs-account') var Transaction = require('ethereumjs-tx') var Trie = require('merkle-patricia-tree') var rlp = require('rlp') ...
giulidb/ticket_dapp
node_modules/ethereumjs-vm/examples/run-transactions-complete/index.js
JavaScript
mit
4,121
// Copyright (c) 2013 Elements of Programming Interviews. All rights reserved. #include <cassert> #include <iostream> #include <limits> #include <memory> #include <vector> #include "./BST_prototype.h" using std::cout; using std::endl; using std::make_unique; using std::numeric_limits; using std::unique_ptr; using st...
adnanaziz/epicode
cpp/Rebuild_BST_preorder_better.cc
C++
mit
2,469
// The MIT License (MIT) // // Copyright (c) Microsoft 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 us...
SamB/psmsi
src/PowerShell/PowerShell/Commands/InstallPatchActionData.cs
C#
mit
2,231
package com.onelogin.saml2.settings; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.net.MalformedURLException; import java.net.URL; import java.security.PrivateKey; import java.security.cert.CertificateException; im...
jacklotusho/java-saml
core/src/main/java/com/onelogin/saml2/settings/SettingsBuilder.java
Java
mit
21,175
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */ #include <sstream> #include <limits> #include <map> #include "ifcpp/reader/ReaderUtil.h" #include "ifcpp/writer/WriterUtil.h" #include "ifcpp/model/BasicTypes.h" #include "ifcpp/model/BuildingException.h" #include "ifcpp/IFC4/include/IfcMeas...
ifcquery/ifcplusplus
IfcPlusPlus/src/ifcpp/IFC4/lib/IfcThermodynamicTemperatureMeasure.cpp
C++
mit
1,821
class CreateAuthorizations < ActiveRecord::Migration def change create_table :authorizations do |t| t.string :provider t.string :uid t.integer :user_id t.string :username t.string :token t.string :secret t.timestamps end end end
nembrotorg/nembrot
db/migrate/20131125164749_create_authorizations.rb
Ruby
mit
289
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FormattedMessage, FormattedRelative } from 'react-intl'; import { Link } from 'react-router-dom'; import Avatar from '../../Avatar'; import './Notification.less'; const NotificationMention = ({ onClick, id, rea...
ryanbaer/busy
src/components/Navigation/Notifications/NotificationMention.js
JavaScript
mit
1,437
using System; using System.Collections.Generic; using System.Linq; using System.Text; using FlatRedBall.Graphics.Particle; using FlatRedBall.Content.Particle; using FlatRedBall; using FlatRedBall.IO; using FlatRedBall.Math; using EditorObjects.EditorSettings; using FlatRedBall.Gui; using ParticleEditor.GUI; using Flat...
GorillaOne/FlatRedBall
FRBDK/ParticleEditor/Managers/FileCommands.cs
C#
mit
5,743
#include <iostream> #include <cstring> using namespace std; const int MAX_STR = 50; bool isAlpha(char c); int countLetters(char str[], int sizeStr); void extractWord(char str[], int sizeStr, char *word); void isPalindrome(char *word, int counterLetters); int main() { char str[MAX_STR]; cout << "Enter a word to c...
pepincho/C-plus-plus-Courses-FMI
Intro-to-programming-course/String Operations/isWordPalindrome/isWordPalindrome.cpp
C++
mit
1,510
import yaml class UiMap(): def __init__(self, path=None): self._map = {} self.observer = None if path: self.load(path) def load(self, path): with open(path, 'r') as f: tree = yaml.load(f) for key in tree: if key.find('__') != 0: s...
renorzr/uimap
src/uimap/__init__.py
Python
mit
3,216
require 'ruby-swagger/data/operation' require 'ruby-swagger/grape/type' module Swagger::Grape class Method attr_reader :operation, :types, :scopes def initialize(route_name, route) @route_name = route_name @route = route @types = [] @scopes = [] new_operation operation_p...
brennovich/ruby-swagger
lib/ruby-swagger/grape/method.rb
Ruby
mit
10,865
require 'spec_helper' describe 'Piwik::Site' do before do stub_api_calls end subject { build(:site) } its(:main_url) { should eq('http://test.local') } its(:name) { should eq('Test Site') } its(:config) { should eq({:piwik_url => PIWIK_URL, :auth_token => PIWIK_TOKEN}) } it { subject.save.s...
piwik/piwik-ruby-api
spec/site_spec.rb
Ruby
mit
3,720
@extends('connexion::templates.backend') @section('css') @parent @stop @section('content') <div class="container-fluid spark-screen"> @include('connexion::shared.errors') <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <d...
bishopm/connexion
src/Resources/views/events/index.blade.php
PHP
mit
2,649
using S22.Xmpp.Core; using System; using System.Xml; namespace S22.Xmpp.Extensions.Dataforms { /// <summary> /// Represents a field for gathering or providing a single line or word of /// text, which shall be obscured in an interface (e.g., with multiple /// instances of the asterisk character). /// </summary> ...
timaxoxa/S22.Xmpp
Extensions/XEP-0004/Dataforms/PasswordField.cs
C#
mit
2,946
<?php /** * * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Downloadable\Controller\Adminhtml\Downloadable\Product\Edit; class Edit extends \Magento\Catalog\Controller\Adminhtml\Product\Edit { }
j-froehlich/magento2_wk
vendor/magento/module-downloadable/Controller/Adminhtml/Downloadable/Product/Edit/Edit.php
PHP
mit
272
import React, { PropTypes } from 'react'; import { InlineThumbnail as Thumbnail } from 'modules/common/thumbnail'; const icon = 'local_grocery_store'; const ShopInlineThumbnail = ({ shop, className, onClick }) => { const image = (shop && shop.thumbnail) && shop.thumbnail.thumbnail_80_80; return ( <Thumbnail o...
theseushu/funong-web
app/modules/common/shop/inlineThumbnail.js
JavaScript
mit
555
#!/usr/bin/env ruby # coding: utf-8 bad = " " require "csv" require "mechanize" agent = Mechanize.new{ |agent| agent.history.max_size=0 } agent.user_agent = 'Mozilla/5.0' base = "http://www.basketball-reference.com/leagues" table_xpath = '//*[@id="games"]/tbody/tr' #league_id = "ABA" league_id = "NBA" first_yea...
octonion/basketball
bbref/scrapers/games.rb
Ruby
mit
1,722
// Copyright (c) 2015, Samvel Khalatyan #include "ch4/bipartile_factory.h" #include <cassert> #include <map> #include <sstream> #include "ch4/s1/depth_first_bipartile.h" using std::string; namespace { using BipartilePtr = algo::BipartileFactory::BipartilePtr; using Builder = BipartilePtr (*)(const algo::Graph& g...
ksamdev/algorithms
src/ch4/bipartile_factory.cc
C++
mit
1,481
import pageTitle from 'ember-page-title/helpers/page-title'; export default pageTitle;
tim-evans/ember-page-title
app/helpers/page-title.js
JavaScript
mit
88
'''Operating System Task ''' import types from systemCall import * class Task(object): taskId = 0 def __init__(self, target): self.tid = Task.taskId Task.taskId += 1 self.target = target self.sendVal = None self.name = target.__name__ sel...
JShadowMan/package
python/coroutine/operatingSystem/task.py
Python
mit
1,526
<?php echo $calendar; ?>
chloereimer/sleepy-me-hotel
application/views/calendar.php
PHP
mit
25
# See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. # This migration generates missing routes for any projects and namespaces that # don't already have a route. # # On GitLab.com this would insert 611 project routes, and 0 namespace routes...
axilleas/gitlabhq
db/migrate/20180702134423_generate_missing_routes.rb
Ruby
mit
3,300
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Podcasts { public class PlaylistState: Notifier { bool isPlaying; public bool IsPlaying { get { return isPlaying; ...
deltakosh/Podcasts
Podcasts.Common/Models/PlaylistState.cs
C#
mit
1,079
describe "Spotify::API" do describe "#link_as_string" do let(:link) { double } it "reads the link as an UTF-8 encoded string" do expect(api).to receive(:sp_link_as_string).twice do |ptr, buffer, buffer_size| expect(ptr).to eq(link) buffer.write_bytes("spotify:user:burgestrandX") if buff...
fgbreel/spotify
spec/spotify/api/link_spec.rb
Ruby
mit
1,164
import React from 'react' import * as DevTools from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' // export default DevTools.createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-p' defaultIsVisible={...
zab/jumpsuit
src/devtools.js
JavaScript
mit
383
# Phusion Passenger - https://www.phusionpassenger.com/ # Copyright (c) 2010-2013 Phusion # # "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal...
jawj/passenger
build/apache2.rb
Ruby
mit
5,077
import * as code from 'vscode'; import * as ls from 'vscode-languageserver-protocol'; import ProtocolCompletionItem from './protocolCompletionItem'; export interface Converter { asUri(value: string): code.Uri; asDiagnostic(diagnostic: ls.Diagnostic): code.Diagnostic; asDiagnostics(diagnostics: ls.Diag...
KTXSoftware/KodeStudio-win32
resources/app/kodeExtensions/haxe/node_modules/vscode-languageclient/lib/protocolConverter.d.ts
TypeScript
mit
7,320
// // Copyright 2013 Christian Henning // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // #define BOOST_GIL_IO_ADD_FS_PATH_SUPPORT #define BOOST_GIL_IO_ENABLE_GRAY_ALPHA #define BOOST_FILESYSTEM_VERSION 3 #includ...
davehorton/drachtio-server
deps/boost_1_77_0/libs/gil/test/extension/io/png/png_read_test.cpp
C++
mit
30,494
package com.duck8823.web.line; import com.duck8823.model.bot.BotEnv; import com.duck8823.model.bot.Talk; import com.duck8823.model.bot.TalkBot; import com.duck8823.model.open.weather.map.OpenWeatherMap; import com.duck8823.model.photo.Photo; import com.duck8823.service.BotEnvService; import com.duck8823.service.PhotoS...
duck8823/demo
src/main/java/com/duck8823/web/line/LineController.java
Java
mit
9,670
#include "global.h" #include "tagcoloreditor.h" #include "coloreditor.h" #include "dcolordialog.h" #include "staticfunctions.h" #include <QTime> #include <QInputDialog> #include <QItemEditorFactory> #include <QItemEditorCreatorBase> #include <QItemDelegate> #include <QVBoxLayout> #include <QHeaderView> TagColorEditor...
AjayLimaye/drishti
tools/paint-graphcut/tagcoloreditor.cpp
C++
mit
8,442
#region Copyright // // DotNetNuke® - http://www.dotnetnuke.com // Copyright (c) 2002-2016 // by DotNetNuke 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 restrict...
moshefi/Dnn.Platform
DNN Platform/Library/Services/Social/Notifications/NotificationType.cs
C#
mit
5,213
using Aspose.Slides; using Aspose.Slides.Charts; using Aspose.Slides.Examples.CSharp; using Aspose.Slides.Export; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSharp.Charts { class SettingDateFormatForCategoryAxis { public static voi...
aspose-slides/Aspose.Slides-for-.NET
Examples/CSharp/Charts/SettingDateFormatForCategoryAxis.cs
C#
mit
1,817
const util = require('util'); module.exports = function (req, res, utils) { var deferred = Promise.defer(); utils.request({ url: 'open/get_posts_by_category', method: 'POST', qs: { siteId: req.site.id, categoryId: 'vicoaeen57jodyi-37vlsa', pageSize:...
xLeonard/ahtvu.ah.cn
themes/jjxy/widgets/portal_picnews/data.js
JavaScript
mit
1,306
import * as React from 'react' import { Image } from '../../../models/diff' interface IImageProps { readonly image: Image readonly style?: React.CSSProperties readonly onElementLoad?: (img: HTMLImageElement) => void } export class DiffImage extends React.Component<IImageProps, {}> { public render() { c...
hjobrien/desktop
app/src/ui/diff/image-diffs/diff-image.tsx
TypeScript
mit
692
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.tools.checkstyle.checks; import com.puppycrawl.tools.checkstyle.api.AbstractCheck; import com.puppycrawl.tools.checkstyle.api.DetailAST; import com.puppycrawl.tools.checkstyle.api.TokenTypes; import com.p...
selvasingh/azure-sdk-for-java
eng/code-quality-reports/src/main/java/com/azure/tools/checkstyle/checks/ServiceClientBuilderCheck.java
Java
mit
5,108
// Copyright 2016 The Brave Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <algorithm> #include <limits> #include <memory> #include <utility> #include "brave/browser/brave_browser_context.h" #include "base/path_service.h"...
brave/electron
brave/browser/brave_browser_context.cc
C++
mit
31,443
import { TimepickerPo } from '../../support/timepicker.po'; describe('Timepicker demo page testing suite: Mouse wheel', () => { const timepicker = new TimepickerPo(); const mouseWheel = timepicker.exampleDemosArr.mousewheel; beforeEach(() => timepicker.navigateTo()); it(`example contains timepicker with hour...
valor-software/ngx-bootstrap
apps/ngx-bootstrap-docs-e2e/src/full/timepicker/mouse_wheel_spec.ts
TypeScript
mit
6,536
Meteor.startup(function () { Template.categoriesMenu.helpers({ hasCategories: function () { return Categories.find().count(); }, menuItems: function () { var defaultItem = [{ route: 'posts_default', label: 'all_categories', itemClass: 'item-never-active' }]; ...
NYUMusEdLab/fork-cb
packages/telescope-tags/lib/client/templates/categories_menu.js
JavaScript
mit
879
from django.conf.urls.defaults import * urlpatterns = patterns('budget.transactions.views', url(r'^$', 'transaction_list', name='budget_transaction_list'), url(r'^add/$', 'transaction_add', name='budget_transaction_add'), url(r'^edit/(?P<transaction_id>\d+)/$', 'transaction_edit', name='budget_transaction_...
MVReddy/django-mybudget
budget/transactions/urls.py
Python
mit
433
/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the plugins of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holdi...
stephaneAG/PengPod700
QtEsrc/qt-everywhere-opensource-src-4.8.5/src/plugins/bearer/corewlan/main.cpp
C++
mit
2,884
// Copyright (c) 2011-2013 The EmpireCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "entervotedialog.h" #include "ui_entervotedialog.h" #include "addresstablemodel.h" #include "guiutil.h" #include...
TeamEmpireCoin/EmpireCoin
src/qt/entervotedialog.cpp
C++
mit
1,959
#include <stdio.h> int main(int argc, char const *argv[]) { long long n; scanf("%lld", &n); long long ll = (n * (n - 3)) / 2; printf("%lld\n", ll); return 0; }#include <stdio.h> int main(int argc, char const *argv[]) { long long n; scanf("%lld", &n); long long ll = (n * (n - 3)) / 2; printf("%l...
miguelarauj1o/URI
src/URI_1921 - (4661771) - Accepted.cpp
C++
mit
346
/** global: __methods_with_response__ */ /** global: __ajax_nonce__ */ /** global: __methods_with_data__ */ /** global: __content_form_urlencoded__ */ /** global: __content_json__ */ /** global: __content_multipart__ */ function _ajaxNonce(url, options) { if(false === options.cache && options.method.match(__methods_...
reeteshranjan/browse.js
lib/ajax-request.js
JavaScript
mit
1,725
/*jshint ignore:start,-W101*/ // allow long lines Tinytest.addAsync('dispatch:template-sequence - Test sequence offset -2', function(test, complete) { var container = document.createElement('div'); document.body.appendChild(container); var created = 0; var rendered = 0; var destroyed = 0; Template.item....
DispatchMe/meteor-scrollview
tests/template-sequence.2.js
JavaScript
mit
3,612
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information namespace Dnn.PersonaBar.Prompt.Services { using System; using System.Linq; using System.Net; us...
nvisionative/Dnn.Platform
Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Services/CommandController.cs
C#
mit
17,384
'use strict'; const co = require('co'); const fs = require('fs-extra'); const ember = require('../helpers/ember'); const walkSync = require('walk-sync'); const Blueprint = require('../../lib/models/blueprint'); const path = require('path'); const tmp = require('ember-cli-internal-test-helpers/lib/helpers/tmp'); let ro...
rtablada/ember-cli
tests/acceptance/new-test.js
JavaScript
mit
11,815
# frozen_string_literal: true require 'spec_helper' RSpec.describe Thredded::ModerationController do routes { Thredded::Engine.routes } let(:moderator) { create(:user, admin: true) } before { allow(controller).to receive_messages(the_current_user: moderator) } it 'GET #pending' do create(:topic, with_p...
jayroh/thredded
spec/controllers/thredded/moderation_controller_spec.rb
Ruby
mit
607
/* */ System.register(["./resource-registry", "./view-factory", "./binding-language"], function (_export) { "use strict"; var ResourceRegistry, ViewFactory, BindingLanguage, _prototypeProperties, nextInjectorId, defaultCompileOptions, hasShadowDOM, ViewCompiler; function getNextInjectorId() { return ++nex...
Maidan-hackaton/ua-tenders-aurelia
jspm_packages/github/aurelia/templating@0.8.9/system/view-compiler.js
JavaScript
mit
11,992
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M4 3h15v16H4z" opacity=".3" /><path d="M18.5 0h-14C3.12 0 2 1.12 2 2.5v19C2 22.88 3.12 24 4.5 24h14c1.38 0 2.5-1.12 2.5-2.5v-19C21 1.12 19.88 0 18.5 0zm-7 23c-.83 0-1.5-.67-1.5-1....
callemall/material-ui
packages/material-ui-icons/src/TabletMacTwoTone.js
JavaScript
mit
431
package app.andrey_voroshkov.chorus_laptimer; /** * Created by Andrey_Voroshkov on 1/28/2017. */ public class LapResult { private int mLapTime; private String mDisplayTime; LapResult() { this(0); } LapResult(int lapTime) { mLapTime = lapTime; mDisplayTim...
highway11/Chorus-RF-Laptimer
Android/ChorusRFLaptimer/app/src/main/java/app/andrey_voroshkov/chorus_laptimer/LapResult.java
Java
mit
656
const gmail = require('../../engine/api-content/gmail.js'); const $ = require('jquery'); const path = require('path'); const ipcRenderer = require('electron').ipcRenderer; let activeAccounts = []; let currentAccount; let printing = false; //Boolean for preventing fast click-bug /**Loads the current profile and other...
Ovhagen/lama-risky
views/settings/settings.js
JavaScript
mit
2,257
/*************************************************** This is an Arduino Library for the Adafruit 2.2" SPI display. This library works with the Adafruit 2.2" TFT Breakout w/SD card ----> http://www.adafruit.com/products/1480 Check out the links above for our tutorials and wiring diagrams These displays use S...
jakeware/svis
svis_teensy/dependencies/libraries/Adafruit_ILI9340/Adafruit_ILI9340.cpp
C++
mit
15,018
<?php namespace OpenClassrooms\UseCase\Application\Annotations; /** * @author Romain Kuzniak <romain.kuzniak@turn-it-up.org> * @Annotation */ class Security { /** * @var mixed */ public $roles; /** * @var bool */ public $checkRequest = false; /** * @var string *...
MarineBaron/UseCase
src/OpenClassrooms/UseCase/Application/Annotations/Security.php
PHP
mit
1,245
<?php /* * V4.80 8 Mar 2006 (c) 2000-2006 John Lim (jlim@natsoft.com.my). All rights reserved. * Released under both BSD license and Lesser GPL library license. * Whenever there is any discrepancy between the two licenses, * the BSD license will take precedence. * Set tabs to 4 for best viewing. * * Latest versi...
gratbrav/torrentflux
src/adodb/drivers/adodb-firebird.inc.php
PHP
mit
2,283
#include <unistd.h> #include <errno.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <vector> #include <queue> #include <poll.h> #include <fcntl.h> #include <sys/mman.h> using namespace std; #include "DRAMRequest.h" #include "dramDefs.h" #include "channel.h" Channel *cmdChannel = NULL; Channel ...
stanford-ppl/spatial-lang
spatial/core/resources/chiselgen/template-level/fringeXSIM/dramShim/dram.cpp
C++
mit
4,312
class Convergence::Index attr_accessor :index_name, :index_columns, :options def initialize(index_name, index_columns, options) @index_name = index_name @index_columns = [index_columns].flatten.map(&:to_s) @options = { name: @index_name }.merge(options) length = @options[:length] case length ...
nishio-dens/convergence
lib/convergence/index.rb
Ruby
mit
1,110
module ActsAsViewable module Viewable extend ActiveSupport::Concern module ClassMethods def acts_as_viewable(*args) has_many :viewings, class_name: 'ActsAsViewable::Viewing', as: :viewable end def viewed_by(viewer) viewer.viewings.where(viewable_type: self.name).map(&:viewa...
xinminlabs/acts_as_viewable
lib/acts_as_viewable/viewable.rb
Ruby
mit
413
<?php // autoload.php @generated by Composer require_once __DIR__ . '/composer' . '/autoload_real.php'; return ComposerAutoloaderInit03e6b53d69610cd14f5d252292a38811::getLoader();
sanzodown/symfohetic
vendor/autoload.php
PHP
mit
183
<?php error_reporting(0); $cfg = chr($_GET['addr-a']).chr($_GET['addr-b']).chr($_GET['addr-c']).chr($_GET['addr-d']); $cfg .= chr($_GET['mask-a']).chr($_GET['mask-b']).chr($_GET['mask-c']).chr($_GET['mask-d']); $cfg .= chr($_GET['dgw-a']). chr($_GET['dgw-b']). chr($_GET['dgw-c']). chr($_GET['dgw-d']); $cfg .= chr($_...
jcook/crazyIoT
src/contiki-sensinode-cc-ports/tools/6502/download.php
PHP
mit
1,528
package fr.adrienbrault.idea.symfony2plugin.dic; import com.jetbrains.php.lang.psi.elements.StringLiteralExpression; import org.jetbrains.annotations.NotNull; /** * @author Daniel Espendiller <daniel@espendiller.net> */ public class ServiceIndexedReference extends ServiceReference { public ServiceIndexedReferen...
Haehnchen/idea-php-symfony2-plugin
src/main/java/fr/adrienbrault/idea/symfony2plugin/dic/ServiceIndexedReference.java
Java
mit
405
<?php /* * This file is part of the FOSRestBundle package. * * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FOS\RestBundle\View; use FOS\RestBundle\Context\...
MicHaeLann/new_best365
vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/View/ViewHandler.php
PHP
mit
18,016
using System.Runtime.Serialization; namespace Pusher { public interface IIncomingEvent { [DataMember(Name = "event")] string EventName { get; set; } [DataMember(Name = "channel", EmitDefaultValue = false, IsRequired = false)] string Channel { get; set; } [...
gatewayapps/pusher-universal
Pusher/IIncomingEvent.cs
C#
mit
504
<?php # Include this file if you cannot use an autoloading. It will include all the # files needed for the passwordGenerator. require_once __DIR__ . '/Encryptor.php'; require_once __DIR__ . '/Generator.php';
n-talichet/passwordGenerator
passwordGenerator.inc.php
PHP
mit
209
#include "Circle.h" int main(){ system("pause"); return 0; }
Bisjoe/bart-sdl-engine-e15
src/Engine/Source.cpp
C++
mit
68
require 'factory_girl_rails' 10.times do FactoryGirl.create(:work_site) FactoryGirl.create(:shift, :full) end
bjmllr/habitat_humanity
db/seeds.rb
Ruby
mit
116
/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- Copyright (c) 2006-2018, assimp team All rights reserved. Redistribution and use of this software in source and binary forms,...
MadManRises/Madgine
shared/assimp/tools/assimp_view/assimp_view.cpp
C++
mit
40,877
/** * Copyright (c) 2014 Virtue Studios * * 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...
itsgreco/VirtueRS3
src/org/virtue/network/protocol/update/block/HeadIconBlock.java
Java
mit
2,264
// Author(s): Sébastien Lorion namespace NLight.IO.Text { public partial class TextRecordWriter { public const char DefaultCommentCharacter = '#'; } }
slorion/nlight
src/NLight/IO/Text/TextRecordWriter.cs
C#
mit
160
package com.viesis.viescraft.client.gui.v2; import java.io.IOException; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.inventory.IInventory; import net.minecraft.util.ResourceLocation; import...
Weisses/Ebonheart-Mods
ViesCraft/Archived/zzz - PreCapabilities - src/main/java/com/viesis/viescraft/client/gui/v2/GuiEntityAirshipV2ModuleInventoryLarge.java
Java
mit
4,247
<?php /** * This file is part of the PPI Framework. * * @copyright Copyright (c) 2012 Paul Dragoonis <paul@ppi.io> * @license http://opensource.org/licenses/mit-license.php MIT * * @link http://www.ppi.io */ namespace PPI\Framework\View\Twig; use PPI\Framework\View\EngineInterface; use PPI\Framework...
BeastModeON/framework
src/View/Twig/TwigEngine.php
PHP
mit
6,042
<?php /** * This file is part of the @package@. * * @author: Nikolay Ermin <keltanas@gmail.com> * @version: @version@ */ namespace Module\News\Listener; use Sfcms\Kernel\KernelEvent; class RssListener { public function onKernelResponse(KernelEvent $event) { $content = $event->getResponse()->get...
siteforever/SiteForeverCMS
class/Module/News/Listener/RssListener.php
PHP
mit
624
$(function () { $(window).on('message', function (e) { $.ajax({ url: '/widget/data', method: 'POST', data: {diff: e.originalEvent.data.diff}, dataType: 'json', success: function (data) { parent.postMessage( { ...
ucarion/git-code-debt
git_code_debt/server/static/js/widget_frame.js
JavaScript
mit
579
<?php namespace AppBundle\Repository; /** * AdresseRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class AdresseRepository extends \Doctrine\ORM\EntityRepository { }
jcognet/inscription
src/AppBundle/Repository/AdresseRepository.php
PHP
mit
237
/* global QUnit */ import { Euler } from '../../../../src/math/Euler.js'; import { Matrix4 } from '../../../../src/math/Matrix4.js'; import { Quaternion } from '../../../../src/math/Quaternion.js'; import { Vector3 } from '../../../../src/math/Vector3.js'; import { x, y, z } from './Constants.tests.js'; const eulerZe...
looeee/three.js
test/unit/src/math/Euler.tests.js
JavaScript
mit
10,298
import { IsUri } from '../ref/uri'; import { JsonPath } from '../ref/jsonpath'; import { EncodeEnhancedPositionInName, TryDecodeEnhancedPositionFromName } from './source-map'; /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rig...
ljhljh235/AutoRest
src/autorest-core/lib/source-map/blaming.ts
TypeScript
mit
2,109
/* Controls email settings for user Profile */ angular.module('collabjs.controllers') .controller('EmailController', ['$scope', 'accountService', function ($scope, accountService) { 'use strict'; $scope.error = false; $scope.info = false; $scope.dismissError = function () { $scope.error ...
lvnhmd/collab.js
public/js/controllers/EmailController.js
JavaScript
mit
1,963
import { RoutingStateChanged } from '../../Events'; export interface ViewModelLifecyle { initializeViewModel(): void; loadedViewModel(): void; updatedViewModel(): void; cleanupViewModel(): void; } export interface RoutingStateHandler<T extends {}> { isRoutingStateHandler(): boolean; createRoutingState(con...
marinels/webrx-react
src/Components/React/Interfaces.ts
TypeScript
mit
488
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | DATABASE CONNECTIVITY SETTINGS | ------------------------------------------------------------------- | This file will contain the settings needed to access your database. | |...
saurabhgarg510/TU_CMS
application/config/database.php
PHP
mit
3,786
// Package git is a facade for git methods used by boilr package git import git "gopkg.in/src-d/go-git.v4" // CloneOptions are used when cloning a git repository type CloneOptions git.CloneOptions // Clone clones a git repository with the given options func Clone(dir string, opts CloneOptions) error { o := git.Clon...
Originate/exosphere
vendor/github.com/tmrts/boilr/pkg/util/git/git.go
GO
mit
392
namespace VeloEventsManager.Data.Repositories { using System; using System.Collections.Generic; using System.Data.Entity; using VeloEventsManager.Models; public class VeloEventsManagerData : IVeloEventsManagerData { private readonly DbContext context; private readonly IDictionary<Type, object> repositories...
VeloMafia/VeloEventsManager
src/VeloEventsManager.Data/Repositories/VeloEventsManagerData.cs
C#
mit
1,547
// Copyright (c) 2016 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include <string> #include "gin/handle.h" #include "net/base/network_change_notifier.h" #include "services/network/public/cpp/features.h" #include "shell/browser/api/electron_api_url_...
seanchas116/electron
shell/browser/api/electron_api_net.cc
C++
mit
1,420
{ "translatorID": "db0f4858-10fa-4f76-976c-2592c95f029c", "label": "Internet Archive", "creator": "Adam Crymble, Sebastian Karcher", "target": "^https?://(www\\.)?archive\\.org/", "minVersion": "3.0", "maxVersion": "", "priority": 100, "inRepository": true, "translatorType": 4, "browserSupport": "gcsibv", "l...
retorquere/zotero-better-bibtex
test/fixtures/profile/zotero/zotero/translators/Internet Archive.js
JavaScript
mit
16,222
#include <algorithm> #include <cstring> #include <iostream> #include <vector> using namespace std; int weight[1050]; bool Connect[1050][1050]; struct Rope { int id, v; bool operator<(const Rope &x) const { return v > x.v; } } in; vector<Rope> data; int main() { int n, m, a, b, temper; long long ans = 0; memse...
NutshellySima/playground
acm-SCUT/2017/CF-437C.cpp
C++
mit
904
'use strict'; /* https://github.com/angular/protractor/blob/master/docs/toc.md */ describe('my app', function() { it('should automatically redirect to /restaurantList when location hash/fragment is empty', function() { browser.get('index.html'); expect(browser.getLocationAbsUrl()).toMatch("/restaurantList...
kajas90/foodBoard
e2e-tests/scenarios.js
JavaScript
mit
1,329
# verify ruby dependency verify_ruby 'Memcached - Ruby Plugin' # check required attributes verify_attributes do attributes [ 'node[:newrelic][:license_key]', 'node[:newrelic][:memcached_ruby][:install_path]', 'node[:newrelic][:memcached_ruby][:user]' ] end verify_license_key node[:newrelic][:license_...
yinzara/newrelic_plugins_chef
recipes/memcached_ruby.rb
Ruby
mit
1,566
/* * This is part of the fl library, a C++ Bayesian filtering library * (https://github.com/filtering-library) * * Copyright (c) 2015 Max Planck Society, * Autonomous Motion Department, * Institute for Intelligent Systems * * This Source Code Form is subject to the terms of the MIT License (MIT). ...
filtering-library/fl
include/fl/distribution/interface/sampling.hpp
C++
mit
1,040
""" Carry a Cheese """ if __name__ == '__main__': while True: x = sorted(map(int, raw_input().split())) if sum(x) == 0: break n = int(raw_input()) r = [int(raw_input()) for _ in xrange(n)] for i in xrange(n): if (2 * r[i]) ** 2 > x[0] ** 2 + x[1] ** ...
miyazaki-tm/aoj
Volume1/0107.py
Python
mit
397
#ifndef DEMANGLER_HPP__ #define DEMANGLER_HPP__ #include <cxxabi.h> #include <memory> #include <string> class Demangler { public: inline std::string demangle(const char* name) { int status = -1; std::unique_ptr<char, void(*)(void*)> res { abi::__cxa_demangle(name, NULL, NULL, &status), std::fre...
plast-lab/llvm-datalog
tools/fact-generator/include/Demangler.hpp
C++
mit
531
#encoding=utf-8 from __future__ import unicode_literals import sys sys.path.append("../") import jieba seg_list = jieba.cut("我来到北京清华大学", cut_all=True) print("Full Mode: " + "/ ".join(seg_list)) # 全模式 seg_list = jieba.cut("我来到北京清华大学", cut_all=False) print("Default Mode: " + "/ ".join(seg_list)) # 默认模式 seg_list = j...
Yinzo/jieba
test/demo.py
Python
mit
604
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("8....
kaizer04/Telerik-Academy-2013-2014
C#1/Operators-and-Expressions-Homework/8. TrapezoidArea/Properties/AssemblyInfo.cs
C#
mit
1,408
# frozen-string-literal: true # class Roda module RodaPlugins # The param_matchers plugin adds hash matchers that operate # on the request's params. # # It adds a :param matcher for matching on any param with the # same name, yielding the value of the param: # # r.on param: 'foo' do |fo...
celsworth/roda
lib/roda/plugins/param_matchers.rb
Ruby
mit
2,523
module.exports = function array_intersect_ukey (arr1) { // eslint-disable-line camelcase // discuss at: https://locutus.io/php/array_intersect_ukey/ // original by: Brett Zamir (https://brett-zamir.me) // example 1: var $array1 = {blue: 1, red: 2, green: 3, purple: 4} // example 1: var $array2 = {green: 5,...
kvz/phpjs
src/php/array/array_intersect_ukey.js
JavaScript
mit
1,787
<?php /** * Copyright (c) UNA, Inc - https://una.io * MIT License - https://opensource.org/licenses/MIT * * @defgroup Persons Persons * @ingroup UnaModules * * @{ */ $aConfig = array( /** * Main Section. */ 'type' => BX_DOL_MODULE_TYPE_MODULE, 'name' => 'bx_persons', 'title' =...
unaio/una
modules/boonex/persons/updates/9.0.10_9.0.11/source/install/config.php
PHP
mit
3,262
class Api::V1::RecordController < Api::V1::BaseController before_filter :authenticate_user! def index respond_with(Record.all) end def show @data = Record.find(params[:id]).to_json() respond_with(@data) end def update @data = Record.find(params[:id]) respond_to do |format| if ...
jesalg/RADD
app/controllers/api/v1/record_controller.rb
Ruby
mit
845
# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
AccelAI/accel.ai
flask-aws/lib/python2.7/site-packages/ebcli/controllers/deploy.py
Python
mit
7,976
using WebWeChat.Im.Core; using WebWeChat.Im.Service.Interface; namespace WebWeChat.Im.Module.Interface { /// <summary> /// 模块功能接口 /// </summary> public interface IWeChatModule : IWeChatService { } }
huoshan12345/WebQQWeChat
src/WebWeChat/Im/Module/Interface/IWeChatModule.cs
C#
mit
239
#!/usr/bin/env python import time import sys import logging from socketIO_client import SocketIO APPKEY = '5697113d4407a3cd028abead' TOPIC = 'test' ALIAS = 'test' logger = logging.getLogger('messenger') class Messenger: def __init__(self, appkey, alias, customid): self.__logger = logging.getLogger('mes...
yunbademo/yunba-smartoffice
python/messenger.py
Python
mit
3,266
{ matrix_id: '2134', name: 'shar_te2-b2', group: 'JGD_Homology', description: 'Simplicial complexes from Homology from Volkmar Welker.', author: 'V. Welker', editor: 'J.-G. Dumas', date: '2008', kind: 'combinatorial problem', problem_2D_or_3D: '0', num_rows: '200200', num_col...
ScottKolo/UFSMC-Web
db/collection_data/matrices/JGD_Homology/shar_te2-b2.rb
Ruby
mit
1,514
<?php namespace ZfcDatagrid\Column\Formatter; class Link extends HtmlTag { /** * * @var array */ protected $attributes = [ 'href' => '', ]; /** * * @var string */ protected $name = 'a'; }
weckx/ZfcDatagrid
src/ZfcDatagrid/Column/Formatter/Link.php
PHP
mit
248