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 System.Linq; using EspaceClient.FrontOffice.Business.Depots; using EspaceClient.FrontOffice.Domaine; namespace EspaceClient.FrontOffice.Data.Depots { public partial class DepotTypeRenduBloc : Depot<TypeRenduBloc>, IDepotTypeRenduBloc { public TypeRenduBloc GetByCode(string code, string codeTypeBl...
apo-j/Projects_Working
EC/espace-client-dot-net/EspaceClient.FrontOffice.Data/Depots/DepotTypeRenduBloc.BackOffice.cs
C#
mit
604
'use strict' const { EventEmitter } = require('events') const { Multiaddr } = require('multiaddr') /** * @typedef {import('libp2p-interfaces/src/transport/types').Listener} Listener */ /** * @param {import('../')} libp2p * @returns {Listener} a transport listener */ module.exports = (libp2p) => { const listen...
libp2p/js-libp2p
src/circuit/listener.js
JavaScript
mit
2,218
using System.Collections.Generic; namespace BlobTransfer { public class TransferResult { public List<string> Succeeded { get; set; } = new List<string>(); public List<string> Skipped { get; set; } = new List<string>(); public List<string> Failed { get; set; } = new List<string>(); ...
jhkimnew/iistest
temp/BlobTransfer/src/TransferResult.cs
C#
mit
324
using System.Reflection; 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("Twainsoft.FHDO.Compiler.App")] [assembly:...
fdeitelhoff/Twainsoft.FHDO.Compiler
src/Twainsoft.FHDO.Compiler.App/Properties/AssemblyInfo.cs
C#
mit
1,391
using Owin; using SimpleInjector; using SimpleInjector.Extensions.ExecutionContextScoping; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Reporter.WebAPI.Infrastructure.Owin { public static class OwinContextExecutionScopeMiddleware { public static void U...
darjanbogdan/reporter
src/Reporter.WebAPI/Infrastructure/Owin/OwinContextExecutionScopeMiddleware.cs
C#
mit
725
#------------------------------------------------------------------------------ # Copyright (c) 2013 The University of Manchester, UK. # # BSD Licenced. See LICENCE.rdoc for details. # # Taverna Player was developed in the BioVeL project, funded by the European # Commission 7th Framework Programme (FP7), through grant ...
Samhane/taverna-player-portal
app/controllers/taverna_player/runs_controller.rb
Ruby
mit
1,563
var common = require('../common'); var connection = common.createConnection({port: common.fakeServerPort}); var assert = require('assert'); var server = common.createFakeServer(); var connectErr; server.listen(common.fakeServerPort, function(err) { if (err) throw err; connection.connect(function(err) { ...
cheekujodhpur/ipho2015
node_modules/mysql/test/integration/test-host-denied-error.js
JavaScript
mit
662
/*! * @license MIT * Copyright (c) 2017 Bernhard Grünewaldt - codeclou.io * https://github.com/cloukit/legal */ import { Component, Input } from '@angular/core'; import * as _ from 'lodash'; @Component({ selector: 'app-component-info-header', template: ` <div class="info-header"> <div class="info-header-...
cloukit/cloukit.github.io
src/app/components/component-info-header.component.ts
TypeScript
mit
6,127
using System; using System.Collections.Generic; using System.Linq; using System.Security.AccessControl; using System.Text; using System.Threading.Tasks; namespace DynamicSerializer.Test { public class IX { public int IP { get; set; } } [Serializable] public class A { public A() { ...
conwid/IL-boss
DynamicSerializer.Test/TestClasses.cs
C#
mit
2,153
#ifndef _HC_EXCEPTION_HPP_ #define _HC_EXCEPTION_HPP_ ////////////// // Includes // #include <exception> #include <string> ////////// // Code // // To distinguish between different HCExceptions. enum HCType { // When the game cannot open the SDL window. HC_WINDOW_EXCEPTION, // When the game cannot load ...
crockeo/hc
src/hcexception.hpp
C++
mit
707
<?php namespace Proxies\__CG__\Cabinet\PatientBundle\Entity; /** * THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE. */ class Patient extends \Cabinet\PatientBundle\Entity\Patient implements \Doctrine\ORM\Proxy\Proxy { private $_entityPersister; private $_identifier; public $__isIniti...
houcine88/Cabinet
app/cache/prod/doctrine/orm/Proxies/__CG__CabinetPatientBundleEntityPatient.php
PHP
mit
4,377
export default { // 购物车的商品数量 cartCommodityCount: state => { const totalCount = state.cartList.reduce((total, commodity) => { return total + Number(commodity.count) }, 0) return totalCount }, removeCommodityCount: state => { const totalCount = state.removeCartList.reduce((total, commodity) ...
luoshi0429/vue2-yanxuan
src/store/getters.js
JavaScript
mit
424
require "uri" require "net/http" module JingdongFu module Rest class << self def get(url, hashed_vars) res = request(url, 'GET', hashed_vars) process_result(res, url) end def post(url, hashed_vars) res = request(url, 'POST', hashed_vars) process_res...
nioteam/jingdong_fu
lib/rest.rb
Ruby
mit
2,853
package source import ( log "github.com/Sirupsen/logrus" "github.com/howardplus/lirest/describe" "github.com/howardplus/lirest/util" "os" "strconv" "strings" "time" ) // Extractor returns a generic data based // on the converter. // An object that implements the Extractor interface needs // to know where to ge...
howardplus/lirest
source/extract.go
GO
mit
3,669
using System.Collections.Generic; using System.Linq; using System.Management.Automation; using Cognifide.PowerShell.Core.Extensions; using Sitecore.Data.Items; using Sitecore.Layouts; namespace Cognifide.PowerShell.Commandlets.Presentation { [Cmdlet(VerbsCommon.Get, "Rendering")] [OutputType(typeof (Rendering...
ostat/Console
Cognifide.PowerShell/Commandlets/Presentation/GetRenderingCommand.cs
C#
mit
716
/** * Copyright 2017, 2018, 2019, 2020 Stephen Powis https://github.com/Crim/pardot-java-client * * 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 limi...
Crim/pardot-java-client
src/main/java/com/darksci/pardot/api/parser/user/UserAbilitiesParser.java
Java
mit
1,801
<?php namespace App\Controller; use Core\http; use Core\view; use Core\db; class main { protected $http; protected $view; protected $db; public function __construct() { $this->http = new http(); $this->view = new view(); $this->db = new db(); } }
jersobh/edge-framework
src/controller/main.php
PHP
mit
300
//this controller simply tells the dialogs service to open a mediaPicker window //with a specified callback, this callback will receive an object with a selection on it angular.module('umbraco') .controller("Umbraco.PropertyEditors.ImageCropperController", function ($rootScope, $routeParams, $scope, $log, media...
zidad/Umbraco-CMS
src/Umbraco.Web.UI.Client/src/views/propertyeditors/imagecropper/imagecropper.controller.js
JavaScript
mit
4,659
package data_struct.in_class.d10_02; /** * A class to test basic 'Object' methods * * @author Eddie Gurnee * @version 10/02/13 * @see TestingSam * */ public class Sam { public int mikesplan = 8; /** * No argument constructor for the Sam class * */ public Sam() { } /** * Indicates if some other...
pegurnee/2013-03-211
complete/src/data_struct/in_class/d10_02/Sam.java
Java
mit
817
__author__ = 'brianoneill' from log_calls import log_calls global_settings = dict( log_call_numbers=True, log_exit=False, log_retval=True, ) log_calls.set_defaults(global_settings, args_sep=' $ ')
Twangist/log_calls
tests/set_reset_defaults/global_defaults.py
Python
mit
211
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PineTree.Language.Syntax { public abstract class ExpressionTerminal : Expression { } }
seaboy1234/PineTreeLanguage
PineTree.Language/Syntax/ExpressionTerminal.cs
C#
mit
228
#include "Common.h" #include "Script.h" #include <atlimage.h> #include <hidsdi.h> #include <SetupAPI.h> #define HID_SFIP 'SFIP' #define HID_X52P 'X52P' #define HID_UNKN 'UNKN' // CHECKME : Do we still need all this code since we now have a GetSerialNumber() in the DO API? DeviceManager *DevMan = DeviceManager::G...
chrilith/Passerelle
Lua Module/Device.cpp
C++
mit
6,949
game.TitleScreen = me.ScreenObject.extend({ init: function(){ this.font = null; }, onResetEvent: function() { me.audio.stop("theme"); game.data.newHiScore = false; me.game.world.addChild(new BackgroundLayer('bg', 1)); me.input.bindKey(me.input.KEY.ENTER, "enter", true); me.input.bind...
jeshuamaxey/flappy-tom
js/screens/title.js
JavaScript
mit
2,176
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>First Steps Into PHP</title> </head> <body> <form> X: <input type="text" name="num1" /> Y: <input type="text" name="num2" /> Z: <input type="text" name="num3" /> <input type="submit" /> </form> <?php if (!...
leonnybg/SoftUni-SoftwareTechnologies-july2017
L8-PHP-Syntax- Basic-Web-Ex/04. Product of 3 Numbers.php
PHP
mit
895
<?php /* SRVDVServerBundle:ChangePassword:changePassword.html.twig */ class __TwigTemplate_e5da0f0553fed635f2774271a2ef3982b389e99e651b1a8527dd0c0b6ca90bd7 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $t...
youcefboukersi/serveurdevoeux
app/cache/dev/twig/1b/1bf602c2860b97f0808215b5052e0f5850091179d1670e489003312b329f5b04.php
PHP
mit
3,227
<?php declare(strict_types=1); /* * This file is part of eelly package. * * (c) eelly.com * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Eelly\SDK\Order\Api; use Eelly\SDK\Order\Service\OfflineInterface; /** * @aut...
junming4/eelly-sdk-php
src/SDK/Order/Api/Offline.php
PHP
mit
641
import_module('Athena.Math'); m1 = new Athena.Math.Matrix3(1, 2, 3, 4, 5, 6, 7, 8, 9); for (var row = 0; row < 3; ++row) { for (var col = 0; col < 3; ++col) CHECK_CLOSE(row * 3 + col + 1, m1.get(row, col)); }
Kanma/Athena-Math
unittests/scripting/js/Matrix3/CreationWithValues.js
JavaScript
mit
282
version https://git-lfs.github.com/spec/v1 oid sha256:27606576bf3cd46c15755bdec387cc97145a4a0c0a5b3933c11d30ab8c6c5ec7 size 1825
yogeshsaroya/new-cdnjs
ajax/libs/timelinejs/2.35.6/js/locale/el.js
JavaScript
mit
129
<?php /** * The default template for displaying content * * Used for both single and index/archive/search. * * @package FoundationPress * @since FoundationPress 1.0.0 */ ?> <div id="post-<?php the_ID(); ?>" <?php post_class('blogpost-entry'); ?>> <header> <h2><a href="<?php the_permalink(); ?>"><?php the_ti...
fredlincoln/sprcorp
template-parts/content.php
PHP
mit
624
class EnsureNoLimitOnUserDataField < ActiveRecord::Migration def up change_column :users, :user_data, :text, :limit => nil end def down end end
dtulibrary/toshokan
db/migrate/20130827081527_ensure_no_limit_on_user_data_field.rb
Ruby
mit
157
<?php /* * Gallery - a web based photo album viewer and editor * Copyright (C) 2000-2004 Bharat Mediratta * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License...
TelemarkAlpint/telemark-2004
bilder/gallery/classes/postnuke0.7.1/User.php
PHP
mit
2,614
module MuhrTable VERSION = "1.0.22" end
dsandber/muhr_table
lib/muhr_table/version.rb
Ruby
mit
42
import Objective from '../objective'; export default class KillShipsObjective extends Objective { constructor (game, ships) { super(game); if (!Array.isArray(ships)) { ships = [ships]; } this.bots = _.filter(ships, ship => { return ship.alive; }); ...
gaudeon/interstice
src/stage/objectives/kill_ships.js
JavaScript
mit
622
module Storegine class Category include Mongoid::Document field :title, type: String has_many :products end end
liligga/storegine
app/models/storegine/category.rb
Ruby
mit
133
export * from './privacy.component';
asadsahi/AspNetCoreSpa
src/Presentation/Web/ClientApp/src/app/components/privacy/index.ts
TypeScript
mit
37
// Calendar SK language // Author: Peter Valach (pvalach@gmx.net) // Encoding: utf-8 // Last update: 2003/10/29 // full day names Calendar._DN = new Array ("NedeÄľa", "Pondelok", "Utorok", "Streda", "Ĺ tvrtok", "Piatok", "Sobota", "NedeÄľa"); // short day names Calendar._SDN = new Array ("Ned", "Pon", "Uto",...
JoAutomation/todo-for-you
lib/js/jscalendar/lang/calendar-sk-utf8.js
JavaScript
mit
2,589
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("03...
viktor4o4o/Homework
Exam Preparation III - Taking a Sample Exam/03. Rage Quit/Properties/AssemblyInfo.cs
C#
mit
1,402
module Jdt class GeneratorCLI < Thor desc "library NAME", "generate library with NAME" def library(name) LibraryGenerator.new.generate(name) end end end
Fekide/joomlatools
lib/jdt/cli/new/library.rb
Ruby
mit
179
/* * Hibernate, Relational Persistence for Idiomatic Java * * Copyright (c) 2011, Red Hat Inc. or third-party contributors as * indicated by the @author tags or express copyright attribution * statements applied by the authors. All third-party contributions are * distributed under license by Red Hat Inc. * * T...
HerrB92/obp
OpenBeaconPackage/libraries/hibernate-release-4.2.7.SP1/project/hibernate-core/src/test/java/org/hibernate/test/annotations/cascade/NonNullableCircularDependencyCascadeTest.java
Java
mit
2,167
System.config({ baseURL: ".", defaultJSExtensions: true, transpiler: "babel", babelOptions: { "optional": [ "runtime", "optimisation.modules.system" ] }, paths: { "github:*": "jspm_packages/github/*", "npm:*": "jspm_packages/npm/*" }, bundles: { "build.js": [ "lib/m...
p4535992/Leaflet.FileLayer-1
config.js
JavaScript
mit
16,544
// languages index var localeIndex = { "en" : 0, "ja" : 1, "es" : 2, "hu" : 3, "lt" : 4, "ru" : 5, "it" : 6, "pt" : 7, "sp_ch" : 8, "fr" : 9, "ge" : 10, "ua" : 11, "lv" : 12, "no" : 13, "pt_br" : 14 };
miya2000/Twippera-OAuth
js/lng.js
JavaScript
mit
251
<?php /** * This file is part of gh-dashboard. * * (c) Daniel Londero <daniel.londero@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ function includeIfExists($file) { return file_exists($file) ? include $file : fa...
dlondero/gh-dashboard
src/bootstrap.php
PHP
mit
597
import React, { PropTypes, Component } from 'react'; import { Breadcrumb, Table, Button, Col } from 'react-bootstrap'; import cx from 'classnames'; import _ from 'lodash'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './ProductList.css'; import Link from '../Link'; class ProductList ...
lisong/code-push-web
src/components/ProductList/ProductList.js
JavaScript
mit
3,199
define(['exports'], function (exports) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var globalExtraOptions = exports.globalExtraOptions = { mappingDataStructure: { class: 'class', content: 'content', disabled: 'disabled', divider: 'divider', ...
ghiscoding/Aurelia-Bootstrap-Plugins
aurelia-bootstrap-select/dist/amd/picker-global-options.js
JavaScript
mit
686
""" Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not unary) +, -, or * between the digits so they evaluate to the target value. Examples: "123", 6 -> ["1+2+3", "1*2*3"] "232", 8 -> ["2*3+2", "2+3*2"] "105", 5 -> ["1*0+5","10-5"] "00", 0 -> ["0+0", "...
algorhythms/LeetCode
282 Expression Add Operators.py
Python
mit
1,769
package softuni.io; import org.springframework.stereotype.Component; import java.io.*; @Component public class FileParser { public String readFile(String path) throws IOException { StringBuilder stringBuilder = new StringBuilder(); try (InputStream is = this.getClass().getResourceAsStream(path);...
yangra/SoftUni
Java-DB-Fundamentals/DatabasesFrameworks-Hibernate&SpringData/EXAMS/exam/src/main/java/softuni/io/FileParser.java
Java
mit
1,123
using System; namespace EasyNetQ { public class EasyNetQException : Exception { public EasyNetQException() {} public EasyNetQException(string message) : base(message) {} public EasyNetQException(string format, params string[] args) : base(string.Format(format, args)) {} public ...
ar7z1/EasyNetQ
Source/EasyNetQ/EasyNetQException.cs
C#
mit
815
# frozen_string_literal: true module ReviewBot class Notification def initialize(pull_request:, suggested_reviewers:) @pull_request = pull_request @suggested_reviewers = suggested_reviewers end attr_reader :pull_request, :suggested_reviewers def message [ %(• ##{pull_reques...
danielma/reviewbot
lib/review_bot/notification.rb
Ruby
mit
636
function closeObject(id) { document.getElementById(id).style.display = 'none'; } function openObject(id) { document.getElementById(id).style.display = 'block'; } function openClose(id){ if (document.getElementById(id).style.display == 'block'){ console.log('intenta cerrar'); closeOb...
jogianotti/RegistroEventosIntendencia
src/RegistroEventos/CoreBundle/Resources/public/js/eventos.js
JavaScript
mit
5,274
import {Component, OnInit, ElementRef,} from '@angular/core'; import {FileSelect} from './file.select'; import {NgIf} from '@angular/common'; import {NgForm} from '@angular/common'; import {CostImport, CostImportService} from '../../../services/cost-import-service'; import {FourcastService} from '../../../services/f...
chriscurnow/angular2-webpack-starter
src/app/components/costImports/simple.cost.import.setup.ts
TypeScript
mit
3,556
#include <iostream> #include <string> #include<iomanip> using namespace std; int main() { string a; double h,m,x; while(cin>>a) { if(a=="0:00")break; if(a[1]==':') { h=a[0]-'0'; m=(a[2]-'0')*10+(a[3]-'0'); ...
w181496/OJ
Zerojudge/d095.cpp
C++
mit
718
<?php namespace HealthCareAbroad\LogBundle\Repository; use Doctrine\ORM\EntityRepository; /** * ErrorLogRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class ErrorLogRepository extends EntityRepository { }
richtermarkbaay/MEDTrip
src/HealthCareAbroad/LogBundle/Repository/ErrorLogRepository.php
PHP
mit
277
<?php /* * This file is part of the MopaBootstrapBundle. * * (c) Philipp A. Mohrenweiser <phiamo@googlemail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Mopa\Bundle\BootstrapBundle\Menu\Factory; use Knp\Menu\Fa...
naitsirch/mopa-bootstrap-bundle
Menu/Factory/MenuExtension.php
PHP
mit
3,307
<?php require_once "class_db.php"; class qly_pages extends db{ public function LayTieuDeKD($idPa){ $sql="SELECT TieuDeKD FROM mk_pages WHERE idPa = '$idPa'"; $kq = mysql_query($sql,$this->conn); $row_trang = mysql_fetch_assoc($kq); return $row_trang['TieuDeKD']; } public function LayTieuDe($idPa){...
pkapollo/phongkhamapollo.com
san-phu-khoa/m/lib/class_pages.php
PHP
mit
4,795
/* eslint-env node*/ var gutil = require('gulp-util') var paths = { layouts: { componentsDir: './app/components/**/*.jade', src: './app/views/**/*.jade', dest: './app/public/assets/html/' }, styles: { componentsDir: './app/lib/stylesheets/**/*.styl', src: './app/lib/stylesheets...
datyayu/cemetery
[JS-ES6][React] Raji - first version/gulp/config.js
JavaScript
mit
716
from django.contrib import admin from .models import Question # Register your models here. admin.site.register(Question)
BeardedPlatypus/capita-selecta-ctf
ctf/players/admin.py
Python
mit
126
/** * * app.js * * This is the entry file for the application * */ import FilmLocationSearchComponent from '../MovieSearchApp/Containers/FilmSearchContainer/FilmSearchComponent'; import AppComponent from '../CommonComponent/app.js'; import React from 'react'; import { Router, Route, IndexRoute, browserHistory } fr...
anil26/MovieSearchGoogleMaps
js/Routes/AppRouter.js
JavaScript
mit
597
/* Accordion directive */ app.directive('vmfAccordionContainer', ['$compile', function($compile) { return { restrict: 'EA', scope: { type: '@', headers: '=', accData: '=', selAcc: '=', customClass:'=' }, link: function(scop...
anandharshan/Web-components-DD
dev/modules/Accordion/accordionDirectives.js
JavaScript
mit
8,055
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package de.comci.bigbib; import com.mongodb.BasicDBObject; import com.mongodb.DBObject; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import javax.xml.bind.annotation.XmlAccessType; import ...
maiers/bigbib
src/main/java/de/comci/bigbib/PeristentBibTexEntry.java
Java
mit
4,524
module Admin::BaseHelper include ActionView::Helpers::DateHelper def subtabs_for(current_module) output = [] AccessControl.project_module(current_user.profile.label, current_module).submenus.each_with_index do |m,i| current = (m.url[:controller] == params[:controller] && m.url[:action] == params[:ac...
jasondew/cola.rb
app/helpers/admin/base_helper.rb
Ruby
mit
8,319
<?php namespace Editionista\WebsiteBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configura...
fabstei/editionista
src/Editionista/WebsiteBundle/Controller/TagController.php
PHP
mit
2,557
using System; using System.Reflection; namespace Light.DataCore { abstract class DynamicFieldMapping : FieldMapping { public static DynamicFieldMapping CreateDynmaicFieldMapping (PropertyInfo property, DynamicCustomMapping mapping) { DynamicFieldMapping fieldMapping; Type type = property.PropertyType; ...
aquilahkj/Light.DataCore
Light.DataCore/Mappings/DynamicFieldMapping.cs
C#
mit
1,881
class Solution { public: int findRadius(vector<int>& houses, vector<int>& heaters) { sort(houses.begin(), houses.end()); sort(heaters.begin(), heaters.end()); auto radius = 0; auto idx = 0; for (auto house : houses) { auto current = abs(house - heaters[idx]); if (current <= radius) continue; for (...
wait4pumpkin/leetcode
475.cc
C++
mit
561
from django.conf.urls import patterns, include, url import views urlpatterns = patterns('', url(r'^logout', views.logout, name='logout'), url(r'^newUser', views.newUser, name='newUser'), url(r'^appHandler', views.appHandler, name='appHandler'), url(r'^passToLogin', views.loginByPassword, name='passToL...
odeke-em/restAssured
auth/urls.py
Python
mit
477
module Dragoman module Mapper def localize locales = I18n.available_locales unscoped_locales = [I18n.default_locale] scoped_locales = locales - unscoped_locales scope ':locale', shallow_path: ':locale', defaults: {dragoman_options: {locales: scoped_locales}} do yield end ...
pietervisser/dragoman
lib/dragoman/mapper.rb
Ruby
mit
442
<?php if(!defined('BASEPATH')) die; class MY_Controller extends CI_Controller { public $session; public $user; function __construct(){ parent::__construct(); $this->output->set_header('X-Powered-By: ' . config_item('system_vendor')); $this->output->set_header('X-D...
iqbalfn/admin
application/core/MY_Controller.php
PHP
mit
5,404
/* ================================================================ * startserver by xdf(xudafeng[at]126.com) * * first created at : Mon Jun 02 2014 20:15:51 GMT+0800 (CST) * * ================================================================ * Copyright 2013 xdf * * Licensed under the MIT License * You may not...
xudafeng/startserver
lib/middleware/logger/index.js
JavaScript
mit
675
using UnityEngine; using System.Collections; public class GravitySwitch : MonoBehaviour { public float GravityStrength; float momentum; float click; public bool GameState; bool GravityState; public GameObject Explosion; public GameObject[] Jets; public GameObject[] CharacterPieces; public Vector3 hitpositi...
parodyband/Polarity
Assets/Code/GravitySwitch.cs
C#
mit
1,927
// Write a boolean expression that returns if the bit at position p (counting from 0) // in a given integer number v has value of 1. Example: v=5; p=1 -> false. using System; class BitInIntegerCheck { static void Main() { // декларираме променливи за числото (v) и позицията (p), за която ще проверяв...
Steffkn/TelerikAcademy
Programming/01. CSharp Part 1/03.OperatorsAndExpressions/10.BinInIntegerCheck/BitInIntegerCheck.cs
C#
mit
1,546
/* * Copyright 2017 Max Schafer, Ammar Mahdi, Riley Dixon, Steven Weikai Lu, Jiaxiong Yang * * 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 t...
CMPUT301F17T06/Lit
app/src/main/java/com/example/lit/habit/Habit.java
Java
mit
8,243
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M2 21.5c0 .28.22.5.49.5h13.02c.27 0 .49-.22.49-.5V20H2v1.5zM15.5 16H11v-2H7v2H2.5c-.28 0-.5.22-.5.5V18h14v-1.5c0-.28-.22-.5-.5-.5zm4.97-.55c.99-1.07 1.53-2.48 1.53-3.94V2h-6v9.47c0 1.48.58 2.92 1...
callemall/material-ui
packages/material-ui-icons/src/BrunchDiningOutlined.js
JavaScript
mit
477
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::DataMigration::Mgmt::V2018_07_15_preview module Models # # Results for query analysis comparison between the source and target #...
Azure/azure-sdk-for-ruby
management/azure_mgmt_data_migration/lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/query_analysis_validation_result.rb
Ruby
mit
1,785
import {MdSnackBar} from '@angular/material'; export abstract class CommonCrudService { constructor(private snackBar: MdSnackBar) { } // todo refactor crud operations to here (use metadata?) onOperationPerformedNotify(opName: string): (res: boolean) => void { return (res) => { let text; if (...
Ivanbmstu/angular
src/app/modules/shared/editor/common-crud.service.ts
TypeScript
mit
514
package org.vitrivr.cineast.core.util.audio.pitch.tracking; import java.util.LinkedList; import java.util.List; import org.apache.commons.math3.stat.descriptive.SummaryStatistics; import org.vitrivr.cineast.core.util.audio.pitch.Pitch; /** * This is a helper class for pitch tracking. It represents a pitch contour, t...
vitrivr/cineast
cineast-core/src/main/java/org/vitrivr/cineast/core/util/audio/pitch/tracking/PitchContour.java
Java
mit
5,638
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Markup; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify t...
bilsaboob/RapidPliant
src/app/RapidPliant.App.EarleyDebugger/Properties/AssemblyInfo.cs
C#
mit
2,546
package com.company; import java.util.Scanner; public class EvenPowersOf2 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = Integer.parseInt(scanner.nextLine()); int num = 1; for (int i = 0; i <= n ; i+=2) { System.out.printl...
ivelin1936/Studing-SoftUni-
Programing Basic/Programming Basics - Exercises/Advanced Loops/src/com/company/EvenPowersOf2.java
Java
mit
368
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting model 'Participant' db.delete_table(u'pa_participant') # Removing M2M table for field us...
Mathew/psychoanalysis
psychoanalysis/apps/pa/migrations/0002_auto__del_participant.py
Python
mit
7,476
# Jrails-ui module ActionView module Helpers module JavaScriptHelper def hash_to_jquery(hash) '{'+hash.map { |k,v| [k, case v.class.name when 'String' "'#{v}'" when 'Hash' hash_to_jquery(v) else v.t...
jadencarver/jquery_ui
lib/jrails_ui.rb
Ruby
mit
1,890
/* * Copyright (c) 2020 by Stefan Schubert under the MIT License (MIT). * See project LICENSE file for the detailed terms and conditions. */ package de.bluewhale.sabi.webclient.rest.exceptions; import de.bluewhale.sabi.exception.ExceptionCode; import de.bluewhale.sabi.exception.MessageCode; import de.bluewhale.sa...
StefanSchubert/sabi
sabi-webclient/src/main/java/de/bluewhale/sabi/webclient/rest/exceptions/TankMessageCodes.java
Java
mit
1,112
package okeanos.data.services.entities; import javax.measure.quantity.Power; import org.jscience.physics.amount.Amount; public interface Price { double getCostAtConsumption(Amount<Power> consumption); }
wolfgang-lausenhammer/Okeanos
okeanos.data/src/main/java/okeanos/data/services/entities/Price.java
Java
mit
207
<?php namespace Shop\MainBundle\Data; use Doctrine\Common\Persistence\ObjectRepository; use Shop\MainBundle\Entity\Settings; /** * Class ShopSettingsResource * @package Shop\MainBundle\Data */ class ShopSettingsResource { /** * @var ObjectRepository */ protected $settingsRepository; /** ...
ja1cap/shop
src/Shop/MainBundle/Data/ShopSettingsResource.php
PHP
mit
1,014
var builder = require("botbuilder"); var botbuilder_azure = require("botbuilder-azure"); const notUtils = require('./notifications-utils.js'); module.exports = [ function (session) { session.beginDialog('notifications-common-symbol'); }, function (session, results) { var pair = results.res...
jantielens/CryptoBuddy
messages/dialogs/notifications-add-interval.js
JavaScript
mit
1,193
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace Terra.WebUI.Models.AccountViewModels { public class LoginViewModel { [Required] [EmailAddress] public string Email { get; set; } ...
Arukim/terra
Terra.WebUI/Models/AccountViewModels/LoginViewModel.cs
C#
mit
512
version https://git-lfs.github.com/spec/v1 oid sha256:a396601eca15b0c281513d01941cfd37300b927b32a1bb9bb6e708a9910f1b49 size 2712
yogeshsaroya/new-cdnjs
ajax/libs/ckeditor/4.2/plugins/a11yhelp/dialogs/lang/sr-latn.min.js
JavaScript
mit
129
package com.ruenzuo.weatherapp.adapters; import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; import com.ruenzuo.weatherapp.R; import com.ruenzuo.wea...
Ruenzuo/android-facade-example
WeatherApp/src/main/java/com/ruenzuo/weatherapp/adapters/CitiesAdapter.java
Java
mit
1,106
module SelecaoAdmin class Engine < ::Rails::Engine isolate_namespace SelecaoAdmin end end
swayzepatryck/selecao_admin
lib/selecao_admin/engine.rb
Ruby
mit
98
<?php include __DIR__.'/../lib/SALT.php'; /** An example of using the SALT Secure Storage API to store then use a stored Credit Card */ use \SALT\Merchant; use \SALT\HttpsCreditCardService; use \SALT\CreditCard; use \SALT\PaymentProfile; // connection parameters to the gateway $url = 'https://test.salt.com/gateway/c...
SaltTechnology/salt-payment-client-php
examples/CreditCardStorage.php
PHP
mit
2,376
package tehnut.resourceful.crops.compat; import mcp.mobius.waila.api.*; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; import net.minecraft.util.math...
TehNut/ResourcefulCrops
src/main/java/tehnut/resourceful/crops/compat/CompatibilityWaila.java
Java
mit
2,650
import _ from 'lodash'; /** * Represents a channel with which commands can be invoked. * * Channels are one-per-origin (protocol/domain/port). */ class Channel { constructor(config, $rootScope, $timeout, contentWindow) { this.config = config; this.$rootScope = $rootScope; this.$timeout...
beyond-sharepoint/sp-angular-webpack
src/ng-sharepoint/Channel.js
JavaScript
mit
4,352
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); include __DIR__.'/../../../application/config/config.php'; /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to y...
Minds-On-Design-Lab/giving-impact
gi-api/application/config/config.php
PHP
mit
13,001
export function getName(value) { if (value == 0) { return "上班"; } if (value == 1) { return "下班"; } throw "invalid route direction"; } export function getValue(name) { if (name == "上班") { return 0; } if (name == "下班") { return 1; } throw "invalid r...
plantain-00/demo-set
js-demo/restful-api-demo/services/routeDirection.ts
TypeScript
mit
354
import { LOAD_SEARCH_RESULT_SUCCESS, CLEAR_SEARCH_RESULTS, } from 'actions/search'; import { createActionHandlers } from 'utils/reducer/actions-handlers'; const actionHandlers = {}; export function loadSearchResultSuccess(state, searchResultsList) { return searchResultsList.reduce((acc, result) => { return ...
InseeFr/Pogues
src/reducers/search-result-by-id.js
JavaScript
mit
619
import { autoinject } from 'aurelia-framework'; import { Customers } from './customers'; import { Router } from 'aurelia-router'; @autoinject() export class List { heading = 'Customer management'; customerList = []; customers: Customers; router: Router; constructor(customers: Customers, router: Router) { ...
doktordirk/aurelia-authentication-loopback-sample
client-ts/src/modules/customer/list.ts
TypeScript
mit
657
/** * Created by huangxinghui on 2016/1/20. */ var $ = require('jquery') var Widget = require('../../widget') var plugin = require('../../plugin') var TreeNode = require('./treenode') var Tree = Widget.extend({ options: { 'labelField': null, 'labelFunction': null, 'childrenField': 'children', 'aut...
huang-x-h/Bean.js
src/components/tree/index.js
JavaScript
mit
6,725
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Advent of Code 2015 from http://adventofcode.com/2015/day/5 Author: James Walker Copyrighted 2017 under the MIT license: http://www.opensource.org/licenses/mit-license.php Execution: python advent_of_code_2015_day_05.py --- Day 5: Doesn't He Have Intern-Elves For ...
JDSWalker/AdventOfCode
2015/Day05/advent_of_code_2015_day_05.py
Python
mit
6,750
function solve(args) { function biSearch(array, searchedNumber, start, end) { for (var i = start; i <= end; i += 1) { if (+array[i] === searchedNumber) { return i; } } return -1; } var data = args[0].split('\n'), numberN = +data.shift()...
jorosoft/Telerik-Academy
Homeworks/JS Fundamentals/07. Arrays/07. Binary search/binary-search.js
JavaScript
mit
1,110
#!/usr/bin/env node var pluginlist = [ ]; var exec = require('child_process').exec; function puts(error, stdout, stderr) { console.log(stdout); } pluginlist.forEach(function(plug) { exec("cordova plugin add " + plug, puts); });
ozsay/ionic-brackets
templates/plugins_hook.js
JavaScript
mit
240
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
github/codeql
java/ql/test/stubs/apache-commons-lang3-3.7/org/apache/commons/lang3/text/StrLookup.java
Java
mit
1,213
#!/bin/env/python # coding: utf-8 import logging import os import time import uuid from logging import Formatter from logging.handlers import RotatingFileHandler from multiprocessing import Queue from time import strftime import dill from .commands import * from .processing import MultiprocessingLogger class TaskP...
peepall/FancyLogger
FancyLogger/__init__.py
Python
mit
27,844
package com.rebuy.consul; import com.ecwid.consul.v1.ConsulClient; import com.ecwid.consul.v1.QueryParams; import com.ecwid.consul.v1.Response; import com.ecwid.consul.v1.agent.model.NewService; import com.ecwid.consul.v1.catalog.model.CatalogService; import com.rebuy.consul.exceptions.NoServiceFoundException; import ...
rebuy-de/consul-java-client
src/test/java/com/rebuy/consul/ConsulServiceTest.java
Java
mit
5,239