id
stringlengths
64
64
content
stringlengths
500
100k
language
stringclasses
29 values
path
stringlengths
4
333
repo
stringlengths
5
116
license
stringclasses
15 values
size
int64
500
100k
lines
int64
26
8.06k
source
stringclasses
1 value
9571b3531da5f8cc18ee307276b93bb4b46ab841716be0cafbc373f7a63091c5
#!/usr/bin/env node // requires var createApp = require('../lib/create-app') var debug = require('debug')('qpm_media:server.js') var express = require('express') var program = require('commander') var wc_express = require('wc_express') function bin(argv) { program .option('-c, --currency <currency>',...
JavaScript
bin/server.js
quantumpayments/media
mit
1,272
54
codeparrot/github-code
1c4c81cffa17ea04c019cc047baa3553842c65696abc4af36633bba1c5f427a7
<?php /** * TOP API: taobao.crm.grademkt.member.query request * * @author auto create * @since 1.0, 2013-12-10 16:57:25 */ class CrmGrademktMemberQueryRequest { /** * 会员nick **/ private $buyerNick; /** * 系统属性,json格式 **/ private $feather; /** * 会员属性-json format 生成方法见http://open.taobao.com/doc...
PHP
web/doc/Resources/open/taobao/taobao-sdk-PHP-online_standard-20131210/top/request/CrmGrademktMemberQueryRequest.php
allengaller/mazi-cms
mit
1,459
84
codeparrot/github-code
fa8bb5930bac309dc316fdbe72ba925e5a77fe3028934408b45dd6ca1c16649a
function Repair-DbaInstanceName { <# .SYNOPSIS Renames @@SERVERNAME to match with the Windows name. .DESCRIPTION When a SQL Server's host OS is renamed, the SQL Server should be as well. This helps with Availability Groups and Kerberos. This command renames @@SERVERNAME to match wi...
PowerShell
functions/Repair-DbaInstanceName.ps1
wsmelton/dbatools
mit
13,724
251
codeparrot/github-code
999347673ffde6ba1c34c141aff23b7bb55261762c829e08da20612bd058f3ee
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>smc: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" re...
HTML
clean/Linux-x86_64-4.08.1-2.0.5/released/8.8.2/smc/8.10.0.html
coq-bench/coq-bench.github.io
mit
7,317
181
codeparrot/github-code
19c123fb33ae5b262c7ce1440ce042b2ac527c3b7201eb27568a7bbbf1bd42ca
#include "bitcoinunits.h" #include <QStringList> BitcoinUnits::BitcoinUnits(QObject *parent): QAbstractListModel(parent), unitlist(availableUnits()) { } QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits() { QList<BitcoinUnits::Unit> unitlist; unitlist.append(BTC); unitlist.append(mBT...
C++
src/qt/bitcoinunits.cpp
morriscoin/morriscoin
mit
4,286
182
codeparrot/github-code
5e6dca6f37cb1049df61019ac6729eb528d5da400fbaaaad706208f6ea8e99a2
#include "pcsc.h" VALUE cPcscIoRequest; /* Wraps a SCARD_IO_REQUEST, tracking its allocation etc. */ struct SCardIoRequestEx { SCARD_IO_REQUEST *pcsc_request; int mallocd; }; /* Custom free for Smartcard::PCSC::IoRequest. */ static void PCSC_IoRequest_free(struct SCardIoRequestEx *_request) { if(_request != NULL...
C
ext/smartcard_pcsc/pcsc_io_request.c
a2800276/smartcard
mit
4,110
131
codeparrot/github-code
0d747c92453844141c9a1c69bf50b392040eff396abb7bf10992966c23e727d3
/* Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file This file is part of 0MQ. 0MQ is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or ...
C++
Zmq/proxy.cpp
bin-xiang/filemq
mit
7,369
218
codeparrot/github-code
0e70d5f93972bd8ed56d82a065c5d45858197a7e1f4ec9ef38395587f8d1bc25
<?php declare(strict_types=1); /** * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files m...
PHP
src/Network/Socket.php
ADmad/cakephp
mit
14,931
505
codeparrot/github-code
e5a367da12803b89b1d0803699a5fc523f2aecfd17cc3160412f2fb74fe9f7d3
'use strict'; import { deleteSelection, Tool } from 'substance' import XRefTargets from './XRefTargets' /* Shown in OverlayTools */ class EditXRefTool extends Tool { constructor(...args) { super(...args) this.handleActions({ 'closeModal': this._doneEditing, 'doneEditing': this._doneEditing ...
JavaScript
lib/jats/xref/EditXRefTool.js
InSilicoLabs/texture
mit
1,419
75
codeparrot/github-code
f7d97225119ae06e6f765821d9d698968510d7b0943810051a55c6e20ff2e306
# -*- coding: utf-8 -*- """Queue data structure.""" from __future__ import unicode_literals # Use the doubly-linked list as the parent just as we used the singly-linked list as the parent for the stack. from double import DList class Queue(object): """Create a Queue class.""" def __init__(self, value_list=N...
Python
src/queue.py
jefferyrayrussell/data-structures
mit
1,028
34
codeparrot/github-code
792df66615e0741fd79c235b10b464c7c0b09ba5be2607f27adba9654d45517a
// // System.Configuration.ConfigurationLocation.cs // // Authors: // Duncan Mak (duncan@ximian.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 // wi...
C#
src/System.Configuration/System.Configuration/ConfigurationLocationCollection.cs
gboucher90/system-configuration-netcore
mit
3,382
96
codeparrot/github-code
29d36b896db79c9c8f0d9ca0695af85a5de175c546dae98577e8caa27a1ba77b
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
Python
lib/python2.7/site-packages/google/cloud/vision/feature.py
ammarkhann/FinalSeniorCode
mit
2,864
87
codeparrot/github-code
9e2f31eb870e74b5082e8c2fa40074e5045360a4239e6506a2f44b5e98e52d2c
/* eslint-env mocha */ /* eslint-disable no-unused-expressions, react/no-multi-comp, react/prop-types */ import { expect } from 'chai'; import React from 'react'; import TestUtils from 'react-dom/test-utils'; import { haveXpath } from '../src/index'; const { Component } = React; const CreateClass = React.createClass...
JavaScript
test/react-tests.js
relekang/have-xpath
mit
2,147
53
codeparrot/github-code
1ae9d96d580093ec6395c3b326702565d8cb66b0bc32223717f3289f04968976
<?php /** * Custom function to get current URL **/ function curPageURL() { $pageURL = 'http'; if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUE...
PHP
wp-content/themes/photome/lib/custom.lib.php
rsantellan/wordpress-ecommerce
mit
48,248
1,621
codeparrot/github-code
ac4eb595ef3804f5dc2c4c6f98ad82293b1a60277002b30f84de791bcf15ee7e
require 'net/http' require 'sys/proctable' require 'timeout' module Fintop # Contains functions for probing a system to discover Finagle server # processes running locally. module Probe extend self class FinagleProcess attr_reader :pid attr_reader :admin_port attr_reader :stats_lib ...
Ruby
lib/fintop/probe.rb
evnm/fintop
mit
2,372
74
codeparrot/github-code
adde3f25ff8c479ccfcd34183153a2027719bd8dd2bc47dd03d0d63cf4e07e9c
{% load i18n %} {% block buttons %} <div class="grid-x"> <div class="large-6 cell"> <div class="button-group"> <button type="button" class="button" onclick="submitEvent(this); return false;" id="sendQueryButton"> {% trans "Send query" %} </but...
HTML
multiseek/templates/multiseek/multiseek_buttons.html
mpasternak/django-multiseek
mit
1,705
47
codeparrot/github-code
a1ba966eae87fcc39cc51fb0e0dae3767a6c542fd4c3131a2c93e0f04010bb97
'use strict'; // Intrinsic modules. var util = require('util'); var path = require('path'); var fs = require('fs'); // Npm modulez var _ = require('lodash'); // "Constants" var PLUGIN_NAME = 'kalabox-plugin-pantheon'; var TERMINUS = 'terminus:t0.9.3'; /* * Constructor. */ function Terminus(kbox, app) { // Term...
JavaScript
app/plugins/kalabox-plugin-pantheon/lib/terminus.js
ManatiCR/kalabox-app-pantheon
mit
11,060
471
codeparrot/github-code
d9fe4dc517d6571edadae26b555cad81e797c8152a881bd6c64ece06f6b0de79
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; // ReSharper disable once CheckNamespace namespace Docs.Compiler.Core { public static class StringExtensions { public static string FromPascalCase(this string text) { return Reg...
C#
src/Docs.Compiler.Core/Extensions/StringExtensions.cs
devlead/documentation
mit
3,026
95
codeparrot/github-code
bb9b9dd7230f7e89082aa871f82f3974762593d4629745d7b276394bb50858e0
package org.ethereum.jsontestsuite; import org.ethereum.core.Block; import org.ethereum.core.Transaction; import org.ethereum.db.BlockStore; import org.ethereum.facade.Repository; import org.ethereum.util.ByteUtil; import org.ethereum.vm.DataWord; import org.ethereum.vm.Program; import org.ethereum.vm.ProgramInvoke; i...
Java
ethereumj-core/src/main/java/org/ethereum/jsontestsuite/TestProgramInvokeFactory.java
swaldman/ethereumj
mit
3,303
97
codeparrot/github-code
bd525367f9149be617f0166dafd5e9344ebdfa8c932c3955b6b45eb3f3c5a832
using System; using System.Collections.Generic; namespace PMKS.VelocityAndAcceleration { internal class VelocityEquationForFixedToSlide : VelocityJointToJoint { private int slideSpeedIndex = -1; internal VelocityEquationForFixedToSlide(Joint slideJoint, Joint fixedJoint, Link link, boo...
C#
PlanarMechanismSimulator/VelocityAndAcceleration/VelocityEquationForFixedToSlide.cs
DesignEngrLab/PMKS
mit
2,660
69
codeparrot/github-code
797edf14ece178c6618e828acdc1e34ba0004c3ef99bacad18475ef642dd96ad
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; using System.Net; using System.Web; using System.Web.Mvc; using microForum.Models; namespace microForum.Controllers { public class TagsController : Controller { private microForumDbContext d...
C#
microForum/Controllers/TagsController.cs
rohansen/microforum
mit
3,503
128
codeparrot/github-code
917334ab1387efea8c550561bebaf339dce578dceac812e0be8c4e686db8d8e7
<div class="docs-api"> <h2> API reference for Angular Material menu </h2><p class="docs-api-module-import"> <code> import {MatMenuModule} from '@angular/material/menu'; </code> </p> <h3 id="material-menu-directives" class="docs-header-link docs-api-h3"> <span hea...
HTML
docs-content/api-docs/material-menu.html
angular/material2-docs-content
mit
30,514
1,081
codeparrot/github-code
8713d4a2183190d9164377f17cfbbec5c67d7b53edab5932175a1880a002a770
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Api extends CI_Controller { private $user_id = null; public function __construct(){ parent:: __construct(); $this->_authenticity(); $this->load->model('Dashboard_model'); } private function _authenticity(){ $user_id =$this->s...
PHP
application/controllers/Api.php
dnovencido/TRIMS
mit
9,457
333
codeparrot/github-code
ade91680c896f73445c2ba9419e80e6ea9a93358a2bdb5979e59aad7c5215314
#!/bin/sh set -e echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" install_framework() { if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then local source="${BUILT_PRO...
Shell
Pods/Target Support Files/Pods-MiaoShow/Pods-MiaoShow-frameworks.sh
Jerome00/MiaoShow
mit
5,055
118
codeparrot/github-code
f87c66bf56541da4e2becef9a0a3cdbcd68ddd9e561201b593a8e331d440abcf
// // ExtraUtilities decompiled and fixed by Robotia https://github.com/Robotia // package com.rwtema.extrautils.helper; import java.util.Iterator; import java.util.Collection; import java.util.WeakHashMap; import java.util.Set; import java.util.AbstractSet; public class WeakSet<E> extends AbstractSet<E> implement...
Java
ExtraUtilitiesBuilder/src/main/java/com/rwtema/extrautils/helper/WeakSet.java
Robotia/ExtraUtilities
mit
1,906
80
codeparrot/github-code
1a1270227fed1ede0c390615eb0ca1d4efbc12d799aa413b4b0257e71bc76f24
module Hahashie class Trash < Dash class << self attr_reader :props_aliases attr_reader :transforms attr_reader :changers end def self.property(name, options = {}) super(name, options) @props_aliases ||= {} @changers ||= {} if options[:from] if options...
Ruby
lib/hahashie/trash.rb
AndreySavelyev/hahashie
mit
1,413
59
codeparrot/github-code
c102839d938e95444a91370d38aa1681981684418c4cdc297d357672b0f27636
import discord from discord.ext import commands from PIL import Image, ImageDraw, ImageFont import pathvalidate import requests import os class Welcome: def __init__(self, bot): self.bot = bot async def on_member_join(self, member): template = Image.open('extras/template.png') draw = ImageDraw.Draw(...
Python
cogs/test-welcome.py
heyitswither/Alpha-Bot
mit
2,775
74
codeparrot/github-code
7f0c7425c49aca8422b1c99d5fcab7f5f9b73b75e55a1ab7107c17278d163f2e
#include "spectrdp.h" #include "stdlib.h" double* SpectrSignal::valueAt(int index) { return &(array.v[index * this->spectrSize]); } int SpectrSignal::size() { return array.x / this->spectrSize; } void SpectrSignal::setValueAt(double* value, int index) { for(int i=0; i<this->spectrSize; i...
C++
utills/dp-analyse/spectrdp.cpp
zhitko/speech-apps
mit
823
38
codeparrot/github-code
eaa05f8dfbc0056529e73027be7d48aa7cf5093d47c6200a55e8fd3bc7405a0a
using System; namespace Avalonia.Reactive { internal class AvaloniaPropertyObservable<T> : LightweightObservableBase<T>, IDescription { private readonly WeakReference<IAvaloniaObject> _target; private readonly AvaloniaProperty _property; private T _value; public AvaloniaProper...
C#
src/Avalonia.Base/Reactive/AvaloniaPropertyObservable.cs
akrisiun/Perspex
mit
1,899
67
codeparrot/github-code
1885604d1623adbd10458f2df30665d2a9ae22b9f423e52bda8f9305a38489c8
'use strict'; describe('node-resemble.js', function() { var EXAMPLE_LARGE_IMAGE = 'example/LargeImage.png'; var EXAMPLE_SMALL_IMAGE = 'example/SmallImage.png'; var EXAMPLE_PEOPLE_IMAGES = [ 'example/People.png', 'example/People2.png' ]; var OPTIMISATION_SKIP_STEP = 6; var DEFAULT_LARGE_IMAGE_THRESHOL...
JavaScript
resemble.spec.js
lksv/node-resemble.js
mit
7,851
198
codeparrot/github-code
82fb9a928a0a55b761360f9b40018a8d863e32cf2abc1839380adc07ab3a4738
<?php namespace App\Controllers; class Auth extends \Core\Controller { function __construct($app) { parent::__construct($app); } public function login() { if($this->app->getConfig()['private'] === true) { // If already logged in will be redirectec to '/' if( ! isset($_SESSION['username']) ...
PHP
app/controllers/auth.php
jbleuzen/Picturo
mit
1,271
48
codeparrot/github-code
48d54e7b0a69ea1d544fbd4071f07c82c3dcc8b8149b950fd517420b08f628e4
import api from '../../api'; import history from '../../module/history'; export const PROJECT_LOCK = "PROJECT_LOCK"; export const PROJECT_OK = "PROJECT_OK"; export const PROJECT_FAIL = "PROJECT_FAIL"; export const PROJECT_EDIT_START = "PROJECT_EDIT_START"; export const PROJECT_EDIT_FINI...
JavaScript
src/container-page/project/_actions.js
artemdudkin/gtd
mit
2,622
108
codeparrot/github-code
3a42b957c274ecc36f107974ebe77a64163265abe9dd40b387924a4127f655af
import { ADD_TO_DO } from '../constants/ActionTypes'; import { EDIT_TO_DO } from '../constants/ActionTypes'; import { SAVE_TO_DO } from '../constants/ActionTypes'; import { DELETE_TO_DO } from '../constants/ActionTypes'; import { CHANGE_COLOR } from '../constants/ActionTypes'; import { COMPLETE_TO_DO } from '../constan...
JavaScript
src/app/actions/Todos.js
wangleiwan/react-redux-webpack-TodoList
mit
1,549
76
codeparrot/github-code
4654fda8a05c0385726f5e4d45f0145fd41623b6e98ea6b1c79ebf42a3706798
/* * Copyright (c) 2016 Oiri Project * * This software is distributed under an MIT-style license. * See LICENSE file for more information. */ package com.github.kimikage.oiri.svg; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; import jav...
Java
app/src/test/java/com/github/kimikage/oiri/svg/XmlFragment.java
kimikage/oiri
mit
1,939
66
codeparrot/github-code
792b2faeb7c9a1c8950d3c14ad8e1440c4adef09952b065b52785d553b78127d
using System; using System.Collections.Generic; using System.Linq; #if CLR_35 using CobaltAHK.v35Compat; #endif namespace CobaltAHK { public abstract class Operator { protected Operator(string op, uint prec) { code = op; precedence = prec; set.Add(this); } public virtual bool Matches(string op) ...
C#
CobaltAHK/Operator.cs
maul-esel/CobaltAHK
mit
11,733
247
codeparrot/github-code
9c9270c19727e3e79a5c03cda7aef560a566702996454a72affcd3bf7c2c1c88
define( [ 'Loader', 'async' ], function ( Loader, async ) { var GLTFLoader = Loader.extend( { defaults: Loader._.extend( {}, Loader.prototype.defaults ), initialize: function( options ){ options = options || {}; GLTFLoader.super.initialize.call( this, options ); },...
JavaScript
src/gltfloader.js
mrtone/coo
mit
2,944
103
codeparrot/github-code
e2d17a4ee005d2d2185505070de32c095df1c6698427dd2a1d3e0bcacbc1d47d
// ImGui - standalone example application for Glfw + OpenGL 2, using fixed pipeline // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp. #include "imgui/imgui.h" #include "imgui_backend/imgui_impl_glfw.h" #include <stdio.h> #include <GLFW/glfw3.h> extern "C"{ #include "config...
C++
climain.cpp
klx3300/CSMsrv
mit
67,416
1,586
codeparrot/github-code
7fee7da4acedd5c93aca82a11aacb6867f20b377306a921971545ed31496249e
import Result from './Result'; const users = [ { name: 'admin', password: 'admin', admin: true}, { name: 'guest', password: 'guest'} ]; function isDuplicate(name, exceptIdx) { return users.some( (user, idx) => user.name === name && idx !== exceptIdx ); } export function getUsers() { return Result.Ok(users.sl...
JavaScript
examples/admin/src/api/users.js
yelouafi/elm-arch-with-snabbdom
mit
1,356
57
codeparrot/github-code
ee47ceca45dd1a547e4d9c619a9efc1f3f8d90c4a819764147cc242fb9af737f
import pyblish.api class ExtractMindbenderModel(pyblish.api.InstancePlugin): """Produce a stripped down Maya file from instance This plug-in takes into account only nodes relevant to models and discards anything else, especially deformers along with their intermediate nodes. """ label = "Mo...
Python
polly/plugins/maya/publish/extract_model.py
mindbender-studio/config
mit
2,116
66
codeparrot/github-code
c1b4e07759db480027fc4754ef534c3503d15ddbccc660ee412d9cb128dac386
public class solution{ public int divide(int divident, int divisor){ int sign = 1; if((divident> 0 && divisor<0)||(divident<0 && divisor>0)){ sign = -1; } long ldivident = Math.abs((long)divident); long ldivisor = Math.abs((long)divisor); if(ldivisor==0) return Integer.MAX_VALUE; if(ldivident==0|| l...
Java
DivideTwoIntegers.java
fang19911030/Leetcode
mit
799
36
codeparrot/github-code
9ad5ff2109a85adc5e2b22bb3a56a2d2b816fe366dc49eb5f2dbf9ad2a8d659e
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> ...
HTML
Reports/sy/system.time.1.0.8/System.Time-net35.html
kuhlenh/port-to-core
mit
11,616
285
codeparrot/github-code
7e6a99609f4d91be2feb4f555130929991469747329ecbd4c8bf06a692730cca
package typeclass import typeclass.Prelude._ import scalaprops.Properties trait Monad[F[_]] extends Applicative[F]{ def flatMap[A, B](fa: F[A])(f: A => F[B]): F[B] def flatten[A](ffa: F[F[A]]): F[A] = flatMap(ffa)(identity) def ap[A, B](fab: F[A => B], fa: F[A]): F[B] = flatMap(fab)(map(fa)(_)) overri...
Scala
answer/src/main/scala/typeclass/Monad.scala
julien-truffaut/Typeclass
mit
2,309
71
codeparrot/github-code
5567181d3116828581d5ca180c33e0c89edbcff23e9aa3647f946a02f11e47c5
package fr.sgr.formation.voteapp.elections.services; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Service; import fr.sgr.formation.voteapp.elections.modele.Election; import fr.sgr.formation.voteapp.elections.services.ElectionInvalideException.ErreurElection; import fr.sgr.formati...
Java
voteapp-webapp/src/main/java/fr/sgr/formation/voteapp/elections/services/ValidationVoteService.java
ManonYG/projetGL
mit
1,387
38
codeparrot/github-code
711c2b73a2b5a3982550cf5550f6b0fd7b91ed49a80612af5f8ab3f96f825834
/* @flow */ import type { Duplex } from 'stream'; import type { Endpoint } from 'neo-blockchain-node-core'; import through from 'through'; import { ReceiveMessageTimeoutError } from './errors'; export type PeerOptions<Message> = {| endpoint: Endpoint, stream: Duplex, transform: Duplex, // eslint-disable-next...
JavaScript
packages/neo-blockchain-network/src/Peer.js
neotracker/neo-blockchain
mit
4,266
176
codeparrot/github-code
0e48f05d864c37a47326f22ebacaa00bf1ea5c2a742e01c6352acc5527064fda
<?php if(!defined('HOST'))die('not access');?> <script > $(document).ready(function(){ {params} var atype=params.atype,month=js.now('Y-m'); var a = $('#view_{rand}').bootstable({ tablename:'admin',params:{'atype':atype,'month':month},fanye:atype=='all', modedir:'{mode}:{dir}',storeafteraction:'custtotalafter',st...
PHP
xhxtbgxt_A5/xinhu_utf8_1.5.7/webmain/main/customer/rock_customer_total.php
yaoxf/waterCup
mit
3,620
143
codeparrot/github-code
15183c1f6e9446144288e5afb71c48bc1c9f4fb25f6b993a1e071f2b5aba4c62
package betterwithaddons.container; import betterwithaddons.block.BlockWritingTable; import betterwithaddons.interaction.InteractionBTWTweak; import betterwithaddons.item.ModItems; import betterwithaddons.util.ItemUtil; import betterwithmods.common.registry.block.recipe.IngredientSpecial; import net.minecraft.entity.p...
Java
src/main/java/betterwithaddons/container/ContainerRename.java
DaedalusGame/BetterWithAddons
mit
8,377
265
codeparrot/github-code
59964f78ad7b0a36cea41642bef24112ecc119173c10935601f4868806cc3ffc
'use strict'; angular.module('bellows.services') .service('sessionService', ['jsonRpc', '$window', function(jsonRpc, $window) { var privateData = angular.copy($window.session); this.currentUserId = function() { return $window.session.userId; }; this.fileSizeMax = function() { return $wi...
JavaScript
src/angular-app/bellows/js/bellows.services.session.js
UpstatePedro/web-languageforge
mit
2,719
93
codeparrot/github-code
02fe309eacb99c9996b39614e1ab1e6002b24ac88f9cb6957b36560edf6cf9ce
-- -- User: pat -- Date: 9/17/15 -- --[[ Takes a tac candidate file, tab seperated vocab idx file, and a trained uschema encoder model and exports a scored candidtate file to outfile ]]-- package.path = package.path .. ";src/?.lua;src/nn-modules/?.lua;src/eval/?.lua;src/classifier/?.lua;" require 'torch' require 'rn...
Lua
src/eval/ScoreCandidateFile.lua
patverga/torch-relation-extraction
mit
1,801
58
codeparrot/github-code
34db99d0c244b21c8b1115538f17f9871b2a2380f349439579be47d619b019e1
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
TypeScript
src/autorest-core/lib/ref/uri.ts
sergey-shandar/autorest
mit
6,955
214
codeparrot/github-code
b3ade21c43dcd34a8b9d0b9d8d74281d230e2c55e6efe69297cf6acbaa6e1564
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><title>CS411 - MiniJava Project</title> <style type="text/css"> p, table, li, h1, h2, h3 { font-family: verdana,arial,'sans serif'; } p, h1, h2, h3, table, li, hr { margin-left: 10pt; } body { } p, li { font-size: smaller; } pre { margin-left:...
HTML
docs/readme-project-1.html
mikedouglas/MiniJava
mit
9,142
92
codeparrot/github-code
3e23b8e5abb4374a685d7b807807261b457243945fe7e34a8fd741311b0d10bd
const TEMPLATE = ` <section> <h1>Caster: {{$ctrl.caster.name}}</h1> <video-list params="$ctrl.searchParams" page-load="true"></video-list> </section> `; angular .module(`${window.APP_NAME}.pages`) .component('casterPage', { template: TEMPLATE, controller: casterPage }); /** * @emits Constants.Event.C...
JavaScript
web/src/caster/caster.page.js
idooo/stormvods
mit
984
41
codeparrot/github-code
f1dc21c10bf261508f5a4935bd54231c0f50a59382fcbf9f9fed3ba3b3335bb3
package xyz.brassgoggledcoders.steamagerevolution.tileentities.renderers; import com.teamacronymcoders.base.util.RenderingUtils; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraftforge.fluids.FluidStack; import net.minecraftforge.flui...
Java
src/main/java/xyz/brassgoggledcoders/steamagerevolution/tileentities/renderers/TileEntityFluidIORenderer.java
BrassGoggledCoders/SteamAgeRevolution
mit
1,246
30
codeparrot/github-code
0cb2b4efc4274101e5e5fa722ece90a9056e9a2d5836dad42bce194734f201dd
package org.vizzini.ai.robot; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; import java.io.File; import java.io.InputStream; import org.junit.Test; /** * Provides tests for the <code>RobotIma...
Java
ai/src/test/java/org/vizzini/ai/robot/RobotImageIOTest.java
jmthompson2015/vizzini
mit
3,819
157
codeparrot/github-code
22c1eafd58aef303abb58c453954dbf967b028580c1d9af90ecd706bfa85144f
require 'grit' require 'tempfile' require 'formatador' # Grit.debug = true # No default indent class Formatador def initialize @indent = 0 end end class GitCleanup def self.run(options = {}) begin repo = Grit::Repo.new(Dir.pwd) rescue Grit::InvalidGitRepositoryError Formatador.display_li...
Ruby
lib/git-cleanup.rb
mloughran/git-cleanup
mit
3,597
119
codeparrot/github-code
89cf829dee810bc5b19c801890d64e42a1c501369b114584bab68aa3a1c134c0
#encoding: utf-8 require 'fileutils' require 'readline' module Lydown::CLI::REPL class << self def run require 'lydown/version' puts "Lydown version #{Lydown::VERSION}" lilypond_version = Lydown::Lilypond.detect_lilypond_version(true) if lilypond_version puts "Lilypond ver...
Ruby
lib/lydown/cli/repl.rb
ciconia/lydown
mit
5,559
233
codeparrot/github-code
247ef986c7040afb26eecd9c0a730db9da3c1b714a52a21446f5d4a72d7777ea
import * as React from 'react'; import { expect } from 'chai'; import { createShallow, getClasses } from '@material-ui/core/test-utils'; import createMount from 'test/utils/createMount'; import { createMuiTheme } from '@material-ui/core/styles'; import describeConformance from '../test-utils/describeConformance'; impor...
JavaScript
packages/material-ui/src/Grid/Grid.test.js
lgollut/material-ui
mit
3,650
114
codeparrot/github-code
5313892a9b7a72fdf3ebc44717324c39ac630dfc344d54640d9db07d924df78c
<?php // ============================================================ // HTTP Router // Designed and developed by Daniel Carvalho // Copyright (c) Daniel Carvalho - http://danielcarvalho.com/ // ============================================================ namespace quiver\http; use quiver\http\http_request; use quiv...
PHP
lib/http/http_router.php
quiver-php/quiver
mit
3,997
144
codeparrot/github-code
52b5e794e1f209ea76e40c63143f82255e60ffc670d072e14c1e417e3edeee5e
#------------------------------------------------------------------------------ # # Address Geocoding Service that uses the Geocoder gem and Google's # premium geocoding service # #------------------------------------------------------------------------------ class GoogleGeocodingService < AbstractGeocodingServic...
Ruby
app/services/google_geocoding_service.rb
camsys/transam_spatial
mit
3,783
116
codeparrot/github-code
0963437da7d2a33409317f83fcb957ea707252517c70b813a5d9a74e83bd9e5f
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import '../styles/Nav.css'; import wrd from '../images/logos/wrd.png'; class Nav extends Component { componentDidMount(){ window.scrollTo(0, 0); } render() { return ( <div className="bs-component main-menu"> ...
JavaScript
src/components/Nav.js
RicardoG2016/WRFD-project-site
mit
2,854
62
codeparrot/github-code
a28d9bb9890ca1cb0591cfc51bdca82b5f8a63ee9f2eadf9947949a81b49207e
import Ember from 'ember'; import moment from 'moment'; const { computed, Controller, inject } = Ember; const { service } = inject; export default Controller.extend({ queryParams: ['date', 'view', 'showCalendar', 'mySchedule', 'showFilters', 'courseFilters', 'school', 'academicYear'], date: null, view: 'week', ...
JavaScript
app/controllers/dashboard.js
stopfstedt/frontend
mit
2,899
125
codeparrot/github-code
702786c4e4a608a48e5690ec5ef9fee278f54de370392d65614614e3cb7e5cdf
//.............................................................................. // // This file is part of the Jancy toolkit. // // Jancy is distributed under the MIT license. // For details see accompanying license.txt file, // the public copy of which is also available at: // http://tibbo.com/downloads/archive/...
C
src/jnc_edit/jnc_Edit_p.h
vovkos/jancy
mit
5,771
324
codeparrot/github-code
5cd22479c984b728cc3b81d3cabf2ff7008d87659dea0710ee0173d129431cc9
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="generator" content="pandoc" /> <meta http-equiv="X-UA-Compatible" content="IE=EDGE" /> <meta name="author" content="Xiang Zhu" /> <title>Compute Scaled Population Recombination Rate</title> <script src="site_libs/header-attrs-2.3/header-attrs.js...
HTML
docs/recombination.html
stephenslab/rss
mit
35,475
824
codeparrot/github-code
2957f41df859737849432c7e1e1788edf9e87a8070cd98cf2f1f51d3bf858728
// // tree.h // Agile_RRT // // Created by Timothy M. Caldwell. // Copyright (c) 2015 Timothy M. Caldwell. Refer to license.txt // #ifndef __Agile_RRT__tree__ #define __Agile_RRT__tree__ #include "global.h" #include "treevertex.h" class Tree { public: Tree(TreeVertex * init_vert, double t_h_max_upper, sampli...
C
tree.h
timocaldwell/agile_rrt
mit
2,116
63
codeparrot/github-code
3450599da93361d00f9c3c40acf0912b088db1651b230e1a3ad2e97a5f914e7e
<?php declare(strict_types=1); namespace Doctrine\ODM\MongoDB\Aggregation\Stage; use Doctrine\ODM\MongoDB\Aggregation\Builder; use Doctrine\ODM\MongoDB\Aggregation\Stage; use function in_array; use function is_array; use function is_string; use function strtolower; /** * Fluent interface for adding a $sort stage ...
PHP
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Sort.php
doctrine/mongodb-odm
mit
1,351
55
codeparrot/github-code
3eb3949398deeab4abef6d42db5978bc2ca8b0f491ce1e06c93d02bc4d81a352
# Controller for manage issues class IssuesController < ApplicationController load_and_authorize_resource :project load_and_authorize_resource :issue, :through => :project, :shallow => true before_action :assign_user, :only => [:create] before_action :fetch_board_and_connections, :only => [:index] def ind...
Ruby
app/controllers/issues_controller.rb
technoeleganceteam/kanban_on_rails
mit
1,799
83
codeparrot/github-code
eafd4508464615a1dc6f42dedebda1bc351f5075e7c86839671be82e2849fa51
/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtQml module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage **...
C
Qt/QtQml/5.4.2/QtQml/private/qv4regexp_p.h
Yangff/mvuccu
mit
4,561
143
codeparrot/github-code
e40e52a871ab2ac35e078fc45ec44aadb4275b5be326c5eda10ed145980d0e9e
<?php /* ShopShopBundle:Contact:contact.html.twig */ class __TwigTemplate_ff04d15b1a9b9b84188f055016cc5964 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->blocks = array( 'body' => array($this, 'block_body'), );...
PHP
app/cache/dev_old/twig/ff/04/d15b1a9b9b84188f055016cc5964.php
binayak/shopping-yay-
mit
947
43
codeparrot/github-code
01660c8e01f65cd1efbd7c6e403195adf1a9c50afbbe9b879c4f960722ba66e2
$(document).ready(function() { eaeSlider(); }); var eaeGlobalSettings = { changeDuration: 500, changeDelay: 0, changeMode: 'slide', imageCrop: 'cover', imagePos: 'center center', descColor: '#696969', descFontSize: '20px', descPadding: 20, descWidth:'100%', enableCtrl: 'false', ctrlColor: 'rgba(255, 255, 2...
JavaScript
src/js/slider2.0.js
faxemaxe/slider2.0
mit
9,180
310
codeparrot/github-code
2a997fd2ed6760cd07e78a15b78033dad772ee68d275e819f5a4571be675b663
import _ from 'lodash'; export default class IncludeParser { constructor(models) { this.models = models; } parse = async (query) => { const { getIncludeModelInstances, models, } = this; if (typeof query.include === 'undefined') return []; const includes = _.castArray(query.incl...
JavaScript
src/core/services/parsers/query/IncludeParser.js
labibramadhan/mastery
mit
1,379
48
codeparrot/github-code
2534763e8dd6f22d02143499f3c6c6be41ae40d048a513e4cc8d0e26f10ce7eb
/* * Copyright 2015 MongoDB, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
C
include/mongoc-win/libmongoc/mongoc-apm.h
kangseung/JSTrader
mit
15,517
372
codeparrot/github-code
76e21a4e2fa19fa8c1264e5040979a655ac08d9a8b7c817831af0987b914d036
/* `Widths ----------------------------------------------------------------------------------------------------*/ .input_tiny { width: 50px; } .input_small { width: 100px; } .input_medium { width: 150px; } .input_large { width: 200px; } .input_xlarge { width: 250px; } .input_xxlarge { width: 300px; } ...
CSS
admin/css/formalize.css
jacobbudin/Alkaline
mit
6,092
319
codeparrot/github-code
08888ef530c3e70daf19682ec823ce57dded84dcb2bb11ae170f8d41e8527ad0
using System; using System.Collections.Generic; using System.Linq; using SJP.Schematic.Core.Extensions; using SJP.Schematic.SqlServer.Parsing; using Superpower.Model; namespace SJP.Schematic.SqlServer { public sealed class SqlServerExpressionComparer : IEqualityComparer<string> { public SqlServerExpre...
C#
src/SJP.Schematic.SqlServer/SqlServerExpressionComparer.cs
sjp/SJP.Schema
mit
4,261
124
codeparrot/github-code
bfe9b9f62927ae73f829b4b81a217d586c97019060733766a4510fb43b77b1f5
#! /usr/bin/env python3 description = """ Number letter counts Problem 17 If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total. If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters woul...
Python
python/problem-017.py
mbuhot/mbuhot-euler-solutions
mit
1,881
71
codeparrot/github-code
0eec350ee8bbe4ab8f00eec409c0ff8d2e7a36378b7029393fc0385763d38ee6
// Diskv (disk-vee) is a simple, persistent, key-value store. // It stores all data flatly on the filesystem. package diskv import ( "bytes" "fmt" "io" "io/ioutil" "os" "path/filepath" "strings" "sync" ) const ( defaultBasePath = "diskv" defaultFilePerm os.FileMode = 0666 defaultPathPerm os.Fi...
GO
src/diskv/diskv.go
rcoh/modata
mit
12,510
487
codeparrot/github-code
7896056abbdfa095b262eb2a3aadc55442cbfe3632c8ba9edb4316345e84e85d
package mongo import ( "context" "github.com/cuigh/swirl/dao" "go.mongodb.org/mongo-driver/bson" ) const Setting = "setting" func (d *Dao) SettingGetAll(ctx context.Context) (settings []*dao.Setting, err error) { settings = []*dao.Setting{} err = d.fetch(ctx, Setting, bson.M{}, &settings) return } func (d *D...
GO
dao/mongo/setting.go
cuigh/swirl
mit
812
37
codeparrot/github-code
882786d5f4ac7fe3ab7380e4bf0df5b4b42c0d1c01c2e3b296b9d631eb23a029
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>W16373_extracted</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;"> ...
HTML
ocr_extracted/W16373_text/page41.html
datamade/elpc_bakken
mit
13,354
229
codeparrot/github-code
19fb1735a4e1ea9917ee80e115ae35693a4b47d784f84246085561df913943cc
/* * Copyright (c) 2014-2022 The Voxie Authors * * 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, mer...
C++
src/ExtFilterVolumeRegistration/VolumeRegistration.cpp
voxie-viewer/voxie
mit
30,059
928
codeparrot/github-code
bf498fb5899b60c6b7c8cf221f9d64065cc61d77befc2125ae1b5eb8a8e3bed4
<?php /* TwigBundle:Exception:traces.html.twig */ class __TwigTemplate_cacbb9220c3a3cf407a33f67dbbec113 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected...
PHP
app/cache/prod/twig/ca/cb/b9220c3a3cf407a33f67dbbec113.php
dayAlone/Rvisor
mit
7,132
121
codeparrot/github-code
661fd217845197e38734d0b6e244cf218c1967cd4d26580539512cccf3eff622
using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Generic; using falkonry_csharp_client.helper.models; using System.Diagnostics; using System.Web.Script.Serialization; using System.IO; /*INSTRUCTIONS: TO RUN ANY TESTS, SIMPLY UNCOMMENT THE '//[TestClass()] ' header before every class of test...
C#
test/FalkonryTests.cs
dilpeshjain/falkonry-csharp-client
mit
75,462
1,868
codeparrot/github-code
a0e9b99061b264b088676c48bde30ede37994f7eb3f36f1df660a351b2eabb48
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Anotar.CommonLogging; using CQRSMagic.Domain; using CQRSMagic.Event; using CQRSMagic.Support; using Microsoft.Practices.ServiceLocation; namespace CQRSMagic.EventStorage { public class EventStore : IEventStore ...
C#
Projects/CQRSMagic/EventStorage/EventStore.cs
OpenMagic/CQRSMagic
mit
2,052
72
codeparrot/github-code
013c67d4aca8a0d27ac3d9ff843df808dfa2de4857f43f0ced3bdb178883dd71
#include "stringboxproxy.h" #include "every_cpp.h" namespace BrowserAutomationStudioFramework { StringBoxProxy::StringBoxProxy(QObject *parent) : IStringBoxProxy(parent), FilterIncome(false), Loader(0), DontGiveUp(false), FirstTimeLoaded(false) { } void StringBoxProxy::Reload() { ...
C++
Engine/stringboxproxy.cpp
bablosoft/BAS
mit
5,473
205
codeparrot/github-code
b191e1c6de1e7859330ed69d92904d73868cb6a9ca25109d691a75f0bbf20c03
<!DOCTYPE html> <!-- Copyright (c) 2014 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at...
HTML
poly/components/polymer-dev/test/html/mdv-shadow.html
mehrdadrafiee/mkaminsky11.github.io
mit
2,530
68
codeparrot/github-code
8f79eeacabd1767593f66ad9240ade845cbb7f636e9c3a7882480455e84c0217
/* GWEN Copyright (c) 2010 Facepunch Studios See license in Gwen.h */ #include <Gwen/Anim.h> #include <Gwen/Utility.h> #include <math.h> using namespace Gwen; #ifndef GWEN_NO_ANIMATION static Gwen::Anim::Animation::List g_Animations; static Gwen::Anim::Animation::ChildList g_AnimationsListed; void Gwen::Anim...
C++
src/Anim.cpp
GlPortal/gwen
mit
3,200
140
codeparrot/github-code
fc31abbb1c991a6e2979e4ea7db265cd518c139414771a35fe3436d8ba0e9f2f
import { Injectable } from '@angular/core'; import { Subject } from 'rxjs/Subject'; import { Observable } from 'rxjs/Observable'; import { ReplaySubject } from 'rxjs/ReplaySubject'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/mergeMap'; import 'rxjs/add/operator/distinctUntilChanged'; import 'rxjs/add/ope...
TypeScript
src/app/services/usb-mon-mon-connector/usb-mon-mon-connector.service.ts
mixvar/usb-mon-mon
mit
2,749
97
codeparrot/github-code
37734048301bd569119b962999686fcd794faae7bd5d184f970c81bab0981e69
/** * controller - category. * User: raytin * Date: 13-3-28 */ var proxy = require('../proxy'), common = proxy.common, util = require('../util'), topicProxy = proxy.Topic, categoryProxy = proxy.Category, userProxy = proxy.User, config = require('../config').config, EventProxy = require("...
JavaScript
controllers/category.js
superRaytin/Chopper
mit
3,899
116
codeparrot/github-code
552e31313e46c5095c09685cd45d057bbc4fff143656f1b91398c2388db8ae5f
import {AfterViewInit, Component, OnInit, ViewChild, ViewEncapsulation} from '@angular/core'; import {ActivatedRoute, Router} from '@angular/router'; import {UserService} from '../../service/user.service'; import {ProjectService} from '../../service/project.service'; import {FORBIDDEN} from 'http-status-codes'; import ...
TypeScript
coderadar-ui/src/app/levelized-structure-map/dependency-compare/dependency-compare.component.ts
reflectoring/coderadar
mit
1,978
59
codeparrot/github-code
bd3ce492abcfb3ef8d4db96c3331ebc6bf8e1fda96e884e45e8799fafaeb4eb1
<html lang="en"> <head> <title>Strings - Using as</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="Using as"> <meta name="generator" content="makeinfo 4.8"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="Characters.html#Characters" title="Characte...
HTML
toolchain/osx/gcc-arm-none-eabi-6-2017-q1-update/share/doc/gcc-arm-none-eabi/html/as.html/Strings.html
ChangsoonKim/STM32F7DiscTutor
mit
7,690
122
codeparrot/github-code
d37af7fd8df048a14ab4a62e21ac222a103e33503b3e9a4265206f7a2647b68d
""" Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycl...
Python
python/202_happy_number.py
ufjfeng/leetcode-jf-soln
mit
1,204
42
codeparrot/github-code
3a88e104cf01e2485a14e6f20ba4e26531a3c61f72a37178bcd897c2ed20ae5b
/* Writing a function which adds 2 to every element of vector and a function to multiply 2 to every element of the vector */ /* NOTES: OWNERSHIP AND BORROW RULES 1. Only one owner at a time 2. Only 1 active mutable borrow at a time 3. Every other borrow after a shared borrow should be a shared borrow...
Rust
generics_and_traits/4_traitsbounds_mistake1.rs
kteza1/rust-learn
mit
1,787
66
codeparrot/github-code
19f923809c75aa64f971070c5ad70adf2a28c3e35ab15189752353c9e25a9188
module OmnitureClient class Client DEFAULT_REPORT_WAIT_TIME = 0.25 DEFAULT_REPORT_TOTAL_WAIT_TIME = 120 DEFAULT_LOG_IS_ACTIVE = false ENVIRONMENTS = { :san_jose => "https://api.omniture.com/admin/1.4/rest/", :dallas => "https://api2.omniture.com/admin/1.4/res...
Ruby
lib/omniture_client/client.rb
saschaknobloch/omniture_client
mit
4,625
154
codeparrot/github-code
37b4a4e5e49ccf85e8aabf917edabc15082ba8709408df571b12eda06056e4c4
var Foundry = (function () { function Foundry () {} Foundry.create = function (options) { function Constructor (properties) { for (var prop in properties) { if (properties.hasOwnProperty(prop)) { this[prop](properties[prop]); this[prop...
JavaScript
src/Foundry.js
Problematic/Foundry
mit
2,788
79
codeparrot/github-code
b7c506c207dbf492ce86be338873bfd597d8a6c0f92063be585ab09a65f11dfc
# -*- coding: utf-8 -*- from __future__ import unicode_literals import re import os import time import signal import inspect import weakref import logging import threading import curses import curses.ascii from contextlib import contextmanager import six import praw import requests from . import exceptions _logger...
Python
rtv/objects.py
shaggytwodope/rtv
mit
24,783
694
codeparrot/github-code
2a1e99eb6aee0179dcd36f9f7c7bd17c6dfbc957e0729167cf4ba71684056234
/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
C
Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/modules/audio_processing/rms_level.h
koobonil/Boss2D
mit
2,596
76
codeparrot/github-code
1c15f39cf4dc0b44ae6bddac24156b7cb363115393d4653dd72ca3fa95e471b4
import { MOVE_CARD, TAP_CARD, UNTAP_CARD, TOGGLE_TAP, INCREMENT_CARD_VALUE, DECREMENT_CARD_VALUE, SET_CARD_VALUE } from '../constants/actionTypes'; const initialState = { id: null, name: null, imageUrl: null, zone: null, counters: 0, power: 0, toughness: 0, left: 0, top: 0, isTapped: ...
JavaScript
src/reducers/card.js
fateseal/react-mtg-playtester
mit
1,249
74
codeparrot/github-code
3234e150dc9457c75605ef84564cd620e7a8a682e703d3ae1233beaaed06fae0
# -*- coding: utf-8 -*- """INI temporal mean rate simulator with Tensorflow backend. This module defines the layer objects used to create a spiking neural network for our built-in INI simulator :py:mod:`~snntoolbox.simulation.target_simulators.INI_temporal_mean_rate_target_sim`. The coding scheme underlying this conv...
Python
snntoolbox/simulation/backends/inisim/temporal_mean_rate_tensorflow.py
NeuromorphicProcessorProject/snn_toolbox
mit
28,900
857
codeparrot/github-code
df85695a5b192598e7509bea1fa4978b525a3557f86bd10f596e18d8b7c01054
#!/usr/bin/env python """A demo client for Open Pixel Control http://github.com/zestyping/openpixelcontrol Sends red, green, and blue to the first 3 LEDs. To run: First start the gl simulator using, for example, the included "wall" layout make bin/gl_server layouts/wall.json Then run this script in another...
Python
Marquee/python/gif.py
beneckart/future-robotics
mit
1,207
50
codeparrot/github-code
4084c260e1ad08a27dbe43a6433390ee69b9b287404ffa7bc2f5ee414b5cc555
/* * Title : Pinpoint Booking System WordPress Plugin (PRO) * Version : 2.1.2 * File : assets/js/jquery.dop.frontend.BSPSearch.js * File Version : 1.0.2 * Created / Last Modified : 11 October 2015 * Author : Dot on Paper * Copyright ...
JavaScript
content/plugins/dopbsp/assets/js/jquery.dop.frontend.BSPSearch.js
keynetic/kpress
mit
97,819
2,338
codeparrot/github-code
75a2af6210733bc6063dbdee871bd2f6acff91867f3a69ef9eae8b784db7d5c3
#!/usr/bin/env python # -*- coding: utf-8 -*- # Created by iFantastic on 15/09/05 import sqlite3 #TODO: Add more class method for Database Class. class Database(): def __init__(self, db_name): self.db = sqlite3.connect(db_name.decode('utf-8')) # self.db = sqlite3.connect(':memory:') self....
Python
src/sqlbase.py
VirgiliaBeatrice/VocabularyGenerator
mit
4,534
155
codeparrot/github-code
733cd3156895e120a9bf9100476ee67c94f9afdbece825d549a515767c9dbc3f
import { VNode } from './vdom'; declare global { interface Event { composedPath(): EventTarget[]; } namespace JSX { // tslint:disable-next-line:no-empty-interface interface Element extends VNode { } interface ElementClass { template: VNode } ...
TypeScript
src/lib/declarations.ts
spark-js/spark
mit
24,504
681
codeparrot/github-code
1b8e9a6d600bad67ef6497eb7c343f9aa8d5c5ec11c2a8702e1958e03e1aec06
var gulp = require('gulp'); var initGulpTasks = require('react-component-gulp-tasks'); /** * Tasks are added by the react-component-gulp-tasks package * * See https://github.com/JedWatson/react-component-gulp-tasks * for documentation. * * You can also add your own additional gulp tasks if you like. */ var tas...
JavaScript
gulpfile.js
rsamec/react-designer-core
mit
695
45
codeparrot/github-code