repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
aleib/reddit-sentiment-ra
src/components/Search/children/LimitDropDown.js
1369
import DropDownMenu from 'material-ui/lib/DropDownMenu'; import MenuItem from 'material-ui/lib/menus/menu-item'; import SearchTermStore from '../../../stores/SearchTermStore'; import Actions from '../../../actions'; import connectToStores from 'alt-utils/lib/connectToStores'; class LimitDropDown extends React.Componen...
mit
balderdashy/sails
test/integration/generate.test.js
5449
describe('API and adapter generators', function() { var assert = require('assert'); var fs = require('fs-extra'); var exec = require('child_process').exec; var path = require('path'); // Make existsSync not crash on older versions of Node fs.existsSync = fs.existsSync || require('path').existsSync; fun...
mit
sovaa/avoid
config/env/production.js
2051
'use strict'; module.exports = { db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/avoid', assets: { lib: { css: [ 'public/lib/bootstrap/dist/css/bootstrap.min.css', 'public/lib/bootstrap/dist/css/bootstrap-theme.min.css',...
mit
honest/active_shipping
lib/active_shipping/shipping/carriers.rb
900
require 'active_shipping/shipping/carriers/bogus_carrier' require 'active_shipping/shipping/carriers/ups' require 'active_shipping/shipping/carriers/usps' require 'active_shipping/shipping/carriers/fedex' require 'active_shipping/shipping/carriers/shipwire' require 'active_shipping/shipping/carriers/kunaki' require 'ac...
mit
acasolla/common-widgets-gwt
src/main/java/it/softphone/rd/gwt/client/widget/base/filter/FilterPopupPanel.java
1737
package it.softphone.rd.gwt.client.widget.base.filter; import it.softphone.rd.gwt.client.CommonWidgetsStyle; import it.softphone.rd.gwt.client.resources.base.FilterPopupPanelCss; import com.google.gwt.event.dom.client.KeyCodes; import com.google.gwt.event.dom.client.KeyDownHandler; import com.google.gwt.user.client.E...
mit
ericnishio/express-boilerplate
src/modules/auth/handlers/refresh.ts
710
import {Request, Response} from 'express' import jwt from 'jsonwebtoken' import {findUserById} from '../../../db/repositories/userRepository' import {generateAccessToken, extractAccessToken} from '../helpers' import {AccessToken} from '../types' export default async (req: Request, res: Response) => { try { // @...
mit
Royal-Society-of-New-Zealand/NZ-ORCID-Hub
orcid_api_v3/models/organization_v30.py
5232
# coding: utf-8 """ ORCID Member No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: Latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import si...
mit
parentnode/janitor
src/templates/janitor/member/list.php
3462
<?php global $action; global $model; $IC = new Items(); $SC = new Shop(); include_once("classes/users/supermember.class.php"); $MC = new SuperMember(); include_once("classes/users/superuser.class.php"); $UC = new SuperUser(); $memberships = $IC->getItems(array("itemtype" => "membership", "extend" => true)); //print_r(...
mit
bodji/test4
server/Godeps/_workspace/src/github.com/root-gg/logger/logger_test.go
14914
package logger import ( "bytes" "fmt" "github.com/root-gg/plik/server/Godeps/_workspace/src/github.com/root-gg/utils" "io/ioutil" "os" "path" "testing" "time" ) var logMessage string = "This is a log message\n" func TestNew(t *testing.T) { logger := NewLogger() if logger.MinLevel != MinLevel { t.Errorf("...
mit
EdgarVarg/blog
application/views/header.php
5461
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Blog</title> <!-- jQuery --> ...
mit
achacha/SomeWebCardGame
src/test/java/org/achacha/base/dbo/LoginDboTest.java
1335
package org.achacha.base.dbo; import org.achacha.base.global.Global; import org.achacha.test.BaseInitializedTest; import org.achacha.test.TestDataConstants; import org.junit.jupiter.api.Test; import java.sql.Connection; import java.sql.SQLException; import static org.junit.jupiter.api.Assertions.assertEquals; import...
mit
DoWhatILove/turtle
programming/csharp/Practice/PowerLib/Triple.cs
11337
namespace SAS.PowerLib { using System; using System.Collections.Generic; /// <summary> /// Stores a triple of objects within a single struct. This struct is useful to use as the /// T of a collection, or as the TKey or TValue of a dictionary. /// </summary> [Serializable] public struct...
mit
stephenlautier/ssv-angular-core
tools/build/tasks/scripts.js
2200
var gulp = require("gulp"); var runSeq = require("run-sequence"); var merge = require("merge2"); var typescript = require("typescript"); var dtsGen = require("dts-generator"); var Builder = require("systemjs-builder"); var tsc = require("gulp-typescript"); var sourcemaps = require("gulp-sourcemaps"); var plumber = req...
mit
alexandarnikita/wen
client/common/webpack/webpack.dev.config.js
2127
const webpack = require('webpack'); const config = require('../../../common/config.js'); module.exports = ({ entry, output, context }) => ({ entry, output, context, devtool: 'eval', module: { rules: [ { test: /\.css$/, use: [ 'style-loader', { loade...
mit
SigPloiter/SigPloit
gtp/attacks/info/teid_sequence_predictability_index.py
4975
#!/usr/bin/env python # encoding: utf-8 # teid_sequence_predictability_index.py # # Copyright 2018 Rosalia d'Alessandro # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
mit
HornsAndHooves/flat_map
lib/flat_map/open_mapper.rb
3111
module FlatMap # Base Mapper that can be used for mounting other mappers, handling business logic, # etc. For the intentional usage of mappers, pleas see {ModelMapper} class OpenMapper # Raised when mapper is initialized with no target defined class NoTargetError < ArgumentError # Initializes except...
mit
paulocesar/harbor
src/helpers.js
597
var fs = require('fs'), path = require('path'), _ = require('lodash'), Q = require('q'), helpers = null; module.exports = helpers = {}; // load files from a specific folder // please try to always use path.resolve helpers.requireFiles = function (requirePath) { if (!requirePath) { return {}; } ...
mit
iModels/simgen
tests/test_render.py
1492
import os from os.path import dirname from simgen.ghsync import Loader from simgen.astnode import AstNode from simgen.renderer import Renderer def test_ast(): # create a new offline loader with explicit github url to local directory association loader = Loader() loader.add_repo("https://github.com/imode...
mit
Ackara/Plaid.NET
src/Plaid/Management/UpdateAccessTokenVersionRequest.cs
971
using Newtonsoft.Json; namespace Acklann.Plaid.Management { /// <summary> /// Represents a request for plaid's '/item/access_token/update_version' endpoint. If you have an access_token from the legacy version of Plaid’s API, you can use the '/item/access_token/update_version' endpoint to generate an access_token fo...
mit
tbuehlmann/hots_api
lib/hots_api/repositories/hero_repository.rb
292
# frozen_string_literal: true module HotsApi module Repositories class HeroRepository < SimpleRepository private def instantiate_record_with(attributes) Models::Hero.new(attributes) end def collection_path 'heroes' end end end end
mit
EliasVansteenkiste/tpar
src/architecture/FourLutSanitizedDisjoint.java
1492
package architecture; public class FourLutSanitizedDisjoint extends FourLutSanitizedAbstract { public FourLutSanitizedDisjoint(int width, int height, int channelWidth, int K, int L) { super(width,height,channelWidth,K,L); } @Override protected void generateSwitchBlocks() { for (int x= 1; x<width+1; x++) { ...
mit
Mitali-Sodhi/CodeLingo
Dataset/cpp/NumbersToFile.cpp
1777
// NumbersToFile.cpp (c) Kari Laitinen // http://www.naturalprogramming.com // 2006-06-09 File created. // 2006-06-09 Last modification. // This is the C++ version of corresponding Java/C#/Python // programs. This program is not presented in the C++ book. #include <iostream.h> #include <fstr...
mit
CaosSLL/MonopolyServer
src/Caos/MonopolyBundle/Tests/Controller/PosesionTarjetaControllerTest.php
1989
<?php namespace Caos\MonopolyBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class PosesionTarjetaControllerTest extends WebTestCase { /* public function testCompleteScenario() { // Create a new client to browse the application $client = static::createClient(...
mit
ziaochina/mk-demo
apps/mk-app-forgot-password/action.js
5181
import React from 'react' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import { List, fromJS } from 'immutable' import moment from 'moment' import config from './config' class action { constructor(option) { this.metaAction = option.metaAction this.config = config.current ...
mit
digaoddc/mars-explorer
src/main/java/br/com/explorer/DirectionTest.java
1321
package br.com.explorer; import static org.junit.Assert.*; import org.junit.Test; import junit.framework.Assert; public class DirectionTest { @Test public void turnRightWithNorth() { Direction d = new Direction("N"); d.turnRight(); assertEquals(d.getDirection(), "E"); } @Test public void tur...
mit
igolets/EgorkaGame
Egorka/EgorkaSettings.cs
1926
using System; using System.Configuration; using System.Globalization; namespace EgorkaGame.Egorka { public class EgorkaSettings : ConfigurationSection, IEgorkaSettings { #region Statics #region Properties public static EgorkaSettings Instance { get { ...
mit
yogeshsaroya/new-cdnjs
ajax/libs/mediaelement/2.16.2/mediaelement-and-player.js
131
version https://git-lfs.github.com/spec/v1 oid sha256:2d7da35ecd76ff32118a9697db5103b24014e5ad6eb2efbbb3889651fbf8a3e7 size 155576
mit
mchrzanowski/ProjectEuler
src/python/Problem099.py
789
''' Created on Feb 18, 2012 @author: mchrzanowski ''' from math import log import os.path from time import time def main(): ''' just compare the logs of the numbers.''' start = time() numbersFile = open(os.path.join(os.curdir,'./requiredFiles/Problem099Numbers.txt'), 'r') row = 0 maxRow ...
mit
bollylu/BLTools
UnitTest2015/Data/TFixedLengthTestRecord.cs
2582
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BLTools.Data; using BLTools.Data.FixedLength; namespace UnitTest2015 { public class TFixedLengthTestRecord : TFixedLengthRecord { #region Data fields [TDataField(StartPos = 0, Length = ...
mit
venkatramanm/swf-all
swf-db/src/main/java/com/venky/swf/integration/api/HttpMethod.java
340
package com.venky.swf.integration.api; public enum HttpMethod { GET() { public String toString() { return "GET"; } }, POST(){ public String toString() { return "POST"; } }, PUT() { public String toString() { return "PUT" ...
mit
mbauskar/Das_frappe
frappe/public/js/frappe/ui/field_group.js
2336
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // MIT License. See license.txt frappe.provide('frappe.ui'); frappe.ui.FieldGroup = frappe.ui.form.Layout.extend({ init: function(opts) { $.extend(this, opts); this._super(); $.each(this.fields || [], function(i, f) { if(!f.fieldname && f...
mit
globexdesigns/brackets-jsxhint
test/test.js
3281
/** @jsx React.DOM */ /* global require, module */ var React = require('react'); var classSet = require('./utils/classSet'); var cloneWithProps = require('./utils/cloneWithProps'); var createChainedFunction = require('./utils/createChainedFunction'); var BootstrapMixin = require('./BootstrapMixin'); var DropdownStateM...
mit
yogijoshi/yj-perfect-gem-working
test/test_helper.rb
243
require 'rubygems' require 'test/unit' require 'shoulda' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'yj-perfect-gem-working' class Test::Unit::TestCase end
mit
sasyomaru/advanced-javascript-training-material
module2/scripts/05-performance-tuning.js
1500
"use strict"; (function() { console.log('-------------------------Example on performance tuning-------------------------'); function A50square() { var totalCount = 50; for(var index = 0; index < totalCount; index++) { for(var index2 = 0; index2 < totalCount; index2++) { ...
mit
JeremyAnsel/helix-toolkit
Source/HelixToolkit.Wpf.SharpDX.Tests/Elements3D/CrossSectionMeshGeometryModel3DTests.cs
3534
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="MeshGeometryModel3DTests.cs" company="Helix Toolkit"> // Copyright (c) 2020 Helix Toolkit contributors // </copyright> // -------------------------------------------------------...
mit
nerdstrap/IncomePerspectives
app/components/bsHas/bsProcessValidator.service.js
616
'use strict'; function bsProcessValidator($timeout) { return function (scope, element, ngClass, bsClass) { $timeout(function () { var input = element.find('input'); if (!input.length) { input = element.find('select'); } if (!input.length) { input = element.find('textarea'); } if (input.len...
mit
axross/camelot
src/entities/mocks/blogPostMocks.js
2045
import BlogPost from '../BlogPost'; import { MOCK_JSON_1 as TAG_MOCK_JSON_1, MOCK_JSON_2 as TAG_MOCK_JSON_2, MOCK_JSON_3 as TAG_MOCK_JSON_3, } from './tagMocks'; export const MOCK_JSON_1 = { id: 1, slug: 'lorem-ipsum', title: 'Lorem Ipsum', markdown: 'Lorem Ipsum', thumbnailImageURL: 'http://i.imgur.co...
mit
yriveiro/psr-7
src/Request.php
237
<?php namespace yriveiro\Psr7; use yriveiro\Psr7\Traits\MessageTrait; use yriveiro\Psr7\Headers; class Request { use MessageTrait; public function __construct(Headers $headers) { $this->headers = $headers; } }
mit
danibonilla1/SpaceInvaders
SpaceInvaders/src/com/dani/main/level/RandomLevel.java
2061
package com.dani.main.level; import java.util.ArrayList; import java.util.Random; import com.dani.main.Main; import com.dani.main.Sprite.Sprite; import com.dani.main.entity.mob.Player; import com.dani.main.entity.mob.Rock; import com.dani.main.gfx.Screen; public class RandomLevel extends Level { private int diffic...
mit
justinfx/openimageigo
oiio.cpp
41
extern "C" { #include "_cgo_export.h" }
mit
AmbitiousOkie/microscope
client/templates/posts/posts.list.js
178
Template.postsList.helpers({ posts: function() { return Posts.find({}, { sort: { submitted: -1 } }); } });
mit
wudimeicom/WudimeiPHP
Config.php
997
<?php /** * @author yangqingrong@wudimei.com * @copyright yangqingrong@wudimei.com * @link http://www.wudimei.com * @license The MIT license(MIT) */ namespace Wudimei; class Config{ public $dir; public $data; public function setDir( $dir ){ $this->dir = $dir; } public function get( $keys ){ ...
mit
daniboomerang/daniboomerang
server/config/routes.js
155
'use strict'; //var path = require('path'); module.exports = function(app) { app.get('/*', function(req, res) { res.render('index.html'); }); }
mit
sda97ghb/LearnWords
app/src/main/java/com/divanoapps/learnwords/data/mappers/Mapper.java
232
package com.divanoapps.learnwords.data.mappers; /** * Created by dmitry on 29.04.18. */ public interface Mapper<TStorage, TApi> { TApi mapStorageToApi(TStorage storageObject); TStorage mapApiToStorage(TApi apiObject); }
mit
Highwinds/CDNWS-examples
modify_policies/modify_policies.py
1570
import getpass import requests import os import sys import json STRIKETRACKER_URL = os.environ['STRIKETRACKER_URL'] if 'STRIKETRACKER_URL' in os.environ else 'https://striketracker.highwinds.com' if len(sys.argv) != 4: print "Usage: python modify_policies.py [account_hash] [host_hash] [scope_id]" sys.exit() PA...
mit
Bareflank/hypervisor
example/nested_paging/x64/amd/nested_page_table_t.hpp
32292
/// @copyright /// Copyright (C) 2020 Assured Information Security, Inc. /// /// @copyright /// 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 limita...
mit
pbochynski/homestat
heat.js
594
var exec = require('child_process').exec; var ON = '1400588', OFF = '1400579'; var CODESEND = 'sudo /home/pi/433Utils/RPi_utils/codesend '; var current = null; function heatOn() { if (current !== ON) { codesend(ON); current = ON; } } function heatOff() { if (current !== OFF) { codesend(OFF); cu...
mit
thoemel/veloboerse
application/views/auswertung/cashMgmt.php
2739
<?php include APPPATH . 'views/header.php'; echo heading('Cash Management', 1); echo heading('Prognosen', 2) . ' <table class="table table-striped table-bordered table-condensed"> <thead> <tr> <th scope="col">Was</th> <th scope="col">Wieviel</th> <th scope="col">Bemerkungen</th> </tr> </thead>...
mit
kiloe/ui
src/icons/GamesIcon.js
321
import React from 'react'; import Icon from '../Icon'; export default class GamesIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M30 15V4H18v11l6 6 6-6zm-15 3H4v12h11l6-6-6-6zm3 15v11h12V33l-6-6-6 6zm15-15l-6 6 6 6h11V18H33z"/></svg>;} }...
mit
kleientertainment/ds_mod_tools
pkg/win32/mod_tools/tools/scripts/pipelinetools.py
1276
import Image import sys import optparse import glob import os import string import tempfile import shutil import zipfile def TrimImage(imagename): im = Image.open(imagename) idx = 0 width = im.size[0] height = im.size[1] top = height bottom = 0 left = width right...
mit
martin-helmich/php-gridfs
src/Stream/DownloadStreamInterface.php
369
<?php namespace Helmich\GridFS\Stream; use MongoDB\Model\BSONDocument; interface DownloadStreamInterface { public function read(int $n): string; public function readAll(): string; public function reset(); public function tell(): int; public function seek(int $n); public function eof(): bo...
mit
timbjames/arthR
arthr.Web/Scripts/Services/Api/ItemApi.ts
176
const itemApi = { get: () => { return `api/item/` }, doSomething: () => { return `/api/item/dosomething` } } export { itemApi as ItemApi }
mit
djstearns/blabfeed-beta2
plugins/full_calendar/webroot/js/fullcalendar.min.js
48429
/* FullCalendar v1.4.11 http://arshaw.com/fullcalendar/ Use fullcalendar.css for basic styling. For event drag & drop, requires jQuery UI draggable. For event resizing, requires jQuery UI resizable. Copyright (c) 2010 Adam Shaw Dual licensed under the MIT and GPL licenses, located in MIT-LICENSE.txt and GPL-...
mit
markijbema/strict_struct
spec/spec_helper.rb
103
require 'rspec' $LOAD_PATH << './lib/' RSpec.configure do |c| c.raise_errors_for_deprecations! end
mit
tr-codegeneration/tr-codegeneration
src/ThomsonReuters.Languages/TypesLanguage/MoleculeSymbol.cs
1909
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using iSynaptic.Commons; using iSynaptic.Commons.Collections.Generic; namespace ThomsonReuters.Languages.TypesLanguage { public abstract class MoleculeSymbol : ISemanticNode, ISymb...
mit
camsys/onebusaway-siri-api-v20
src/main/java/eu/datex2/schema/_2_0rc1/_2_0/SpeedPercentile.java
2906
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2014.11.22 at 01:45:0...
mit
SteveLillis/Syntaxiom
src/Syntaxiom.Liquid/Tokens/Parsers/IfChangedParser.cs
978
using System; using Syntaxiom.Nodes; using Syntaxiom.Nodes.TreeBuilders; using Syntaxiom.Tokens.Parsers; using Syntaxiom.Symbols.Factories; using Syntaxiom.Tokens; using Capture = Syntaxiom.Nodes.CaptureGlobalValue; namespace Syntaxiom.Liquid.Tokens.Parsers { public class IfChangedParser : ITokenParser { ...
mit
karldoenitz/karlooper
karlooper/web/__async_core_server.py
2492
# -*-coding:utf-8-*- """ __async_core_server ~~~~~~~~~~~~~~~~~~ introduction use python asyncore model to implement a async http server Usage ===== >>> EchoServer('0.0.0.0', port=8080, handlers={}, settings={}) >>> asyncore.loop() """ import logging import asyncore import socket from karlooper.http_parser.http_par...
mit
mwpowellhtx/MicroMapper
src/MicroMapper/Mappers/StringMapper.cs
418
namespace MicroMapper.Mappers { public class StringMapper : IObjectMapper { public object Map(ResolutionContext context) { return context.SourceValue?.ToString(); } public bool IsMatch(ResolutionContext context) { return context.DestinationType =...
mit
dmpayton/reqon
reqon/coerce.py
1215
import datetime import json import dateutil.parser import pytz import rethinkdb as r import six from .geo import geojson_to_reql TIMEZONES = {tz: pytz.timezone(tz) for tz in pytz.all_timezones} def coerce(value): if isinstance(value, (list, tuple)): if len(value) == 2 and value[0] in COERSIONS: ...
mit
impiaaa/MyWorldGen
src/main/java/net/boatcake/MyWorldGen/items/ItemWandSave.java
7279
package net.boatcake.MyWorldGen.items; import org.lwjgl.opengl.GL11; import net.boatcake.MyWorldGen.network.MessageGetSchemClient; import net.boatcake.MyWorldGen.utils.NetUtils; import net.boatcake.MyWorldGen.utils.WorldUtils; import net.minecraft.client.Minecraft; import net.minecraft.client.entity.EntityPlayerSP; i...
mit
ev-ui/ev-ui
lib/components/EvUI.js
5275
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("...
mit
tilap/piggy
src/modules/user/Vo.js
234
import Vo from 'piggy-module/lib/Vo'; import config from './config'; export default class User extends Vo { constructor(data) { super(data); } toString() { return this.username; } } Vo.init(User, config.attributes);
mit
tedliang/osworkflow
src/test/com/opensymphony/workflow/spi/memory/MemoryFunctionalWorkflowTestCase.java
855
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. */ package com.opensymphony.workflow.spi.memory; import com.opensymphony.workflow.spi.AbstractFunctionalWorkflowTest; /** * This test case is functional in that it attempts to validate the entire * lifecycle of a workflow. This is also a good ...
mit
Patchthesock/DisasterRecovery
DisasterRecovery/DisasterRecoveryAPI/Areas/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs
393
using System.Collections.ObjectModel; namespace DisasterRecoveryAPI.Areas.HelpPage.ModelDescriptions { public class ComplexTypeModelDescription : ModelDescription { public ComplexTypeModelDescription() { Properties = new Collection<ParameterDescription>(); } public ...
mit
kedarmhaswade/impatiently-j8
src/main/java/tmp/StreamOf.java
403
package tmp; import java.util.Arrays; import java.util.stream.Stream; /** * Created by kmhaswade on 2/23/16. */ public class StreamOf { public static void main(String[] args) { //does not do what you want! int[] ints = {1, 2, 3}; System.out.println(Stream.of(ints).count()); //doe...
mit
dmtrKovalenko/material-ui-pickers
lib/src/_shared/hooks/date-helpers-hooks.tsx
1658
import * as React from 'react'; import { useUtils } from './useUtils'; import { ParsableDate } from '../../constants/prop-types'; export type OverrideParsableDateProps<TDate, TProps, TKey extends keyof TProps> = Omit< TProps, TKey > & Partial<Record<TKey, ParsableDate<TDate>>>; export function useParsedDate<TDa...
mit
Zauberstuhl/jsxc
src/jsxc.lib.gui.js
88249
/* global Favico, emojione*/ /** * Handle functions for chat window's and buddylist * * @namespace jsxc.gui */ jsxc.gui = { /** Smilie token to file mapping */ emotions: [ ['O:-) O:)', 'innocent'], ['>:-( >:( &gt;:-( &gt;:(', 'angry'], [':-) :)', 'slight_smile'], [':-D :D', 'grin'], ...
mit
samNson/MyProject_JS300
app/app.js
510
var express = require('express'); var mongoose = require('mongoose'); var bodyParser = require('body-parser'); var truckRouter = require('./routes/truckRoutes'); var app = express(); var db = mongoose.connect('mongodb://localhost/foodTruckAPI'); app.use(express.static('public')); app.use(bodyParser.urlencoded({extende...
mit
laonawuli/secondhandmobiphone
MobilePhone/Program.cs
883
using System; using System.Drawing; using System.Windows.Forms; using DevExpress.Skins; using DevExpress.UserSkins; using DevExpress.Utils; using MobilePhoneLibrary.Controls.Forms; namespace MobilePhone { static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STATh...
mit
chanzuckerberg/idseq-web
spec/factories/taxon_summaries.rb
318
FactoryBot.define do factory :taxon_summary do sequence(:tax_id) { |n| n } count_type { "NT" } tax_level { 1 } mean { 0.5 } stdev { 1 } rpm_list { "[0,1] " } # NOTE: this conflicts with pipeline_report_service_spec.rb # association :taxon_lineage, factory: [:taxon_lineage] end end
mit
woodfobm/Capstone-Multiplayer
MpPong/MpPong/WebSockets/WebSocketHandler.cs
2061
using System; using System.Net.WebSockets; using System.Text; using System.Threading; using System.Threading.Tasks; namespace MpPong { public abstract class WebSocketHandler { protected WebSocketConnectionManager WebSocketConnectionManager { get; set; } public WebSocketHandler(WebSocketConnec...
mit
davekago/ember-fhir
app/serializers/explanation-of-benefit-add-item.js
81
export { default } from 'ember-fhir/serializers/explanation-of-benefit-add-item';
mit
hellofornow/wedding-site-client
config/index.js
1512
// see http://vuejs-templates.github.io/webpack for documentation. var path = require('path') module.exports = { build: { env: require('./prod.env'), index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPat...
mit
Aryellix/scrumator
app/cache/dev/twig/a/8/a84cd1c31748ce66470e8409773e3c3be52a9c39ff51e97d6882dc49e87243f2.php
6687
<?php /* ScrumatorBackendBundle:Project:index.html.twig */ class __TwigTemplate_a9545428e17104d161772d36be2777d2b139eb83892e177080843478b24f1d1d extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 $this->parent = $this->load...
mit
microsoft/Azure-Kinect-Sensor-SDK
src/csharp/SDK/DeviceConfiguration.cs
3879
//------------------------------------------------------------------------------ // <copyright file="DeviceConfiguration.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // </copyright> //-----------------------------------------------------------...
mit
tritech/jsDAV
lib/DAV/util.js
39341
/* * @package jsDAV * @subpackage DAV * @copyright Copyright(c) 2011 Ajax.org B.V. <info AT ajax DOT org> * @author Mike de Boer <info AT mikedeboer DOT nl> * @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License */ var jsDAV = require("./../jsdav"); var Crypto = require("crypto"); var Asyn...
mit
sqli-nantes/ethereum-java
ethereum-java-core/src/main/java/ethereumjava/gson/ResponseTypeAdapter.java
1521
package ethereumjava.gson; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParseException; import com.google.gson.JsonSerializationContext; import com.google.gson.JsonSerializer...
mit
agrc/public-utilities
src/app/LayerPicker.js
2030
define([ 'dojo/text!./templates/LayerPicker.html', 'dojo/_base/declare', 'dojo/_base/array', 'dojo/on', 'dojo/topic', 'dijit/_WidgetBase', 'dijit/_TemplatedMixin', 'dijit/_WidgetsInTemplateMixin', './LayerItem', './config', './data/mapLayers' ], function( template, ...
mit
CatalinaTechnology/ctAPIClientExamples
client.serviceEmployeeMaintenance/Form1.Designer.cs
72107
namespace client.fieldService.serviceDispatch.maintenance.serviceEmployeeMaintenance { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any r...
mit
roqua/physiqual
spec/shared_context_for_exporters.rb
649
module Physiqual module Exporters shared_context 'exporter context' do let(:user) { FactoryBot.create(:physiqual_user) } let(:first_measurement) { Time.new(2015, 7, 4, 10, 0).in_time_zone } let(:number_of_days) { 1 } let(:mock_result) do { '2015-08-03 10:00:00 +0200' => {...
mit
glazedSolutions/apey-eye
example/resources/ProductResource.js
745
/** * Created by GlazedSolutions on 12/05/2015. */ import ApeyEye from '../../apey-eye'; let Decorators = ApeyEye.Decorators; let GenericResource = ApeyEye.GenericResource; let Input = ApeyEye.Input; import ProductModel from '../models/ProductModel.js'; @Decorators.Model(ProductModel) @Decorators.Name("product") ...
mit
ghoulsblade/vegaogre
lugre/widgets/lib.gui.widget.root.lua
694
-- root widget, starting point for mousepicking, immediate childs are layers (dialogs,menus,tooltips..) -- see also lib.gui.widget.lua RegisterWidgetClass("Root") function CreateRootWidget (rendermanager2d) return CreateWidget("Root",nil,rendermanager2d) end -- parentwidget_ignored : since this is a root widget, th...
mit
NeosStore/pandacoin
src/qt/locale/bitcoin_pam.ts
161872
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="pam"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About PandaBank</source> <translation type="unfinished"...
mit
mchekin/rpg
resources/js/bootstrap.js
1742
window._ = require('lodash'); /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ try { window.Popper = require('popper.js').default; ...
mit
Squama/Master
AdminEAP-web/src/main/java/com/radish/master/entity/volumePay/ReimburseDet.java
2086
package com.radish.master.entity.volumePay; import com.cnpc.framework.annotation.Header; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import org.hibernate.annotations.GenericGenerator; import org.springframework.format.annotation.DateTimeFormat; import javax.persistence.*; import java.io.Serializab...
mit
zhipenglin/pc-components
build/webpack.var.config.js
304
/** * Created by Administrator on 2016/5/23. */ var path=require('path'); var ROOT_PATH=path.resolve(__dirname,'../'), APP_PATH=path.resolve(ROOT_PATH,'src'), BUILD_PATH=path.resolve(ROOT_PATH,'dist'); module.exports={ ROOT_PATH:ROOT_PATH, APP_PATH:APP_PATH, BUILD_PATH:BUILD_PATH }
mit
JosiasMattiole/CursoJavaAvancado
webschool/app/config/webpack.common.js
1802
const webpack = require('webpack'); const path = require('path'); // plugins const HtmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); exports.config = { entry: { main: './src/index.js', }, output: { sourceMapFilename: '[name].map', ch...
mit
igonzaleztrujillo/angular-require-skeleton
src/js/app.js
800
define(['jQuery', 'angular', 'angularResource', 'uiRouter', 'controller1', 'controller2', 'templates' ], function($, angular, angularResource, uiRouter, controller1, controller2) { 'use strict'; var app = angular.module('app', ['ngResource', 'ui.router', 'templates']); ...
mit
islinjr/My-Project
nalanda/adminpanel/aplikasi/pmb_diterima_jenkel.php
5110
<h3>PMB Online</h3> <div class="isikanan"><!--Awal class isi kanan--> <div class="judulisikanan"> <div class="menuhorisontalaktif-ujung"><a href="pmb_online.php">Pendaftar</a></div> <div class="menuhorisontal"><a href="pmb_diterima.php">Diterima</a></div> <div class="menuhorisontal"><a href="pmb_se...
mit
testributor/katana
test/features/test_run_index_feature_test.rb
1148
require 'test_helper' class TestRunIndexFeatureTest < Capybara::Rails::TestCase describe 'when visiting the TestRun#index ' do let(:tracked_branch) { FactoryGirl.create(:tracked_branch) } before do count = 0 start_id = 20000 while count < 10 do test_run = FactoryGirl.build(:testri...
mit
jipiboily/forwardlytics-ruby
lib/forwardlytics/track.rb
255
module Forwardlytics def self.track(event:, user_id:, properties: {}) params = { name: event, userID: user_id, properties: properties, timestamp: Time.now().to_i } t = Thread.new { post('/track', params) } end end
mit
goggle/backupper
Backupper/config.py
4264
import configparser import os HOME_DIRECTORY = os.path.expanduser('~') # Specify the possible paths to the config files. The first items in the list # have higher priorities: CONFIG_FILES = [os.path.join(HOME_DIRECTORY, '.config/backupper.conf'), '/etc/backupper.conf'] class Config: def __init__(self): ...
mit
typetools/annotation-tools
annotation-file-utilities/tests/GenericAnnoBound.java
188
import java.lang.annotation.*; @Target(ElementType.TYPE_USE) @interface Bla {} public class GenericAnnoBound<X extends @Bla Object> { GenericAnnoBound(GenericAnnoBound<X> n, X p) {} }
mit
leei/thinking-sphinx
lib/thinking_sphinx/deltas.rb
556
require 'thinking_sphinx/deltas/default_delta' require 'thinking_sphinx/deltas/delayed_delta' require 'thinking_sphinx/deltas/datetime_delta' module ThinkingSphinx module Deltas def self.parse(index, options) case options.delete(:delta) when TrueClass, :default DefaultDelta.new index, options...
mit
shr1th1k/0fferc1t1
system/database/drivers/mysqli/mysqli_result.php
4750
<?php /** * CodeIgniter * * An open source app development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2016, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and ...
mit
JEG2/pdf-reader
examples/text.rb
898
#!/usr/bin/env ruby # coding: utf-8 # Extract all text from a single PDF class PageTextReceiver attr_accessor :content def initialize @content = [] end # Called when page parsing starts def begin_page(arg = nil) @content << "" end # record text that is drawn on the page def show_text(string...
mit
Derjik/LibMach
src/Point.cpp
1636
/* * Copyright (c) 2016 Julien "Derjik" Laurent <julien.laurent@engineer.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the righ...
mit
boyombo/django-stations
stations/parcel/urls.py
453
from django.conf.urls import url from parcel import views urlpatterns = [ url(r'register/$', views.register, name='parcel_register'), url(r'load/$', views.load, name='parcel_load'), url(r'arrival/$', views.arrival, name='parcel_arrival'), url(r'arrived/$', views.arrived_parcels, name='parcel_arrived'...
mit
Malkovski/Telerik
DSA/Homework/Workshop1/JediMeditation/JediMeditationWithBag/Properties/AssemblyInfo.cs
1418
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("Je...
mit