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
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. using System.Threading.Tasks; using Test.Utilities; using Xunit; using VerifyCS = Test.Utilities.CSharpCodeFixVerifier< Microsoft.CodeQuality.Analyzers.ApiDesignGuidelin...
dotnet/roslyn-analyzers
src/NetAnalyzers/UnitTests/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/EnumsShouldHaveZeroValueTests.Fixer.cs
C#
mit
9,759
/** * Conversion: * All dynamic tweaked dom id or class names are prefixed with 't-'. */ /** * Config */ var PRIVATE_TOKEN = 'xYDh7cpVX8BS2unon1hp'; /** * Globals. */ var autocompleteOpts, projectOpts, currentProjectID, currentProjectPath; $(function () { initGlobals(); handleAll(); mapUrlHandle...
inetfuture/gitlab-tweak
public/tweak.js
JavaScript
mit
7,663
import axios from 'axios' import pipelineApi from './api' import { addMessage } from '../../../client/utils/flash-messages' import { transformValueForAPI } from '../../../client/utils/date' function transformValuesForApi(values, oldValues = {}) { const data = { name: values.name, status: values.category, }...
uktrade/data-hub-fe-beta2
src/apps/my-pipeline/client/tasks.js
JavaScript
mit
2,963
var global = require('../../global'); module.exports = function (data, offset) { var items = data.items.map(invoiceNote => { var invoiceItem = invoiceNote.items.map(dataItem => { var _items = dataItem.items.map(item => { dueDate = new Date(dataItem.deliveryOrderSupplierDoDate);...
indriHutabalian/dl-module
src/pdf/definitions/garment-intern-note.js
JavaScript
mit
21,593
// // StoreAppleReceiptParser.hpp // Pods // // Created by eps on 7/3/20. // #ifndef EE_X_STORE_APPLE_RECEIPT_PARSER_HPP #define EE_X_STORE_APPLE_RECEIPT_PARSER_HPP #include <string> #include "ee/store/StoreFwd.hpp" namespace ee { namespace store { class AppleReceiptParser { public: AppleReceiptParser(); ...
Senspark/ee-x
src/cpp/ee/store/private/StoreAppleReceiptParser.hpp
C++
mit
522
const multiples = '(hundred|thousand|million|billion|trillion|quadrillion|quintillion|sextillion|septillion)' const here = 'fraction-tagger' // plural-ordinals like 'hundredths' are already tagged as Fraction by compromise const tagFractions = function (doc) { // hundred doc.match(multiples).tag('#Multiple', her...
nlp-compromise/nlp_compromise
plugins/numbers/src/tagger/fractions.js
JavaScript
mit
2,380
window._skel_config = { prefix: 'css/style', preloadStyleSheets: true, resetCSS: true, boxModel: 'border', grid: { gutters: 30 }, breakpoints: { wide: { range: '1200-', containers: 1140, grid: { gutters: 50 } }, narrow: { range: '481-1199', containers: 960 }, mobile: { r...
akabob/ARIA_CA2_Code
js/sk1.js
JavaScript
mit
3,079
(function(app, undefined) { 'use strict'; if(!app) throw new Error('Application "app" namespace not found.'); //---------------------------------------------------------------------------- console.log( 'hello world' ); console.log( 'Application Running...' ); //------------------------------------------...
soudev/requirejs-steps
src/01/scripts/app.js
JavaScript
mit
867
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace KUI.Controls { public class FlatAccentButton : FlatButton { protected override void OnPaintBackground(PaintEventArgs pevent) ...
TheKronks/KUI
KUI/Controls/FlatAccentButton.cs
C#
mit
848
using MortgageCalc.Models; using System; using System.Collections.Generic; namespace MortgageCalc.Calculators { public class InterestOnlyScheduleBuilder { private RateCalc _calc = new RateCalc(6); // initialize with 6 decimal places private decimal _monthlyPayment; private decimal _pri...
shanegray/mortgage-calc
Calculators/InterestOnlyScheduleBuilder.cs
C#
mit
947
import Ember from 'ember'; import CheckboxMixin from '../mixins/checkbox-mixin'; export default Ember.Component.extend(CheckboxMixin, { type: 'checkbox', checked: false, onChange: function() { this.set('checked', this.$('input').prop('checked')); this.sendAction("action", { checked: this.get('chec...
CrshOverride/Semantic-UI-Ember
addon/components/ui-checkbox.js
JavaScript
mit
374
@ParametersAreNonnullByDefault package org.zalando.problem.spring.web.advice; import javax.annotation.ParametersAreNonnullByDefault;
zalando/problem-spring-web
problem-spring-web/src/main/java/org/zalando/problem/spring/web/advice/package-info.java
Java
mit
135
""" Django settings for ross project. Generated by 'django-admin startproject' using Django 1.10.6. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os #...
rossplt/ross-django-utils
ross/settings.py
Python
mit
3,090
//////////////////////////////////////////////////////////////////////////////// //worldgenerator.cs //Created on: 2015-8-21, 18:18 // //Project VoxelEngine //Copyright C bajsko 2015. All rights Reserved. //////////////////////////////////////////////////////////////////////////////// using Microsoft.Xna.Framework; u...
bajsko/VoxelEngine
Game/WorldGenerator.cs
C#
mit
5,364
"use strict" var express = require('express'); var app = express(); var elasticsearch = require('elasticsearch'); var client = new elasticsearch.Client({ host: 'localhost:9200', log: 'trace' }); var router = express.Router(); router.get('/accidents', function(req, res) { var query = { index: 'wildmap', type: ...
Jugendhackt/wildmap
backend/index.js
JavaScript
mit
1,488
var generatetask = require('../source/ajgenesis/tasks/generate'), createtask = require('../create'), path = require('path'), fs = require('fs'), ajgenesis = require('ajgenesis'); exports['generate'] = function (test) { test.async(); var cwd = process.cwd(); process.ch...
ajlopez/AjGenesisNode-Sinatra
test/generate.js
JavaScript
mit
9,507
package com.virtualfactory.screen.layer.components; import de.lessvoid.nifty.Nifty; import de.lessvoid.nifty.NiftyEventSubscriber; import de.lessvoid.nifty.controls.ButtonClickedEvent; import de.lessvoid.nifty.controls.Controller; import de.lessvoid.nifty.controls.window.WindowControl; import de.lessvoid.nifty.element...
uprm-gaming/virtual-factory
src/com/virtualfactory/screen/layer/components/FlowChartScreenController.java
Java
mit
4,455
const S$ = require('S$'); function loadSrc(obj, src) { throw src; } const cookies = S$.symbol('Cookie', ''); const world = {}; if (cookies) { if (/iPhone/.exec(cookies)) { loadSrc(world, '/resources/' + cookies); } loadSrc(world, '/resources/unknown'); } else { loadSrc(world, '/resources...
ExpoSEJS/ExpoSE
tests/regex/cookies/t1.js
JavaScript
mit
332
module.exports = function (seneca, util) { //var Joi = util.Joi }
senecajs/seneca-dynamo-store
dynamo-store-doc.js
JavaScript
mit
68
package Digivolver; public class Digivolution{ private Digimon digimon; private int minDp = 0; private int maxDp = 0; public boolean isWithinDp(int minDp, int maxDp){ return this.minDp<=maxDp && this.maxDp>=minDp; } public Digivolution(Digimon digimon, int minDp, int maxDp) { this.digimon = digimon; thi...
mp-pinheiro/DW2Digivolver
src/Digivolver/Digivolution.java
Java
mit
580
import re import hashlib FNAME_MATCH = re.compile(r'/([^/]+)$') # From the last slash to the end of the string PREFIX = re.compile(r'([^:]+://)(/)?(.+)') # Check for a prefix like data:// def getParentAndBase(path): match = PREFIX.match(path) if match is None: if path.endswith('/'): st...
algorithmiaio/algorithmia-python
Algorithmia/util.py
Python
mit
1,473
/** * @file query.cc * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2017-2021 TileDB, Inc. * * 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 restri...
TileDB-Inc/TileDB
tiledb/sm/query/query.cc
C++
mit
69,785
class CreateProductMaterials < ActiveRecord::Migration[5.0] def change create_table :product_materials do |t| t.belongs_to :product, index: true t.string :name t.string :material t.string :description t.timestamps end end end
Klaital/abandonedforge.com
db/migrate/20160920213323_create_product_materials.rb
Ruby
mit
269
<?php /** * [WeEngine System] Copyright (c) 2014 WE7.CC * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details. */ defined('IN_IA') or exit('Access Denied'); load()->func('file'); load()->model('article'); load()->model('account'); $dos = array('display', 'post', ...
justzheng/test1
web/source/site/article.ctrl.php
PHP
mit
9,565
<?php namespace Kr\OAuthClient\Credentials; class Client extends AbstractCredentials { protected $clientId, $clientSecret, $redirectUri; /** * Client constructor. * @param string $clientId * @param string $clientSecret * @param string $redirectUri */ public function __construct($c...
koenreiniers/oauth-client
src/Credentials/Client.php
PHP
mit
1,264
$(function () { $('.imageUploadMultiple').each(function (index, item) { var $item = $(item); var $group = $item.closest('.form-group'); var $innerGroup = $item.find('.form-group'); var $errors = $item.find('.errors'); var $input = $item.find('.imageValue'); var flow =...
Asvae/SleepingOwlAdmin
resources/assets/js/form/image/initMultiple.js
JavaScript
mit
2,178
module Schema include Virtus.module(:constructor => false, :mass_assignment => false) def initialize set_default_attributes end def attributes attribute_set.get(self) end def to_h attributes end end
obsidian-btc/schema
lib/schema/schema.rb
Ruby
mit
228
/** * k-d Tree JavaScript - V 1.01 * * https://github.com/ubilabs/kd-tree-javascript * * @author Mircea Pricop <pricop@ubilabs.net>, 2012 * @author Martin Kleppe <kleppe@ubilabs.net>, 2012 * @author Ubilabs http://ubilabs.net, 2012 * @license MIT License <http://www.opensource.org/licenses/mit-license.p...
tsurantino/roadtrip
lib/kdTree.js
JavaScript
mit
13,331
// function that finds the sum of two parameters function findSum(firstnr, secondnr){ return firstnr + secondnr; } //function that finds the product of two parameters function findProduct(firstnr, secondnr){ return firstnr * secondnr; } /* threeOperation calls the operation parameter as a function so it's able to r...
InekeScheffers/NYCDA-individual-assignments
09-29-2016-Anonymous-Functions-Practice/Anonymous Functions Practice.js
JavaScript
mit
1,060
// GPG4Browsers - An OpenPGP implementation in javascript // Copyright (C) 2011 Recurity Labs GmbH // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2.1 of the Lice...
openilabs/crypto
node_modules/openpgp/src/packet/sym_encrypted_session_key.js
JavaScript
mit
5,248
""" train supervised classifier with what's cooking recipe data objective - determine recipe type categorical value from 20 """ import time from features_bow import * from features_word2vec import * from sklearn.preprocessing import StandardScaler from sklearn.ensemble import RandomForestClassifier, ExtraTreesClassifie...
eifuentes/kaggle_whats_cooking
train_word2vec_rf.py
Python
mit
1,909
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class SettingController * * @author The scaffold-interface created at 2016-08-25 01:07:35am * @link https://github.com/amranidev/scaffold-interface */ class Setting extends Model { use So...
UnrulyNatives/helpers-for-laravel-projects
src/unstarter_models/Avatar.php
PHP
mit
408
package net.robobalasko.dfa.gui; import net.robobalasko.dfa.core.Automaton; import net.robobalasko.dfa.core.exceptions.NodeConnectionMissingException; import net.robobalasko.dfa.core.exceptions.StartNodeMissingException; import javax.swing.*; import javax.swing.border.EmptyBorder; import javax.swing.event.DocumentEve...
robobalasko/DFA-Simulator
src/main/java/net/robobalasko/dfa/gui/MainFrame.java
Java
mit
3,007
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "main.h" #include "db.h" #include "init.h" #include "bitcoinrpc.h" using name...
frontibit/riestercoin
src/rpcmining.cpp
C++
mit
21,117
#ifndef _PARSER_HPP #define _PARSER_HPP #include <cassert> #include <iostream> #include <vector> #include <string> #include <cstdlib> #include "toyobj.hpp" #include "lexer.hpp" #include "toy.hpp" #include "ast.hpp" class ParserContext { public: explicit ParserContext(LexerContext &lexer) : lexer_(lexer)...
helgefmi/Toy
src/parser.hpp
C++
mit
1,288
require 'aws-sdk' require 'awspec/resource_reader' require 'awspec/helper/finder' module Awspec::Type class Base include Awspec::Helper::Finder include Awspec::BlackListForwardable attr_accessor :account def resource_via_client raise 'this method must be override!' end def to_s ...
AgarFu/awspec
lib/awspec/type/base.rb
Ruby
mit
1,180
export default { FETCH_TAGS_PENDING: Symbol("FETCH_TAGS_PENDING"), FETCH_TAGS_SUCCESS: Symbol("FETCH_TAGS_SUCCESS"), FETCH_TAGS_FAILURE: Symbol("FETCH_TAGS_FAILURE"), FILTER_TAGS: Symbol("FILTER_TAGS"), ORDER_TAGS: Symbol("ORDER_TAGS") };
danjac/photoshare
ui/actionTypes/tags.js
JavaScript
mit
251
<?php /** * summary */ class Product extends MY_Controller { public function __construct() { parent::__construct(); $this->load->model('product_model'); } function index(){ $total = $this->product_model->get_total(); $this->data['total'] = $total; //load t...
mrthanhtan22/vemaybay
application/controllers/admin/Product.php
PHP
mit
11,577
import { Injectable } from '@angular/core'; import { Subject } from 'rxjs/Subject'; import { Observable } from 'rxjs/Observable'; import { AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database'; import { AngularFireAuth } from 'angularfire2/auth'; import * as firebase from 'firebase/app'; import {Ht...
alimcharaniya/uniformlab-v3
src/services/auth.service.ts
TypeScript
mit
1,321
/** * * @function * @param {Array|arraylike} value * @param {Function} cmd * @param {any} context * @returns {?} */ export default function eachValue(value, cmd, context, keepReverse) { if (value === undefined || value === null) return undefined; const size = (0 | value.length) - 1; for (let index = size; ind...
adriancmiranda/describe-type
internal/eachValue.next.js
JavaScript
mit
568
const should = require('should'), sinon = require('sinon'), _ = require('lodash'), settingsCache = require('../../../../server/services/settings/cache'), common = require('../../../../server/lib/common'), controllers = require('../../../../server/services/routing/controllers'), TaxonomyRouter = ...
dbalders/Ghost
core/test/unit/services/routing/TaxonomyRouter_spec.js
JavaScript
mit
3,184
<?php /*============================================================================== * (C) Copyright 2016,2020 John J Kauflin, All rights reserved. *---------------------------------------------------------------------------- * DESCRIPTION: Functions to validate Admin operations (i.e. check permissions * par...
jkauflin/hoadb
adminValidate.php
PHP
mit
3,993
<h1>Access Denied</h1> <p>You have logged in correctly, but you have tried to access a page without a high enough level of security clearance.</p>
tonymarklove/wool
views/user/admin_denied.php
PHP
mit
147
import React from 'react'; import $ from 'jquery'; import _ from 'lodash'; import Block from './Block'; export default class BlockGrid extends React.Component { constructor() { super(); this.setDefaults(); this.setContainerWidth = this.setContainerWidth.bind(this); this.handleWindowResize = this.handleWind...
Dishant15/TechIntrest
frontend/react/components/BlockGrid.js
JavaScript
mit
4,139
<?php namespace Eni\MainBundle\DataFixtures\ORM; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use Eni\MainBundle\Entity\Question; use Eni\MainBundle\Entity\ReponseProposee; class LoadReponseProposeeData exte...
mneute/qcm-eni
src/Eni/MainBundle/DataFixtures/ORM/LoadReponseProposeeData.php
PHP
mit
3,106
package com.exasol.adapter.dialects.bigquery; import java.sql.Connection; import java.sql.Types; import com.exasol.adapter.AdapterProperties; import com.exasol.adapter.dialects.IdentifierConverter; import com.exasol.adapter.jdbc.BaseColumnMetadataReader; import com.exasol.adapter.jdbc.JdbcTypeDescription; import com....
EXASOL/virtual-schemas
src/main/java/com/exasol/adapter/dialects/bigquery/BigQueryColumnMetadataReader.java
Java
mit
1,364
using System; using Windows.Devices.Enumeration; using Windows.Devices.Spi; using Windows.Foundation.Metadata; namespace ABElectronics_Win10IOT_Libraries { /// <summary> /// Class for accessing the ADCDAC Pi from AB Electronics UK. /// </summary> public class ADCDACPi : IDisposable { p...
abelectronicsuk/ABElectronics_Win10IOT_Libraries
ABElectronics_Win10IOT_Libraries/ADCDACPi.cs
C#
mit
8,804
var system = require('system'); var args = system.args; var url = "http://"+args[1], filename = args[2]+".png", timeout = args[3], savePath = args[4], page = require('webpage').create(); //setTimeout(function(){phantom.exit();}, timeout) page.viewportSize = { width: 1200, height: 700 }; page.clipRect = { top: 0, le...
zhuharev/shot
assets/rasterize.js
JavaScript
mit
936
class SiteController < ApplicationController skip_before_filter :verify_authenticity_token no_login_required cattr_writer :cache_timeout def self.cache_timeout @@cache_timeout ||= 5.minutes end def show_page url = params[:url] if Array === url url = url.join('/') else url = u...
mikehale/halefamilyfarm
vendor/radiant/app/controllers/site_controller.rb
Ruby
mit
1,781
namespace Vulcan.Core.DataAccess.Migrations.MigrationProviders { public enum ExecutionType { Insert, InsertWithIdentity, Update, Delete } }
SachiraChin/Vulcan
Vulcan.Core.DataAccess/Migrations/MigrationProviders/ExecutionType.cs
C#
mit
187
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("Mit...
brakmic/Mithril_Kendo
Properties/AssemblyInfo.cs
C#
mit
1,371
<!-- Jumbotron Header --> <header class="jumbotron hero-spacer" style="padding: 2em; text-align: center;"> <img style="max-width:100%; max-height:100%;" src="<?=base_url()?>assets/img/slogan.png"> <!-- <h1>Read and let read!</h1> <p> Welcome to Discipulus, your humb...
jjsarmiento/itecm
application/views/shop/home.php
PHP
mit
2,046
// // PgpMimeTests.cs // // Author: Jeffrey Stedfast <jestedfa@microsoft.com> // // Copyright (c) 2013-2022 .NET Foundation and 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 Soft...
jstedfast/MimeKit
UnitTests/Cryptography/PgpMimeTests.cs
C#
mit
103,153
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Number7</source> <translation>Σχετικά με το Number7</translation>...
number7team/number7
src/qt/locale/bitcoin_el_GR.ts
TypeScript
mit
138,071
var _ = require("underscore"), Events = require("./Events"), querystring = require("querystring"), httpClient = require("./httpClient"), utils = require("./utils"), logger = require("config-logger"); var environments = { sandbox: { restHost: "api-sandbox.oanda.com", streamHost: ...
naddison36/oanda-adapter
OandaAdapter.js
JavaScript
mit
19,053
require "mscorlib" require "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" require "System.Collections.Generic, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" require "System.Linq, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" require "System.Text, V...
xianrendzw/CodeBuilder.Ruby
CodeBuilder.Framework/Exporter/SQLServer/SqlServer2000Exporter.rb
Ruby
mit
1,015
package com.semmle.jcorn; import com.semmle.js.ast.Position; public class SyntaxError extends RuntimeException { private static final long serialVersionUID = -4883173648492364902L; private final Position position; public SyntaxError(String msg, Position loc, int raisedAt) { super(msg); this.position =...
github/codeql
javascript/extractor/src/com/semmle/jcorn/SyntaxError.java
Java
mit
392
var nums = []; for (var i = 0; i < 100; ++i) { nums[i] = Math.floor(Math.random() * 101); } insertionsort(nums); dispArr(nums); print(); putstr("Enter a value to count: "); var val = parseInt(readline()); var retVal = count(nums, val); print("Found " + retVal + " occurrences of " + val + ".");
jomjose/js-algorithms
queues/queues (15).js
JavaScript
mit
309
/** * This package provides the necessary classes to slice and compose a file. * * @author Sergio Merino */ package assembler;
merinhunter/SecureApp
assembler/package-info.java
Java
mit
131
import imageContainer from '../server/api/helpers/imageContainer'; const entries = [ { html: '<img src="/img/60x30.png" alt="60x30" class="zoom" data-zoom-src="/img/60x30-original.png">', }, { html: `<div> <img src="/img/20x50.jpg"> </div> <img src="/img/40x10.svg" alt="40x10">`, }, { html: '<d...
JohanLi/johanli.com
test/imageContainer.test.js
JavaScript
mit
1,395
package betterwithaddons.crafting.recipes; import betterwithaddons.crafting.ICraftingResult; import betterwithaddons.util.ItemUtil; import net.minecraft.block.state.IBlockState; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.Ingredient; import java.util.ArrayList; import java.util.Iterator; i...
DaedalusGame/BetterWithAddons
src/main/java/betterwithaddons/crafting/recipes/PackingRecipe.java
Java
mit
1,468
<?php namespace Frontend42; return [ 'migration' => [ 'directory' => [ __NAMESPACE__ => __DIR__ . '/../../data/migrations' ], ], ];
raum42/frontend42
config/cli/migration.config.php
PHP
mit
174
{{ Form::label('title', __('validation.attributes.title'), ['class' => 'label']) }} <div class="mb-4"> {{ Form::text('title', old('title', $category->title), ['class' => 'input' . ($errors->has('title') ? ' has-error' : ''), 'required' => true]) }} @if ($errors->has('title')) <div class="invalid-feedb...
Kaishiyoku/Crystal-RSS
resources/views/category/_form.blade.php
PHP
mit
542
using System.ComponentModel; namespace LinqAn.Google.Dimensions { /// <summary> /// DCM creative type name of the DCM click matching the Google Analytics session (premium only). /// </summary> [Description("DCM creative type name of the DCM click matching the Google Analytics session (premium only).")] public cl...
kenshinthebattosai/LinqAn.Google
src/LinqAn.Google/Dimensions/DcmClickCreativeType.cs
C#
mit
575
#include <QDebug> #include <QFileDialog> #include <QListWidgetItem> #include <QMessageBox> #include <QProcess> #include <QWidget> #include "app.h" #include "import.h" #include "ui_import.h" Import::Import(App* app) : app(app), platform(-1) { this->ui.setupUi(this); connect(this->ui.toolFilepath, SIGNAL(clicked(...
remeh/mehstation-config
src/import.cpp
C++
mit
2,334
import {Component} from '@angular/core'; @Component({ selector: "recomendaciones", templateUrl: "app/components/htmls/recomendacionesysugerencias/recomendaciones.html", styleUrls: ["app/components/htmls/htmlStyles.css"] }) export class RecomendacionesComponent {};
everitosan/CursoUnamDemencia
app/components/htmls/recomendacionesysugerencias/recomendaciones.component.ts
TypeScript
mit
273
/** * Copyright (c) André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ package com.github.anba.es6draft.runtime.types.builtins; import java.lang.invoke.MethodHandle; import java.lang.reflect.Method; import com.github.anba.es6...
anba/es6draft
src/main/java/com/github/anba/es6draft/runtime/types/builtins/BuiltinConstructor.java
Java
mit
1,758
<?php /* * This file is part of the Sonata Project package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\AdminBundle\DependencyInjection; use Symfony\C...
amirlionor/admin
vendor/sonata-project/admin-bundle/DependencyInjection/Configuration.php
PHP
mit
25,648
#include <iostream> #include <cstdio> #include <cmath> #include <cstdlib> #include <fstream> #include <iomanip> #include <string> #include <cstring> #include "../include/globals.hpp" #include "../include/classes.hpp" #include "../include/functions.hpp" struct cell{ double xStart; double yStart; double zSt...
homeslike/OpticalTweezer
test/cell_list.cpp
C++
mit
1,878
using System; using System.Collections.Generic; using System.Text; using _03BarracksFactory.Contracts; namespace P03_BarraksWars.Core.Commands { class RetireCommand : Command { public RetireCommand(string[] data, IRepository repository, IUnitFactory unitFactory) : base(data, repository, un...
CvetelinLozanov/SoftUni-C-
C# OOP Advanced/Reflection_And_Attributes-Exercise/P03_BarraksWars/P03_BarraksWars/Core/Commands/RetireCommand.cs
C#
mit
700
/* * Globalize Culture id * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this file...
bevacqua/jscharting
bundle/JSC/cultures/globalize.culture.id.js
JavaScript
mit
1,780
package de.codecentric.awesome.recommendation.core; import java.util.HashMap; import java.util.Map; /** * Created by afitz on 15.03.16. */ public class RecommendationLookup { private static RecommendationLookup ourInstance = new RecommendationLookup(); private String standardProductRecommendation = "P999";...
cc-afitz/awesome-services
recommendation/src/main/java/de/codecentric/awesome/recommendation/core/RecommendationLookup.java
Java
mit
979
# coding: utf-8 """ General utilities. """ from __future__ import division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Standard library import collections import sys import logging import multiprocessing # Third-party import numpy as np __all__ = ['get_pool'] # Create logger logger = logging....
abonaca/gary
gary/util.py
Python
mit
3,607
import EmberObject from '@ember/object'; import { htmlSafe } from '@ember/string'; import RSVP from 'rsvp'; import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render, settled, find, click } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; c...
djvoa12/frontend
tests/integration/components/school-session-types-list-test.js
JavaScript
mit
8,230
using System; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using System.Windows; using System.Windows.Threading; using Dependinator.Common.ModelMetadataFolders; using Dependinator.Common.ModelMetadataFolders.Private; using Dep...
michael-reichenauer/Dependinator
Dependinator/Common/Installation/Private/LatestVersionService.cs
C#
mit
11,771
var mongoose = require('mongoose'); var bcrypt = require('bcrypt-nodejs'); // define the schema for our user model var authUserSchema = mongoose.Schema({ unique_ID : String, username : String, password : String, role : String, first_name : String, last_nam...
ishwant/Auth-Server
app/models/authUser.js
JavaScript
mit
791
<?php namespace fm\KitBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class KitBundle extends Bundle { }
davidpestana/erp.fm
src/fm/KitBundle/KitBundle.php
PHP
mit
116
from notifications_utils.clients.antivirus.antivirus_client import ( AntivirusClient, ) from notifications_utils.clients.redis.redis_client import RedisClient from notifications_utils.clients.zendesk.zendesk_client import ZendeskClient antivirus_client = AntivirusClient() zendesk_client = ZendeskClient() redis_cli...
alphagov/notifications-admin
app/extensions.py
Python
mit
340
/** * Copyright 2012-2018, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var Lib = require('../../lib'); // The contour extraction is great, except it totally fails for constraints bec...
iongroup/plotly.js
src/traces/contourcarpet/convert_to_constraints.js
JavaScript
mit
2,890
module.exports = { defersToPromises : function(defers) { if(Array.isArray(defers)) { return defers.map(function(defer) { return defer && defer.promise ? defer.promise : defer; }); } var res = {}; Object....
stenin-nikita/module-promise
test/utils/helpers.js
JavaScript
mit
518
export default (sequelize, DataTypes) => { const Product = sequelize.define('Product', { name: DataTypes.STRING, description: DataTypes.TEXT, price: DataTypes.FLOAT, releasedate: DataTypes.DATE }, { classMethods: { associate: models => { Product.belongsToMany(models.Cart, {through:...
Kennyomg/gamersonline-uni
api/models/product.js
JavaScript
mit
508
<?php namespace Glucose\Exceptions\User; class PrimaryKeyCollisionException extends \Glucose\Exceptions\Entity\DuplicateEntityException { }
andsens/Glucose
Glucose/Exceptions/User/PrimaryKeyCollisionException.class.php
PHP
mit
141
require "tenant/engine" module Tenant end
cshirley/tenant_engine
lib/tenant.rb
Ruby
mit
43
import { SET_SORT_ORDER } from '../constants/actions'; export default function (state = 'ASCENDING', action) { switch (action.type) { case SET_SORT_ORDER: return action.order; default: return state; } }
ColdForge/icebox
src/reducers/sortOrderReducer.js
JavaScript
mit
212
import mongoose from 'mongoose'; const ModelPortfolioSchema = new mongoose.Schema({ id: String, name: String, displayName: String, email: String, securities: [{ symbol: String, allocation: {type: Number, min: 0, max: 100}, }] }); ModelPortfolioSchema.add({ subGroups: [ModelPortfolioSchema], modelPo...
AlexisDeschamps/portfolio-rebalancer
server/db/mongo/models/modelPortfolio.js
JavaScript
mit
430
<h2>Sprzątanie pobojowisk</h2> <?php f('jednostki_miasto'); $jednostki = jednostki_miasto($gracz); if(!empty($_POST['cel']) && !empty($_POST['u'])){ f('sprzatanie_wyslij'); echo sprzatanie_wyslij($jednostki,$_POST['cel'],$_POST['u'],$gracz); $gracz = gracz($gracz['gracz']); f('jednostki_miasto'); $jedno...
WlasnaGra/Osadnicy
strony/gracz/sprzatanie.php
PHP
mit
2,375
package net.tmachq.Ported_Blocks.tileentities.renderers; import java.io.DataInputStream; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.OpenGlHelper; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.tileentity.TileEnt...
TMAC-Coding/Ported-Blocks
src/net/tmachq/Ported_Blocks/tileentities/renderers/TileEntitySailRenderer.java
Java
mit
2,561
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE enum MENUPARTS { MENUPartFiller0 = 0x0, MP_MENUITEM = 0x1, MP_MENUDROPDOWN = 0x2, MP_MENUBARITEM = 0x3, MP_MEN...
goodwinxp/Yorozuya
library/ATF/MENUPARTS.hpp
C++
mit
415
// Karma configuration // http://karma-runner.github.io/0.12/config/configuration-file.html // Generated on 2015-05-11 using // generator-karma 0.8.3 module.exports = function(config) { 'use strict'; config.set({ // enable / disable watching file and executing tests whenever any file changes autoWatch: tr...
jjp12383/Portfolio
test/karma.conf.js
JavaScript
mit
1,620
var indexSectionsWithContent = { 0: "dfrsw~", 1: "drs", 2: "dfrs~", 3: "rs", 4: "w" }; var indexSectionNames = { 0: "all", 1: "classes", 2: "functions", 3: "variables", 4: "pages" }; var indexSectionLabels = { 0: "All", 1: "Classes", 2: "Functions", 3: "Variables", 4: "Pages" };
sabertazimi/hust-lab
network/webserver/docs/search/searchdata.js
JavaScript
mit
313
class DeviseCreateUsers < ActiveRecord::Migration def change create_table :users do |t| ## Database authenticatable t.boolean :admin t.string :email, null: false, default: "" t.string :encrypted_password, null: false, default: "" ## Recoverable t.string :reset_p...
njazari/sef-founderwall
db/migrate/20161030044448_devise_create_users.rb
Ruby
mit
1,378
class RoomSerializer < ActiveModel::Serializer attribute :id attribute :name, key: :title end
guidance-guarantee-programme/tesco_planner
app/serializers/room_serializer.rb
Ruby
mit
98
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Authentication extends CI_Controller { function index(){ $value = $this->input->cookie('remember_me'); if ($value == 'true') { $arr = array( 'user' => $this->input->cookie('user'), 'real_name' => $this->input->cookie(...
tavhu/msc
application/controllers/Authentication.php
PHP
mit
6,198
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Web Client * Copyright (C) 2006, 2007, 2009, 2010 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a ...
nico01f/z-pec
ZimbraWebClient/src/com/zimbra/webClient/build/PackageJammerTask.java
Java
mit
14,020
var pub = {}, Q, Knex; module.exports = function ($inject) { $inject = $inject || {}; Q = $inject.Q; Knex = $inject.Knex; return pub; }; pub.get = function(tableName) { var q = Q.defer(); pub.getMetadata(tableName) .then(function(relations) { q.resolve(relations[...
heinzelmannchen/mysql2json
lib/relations.js
JavaScript
mit
1,911
using System.Web.Mvc; using FFLTask.SRV.ServiceInterface; using FFLTask.UI.PC.Filter; using FFLTask.SRV.ViewModel.Account; using FFLTask.SRV.ViewModel.Shared; namespace FFLTask.UI.PC.Controllers { public class RegisterController : BaseController { private IRegisterService _registerService; pub...
feilang864/task.zyfei.net
UI/PC/Controllers/RegisterController.cs
C#
mit
1,657
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function(Blueprint $table) { $table->increments('id'); $table->str...
3dlink/age
database/migrations/2014_10_12_000000_create_users_table.php
PHP
mit
774
# frozen_string_literal: true require 'fieldhand/metadata_format' module Fieldhand # A parser for ListMetadataFormats responses. # # See https://www.openarchives.org/OAI/openarchivesprotocol.html#ListMetadataFormats class ListMetadataFormatsParser attr_reader :response_parser # Return a parser for th...
altmetric/fieldhand
lib/fieldhand/list_metadata_formats_parser.rb
Ruby
mit
699
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Botos</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> body{ color: #28fe14; background-color: black; font-family: "Courier New";...
BirkhoffLee/Botos
cmd/extra/main.header.php
PHP
mit
633
// 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 System.Resources { // Intentionally excluding visibility so it defaults to internal except for // ...
mafiya69/corefx
src/Common/src/System/Resources/NeutralResourcesLanguageAttribute.cs
C#
mit
984