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
<?php return array ( 'id' => 'orange_spv_c500_ver1_subopver4125_subua', 'fallback' => 'orange_spv_c500_ver1_subopver4125', 'capabilities' => array ( 'max_data_rate' => '40', ), );
cuckata23/wurfl-data
data/orange_spv_c500_ver1_subopver4125_subua.php
PHP
mit
195
<?php namespace TodoMove\Intercessor; use TodoMove\Intercessor\Traits\Metable; class Folder { use \TodoMove\Intercessor\Traits\Identifiable, Metable; protected $name; /** @var Folder */ protected $parent = null; /** @var Folder[] */ protected $children = []; /** @var Project[] */ ...
TodoMove/intercessor
src/TodoMove/Intercessor/Folder.php
PHP
mit
1,483
#include <Rcpp.h> using namespace Rcpp; // underflow prevention: if the argument to log is so small // we get -Inf, we just give back 0. inline double xlogy(double x, double y) { double lg = log(y); return (lg == R_NegInf) ? 0 : x * lg; } // [[Rcpp::export]] double jsdiv_v(NumericVector P, NumericVector Q) { ...
agoldst/dfrtopics
src/JS_divergence.cpp
C++
mit
1,214
<?php namespace Hail\Debugger; use Psr\Http\Message\ResponseInterface; use Psr\Log\LoggerInterface; use Psr\Log\LoggerTrait; use Psr\Log\LogLevel; /** * ChromeLogger console logger. * * @see https://craig.is/writing/chrome-logger * @see https://developer.mozilla.org/en-US/docs/Tools/Web_Console/Console_messages#...
flyinghail/Hail-Framework
src/Debugger/ChromeLogger.php
PHP
mit
12,162
module NIDAG # Exports a set of Articles in different formats class Exporter end end
NIDAG/ACE
lib/Exporter.rb
Ruby
mit
101
<?php class HeaderRequest{ public $id_user = null; public $token = null; public $businessRequest = null; } ?>
miguelfreelancer56577/WineRestServicesPHP
application/beans/HeaderRequest.php
PHP
mit
117
require 'httparty' module DeepThought module Notifier def self.notify(user, message) begin HTTParty.post("#{user.notification_url}", :body => {:message => message}.to_json, :headers => {'Content-Type' => 'application/json'}) rescue 'poop' end end end end
redhotvengeance/deep_thought
lib/deep_thought/notifier.rb
Ruby
mit
302
<?php namespace spec\Money\Provider; use Money\Provider; use Money\Currency; use Money\Exception\UnsupportedCurrency; use PhpSpec\ObjectBehavior; class BatchSpec extends ObjectBehavior { function it_is_initializable() { $this->shouldHaveType('Money\Provider\Batch'); $this->shouldHaveType('Mon...
indigophp/money
spec/Money/Provider/BatchSpec.php
PHP
mit
2,484
using Myxini.Recognition.Raw; using System; using System.Collections.Generic; namespace Myxini.Recognition.Image { public class CellDescriptor { const int CELL_SIZE = 8; private class Gradient { public static readonly int BIN = 9; public static readonly double ORIENTATION = Math.PI / BIN; public Gr...
myxini/block-program
block-program/Detection/Image/CellDescriptor.cs
C#
mit
3,701
using System; namespace Embark.Storage { internal sealed class DocumentKeySource { internal DocumentKeySource(long lastKey) { this.lastKey = lastKey; } long lastKey = 0; object syncRoot = new object(); public long GetNewKey() { ...
chasingbob/embark
Embark/Storage/DocumentKeySource.cs
C#
mit
574
/*Owner & Copyrights: Vance King Saxbe. A.*//*Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe@...
VanceKingSaxbeA/FTSE-Engine
App/BVIC.php
PHP
mit
8,633
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("Nu...
DJBuro/Telerik
C#1/ConsoleInputOutput/NumberComparer/Properties/AssemblyInfo.cs
C#
mit
1,404
import { Controller } from "./controller.js"; import { loadShaders, samples } from "./samples.js"; import { View } from "./view.js"; export function init() { window.onload = () => doInit(); } function doInit() { const controller = new Controller(); const view = new View("canvas-gl", samples, { lev...
ghadeeras/ghadeeras.github.io
src/webgl-lab/toy.ts
TypeScript
mit
708
import { FETCH_AUTHOR, UPDATE_AUTHOR } from 'shared/constants/actions'; const INITIAL_STATE = { author: {}, errorMessage: '' }; export default function (state = INITIAL_STATE, action) { switch (action.type) { case FETCH_AUTHOR.SUCCESS: // author -> { id, email, name, image, description, introductio...
tsurupin/portfolio
frontend/src/shared/reducers/authors.js
JavaScript
mit
626
'use strict' // Load requirements const slack = require('slack') const path = require('path') // Load utilities const i18n = require('../locale') const logger = require('../log') // Data directory const dataDir = path.join(__dirname, '../../../data/') // User tracking and handling module.exports = { // User flag...
jHoldroyd/trollmoji
app/libs/users/index.js
JavaScript
mit
2,250
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using RobsonROX.Util.Collections; namespace RobsonROX.Util.Extensions { // ReSharper disable once InconsistentNaming // ReSharper disable PossibleMultipleEnumeration /// <summary> /// Métodos de extensão para...
RobsonROX/Util
Util/Extensions/IEnumerableExtensions.cs
C#
mit
3,431
# Copyright (c) 2013-2014 Will Thames <will@thames.id.au> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify...
ansible/ansible-lint
src/ansiblelint/rules/MercurialHasRevisionRule.py
Python
mit
1,951
// // CoronaApplication.java // TemplateApp // // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // package com.wonhada.EnterpriseExample; /** * Extends the Application class to receive Corona runtime events and to extend the Lua API. * <p> * Only one instance of this class will be created by the An...
englekk/CoronaEnterpriseTemplate
src/android/src/com/wonhada/EnterpriseExample/CoronaApplication.java
Java
mit
3,873
package iternada import ( "errors" ) var ( errNilReceiver = errors.New("Nil Receiver") )
reiver/go-iter
nada/errors.go
GO
mit
95
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' require 'asn_translate' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| requ...
seeingidog/asn_translate
spec/spec_helper.rb
Ruby
mit
363
/* * Adjust display of page based on search results */ function findSearchResults(data, dataLength) { $("#duplicate_box").remove(); var userString = $("#searchForm #searchField").val(); var minSearchLength = 1; if (userString.length >= minSearchLength) { //this calls search() inside itself ...
OpenTechStrategies/openhmis-intake
public/js/search.js
JavaScript
mit
10,538
@extends('layouts.app') @section('title') Edit Ad @endsection @section('content') <div class="row"> @include('ads._nav', ['_active' => null]) <div class="col-9"> <h2>Edit @null($ad) "{{ $ad->name }}" @else New @endnull</h2> <div class="row mt-4"> <div cl...
CoasterPoll/CoasterPoll
resources/views/ads/ads/edit.blade.php
PHP
mit
7,337
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /** * @var yii\web\View $this * @var amnah\yii2\user\Module $module * @var amnah\yii2\user\models\User $user * @var amnah\yii2\user\models\Profile $profile * @var amnah\yii2\user\models\Role $role * @var yii\widgets\ActiveForm $form */ ?> <div class="us...
sokolby/skl-yii2-admin
views/points/_form.php
PHP
mit
757
import { Component } from '@angular/core'; import { VideoPlayerService, VideoPlayerSignals } from '../video-player.service'; @Component({ moduleId: module.id, selector: 'fo-video-controls-ws', templateUrl: 'video-controls-ws.component.html', styleUrls: ['video-controls-ws.component.css'] }) export class VideoC...
liveandie/angular-playground
src/client/app/videoPlayer/controls-w-service/video-controls-ws.component.ts
TypeScript
mit
664
package hu.progtech.cd2t100.asm; import java.lang.reflect.Type; import com.google.gson.InstanceCreator; class LocationInstanceCreator implements InstanceCreator<Location> { public Location createInstance(Type type) { return new Location(0, 0); } }
battila7/cd2t-100
cd2t-100-core/src/test/java/hu/progtech/cd2t100/asm/LocationInstanceCreator.java
Java
mit
262
#include "deps.h" // Not implemented: // SDL_ConvertSurface - need PixelFormat implementation // SDL_CreateRGBSurfaceFrom - need to think about memory management? clone? keep reference? // SDL_CreateRGBSurfaceWithFormatFrom - ditto // SDL_LoadBMP_RW // SDL_SaveBMP_RW // SDL_SetSurfacePalette - need palette implementat...
jaz303/node-sdl2-bindings
src/functions/surface_drawing.cc
C++
mit
11,676
# frozen_string_literal: true require 'test_helper' class ExpectedRandomizationTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
remomueller/slice
test/models/expected_randomization_test.rb
Ruby
mit
166
using System; using System.Collections.Generic; using System.Linq; using System.IO; public class OddLInes { static void Main() { string[] textLines = File.ReadAllLines("input.txt"); List<string> oddLines = new List<string>(); for (int i = 0; i < textLines.Length; i++) { ...
komitoff/Softuni-Programming-Fundamentals
FilesAndExceptions_Lab/E1.OddLines/OddLInes.cs
C#
mit
488
Rickshaw.namespace('Rickshaw.Graph.Axis.Y.Scaled'); Rickshaw.Graph.Axis.Y.Scaled = Rickshaw.Class.create( Rickshaw.Graph.Axis.Y, { initialize: function($super, args) { if (typeof(args.scale) === 'undefined') { throw new Error('Scaled requires scale'); } this.scale = args.scale; if (typeof(a...
butterflyhug/rickshaw
src/js/Rickshaw.Graph.Axis.Y.Scaled.js
JavaScript
mit
1,679
//Here is all the code that builds the list of objects on the right-hand //side of the Labelme tool. //The styles for this tools are defined inside: //annotationTools/css/object_list.css var IsHidingAllPolygons = false; var ProgressChecking = false; //var IsHidingAllFilled = true; var ListOffSet = 0; //This functi...
levan92/uLabel
annotationTools/js/object_list.js
JavaScript
mit
8,435
<?php namespace WebLoader\Nette; use Nette\DI\Container; use Nette\Http\IRequest; use WebLoader\Compiler; class LoaderFactory { /** @;var IRequest */ private $httpRequest; /** @var Container */ private $serviceLocator; /** @var array */ private $tempPaths; /** * @param array $tempPaths * @param IReque...
Jecma/JecmaBlog
vendor/janmarek/webloader/WebLoader/Nette/LoaderFactory.php
PHP
mit
1,559
// The MIT License (MIT) // // CoreTweet - A .NET Twitter Library supporting Twitter API 1.1 // Copyright (c) 2013-2015 CoreTweet Development Team // // 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...
haripo/CoreTweet
CoreTweet.Shared/Attribute.cs
C#
mit
2,476
define([ "knockout", // mappoint needs to be here first for addEventListener "../modules/mappoint", ], function (ko) { // create result object var result = { cityname : ko.observable(''), citydata : ko.observableArray([]) }; // subscribe to custom event window.addEventListener("getTitle", getWikipedia, fa...
JSchermers/neighborhoodmap
scripts/modules/api-call-wikipedia.js
JavaScript
mit
2,610
require 'spec_helper' describe Scraper do describe "#todos" do it "should return an array of Todo objects given a file" do path = File.dirname(__FILE__) + '/example' todos = Scraper.todos(path) todos.length.should == 2 end end end
Dillon-Benson/todo-reminder
spec/todo_reminder/scraper_spec.rb
Ruby
mit
262
class Solution { public: int minMoves(vector<int>& nums) { sort(nums.begin(), nums.end()); int ans = 0; for(int i = 1; i < nums.size(); i++){ ans += nums[i] - nums[0]; } return ans; } };
zfang399/LeetCode-Problems
453.cpp
C++
mit
247
// Copyright 2012 Room77, Inc. // Author: Uygar Oztekin #include "base/common.h" // intercept memory allocation failures and force a stack trace struct InitNewHandler { static void NewHandler () { cout << "\n*** Memory allocation Failed! About to segfault ***" << endl; // Cause a segfault. void* ptr = n...
room77/77up
public/util/memory/new_handler.cc
C++
mit
514
namespace HockeyApp.DataExchange.Contracts { public interface IArenaImportService : IImportService { } }
ekonor/hokeyapp
net47/HockeyApp/HockeyApp.DataExchange/Contracts/IArenaImportService.cs
C#
mit
120
angular.module( 'remote.xbmc-service' , [] ) .service( 'XBMCService', function( $log,$http,Storage ){ //http://kodi.wiki/view/JSON-RPC_API/v6 var XBMC = this, settings = (new Storage("settings")).get(); url = 'http://' + settings.ip + '/', command = {id: 1, jsonrpc: "2.0" }; //url = 'http://localhost:8200/...
jamesanewman/remote-control
src/app/shared/xbmc.js
JavaScript
mit
1,448
#include "Calc.hpp" #include <cmath> #define PI 3.14159265 float Calc::radToDeg(float rad) { return rad * ( 180.f / PI); } float Calc::degToRad(float deg) { return deg * (PI / 180.f); } /* * Rotation around origin: * rotation matrix P * ( x' ) = ( cos a -sin a ) * ( x ) = cos a * x - sin...
TmCrafz/ArenaSFML
src/Calc.cpp
C++
mit
2,165
# frozen_string_literal: true # Migration to create the `schedules` table used by Schedulable class CreateSchedules < ActiveRecord::Migration[5.1] def self.up create_table :schedules do |t| t.references :schedulable, polymorphic: true t.date :date t.time :time t.string :rule t.str...
gemvein/date_book
db/migrate/20170807133847_create_schedules.rb
Ruby
mit
514
import Ember from "ember"; import { module, test } from 'qunit'; import startApp from '../helpers/start-app'; import { authenticateSession } from 'code-corps-ember/tests/helpers/ember-simple-auth'; import indexPage from '../pages/index'; let application; module('Acceptance: Logout', { beforeEach: function() { a...
eablack/code-corps-ember
tests/acceptance/logout-test.js
JavaScript
mit
892
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NXDO.RJava.Attributes { /// <summary> /// 标识 java 接口的类型名称。 /// </summary> [AttributeUsage(AttributeTargets.Interface, AllowMultiple = false, Inherited = true)] public class JInterfaceAttribute : JClassA...
javasuki/RJava
NXDO.Mixed.V2015/NXDO.RJava/Attributes/JInterfaceAttribute.cs
C#
mit
1,248
<?php namespace Site\MainBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; use Symfony\Component\Validator\Constraints as Assert; /** * Site\MainBundle\Entity\ModuleMap * * @ORM\Table(name="module_map") * @ORM\Entity(repositoryClass="Site\MainBundle\Entity\Repository\ModuleMa...
olegfox/landing
src/Site/MainBundle/Entity/ModuleMap.php
PHP
mit
2,549
var data = {videos-content: {}}
ulabspro/ilq
markup/components/videos-content/data/data.js
JavaScript
mit
31
(function ($) { // Navigation scrolls $('.navbar-nav li a').bind('click', function (event) { $('.navbar-nav li').removeClass('active'); $(this).closest('li').addClass('active'); var $anchor = $(this); var nav = $($anchor.attr('href')); if (nav.length) { $('...
danurwenda/mariteam
dist/js/public/custom.js
JavaScript
mit
1,422
/* * PhraseService.java * * Copyright (C) 2018 [ A Legge Up ] * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ package com.aleggeup.confagrid.content; import java.util.List; import java.util.UUID; import com.aleggeup.confagrid.model....
ALeggeUp/confagrid
application/confagrid-webapp/src/main/java/com/aleggeup/confagrid/content/PhraseService.java
Java
mit
514
import util from 'util' import mongoose from 'mongoose' import seedData from '../seedData' const debug = require('debug')('api:server:db') mongoose.Promise = require('bluebird') const host = process.env.MONGO_HOST || 'localhost' const database = process.env.MONGO_DATABASE || 'admin' const port = process.env.MONGO_POR...
ameier38/mindhypertrophy-api
src/server/db.js
JavaScript
mit
893
package cs2020; public interface IMazeSolverWithPower extends IMazeSolver { /** * Finds the shortest path from a given starting coordinate to an * ending coordinate with a fixed number of Powers given * * @param startRow * @param startCol * @param endRow * @param endCol * @param superp...
burnflare/cs2020
Ps7/src/cs2020/IMazeSolverWithPower.java
Java
mit
569
package com.lms.dao; import java.util.List; import com.lms.jpa.Person; public interface DAOPerson { public boolean personExist(long personId); public void insertPerson(Person person); public void updatePerson(Person person); public void deletePerson(long personId); public Pers...
deepshah22/spring-mvc
src/main/java/com/lms/dao/DAOPerson.java
Java
mit
410
import * as type from '../../../src/validators/type'; describe('type Unit Tests', () => { describe('isArray method', () => { describe('when the node does not exist in the package.json file', () => { test('true should be returned', () => { const packageJson = { name: ['awesome-module'], ...
tclindner/npm-package-json-lint
test/unit/validators/type.test.ts
TypeScript
mit
6,774
import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; if (environment.production) { enableProdMode(); // GA tracking document.write('<s...
engagementgamelab/hygiene-with-chhota-bheem
website/client/src/main.ts
TypeScript
mit
669
package com.valarion.gameengine.events.menu.battlemenu; public interface ToolTip { public String getToolTip(); }
valarion/JAGE
JAGEgradle/JAGEmodules/src/main/java/com/valarion/gameengine/events/menu/battlemenu/ToolTip.java
Java
mit
120
// // LoginViewController.cs // // Author: Jeffrey Stedfast <jeff@xamarin.com> // // Copyright (c) 2013-2022 Xamarin Inc. (www.xamarin.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 Softw...
jstedfast/MailKit
samples/ImapClientDemo.iOS/ImapClientDemo.iOS/LoginViewController.cs
C#
mit
3,892
<div class="container"> <div class="row"> <div class="box"> <div class="col-sm-3 text-left"> <h3><?php echo $results; ?></h3> <p><?php echo $totalvotes.": ".$kokku_haali ?></p> <div class="btn-group-vertical" role="group" aria-label="Verti...
Kaspar94/evalimised2016
application/views/tulemused.php
PHP
mit
4,256
# encoding: utf-8 @via=#TODO your Username on the Twitter @link='#TODO your link to be shared' @title=#TODO your message title @message=#TODO your message on the share @hash_tags=#TODO your HashTags references JustShare.via=@via JustShare.link=CGI::unescape(@link) JustShare.title=@title JustShare.message=@message Just...
TonFw/just_share
lib/generators/templates/just_share.rb
Ruby
mit
346
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sylius\Bundle\CoreBundle\Model; use Doctrine\Common\Collections\Collection; use Sylius\Bund...
JRomeoSalazar/ktsport
src/Sylius/Bundle/CoreBundle/Model/ProductInterface.php
PHP
mit
3,931
$(function() { $(".ajax_filter_choice").click(function() { $(this).parent().siblings().css("font-weight", "normal"); $(this).parent().css("font-weight","bold"); }) }); ajax_filtered_fields = { request_url: "/ajax_filtered_fields/json_index/", data_loaded: "data_loaded", _appendO...
jlzeller/django-ajax-filtered-fields
media/js/ajax_filtered_fields.js
JavaScript
mit
3,652
<TS language="sr@latin" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Klikni desnim tasterom za uređivanje adrese ili oznake</translation> </message> <message> <source>Create a new address</sour...
egoldchain/egoldchain-master
src/qt/locale/bitcoin_sr@latin.ts
TypeScript
mit
15,120
""" Support to interface with Sonos players (via SoCo). For more details about this platform, please refer to the documentation at https://home-assistant.io/components/media_player.sonos/ """ import datetime import logging from os import path import socket import urllib import voluptuous as vol from homeassistant.com...
betrisey/home-assistant
homeassistant/components/media_player/sonos.py
Python
mit
20,355
=begin give highest possible product out of three integers in a given array input: array of integers (will always have at least three integers) output: highest product, integer PSEUDOCODE int_array.combination(3) => gives array of combinations of all possible groups of three array_combos.each do |group| products_arr...
mairene/interviewpractice
interviewcake/highest_product_of_array.rb
Ruby
mit
824
'use strict'; var type = require('type-detect'); var path = require('path'); var removeTrailingSeparator = require('remove-trailing-path-separator'); var errors = require('common-errors'); var prettyFormat = require('pretty-format'); module.exports = function (input, cb) { if (type(input) !== 'string') { cb(new ...
togusafish/pandawing-_-node-run-yo
lib/pick-target.js
JavaScript
mit
731
""" """ import logging import time import hiro import mock from flask import Flask, request from werkzeug.exceptions import BadRequest from flask_limiter.extension import C, Limiter from flask_limiter.util import get_remote_address def test_reset(extension_factory): app, limiter = extension_factory({C.DEFAULT_...
alisaifee/flask-limiter
tests/test_flask_ext.py
Python
mit
20,218
<?php /** * Transformer.php. * * Part of EasyWeChat. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author overtrue <i@overtrue.me> * @copyright 2015 overtrue <i@overtrue.me> * * @link https://github.com/overtrue *...
TheNorthMemory/wechat
src/EasyWeChat/Staff/Transformer.php
PHP
mit
2,874
import { Component } from '@angular/core'; // Visual Recognition import { VisualRecognitionService } from './visual-recognition.service'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'CyberusAI'; sources: Ar...
jeremy091/cyberusAI
cyberus/container/src/app/app.component.ts
TypeScript
mit
746
import os from setuptools import setup, find_packages README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-email-subscription', url='https://github.com/MagicSolutions/django-email-subscrip...
MagicSolutions/django-email-subscription
setup.py
Python
mit
888
#ifndef _OPERATIONS_HPP #define _OPERATIONS_HPP #define CL_USE_DEPRECATED_OPENCL_1_1_APIS #define CL_USE_DEPRECATED_OPENCL_1_2_APIS #include <CL/cl.h> #include "matrix.hpp" #include "mem.hpp" class Operations { public: virtual ~Operations(void) { } virtual Matrix multiply(const Matrix& lhs, const Matrix& rhs...
elecro/opencl_matrix_mul
operations.hpp
C++
mit
1,887
module ListTool module App class UseCommand < Command class << self def match? arg ['u', 'use'].include? arg end def parse argv fail_if_not_an_array(argv) list = argv.shift { list: parse_list_number!(list) } end ...
Vizvamitra/list-tool
lib/list_tool/app/commands/use_command.rb
Ruby
mit
582
<?php namespace LegalThings\DataEnricher\Processor; use LegalThings\DataEnricher\Node; use LegalThings\DataEnricher\Processor; /** * Equal processor */ class Equal implements Processor { use Processor\Implementation; /** * Apply processing to a single node * * @param Node $node */...
legalthings/data-enricher
src/DataEnricher/Processor/Equal.php
PHP
mit
707
///<reference path="../../../lib/RTCPeerConnection.d.ts"/> ///<reference path="WebRtcCommons.ts"/> "use strict"; class WebRtcProducer { private _id : string; private _debugMode : boolean = false; private _successCalled : boolean = false; private connection: RTCPeerConnection = null; private channel: RTCDa...
twerno/CardGameJS
CardGameJS/src/utils/WebRtc/WebRtcProducer.ts
TypeScript
mit
6,411
# ~*~ encoding: utf-8 ~*~ from pymongo import MongoClient from pandas import read_csv from datetime import date mongodb = MongoClient('192.168.178.82', 9999) db = mongodb['dev'] drug_collection = db['drug'] drugs = read_csv('~/Dokumente/bfarm_lieferenpass_meldung.csv', delimiter=';', encoding='iso8859_2').to_dict() ...
schenkd/webdev-project
data_import.py
Python
mit
1,815
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {AotCompilerHost, EmitterVisitorContext, ExternalReference, GeneratedFile, ParseSourceSpan, TypeScriptEmitter...
gjungb/angular
packages/compiler-cli/src/transformers/compiler_host.ts
TypeScript
mit
24,590
/** * @author fengchen, Dongyun Jin, Patrick Meredith, Michael Ilseman * * To change the template for this generated type comment go to * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments */ package llvmmop; import java.io.File; import java.io.FileWriter; import java.io.Filena...
runtimeverification/llvmmop
src/llvmmop/LLVMMOPMain.java
Java
mit
17,124
/** * The DOM Element unit handling * * Copyright (C) 2008-2011 Nikolay Nemshilov */ var Element = RightJS.Element = new Class(Wrapper, { /** * constructor * * NOTE: this constructor will dynamically typecast * the wrappers depending on the element tag-name * * @param String element tag n...
rightjs/rightjs-core
src/dom/element.js
JavaScript
mit
2,291
// dear imgui, v1.71 WIP // (main code and documentation) // Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp for demo code. // Newcomers, read 'Programmer guide' below for notes on how to setup Dear ImGui in your codebase. // Get latest version at https://github.com/ocornut/imgui // Releases change-log at http...
sherief/ImGuizmo
example/imgui.cpp
C++
mit
483,056
using System.Runtime.InteropServices; using System; using OpenGL; namespace Rox.Geom { [StructLayout(LayoutKind.Sequential, Pack = 2)] public struct Quad { public UvVertex V0 { get; private set; } public UvVertex V1 { get; private set; } public UvVertex V2 { get; private set; } ...
mbolt35/Rox
Rox/Rox/Geom/Quad.cs
C#
mit
1,017
# typed: strict # frozen_string_literal: true module Ffprober module Parsers class FileParser extend T::Sig sig do params( file_to_parse: String, exec: T.any(Ffprober::Ffmpeg::Exec, T.untyped) ).void end def initialize(file_to_parse, exec = Ffprober::F...
beanieboi/ffprober
lib/ffprober/parsers/file.rb
Ruby
mit
662
"""Molt Web API with Interface.""" import re import redis import docker import subprocess import os import shlex import requests import sys import argparse from flask import Flask, Response, render_template, abort, request from molt import Molt, MoltError app = Flask(__name__) # コマンドライン引数のパース parser = argparse.Argum...
swkoubou/molt
molt_app.py
Python
mit
5,850
package com.sdl.selenium.extjs6.form; import com.sdl.selenium.InputData; import com.sdl.selenium.TestBase; import com.sdl.selenium.extjs6.panel.Panel; import com.sdl.selenium.web.SearchType; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import java.time.Duration; import static org.ha...
sdl/Testy
src/test/functional/java/com/sdl/selenium/extjs6/form/RadioGroupIntegrationTest.java
Java
mit
1,813
require "rails_helper" RSpec.describe UserMailer, type: :mailer do # describe "follow_up_email" do # let(:mail) { UserMailer.follow_up_email } # # it "renders the headers" do # expect(mail.subject).to eq("Follow up email") # expect(mail.to).to eq(["to@example.org"]) # expect(mail.from).to...
kirbrown/movies_sherlock_rails
spec/mailers/user_mailer_spec.rb
Ruby
mit
463
// server.js // BASE SETUP // ============================================================================= // call the packages we need var express = require('express'); // call express var app = express(); // define our app using express var bodyParser = require('body-parser'); var...
vilaskumkar/test-jenkins
API/server.js
JavaScript
mit
6,479
<?php /* * This file is part of the PHPExifTool package. * * (c) Alchemy <support@alchemy.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\Pentax; use JMS\Serializer\Annotation\ExclusionPolicy...
bburnichon/PHPExiftool
lib/PHPExiftool/Driver/Tag/Pentax/DigitalFilter01.php
PHP
mit
2,944
/** * @fileoverview * Base types and classes used by chem editor. * @author Partridge Jiang */ /* * requires /lan/classes.js * requires /chemDoc/issueCheckers/kekule.issueCheckers.js * requires /widgets/operation/kekule.operations.js * requires /render/kekule.render.base.js * requires /render/kekule.render.bo...
partridgejiang/Kekule.js
src/widgets/chem/editor/kekule.chemEditor.baseEditors.js
JavaScript
mit
258,521
export interface DragDelta { x: number y: number } let targets: HTMLElement[] = [] export function getDragDeltas ( onDragDelta: (d: DragDelta) => void, onMouseDown?: (e?: MouseEvent) => void ) { let oldX = 0 let oldY = 0 let target: HTMLElement function onmousedown (e: MouseEvent) { target = e.currentTar...
trivial-space/flow-tools
lib/utils/component-helpers.ts
TypeScript
mit
984
package com.kensenter.p2poolwidget; import android.content.Context; import android.content.SharedPreferences; public class GetPrefs { public static final String PREFS_NAME = "p2poolwidgetprefs"; public String GetWidget(Context ctxt, int WidgetId){ SharedPreferences settings = ctxt.getSharedPreference...
ksenter/P2PoolWidget
src/com/kensenter/p2poolwidget/GetPrefs.java
Java
mit
3,843
<?php namespace OC\PlatformBundle\Entity; use Doctrine\ORM\Mapping as ORM; use OC\PlatformBundle\Entity\Advert; /** Une annonce peut contenir plusieurs candidatures, alors qu'une candidature n'appartient qu'à une seule annonce */ /** * @ORM\Table(name="application") * @ORM\Entity(repositoryClass="OC\PlatformBundl...
walter-da-costa/sf2project
src/OC/PlatformBundle/Entity/Application.php
PHP
mit
1,858
package com.gulj.common.util; import java.io.UnsupportedEncodingException; public enum FeijianCode { SAVE_SUCCESS("0001","保存成功"), SAVE_ERROR("0002","保存失败"), UPDATE_SUCCESS("0003","修改成功"), UPDATE_ERROR("0004","修改失败"), DELETE_SUCCESS("0005","删除成功"), DELETE_ERROR("0006","删除失败")...
gulijian/joingu
gulj-common-util/src/main/java/com/gulj/common/util/FeijianCode.java
Java
mit
1,732
<?php namespace App; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Database\Eloquent\Model as Eloquent; class User extends Authenticatable { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'username', 'email', 'passwor...
Pelkar/Timeo
laravel/app/User.php
PHP
mit
522
#region MIT // /*The MIT License (MIT) // // Copyright 2016 lizs lizs4ever@163.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 limitat...
lizs/Pi
Pi.Framework/ecs/entity/IProperty.cs
C#
mit
2,676
from django.contrib import admin try: from django.contrib.auth import get_permission_codename except ImportError: # pragma: no cover # Django < 1.6 def get_permission_codename(action, opts): return '%s_%s' % (action, opts.object_name.lower()) class ObjectPermissionsModelAdminMixin(object): d...
smcoll/django-rules
rules/contrib/admin.py
Python
mit
1,879
/* MIT License Copyright (c) 2022 Looker Data Sciences, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
looker-open-source/components
packages/components/src/Form/Inputs/Slider/index.ts
TypeScript
mit
1,135
using Google.Protobuf; using PoGo.ApiClient.Authentication; using PoGo.ApiClient.Enums; using PoGo.ApiClient.Exceptions; using PoGo.ApiClient.Helpers; using PoGo.ApiClient.Interfaces; using PoGo.ApiClient.Rpc; using POGOProtos.Networking.Envelopes; using POGOProtos.Networking.Requests; using POGOProtos.Networking.Requ...
PoGo-Devs/PoGo
src/PoGo.ApiClient/PokemonGoApiClient.cs
C#
mit
19,829
var sys = require('pex-sys'); var glu = require('pex-glu'); var geom = require('pex-geom'); var gen = require('pex-gen'); var materials = require('pex-materials'); var color = require('pex-color'); var gui = require('pex-gui'); var Cube = gen.Cube; var Sphere = gen.Sphere; var Mesh = glu.Mesh; var TexturedCubeMap = ma...
szymonkaliski/pex-examples
src/glu.TextureCube.mipmap/main.js
JavaScript
mit
1,828
// namespace line first import * as XA from "X"; import XD, { X2 } from "X"; import { X3 } from "X";
r-murphy/babel-plugin-ui5
packages/plugin/__test__/fixtures/imports/import-duplicate-src-1.js
JavaScript
mit
101
<?php namespace ONGR\CookiesBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; use Symfony\Component\DependencyInjection\ContainerBuilder; use ONGR\CookiesBundle\DependencyInjection\Compiler\CookieCompilerPass; /** * This class is used to register component into Symfony app kernel. */ class ONGRCookiesBundle ...
ongr-io/CookiesBundle
ONGRCookiesBundle.php
PHP
mit
542
import { IFilterOptionDef } from '../../interfaces/iFilter'; import { IScalarFilterParams } from './scalarFilter'; import { ISimpleFilterParams } from './simpleFilter'; import { every } from '../../utils/array'; /* Common logic for options, used by both filters and floating filters. */ export class OptionsFactory { ...
ceolter/angular-grid
community-modules/core/src/ts/filter/provided/optionsFactory.ts
TypeScript
mit
2,502
<?php namespace MatchBundle\Controller; use Intervention\Image\Constraint; use Intervention\Image\ImageManager; use MatchBundle\Entity\Game; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\BinaryFileResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Comp...
matthieuy/battleship
src/MatchBundle/Controller/BoatController.php
PHP
mit
7,632
package com.creationgroundmedia.twitternator.activities; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.View; import com.codepath.oauth.OAuthLoginActionBarActivity; import com.creationgroundmedia.twitternator.R; import com.creationgroundmedia.twitternator.Twitte...
geocohn/Twitternator
app/src/main/java/com/creationgroundmedia/twitternator/activities/LoginActivity.java
Java
mit
1,426
// // models.hpp // animeloop-cli // // Created by ShinCurry on 2017/4/3. // Copyright © 2017年 ShinCurry. All rights reserved. // #ifndef models_hpp #define models_hpp #include <iostream> #include <opencv2/opencv.hpp> namespace al { typedef std::tuple<long, long> LoopDuration; typedef std::vector<LoopDur...
moeoverflow/animeloop-cli
animeloop-cli/models.hpp
C++
mit
638
<?php namespace RoyallTheFourth\HtmlDocument\Set; use RoyallTheFourth\HtmlDocument\RenderInterface; interface SetInterface extends RenderInterface { public function iterate(); public function add($item); public function merge($set); }
royallthefourth/html-document
src/Set/SetInterface.php
PHP
mit
250
#ifndef BIGUNSIGNEDINABASE_H #define BIGUNSIGNEDINABASE_H #include "NumberlikeArray.hh" #include "BigUnsigned.hh" #include <string> /* * A BigUnsignedInABase object represents a nonnegative integer of size limited * only by available memory, represented in a user-specified base that can fit * in an `unsigned short...
marvins/ProjectEuler
cpp/common/BigUnsignedInABase.hh
C++
mit
4,112