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 |
|---|---|---|---|---|---|
define(['react', 'lodash', './searchView.rt'], function
(React, _, template) {
'use strict';
var exactMatchFieldNames = ['type', 'topic'];
var partialMatchFieldNames = ['title'];
return React.createClass({
displayName: 'searchView',
propTypes: {
configData: React.PropTy... | rommguy/merkaz-hadraha | src/main/webapp/client/views/searchView.js | JavaScript | mit | 2,152 |
import logging
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO)
__all__ = ["book", "book_builder", "elements", "util"]
| m-wichmann/LimeTusk | limetusk/__init__.py | Python | mit | 148 |
package redis
import (
"encoding/json"
"net"
"github.com/boz/ephemerald/lifecycle"
"github.com/boz/ephemerald/params"
rredis "github.com/garyburd/redigo/redis"
)
func init() {
lifecycle.MakeActionPlugin("redis.exec", actionRedisExecParse)
lifecycle.MakeActionPlugin("redis.ping", actionRedisExecParse)
}
type ... | boz/ephemerald | builtin/redis/exec.go | GO | mit | 1,370 |
import requests
from pprint import pprint
r = requests.get("http://pokeapi.co/api/v2/pokedex/1")
#pprint(r.json()["pokemon_entries"])
regpath = "regular/"
shinypath = "shiny/"
import os
for pkmn in r.json()["pokemon_entries"]:
id = str(pkmn["entry_number"])
name = pkmn["pokemon_species"]["name"]
for file in os.lis... | MarkSpencerTan/pokemaster_bot | img/pokemon/image_rename.py | Python | mit | 559 |
require_relative "boot"
require "rails/all"
Bundler.require(*Rails.groups)
require "pay"
require "pp"
module Dummy
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
... | jasoncharnes/pay | test/dummy/config/application.rb | Ruby | mit | 521 |
export * from './InvalidValueInput'
| sanity-io/sanity | packages/@sanity/form-builder/src/inputs/InvalidValueInput/index.ts | TypeScript | mit | 36 |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... | salemdar/ngx-cookie | projects/test-app/karma.conf.js | JavaScript | mit | 1,032 |
package net.kahowell.xsd.fuzzer.generator;
import java.lang.annotation.Annotation;
import java.text.MessageFormat;
import javax.xml.namespace.QName;
import net.kahowell.xsd.fuzzer.XsdTypeValueGenerator;
import net.kahowell.xsd.fuzzer.config.DefaultGeneratorsModule;
/**
* Provides functions for selecting an {@link ... | kahowell/java-xmlfuzzer | src/main/java/net/kahowell/xsd/fuzzer/generator/XsdType.java | Java | mit | 2,469 |
import Ember from 'ember';
export default Ember.Route.extend({
model(params) {
let zipcode = params.zipcode || '97212';
let zipcode2 = params.zipcode2 || '98074';
return Ember.RSVP.hash({
first_location: $.getJSON(`https://api.wunderground.com/api/13fcb02d16148708/conditions/forecast/q/${zipcode}.j... | gpxl/simple-weather-ember | app/routes/index.js | JavaScript | mit | 1,151 |
import { RpcRequest } from '../RpcRequest'
import { RpcResponse } from '../RpcResponse'
/**
* JSON-RPC request for the `help` command.
*/
export interface HelpRequest extends RpcRequest {
readonly method: 'help'
readonly params?: [string]
}
/**
* JSON-RPC response for the `help` command.
*/
export interface H... | Tilkal/multichain-api | src/Commands/Help.ts | TypeScript | mit | 616 |
<?php
require_once dirname(__FILE__).'/../../../autoload.php';
function __test_callback()
{
echo "The error was caught\n\n\n";
}
$catcher = new UniversalErrorCatcher_Catcher();
$catcher->registerCallback('__test_callback');
$catcher->start();
try {
include $_SERVER['argv'][1];
} catch (SuppressedErrorExcept... | formapro/UniversalErrorCatcher | tests/UniversalErrorCatcher/Tests/Functional/Runner.php | PHP | mit | 448 |
namespace DvachBrowser3.TextRender
{
/// <summary>
/// Элемент программы с атрибутом.
/// </summary>
public interface IAttributeRenderProgramElement : IRenderProgramElement
{
/// <summary>
/// Атрибут.
/// </summary>
ITextRenderAttribute Attribute { get; }
}
} | Opiumtm/DvachBrowser3 | DvachBrowser3.TextRender/RenderProgram/IAttributeRenderProgramElement.cs | C# | mit | 353 |
#include <string>
#include <iostream>
#include "Flight.h"
#include "Plane.h"
using namespace std;
int main()
{
Flight test(3233, 43, "JFK", "FLF", "Boeing 747", 614, "NA");
cout << test.getFlightInfo() << endl;
} | johnnynybble/CIS17A-SI-CODE | Session-11-6-17/main.cpp | C++ | mit | 218 |
/**
* Copyright 2000-2010 Geometria Contributors
* http://geocentral.net/geometria
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License
* http://www.gnu.org/licenses
*/
package net.geocentral.geometria.model.answer.condition;
import jav... | stelian56/geometria | archive/3.0/src/net/geocentral/geometria/model/answer/condition/GCondition.java | Java | mit | 855 |
(function () {
'use strict';
angular
.module('starter-app')
.run(['$window', function ($window) {
$window.proj4 = require('proj4');
}]);
})(); | OrdnanceSurvey/web-elements-starter | src/app/app.constants.js | JavaScript | mit | 187 |
<?php
$lang['dashboardHeading'] = 'Dashboard';
$lang['bestSafetyHeading'] = 'Best Safety';
$lang['auditsHeading'] = 'Audits';
$lang['auditsfail'] = 'Failed';
$lang['auditspassed'] = 'Passed';
$lang['auditsissues'] = 'Issues';
$lang['auditsasset'] = 'Asset';
$lang['auditsdriver'] = 'DRIVER';
$lang['auditsshipper'] = 'S... | sureshClerisy/trackingnew | application/language/english/dashboard_lang.php | PHP | mit | 3,725 |
"use strict";
define([
'lodash',
'jquery',
'jquery-ui/ui/autocomplete',
'deckslots/cardstore'
], function(_, $, autocomplete, CardStore) {
var CardSelector = function (conf) {
this.domNode = conf.domNode;
this.onSelectCallback = conf.onSelect;
this.cardSource = [];
... | hodavidhara/deckslots | static/js/deckslots/cardselector.js | JavaScript | mit | 1,188 |
for(_="taz'+qadd@=a.Z0,Wre!SCALE6void(~trans%[1]+'$=\"qc`.map(_',^0 K!turnJ){JIentRdelzQ/)&&(QPelmSvgO),100W5K75,^'fill: # 1075function+)/g,(,K5W0zngramZpagepolygon[0]ate(a){mousevar 25 25,25Zzrget touchpointsc!SVG( W 5W5000c.match(/'],['.!place(/szrtetAttribute('active%l aI'<svg ... | ripter/js1k | 2017/dragdrop/914_code_babili_rp.js | JavaScript | mit | 986 |
#!/usr/bin/env ruby
require 'optparse'
require 'bio-logger'
require 'systemu'
SCRIPT_NAME = File.basename(__FILE__); LOG_NAME = SCRIPT_NAME.gsub('.rb','')
# Parse command line options into the options hash
options = {
:logger => 'stderr',
:log_level => 'info',
}
o = OptionParser.new do |opts|
opts.banner = "
... | timbalam/finishm | bin/contigs_against_assembly.rb | Ruby | mit | 5,675 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
public class HighScores
{
private static HighScores _instance;
public static HighScores Instance
{
get
{
if (_instance==null)
{
_instance = new Hi... | richardkopelow/Wedges | Assets/HighScores.cs | C# | mit | 1,896 |
"""
Script that trains Sklearn singletask models on GDB7 dataset.
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
import numpy as np
np.random.seed(123)
import tensorflow as tf
tf.set_random_seed(123)
import deepchem as dc
from sklearn.kernel_ridge impo... | ktaneishi/deepchem | examples/qm7/qm7_sklearn.py | Python | mit | 1,271 |
package com.bitdecay.game.ui.pointBurst;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.scenes.scene2d.Group;
import com.badlogic.gdx.scenes.scene2d.actions.Actions;
import com.badlogic.gdx.scenes.scene2d.actions.AlphaAction;
import com.badlogic.gdx.scenes.scene2d.actions.... | bitDecayGames/LudumDare38 | src/main/java/com/bitdecay/game/ui/pointBurst/PointBurstEffect.java | Java | mit | 1,697 |
import { GluegunCommand } from 'gluegun'
import { SolidarityOutputMode, SolidarityRequirementChunk, SolidarityRunContext } from '../types'
import Listr from 'listr'
module.exports = {
alias: 'f',
description: 'Applies all specified fixes for rules',
run: async (context: SolidarityRunContext) => {
// Node Mod... | infinitered/solidarity | src/commands/fix.ts | TypeScript | mit | 2,567 |
// Parser.cc for FbTk
// Copyright (c) 2004 - 2006 Fluxbox Team (fluxgen at fluxbox dot org)
//
// 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 limit... | ystk/debian-fluxbox | src/FbTk/Parser.cc | C++ | mit | 1,265 |
<?php
/**
* File LinkTest.php
*
* @author Edward Pfremmer <epfremme@nerdery.com>
*/
namespace Pfrembot\RestProxyBundle\Tests\Entity;
use Pfrembot\RestProxyBundle\Entity\Link;
/**
* Class LinkTest
*
* @coversDefaultClass Pfrembot\RestProxyBundle\Entity\Link
*
* @package Pfrembot\RestProxyBundle\Tests\Entity
... | pfrembot/rest-proxy-bundle | tests/Entity/LinkTest.php | PHP | mit | 1,072 |
import * as vscode from 'vscode';
import Server from './Server';
import Logger from '../utils/Logger';
const L = Logger.getLogger('StatusBarItem');
class StatusBarItem {
server: Server = null;
item: vscode.StatusBarItem;
constructor() {
L.trace('constructor');
this.item = vscode.window.createStatusBar... | rafaelmaiolla/remote-vscode | src/lib/StatusBarItem.ts | TypeScript | mit | 2,197 |
package main
import (
"bytes"
"encoding/base64"
"encoding/hex"
"encoding/json"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"math/rand"
"net"
"net/http"
"net/rpc"
"net/url"
"os"
"os/exec"
"os/signal"
"reflect"
"regexp"
"strconv"
"syscall"
"time"
"github.com/aws/aws-lambda-go/lambda/messages"
)
var apiB... | lambci/docker-lambda | go1.x/run/aws-lambda-mock.go | GO | mit | 13,597 |
/*
* The Plaid API
*
* The Plaid REST API. Please see https://plaid.com/docs/api for more details.
*
* API version: 2020-09-14_1.78.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package plaid
import (
"encoding/json"
)
// Deductions An object with the deduction in... | plaid/plaid-go | plaid/model_deductions.go | GO | mit | 5,789 |
/**
* Code derived from Leaflet.heat by Vladimir Agafonkin (2-clause BSD License)
* https://github.com/Leaflet/Leaflet.heat/blob/gh-pages/src/HeatLayer.js
*/
L.CanvasLayer = (L.Layer ? L.Layer : L.Class).extend({
redraw: function () {
if (this._heat && !this._frame && !this._map._animating) {
... | nrenner/leaflet-raw-dem | js/CanvasLayer.js | JavaScript | mit | 2,656 |
import Ember from 'ember';
export default Ember.Route.extend({
model() {
const eventRecord = this.store.createRecord('event');
const openingTier = this.store.createRecord('opening-tier');
eventRecord.set('openingTier', openingTier);
return eventRecord;
},
actions: {
didTransition() {
... | NullVoxPopuli/aeonvera-ui | app/pods/events/new/route.js | JavaScript | mit | 392 |
# Copyright (c) 2010-2014 Bo Lin
# Copyright (c) 2010-2014 Yanhong Annie Liu
# Copyright (c) 2010-2014 Stony Brook University
# Copyright (c) 2010-2014 The Research Foundation of SUNY
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
#... | mayli/DistAlgo | da/endpoint.py | Python | mit | 14,912 |
# 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::Network::Mgmt::V2020_03_01
module Models
#
# Bgp Communities sent over ExpressRoute with each route corresponding to a
# prefix ... | Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2020-03-01/generated/azure_mgmt_network/models/virtual_network_bgp_communities.rb | Ruby | mit | 1,751 |
$(document).ready( function () {
var Counter = Backbone.Model.extend({
defaults : {"value" : 0},
inc : function () {
var val = this.get("value");
this.set("value", val+1);
}
});
var CounterView = Backbone.View.extend({
render: function () {
... | clarissalittler/backbone-tutorials | counterMulti.js | JavaScript | mit | 1,026 |
public class UnsatNullPointerException02 {
public int x;
public static void main(String args[]) {
UnsatNullPointerException02 a = null;
a.x = 42;
}
}
| jayhorn/jayhorn | jayhorn/src/test/resources/horn-encoding/null/UnsatNullPointerException02.java | Java | mit | 178 |
<?php
require_once('../../Classes/ClassParent.php');
class Users extends ClassParent{
var $empid = NULL;
var $password = NULL;
var $lastname = NULL;
var $firstname = NULL;
var $visibility = false;
var $archived = false;
var $use... | rpascual0812/calltracker | Classes/Users.php | PHP | mit | 3,176 |
# encoding: utf-8
module NiceBootstrap3Form::Wrappers
def _offset_wrapper(&block)
if horizontal
content_tag(:div, class: _input_offset_classes, &block)
else
block.call
end
end
def _input_group_wrapper(attribute, &block)
if @inside_group
block.call
else
content_tag(:div... | jh125486/nice_bootstrap3_form | lib/nice_bootstrap3_form/wrappers.rb | Ruby | mit | 650 |
module SynapseClient
class Merchant
attr_accessor :client_id
attr_accessor :client_secret
attr_accessor :oauth_merchant_key
attr_accessor :merchant_email
attr_accessor :device_id
def initialize(options ={})
options = Map.new(options)
@client_id = options[:client_id] ... | milesmatthias/synapse_client | lib/synapse_client/merchant.rb | Ruby | mit | 734 |
import qor
from scripts import ctf
class Mod(qor.Mod):
def __init__(self):
# set up specific things that engine needs to know about the mod
# possibly setting up customized gui, background music, theming, etc.
# include possible selections of things, and which customizations to
# en... | flipcoder/qor | bin/mods/example/__init__.py | Python | mit | 1,487 |
require('source-map-support').install();
import { expect } from "chai";
import { getDoc } from "../src";
import * as path from "path";
import { exec } from "child_process";
describe("Component", () => {
it("get extracted", () => {
const doc = getDoc(path.join(__dirname, "tests/component-basic.ts"));
... | strantr/vuety-doc | test/index.ts | TypeScript | mit | 8,120 |
<?php
namespace Imp\AppBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symfony.com... | AlexanderPok/Football | src/Imp/AppBundle/DependencyInjection/Configuration.php | PHP | mit | 869 |
import { Injector, Pipe, PipeTransform } from '@angular/core';
import { AppComponentBase } from '@shared/app-component-base';
@Pipe({
name: 'localize'
})
export class LocalizePipe extends AppComponentBase implements PipeTransform {
constructor(injector: Injector) {
super(injector);
}
transfor... | aspnetboilerplate/module-zero-core-template | angular/src/shared/pipes/localize.pipe.ts | TypeScript | mit | 406 |
"use strict";
var Client_1 = require('./src/helpers/Client');
exports.Client = Client_1.Client;
//# sourceMappingURL=index.js.map | alormil/put.io-node | js/ts/index.js | JavaScript | mit | 129 |
(function() {
angular.module('signup', [ 'userServiceMod' ])
.controller('SignupCtrl', ['$location', 'userService', 'validator', function($location, userService, validator) {
var signup = this;
signup.buttonEnabled = true;
signup.err = {
username: ... | BYossarian/focus | public/js/controllers/signup.js | JavaScript | mit | 2,063 |
from __future__ import absolute_import, print_function, division
import operator
from petl.compat import text_type
from petl.util.base import Table, asindices, itervalues
from petl.transform.sorts import sort
def duplicates(table, key=None, presorted=False, buffersize=None, tempdir=None,
cache=Tru... | alimanfoo/petl | petl/transform/dedup.py | Python | mit | 15,217 |
from composite import *
from ensemble import *
from metrics import *
# from parametrization import *
from pdf import *
from utils import *
| aimalz/qp | qp/__init__.py | Python | mit | 145 |
from sqlalchemy import Column, ForeignKey, UniqueConstraint, String, Text
from sqlalchemy.orm import relationship
from sqlalchemy.orm import column_property, relationship, validates
from frt_server.common import CommonColumns
import frt_server.config
import hashlib
import string
import random
import os
from itsdange... | HPI-SWA-Lab/BP2016H1 | frt_server/user.py | Python | mit | 3,794 |
'use strict';
angular.module('spc')
.factory('Auth', function Auth($location, $rootScope, $http, User, CremaAuth, spcServerUrl, apiKey, $cookieStore, $q) {
var currentMetaData = {};
if ($cookieStore.get('access_token')) {
currentMetaData = CremaAuth.get();
}
return {
/**
* Authen... | tobistw/spc-web-client | client/components/auth/auth.service.js | JavaScript | mit | 6,192 |
const WEEKDAYS_LONG = {
ru: [
'Воскресенье',
'Понедельник',
'Вторник',
'Среда',
'Четверг',
'Пятница',
'Суббота',
],
it: [
'Domenica',
'Lunedì',
'Martedì',
'Mercoledì',
'Giovedì',
'Venerdì',
'Sabato',
],
};
const WEEKDAYS_SHORT = {
ru: ['Вс', 'Пн', 'Вт', ... | saenglert/react-day-picker | docs/examples/src/localization.js | JavaScript | mit | 2,036 |
{
TITLE : 'HiddenColony',
API : 'API',
USED_BY : 'Used by',
LAS_MOD : 'Last update',
EXPIRES : 'Next update',
SER_TIM : 'Server time',
LOC_TIM : 'Local time',
REM_TIM : 'Remaining time'
}
| EliasGrande/OGameHiddenColony | dist/locale/en_GB.js | JavaScript | mit | 202 |
#!/usr/bin/env python
import sys
import os
import argparse
import h5py
import numpy
import shutil
import logging
import json
from skimage import morphology as skmorph
from scipy.ndimage import label
import traceback
from . import imio, agglo, morpho, classify, evaluate, app_logger, \
session_manager, pixel, feat... | jni/ray | ray/segmentation_pipeline.py | Python | mit | 18,742 |
<?php
class Movie_model extends CI_Model{
public function __construct() {
parent::__construct();
$this->load->database();
}
public function get_movies() {
$query = $this->db->query("select time, movie_name, movie_play_times from `movie-times`");
return $query->resu... | pepfi/tripserver | application/models/Movie_model.php | PHP | mit | 342 |
// +build !windows
package libcrypto
import (
"testing"
)
func TestGenerateKey_DSA(t *testing.T) {
pri, err := NewPKey(512, DSA_SHA1)
if err != nil {
t.Fatalf("Failed generating key: %s", err)
}
defer pri.Close()
if pri.KeySize() != 512 {
t.Fatal("Invalid key size!")
}
}
func TestReadPrivatePEM_DSA(t *te... | mkobetic/okapi | libcrypto/dsa_test.go | GO | mit | 1,043 |
# Generic tests for data structures
import builtins
import itertools as itools
import unittest
KEY_RANGE = range(10)
VALUE_RANGE = range(1000)
# Some random (key, value) pairs
map_data = (
(0, 764),
(3, 448),
(8, 760),
(7, 648),
(4, 307),
(9, 384),
(7, 682),
(5, 841),
(1, 152),
... | afbarnard/glowing-broccoli | src/tests.py | Python | mit | 10,294 |
'''
Created on Oct 31, 2011
@author: robertsj
'''
import abc
class Bundle(object):
'''
An abstract base class for representing bundles.
'''
__metaclass__ = abs.ABCMeta
def __init__(self):
'''
Constructor
'''
| robertsj/poropy | poropy/bundletools/bundle.py | Python | mit | 264 |
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'tweakphoeus'
| basestylo/Tweakphoeus | spec/spec_helper.rb | Ruby | mit | 81 |
<?php
namespace Oro\Bundle\LocaleBundle\Migrations\Schema\v1_3;
use Doctrine\DBAL\Types\Type;
use Oro\Bundle\MigrationBundle\Migration\ArrayLogger;
use Oro\Bundle\MigrationBundle\Migration\ParametrizedMigrationQuery;
use Oro\Bundle\UserBundle\Entity\User;
use Psr\Log\LoggerInterface;
class CreateRelatedLanguagesQuer... | orocrm/platform | src/Oro/Bundle/LocaleBundle/Migrations/Schema/v1_3/CreateRelatedLanguagesQuery.php | PHP | mit | 3,307 |
<?php
/*
* This file is part of the Studio Fact package.
*
* (c) Kulichkin Denis (onEXHovia) <onexhovia@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$MESS['ID'] = 'ID HL блока или обычного инфоблока';
$MESS['TYPE'] ... | studiofact/citfact.form | install/components/citfact/form/lang/ru/.parameters.php | PHP | mit | 1,946 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _utils = require('./utils');
var metaFactory = function metaFactory(_ref) {
var name = _ref.name;
var checker = _ref.checker;
var types = _ref.types;
var meta = { name: name, checker: checker, types: types, isGeneric: false }... | Gwash3189/stronganator | dist/type.js | JavaScript | mit | 1,152 |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 The VoxelBox
*
* 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,... | Deamon5550/VisualScripting | src/main/java/com/thevoxelbox/vsl/api/variables/VariableScope.java | Java | mit | 2,100 |
module Sequel::Reporter
class Cell
attr_reader :title, :value, :style
attr_accessor :text, :align
def initialize(title, value)
@title = title
@value = value
@style = {}
@text = value
@align = 'left'
end
end
class Report
attr_accessor :error, :fields, :rows
... | peterkeen/sequel-reporter | lib/sequel-reporter/report.rb | Ruby | mit | 2,604 |
"""
Support for installing and building the "wheel" binary package format.
"""
from __future__ import absolute_import
import compileall
import csv
import errno
import functools
import hashlib
import logging
import os
import os.path
import re
import shutil
import stat
import sys
import tempfile
import warnings
from ba... | James-Firth/pip | pip/wheel.py | Python | mit | 31,114 |
<?php
namespace MairieVoreppe\DemandeTravauxBundle\Entity;
/**
* ArreteModelRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ArreteModelRepository extends \Doctrine\ORM\EntityRepository
{
}
| chadyred/demandeTravaux | src/MairieVoreppe/DemandeTravauxBundle/Entity/ArreteModelRepository.php | PHP | mit | 266 |
<?php
namespace perf\PresetString;
/**
* This class allows to handle and validate strings representing a standardized time (HH:MM:SS).
*
*/
class Time extends PresetStringBase
{
const REGEX = '/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/D';
/**
* Validates specified time string (HH:MM:SS).
*
* ... | jmfeurprier/perf-preset-string | lib/perf/PresetString/Time.php | PHP | mit | 613 |
<?php
/**
* @package Moar\Log\Monolog
*/
namespace Moar\Log\Monolog;
use Moar\Log\Helpers\HierarchicalLoggerFactory;
use Monolog\Logger;
use Psr\Log\LoggerInterface;
/**
* Logger factory for Monolog instances.
*
* @package Moar\Log\Monolog
* @copyright 2013 Bryan Davis and contributors. All Rights Reserved.
*... | bd808/moar-log | src/Moar/Log/Monolog/LoggerFactory.php | PHP | mit | 1,244 |
module.exports = {
"level": [
{
"level": "1",
"name": "trick"
},
{
"level": "1",
"name": "destiny-bond"
},
{
"level": "1",
"name": "ally-switch"
},
{
"level": "1",
... | leader22/simple-pokedex-v2 | _scraping/XYmoves/720.js | JavaScript | mit | 2,423 |
import Vue from "vue";
import Router from "vue-router";
Vue.use(Router);
import Home from "@/pages/home.vue";
import CategoryIndex from "@/pages/categoryIndex.vue";
import ExpenditureIndex from "@/pages/expenditureIndex.vue";
export default new Router({
routes: [
{
path: '/',
name: 'home',
c... | trtstm/budgetr | web/src/router/index.ts | TypeScript | mit | 572 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TournamentsMVC.Data.Contracts;
using TournamentsMVC.Models;
using TournamentsMVC.Services.Contracts;
namespace TournamentsMVC.Services
{
public class RatingService : IRatingService
{
... | Krassimir-ILLIEV/TournamentsMVC | TournamentsMVC.Services/RatingService.cs | C# | mit | 1,629 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Roles in this namespace are meant to provide `Nginx <http://wiki.nginx.org/Main>`_ web server utility methods for Debian distributions.
'''
from provy.core import Role
from provy.more.debian.package.aptitude import AptitudeRole
class NginxRole(Role):
'''
This ro... | python-provy/provy | provy/more/debian/web/nginx.py | Python | mit | 7,202 |
var url = require('url')
var gitHead = require('git-head')
var GitHubApi = require('github')
var parseSlug = require('parse-github-repo-url')
module.exports = function (config, cb) {
var pkg = config.pkg
var options = config.options
var plugins = config.plugins
var ghConfig = options.githubUrl ? url.parse(opt... | MakiCode/Enchilada | crawlkit-2/node_modules/semantic-release/src/post.js | JavaScript | mit | 1,323 |
// SPDX-License-Identifier: MIT
package mealplaner.plugins.utensil;
import static bundletests.BundleCommons.allMessageTests;
import java.io.File;
import org.junit.jupiter.api.Test;
class ObligatoryUtensilBundleTest {
@Test
void testBundle() {
allMessageTests("ObligatoryUtensilMessagesBundle", "plugins" + F... | Martin-Idel/mealplaner | mealplaner-plugins/utensil/src/test/java/mealplaner/plugins/utensil/ObligatoryUtensilBundleTest.java | Java | mit | 354 |
from django.core.exceptions import ValidationError
from django.forms import UUIDField
import six
from django.utils.module_loading import import_string
from django.utils.translation import ugettext_lazy as _
from django_smalluuid import settings
class ShortUUIDField(UUIDField):
default_error_messages = {
... | adamcharnock/django-smalluuid | django_smalluuid/forms.py | Python | mit | 1,158 |
const ROOT_PATH = process.cwd()
module.exports = {
bail: false,
cache: false,
devtool: 'eval',
devServer: {
compress: true,
contentBase: `${ROOT_PATH}/public/`,
historyApiFallback: true,
hot: true,
port: 8000,
stats: {
colors: true
}
... | jbarinas/cake-hub | _configs/webpack.config.dev.js | JavaScript | mit | 600 |
(function( $, SocialCount ) {
SocialCount.selectors.facebook = '.facebook';
SocialCount.getFacebookAction = function( $el ) {
return ( $el.attr('data-facebook-action' ) || 'like' ).toLowerCase();
};
SocialCount.plugins.init.push(function() {
var $el = this;
$el.addClass( SocialCount.getFacebookAc... | filamentgroup/SocialCount | src/networks/facebook.js | JavaScript | mit | 937 |
package sur.snapps.sentoff.tasks.config;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.WriteListener;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.ht... | soezen/sur-snapps-sentoff | sentoff-tasks/src/main/java/sur/snapps/sentoff/tasks/config/JerseyConfig.java | Java | mit | 4,027 |
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Flax from '... | osmanpontes/flax | examples/todos/src/stores/TodoStore.js | JavaScript | mit | 2,773 |
require_relative "../spec_helper"
require_relative "../../lib/daily_affirmation/validators/presence_validator"
describe "PresenceValidator" do
subject { DailyAffirmation::Validators::PresenceValidator }
it "passes validation if the attribute is present" do
obj = double(:name => :foo)
validator = subject.... | teamsnap/daily_affirmation | spec/validators/presence_validator_spec.rb | Ruby | mit | 914 |
package net.cassite.daf4j.types;
import net.cassite.daf4j.DataIterable;
import java.util.ArrayList;
import java.util.List;
/**
* 针对List在实体中的简化
*/
public class XList<E> extends DataIterable<E, List<E>> {
/**
* 使用ArrayList初始化该数据项
*
* @param entity 该数据项所在的实体,使用(this)填入该参数
*... | wkgcass/common | Data/src/main/java/net/cassite/daf4j/types/XList.java | Java | mit | 797 |
module.exports = {
update: function(data) {
var _ = this;
_.dom.update(data || _._data);
},
dispose: function dispose() {
var _ = this;
_.$element.innerHTML = '';
},
render: function render() {
var _ = this;
_.dispose();
_.dom = _.bars.compi... | Mike96Angelo/Custom-Element | lib/events.js | JavaScript | mit | 438 |
import { createStore, applyMiddleware, compose } from 'redux'
import { autoRehydrate } from 'redux-persist'
import createLogger from 'redux-logger'
import rootReducer from '../reducers/'
import Config from '../../config/debug_settings'
import createSagaMiddleware from 'redux-saga'
import sagas from '../sagas'
import R ... | igorlimansky/react-native-redux-boilerplate | src/core/store/store.js | JavaScript | mit | 2,872 |
/*
* 根据贝塞尔曲线获取两个经纬度之间的曲线
*/
'use strict';
var PI = Math.PI;
/*
* 初始贝塞尔曲线值
* params:
* start: {lat:112,lng:22} 起点
* end: {lat:112,lng:22} 终点
* isClockWise: bool 是否顺时针
*/
var BezierPath = function(start,end,isClockWise){
this.geometries = [];
this.start = start;
this.end = end;
this.clockWise = is... | ZacksTsang/BezierPath | bezierpath.js | JavaScript | mit | 3,579 |
/** @jsx jsx */
import { jsx } from 'slate-hyperscript'
export const input = (
<element>
<text>word</text>
</element>
)
export const output = {
children: [
{
text: 'word',
},
],
}
| ianstormtaylor/slate | packages/slate-hyperscript/test/fixtures/element-text-string.tsx | TypeScript | mit | 207 |
// Plugin.cs
// (c) Copyright Cirrious Ltd. http://www.cirrious.com
// MvvmCross is licensed using Microsoft Public License (Ms-PL)
// Contributions and inspirations noted in readme.md and license.txt
//
// Project Lead - Stuart Lodge, @slodge, me@slodge.com
using Cirrious.CrossCore;
using Cirrious.CrossCore.Plugins;... | MatthewSannes/MvvmCross-Plugins | File/MvvmCross.Plugins.File.Touch/Plugin.cs | C# | mit | 615 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ur_PK" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Nanite</source>
<translation type="unfinished"/>
</message>
<message>
<location line... | xNanite/Nanite | src/qt/locale/bitcoin_ur_PK.ts | TypeScript | mit | 107,598 |
namespace StockportWebapp.Emails.Models
{
public class GroupPublish
{
public string Name { get; set; }
public string Slug { get; set; }
}
}
| smbc-digital/iag-webapp | src/StockportWebapp/Emails/Models/GroupPublish.cs | C# | mit | 171 |
import './adventure_status_bar.html';
import { Template } from 'meteor/templating';
/**
* Template Helpers
*/
Template.AdventureStatusBar.helpers({
getHeaderMargin(){
return Template.instance().headerMargin.get();
},
adventureStatus(){
return this.adventure.get().status
}
});
/**
* Template Event ... | austinsand/doc-roba | meteor/client/ui/pages/adventure_console/adventure_status_bar.js | JavaScript | mit | 1,164 |
/*
* ofxBox2dWeldJoint.cpp
* Taken from ofxBox2dJoint by Nick Hardeman
*
*
* Created by Joel Gethin Lewis on 20/2/2011
*
*/
#include "ofxBox2dWeldJoint.h"
//----------------------------------------
ofxBox2dWeldJoint::ofxBox2dWeldJoint() {
world = NULL;
alive = false;
}
ofxBox2dWeldJoint::ofxBox2dWeldJoi... | HellicarAndLewis/NorwegianWood | addons/ofxBox2d/src/ofxBox2dWeldJoint.cpp | C++ | mit | 2,839 |
// Copyright (c) 2012 Titanium I.T. LLC. All rights reserved. See LICENSE.txt for details.
/*global desc, task, jake, fail, complete, directory, require, console, process */
(function () {
"use strict";
var REQUIRED_BROWSERS = [
// "IE 8.0",
// "IE 9.0",
// "Firefox 17.0",
// "Chrome 23.0",
// "Safari 6.0"
];
... | DarthStrom/poker-plus | Jakefile.js | JavaScript | mit | 2,466 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es_CL" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Okcoin</source>
<translation>Sobre Okcoin</translation>
</mes... | stamhe/okcoin | src/qt/locale/bitcoin_es_CL.ts | TypeScript | mit | 106,839 |
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Http\Requests;
use App\User;
use App\Models\Role;
use App\Models\Permission;
class DashboardController extends Controller
{
/**
* Instantiate a new DashboardController instance.
*/
public function __construct()
{
$this->... | ricardoaugusto/starter | app/Http/Controllers/DashboardController.php | PHP | mit | 576 |
import {Component, Injectable} from '@angular/core';
import {Injectable} from '@angular/core';
import {Http, Response} from "@angular/http";
import {Observable} from "rxjs/Rx";
@Injectable()
export class GameService {
constructor(private http:Http) {
}
stopGame(gameId:string) {
console.log('in stopGame');
... | Ehofas/rocketPuncherFrontEnd | src/app/Games/game.service.ts | TypeScript | mit | 1,329 |
name 'mysql'
maintainer 'Issei Murasawa'
maintainer_email 'issei.m7@gmail.com'
license 'MIT'
description 'Installs and Configures the MySQL 5.6 on Red hat-like system with RPM Packages'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.0'
| issei-m/cookbook-mysql | metadata.rb | Ruby | mit | 316 |
import DOMExporter from './DOMExporter'
import DefaultDOMElement from '../ui/DefaultDOMElement'
import { isBoolean } from 'lodash-es'
import forEach from '../util/forEach'
import isNumber from '../util/isNumber'
import isString from '../util/isString'
var defaultAnnotationConverter = {
tagName: 'span',
export: fun... | stencila/substance | model/HTMLExporter.js | JavaScript | mit | 1,923 |
package net.buycraft.plugin;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import net.buycraft.plugin.data.Coupon;
import net.buycraft.plugin.data.GiftCard;
import net.buycraft.plugin.data.RecentPayment;
import net.buycraft.plugin.data.ServerEvent;
import net.buycraft.plugin.data.responses.*;
import... | BuycraftPlugin/BuycraftX | common/src/main/java/net/buycraft/plugin/BuyCraftAPI.java | Java | mit | 9,014 |
require "test_helper"
require "support/flow_test_helper"
require "support/flows/redundancy_pay_flow_test_helper"
class CalculateYourRedundancyPayFlowTest < ActiveSupport::TestCase
include FlowTestHelper
extend RedundancyPayFlowTestHelper
setup do
testing_flow CalculateYourRedundancyPayFlow
end
should "... | alphagov/smart-answers | test/flows/calculate_your_redundancy_pay_flow_test.rb | Ruby | mit | 475 |
'use strict';
var tomasi = require('..');
var fs = require('fs');
var path = require('path');
var join = path.join;
var test = require('tape');
var RELATIVE_PATH = path.relative(process.cwd(), __dirname);
var FIXTURES_DIR = join(RELATIVE_PATH, 'fixtures');
var FIXTURES_ABS_DIR = join(__dirname, 'fixtures');
test('w... | yuanqing/tomasi | test/build.js | JavaScript | mit | 11,000 |
<?php
namespace spec\IonAuth\IonAuth\Lang;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
class LangSpec extends ObjectBehavior
{
function let()
{
$this->beConstructedWith('English');
}
function it_is_initializable()
{
$this->shouldHaveType('IonAuth\IonAuth\Lang\Lang');
}... | IonAuth/IonAuth | spec/Lang/LangSpec.php | PHP | mit | 1,400 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _15.Neighbour_Wars
{
class NeighbourWars
{
static void Main(string[] args)
{
int peshoDamage = int.Parse(Console.ReadLine());
int goshoDamage = ... | plamenrusanov/Programming-Fundamentals | Conditional Statements and Loops - Exercises/15. Neighbour Wars/NeighbourWars.cs | C# | mit | 1,621 |
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NetBots.EngineModels;
using NetBots.GameEngine;
using NetBots.WebModels;
using NetBotsHostProject.Controllers;
using Newtonsoft.Json;
namespace NetBots.Tests
{
[TestClass]
public class ... | AiBattleground/BotWars | Source/NetBots.Tests/EngineTests.cs | C# | mit | 7,525 |
from collections import OrderedDict
from conans.paths import SimplePaths
from conans.client.output import Color
from conans.model.ref import ConanFileReference
from conans.model.ref import PackageReference
from conans.client.installer import build_id
import fnmatch
class Printer(object):
""" Print some specific... | mropert/conan | conans/client/printer.py | Python | mit | 12,165 |
<?php
/**
* @author Boris Guéry <guery.b@gmail.com>
*/
namespace Bgy\EventStore\Transport;
interface Transport {}
| fedir/EventStoreForPHP | src/Bgy/EventStore/Transport/Transport.php | PHP | mit | 119 |