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 |
|---|---|---|---|---|---|---|---|---|
da73a290d263ee4cfc0d0d2a8360b31d6137156ad949b9323e594e55d8e517ce | package com.safecharge.request;
import javax.validation.Valid;
import javax.validation.constraints.Size;
import com.safecharge.model.UserPaymentOption;
/**
* Copyright (C) 2007-2020 SafeCharge International Group Limited.
* <p>
* Abstract class with basic fields used with requests to create an order in the SafeCh... | Java | src/main/java/com/safecharge/request/OrderRequestWithDetails.java | SafeChargeInternational/safecharge-java | mit | 2,708 | 103 | codeparrot/github-code |
7c528d3441df4e281ad074d3e2d55c4b4720517d7385fc86da206c70434437c3 | //--1
var child_process = require('child_process');
var spawn = child_process.spawn;
var wmic = spawn('wmic', ['DiskDrive', 'get', 'Size', '/value']);
wmic.stdout.on('data', function(data) {
console.log('使用spawn方法输出: ' + data);
});
wmic.stderr.on('data', function(data) {
console.log('stderr: ' + data);
})... | JavaScript | Node系列文章源码/child_processTest.js | zhaoqize/projects | mit | 973 | 43 | codeparrot/github-code |
ffecce83b9547f0a1a286356e303944371e9a9ec824f99ad624cac527ca977a8 | <!--Raul 14/11/2016-->
<!--Controlador para actividad y sesion-->
<?php
require_once("../Model/Actividad.php");
require_once("../DB/connectDB.php");
require_once("c_Notificaciones.php");
//Metodos por defecto para los formularios
if(isset($_POST['idActividad']) || (isset($_GET['op']) && $_GET['op']==2)){
if($_GET['... | PHP | Controllers/c_Actividad.php | colmilloestelar/ABP1617Gym | mit | 3,762 | 146 | codeparrot/github-code |
768cc7900e4ffe6ba45d22ab5444d9d60b1bc007add9679241fdbead0e003a9f | import * as R from "ramda";
function double(x: number): number {
return x + x;
}
function shout(x: number): string {
return x >= 10 ? "big" : "small";
}
class F {
[k: string]: string;
x = "X";
y = "Y";
}
class F2 {
a = 100;
y = 1;
x() {
}
z() {
}
}
(() => {
let x: b... | TypeScript | types/ramda/ramda-tests.ts | zuzusik/DefinitelyTyped | mit | 65,593 | 2,334 | codeparrot/github-code |
a8a5cf7e17620fa11eb01e6cad246a4b451f4eea69ad35efca38c8913f3618c0 | var gulp = require('gulp');
var mainBowerFiles = require('main-bower-files');
var templateCache = require('gulp-angular-templatecache');
var concat = require('gulp-concat');
var sourcemaps = require('gulp-sourcemaps');
var uglify = require('gulp-uglify');
var ngAnnotate = require('gulp-ng-annotate');
var sass = require... | JavaScript | gulpfile.js | AndreasHornHorn/evenTUMFrontEnd | mit | 4,120 | 132 | codeparrot/github-code |
3b04839081fbdcce339ea18dde3928ae1d08f7d5bd8d338be79863788af5a44e | <?php
/**
* @package All-in-One-SEO-Pack
*/
/**
* The Opengraph class.
*/
if ( ! class_exists( 'All_in_One_SEO_Pack_Opengraph' ) ) {
class All_in_One_SEO_Pack_Opengraph extends All_in_One_SEO_Pack_Module {
var $fb_object_types;
var $type;
function __construct() {
add_action( 'admin_enqueue_s... | PHP | public_html/wordpress/wp-content/plugins/all-in-one-seo-pack/modules/aioseop_opengraph.php | 924ge/ksk_web | mit | 62,169 | 1,457 | codeparrot/github-code |
215b6731d4856d305a3a855faae461717493e873a8a71a1fcc8f866f9baa93bb | require 'open3'
require 'plist'
module FastlaneCore
class DeviceManager
class << self
def all(requested_os_type = "")
return connected_devices(requested_os_type) + simulators(requested_os_type)
end
def simulators(requested_os_type = "")
UI.verbose("Fetching available simulator ... | Ruby | fastlane_core/lib/fastlane_core/device_manager.rb | icecrystal23/fastlane | mit | 11,460 | 316 | codeparrot/github-code |
95b0a1b5d92a951ad5265cd9c1833efbb873f9104ef4876a5e0d21bd46abb1cb | #include "qrcodedialog.h"
#include "ui_qrcodedialog.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include <QPixmap>
#include <QUrl>
#include <qrencode.h>
QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bool enableReq, QWidget *parent) :
... | C++ | src/qt/qrcodedialog.cpp | DOGEBC/PeercoinDark_PPCD | mit | 4,316 | 172 | codeparrot/github-code |
e38854c50099024c44be570c89a452ebec5ce8192a0b9c684353c35877c488af | import React from 'react/addons';
import Checkbox from 'checkbox';
import injectTheme from './fixtures/inject-theme';
import TestUtils from 'react-addons-test-utils';
describe('Checkbox', () => {
/* eslint-disable max-len */
const CHECKMARK_PATH = 'M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-... | JavaScript | test/checkbox-spec.js | ntgn81/material-ui | mit | 2,990 | 79 | codeparrot/github-code |
2841b1c7f8894677183111c314487a51cff52c179cebb53f810e41be7c5d9af1 | package org.gyt.web.api.utils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.ModelAndView;
/**
* 模型和视图工具
* Created by y27chen on 2016/9/20.
*/
@Component
public class ModelAndViewUtils {
@Autowired
pri... | Java | joshua-api/src/main/java/org/gyt/web/api/utils/ModelAndViewUtils.java | gyt-chenli/joshua | mit | 1,124 | 34 | codeparrot/github-code |
b8e142ae7cc1348c1095b928da5df312ea01ded10b0c67ade1f31ee25c015430 | /*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.0.3-master-34e0278
*/
(function( window, angular, undefined ){
"use strict";
/**
* @ngdoc module
* @name material.components.tooltip
*/
angular
.module('material.components.tooltip', [ 'material.core' ])
.directive(... | JavaScript | modules/js/tooltip/tooltip.js | edgarhsanchez/bower-material | mit | 10,418 | 302 | codeparrot/github-code |
0c90217db3f15d169fa663b4d58d4bce5e5c356f4740870e8d8f2a06e8d4277f | /*
Copyright (C) 2012 by CapCaval.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute,... | Java | 01_src/test/error/errorcomponent2/impl/ErrorComponentImpl2.java | CapCaval/ccProjects | mit | 1,630 | 51 | codeparrot/github-code |
2291f3fbfe8ea0177d9c2f6c222bc9e0d90221a8507d771d760765516af1db4c | (function ($) {
var ver = $.mobile && $.mobile.version.match(/1\.4/);
$.mobiscroll.themes.jqm = {
jqmBorder: 'a',
jqmBody: ver ? 'a' : 'c',
jqmHeader: 'b',
jqmWheel: 'd',
jqmLine: 'b',
jqmClickPick: 'c',
jqmSet: 'b',
jqmCancel: 'c',
disab... | JavaScript | src/plugins/mobiscroll/js/mobiscroll.widget.jqm.js | TheCrookedMan/runningcat | mit | 3,407 | 72 | codeparrot/github-code |
6cdcb05aa6f9327c37c8b373b22039b34575707cbd6350c5c2fbe50710ed5dec | package in.twizmwaz.cardinal.module.modules.appliedRegion.type;
import in.twizmwaz.cardinal.module.modules.appliedRegion.AppliedRegion;
import in.twizmwaz.cardinal.module.modules.filter.FilterModule;
import in.twizmwaz.cardinal.module.modules.filter.FilterState;
import in.twizmwaz.cardinal.module.modules.regions.Regio... | Java | src/main/java/in/twizmwaz/cardinal/module/modules/appliedRegion/type/BlockPlaceRegion.java | dentmaged/CardinalPGM | mit | 4,079 | 72 | codeparrot/github-code |
f86ba2c94005535ba64ff4ccf47d008ad679bf231cb274c41a0ceb60f26d0108 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions... | C# | src/Nether.Web/Utilities/ExceptionLoggingFilterAttribute.cs | navalev/nether | mit | 2,125 | 60 | codeparrot/github-code |
68a524cb05b2265135bc09db7de5962d5a0cfa775a0e18e05f7b6f38e1fdd8b6 | describe('ui.grid.exporter', function() {
'use strict';
var uiGridExporterService, uiGridSelectionService, uiGridExporterConstants, uiGridSelectionConstants, uiGridPinningService,
gridClassFactory, grid, $compile, $scope, $document, $rootScope;
beforeEach(function() {
module('ui.grid');
module('ui.g... | JavaScript | src/features/exporter/test/exporter.spec.js | Servoy/ng-grid | mit | 59,779 | 1,334 | codeparrot/github-code |
9c5c8877d14338dd597213b5a225733110a077410f5cef0ebbfc0e2ab79953f3 | namespace JustOrderIt.Web.Areas.Administration.ViewModels.Categories
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Infrastructure.DataAnnotations;
using JustOrderIt.Data.Models;
... | C# | Source/Web/JustOrderIt.Web/Areas/Administration/ViewModels/Categories/CategoryViewModel.cs | mpenchev86/ASP.NET-MVC-FinalProject | mit | 2,088 | 60 | codeparrot/github-code |
a4207edb023c37a9f45f8d12e1140734da6207d82ee6bf85f6ce76fa4a77c968 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
using size_t = System.UIntPtr;
namespace KinectServer
{
static class ZSTDDecompressor
{
private const string dllName = "libzstd.dll";
[DllI... | C# | LiveScanServer/ZSTDDecompressor.cs | JacekNaruniec/LiveScan3D | mit | 1,337 | 42 | codeparrot/github-code |
f303b6fc3e4c5bab72f840cf0151b43680cfc93021083dc951a958df57a762b2 | # Version
from .version import VERSION
# Errors
from .errors import ApibitsError, ApiError, AuthenticationError, ConnectionError
# Wrapper around RestClient
from .requester import Requester
# Builders for creating ApiMethods.
from .api_method import ApiMethod
from .headers_builder import HeadersBuilder
from .params_... | Python | rainforest/apibits/__init__.py | rainforestapp/rainforest-python | mit | 582 | 34 | codeparrot/github-code |
6becdb74daeb59380b35cec592e86646e4329f99581ecec1ee864a9b1879f80a | 'use strict'
const path = require('path')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const webpack = require('webpack')
const autoprefixer = require('autoprefixer')
let isDev = process.env.NODE_ENV === 'development'
//设置css modules的模块名更可读,由... | JavaScript | webpack.config.js | zaaack/chrome-webapps | mit | 3,724 | 119 | codeparrot/github-code |
1fb97f5f6386a341838c5bccd79bf2785c9cbfe1bd6355d93f9c91a87702d7b9 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket, time
import sys
import multiprocessing
def readlines(sock, recv_buffer=4096, delim='\n'):
buffer = ''
data = True
while data:
data = sock.recv(recv_buffer)
buffer += data
while buffer.find(delim) != -1:
line, buffer = buffer.split('\n', 1)
yi... | Python | old year/RESET-master/Testing/server_small.py | redarmy30/Eurobot-2017 | mit | 805 | 34 | codeparrot/github-code |
dfa4c9a29ffe9cbd8f035dbf45dbd4d6fb3ae0927835e264fbef1b753111a023 | // Copyright (c) 2001 Per M.A. Bothner
// This is free software; for terms and warranty disclaimer see ./COPYING.
package gnu.kawa.lispexpr;
import gnu.text.*;
import gnu.mapping.InPort;
/** Reader table entry for '<' to treat '[' and ']' as constituents.
* Lets us use (say) '<char[]>' as a token even if '[' and ... | Java | gnu/kawa/lispexpr/ReaderTypespec.java | thequixotic/ai2-kawa | mit | 1,947 | 84 | codeparrot/github-code |
49c87d676d9c63d2ecbfd82f6062e811f6af0acb46daf8adc6bcb1f97bbc1824 | var fs = require('fs');
var _ = require('lodash');
var minimist = require('minimist');
var utils = require('./utils');
exports.init = function () {
utils.findConfig(function () {
if (utils.keyExists('overcast')) {
exports.execute();
} else {
utils.createKey('overcast', function () {
expor... | JavaScript | modules/cli.js | clakeb/overcast | mit | 5,138 | 204 | codeparrot/github-code |
db536edf277deec598636e7fae1b159ded2cf475b41e146985be0a5735879406 | import React, { PropTypes } from 'react';
import injectSheet from 'react-jss';
import Textfield from 'react-mdl/lib/Textfield';
import { formatAddress } from 'funong-common/lib/utils/displayUtils';
const Location = ({ detailsEditable, location, onChange }) => {
const { address } = location;
return (
<div>
... | JavaScript | app/modules/mapDialog/location.js | theseushu/funong-web | mit | 1,376 | 51 | codeparrot/github-code |
611fa656b967db469288dfbd7989e642ff4e594a1302e6bde900244b1742d5e8 | /*************************************************************************************
*filename: timer_queue_t.h
*
*to do: ¶¨ÒåÂÖת¶¨Ê±Æ÷£¬ÊµÏÖÒ»¸ö4Â̶ֿÈת»»µÄ¶¨Ê±Æ÷ÂÖÐòÁУ¬¾«È·µÄ×îСµ¥Î»ÎªºÁÃë
*Create on: 2012-04
*Author: zerok
*check list:
***************************************************************************... | C | common/revolver/timer_queue_t.h | yuanrongxi/innodb | mit | 3,049 | 134 | codeparrot/github-code |
9739fb4b9bd962ff56022fb7247c14f6748a8425b893324394ac491cb82535af | use command_prelude::*;
use std::io::{self, BufRead};
use cargo::core::{Source, SourceId};
use cargo::sources::RegistrySource;
use cargo::util::{CargoError, CargoResultExt};
use cargo::ops;
pub fn cli() -> App {
subcommand("login")
.about(
"Save an api token from the registry locally. \
... | Rust | collector/benchmarks/cargo/src/bin/cargo/commands/login.rs | nrc/rustc-perf | mit | 1,963 | 59 | codeparrot/github-code |
2dfde26232957bf804b79e9816a358631dd09e4be0e0dc8f54c1a28f54aa629a | import { isImage } from '../modules/core/regex.js'
import { nodeOrNew, register, wrapWithAttrCheck } from '../utils/adopter.js'
import { off, on } from '../modules/core/event.js'
import { registerAttrHook } from '../modules/core/attr.js'
import { registerMethods } from '../utils/methods.js'
import { xlink } from '../mo... | JavaScript | src/elements/Image.js | wout/svg.js | mit | 1,994 | 78 | codeparrot/github-code |
44d914eafa9cf3030c287b1ce6b00f985484c4a890c06eb374d8f8d7aad8da33 | (function() {
'use strict';
angular
.module('styleguideApp', [
'currentUserInfoService',
'pascalprecht.translate',
'tmh.dynamicLocale',
'ngMaterial',
'ngSanitize',
'ui.tree',
'ui.grid',
'ui.grid.autoResize',
'ui.grid.exporter',
'ui.grid.selection',
'ui.bootstrap',
'ui.bootstrap.t... | JavaScript | js/app.js | blandine/styleguide | mit | 29,441 | 1,176 | codeparrot/github-code |
ec66b9b7a75bc8b2daa554e3a0ac04dc179d034b822a4eb24689a4bc35ebbd06 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.ico" />
<title>Respon... | HTML | training/system-ui/visibility.html | AzureZhao/android-developer-cn | mit | 68,482 | 2,037 | codeparrot/github-code |
275eeb22b076989749868ed0a7b7ec72e35cd11ef0fc6963b5884c096ffd0eb0 | package org.elkoserver.foundation.json;
/**
* An optional JSON message parameter of type {@link String}.
*/
public class OptString extends OptionalParameter {
/** Singleton instance of OptString with the value not present. */
public static final OptString theMissingValue = new OptString();
/** The actua... | Java | ServerCore/java/org/elkoserver/foundation/json/OptString.java | frandallfarmer/Elko | mit | 1,584 | 63 | codeparrot/github-code |
deb43f7da37e2845b9708e66b6bfeefe4c35c8f46ce2d17593d333d098cd20b5 | #!/usr/bin/env python
import os
import codecs
def open_textdecoder(file=None, codec=None, chunkSize=1024):
fp = open(file, 'rb')
return TextFileDecoder(fp, codec, chunkSize)
# TODO look into inheriting from a stream for this class
class TextFileDecoder(object):
"""Class that wraps a file object and handl... | Python | lib/biokbase/Transform/TextFileDecoder.py | kbase/transform | mit | 9,547 | 247 | codeparrot/github-code |
16bf7679b3991a11aa0b2fb716fa52b813c277796da44d673c09e09d884be52e | import cv2
import sys
def genBuffMask(bufferFrames):
'create bitwise mask for buffer length'
buffMask = 1
for i in range(0, BUFF_LEN-1):
buffMask = (buffMask)<<1 | buffMask
return buffMask
BUFF_LEN = 20 # 30 seems to be optimal number of frames for buffer
buffMask = genBuffMask(BUFF_LEN)
pri... | Python | opencv/tutorials/gui/video/faceDetectionRecording/webcam_writes_buff.py | SSG-DRD-IOT/commercial-iot-security-system | mit | 1,764 | 73 | codeparrot/github-code |
2501b24724e233a67770a0997bd54bbcdc4781b2ef7831ce2984884f78aec6fc | package ipmi_sensor
import (
"bufio"
"bytes"
"fmt"
"log"
"os"
"os/exec"
"path/filepath"
"regexp"
"strconv"
"strings"
"sync"
"time"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/config"
"github.com/influxdata/telegraf/internal"
"github.com/influxdata/telegraf/plugins/inputs"
)
var (... | GO | plugins/inputs/ipmi_sensor/ipmi.go | oldmantaiter/telegraf | mit | 9,856 | 341 | codeparrot/github-code |
27a849ae5ae2b38e5a112b2cf846e689eae0ebd8f021dff72a6001a466cc4754 | <?php
namespace Chamilo\Application\Weblcms\Ajax\Component;
use Chamilo\Application\Weblcms\Integration\Chamilo\Core\Tracking\Storage\DataClass\CourseVisit;
use Chamilo\Application\Weblcms\Manager;
use Chamilo\Core\Tracking\Storage\DataClass\Event;
use Chamilo\Libraries\Platform\Session\Request;
/**
* Tracks the tim... | PHP | src/Chamilo/Application/Weblcms/Ajax/Component/LeaveCourseComponent.php | cosnicsTHLU/cosnics | mit | 1,095 | 38 | codeparrot/github-code |
07a54b75d53a31c84915bf912ce607f27e0b3f1a2914c4e86a3d9971d86a1e4e | <?php
namespace h3tech\crud\generators\crud;
use Yii;
use yii\db\BaseActiveRecord;
use yii\gii\CodeFile;
use yii\web\Controller;
class Generator extends \yii\gii\generators\crud\Generator
{
public $modelClass;
public $controllerClass;
public $baseControllerClass = 'h3tech\crud\controllers\AbstractCRUDCon... | PHP | generators/crud/Generator.php | gyula-szabo/yii2-crud | mit | 4,204 | 103 | codeparrot/github-code |
937e6380e33c744ab7500f8de05e57121b72ac1289bf89df3fa6a2351e88ed0a | 'use strict';
var BASE_URL_RAW = 'https://crm.zoho.com/crm/private/json/%s/updateRecords';
var ROWS_PER_API = 100;
var MAX_SUCCESSIVE_ERROR = 3;
var _ = require('lodash');
var util = require('util');
var request = require('request');
var Bluebird = require('bluebird');
var helper = require('./helper');
Bluebird.pro... | JavaScript | src/lib/updateBulk.js | urgent/zohordex | mit | 4,205 | 157 | codeparrot/github-code |
f7016a3cf4b32b4b3c6f0222a0af939c3ded2b9b6a60db3b961fba8d2dedd939 | //
// Copyright (C) 2010, OMBT LLC and Mike A. Rumore
// All rights reserved.
// Contact: Mike A. Rumore, (mike.a.rumore@gmail.com)
//
#ifndef __OMBT_GENERIC_H
#define __OMBT_GENERIC_H
// generic conversion templates
// headers
#include <string>
#include <sstream>
#include <iomanip>
// local headers
#include "system... | C | libsrc2/conversions/hdr/Generic.h | ombt/ombt | mit | 1,089 | 67 | codeparrot/github-code |
ce3acde50adec0a5dd26df0e8bbf77ddc2acb1f27b29f0617617c3a7e58bd6f4 | /*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2018, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following condition... | C | shared/assimp/code/ObjFileImporter.h | MadManRises/Madgine | mit | 4,610 | 124 | codeparrot/github-code |
b056ce3e089c5deb584e3d1bb032b5d4d35f3aaef0765237ddc28a70e770781d | package im.actor.server.persist
import java.time.{ LocalDateTime, ZoneOffset }
import im.actor.server.db.ActorPostgresDriver.api._
import im.actor.server.model.{ Sex, User, UserState }
import im.actor.util.misc.PhoneNumberUtils
import slick.dbio.Effect.Read
import slick.lifted.ColumnOrdered
import slick.profile.Fixed... | Scala | actor-server/actor-persist/src/main/scala/im/actor/server/persist/UserRepo.scala | ljshj/actor-platform | mit | 5,532 | 168 | codeparrot/github-code |
afa4a65f477a7f392237cb51f7c3a395538860f2cdc4ac7fae202c2b53ff4cd5 | /* global Fluid, CONFIG */
window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
Fluid.utils = {
listenScroll: function(callback) {
var dbc = new Debouncer(callback);
window.addEventListener('scroll', dbc, false);
dbc.handl... | JavaScript | js/utils.js | CoderDMBai/CoderDMBai.github.io | mit | 5,643 | 199 | codeparrot/github-code |
31b0a0a0b2c81b46c76d3b7f91caf20d5744864547a76976ac14aa7a53be6d07 | /*************************************************************************/
/* gdscript_function.h */
/*************************************************************************/
/* This file is part of: */
/* ... | C | modules/gdscript/gdscript_function.h | DmitriySalnikov/godot | mit | 19,392 | 622 | codeparrot/github-code |
00ea99fc69375f1f3fc49ada053db0db5ee1d4c5b2c911fc507bbf2fb20383d8 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" />
<title>Pri... | HTML | reference/android/print/PrintJobId.html | AzureZhao/android-developer-cn | mit | 68,054 | 1,844 | codeparrot/github-code |
c42d71f98a2f4ebb5a1132b15b1c26cd21d8da88b0d9b1fc6638bd3e396189b2 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using uNet2.Packet;
namespace uRAT.Client
{
public class StandardPacketProcessor : IPacketProcessor
{
public Dictionary<int, Type> PacketTable { get; set; }
public StandardPacketProcessor()... | C# | uRAT.Client/StandardPacketProcessor.cs | Mukad3/uRAT | mit | 770 | 35 | codeparrot/github-code |
89ade22f3aedc50aa8af09b385caff48ffae4dfa7452f2065f227888854021e4 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Phaser Source: src/particles/arcade/Emitter.js</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/default.css">
<lin... | HTML | docs/src_particles_arcade_Emitter.js.html | Efingbv/Stinky_Adventures | mit | 76,486 | 2,418 | codeparrot/github-code |
34567435e29288255bf31d71c7b80336de38aad9ef7dfb38327065bbe0533ac7 | /**
* QUnit v1.12.0 - A JavaScript Unit Testing Framework
*
* http://qunitjs.com
*
* Copyright 2013 jQuery Foundation and other contributors
* Released under the MIT license.
* https://jquery.org/license/
*/
(function(window) {
var QUnit,
assert,
config,
onErrorFnPrev,
test... | JavaScript | test/lib/qunit.js | Raphhh/chess-js | mit | 79,759 | 2,223 | codeparrot/github-code |
fe4c4a41447c699f3565f98bb0dfc1e669bbf323bb0573798110e1b3fe64a5bb | <?php
namespace Bunny\Protocol;
use Bunny\Constants;
use Bunny\Exception\ProtocolException;
/**
* AMQP protocol reader. This class provides means of transforming data from {@link Buffer} to {@link AbstractFrame}.
*
* The class defines only most necessary methods, main logic is of parsing methods frames is generate... | PHP | src/Bunny/Protocol/ProtocolReader.php | jakubkulhan/bunny | mit | 9,524 | 285 | codeparrot/github-code |
3f67d6c4827e24daf6dfa47da1ed7dc0e69ecc8dad9b305029f4dd51e988c2b8 | $(function() {
$(".settings-panel").height($(document).height()-70);
$(".settings-panel #color-bluegreen").click(function(){
$("link#theme-styles").attr("href", "css/styles-bluegreen.css");
return false;
});
$(".settings-panel #color-bluered").click(function(){
$("link#theme-styles").at... | JavaScript | wp-content/themes/unserialized.dk/pure_html/js/settings-panel.js | xtephan/unserialized.dk | mit | 1,305 | 43 | codeparrot/github-code |
f969af4ba855b61152b6f027663693f7c5afb3f9a4d9f2516757eded6fc4b011 | export default class IO {
constructor(target) {
target.addEventListener('keypress', (e) => {
let nucleus = Libretto.nucleus();
if (e.charCode == '['.charCodeAt(0)) {
nucleus.skipPrev();
} else if (e.charCode == ']'.charCodeAt(0)) {
nucleus.skipNext();
}
});
target.... | JavaScript | src/plugins/io.js | iBenza/Libretto.js | mit | 1,073 | 42 | codeparrot/github-code |
b4057d6ebf9eb49a40bf6d0ea75cb58bfb75fe85501713b7db1de055eb7f7cc4 | /****************************************************************************
Copyright (c) 2011-2013,WebJet Business Division,CYOU
http://www.genesis-3d.com.cn
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... | C++ | Engine/addons/particles/targets/particleRibbonTrailTargetSerialization.cc | EngineDreamer/DreamEngine | mit | 5,069 | 142 | codeparrot/github-code |
817585d6d0d6dbcfab6c64e55aebecedeb4c0440ddb296520d031e560477ef65 | import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import React, { Component, PropTypes } from 'react';
import NoteList from '../components/NoteList';
import * as RouterActions from '../actions/RouterActions';
import * as NoteActions from '../actions/NoteActions';
class NoteListContain... | JavaScript | src/containers/NoteListContainer.js | LucasYuNju/leanote-desktop-ng | mit | 2,007 | 70 | codeparrot/github-code |
160831df95ecd794940b1d34fc4817bb9bc9a0961603749e1cc1910a8eb74988 | ////////////////////////////////////////////////////////////////////////////////
// AUTHOR: Sajjad Taheri sajjadt[at]uci[at]edu
//
// LICENSE AGREEMENT
// Copyright (c) 2015, University of California, Irvine
//
// Redistribution and use in source and binary forms, with or without
// modifica... | C++ | binding-gen/core_bindings.cpp | sajjadt/opencvjs | mit | 15,308 | 352 | codeparrot/github-code |
7451fb5063a964a835dfdedfecdc1e401c83925d6b524fed4e5d0122aff8e671 | /**
* Created by zhangjh on 2015/7/14.
*/
(function () {
"use strict";
$(function () {
reloadDetailSelectData();
$("#projectForm").on("change", "select", cb);
})
//第一次初始化下拉列表
var reloadDetailSelectData = function () {
$.sendRestFulAjax(path + "/system/baseinfo/project_sele... | JavaScript | src/main/webapp/resources/interfaces/development/project/project-add.js | ptyz030529/skysport | mit | 8,309 | 308 | codeparrot/github-code |
99cefc5e9cd65afa8a8e2b33ad809c3622082c78fcdfbc4abedbf877bdbd4f3a | let _ = require('underscore');
let Three = require('three');
let Pixi = require('pixi.js');
let util = require('../util');
let actions = require('../actions');
let kinectActions = require('../kinect/actions');
let vertexShader = require('./shaders/generic.vert.glsl');
const jumpInterval = 5 * 60; // in seconds
let in... | JavaScript | app/modes/mode.js | SixSecondMonks/sos-display | mit | 3,790 | 152 | codeparrot/github-code |
19c77b470f5b1e9c284125fccb3ae3005916cfdbe0dbe92e182f646723f11ed2 | $(function () {
$.mask.definitions['~'] = "[+-]";
$("#date").mask("99/99/9999", { placeholder: "mm/dd/yyyy", completed: function () { alert("completed!"); } });
$(".phone").mask("(999) 999-9999");
$("#phoneExt").mask("(999) 999-9999? x99999");
$('#cep').mask("99999-999");
$("#iphone").mask("+33 999 999 999"... | JavaScript | assets/js/associated/associated.js | lds-ulbra-torres/projeto-apae | mit | 3,221 | 102 | codeparrot/github-code |
1af10350afbc570e25efa4d8add5e8468c06c0bcae54ac561f530d532a8d464a | package spire
package laws
import spire.algebra.{Eq, Bool}
import spire.algebra.lattice.Heyting
import spire.syntax.eq._
import spire.syntax.bool._
import org.typelevel.discipline.Laws
import org.scalacheck.{Arbitrary, Prop}
import org.scalacheck.Prop._
object LogicLaws {
def apply[A: Eq: Arbitrary] = new LogicLa... | Scala | laws/src/main/scala/spire/laws/LogicLaws.scala | tixxit/spire | mit | 3,052 | 95 | codeparrot/github-code |
7ae006ae43c10c157150b93f3c1c0d811eb96cc539acc64000e29edc45db0430 | #pragma once
#include "ofConstants.h"
#include "ofAppBaseWindow.h"
#include "ofEvents.h"
#include "ofTypes.h"
#include "ofPixels.h"
//class ofPoint;
class ofBaseApp;
class ofBaseRenderer;
class ofAppGlutWindow : public ofAppBaseGLWindow {
public:
ofAppGlutWindow();
~ofAppGlutWindow(){}
static bool doesLoop(){ ... | C | of_v0.9.3_ios_release/libs/openFrameworks/app/ofAppGlutWindow.h | murataka9/iOSinOF-NativeGUISample | mit | 2,274 | 94 | codeparrot/github-code |
0cdb26e4d240103198ea36a05ab5a7535747383ceda4ee24025484326c2789eb | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace SlimDX
{
/// <summary>
///
/// </summary>
public static class ReferenceTracker
{
public struct TrackingInformation
{
public IntPtr Nat... | C# | Source/Products/SlimDX/ReferenceTracker.cs | ahmetabdi/SlimDX | mit | 4,753 | 131 | codeparrot/github-code |
87b5361a5517364a23757f807cc2610689b67863342e55a07c5db426144c9868 | <TS language="ka" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>ახალი მისამართის შექმნა</translation>
</message>
<message>
<source>&New</source>
<translation>შექმ&ნა</translation>
</message>
... | TypeScript | src/qt/locale/bitcoin_ka.ts | zander/bitcoinclassic | mit | 90,437 | 2,486 | codeparrot/github-code |
c914083511a5c748212b834a43ee32f6417977c6c758c446e2f1c9def9661be1 | var _ = require('lodash');
var crypto = require('crypto');
var core = require('../../core');
/**
* Basic information
*/
var info = {
name: 'UserActivation',
db: {
collection: 'users.activation',
write: true,
version: '1',
index: [{
keys: { code: 1, },
}],
},
fields: {
_id: {
... | JavaScript | src/server/models/userActivation.js | Volunteerily/volunteerily | mit | 1,204 | 66 | codeparrot/github-code |
d7ee06aaa6aa7cc0e39e0f6411467a501bdc2b1baf91b016eb9a452eeb1b5d90 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | Java | src/support/java/org/apache/harmony/beans/Argument.java | app55/app55-java | mit | 1,625 | 72 | codeparrot/github-code |
5d37b6882a3a45c4612b479e4c9e8e67bb3b6b6b1103d982ecbc1dcdf563fa55 | package com.liuchungui.react_native_umeng_push;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import java.util.Arrays;
... | Java | android/src/main/java/com/liuchungui/react_native_umeng_push/UmengPushPackage.java | chinaczy/react-native-umeng-push | mit | 1,003 | 34 | codeparrot/github-code |
a0cc031f706df2f56162d948c486500d96a17200544bf36ba49a9cfa6fdac521 | package com.example.crystalgame.library.events;
import java.util.EventListener;
/**
* The listener used to receive new message events
* @author Balazs Pete, Allen Thomas Varghese, Rajan Verma
*
*/
public abstract class MessageEventListener implements EventListener {
public final String groupId;
/**
* Creat... | Java | crystal-game-library/src/com/example/crystalgame/library/events/MessageEventListener.java | balazspete/crystal-game | mit | 2,111 | 84 | codeparrot/github-code |
4d2a872316b9293b35c0efd0be6de3f2f9d8838baf4c9eec27a7037c4dc40d7d | /*
* heat.h
*
* Iterative solver for heat distribution
*/
#include <stdio.h>
#include <stdlib.h>
#include "input.h"
#include "heat.h"
#include "timing.h"
#include <papi.h>
/*
PAPI_MODE_FLOPS = flops measuring mode,
PAPI_MODE_CACHE = cache measuring mode
*/
#define PAPI_MODE_FLOPS
void usage( char *s )
{
... | C | Task 2 - Sequential optimization/heat.c | HavocInferno/parallel_S17 | mit | 12,266 | 479 | codeparrot/github-code |
442184593650e504a328809361f31197ebe3cdfd83a7f756e93202410a1b88fc | 'use strict';
var electron = require('electron');
var Menu = electron.remote.Menu;
var MenuItem = electron.remote.MenuItem;
var Dialogs = require('dialogs');
var dialogs = new Dialogs();
// Used to store the coordinates where
// the context menu was clicked
var x,y;
function insertContent (content) {
va... | JavaScript | chapter-09/cirrus-electron/designMenu.js | paulbjensen/book-examples | mit | 2,314 | 103 | codeparrot/github-code |
a8f9fadc286c3c8290015524e52d5307964a70fd272cc1944060d0f205d72096 | 'use strict';
const common = require('../common.js');
const PORT = common.PORT;
const path = require('path');
const fs = require('fs');
const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html');
var bench = common.createBenchmark(main, {
requests: [100, 1000, 10000, 100000, 1000000],
streams: ... | JavaScript | nodejs/benchmark/http2/respond-with-fd.js | hoho/dosido | mit | 994 | 44 | codeparrot/github-code |
ad745854954aabc75398a79b5d5a2f3fbce4186e7737f660b0969e1eac85a945 | <script>
jQuery(function($) {
$('#msform').validate();
});
</script>
<div class="main_content">
<div class="container">
<div class="row">
<?php $this->load->view('reviewer/reviewer_header.php'); ?>
<div class="main_registation_sec">
<div class="col-md-12">
<?... | PHP | application/views_20160103/reviewer/user_profile.php | Raysail/lean | mit | 6,701 | 186 | codeparrot/github-code |
3b5ae8754cdf510b041bd4de3f2bd1961de945931bdcfaac16b10f4db537eed9 | //
// DAAssetMainController.h
// AssetsLogic
//
// Created by Chris Watson on 10/11/2015.
// Copyright © 2015 Donky Networks. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <MobileCoreServices/MobileCoreServices.h>
#import "DNBlockDefinitions.h"
@interface DAAssetMainCon... | C | src/modules/Assets/Main Controller/DAAssetMainController.h | chriswunsch00/DonkySDK-iOS-Modular | mit | 4,281 | 128 | codeparrot/github-code |
c75dc9613ab49b8dc212ed8cea86bb6f02a71c2f86a37304e16b7880401678b0 | using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Linq;
using System.Collections.Generic;
namespace Umbraco.Core.Models.Blocks
{
/// <summary>
/// Converts the block json data into objects
/// </summary>
public abstract class BlockEditorDataConverter
{
private readonly strin... | C# | src/Umbraco.Core/Models/Blocks/BlockEditorDataConverter.cs | dawoe/Umbraco-CMS | mit | 1,415 | 44 | codeparrot/github-code |
8f6f15f53b7eae637ed661f481a5783120324d69e6922bc631f984fcf482dfde | /* eslint-disable import/no-unresolved, import/extensions */
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { View, StyleSheet, NativeModules, findNodeHandle } from 'react-native';
/* eslint-enable import/no-unresolved, import/extensions */
import { ViewPropTypes } from '../uti... | JavaScript | src/Toolbar/RightElement.react.js | xotahal/react-native-material-ui | mit | 6,044 | 224 | codeparrot/github-code |
6c59de6de75ba468548be13a5ec925cc34f0f07b058b78279a5fd1b8a916b550 | /* jshint maxlen: 140, maxstatements: 20 */
/* global beforeEach, describe, it */
(function () {
'use strict';
// Dependencies
var assert = require('proclaim');
var sinon = require('sinon');
// Test subject
var chic = require('../../lib/chic');
var Class = chic.Class;
// Test suit... | JavaScript | test/unit/chic.js | rowanmanning/chic | mit | 5,920 | 168 | codeparrot/github-code |
47f050335f76efb1c7c736ceafa7656e69d29334a9df7cba17a894352e2f5b36 | import bpy
import os
from bpy_extras.io_utils import unpack_list
from .DtsShape import DtsShape
from .DtsTypes import *
from .write_report import write_debug_report
from .util import default_materials, resolve_texture, get_rgb_colors, fail, \
ob_location_curves, ob_scale_curves, ob_rotation_curves, ob_rotation_dat... | Python | import_dts.py | portify/io_scene_dts | mit | 18,549 | 497 | codeparrot/github-code |
f0d44c06abe95d33dfbebaa3b862aca1c99d90f8b5180529e4a1b56b5a350ef5 | //--------------------------------------------------------------------------
// Proyecto Icasus <https://gestionproyectos.us.es/projects/r2h2-icasus/>
// Archivo: public/js/inicio.js
// Desarrolladores: Juanan Ruiz (juanan@us.es), Jesus Martin Corredera (jjmc@us.es),
// Joaquín Valonero Zaera (tecnibus1@us.es)
//------... | JavaScript | icasus/public/js/inicio.js | Universidad-de-Sevilla/icasus | mit | 3,139 | 74 | codeparrot/github-code |
f91e164560d485e906de8a9f68089c134037106022d2491a231875f2c4470f0a | package main
import (
"log"
"text/template"
"../../../gen"
)
func main() {
t, err := template.New("").Parse(tmpl)
if err != nil {
log.Fatal(err)
}
var j js
if err := gen.Gen("markdown", &j, t); err != nil {
log.Fatal(err)
}
}
// The JSON structure we expect to be able to unmarshal into
type js struct {... | GO | exercises/markdown/.meta/gen.go | exercism/xgo | mit | 910 | 60 | codeparrot/github-code |
5ecad0a7c11cfee648c45b9d03697eb067d4f96fceb7003724086fd3fa4c0772 | /*
* Copyright 2013 Red Hat, Inc. and/or its affiliates.
*
* 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 ap... | Java | testing/droolsjbpm-integration-master/kie-aries-blueprint/src/main/java/org/kie/aries/blueprint/namespace/KieObjectsInjector.java | rokn/Count_Words_2015 | mit | 14,772 | 318 | codeparrot/github-code |
9ea1928b568946ee730a6f7798e40bb8facb1e80bd87e00259984391cf740569 | //Scoreboard
//az23
import java.util.ArrayList;
import java.lang.Math;
public class Scoreboard{
ArrayList <ZPolygon> items;
//the offsets here should be top right of where should be drawn;
public Scoreboard(int xOffset,int yOffset,double sf,int sc){
//how many numbers do we need to draw
items = new ArrayList <ZPo... | Java | zeggy/ass/old/Scoreboard.java | volv/volv.org | mit | 1,117 | 41 | codeparrot/github-code |
eac67618813a008c056b3d7b885f2e5c39034e3da5b6543ee86837ce366aa189 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$config['auth.use_extended_profile'] = 0;
/*
Copyright (c) 2011 Lonnie Ezell
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 ... | PHP | system/application/config/application.php | theRexxar/cavaproperty | mit | 10,931 | 286 | codeparrot/github-code |
447ffac4b7f822fbfec19be12296a1d760923e6000f61e931b6fb0f108959afc | package com.smartcodeltd.jenkinsci.plugins.buildmonitor.viewmodel;
import com.smartcodeltd.jenkinsci.plugins.buildmonitor.viewmodel.syntacticsugar.BuildStateRecipe;
import hudson.model.AbstractBuild;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class... | Java | src/test/java/com/smartcodeltd/jenkinsci/plugins/buildmonitor/viewmodel/BuildViewTest.java | sterling000/Jenkins-Custom-Build-Monitor-Plugin | mit | 864 | 33 | codeparrot/github-code |
65c0022e7bd5b429daf628aecf58087356eca119d2e12fbce32c438040c0ce58 | using Android.Widget;
using System;
using System.ComponentModel;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
using FFImageLoading.Work;
using FFImageLoading.Forms.Platform;
using FFImageLoading.Forms;
using Android.Runtime;
using Android.Graphics.Drawables;
using Android.Graphics;
using System.IO;
using... | C# | source/FFImageLoading.Forms.Droid/CachedImageFastRenderer.cs | luberda-molinet/FFImageLoading | mit | 15,843 | 437 | codeparrot/github-code |
ed2a67241615fb7ae24b7339d902f7788e221cde8c10935a4733b844e8da47a5 | /*
* Copyright (C) 2009 Francisco Jerez.
* All Rights Reserved.
*
* 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,... | C | contrib/sdk/sources/Mesa/src/mesa/drivers/dri/nouveau/nouveau_fbo.c | devlato/kolibrios-llvm | mit | 7,101 | 283 | codeparrot/github-code |
ad3013d7e3e1c5cf252d9a48cf86a20f324feaeb510bb6845f75e11b44ff1e7b | //---------------------------------------------------------
// Copyright 2015 Ontario Institute for Cancer Research
// Written by Jared Simpson (jared.simpson@oicr.on.ca)
//---------------------------------------------------------
//
// nanopolish_variants -- tools for calling variants
//
#include <algorithm>
#include ... | C++ | src/nanopolish_variants.cpp | rmp/nanopolish | mit | 5,228 | 152 | codeparrot/github-code |
65cac7e28337384a4509bb72ec6e8f75868c444393edd0cd8c257d4ad88d6a86 | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta
http-equiv="Content-Type"
content="text/html; charset=utf-8"
/>
<title>Basic Usage — slackclient (Legacy Python Slack SDK)</title>
<!-- Google Tag Manager -->
<script>
(function(w, d, s, l, i) {
... | HTML | docs-v2/basic_usage.html | slackapi/python-slackclient | mit | 62,914 | 691 | codeparrot/github-code |
13dd9c4d8654c666605f231e53cb3ea97cd8448b14df63a2afa3c2d794323b0c | /*global require */
/*!
* @see {@link https://github.com/mildrenben/surface/blob/master/gulpfile.js}
* @see {@link https://www.webstoemp.com/blog/gulp-setup/}
* @see {@link https://gulpjs.com/plugins/blackList.json}
* @see {@link https://hackernoon.com/how-to-automate-all-the-things-with-gulp-b21a3fc96885}
* @see... | JavaScript | libs/search/gulpfile.js | englishextra/englishextra.github.io | mit | 8,760 | 327 | codeparrot/github-code |
1c0c9955891ad463888e842d82b325482a9a238e464c53029c54753ff52acf57 | /**
* Logback: the reliable, generic, fast and flexible logging framework.
* Copyright (C) 1999-2015, QOS.ch. All rights reserved.
*
* This program and the accompanying materials are dual-licensed under
* either the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation
*
* ... | Java | org.jpat.scuba.external.slf4j/logback-1.2.3/logback-core/src/main/java/ch/qos/logback/core/joran/action/IncludeAction.java | JPAT-ROSEMARY/SCUBA | mit | 7,543 | 225 | codeparrot/github-code |
af6b6c6e687b96b49ab424f42b401d89692cd0fb73c086eebd14d7da894a83fa | #region Copyright
//
// DotNetNuke® - https://www.dnnsoftware.com
// Copyright (c) 2002-2018
// by DotNetNuke Corporation
//
// 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 restri... | C# | Dnn.AdminExperience/Extensions/Content/Dnn.PersonaBar.Extensions/Components/Security/Attributes/TabExistAttribute.cs | RichardHowells/Dnn.Platform | mit | 2,797 | 62 | codeparrot/github-code |
32f597bed57f39a8d6be39632a819c0a014b2070112841cb07f47f813d63f5a9 |
var LOADING_TPL =
'<div class="loading">' +
'</div>';
var LOADING_HIDE_DEPRECATED = '$ionicLoading instance.hide() has been deprecated. Use $ionicLoading.hide().';
var LOADING_SHOW_DEPRECATED = '$ionicLoading instance.show() has been deprecated. Use $ionicLoading.show().';
var LOADING_SET_DEPRECATED = '$ionicLoad... | JavaScript | js/angular/service/loading.js | shprink/ionic | mit | 5,328 | 177 | codeparrot/github-code |
b81204af3112780a5dd62b9473b2c0d44be23849a9973fb4ea36f0ca0222fe95 | using System;
using System.Collections.Generic;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.ObjectBuilder;
namespace BoC.InversionOfControl.Unity
{
public class TypeTrackingExtension : UnityContainerExtension
{
private readonly Dictionary<Type, HashSet<string>> regi... | C# | Src/Commons.InversionOfControl.Unity/TypeTrackingExtension.cs | MisterJames/BoC | mit | 8,332 | 208 | codeparrot/github-code |
c107577aaa6b4405a97c568d785aee044adef248f692c65fc31b6fcfa31b25c8 | """This file defines the neural network class, where a network is reinitialized from configuration files.
The class also has a forward propagation method.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import json
import numpy as np
import tensorflow ... | Python | cleverhans_v3.1.0/cleverhans/experimental/certification/nn.py | cleverhans-lab/cleverhans | mit | 11,199 | 270 | codeparrot/github-code |
e2ce5e5038c4ec72433032f7a6f05323c9fd9b26f85633b9284358d13e7a813e | /*
* Copyright (C) 2013 Intellectual Reserve, Inc. All rights reserved.
* This notice may not be removed.
*/
package org.lds.example.console.command;
import java.io.IOException;
import java.io.PrintWriter;
import org.lds.media.image.repository.ImageRepository;
import org.springframework.beans.factory.annotation.... | Java | core-spring-lab-01/src/main/java/org/lds/example/console/command/Command.java | thorntonrp/sort-core-spring-framework | mit | 788 | 38 | codeparrot/github-code |
6732b9b181e13cdaf50ece1e40f0ab57b31ff2adfab52921f5d931ce90741dd0 | """
Contains the python specific FileManager.
"""
import ast
import re
from pyqode.core.api import TextBlockHelper
from pyqode.core.managers import FileManager
class PyFileManager(FileManager):
"""
Extends file manager to override detect_encoding. With python, we can
detect encoding by reading the two fir... | Python | pyqode/python/managers/file.py | zwadar/pyqode.python | mit | 2,598 | 75 | codeparrot/github-code |
5f8dc95631cbde2c99b562a42b35d7db23ef541297cf84319bed4ab2b458e53f | var http = require( 'http' ),
events = require( 'events' ),
util = require( 'util' );
function FXPriceGenerator() {
this._url = 'http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote?format=json';
this._intervals = {};
this._rates = {};
http.get( this._url, this._onResponse.bind( this ) );
}
util.in... | JavaScript | backend/provider/fx-price-generator.js | deepstreamIO/ds-demo-provider | mit | 2,146 | 68 | codeparrot/github-code |
33af99a71fc867cfd04fd285dcc500be3627f55e680fee1a0ae844d154fcd3af | "use strict";
/* M@Campbell - 02/10/2016
* Parent class
*
* Will handle the setting up and tearing down of it's children.
*/
var ParentView = Backbone.View.extend({
/* Parent class for the views.
* @method: render()
* @method: derender()
*/
initialize: function() {
_.bindAll(this, '... | JavaScript | ooiui/static/js/views/admin/SystemAdminView.js | FBRTMaka/ooi-ui | mit | 2,385 | 79 | codeparrot/github-code |
b47585a1294112ff038e199d9ecb2c07dac078949e2071a1579df4dcdbbddb0d | /**
* @module com.nahuel.util;
* @author kuakman <3dimentionar@gmail.com>
**/
define(['backbone'], function() {
/**
* Backbone Utility Package
* @namespace Backbone
**/
_.extend(Backbone, {
/**
* @static
* @property Util
* @type Object
**/
Util: {
/**
* Returns a UUID (Universally Uniq... | JavaScript | src/main/java/com/nahuel/html/resources/js/util/backbone-ext.js | nahuelio/nahuel | mit | 2,461 | 106 | codeparrot/github-code |
5ed85e2a0919f5156fc7bedc27c26573232d7e426b416e2c33b6f70cc5af0864 | import argparse
import pathlib
import sys
import xlrd
FILE_FORMAT = 'fastq'
def extract_data(xl_sheet, expected_columns):
"""
1. Check that the columns I expect are present in the sheet
(any order and mixed with others, it's just a verification that
the user filled the correct template)
2. Fill... | Python | tools/ena_upload/process_xlsx.py | mvdbeek/tools-iuc | mit | 9,169 | 174 | codeparrot/github-code |
1dead47fea674ca9f760aa996035bb729ad5533563dcfb02f77757cfcc84efb4 | """
Tables of named colors
"""
import itertools, re
from . import juce, classic
def canonical_name(name):
return name.replace(' ', '').lower()
def to_triplet(color):
rg, b = color // 256, color % 256
r, g = rg // 256, rg % 256
return r, g, b
def set_user_colors(colors):
from . import names
... | Python | bibliopixel/colors/tables.py | rec/BiblioPixel | mit | 2,158 | 85 | codeparrot/github-code |
1cb78634c010dfdd526d521fcdf5ac0217240a1d208506a864a9911f00a8f57f | using System;
using System.Collections.Generic;
namespace Orleans.Runtime
{
/// <summary>
/// Identifies a system target.
/// </summary>
public readonly struct SystemTargetGrainId : IEquatable<SystemTargetGrainId>, IComparable<SystemTargetGrainId>
{
private const char SegmentSeparator = '+'... | C# | src/Orleans.Core.Abstractions/IDs/SystemTargetGrainId.cs | jason-bragg/orleans | mit | 6,354 | 161 | codeparrot/github-code |
5eb3f140c98925164ac8b50632c62ee895ff3e01302122ee36a1b3c35be9115f | \newcommand{\NWtarget}[2]{#2}
\newcommand{\NWlink}[2]{#2}
\newcommand{\NWtxtMacroDefBy}{Fragment defined by}
\newcommand{\NWtxtMacroRefIn}{Fragment referenced in}
\newcommand{\NWtxtMacroNoRef}{Fragment never referenced}
\newcommand{\NWtxtDefBy}{Defined by}
\newcommand{\NWtxtRefIn}{Referenced in}
\newcommand{\NWt... | TeX | lab.tex | sjatakia/Beeyer | mit | 11,036 | 275 | codeparrot/github-code |
f94ba6d959e010c1532367ccc78362cf430de2b3889e69e8725e4c5c504aae54 | package org.workcraft.plugins.circuit;
import org.workcraft.dom.Container;
import org.workcraft.dom.math.AbstractMathModel;
import org.workcraft.dom.math.MathConnection;
import org.workcraft.dom.math.MathNode;
import org.workcraft.dom.references.FileReference;
import org.workcraft.exceptions.InvalidConnectionException... | Java | workcraft/CircuitPlugin/src/org/workcraft/plugins/circuit/Circuit.java | workcraft/workcraft | mit | 4,244 | 124 | codeparrot/github-code |
2da0d1531a52d93ebbf103815f187a670a15f80b5d8fcfd1acb0ec06c2c2e156 | //******************************************************************************************************
// IClientSubscription.cs - Gbtc
//
// Copyright © 2012, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See... | C# | Source/Libraries/GSF.TimeSeries/Transport/IClientSubscription.cs | GridProtectionAlliance/gsf | mit | 16,680 | 325 | codeparrot/github-code |
1b6f887a303caf23a3afb52050ebd05ceb8e309790eaad24aebef4a0541b6a01 | namespace HallScheduler.Server.API
{
using System;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.Owin;
using Microsoft.Owin.Security.Cookies;
using Microsoft.Owin.Security.Google;
using Microsoft.Owin.Security.OAuth;
using Owin;
us... | C# | Source/Server/HallScheduler.Server.API/App_Start/Startup.Auth.cs | Hall-Scheduler/Core | mit | 2,834 | 69 | codeparrot/github-code |
6991a7826e430b0b30b7261512e00b8e7dab9dec0d41da80d4b5d9b8100eabd2 | importScripts('components/threads/client.js');
var client = threads.client('music-service', new BroadcastChannel('music-service'));
function ArtworkService(worker) {
var stopAfter = ServiceWorkerWare.decorators.stopAfter;
worker.get('/api/artwork/original/:filePath', stopAfter((request) => {
return new Promi... | JavaScript | js/services/artwork.js | justindarc/music-nga | mit | 1,350 | 42 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.