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 |
|---|---|---|---|---|---|---|---|---|
dbb8a7666e4f6c1633c3922b4ede49713124295d8f1986cc2f588b4fe88e1cb8 | var NAVTREE =
[
[ "game_of_life", "index.html", [
[ "game_of_life", "md__r_e_a_d_m_e.html", null ],
[ "Classes", null, [
[ "Class List", "annotated.html", "annotated" ],
[ "Class Index", "classes.html", null ],
[ "Class Members", "functions.html", [
[ "All", "functions.html", null ],... | JavaScript | html/navtree.js | cpowell/game_of_life | mit | 14,888 | 524 | codeparrot/github-code |
41c18f3edb286b858018ea9605f2a19a1d208be4dcb206ed42d6e76f50acecbf | <?php
/* TwigBundle:Exception:error.xml.twig */
class __TwigTemplate_6bc63d394db98f901dec1fc11af3b01897a8dc50ddd7cb1ae6f85ee17de9914b extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | PHP | app/cache/prod/twig/6b/c6/3d394db98f901dec1fc11af3b01897a8dc50ddd7cb1ae6f85ee17de9914b.php | jatpatel1/Symblog | mit | 2,006 | 49 | codeparrot/github-code |
c0155e84950c954c7e8e6a5e15d0fa21206bb70951b0f6a11f80550056915105 | package com.medicapital.client.pages.generic;
import static com.medicapital.client.log.Tracer.tracer;
import com.medicapital.client.doctor.CreateDoctorPresenter;
import com.medicapital.client.doctor.DoctorFactory;
import com.medicapital.client.pages.Page;
import com.medicapital.client.user.CreateUserForm;
impor... | Java | client/com/medicapital/client/pages/generic/RegisterPage.java | m-wrona/gwt-medicapital | mit | 1,817 | 47 | codeparrot/github-code |
77700970d9abf5d11a9a450e4005764d1a6a7b6c51f8a51c01c8c6fddbeccf32 | import logging
import os
import subprocess
import traceback
from zipfile import ZipFile
from os import listdir
from os.path import isfile, join
'''
A utility python module containing a set of methods necessary for this kbase
module.
'''
LEVELS = {'debug': logging.DEBUG,
'info': logging.INFO,
'war... | Python | lib/kb_cufflinks/core/script_utils.py | arfathpasha/kb_cufflinks | mit | 5,654 | 187 | codeparrot/github-code |
adf811e659639bea91c4db4dae117e7405a69f8abe3121116b95cb733b4f72f8 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="ht... | HTML | lib/assets/css/css_compiled/@{photonImagePath}plugins/elrte/js/bootstrap/js/plugins/prettify/images/photon/js/plugins/jquery.validate.min.js.html | user-tony/photon-rails | mit | 17,012 | 197 | codeparrot/github-code |
5e3aeba1eb5404cf86e46bd4bdd8444fd69853ae2853eadaf7277d39258d42f4 | package ua.com.fielden.platform.sample.domain;
import static ua.com.fielden.platform.entity.query.fluent.EntityQueryUtils.expr;
import static ua.com.fielden.platform.entity.query.fluent.EntityQueryUtils.select;
import ua.com.fielden.platform.entity.annotation.Calculated;
import ua.com.fielden.platform.entity.annotati... | Java | platform-pojo-bl/src/main/java/ua/com/fielden/platform/sample/domain/TgMachine.java | fieldenms/tg | mit | 2,358 | 69 | codeparrot/github-code |
c85ee296992c49312d5a1227513bc6d87af3c53eb7cf427a12c3ae78af5efb9b | using System;
using System.IO;
using System.Collections.Generic;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using System.Reflection;
namespace Light.DataCore
{
static class DataMapperConfiguration
{
static object locker... | C# | Light.DataCore/Config/DataMapperConfiguration.cs | aquilahkj/Light.DataCore | mit | 10,736 | 215 | codeparrot/github-code |
0b8aee6739f89f71b6d4209d69f6f0aa5d88d677e60f6099f8e70bdf553bbe7e | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... | JavaScript | packages/common/locales/global/fr-VU.js | matsko/angular | mit | 3,475 | 121 | codeparrot/github-code |
797fd48be5505996abe5610fb88fe6a02f6ef24664ff2aa4f7cbef77ae09cde9 | /* ***** BEGIN LICENSE BLOCK *****
* Source last modified: $Id: aacdec.c,v 1.1 2005/02/26 01:47:31 jrecker Exp $
*
* Portions Copyright (c) 1995-2005 RealNetworks, Inc. All Rights Reserved.
*
* The contents of this file, and the files included with this file,
* are subject to the current version o... | C | Project/LPC1549_Keil/CycloneTCP_SSL_Crypto_Open_1_6_4/demo/common/helix/aac_decoder/aacdec.c | miragecentury/M2_SE_RTOS_Project | mit | 14,748 | 452 | codeparrot/github-code |
0f08da3372e6ece6503498250952286c1d880b83653a203ff9956ba98a4bda47 | 'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/* ***** BEGIN LICENSE BLOCK *****... | JavaScript | public/ace/mode-logiql.js | IonicaBizau/test-youtube-api | mit | 28,710 | 626 | codeparrot/github-code |
26bd42a4a29ee4f40a1f39ee7316e825e312755816a836d3ae9dcdd6d0e8869e | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Serializer\Normalizer;
use Symfony\Component\Serializ... | PHP | src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php | nicolas-grekas/symfony | mit | 19,728 | 461 | codeparrot/github-code |
0ba970e5b060ebe04313c0f5e31f15382a724188c4f5376e0fa58feb46de678e | /**
* @param {string} s
* @return {boolean}
*/
const checkValidString = function (s) {
let leftCount = 0, rightCount = 0, starCount = 0;
let idx = 0;
while (idx < s.length) {
let ch = s[idx++];
if (ch === '(') {
++leftCount;
} else if (ch === '*') {
++starC... | JavaScript | src/valid-parenthesis-string/index.js | alenny/leetcode | mit | 956 | 39 | codeparrot/github-code |
42847306dc0c8201f962895b0e360ac3dd7a0b4819a2ebe4eeb284118033b475 | # imports
## core
import importlib
import logging
import os
import pprint
import sys
import StringIO
## 3rd party
import cherrypy
import requests
## local
def full_path(*extra):
return os.path.join(os.path.dirname(__file__), *extra)
sys.path.insert(0, full_path())
import db
logging.basicConfig()
sorry = 'Thi... | Python | myapp.py | metaperl/metaperl-proxy | mit | 797 | 40 | codeparrot/github-code |
0431572a94e968a3f158e422cc9abb07750a99470779e05770f785357d22819f | module Fog
module Compute
class Google
class Mock
def get_forwarding_rule(forwarding_rule_name, region_name)
Fog::Mock.not_implemented
end
end
class Real
def get_forwarding_rule(forwarding_rule_name, region_name)
if region_name.start_with? 'http'
... | Ruby | lib/fog/google/requests/compute/get_forwarding_rule.rb | NETWAYS/fog | mit | 754 | 34 | codeparrot/github-code |
3ae0a2ebf80238fe87cd6efedecab85dd833cb2853c0d5dac1969f051ebc9584 | // noinspection JSUnusedLocalSymbols
const React = require('react')
const moment = require('moment')
const agent = require('../agent')
import {Link} from 'react-router'
import {Row, Col} from 'react-bootstrap'
import ClientForm from './ClientForm'
import _ from 'underscore'
class RegisterClient extends React.Component... | JavaScript | src/clients/RegisterClient.js | ocelotconsulting/global-hack-6 | mit | 1,814 | 69 | codeparrot/github-code |
810c8e3c0cd11a592fb4df4ef43081e6aedbb94277a6a0dbbb7bbcba5dd134c6 | <?php
/* TwigBundle:Exception:traces.txt.twig */
class __TwigTemplate_c9f374eb4f5acd5ea9ef9fd14d72ea3faca3ae2bf59d4db85e284206d4519840 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | PHP | app/cache/dev/twig/c9/f3/74eb4f5acd5ea9ef9fd14d72ea3faca3ae2bf59d4db85e284206d4519840.php | folevo/symfony-blog | mit | 1,750 | 51 | codeparrot/github-code |
2959c433a04e5b1c62c03e05651359c4daa15a6988cd2fb8e61a8eb4d72b0a0e | <?php namespace Fly\Http;
use Fly\Support\MessageBag;
use Symfony\Component\HttpFoundation\Cookie;
use Fly\Session\Store as SessionStore;
use Fly\Support\Contracts\MessageProviderInterface;
class RedirectResponse extends \Symfony\Component\HttpFoundation\RedirectResponse {
/**
* The request instance.
*
* @var... | PHP | src/Fly/Http/RedirectResponse.php | flyphp/flyframework | mit | 3,636 | 191 | codeparrot/github-code |
d799836e5579721fe8df113660ce86e8b47eafd7df3db2714ae2c61d513b6021 | <?php
namespace Nz\CrawlerBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
*/
class Crawled
{
/**
*/
protected $id;
/**
*/
protected $date;
/**
*/
protected $content;
/**
*/
protected $title;
/**
*/
protected $excerpt;
/**
*/
pro... | PHP | Entity/Crawled.php | NadirZenith/NzCrawlerBundle | mit | 3,754 | 253 | codeparrot/github-code |
d01d46a2acfbe60f5e5be03fcc53d17cbcd8d1fbe8ddc7658e53da392974fca6 | /**
* Created by liushuo on 17/2/20.
*/
import React , {Component} from 'react';
import {AppRegistry , ListView , Text , View, StyleSheet,TouchableOpacity, Image, Dimensions} from 'react-native';
let badgeDatas = require('../Json/BadgeData.json')
let {width,height,scale} = Dimensions.get("window");
let cols = 3;
le... | JavaScript | RNDemo/src/Demo/bagImageDemo.js | liuboshuo/react-native | mit | 1,563 | 66 | codeparrot/github-code |
ba8347f928433351a7a93b48449cb59f94a9a220b762722b2e2959e8f15d44d2 | $ = require("jquery");
jQuery = require("jquery");
var StatusTable = require("./content/status-table");
var ArchiveTable = require("./content/archive-table");
var FailuresTable = require("./content/failures-table");
var UploadTestFile = require("./content/upload-test-file");
var UploadCredentials = require("./content/... | JavaScript | client/index.js | stierma1/performance-storm | mit | 2,709 | 65 | codeparrot/github-code |
49a5d11462ebf47a1998b2730c4a3b2897ee527059f183a2c675f81c4271331f | import os
import sys
import numpy as np
import matplotlib.image as mpimg
from ..core.data import Data
from ..util import tryremove
URL = 'http://synthia-dataset.cvc.uab.cat/SYNTHIA_SEQS/'
SEQS = [ # SUMMER and WINTER from sequences `1 - 6`
'SYNTHIA-SEQS-01-SUMMER',
'SYNTHIA-SEQS-01-WINTER',
'SYNTHIA-SEQS... | Python | src/e2eflow/synthia/data.py | simonmeister/UnFlow | mit | 2,040 | 65 | codeparrot/github-code |
c91abea84e2fe86c17ce4520d53d6a330c4c40d7653a82fd629ae10cfcd4d6d6 | import { useState, useRef, useLayoutEffect } from 'react';
import { c } from 'ttag';
import createListeners from '@proton/shared/lib/helpers/listeners';
import { wait } from '@proton/shared/lib/helpers/promise';
import { AppLink, useIsMounted } from '@proton/components';
import { VIEW_MODE } from '@proton/shared/lib/co... | TypeScript | applications/mail/src/app/components/notifications/SendingMessageNotification.tsx | ProtonMail/WebClient | mit | 3,926 | 113 | codeparrot/github-code |
84d72df7084a5e6ba53b9b8939999ba2a892eb2398880160f232e372d9f2e5cb | import { Inject, Injectable } from '@angular/core';
import { FormGroup } from '@angular/forms';
import {
Account, AccountKind, AccountType, AccountWithOwner,
BaseTransferDataForSearch, Image, PreselectedPeriod, RecurringPaymentStatusEnum,
TransactionDataForSearch, TransactionKind, TransactionResult
} from 'app/ap... | TypeScript | src/app/ui/core/banking-helper.service.ts | cyclosproject/cyclos4-ui | mit | 7,028 | 200 | codeparrot/github-code |
074ba1e58b4dbff73639d95439fc659b0283e5c91b98a6bf16caa506005444eb | module Netscaler
class Ssl
class Vserver
class Bind < NetscalerService
def initialize(netscaler)
@netscaler=netscaler
end
def sslcertkey(payload)
raise ArgumentError, 'payload cannot be null' if payload.nil?
validate_payload(payload, [:vservername, :cer... | Ruby | lib/netscaler/ssl/vserver/bind.rb | GravityLabs/netscaler | mit | 1,245 | 33 | codeparrot/github-code |
b6334d99b7d1265aaa21530db5aeeb9a7e294efac410deccaf7919adc1c01aeb | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>2012大CC | 大CC</title>
... | HTML | wp-content/cache/supercache/blog.me115.com/date/2012/index.html | me115/me115.github.io | mit | 26,518 | 379 | codeparrot/github-code |
3b3f14345becdc6df2d06be1eebd95e4ca1d7764d2dccd71caad25df367ec126 | class PagesController < ApplicationController
def index
if session[:user_id]
@user = User.find(session[:user_id])
redirect_to dashboard_path
end
end
def auth
@auth = Authorization.find_by_provider_and_uid(auth_hash.provider, auth_hash.uid)
@w... | Ruby | app/controllers/pages_controller.rb | kevinkorte/titanhomes-todolist | mit | 1,907 | 57 | codeparrot/github-code |
1a2e1409435063b0bd3b541489319587f195a536362340f555e1784473441d6c |
Palette = function(name,colors){
this.name = name;
this.colors = colors;
};
Palette.prototype.hasName = function(name){
return this.name.toLowerCase() == name.toLowerCase()?true:false;
};
Palette.prototype.getRandomColor = function(){
return this.colors[(Math.floor(Math.random() * this.colors.length))];
... | JavaScript | src/palette.js | sirCamp/supercolor | mit | 825 | 44 | codeparrot/github-code |
0f47435d8c37469043eafcf908f1548cd908120012a18b10916cb9b907168640 | <section id="option-retina">
<?php if (DEMO !== 'one-image'): ?>
<div class="page-header">
<h2><a href="one-image.php" class="btn btn-md btn-primary"><i class="fa fa-play"></i></a> One image <small>When you know nothing but the path to only one image.</small></h2>
</div>
<?php endif;... | PHP | demo/more-demo.php | shprink/BttrLazyLoading-demo | mit | 2,009 | 32 | codeparrot/github-code |
395d79c8f0544ee009b2a39b1c8491f9a986a3355f4504fb7a2bd1900179e9ba | package enhacore.informatica;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.s... | Java | src/enhacore/informatica/Scan.java | Bryan-0/BagJek | mit | 1,385 | 50 | codeparrot/github-code |
6ffa2fcb11798450ab502aa0d1f8f1cf1758f423482439e2929cf6511a25b64b | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.ExternalPackageGenerators.Msdn
{
using System;
using System.Collections.Generic;
using System.Configuration;
using System.... | C# | tools/ExternalPackageGenerators/Microsoft.DocAsCode.ExternalPackageGenerators.Msdn/Program.cs | 928PJY/docfx | mit | 29,603 | 751 | codeparrot/github-code |
96f3ab50e5433abf4e9a68bd6dc0e46260b5c5272b9c531f3c752ee6e36c41fd | # encoding: UTF-8
module Vines
class Stanza
class Presence
class Unsubscribe < Presence
register "/presence[@type='unsubscribe']"
def process
stamp_from
inbound? ? process_inbound : process_outbound
end
def process_outbound
to = stamp_to
... | Ruby | lib/vines/stanza/presence/unsubscribe.rb | gumpyyyy/lygneo-vines | mit | 1,089 | 39 | codeparrot/github-code |
bdf82ee2e2f60d4a7302dce3dee630bb950db1afdba495837bae9651d352ce2a | 'use strict';
const inflect = require('i')();
const _ = require('lodash');
const Promise = require('bluebird');
const fs = Promise.promisifyAll(require('fs'));
const options = {
adapter: 'mongodb',
connectionString: 'mongodb://127.0.0.1:27017/testDB',
db: 'testDB',
inflect: true
};
console.log(JSON.stringify(o... | JavaScript | non-functionals/mappingMaker.js | agco/elastic-harvesterjs | mit | 5,856 | 181 | codeparrot/github-code |
c0ce713809d63f3c4d78a188d23c6233835af2e19990bc0d8ce06d9bb6a2a24a | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| T... | PHP | application/config/routes.php | whadever/ezpz_2 | mit | 2,010 | 55 | codeparrot/github-code |
2628c2450bc50500f88ed529f24847f521dd40dbb4d5880cc14e9660573812d5 | function noReservedDays(date) {
var m = date.getMonth(), d = date.getDate(), y = date.getFullYear();
for (i = 0; i < reservedDays.length; i++) {
if ($.inArray((m + 1) + '-' + d + '-' + y, reservedDays) !== -1) {
return [false];
}
}
return [true];
}
$("#input_fr... | JavaScript | application/skins/fashionweb/js/Bookingsystem/request.js | fashionweb/moraso | mit | 1,824 | 47 | codeparrot/github-code |
6b51f0a64a82b0b3759ed0ac0dfde2c2276d983c68b7896bf9d605b32613b65b | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>J.B. Design</title>
<!-- B... | HTML | public/index.html | amphib24/Professional | mit | 27,913 | 532 | codeparrot/github-code |
461cc40bfe7c2b5e622d9587390c7bc1f8c6dcf61883d45b000062bae2771246 | $(document).ready(function () {
// Regex pour avoir les contenus des balises <amb>
// Exemple : L'<amb>avocat</amb> mange des <amb>avocats</amb>.
// Donne : $1 = avocat, puis $1 = avocats
var regAmb = new RegExp('<amb>(.*?)</amb>', 'ig');
// Regex pour avoir les contenus des balises <amb> et leurs ... | JavaScript | web/js/editeur.js | alexdu98/Ambiguss | mit | 13,145 | 329 | codeparrot/github-code |
dac579678e610c3e73c976108e84054fa39265d1dce536c73a431b8b2d20fa32 | package org.lattilad.bestboard.webview;
import android.app.Activity;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.preference.PreferenceManager;
import a... | Java | app/src/main/java/org/lattilad/bestboard/webview/WebViewActivity.java | Palmodroid/BestBoard | mit | 10,963 | 335 | codeparrot/github-code |
d4b72286ee3751ee3c09977c140058de6154ede2891718db823916ea9912b225 | /**
* Created by cin on 1/18/14.
*/
/**
* Created by cin on 1/18/14.
*/
var _ = require('underscore'),
chance = new (require('chance'))(),
syBookshelf = require('./base'),
User = require('./user'),
CoStatus = require('./co-status'),
UserCooperation = require('./user-cooperation'),
UserCooperations = UserCoope... | JavaScript | models/cooperation.js | node-fun/siyuan | mit | 3,781 | 152 | codeparrot/github-code |
d512d9608d3461ae75456f81037db8e18f4f3eea203428cf32a2888249daa412 | <?php
/**
* @license MIT
* Full license text in LICENSE file
*/
namespace Eadrax\Core\Usecase\Project\Edit;
use Eadrax\Core\Usecase\Project;
use Eadrax\Core\Usecase\Project\Edit\Author;
use Eadrax\Core\Exception;
class Interactor
{
private $author;
private $proposal;
private $project_prepare;
publ... | PHP | src/Eadrax/Core/Usecase/Project/Edit/Interactor.php | Moult/eadrax-old | mit | 757 | 33 | codeparrot/github-code |
1292920c14d8fd2a33e273272875ef99d610d0a16ff42688398965aa6f515cd2 | #include <QApplication>
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "util.h"
#include "init.h"
#include <QDateTime>
#include <QDoubleValidator>
#include <QFont>
#include <QLineEdit>
#if QT_VERSION >= 0x050000
#include <QUrlQuery>
#else
#inclu... | C++ | src/qt/guiutil.cpp | Ninespire/Ravecoin | mit | 16,186 | 532 | codeparrot/github-code |
f6b3bcdfa3ccc39f129733c525edb70541e6130efc307e875ee7cbcb1d08b06a | using System;
using System.Linq;
namespace Altitude
{
public class altitude
{
public static void Main()
{
string[] comands = Console.ReadLine().Split(' ').ToArray();
int ctr = int.Parse(comands[0]);
double result = ctr;
double diff = 0;
... | C# | 04.SimpleArrayExercises/Altitude/altitude.cs | spzvtbg/C-Sharp-ProgrammingFundamentals | mit | 1,033 | 37 | codeparrot/github-code |
9be5da3eff22de51ebe650f6e3d839f9453cd89ad193ff6167ac3dfb226afaa8 | // Copyright IBM Corp. 2014. All Rights Reserved.
// Node module: async-tracker
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
var assert = require('assert');
require('../index.js');
var fs = require('fs');
var util = require('util');
var cnt = 0;
var ... | JavaScript | test/test-fs-open-close.js | strongloop/async-tracker | mit | 1,581 | 73 | codeparrot/github-code |
d3bd19506686939031e4456a293fceee0f4ca842c9d10e3c7737003cfd4e7f0b | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Reflection;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
namespace WebApi.OutputCache.V2
{
[AttributeUsage(AttributeTargets.Class, AllowMulti... | C# | WebApi.OutputCache.V2/AutoInvalidateCacheOutputAttribute.cs | kaevans/globalscaledemo | mit | 3,839 | 83 | codeparrot/github-code |
e925e374cbc55225541ec896f331451148950365ec30007fcfabe3966a8d5ee7 | var prettyURLs = require('../middleware/pretty-urls'),
cors = require('../middleware/api/cors'),
urlRedirects = require('../middleware/url-redirects'),
auth = require('../../auth');
/**
* Auth Middleware Packages
*
* IMPORTANT
* - cors middleware MUST happen before pretty urls, because otherwise cors h... | JavaScript | versions/1.19.0/core/server/web/api/middleware.js | kpsuperplane/personal-website | mit | 1,470 | 53 | codeparrot/github-code |
6e4396edc015c1c203b14d73cee9d2ab341e7571dcfb50b6bde17a4643047337 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("... | JavaScript | src/components/searchbar-compiled.js | ShaneFairweather/React-iTunes | mit | 3,071 | 66 | codeparrot/github-code |
2dcbefc0009d0dea349f2171d3f340a12ed47b8f021483d41dd2a2a8709074ad | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>sudoku: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/released/8.14.0/sudoku/8.6.0.html | coq-bench/coq-bench.github.io | mit | 7,236 | 168 | codeparrot/github-code |
3a65c2e50472d4dbb8af31420ae022b2e4c8f2df9086c683d114d22b15b74533 | const Discord = require("discord.js");
const client = new Discord.Client();
const settings = require("./settings.json");
const chalk = require("chalk");
const fs = require("fs");
const moment = require("moment");
require("./util/eventLoader")(client);
const log = message => {
console.log(`[${moment().format("YYYY-MM-... | JavaScript | app.js | JohnnyMustang/UGbot | mit | 3,307 | 110 | codeparrot/github-code |
62b71e3748f0b4b108ed5ddf02f6ebda6b96a9441a7c2d1388e1376eb97f477d | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Data_pemesanan extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model(array(
'model_pemesanan' => 'pemesanan',
));
// if ($this->session->userdata('level') != 1)
// {
... | PHP | application/modules/admin/controllers/Data_pemesanan.php | djuned92/i-crm | mit | 5,922 | 162 | codeparrot/github-code |
8d6d11b5a16d7baa61421d9d62698aff7e7ebdd0ceaa96ce53c299e52877d5ca | <!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>432 andrew gelman stats-2010-11-27-Neumann update</title>
</head>
<body>
<p><a title="andrew_gelman_stats" href="../andrew_gelman_stats_home.html">andrew_gelman_stats</a> <a title="andrew_gelman_stats-2010" href="../home/andrew_gelman_stats-2010_home.html">andr... | HTML | blog-mining/andrew_gelman_stats/andrew_gelman_stats-2010/andrew_gelman_stats-2010-11-27-Neumann_update.html | makerhacker/makerhacker.github.io | mit | 33,951 | 257 | codeparrot/github-code |
db63a281e8fff3ce28392310f7b72a99fcee974bb6a6bd80d2532b7896d0d17c | package com.aimbrain.sdk.faceCapture;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.graphics.RectF;
import android.util.Base64;
import com.aimbrain.sdk.Manager;
import com.aimbrain.sdk.faceCapture.views.FaceFinderUtil;
import com.aimbrain.sdk.models.StringListDataModel;
import com.aim... | Java | aimbrain/src/main/java/com/aimbrain/sdk/faceCapture/PictureManager.java | aimbrain/aimbrain-android-sdk | mit | 3,448 | 85 | codeparrot/github-code |
03be394189e2b26a33b6a8bd22fdaff531f03279250c0bb69a4609072a52e04a | import scipy.misc, numpy as np, os, sys
def save_img(out_path, img):
img = np.clip(img, 0, 255).astype(np.uint8)
scipy.misc.imsave(out_path, img)
def scale_img(style_path, style_scale):
scale = float(style_scale)
o0, o1, o2 = scipy.misc.imread(style_path, mode='RGB').shape
scale = float(style_scal... | Python | server/src/utils.py | gmittal/prisma | mit | 975 | 34 | codeparrot/github-code |
36c25c9914f0f535c2b61f2a06f39eddc68e4b0405445765d7a8c7012ca61c06 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Automation;
using System.Diagnostics;
namespace mmswitcherAPI.Messengers.Web.Browsers
{
internal sealed class OperaSet : BrowserSet
{
public override string Messenge... | C# | mmswitcherAPI/Messengers/Web/Browsers/Opera.cs | CoffeeNova/mmswitcher | mit | 6,902 | 169 | codeparrot/github-code |
d7d8a5e2a9e6edafa215a90fe416e33b0bb4ce4f60baa0bf66a7ab7692913b51 | import React from 'react';
import { storiesOf } from '@storybook/react';
import moment from 'moment';
import {
withKnobs,
number,
object,
boolean,
text,
select,
date,
array,
color,
files,
} from '../../src';
const stories = storiesOf('Example of Knobs', module);
stories.addDecorator(withKnobs);
s... | JavaScript | addons/knobs/example/stories/index.js | rhalff/storybook | mit | 3,615 | 116 | codeparrot/github-code |
5809723537fe927c27d4fdbb1e6703db5576076d97881310cca88b6a4bf92a79 |
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Scanner;
public class Password {
/**
* A custom exception to implicate the requirement of making password.
*
*/
private static class PasswordNotCombinedException extends Exception {
pri... | Java | passwcode.java | davidwoods2992/passwordcheck | mit | 6,873 | 213 | codeparrot/github-code |
9b207ef6e93e155fea4b4b6e5665213de84d62ad9a64b665fbfe4ef0e0704e37 | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | C++ | Engine/source/core/util/uuid.cpp | Bloodknight/Torque3D | mit | 13,709 | 477 | codeparrot/github-code |
3790cd2d39862f84601dd46a56726aaaf20c93c5cafc22f1942b5f2187f09eab | /* */
define(['exports', './i18n', 'aurelia-event-aggregator', 'aurelia-templating', './utils'], function (exports, _i18n, _aureliaEventAggregator, _aureliaTemplating, _utils) {
'use strict';
exports.__esModule = true;
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0;... | JavaScript | jspm_packages/npm/aurelia-i18n@0.4.1/t.js | mbroadst/aurelia-plunker | mit | 4,011 | 111 | codeparrot/github-code |
0c9dfbdd64c1fa1384255b44f70e342113100a1de694587545de49c679f1d19f | /* eslint-disable no-console */
import assert from "assert";
import * as fs from "fs";
import * as os from "os";
import * as asyncio from "@azure-tools/async-io";
import * as tasks from "@azure-tools/tasks";
import { ExtensionManager, InvalidPackageIdentityException, UnresolvedPackageException } from "../src";
const t... | TypeScript | packages/libs/extension/test/test-extensions.test.ts | Azure/autorest | mit | 6,880 | 221 | codeparrot/github-code |
63a1987fed9d55ced0c0e418f1de8bc63a136dd0c691b5b157125fadb137027d | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
// vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisa... | JavaScript | app/assets/javascripts/application.js | famendola1/Worksheet-Digitalization | mit | 3,217 | 107 | codeparrot/github-code |
68373adf4491d934313289be9ac777cc4a341f5ada9ba274ba75f9bff60b1c39 | // predict_randomforest.cpp -
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include <opencv/ml.h>
#include <H5Cpp.h>
#include <assert.h>
using namespace cv;
using namespace H5;
using namespace std;
H5File open_feature_file(char *filename);
vector<string> get_feature_names(H5File h5f);
void read_feature(H5File ... | C++ | ClassifyMembranes/predict_randomforest.cpp | Rhoana/rhoana | mit | 2,622 | 81 | codeparrot/github-code |
6c4a4b415178af069e0789147ce14850d702c4f174ec59c7a4af6d5d2a3779e6 | /*
* This file is part of the Cliche project, licensed under MIT License.
* See LICENSE.txt file in root folder of Cliche sources.
*/
package com.maxifier.cliche;
import java.lang.reflect.Method;
import java.util.Arrays;
/**
* This interface is a Strategy for auto-naming commands with no name specified
* based ... | Java | cliche-shell-core/src/main/java/com/maxifier/cliche/CommandNamer.java | maxifier/cliche-shell | mit | 3,005 | 84 | codeparrot/github-code |
a8ebd2fdf6f8b4348f2e9de2d51c1dea8dc8e3af854b19063052622f7d3d5477 | package leetcode
// https://leetcode-cn.com/problems/implement-stack-using-queues/
/**
// 225. 用队列实现栈
使用队列实现栈的下列操作:
push(x) -- 元素 x 入栈
pop() -- 移除栈顶元素
top() -- 获取栈顶元素
empty() -- 返回栈是否为空
注意:
1. 你只能使用队列的基本操作-- 也就是 push to back, peek/pop from front, size, 和 is empty 这些操作是合法的。
2. 你所使用的语言也许不支持队列。 你可以使用 list 或者 deque(... | GO | leetcode/golang/225_implement_stack_using_queues.go | lujin123/algorithms | mit | 1,267 | 58 | codeparrot/github-code |
bfade24f624b9bead615f6e9b7ef2f660e5645710eef7f43e1e564341d4932b9 | "use strict";
////////////////////////////////////////////////////////////////////////////////
// デスクトップ通知履歴
////////////////////////////////////////////////////////////////////////////////
Contents.notify_history = function( cp )
{
var p = $( '#' + cp.id );
var cont = p.find( 'div.contents' );
var notify_history_l... | JavaScript | js/contents/notify_history.js | hotuta/hottwi | mit | 4,093 | 164 | codeparrot/github-code |
c37e45f04c2835c45283ff633c35f33a3eb8c6cdb250a603bf11e95e4a7adef8 | 'use strict';
var util = require('util')
, yeoman = require('yeoman-generator')
, github = require('../lib/github')
, path = require('path')
, inflect = require('inflect');
var BBBGenerator = module.exports = function BBBGenerator(args, options, config) {
// By calling `NamedBase` here, we get the ar... | JavaScript | bbb/index.js | duro/generator-clutch | mit | 2,456 | 91 | codeparrot/github-code |
76f4909acf1693374172fab81d359b9054c6e73e8336866aefc454b21d6c73e8 | /**
* @Title: ParamManaService.java
* @Package com.dowin.param
* @Description: 从zookeeper中取出参数数据并转化成javabean存入内存
* @author administrator
* @date 2016年5月23日 下午1:32:40
* @version V1.0
* Update Logs:
* ****************************************************
* Name:
* Date:
* Description:
*******************... | Java | common-wang/wang-common-core/src/main/java/com/wang/common/zookeeper/ParamManaService.java | wslyy99/springmvc-wang | mit | 4,333 | 132 | codeparrot/github-code |
b2033e373aa933dac5d425c5c4c80c938cb523cc69d838cc032c6e8ab490591d | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="LLBLGenPersistEntityBehavior.cs" company="Kephas Software SRL">
// Copyright (c) Kephas Software SRL. All rights reserved.
// </copyright>
// <summary>
// Implements the commo... | C# | src/Kephas.Data.LLBLGen/Behaviors/LLBLGenPersistEntityBehavior.cs | quartz-software/kephas | mit | 3,197 | 78 | codeparrot/github-code |
cc4dd1ebf17e9a9efecda2d395b98e85474f540705e70892c7a5cde1240eaebf | package org.jabref.gui.groups;
import java.util.List;
import org.jabref.gui.undo.AbstractUndoableJabRefEdit;
import org.jabref.logic.l10n.Localization;
import org.jabref.model.groups.AbstractGroup;
import org.jabref.model.groups.GroupTreeNode;
class UndoableModifyGroup extends AbstractUndoableJabRefEdit {
priva... | Java | src/main/java/org/jabref/gui/groups/UndoableModifyGroup.java | bartsch-dev/jabref | mit | 1,785 | 57 | codeparrot/github-code |
170d809fc110fa4cb70b9aacfab65e46f4ac7503af963a31dad7e457450dac4d | <!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/jspsych.js"></script>
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-html-button-response.js"></script>
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@6.3.1/plugins/jspsych-rdk.js... | HTML | docs/demos/jspsych-rdk-demo3.html | jodeleeuw/jsPsych | mit | 2,070 | 61 | codeparrot/github-code |
e89c5fb0f35ef3d8dfb5589ff3bce9974d9bef01c2a690eca8cf18053d917698 | /*
* This file is part of NucleusFramework for Bukkit, licensed under the MIT License (MIT).
*
* Copyright (c) JCThePants (www.jcwhatever.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 ... | Java | src/com/jcwhatever/nucleus/utils/observer/future/FutureResultAgent.java | JCThePants/NucleusFramework | mit | 14,890 | 510 | codeparrot/github-code |
73c60fef03170adfa77060eb8efd89961570a2dfd12ce549fb83444880c550eb | #pragma once
template <class T>
class stl_node
{
public:
stl_node() : m_prev(nullptr), m_next(nullptr) {}
stl_node(const T& v) : m_data(v), m_prev(nullptr), m_next(nullptr) {}
~stl_node() { remove(); }
stl_node(const stl_node& o) : m_data(o.m_data), m_next(nullptr), m_prev(nullptr) { ((stl_node&)o).add(*this); }
... | C++ | Source/Shared/engine/cfc/stl/stl_node.hpp | JJoosten/IndirectOcclusionCulling | mit | 1,584 | 65 | codeparrot/github-code |
881e813fa99837d457e96bee18ec2f30965be2a12106700584829147f3b0036c | use std::collections::HashMap;
use std::fmt;
use std::iter;
use std::result;
use std::sync::Arc;
use syntax::hir::{self, Hir};
use syntax::is_word_byte;
use syntax::utf8::{Utf8Range, Utf8Sequence, Utf8Sequences};
use prog::{
EmptyLook, Inst, InstBytes, InstChar, InstEmptyLook, InstPtr, InstRanges,
InstSave, I... | Rust | src/compile.rs | rust-lang-nursery/regex | mit | 43,387 | 1,227 | codeparrot/github-code |
39e2ef97497b3923ee30728a963565accdc15462c97adbec7a158fb8acaed023 | 'use strict';
var _require = require('./parseProps'),
parsePropTypes = _require.parsePropTypes,
parseDefaultProps = _require.parseDefaultProps,
resolveToValue = require('./util/resolveToValue');
module.exports = function (state) {
var json = state.result,
components = state.seen;
var isAssignin... | JavaScript | lib/assignment-visitor.js | jquense/react-component-metadata | mit | 1,098 | 32 | codeparrot/github-code |
7168742b74a530bf38f91f869533d3c03f8886fcef25caf3e31fb19c171c27d4 | 'use strict';
const expect = require('chai').expect;
const deepfind = require('../index');
const simpleFixture = {
'key': 'value'
};
const complexFixture = {
'key1': {
'key': 'value1'
},
'key2': {
'key': 'value2'
},
'key3': {
'key': 'value3'
}
};
describe('deepfind', () => {
it('should ... | JavaScript | test/index.js | lemonJS/DeepFind | mit | 1,197 | 48 | codeparrot/github-code |
1086144d343c61ff5d511a4a7156c915be7adba8b5833c367dfb363bb5bbfb08 | <?php
/**
* libWebThumbnail
*
* @desc api.webthumbnail.org
* @author Lukasz Cepowski <lukasz[at]cepowski.pl>
* @author Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @link http://phpmanufaktur.de
* @copyright 2012 Ralf Hertsch, phpManufaktur
* @copyright 2012 Ognisco Software
* @license MIT License (MIT) http... | PHP | droplets/sources/webthumbnail.php | phpManufaktur/libWebThumbnail | mit | 1,880 | 42 | codeparrot/github-code |
8b7b746dc5a3c7efb4b756fc8325c2edfc4322b314dca43bec58d8d42d94c710 | package view;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Observable;
import javax.swing.*;
import javax.swing.border.EtchedB... | Java | Sensory Data Grapher/src/view/PlotSettingsPanel.java | soldom/sensory-data-grapher | mit | 7,338 | 210 | codeparrot/github-code |
ede341302b561cbd2aca691901397ff8aafbe58181e6036d5785bf19106ea123 | using System;
using System.Collections.Generic;
using System.Composition;
using System.Composition.Hosting;
namespace Wrox.ProCSharp.Composition
{
public class CalculatorManager
{
private CalculatorImport _calcImport;
public event EventHandler<ImportEventArgs> ImportsSatisfied;
public... | C# | Composition/UICalculator/CalculatorViewModels/CalculatorManager.cs | christiannagel/ProfessionalCSharp7 | mit | 1,146 | 41 | codeparrot/github-code |
0ba9d911cb5a4b0e76d276e665e8bc5aa27eb7955644d43e6d18b24db5a1ad69 | from datetime import datetime
import hashlib
from extractor import Ways
from date import way_date
class Helpers:
'''
'''
@staticmethod
def make_id(website, timestamp):
'''
'''
m=hashlib.md5()
m.update(''.join([website, timestamp]).encode())
return m.hexdigest()
... | Python | response.py | VulcanoAhab/waybackeess | mit | 1,236 | 65 | codeparrot/github-code |
a9f2c7902d74c1c347ae8f404c872ee124a104b54f91b2f66decd89927b3e942 | package org.nearbyshops.ModelEndpoint;
import org.nearbyshops.Model.ItemCategory;
import org.nearbyshops.Model.ShopItem;
import java.util.ArrayList;
import java.util.List;
/**
* Created by sumeet on 30/6/16.
*/
public class ShopItemEndPoint {
private Integer itemCount;
private Integer offset;
private ... | Java | src/main/java/org/nearbyshops/ModelEndpoint/ShopItemEndPoint.java | SumeetMoray/Nearby-Shops-API | mit | 1,533 | 78 | codeparrot/github-code |
4463dd34ba1d82f17316b9a5b1f759a350bf41c86f5c0c6f0a2a452d1260622c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>paradoxes: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | HTML | clean/Linux-x86_64-4.09.0-2.0.5/extra-dev/8.10.0/paradoxes/8.7.0.html | coq-bench/coq-bench.github.io | mit | 7,400 | 170 | codeparrot/github-code |
f2d84c1a9be963536b5fb3a0bb12e9bbba01f8fcddcc5dd9023bee91b6dbed87 | <?php
/**
* @file controllers/grid/admin/categories/form/AdminCategoryForm.inc.php
*
* Copyright (c) 2003-2013 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class AdminCategoryForm
* @ingroup controllers_grid_admin_categories_form
*
* @brief Form for adding/... | PHP | controllers/grid/admin/categories/form/AdminCategoryForm.inc.php | sly01/ojs | mit | 2,423 | 91 | codeparrot/github-code |
dc264dfd4a57bbcdffce849342cdc69d42dbd755f6d172494bccdf31b48f5d57 | /*
* Copyright (c) 2015-2017 Annemarie Mattmann, Johannes Mattmann,
* Matthias Gazzari, Moritz Hagemann, Sebastian Artz
*
* Licensed under the MIT license. See the LICENSE file for details.
*/
#pragma once
#include <string>
#include <vector>
#include <SFML/Graphics.hpp>
class TextBox
{
public:
struct TextElem... | C++ | src/TextBox.hpp | qtux/ggj15 | mit | 785 | 40 | codeparrot/github-code |
ff3853a2957d2d93f52b780562cbec6ca3de5257a230f4a4e4b2cd3ce7a09174 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
[RequireComponent(typeof(BezierSpline))]
public class TrackGeneration : MonoBehaviour {
public int curvePoints = 32;
public float radiusSizeFactor = 10f;
public float roadSize = 20f;
public float roadWallSize = 3f;
public Vector2... | C# | PCGRace/Assets/Scripts/Tracks/TrackGeneration.cs | adrianogil/ProceduralRace | mit | 6,468 | 238 | codeparrot/github-code |
159037fd357f0bdf424ce364532be88b1a45599602dc771118fac61241c1283f | package org.jabref.logic.externalfiles;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.stream.Stream;
import org.jabref.logic.util.io.FileUtil;
import org.jabref.model.database.BibDatabaseC... | Java | src/main/java/org/jabref/logic/externalfiles/LinkedFileHandler.java | zellerdev/jabref | mit | 6,256 | 153 | codeparrot/github-code |
dfabf02b9e42377deefd832d233874897eb57509f39984264611d55da14c14c9 | import sys # this allows you to read the user input from keyboard also called "stdin"
import classOne # This imports all the classOne functions
import classTwo # This imports all the classTwo functions
import classThree # This imports all the classThree functions
import classFour # This imports all the classFour fun... | Python | quiz.py | nischal2002/m-quiz-2016 | mit | 1,704 | 53 | codeparrot/github-code |
6953e1974b1e5975511b8fd5213e687c04ff1a3837fb766e13c3b42eef209198 | // 22 may 2015
#include "test.h"
static void openFile(uiButton *b, void *data)
{
char *fn;
fn = uiOpenFile();
if (fn == NULL)
uiLabelSetText(uiLabel(data), "(cancelled)");
else {
uiLabelSetText(uiLabel(data), fn);
uiFreeText(fn);
}
}
static void saveFile(uiButton *b, void *data)
{
char *fn;
fn = uiSave... | C | test/page5.c | mantyr/libui | mit | 1,917 | 96 | codeparrot/github-code |
57c4cab03b061129802e93e67a07240b9e09f41b3092c904995650fe61a7bb48 | using System;
using System.IO;
using System.Linq;
namespace Raven.VisualHost
{
public class MultiStreamWriter : Stream
{
private Stream[] streams;
public MultiStreamWriter(params Stream[] streams)
{
this.streams = streams;
}
public override void Flush()
{
foreach (var stream in s... | C# | RavenDB-Build-2700/Samples/Raven.VisualHost/MultiStreamWriter.cs | samuelstein/FingerSpellingKinect | mit | 1,461 | 81 | codeparrot/github-code |
94273a5ef267cbb0fbc4f9897511bf9d2139bddfe55b775cb0f4aa720da46f95 | import type {SpecDirectory, OptionKey} from '../spec-directory';
import {Compiler} from '../compiler';
import {
failures,
TestResult,
getExpectedFiles,
overwriteResults,
SassResult,
} from './util';
import {compareResults} from './compare';
import {getExpectedResult} from './expected';
/**
* A wrapper aroun... | TypeScript | lib-js/test-case/test-case.ts | sass/sass-spec | mit | 6,522 | 219 | codeparrot/github-code |
7384b9aec9408abb3038f685c697ab3ce1a76bb1a707bc7f90b2fd433a7a50ac | import numpy
from srxraylib.plot.gol import plot_image, plot
import sys
from comsyl.scripts.CompactAFReader import CompactAFReader
def plot_stack(mystack,what="intensity",title0="X",title1="Y",title2="Z"):
from silx.gui.plot.StackView import StackViewMainWindow
from silx.gui import qt
app = qt.QAppl... | Python | orangecontrib/comsyl/scripts/load_results_from_file.py | srio/oasys-comsyl | mit | 2,411 | 78 | codeparrot/github-code |
4ad5a05e954f72bb95467ad77520ed1dd7fbbef8685b4fa42214c8c3ee9869dd | /*!
Tiny table
*/
var TINY = {};
function T$(i) {
return document.getElementById(i);
}
function T$$(e, p) {
return p.getElementsByTagName(e);
}
TINY.table = function() {
function sorter(n, t, p) {
this.n = n;
this.id = t;
this.p = p;
if (this.p.init) {
thi... | JavaScript | web/js/tinyTableV3.js | CollDev/terapiyo | mit | 14,941 | 433 | codeparrot/github-code |
7049a775b74a0de962b865770940f7915142ade4913c89ddc1aa52a347d3d032 | (function () {
function getQueryVariable(variable) {
var query = window.location.search.substring(1),
vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] === variable) {
return pair[1];
}
}
}
function getPreview(query, content, previewL... | JavaScript | _site/assets/js/search.js | macielbombonato/macielbombonato.github.io | mit | 2,822 | 101 | codeparrot/github-code |
37c9e09b988d73e50457543e6fa03013a2a27511c74eb52f206e8638ccd5fdb5 | /*
Error: Import directives may not be used within control directives or mixins.
on line 7 of C:/Users/nanoj/Desktop/FleetV5/web/styles/scss/global/_components.scss
from line 9 of C:\Users\nanoj\Desktop\FleetV5\web\styles\scss\global\components-rounded.scss
2: @import '_variables';
... | CSS | web/styles/css/global/components-rounded.css | JoPaRoRo/Fleet | mit | 6,478 | 77 | codeparrot/github-code |
9c2077d862e24c9ba63ce3b36de88a872b2be5b336abd09e902737b5c0bbba07 | define([
"./core",
"./core/access",
"./var/document",
"./var/documentElement",
"./css/var/rnumnonpx",
"./css/curCSS",
"./css/addGetHookIf",
"./css/support",
"./core/init",
"./css",
"./selector" // contains
], function( jQuery, access, document, documentElement, rnumnonpx, curCSS, addGetHookIf, support ) {
... | JavaScript | jquerysrc/src/offset.js | macrodatalab/browser-bosh | mit | 6,155 | 218 | codeparrot/github-code |
e2d37822032a45579d1cfef7265304470e5f868974f6487ac9e2bacd738550ae | import UnitConverter from '../../../UnitConverter'
import { Fraction, mul, div } from '../../../../numbers'
import { Mass } from '../../domains'
import { UnitedStates } from '../../authorities'
import { OunceConverter } from '../../us/customary/mass'
import { ChickenEggs } from '../../systems'
import { Jumbo, VeryLarg... | JavaScript | react-converter/src/converters/definitions/us/food/chickenEggs.js | rob-blackbourn/scratch-js | mit | 2,237 | 85 | codeparrot/github-code |
11aef2cef44451237ef154d3d61d7f43f8ba553840cd8cfb91f93dab53a1b4a4 | 'use strict';
var path = require('path');
var generators = require('yeoman-generator');
var yaml = require('js-yaml');
var _ = require('lodash');
var chalk = require('chalk');
var GitHub = require('github');
module.exports = generators.Base.extend({
_logHeading: function (msg) {
this.log("\n");
t... | JavaScript | app/index.js | fevrcoding/generator-wok | mit | 5,876 | 208 | codeparrot/github-code |
107c70ae1870c25798abe9db37f705608d67ad1d70937f2fec491645e86153b8 | package autosignr
import (
"crypto/x509"
"encoding/pem"
"fmt"
"io/ioutil"
"os/exec"
"path/filepath"
"regexp"
"strings"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
)
// The OID for Puppet's pp_preshared_key in the Certificate Extensions
// https://docs.puppetlabs.com/puppet/latest/reference/ssl... | GO | cert.go | jasonhancock/autosignr | mit | 3,870 | 164 | codeparrot/github-code |
105cc60d3a9af737e16959f3c852fcfe5ab1d56fde2ffc1d220107aaa830a0dd | import { findWord, PartialFindOptions, FindFullResult } from './find';
import * as fs from 'fs-extra';
import * as zlib from 'zlib';
import { importTrie } from './importExport';
import { TrieNode } from './TrieNode';
import * as path from 'path';
import { normalizeWordToLowercase } from './util';
const dutchDictionar... | TypeScript | packages/cspell-trie-lib/src/lib/find.dutch.test.ts | Jason3S/cspell | mit | 8,646 | 248 | codeparrot/github-code |
30dbf22457c8889d63eb2c091b27b4f34951ac63385f3e07a85ea15aec18a9f9 | class MetaFloorController extends MRM.MetaBaseWallController{
constructor(dom){
super(dom);
this.dom = dom;
this.metaObject = this.createMetaObject()
this.metaVerse = null;
this.setupComponent();
this.updateMetaObject();
}
get metaAttachedActions(){
return {
attachMetaObject: t... | JavaScript | src/meta-floor.js | cbas/MetaRoomMarkup | mit | 2,486 | 103 | codeparrot/github-code |
cfb29c7c770f854ccb9ac24cf9e4391d3955066e4fe088f4f149f9287a2b86dd | import 'isomorphic-fetch'
import base64 from 'base-64'
import utf8 from 'utf8'
import Request from './Request'
function encodeAccount(username, password) {
let bytes = utf8.encode(`${ username }:${ password }`)
return base64.encode(bytes)
}
export default class Stormpath {
constructor({ application, authenticat... | JavaScript | app/utils/Stormpath.js | KrateLabs/KrateLabs-REST | mit | 2,234 | 81 | codeparrot/github-code |
29e32295e59363d792f574a1ba7d226ea1de92a8558a08690994c8935f6b34c2 | <?php
namespace Phortress;
use PhpParser\Node;
use \PhpParser\Node\Stmt;
/**
* Handles the static methods and variables of a class. For the instance methods and variables, see
* @see ClassInstanceEnvironment.
*
* @package Phortress
*/
class ClassEnvironment extends Environment {
use EnvironmentHasFunctionsTrait... | PHP | lib/Phortress/ClassEnvironment.php | lowjoel/phortress | mit | 1,675 | 69 | codeparrot/github-code |
34cffb524f4f5567686ed995603c365675e64f6dd4b2372fd89c887a38556ea1 | namespace Dike.Core.Dependency
{
using Autofac;
using Autofac.Builder;
using Autofac.Extras.DynamicProxy;
using Conditions;
using System;
using System.Collections.Generic;
/// <summary>
/// Defines extension methods for the <see cref="ContainerBuilder"/> class.
/// </summary>
p... | C# | src/Dike.Core/Dependency/RegistrationExtensions.cs | IngbertPalm/project.dike | mit | 4,159 | 86 | codeparrot/github-code |
1b9e5e4e2dbd28da80b948e172a7b4c70bec606eb59e8734dbd4fd0cabd7e1f0 | package hhyeo_eval;
import java.util.Iterator;
import java.util.Map;
import soot.Body;
import soot.BodyTransformer;
import soot.Local;
import soot.PackManager;
import soot.PatchingChain;
import soot.RefType;
import soot.Scene;
import soot.SootClass;
import soot.SootMethod;
import soot.Transform;
import soot.Unit;
im... | Java | src/hhyeo_eval/CodeInjector.java | chaos5958/CodeInjection | mit | 24,670 | 499 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.