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 |
|---|---|---|---|---|---|---|---|---|
1daf85c78d349e3cbb5306569987702d6ea50bd5751a204db7b6f3ef4cb97cfe | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/password_manager/password_store_mac.h"
#include "base/basictypes.h"
#include "base/files/scoped_temp_dir.h"
#include "base/s... | C++ | chrome/browser/password_manager/password_store_mac_unittest.cc | lihui7115/ChromiumGStreamerBackend | bsd-3-clause | 78,380 | 1,867 | codeparrot/github-code |
93eccf26a476f162fecbe39552ec79576d3ca56d8bcc71e5cf7f73de79675bb3 | /*
-- MAGMA (version 1.5.0-beta3) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date July 2014
@generated from magma_z_init.cpp normal z -> s, Fri Jul 18 17:34:30 2014
@author Hartwig Anzt
*/
#include <fstream>
#include <stdlib.... | C++ | sparse-iter/control/magma_s_init.cpp | EmergentOrder/magma | bsd-3-clause | 2,249 | 112 | codeparrot/github-code |
dada95b8e05d9bc94893c8a531529f1c85d56ca689f456fda1a32d06b7d52afa | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_RENDERER_HOST_CLIPBOARD_MESSAGE_FILTER_H_
#define CONTENT_BROWSER_RENDERER_HOST_CLIPBOARD_MESSAGE_FILTER_H_
#include <string>... | C | content/browser/renderer_host/clipboard_message_filter.h | junmin-zhu/chromium-rivertrail | bsd-3-clause | 2,770 | 70 | codeparrot/github-code |
4984a3345137b41cac609a5b17e3244ef8742833bf3c30a30f85cf0c76f057c7 | /*
* Copyright (c) 2013-2013, KNOPFLERFISH project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this ... | Java | osgi/bundles/repository/repositorymanager/src/org/knopflerfish/service/repositorymanager/RepositoryInfo.java | knopflerfish/knopflerfish.org | bsd-3-clause | 3,464 | 120 | codeparrot/github-code |
148858f1c2296532cf2785a94c2c2b3294698418926897d5fa23e9955750b868 | //------------------------------------------------------------------------------
// GB_Descriptor_get: get the status of a descriptor
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2018, All Rights Reserved.
// http://suitesparse.co... | C | SuiteSparse/GraphBLAS/Source/GB_Descriptor_get.c | jlblancoc/suitesparse-metis-for-windows | bsd-3-clause | 5,829 | 141 | codeparrot/github-code |
453bef1da02b9ae1ee42907331ea73efbc88006c8b4fdca1df053996b38287c9 | package org.chasen.mecab.wrapper;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import org.junit.Test;
pub... | Java | test/org/chasen/mecab/wrapper/NodeIteratorTest.java | nowelium/jna-libmecab | bsd-3-clause | 3,712 | 113 | codeparrot/github-code |
d68c926a8891d06935da0dda0f3ee67d2f0e1051991ebcb3b5bc16c745aa39b2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <iostream>
#include <string>
#include "parser.h"
#include "CLI/wrapper.h"
#include "Libraries/linenoise.h"
#include "CLI/interface.h"
#define HIST_FILENAME ".polyBobHistory"
int main(int argc, char **argv)
{
char* line;
unsigned... | C++ | entrypoint.cpp | Taiki-San/Polybob | bsd-3-clause | 1,286 | 56 | codeparrot/github-code |
26f50b0049aa1156c996abc763ce4c200e64ecb5c7f80e9ba1f0ce5135ac6a6a | # -*- coding: utf-8 -*-
import access
import util
@auth.requires_login()
def index():
"""Produces a list of the feedback obtained for a given venue,
or for all venues."""
venue_id = request.args(0)
if venue_id == 'all':
q = (db.submission.user == get_user_email())
else:
q = ((db.su... | Python | controllers/feedback.py | lucadealfaro/crowdranker | bsd-3-clause | 10,966 | 236 | codeparrot/github-code |
78a9395f059f0d0ab2b8f76a682887d16633a7d4c8358ed51ea8e7633417d4fd |
//------------------------------------------------------------------------------
// GB_AxB: hard-coded C=A*B and C<M>=A*B
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2018, All Rights Reserved.
// http://suitesparse.com See ... | C | SuiteSparse/GraphBLAS/Source/Generated/GB_AxB__times_isgt_int32.c | jlblancoc/suitesparse-metis-for-windows | bsd-3-clause | 8,225 | 279 | codeparrot/github-code |
e9004c9a1bac524d4edb09dabb09b485ba6315548c2401d3556aa40999b9aca9 | from __future__ import print_function
import shutil
import os, sys
import time
import logging
from .loaders import PythonLoader, YAMLLoader
from .bundle import get_all_bundle_files
from .exceptions import BuildError
from .updater import TimestampUpdater
from .merge import MemoryHunk
from .version import get_manifest
f... | Python | weppy_assets/webassets/script.py | gi0baro/weppy-assets | bsd-3-clause | 22,478 | 583 | codeparrot/github-code |
768be61d19549499b027aa3098539b276d0f21bcda11be2b77adc07e5f67cd39 |
{-# LANGUAGE FlexibleInstances #-}
-- ghc options
{-# OPTIONS_GHC -Wall #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- {-# OPTIONS_GHC -fno-warn-name-shadowing #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
-- {-# OPTIONS_GHC -fno-warn-unused-do-bind #-}
-- {... | Haskell | src/Pire/Pretty/Nm.hs | reuleaux/pire | bsd-3-clause | 1,331 | 75 | codeparrot/github-code |
80ed1c0593191ee96ae0c334c8587910256256730b0c250ef7fcc17b5f54808e | /*
* Copyright (c) 2016, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... | C | examples/platforms/da15000/alarm.c | erja-gp/openthread | bsd-3-clause | 2,963 | 97 | codeparrot/github-code |
7b6a83ea33f7e3c11741503570eb55e36a6847960e817395f349820ea140d49d | // Copyright 2012 tsuru authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package provisiontest
import (
"fmt"
"io"
"io/ioutil"
"net/url"
"sort"
"sync"
"sync/atomic"
"time"
docker "github.com/fsouza/go-dockerclient"
"github... | GO | provision/provisiontest/fake_provisioner.go | ggarnier/tsuru | bsd-3-clause | 35,129 | 1,496 | codeparrot/github-code |
3747f28b3cec975154a2a062c82d2acee4199aa7aa879984429d27fbf88c31c0 | {-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- | Converting 'MC' programs to 'MCMem'.
module Futhark.Pass.ExplicitAllocations.MC (explicitAllocations) where
import Futhark.IR.MC
import Futhark.IR.MCMem
import Futhark.Pass.Exp... | Haskell | src/Futhark/Pass/ExplicitAllocations/MC.hs | HIPERFIT/futhark | isc | 1,283 | 40 | codeparrot/github-code |
08175edfc7e4cda60f765868e75c02c42305044cbf15f95ec8664ba478d6db69 | /*******************************************************************************
*
* Module Name: rscalc - Calculate stream and list lengths
*
******************************************************************************/
/*
* Copyright (C) 2000 - 2016, Intel Corp.
* All rights reserved.
*
* Redistribution an... | C | FreeBSD/sys/contrib/dev/acpica/components/resources/rscalc.c | TigerBSD/TigerBSD | isc | 23,744 | 760 | codeparrot/github-code |
7eb6992c05da04c7315e22346ab4992f8f7ae2472febbddb9492555dbf1adedb | /* eslint-disable flowtype/require-parameter-type, flowtype/require-return-type, no-magic-numbers */
import {test} from "tap"
import {spy} from "sinon"
import aside from "./"
test(({equal, end}) => {
const unction = spy(() => "b")
equal(aside([unction])("a"), "a")
end()
})
test(({ok, end}) => {
const uncti... | JavaScript | package/aside/test.js | krainboltgreene/ramda-extra.js | isc | 737 | 44 | codeparrot/github-code |
b016a80703a4cba8253e2b19b6c4bc1c2554eb7bcabeee4cee74c12048df2ef1 | /*-
* Copyright (c) 1999 M. Warner Losh <imp@village.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice... | C | FreeBSD/sys/dev/sn/if_sn_pccard.c | TigerBSD/TigerBSD | isc | 8,607 | 331 | codeparrot/github-code |
d61c8e4395f9bc2e1674c7e4b6983601362ce85e5321bcae7ce8210c39841a30 | /*
* Copyright (c) 2006, 2007 ThoughtWorks, Inc.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTH... | Java | src/main/java/com/thoughtworks/cozmos/ModDavSvnProxyServlet2.java | codehaus/cozmos | isc | 3,638 | 111 | codeparrot/github-code |
b55528b07fb07e12a1717f997dd74b0d64ef9e00e9e14403f8282d3822caac7b | /*-
* Copyright (c) 2010, 2012 Konstantin Belousov <kib@FreeBSD.org>
* Copyright (c) 2015 The FreeBSD Foundation
* All rights reserved.
*
* Portions of this software were developed by Konstantin Belousov
* under sponsorship from the FreeBSD Foundation.
*
* Redistribution and use in source and binary forms, with... | C | FreeBSD/sys/kern/kern_sharedpage.c | TigerBSD/TigerBSD | isc | 7,826 | 289 | codeparrot/github-code |
7e218ffeb764162bd5f2c040c92e9299302ebee8b2d71c5f4f5f0945eb1eae57 | var doNothing = function () {}
/**
* The `Base` log defines methods that transports will share.
*/
var Base = module.exports = function (config, defaults) {
var cedar = require('../../cedar')
// A log is a shorthand for `log.log`, among other things.
var log = function () {
log.log.apply(log, arguments)... | JavaScript | lib/transports/base.js | zerious/cedar | isc | 4,332 | 175 | codeparrot/github-code |
f6b6d7106b81d924e29b5ec5bfb05afeb190743b503a069ff1449ad25a4bb327 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GAPPSF.OKAPI
{
public class SiteInfoNetherlands: SiteInfo
{
public const string STR_INFO = "opencaching.nl";
public SiteInfoNetherlands()
{
ID = "2";
Info = STR_INFO... | C# | GAPPSF/OKAPI/SiteInfoNetherlands.cs | RH-Code/GAPP | mit | 1,334 | 40 | codeparrot/github-code |
140f52ea7d90059c0ac0769291d56e4b0e494944bf9468c40d0a57a23bd2b2ce | using System;
using System.Collections.Generic;
using KellermanSoftware.CompareNetObjects;
using KellermanSoftware.CompareNetObjects.TypeComparers;
using ProtoBuf;
namespace Abc.Zebus.Testing.Comparison
{
internal static class ComparisonExtensions
{
public static bool DeepCompare<T>(this T firstObj, T... | C# | src/Abc.Zebus.Testing/Comparison/ComparisonExtensions.cs | biarne-a/Zebus | mit | 1,820 | 60 | codeparrot/github-code |
019fd5ff1723a60f9d0a22d805c6beeabf7d2a19895a884fa8330e37b1259bea |
// Generated on 12/11/2014 19:01:22
using System;
using System.Collections.Generic;
using System.Linq;
using BlueSheep.Common.Protocol.Types;
using BlueSheep.Common.IO;
using BlueSheep.Engine.Types;
namespace BlueSheep.Common.Protocol.Messages
{
public class SequenceNumberMessage : Message
{
... | C# | BlueSheep/Common/Protocol/messages/game/basic/SequenceNumberMessage.cs | Sadikk/BlueSheep | mit | 1,158 | 54 | codeparrot/github-code |
1e7b4b5aaf5d75bf1f046c11fb498c0508811f0ba23baa51cccfd1d7653b81f8 | // This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... | C++ | SampleFramework/renderer/src/RendererTextureDesc.cpp | jjuiddong/KarlSims | mit | 2,787 | 65 | codeparrot/github-code |
b7f60d701c0836b6933df1252121980f65b32d0a4192909ec95c9a387305fc0d | using System;
using System.Collections.Generic;
using System.Text;
using FlatRedBall;
using FlatRedBall.Gui;
using FlatRedBall.AI.Pathfinding;
#if FRB_MDX
using Color = System.Drawing.Color;
#else
using Color = Microsoft.Xna.Framework.Graphics.Color;
#endif
using CameraPropertyGrid = EditorObjects.Gui.CameraPropert... | C# | FRBDK/AIEditor/AIEditor/AIEditor/Gui/GuiData.cs | GorillaOne/FlatRedBall | mit | 7,748 | 257 | codeparrot/github-code |
1e26c076d21412a5cc2cc023d02d6a7cf58b90ed54deb3e63607b1023cd27c8b | <?xml version="1.0" encoding="iso-8859-1"?>
<!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" xml:lang="en" lang="en">
<head>
<title>Class: Gem::Package::TarReader::UnexpectedEOF</titl... | HTML | tools/Rake/lib/ruby/gems/1.8/doc/rubygems-1.5.2/rdoc/classes/Gem/Package/TarReader/UnexpectedEOF.html | michaelsync/Giles | mit | 2,615 | 117 | codeparrot/github-code |
d2857bb1b2edd2f58a5903ae4c15aeeafe916cc01bab3a06f48a50c07d82e24d | require 'cgi'
require 'nkf'
class Mechanize::Util
# default mime type data for Page::Image#mime_type.
# You can use another Apache-compatible mimetab.
# mimetab = WEBrick::HTTPUtils.load_mime_types('/etc/mime.types')
# Mechanize::Util::DefaultMimeTypes.replace(mimetab)
DefaultMimeTypes = WEBrick::HTTPUti... | Ruby | lib/mechanize/util.rb | eligoenergy/mechanize | mit | 4,585 | 162 | codeparrot/github-code |
7ae22d9e6fd2d8cc050e8af3c5152a4c9a38b11033815c31c2a4b7545ca56611 | require 'english/class'
class English
# = Noun Number Inflections
#
# This module provides english singular <-> plural noun inflections.
module Inflect
@singular_of = {}
@plural_of = {}
@singular_rules = []
@plural_rules = []
# This class provides the DSL for creating inflections, you c... | Ruby | lib/english/inflect.rb | rubygengo/english | mit | 9,263 | 325 | codeparrot/github-code |
09aea542bddae04ffa93e15910f51056c7f05973493e2a84bd7a561bd5b3350a | #ifndef MOAISPINEANIMATIONMIXTABLE_H
#define MOAISPINEANIMATIONMIXTABLE_H
#include <moai-core/headers.h>
//----------------------------------------------------------------//
class MOAISpineAnimationMixEntry
{
public:
STLString mSrc;
STLString mTarget;
// STLString mOverlay;
float mDuration;
float mDelay; ... | C | test/host/extension/MOAISpineAnimationMixTable.h | tommo/gii | mit | 1,158 | 43 | codeparrot/github-code |
de66f3f8395638a8ca167dd5ae474af55f9ea9bf9bde10d51aec5cd7bba10fd0 | var PixiText = require('../../lib/pixi/src/core/text/Text'),
utils = require('../core/utils'),
math = require('../../lib/pixi/src/core/math'),
Sprite = require('../display/Sprite'),
CONST = require('../core/const');
function Text(text, style, resolution){
this._init(text, style, resolution);
}
Tex... | JavaScript | src/display/Text.js | TarentolaDigital/perenquen | mit | 13,175 | 426 | codeparrot/github-code |
98b8f4cb5d9cce382afab3c4aea6e57dcaa62f1fe032c2565a134a80f1ec8ded | /**
* A wrapper around JSLint to drop things into the console
*
* Copyright (C) 2011 Nikolay Nemshilov
*/
var RightJS = require('./right-server.js');
var JSLint = require('./jslint').JSLINT;
var fs = require('fs');
exports.Linter = new RightJS.Class({
extend: {
Options: {
debug: false, // no d... | JavaScript | util/linter.js | rightjs/rightjs-ui | mit | 2,541 | 102 | codeparrot/github-code |
d082a479261c664caec74693b53bb28885c9343cc8f603e22787143688576f8d | # coding=utf-8
import pygame
import pygame.locals
class Board(object):
"""
Plansza do gry. Odpowiada za rysowanie okna gry.
"""
def __init__(self, width, height):
"""
Konstruktor planszy do gry. Przygotowuje okienko gry.
:param width: szerokość w pikselach
... | Python | docs/pygame/life/code1a.py | roninek/python101 | mit | 4,913 | 158 | codeparrot/github-code |
1f90b9b0b88a7468c6e1cb3bbfc4a45ea53729a6fa0df2616e0c81e43c1359ec | using System.Linq.Expressions;
using System.Collections.Generic;
namespace Bermuda.ExpressionGeneration
{
public partial class ValueExpression : ExpressionTreeBase
{
public long Value { get; private set; }
public ValueExpression(long value)
{
Value = value;
... | C# | Bermuda.ExpressionGenerator/QL/ValueExpression.cs | melnx/Bermuda | mit | 728 | 31 | codeparrot/github-code |
571683e19da42fda750e57122bdd6a332c60385bc95253c1419a8296b6736b63 | """
File-based Checkpoints implementations.
"""
import os
import shutil
from tornado.web import HTTPError
from .checkpoints import (
Checkpoints,
GenericCheckpointsMixin,
)
from .fileio import FileManagerMixin
from IPython.utils import tz
from IPython.utils.path import ensure_dir_exists
from IPython.utils.py... | Python | venv/lib/python2.7/site-packages/IPython/html/services/contents/filecheckpoints.py | wolfram74/numerical_methods_iserles_notes | mit | 6,954 | 202 | codeparrot/github-code |
17245590bd7e66014d58a4fb9c8321522f627c438308d0e977ec1f84a5b79cc7 | // Source : https://leetcode.com/problems/longest-substring-without-repeating-characters/
// Author : codeyu
// Date : 2016-09-20
/**********************************************************************************
*
* Given a string, find the length of the longest substring without repeating characters.
*
* Examp... | C# | Algorithms/LengthOfLongestSubstring.cs | AzureLocalizationTeam/leetcode | mit | 1,408 | 48 | codeparrot/github-code |
f604a75a97cc2b9815e040e814d892e1b7ca41d6cd0f1df6edfc365e493b260e | <?php
/**
* TOP API: taobao.hotel.order.face.deal request
*
* @author auto create
* @since 1.0, 2013-09-13 16:51:03
*/
class Taobao_Request_HotelOrderFaceDealRequest {
/**
* 酒店订单oid
**/
private $oid;
/**
* 操作类型,1:确认预订,2:取消订单
**/
private $operType;
/**
* 取消订单时的取消原因备注信息
**/
private $reasonText;... | PHP | php/code/yaf/application/library/Taobao/Request/HotelOrderFaceDealRequest.php | musicsnap/LearnCode | mit | 1,829 | 91 | codeparrot/github-code |
8506bc8c122cf22cfaaa226c7d80c91367a41db26c68bee3a0cfcfc2a3bba807 | package schoolprojects;
import java.util.Random;
import java.util.Scanner;
/**
* Piedra, papel o tijera es un juego infantil.
* Un juego de manos en el cual existen tres elementos.
* La piedra que vence a la tijera rompiéndola; la tijera que vencen al papel cortándolo;
* y el papel que vence a la piedra envolv... | Java | PRG/PiedraPapelTijera/Juego.java | velikGeorgiev/School | mit | 5,075 | 126 | codeparrot/github-code |
0b0661975a1ab2b202a4dcc2f8ef2d3101d725f72932cfd2ce479586c472fcb5 | # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
#.rst:
# FindZLIB
# --------
#
# Find the native ZLIB includes and library.
#
# IMPORTED Targets
# ^^^^^^^^^^^^^^^^
#
# This module defines :prop_tgt:`IMPORTED` targ... | CMake | builder/cmake/windows/share/cmake-3.8/Modules/FindZLIB.cmake | pipou/rae | mit | 4,880 | 147 | codeparrot/github-code |
b013e9b8441b616d2e12bb1e3ac8c98a891db0717c7b3ec5da18e01b1e922f3e | #include "MotionStreakTest.h"
#include "../testResource.h"
enum {
kTagLabel = 1,
kTagSprite1 = 2,
kTagSprite2 = 3,
};
Layer* nextMotionAction();
Layer* backMotionAction();
Layer* restartMotionAction();
static int sceneIdx = -1;
static std::function<Layer*()> createFunctions[] =
{
CL(MotionStreakTest1),
CL(M... | C++ | samples/Cpp/TestCpp/Classes/MotionStreakTest/MotionStreakTest.cpp | arca1n/cocos2d-x_nextpeer_integration | mit | 6,605 | 269 | codeparrot/github-code |
5fbc54caf4b2b84ae9728796e62979578bb36a73c002f7faab123024cfa88c99 | import React, { Component } from 'react'
import {
FlexGrid, Content, Container,
AdminItemsViewTable,
Table, Button
} from 'components'
import {
AddItemAboutContainer,
AddItemPhotoContainer,
SpecialSetupContainer
} from 'containers'
import { adminLink } from 'config'
import s from './AdminItemsView.sass'
c... | JavaScript | src/components/AdminItemsView/AdminItemsView.js | expdevelop/ultrastore | mit | 3,700 | 115 | codeparrot/github-code |
5abb49dd1a80914ff3a471c4226cd487d0057c1c8f2ff882fbeb08614643f721 | package main
import (
"reflect"
"strconv"
"unsafe"
"github.com/STNS/STNS/stns"
"github.com/STNS/libnss_stns/libstns"
)
/*
#include <grp.h>
#include <sys/types.h>
*/
import "C"
type Group struct {
grp *C.struct_group
result **C.struct_group
}
func (s Group) Set(groups stns.Attributes) int {
for n, g := r... | GO | nss/group.go | STNS/libnss_stns | mit | 1,815 | 77 | codeparrot/github-code |
9e12058070c2c2b895e95d04de2cbf82c119266e6027c9998e1703ad15a4eec1 | using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Win32;
namespace NetOffice.DeveloperToolbox.Utils.Registry
{
public class UtilsRegistryEntry
{
#region Fields
private UtilsRegistryKey _parent;
private string _valueName;
... | C# | Toolbox/Toolbox/Utils/Registry/UtilsRegistryEntry.cs | NetOfficeFw/NetOffice | mit | 6,138 | 208 | codeparrot/github-code |
4f6bbc94d79d60b6b8d1b1771526e251556cfc15c43ca54518e0ce3bd57bfdb9 | // Seriously awesome GLSL noise functions. (C) Credits and kudos go to
// Copyright (C) Stefan Gustavson, Ian McEwan Ashima Arts
// MIT License.
define(function(require, exports){
exports.permute1 = function(x){
return mod((34.0 * x + 1.0) * x, 289.0)
}
exports.permute3 = function(x){
return mod((34.0 * x + 1.... | JavaScript | core/gl/glnoise.js | teem2/dreem2.1 | mit | 11,369 | 350 | codeparrot/github-code |
cc0735c97eee5ef165ab67541bf87194f8166acdd0d2f45b05ec420649a6eea2 | var $ = require('jquery');
var keymaster = require('keymaster');
var ChartEditor = require('./component-chart-editor.js');
var DbInfo = require('./component-db-info.js');
var AceSqlEditor = require('./component-ace-sql-editor.js');
var DataGrid = require('./component-data-grid.js');
var QueryEditor = function () {
... | JavaScript | client-js/query-editor.js | l371559739/sqlpad | mit | 6,203 | 179 | codeparrot/github-code |
f0ff34ea9a9c71530414e76c1f544256140f60a24a8cf1c681908c5fa8f96b59 | import glob
import logging
import os
import subprocess
from plugins import BaseAligner
from yapsy.IPlugin import IPlugin
from assembly import get_qual_encoding
class Bowtie2Aligner(BaseAligner, IPlugin):
def run(self):
"""
Map READS to CONTIGS and return alignment.
Set MERGED_PAIR to True ... | Python | lib/assembly/plugins/bowtie2.py | levinas/assembly | mit | 2,404 | 65 | codeparrot/github-code |
a78145175c9a4a6e1cd2a25884f0101d3c3505c6e3b35b7a48b349ce429b8531 | // # Frontend Route tests
// As it stands, these tests depend on the database, and as such are integration tests.
// Mocking out the models to not touch the DB would turn these into unit tests, and should probably be done in future,
// But then again testing real code, rather than mock code, might be more useful...
con... | JavaScript | test/regression/site/frontend_spec.js | JohnONolan/Ghost | mit | 32,924 | 838 | codeparrot/github-code |
0304ceca605c2c9c94e8b65b3c99f39bc046b899692b3b6d15bd89cb6a69b177 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Formatting;
using System.Web.Http;
using Umbraco.Core;
using Umbraco.Core.Logging;
using Umbraco.Core.Models;
u... | C# | src/Umbraco.Web/Trees/ContentTreeControllerBase.cs | base33/Umbraco-CMS | mit | 18,996 | 442 | codeparrot/github-code |
ce249f5671a006e340a994b9947053d1bef81879597c9ee9633c099820195778 | const BaseStep = require('../step');
const EntryProxy = require('../../entry-proxy');
const analyze = require('../../helpers/analytics/analytics')('gst');
// TODO pull below out to (variation) helper
function convertVariationalPath(variations, from, toVariationId) {
const toDir = variations.find(variation => varia... | JavaScript | packages/mendel-pipeline/src/step/gst/index.js | yahoo/mendel | mit | 7,858 | 209 | codeparrot/github-code |
9d78c39afeb8058d7e35f70700eeebc99569d860f27d001bb5b28b5c55a08c94 | /*!
* iScroll v4.1.8 ~ Copyright (c) 2011 Matteo Spinelli, http://cubiq.org
* Released under MIT license, http://cubiq.org/license
*/
(function(){
var m = Math,
vendor = (/webkit/i).test(navigator.appVersion) ? 'webkit' :
(/firefox/i).test(navigator.userAgent) ? 'Moz' :
'opera' in window ? 'O' : '',
// Brows... | JavaScript | prd_original/include/iscroll.js | brunokoga/pathfinder-markdown | mit | 32,876 | 1,054 | codeparrot/github-code |
12baa0f3d008edbb9fbc9ccbb2993704d25c236b94dd7d7d2329fb1fba330c10 | <?php
/**
* Part of the Fuel framework.
*
* @package Fuel
* @version 1.6
* @author Fuel Development Team
* @license MIT License
* @copyright 2010 - 2013 Fuel Development Team
* @link http://fuelphp.com
*/
namespace Fuel\Core;
/**
* The Arr class provides a few nice functions for making
... | PHP | fuel/core/classes/arr.php | dailenearanas/iJMC-WebApp | mit | 25,244 | 997 | codeparrot/github-code |
f5418dd9804efc4fd085d9d09cfa5bdebd0ccfd8180071985cf604d63fc645aa | #pragma once
#include <stack>
#include <queue>
#include <vector>
class ExpressionParser {
public:
ExpressionParser(const std::string &expr);
~ExpressionParser();
double eval();
private:
struct token {
char c;
double d;
bool isNum;
bool isOp;
token() : c(0), isNum(false), isOp(true) {};
};... | C | src/ExpressionParser.h | frolv/osrs-twitch-bot | mit | 541 | 32 | codeparrot/github-code |
b7a2ae06def071f50cc2894e5f47df934ef243b595ffe829928aecca8f5c9b81 | from __future__ import unicode_literals
import os
import os.path
import subprocess
from pre_commit.util import cmd_output
class PrefixedCommandRunner(object):
"""A PrefixedCommandRunner allows you to run subprocess commands with
comand substitution.
For instance:
PrefixedCommandRunner('/tmp/foo... | Python | pre_commit/prefixed_command_runner.py | barrysteyn/pre-commit | mit | 1,661 | 58 | codeparrot/github-code |
9a4126f34269f243afbc52957abb214d3129126e71a31f714b76b0d4e3487ae5 | using System;
using System.Text;
using ECommon.Components;
using ECommon.Remoting;
using ECommon.Serializing;
using EQueue.Protocols;
using EQueue.Protocols.Brokers;
using EQueue.Protocols.Brokers.Requests;
using EQueue.Protocols.NameServers.Requests;
using EQueue.Utils;
namespace EQueue.NameServer.Request... | C# | src/EQueue/NameServer/RequestHandlers/SetQueueConsumerVisibleForClusterRequestHandler.cs | tangxuehua/equeue | mit | 1,755 | 41 | codeparrot/github-code |
6477ba25d61dd9d69dba5bdf752706f3a9f2bacce0d5b0a3614fde715e64b46b | using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using LCC.ControlesLCCGestion.filtros;
namespace LCC.WebG... | C# | Frontend/PROT/Search/FiltroPresupuesto.ascx.cs | pacoferre/Dosconf | mit | 1,367 | 55 | codeparrot/github-code |
572e89a4b7e41ca71689e55bc28365ad8686d3c308a00b346d1a35d095852c53 | """
Python Blueprint
================
Does not install python itself, only develop and setup tools.
Contains pip helper for other blueprints to use.
**Fabric environment:**
.. code-block:: yaml
blueprints:
- blues.python
"""
from fabric.decorators import task
from refabric.api import run, info
from refa... | Python | blues/python.py | gelbander/blues | mit | 997 | 49 | codeparrot/github-code |
ad1a171efc5b6b79bdfbd6327fe6c489c969496f29712f9e5f3c90eab01e0d93 | #!/bin/sh
controllerIP=`grep controller /etc/hosts | awk '{print $1}'`
#controllerIP=192.168.122.75
controllerIP=127.0.0.1
echo controllerIP $controllerIP
file=/etc/pike/cinder/cinder.conf
orig=/etc/pike/cinder/.orig-$(basename $file)
jdate=`date "+%Y_%j_%H_%M"`
orig=${orig}${jdate}
if [ ! -e $orig ] ; then
cp -p $... | Shell | openstack/src/bash/cinder-pike.sh | OpenSciViz/cloud | mit | 2,605 | 85 | codeparrot/github-code |
deb27a7091ee544a9d87c5b259c2c12c722b2fbb9f5d307bbe14bf9799d9cd0e | var path = require('path'),
fs = require('fs'),
Source = require(hexo.lib_dir + '/core/source'),
config_dir = path.dirname(hexo.configfile),
config = hexo.config;
function testver(){
var ver = hexo.env.version.split('.');
var test = true;
if (ver[0] < 2) test = false;
else if (ver[0] == 2 &... | JavaScript | scripts/config.js | chenall/hexo-theme-chenall | mit | 3,494 | 110 | codeparrot/github-code |
65dcde9ee6246b652780be3deac4c932c34352ae06e67d03a77c11b2a21a1158 | <?php
namespace Alcodo\AsyncCss\Commands;
use Alcodo\AsyncCss\Cache\CssKeys;
use Illuminate\Console\Command;
class Show extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'alcodo:asynccss:show';
/**
* The console comm... | PHP | Commands/Show.php | alcodo/async-css | mit | 1,079 | 59 | codeparrot/github-code |
7217ecec88af5de6ae2ef7b48881a7fff23e8d8080d2f9a2979cd931f29b106e | #!/usr/bin/env ruby
$:.unshift File.expand_path('../../../lib', __FILE__)
$stdout.sync = true
require 'philotic'
require 'awesome_print'
class NamedQueueConsumer < Philotic::Consumer
# subscribe to an existing named queue
subscribe_to :test_queue
# use acknowledgements
auto_acknowledge
# REQUEUE the mess... | Ruby | examples/subscribing/consumer.rb | nkeyes/philotic | mit | 1,218 | 48 | codeparrot/github-code |
9c0b333b2b76375eb232564eb981027d1e090acba7a42f57b6c875cdca84969a | const request = require('request-promise');
const oauth = require('./config').auth;
const rootUrl = 'https://api.twitter.com/1.1';
let allItems = [];
/* API methods */
const API = {
/**
* Search for tweets
* @param options {Object} Options object containing:
* - text (Required) : String
* - co... | JavaScript | api-functions.js | raulrene/Twitter-ContestJS-bot | mit | 6,401 | 194 | codeparrot/github-code |
a1b7797c295944bcc9b8db77a4a8a94716210c604eaecc59fb924b0115154feb | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Extensions
{
public static class IEnumerableExtensions
{
public static T Sum<T>(this IEnumerable<T> enumerable)
{
dynamic sum = 0;
foreach (var element in enumerable)
{
sum... | C# | OOP/Homeworks/03.ExtensionsDelegatesLambda/ExtensionsDelegatesLambdaHW/Extensions/IEnumerableExtensions.cs | SHAMMY1/Telerik-Academy-2016 | mit | 1,212 | 73 | codeparrot/github-code |
2ee01ba2896a119217eb1e8031949b4e047e20126c3dcfa844ce0c09107d6801 | using System;
using System.Collections;
using UnityEngine;
using VRStandardAssets.Common;
using VRStandardAssets.Utils;
namespace VRStandardAssets.ShootingGallery
{
// This script handles a target in the shooter scenes.
// It includes what should happen when it is hit and
// how long before it de... | C# | Voxyl/Assets/VRSampleScenes/Scripts/ShootingGallery/ShootingTarget.cs | SerKale/voxyl | mit | 6,853 | 171 | codeparrot/github-code |
47f334ec105e70fd3f09ea0f41592a9aa4d8d7b647046ddb45bc75ba09fc2077 | # Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible import __version__
from ansible.errors import AnsibleError
from distutils.version import LooseVersion
from operator import eq, ge, gt
from sys import version_info
try:
from __main__ ... | Python | lib/trellis/plugins/vars/version.py | jeffstieler/bedrock-ansible | mit | 2,048 | 46 | codeparrot/github-code |
f5c10f24ff802ab30204d42c8c532de8204ab56444c071e445a2d7156035225f | ace.define("ace/mode/tex_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var lang = require("../lib/lang");
var TextHighlightRules = require("./text_highlight_rules").TextHi... | JavaScript | web/site/js/ace-builds/src-noconflict/mode-tex.js | NPellet/jsGraph | mit | 5,261 | 159 | codeparrot/github-code |
8d7e0877e30db9623a31c697f9de739c4117257d8427745732d6b1aeae243080 | module Hello
module Business
module Management
class ResetPassword < Base
attr_reader :password_credential
def initialize(password_credential)
@password_credential = password_credential
end
def update_password(plain_text_password)
if @password_credential... | Ruby | lib/hello/business/management/reset_password.rb | brodock/hello | mit | 812 | 35 | codeparrot/github-code |
4bf9f8bf7e082d2b144184b07664c10b8fa4ce178caaf9ef7b9deca4be6cb5d3 | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | C | lib/Runtime/Types/ArrayObject.h | Microsoft/ChakraCore | mit | 2,179 | 59 | codeparrot/github-code |
e6c5c05bf9c9fc205ee6aef0c4abbc489e0913cd8d3692239dda9013d07b020b | using System;
using Machine.Specifications;
namespace FactoryGirl.NET.Specs {
[Subject(typeof(FactoryGirl))]
public class FactoryGirlSpecs : ICleanupAfterEveryContextInAssembly {
[Subject(typeof(FactoryGirl))]
public class When_we_define_a_factory {
Establish context = ()... | C# | FactoryGirl.NET.Specs/FactoryGirlSpecs.cs | junshao/FactoryGirl.NET | mit | 2,052 | 49 | codeparrot/github-code |
84fb3c08ec7cbb6e2e9dcf3f71251606fc9645e294098015ff1eda7a376a9bc7 | 'use strict';
import gulp from 'gulp';
import gutil from 'gulp-util';
import uglify from 'gulp-uglify';
import stylus from 'gulp-stylus';
import watch from 'gulp-watch';
import plumber from 'gulp-plumber';
import cleanCss from 'gulp-clean-css';
import imagemin from 'gulp-imagemin';
import concat from 'gulp-concat';
im... | JavaScript | gulpfile.babel.js | davidalves1/missas-sao-pedro | mit | 1,780 | 63 | codeparrot/github-code |
83fc5add0aeac70394d6c8ec11bf5ecf960abd8cb14c8b7a50d06f3b161f2d89 | require 'shellwords'
require 'fileutils'
module Hibiki
class Downloading
CH_NAME = 'hibiki'
def initialize
@a = Mechanize.new
@a.user_agent_alias = 'Windows Chrome'
end
def download(program)
infos = get_infos(program)
if infos['episode']['id'] != program.episode_id
R... | Ruby | lib/hibiki/downloading.rb | t-ashula/net-radio-archive | mit | 2,639 | 89 | codeparrot/github-code |
dd0ec2210fcf1a1fbac92c3a464c72897744292407fd998219e6fc77e666a96b | <html lang="en">
<head>
<title>ARM Options - Using as</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using as">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="ARM_002dDependent.html#ARM_002dDepende... | HTML | gcc-arm-none-eabi/share/doc/gcc-arm-none-eabi/html/as.html/ARM-Options.html | trfiladelfo/tdk | mit | 14,858 | 353 | codeparrot/github-code |
9a62b8e0d4f11d621139664dfd299982c5a9c7eab6880cca307f537b48ce9d57 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FlatRedBall.Content.Scene;
using FlatRedBall;
using FlatRedBall.IO;
namespace EditorObjects.EditorSettings
{
public class AIEditorPropertiesSave
{
public const string Extension = "aiep";
public CameraS... | C# | FRBDK/FRBDK Supporting Projects/EditorObjects/EditorSettings/AIEditorPropertiesSave.cs | GorillaOne/FlatRedBall | mit | 1,370 | 54 | codeparrot/github-code |
e4d7aa9eee5a24a9d0981b8001f7fd6c4a19dc4ba1199373be9509c24ea8fa8e | pub fn compress(src: &str) -> String {
if src.is_empty() {
src.to_owned()
} else {
let mut compressed = String::new();
let mut chars = src.chars().peekable();
while let Some(c) = chars.peek().cloned() {
let mut counter = 0;
while let Some(n) = chars.peek()... | Rust | string_compression_kata/src/day_7.rs | Alex-Diez/Rust-TDD-Katas | mit | 996 | 43 | codeparrot/github-code |
2352a8ad53a23e4f0bde8f7562c930efe15638ec8425a6258d4b624f6191c675 | import readdirRecursive from "fs-readdir-recursive";
import * as babel from "@babel/core";
import path from "path";
import fs from "fs";
import * as watcher from "./watcher";
export function chmod(src: string, dest: string): void {
try {
fs.chmodSync(dest, fs.statSync(src).mode);
} catch (err) {
console.w... | TypeScript | packages/babel-cli/src/babel/util.ts | babel/babel | mit | 3,448 | 148 | codeparrot/github-code |
be5754cee357a9899fd21c6a1af07f85be28ac9aada2b01bfc7b239d74cf6f00 | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\ApiBundle\DependencyInjection;
use Sylius\Bundle\ApiBundle\Form\Type\ClientTy... | PHP | src/Sylius/Bundle/ApiBundle/DependencyInjection/Configuration.php | adamelso/Sylius | mit | 9,952 | 194 | codeparrot/github-code |
687bd914bb8f8d189b2543ae2474a39b58943aed9efc392b02d92a9fe6dbc494 | using System.Collections.Generic;
using System;
using UnityEngine;
public class EventService
{
public delegate void EventDelegate<T>(T e) where T : GameEvent;
Dictionary<Type, Delegate> delegates = new Dictionary<Type, Delegate>();
public void AddListener<T>(EventDelegate<T> listener) where T : GameEvent {
Ty... | C# | Assets/Script/Controller/Service/EventService/EventService.cs | kicholen/GamePrototype | mit | 1,277 | 56 | codeparrot/github-code |
97f5034a819fd571fc1af98132928a838df7c192b7d327e1b18762eecbf88264 | (function () {
var g = void 0,
k = !0,
m = null,
o = !1,
p, q = this,
r = function (a) {
var b = typeof a;
if ("object" == b) if (a) {
if (a instanceof Array) return "array";
if (a instanceof Object) return b;
... | JavaScript | snow.js | coolspring1293/coolspring1293.github.io | mit | 41,004 | 1,033 | codeparrot/github-code |
421a94856384d865b91aaafc2f9f49edee2f8d7281b932163f0cd538604b6712 | <?php
namespace Backend\Modules\MediaLibrary\Actions;
use Backend\Core\Language\Language;
use Backend\Modules\MediaLibrary\Domain\MediaFolder\MediaFolder;
use Backend\Modules\MediaLibrary\Domain\MediaGroup\MediaGroupType;
use Backend\Modules\MediaLibrary\Domain\MediaItem\MediaItemSelectionDataGrid;
use Backend\Module... | PHP | src/Backend/Modules/MediaLibrary/Actions/MediaBrowserImages.php | jeroendesloovere/forkcms | mit | 1,977 | 54 | codeparrot/github-code |
a4a41b7ad1100cd9f437dd05fb80ef686fd954c462869a4734c334c491806f61 | #ifndef __TYPES_H__
#define __TYPES_H__
typedef unsigned char byte;
typedef signed long int intsize;
typedef signed char int8;
typedef signed short int16;
typedef signed int int32;
typedef signed long int int64;
typedef unsigned long int uintsize;
typedef unsigned char uint8;
typedef unsigned short uint16;
typedef ... | C | src/lib.h | nathanfaucett/c-types | mit | 663 | 37 | codeparrot/github-code |
fa42a23bbe676b775b135798c70a9f0bda636771555e31317692c0b94dde9442 | /*
Copyright 2006 by Sean Luke
Licensed under the Academic Free License version 3.0
See the file "LICENSE" for more information
*/
package ec.app.parity.func;
import ec.*;
import ec.app.parity.*;
import ec.gp.*;
import ec.util.*;
/*
* D31.java
*
* Created: Wed Nov 3 18:31:38 1999
* By: Sean Luke
*/
/*... | Java | src/ec/app/parity/func/D31.java | meiyi1986/GPJSS | mit | 1,195 | 59 | codeparrot/github-code |
c8dbf2d22b3ce89db94868a3388ae17e56e1957b0c6a84b8a1f7bbb793b91347 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base data-ice="baseUrl" href="../../../../">
<title data-ice="title">src/middle_level/shaders/HalfLambertAndWrapLightingShader.js | glboost</title>
<link type="text/css" rel="stylesheet" href="css/style.css">
<link type="text/css" rel="stylesheet" href="cs... | HTML | docs/documents/api/file/src/middle_level/shaders/HalfLambertAndWrapLightingShader.js.html | cx20/GLBoost | mit | 38,464 | 282 | codeparrot/github-code |
6b033c72b6e4c547aa435ee6a0441c324c5bb809dab27d1969f538d1f20a2e63 | /*jslint node: true, vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 2, maxerr: 50*/
/*global define, $, brackets, Mustache, window, appshell*/
define(function (require, exports, module) {
"use strict";
// HEADER >>
var NodeConnection = brackets.getModule("utils/NodeConnection"),
... | JavaScript | modules/Menu.js | marcandrews/brackets-synapse | mit | 7,210 | 216 | codeparrot/github-code |
1bdb1b92e9108e29cb923178469bba2d5a9f3bb0580f7469a7ad5f457ce4e8b0 | 'output dimensionalities for each column'
import csv
import sys
import re
import math
from collections import defaultdict
def get_words( text ):
text = text.replace( "'", "" )
text = re.sub( r'\W+', ' ', text )
text = text.lower()
text = text.split()
words = []
for w in text:
if w in words:
continue
wo... | Python | optional/cols_dimensionality.py | zygmuntz/kaggle-advertised-salaries | mit | 1,451 | 83 | codeparrot/github-code |
072eb8a61f666e6b32c90a7b144e14adaa0c8d93ffe47b6f28f5a24e0e7dbe57 | #include <seqan/sequence.h>
#include <seqan/basic.h>
#include <seqan/find_motif.h>
#include <seqan/file.h>
#include <iostream>
using namespace seqan;
template<typename TString>//String<char>
void countOneMers(TString const& str){
Iterator<TString>::Type StringIterator = begin(str);
Iterator<TString>::Type EndIter... | C++ | raw/pmbs12/pmsb13-data-20120615/sources/brbym28nz827lxic/93/sandbox/meyerclp/demos/Sequences.cpp | bkahlert/seqan-research | mit | 1,018 | 51 | codeparrot/github-code |
340bb2b8c4b6eb310502d5670c5fd50828ddf7aedc87c8e128aaea79cd4ac728 | const ASSETS_MODS_LENGTH = 13;//'/assets/mods/'.length;
const CONTENT_TYPES = {
'css': 'text/css',
'js': 'text/javascript',
'json': 'application/json',
'png': 'image/png',
'jpg': 'image/jpeg',
'jpeg': 'image/jpeg',
'html': 'text/html',
'htm': 'text/html'
};
/**
* @type {Map<string, JSZip>}
*/
const jszipCac... | JavaScript | ccloader/js/packed.js | 2767mr/CCLoader | mit | 3,555 | 178 | codeparrot/github-code |
5b52f115344b7e9a8e0b9282aeddcc23fd86f86f11f82e8d7fff15792b78a32f | /****************************************************************************************
Copyright (C) 2013 Autodesk, Inc.
All rights reserved.
Use of this software is subject to the terms of the Autodesk license agreement
provided at the time of installation or download, or which otherwise accom... | C | FbxExporter/Source/FbxSdk/include/fbxsdk/core/base/fbxstatus.h | VajraFramework/PipelineTools | mit | 5,198 | 120 | codeparrot/github-code |
3bf330d48057c27cec5d833c67f37535f28d5915f0071fe5a9940dc49177a7fd | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var jsdom = require("jsdom");
var chai_1 = require("chai");
var ColorManager_1 = require("./ColorManager");
describe('ColorManager', function () {
var cm;
var dom;
var document;
var window;
beforeEach(function () {
... | JavaScript | js/xterm/lib/renderer/ColorManager.test.js | SpawnTree/SpawnTree.github.io | mit | 18,828 | 304 | codeparrot/github-code |
f27e4fb4e6292468a4f7260723a3ad5d4cd27f6934c82aff42ac3de850f7febd | package no.nextgentel.oss.akkatools.aggregate
import akka.actor.ActorPath
import akka.persistence.AtLeastOnceDelivery.UnconfirmedWarning
import akka.persistence.{DeleteMessagesFailure, DeleteMessagesSuccess, SaveSnapshotFailure, SaveSnapshotSuccess, SnapshotOffer}
import no.nextgentel.oss.akkatools.persistence.{E... | Scala | akka-tools-persistence/src/main/scala/no/nextgentel/oss/akkatools/aggregate/GeneralAggregateBase.scala | mbknor/akka-tools | mit | 11,373 | 282 | codeparrot/github-code |
10961fed344bed9b738b90b1becb23cd420ac44ca159986731781f104aafd280 | <?php
class Admin_Page_Scraper_Facebook extends Admin_Page_Abstract {
public function prepare(CM_Frontend_Environment $environment, CM_Frontend_ViewResponse $viewResponse) {
/** @var Denkmal_Site_Default $site */
$site = $environment->getSite();
$region = $site->hasRegion() ? $site->getReg... | PHP | library/Admin/library/Admin/Page/Scraper/Facebook.php | njam/denkmal.org | mit | 1,220 | 32 | codeparrot/github-code |
a3b7ad1e26f3e17b1ecf70b33c277d7be9665ded1372dc53b06b6a33d7391776 | using Scripts.Game.Defined.Characters;
using Scripts.Game.Defined.Serialized.Statistics;
using Scripts.Game.Dungeons;
using Scripts.Game.Serialized;
using Scripts.Game.Undefined.Characters;
using Scripts.Model.Acts;
using Scripts.Model.Buffs;
using Scripts.Model.Characters;
using Scripts.Model.Interfaces;
using Script... | C# | Assets/Scripts/Game/Camp/Camp.cs | Cinnamon18/runityscape | mit | 6,749 | 156 | codeparrot/github-code |
67acc61c4655881b4783498c3a37ac4cfd4a75274e52c8685fda69027f939126 | package org.jinstagram.auth.model;
import org.jinstagram.http.Request;
import org.jinstagram.http.Verbs;
import java.util.HashMap;
import java.util.Map;
/**
* The representation of an OAuth HttpRequest.
*
* Adds OAuth-related functionality to the {@link Request}
*/
public class OAuthRequest extends Request {
p... | Java | src/main/java/org/jinstagram/auth/model/OAuthRequest.java | zauberlabs/jInstagram | mit | 1,596 | 69 | codeparrot/github-code |
90f60093844eb172a208fbdd7bcf3b5111e41da4df88de3b7494e2557c30c04b | # -*- coding: utf-8 -*-
import pyqtgraph as pg
from pyqtgraph.Qt import QtGui, QtCore
import numpy as np
import csv, gzip, os
from pyqtgraph import Point
class GlassDB:
"""
Database of dispersion coefficients for Schott glasses
+ Corning 7980
"""
def __init__(self, fileName='schott_glasses.csv'):
... | Python | examples/optics/pyoptic.py | pmaunz/pyqtgraph | mit | 18,592 | 583 | codeparrot/github-code |
d23167764bffe53d808485133f9937e23d6f991269822ed55e9cf5b47341f742 | import logging
from urllib.parse import urljoin
import lxml.etree # noqa: S410
import requests
from django.conf import settings as django_settings
from django.utils import timezone
logger = logging.getLogger(__name__)
class ClientError(Exception):
pass
class ResponseParseError(ClientError):
pass
class ... | Python | src/waldur_auth_valimo/client.py | opennode/nodeconductor-assembly-waldur | mit | 9,636 | 265 | codeparrot/github-code |
09ed38ffde2c0a0b9db8e3199024a91b3a343f2f6ce3f44fde81385b16978384 | import 'rxjs/add/operator/map';
import {Injectable} from '@angular/core';
import {Http, RequestMethod} from '@angular/http';
import {Observable} from 'rxjs/Observable';
import {Cube} from '../models/cube';
import 'rxjs/add/operator/mergeMap';
import {Algorithm} from '../models/analysis/algorithm';
import {Input, InputT... | TypeScript | src/app/services/algorithms.ts | okgreece/indigo | mit | 3,392 | 123 | codeparrot/github-code |
7738a61ec59d359fe5ebaf63646761e11e6beff3c7ad1d377531b245ee64acac | import PropTypes from 'prop-types'
import React from 'react'
import { List } from 'immutable'
import Modal from './warningmodal.js'
import Path from 'path'
const FilesList = ({ folders, folderPathToRemove, actions }) => {
const addStorageLocation = () => actions.addFolderAskPathSize()
const removeStorageLocation =... | JavaScript | plugins/Hosting/js/components/fileslist.js | NebulousLabs/Sia-UI | mit | 2,874 | 92 | codeparrot/github-code |
434eea0a359d883a1dbeb05078c915f4e2adbc2b0cb24265429f283cbafb9c0c | from PyQt4 import QtCore
import acq4.Manager
import acq4.util.imageAnalysis as imageAnalysis
run = True
man = acq4.Manager.getManager()
cam = man.getDevice('Camera')
frames = []
def collect(frame):
global frames
frames.append(frame)
cam.sigNewFrame.connect(collect)
def measure():
if len(frames)... | Python | acq4/analysis/scripts/beamProfiler.py | tropp/acq4 | mit | 976 | 42 | codeparrot/github-code |
cc855325c6e9f89766bd859c539e7f1dee67157b090c0558291133d4c7b49da8 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Qt 4.8: c... | HTML | QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/demos-declarative-calculator-calculator-pro.html | stephaneAG/PengPod700 | mit | 10,847 | 242 | codeparrot/github-code |
c13128e92ff52205a93253a35496cff8cff40e928b5d19833e5fce2c0def3c97 | import {browser, by, element, ExpectedConditions} from 'protractor';
import { ProjectsPage } from './projects.page';
export class BellowsProjectSettingsPage {
private readonly projectsPage = new ProjectsPage();
conditionTimeout: number = 3000;
settingsMenuLink = element(by.id('settings-dropdown-button'));
pr... | TypeScript | test/app/bellows/shared/project-settings.page.ts | ermshiperete/web-languageforge | mit | 2,289 | 61 | codeparrot/github-code |
2f8289e7a6a57fe4ee33a41503015ce34aee746cbbb645227f26b82f04eb1706 | /**
* Framework APIs (global - app.*)
*
* Note: View APIs are in view.js (view - view.*)
*
* @author Tim Lauv
* @created 2015.07.29
* @updated 2017.04.04
*/
;(function(app){
/**
* Universal app object creation api entry point
* ----------------------------------------------------
* @deprecated Use the... | JavaScript | implementation/js/src/infrastructure/api.js | mr-beaver/Stage.js | mit | 32,953 | 1,015 | codeparrot/github-code |
4204e411307b66b01806ae1babdd3b0e8625a20e743b67503fff367de4b41ad4 | // Base64 encoder/decoder with UTF-8 support
//
// Copyright (c) 2011 Vitaly Puzrin
// Copyright (c) 2011 Aleksey V Zapparov
//
// Author: Aleksey V Zapparov AKA ixti (http://www.ixti.net/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentatio... | JavaScript | support/demo_template/base64.js | minj/js-yaml | mit | 5,692 | 181 | codeparrot/github-code |
a2c4eae920ebf9aaae1259a8f79fe4314f4ce0dff5a847dd51f3c996c0491393 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2016-2018 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Create oauthclient tables."""
import sqlalchemy as sa
import sqlalchemy_utils
fro... | Python | invenio_oauthclient/alembic/97bbc733896c_create_oauthclient_tables.py | tiborsimko/invenio-oauthclient | mit | 2,898 | 87 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.