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 |
|---|---|---|---|---|---|---|---|---|
87a4e13b42f572b988be5d8ca121420db86455141c2c6a5adc96d0ffd0f60fdd | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouterModule } from '@angular/router';
import { HttpModule } from '@angular/http';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AppComponent, ROUTES, AppState } from './';
import... | TypeScript | src/app/app.module.ts | samvloeberghs/protractor-gherkin-cucumberjs-angular2 | mit | 1,080 | 36 | codeparrot/github-code |
b6a96bcb827ff9b3195f92a1af962f91351d211a91fe26e312f1c4e2a658862b | import React, { Component } from 'react'
import { ItemCart, Cart, CartButton } from 'components'
import { getGoodsWord, isEmpty } from 'helpers'
export default class CartItems extends Component {
render() {
const {
data, changeQuantity, onRemove, totalQuantity, totalPrice
} = this.props;
const tit... | JavaScript | src/components/CartItems/CartItems.js | expdevelop/ultrastore | mit | 1,021 | 31 | codeparrot/github-code |
0d93b5f9388fd1980f477dff3a3da71fe12d112f33c4e1d414da8d2a5d368118 | """This module's main class reads a text corpus and assembles a list of n
most common words."""
__author__ = 'Kyle P. Johnson <kyle@kyle-p-johnson.com>'
__license__ = 'MIT License. See LICENSE.'
from cltk.corpus.utils.formatter import assemble_tlg_author_filepaths
from cltk.corpus.utils.formatter import assemble_phi... | Python | cltk/utils/frequency.py | mbevila/cltk | mit | 2,334 | 59 | codeparrot/github-code |
bf6cd1dbb995c061a67ece403b354af01a60818f5c735f02ee6dcaf325a48bc2 | import React from 'react'
import PropTypes from 'prop-types'
import { routerShape } from 'found/lib/PropTypes'
import { createFragmentContainer, graphql } from 'react-relay'
import Formsy from 'formsy-react'
import { FormsyText } from 'formsy-material-ui'
import RaisedButton from 'material-ui/RaisedButton'
import Regi... | JavaScript | client/pages/user/Register.js | jkettmann/relay-authentication | mit | 3,839 | 164 | codeparrot/github-code |
b3d86a7f4f56b2c33b73b434b8240599bd26b4000f255e8b42df6ce891fdf31c | # frozen_string_literal: true
require 'opal/paths'
require 'shellwords'
module Opal
module CliRunners
class Nodejs
NODE_PATH = File.expand_path('../stdlib/nodejs/node_modules', ::Opal.gem_dir)
def initialize(options)
@output = options.fetch(:output, $stdout)
end
attr_reader :out... | Ruby | lib/opal/cli_runners/nodejs.rb | iliabylich/opal | mit | 2,051 | 70 | codeparrot/github-code |
cbd47a923141b70a531bbc8e36235e364cfb8be4b6b66499c4101570d84c0c17 | """
RenderPipeline
Copyright (c) 2014-2016 tobspr <tobias.springer1@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use... | Python | rpcore/pynative/shadow_atlas.py | eswartz/RenderPipeline | mit | 3,799 | 101 | codeparrot/github-code |
5435cc46daf33ad77d76aa3b1ec425e11b701bc1b2a72e67f166fe7e11bacdec | import EventEmitter from 'events';
import nock from 'nock';
import Tumblr from '../../src/tumblr';
import TumblrStream from '../../src/tumblr/stream';
import { generateNewMessage, generateOldMessage } from './utils';
describe('TumblrStream', () => {
const auth = {
consumerKey: 'consumerKey',
};
const tumblr ... | JavaScript | __tests__/tumblr/stream.js | pradel/node-social-api | mit | 5,303 | 177 | codeparrot/github-code |
d9d1817d5b0358599b4b0aab6370b860b3554b482c01f45e5251447002f3237f | using Mvc.Datatables.Util;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Mvc.Datatables.Serialization
{
public class LegacyPageResponseConverter : JsonConverter
{
public override bool CanConvert(Type objectType)
{
return obj... | C# | Mvc.Datatables/Serialization/LegacyPageResponseConverter.cs | offspringer/mvc.datatables | mit | 2,820 | 88 | codeparrot/github-code |
74f58f68e82ead113980afe6f9c9cedcefa79dd3eddd2ed782135fc2a00aae5c | <!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="author" content="Dan Weisz" />
<meta name="description" content="Homepage">
<link rel="favicon" hre... | HTML | old_page/_site/post1.html | dweisz/dweisz.github.io | mit | 20,374 | 822 | codeparrot/github-code |
f797d7c4151bb58b891a134d7d287561af91581b2de42a7cabf550e9020ba5ae | require 'yt/models/account'
module Yt
module Models
# Provides methods to interact with YouTube CMS accounts.
# @see https://cms.youtube.com
# @see https://developers.google.com/youtube/analytics/v1/content_owner_reports
class ContentOwner < Account
# @!attribute [r] partnered_channels
#... | Ruby | lib/yt/models/content_owner.rb | Fullscreen/yt | mit | 4,193 | 128 | codeparrot/github-code |
e7471c838ae471d7d3a187ec049112cd17a392b02d641987f4607d3b90e72ad9 | package nio.sample.filecopy;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
/**
* ÀàNIOFileCopy.javaµÄʵÏÖÃèÊö£ºÊ¹ÓÃNIO½øÐÐÎļþ¶Áд
*
* @author yblin 2010-10-17 ÏÂÎç02:09:31
*/
pub... | Java | nio_example/src/nio/sample/filecopy/NIOFileCopy.java | allanfish/facetime-demo | mit | 1,144 | 48 | codeparrot/github-code |
21ee4611802e4e4f31ca452eddc077fe245e10296be57724d7ffd02a2157a8d7 | #[cfg(target_family = "unix")]
extern crate cursive;
#[cfg(target_family = "unix")]
use cursive::Cursive;
#[cfg(target_family = "unix")]
use cursive::traits::*;
#[cfg(target_family = "unix")]
use cursive::views::{Dialog, DummyView, LinearLayout, SelectView, TextView};
#[cfg(target_family = "unix")]
use std::fs::{self... | Rust | vol2/src/bin/day14.rs | zsiciarz/24daysofrust | mit | 2,593 | 86 | codeparrot/github-code |
182b8de2e396895c3fd05add7301367ddf6157eac00f72ee3408dc7620efc59a | <?php
// Blacknova Traders - A web-based massively multiplayer space combat and trading game
// Copyright (C) 2001-2012 Ron Harwood and the BNT development team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by... | PHP | system.computer/tools/games/blacknova/includes/player_insignia_name.php | paradox-computer/system.computer | mit | 2,251 | 64 | codeparrot/github-code |
9af060ea916c66cdd84fe19d5d540b69747b47e9f3282cd03af9890debcbb13b | //! formatter for %f %F common-notation floating-point subs
use super::super::format_field::FormatField;
use super::super::formatter::{FormatPrimitive, Formatter, InPrefix};
use super::float_common::{get_primitive_dec, primitive_to_str_common, FloatAnalysis};
pub struct Floatf {
as_num: f64,
}
impl Floatf {
pu... | Rust | src/printf/tokenize/num_format/formatters/floatf.rs | tempbottle/coreutils | mit | 1,093 | 37 | codeparrot/github-code |
0f27a6b9e83370398c25e2bb8e3945e544b2afdf2e916dd79dd1385264951522 | using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using PoESkillTree.Utils;
namespace PoESkillTree.Localization
{
// Localization API.
public class L10n
{
// The current translation catalog.
private static Catalog Catalog;... | C# | WPFSKillTree/Localization/L10n.cs | PoESkillTree/PoESkillTree | mit | 10,581 | 274 | codeparrot/github-code |
7f0b0d1fcb14258b8f4934b9235c25d46d2c9ce4f73f57bcfd73df466ac61f92 | /**
* canvas.transition(option) implement.
* @module component/canvas/transition
* @see module:component/canvas
*/
import {
every,
isNumber,
} from 'zero-lang';
export default function transition(option) {
/**
* graph transition.
* @function
* @param {number} option.x - x.
* @param {number} opti... | JavaScript | src/component/canvas/transition.js | leungwensen/deptree | mit | 1,051 | 53 | codeparrot/github-code |
8656b1e96923b938789874223f370742a832fcabc7d3474ecddfbf79f4c457d5 | #ifndef ANET_DATA_BUFFER_H_
#define ANET_DATA_BUFFER_H_
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <stdint.h>
#define MAX_BUFFER_SIZE 65536
namespace anet {
class DataBuffer {
friend class DataBufferTF;
public:
/*
* ¹¹Ô캯Êý
*/
DataBuffer() {
_pend = _p... | C | anet/src/anet/databuffer.h | armsword/Source | mit | 5,465 | 291 | codeparrot/github-code |
30d33bb42e2ea33c695c4b3d829a5e8e4c57fe8c2960f726a65205385f831e54 | #include <fstream>
#include <iostream>
#include <seqan/sequence.h>
#include <seqan/file.h>
#include <seqan/store.h>
using namespace seqan;
int main()
{
FragmentStore<> store;
std::ifstream file("assignment_annotations.gtf", std::ios_base::in | std::ios_base::binary);
read(file, store, Gtf());
// Crea... | C++ | raw/workshop13/workshop2013-data-20130926/sources/ykuccc7dunih46v6/66/sandbox/my_sandbox/apps/tutfrag/tutfrag.cpp | bkahlert/seqan-research | mit | 1,314 | 50 | codeparrot/github-code |
bc1a613f76291c56f9c257632fb1e145dae4798bc36de72550f97d048ede630c | require_relative '../vm/class'
module RubyOnRun
module Builtin
# top class
class ParentObject
alias_method :original_method, :method
def initialize(vm, superklass)
@vm = vm
@superklass = superklass
# should by Constant :Class <- but we dont have bootstrapped
# we dont support... | Ruby | lib/ruby_on_run/builtin/parent_object.rb | liskape8/ruby-on-run | mit | 1,134 | 54 | codeparrot/github-code |
b2c126d4a5425b189c428f4fa06ae3feb7342b21aa4ed68dfc2a304fa012a23c | import React from "react";
import ReactDOM from "react-dom";
import { Router, Route, IndexRoute, hashHistory} from "react-router";
//Components
import About from './Pages/About';
import Home from './Pages/Home';
import Layout from './components/Layout';
import MyReviewsContainer from './components/MyReviewsContainer';... | JavaScript | Rate.UI/app/App.js | tanos90/Rate | mit | 1,249 | 37 | codeparrot/github-code |
baf6d0fe62980ab1afada7b62a2f185b78f72b7ccb971a00c3bbf115ddd3d259 | /*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2002,2008 Oracle. All rights reserved.
*
* $Id: ShipmentKey.java 63573 2008-05-23 21:43:21Z trent.nelson $
*/
package collections.ship.basic;
import java.io.Serializable;
/**
* A ShipmentKey serves as the key in the key/data pair fo... | Java | UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/db-4.7.25.0/examples_java/src/collections/ship/basic/ShipmentKey.java | mollstam/UnrealPy | mit | 1,172 | 49 | codeparrot/github-code |
c19ef91239ac9765dfd6997d357fd4c959a5560688bd69ef6deca446e8c39489 | (() => {
'use strict';
// The name used by this script to send alerts to the GM in the chat.
const CHAT_NAME = '5E-Generic';
const SHEET_ATTRS = {
ogl: {
ac: 'ac',
strSaveModifier: 'strength_save_bonus',
dexSaveModifier: 'dexterity_save_bonus',
conSaveModifier: 'constitution_save_b... | JavaScript | ItsATrap_theme_5E_Generic/3.0.2/TrapTheme.js | NathaTerrien/Natha-roll20-api-scripts | mit | 4,118 | 139 | codeparrot/github-code |
acae1b9336f40c4755b309a90bc0ca960b613545c21f1a64bc5f2b9fb4e2f7c2 | #include "MSPd.h"
#include "string.h"
/**/
// NOTE: MUST PREVENT WAVEFORM UPDATE IF ALREADY IN PROGRESS
// 7.23.04 adding bandlimited harmonic count
// 9.2.04 fixed cross fade amplitude bug
// 1.14.06 added apwave message for amp/phase creation
#define OSCIL_MAXIMUM_HARMONICS (1024)
#define OSCIL_DEFAULT_FLEN 8192
#... | C | oscil~.c | pd-projects/lyonpotpourri | mit | 20,161 | 790 | codeparrot/github-code |
e45cbfaae3b9267e13133717346282f34a193dcc75bfddebf023676d6fd2e381 | try:
import simplejson as json
except:
import json
import os
import re
import subprocess
import click
from radiotool.composer import Speech, Segment, Composition
from align import do_alignment
ac_re = re.compile(r"\[Ac=(-?\d+)")
def alignment_with_breaths(speech_file, alignment_file, out_alignment_file=None... | Python | p2fa-vislab-master/detect_breaths.py | Silance/classTranscribe | mit | 4,234 | 139 | codeparrot/github-code |
4148abb7f5a96237d8baf7848c1812cd7ca68e6b3879a93acdfe5860d73ef66b | /**
*
* @license
* Copyright (C) 2016 Joseph Roque
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | TypeScript | src/util/__tests__/Translations-test.ts | joseph-roque/uottawa-campus-guide | mit | 12,886 | 313 | codeparrot/github-code |
27e8f7a112af56c1e9a6f738331e492fb1f66e091b36b676f9c5921deab0b63e | #include "transactionrecord.h"
#include "wallet.h"
#include "base58.h"
/* Return positive answer if transaction should be shown in list.
*/
bool TransactionRecord::showTransaction(const CWalletTx &wtx)
{
if (wtx.IsCoinBase())
{
// Ensures we show generated coins / mined transactions at depth 1
... | C++ | src/src/qt/transactionrecord.cpp | wonabru/qcoin | mit | 7,049 | 233 | codeparrot/github-code |
7e9fc65aaf5bf144c6bbe41a05ab3fa5d4ff6f5dc2868d2f284c4c4d052cdb36 | import * as path from 'path';
import * as webpack from 'webpack';
import TerserPlugin from 'terser-webpack-plugin';
import * as pkg from '../package.json';
const debug = process.argv.indexOf('--mode=development') > 0;
const license = `opensource.org/licenses/${pkg.license}`;
const copyright = `(c) ${new Date().getFu... | TypeScript | conf/webpack.config.ts | keeweb/kdbxweb | mit | 2,045 | 77 | codeparrot/github-code |
a182c3f22d9b6861b0cebfc7cc51d4f00ef3c044470ff91e1e268adb2c8ff17c | module ActiveRecord
class PredicateBuilder # :nodoc:
require "active_record/relation/predicate_builder/array_handler"
require "active_record/relation/predicate_builder/association_query_handler"
require "active_record/relation/predicate_builder/base_handler"
require "active_record/relation/predicate_b... | Ruby | activerecord/lib/active_record/relation/predicate_builder.rb | samphilipd/rails | mit | 5,886 | 167 | codeparrot/github-code |
470c4f31eafb0eeb06feb4f8dc7bdc4adc97c98bc35ed7b0a657f3419883bdab | use nom::IResult;
// chars
named!(identifier<&str,&str>, re_find_static!(
concat!(
r"^",
r"[\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}]",
r"[\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Lo}\p{Nl}\p{Mn}\p{Mc}\p{Nd}\p{Pc}\p{Cf}]*",
)
));
named!(sp <&str,&str>, re_find_static!(r"^[\t\v\f \xA0\x{FEFF}\p{Zs}]+"))... | Rust | old/20200704/shiori3/src/recipe.rs | ekicyou/pasta-rs | mit | 2,000 | 85 | codeparrot/github-code |
460c2caaf954a499e3dfd5061bf854321702b0eb70f1fe0e7ead3e5047b6c025 | /*
Part of the GUI for Processing library
http://www.lagers.org.uk/g4p/index.html
http://gui4processing.googlecode.com/svn/trunk/
Copyright (c) 2008-13 Peter Lager
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publish... | Java | libraries/GameControlPlus/src/org/gamecontrolplus/gui/M4P.java | chcbaram/Processing_RokitDrone | mit | 25,419 | 752 | codeparrot/github-code |
a71c652cd2bcfb3e14365ddcb8e3d9fc3040c8425ea65ca378b8ff729dbc1a41 | (function(bespoke) {
bespoke.plugins.bullets = function(deck, options) {
var activeSlideIndex,
activeBulletIndex,
bullets = deck.slides.map(function(slide) {
return [].slice.call(slide.querySelectorAll((typeof options === 'string' ? options : '[data-bespoke-bullet]')), 0);
}),
next = function() {
... | JavaScript | src/scripts/bespoke-bullets.js | pimterry/Your-Web-Stack-Would-Betray-You-In-An-Instant | mit | 2,003 | 74 | codeparrot/github-code |
94dc0f0734dd83ae4964e0179afcb9949670fd450f320296d4e03538b866cf2d | /*
* Copyright (c) 2009-2011 Niels Provos and Nick Mathewson
*
* 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 list of conditi... | C | tbonlineproject/external/libevent-2.0.16-stable/bufferevent_openssl.c | nathangeffen/tbonline-old | mit | 36,257 | 1,402 | codeparrot/github-code |
92051508060afab5fc1a13bf72271b038cff80171a872b10f9ab971cf88a94e8 | <!DOCTYPE html>
<html>
<head>
<title>Battle Pong Controls</title>
<script src="input-mappings.js"></script>
<script>
document.addEventListener('DOMContentLoaded', (e) => {
var localStorageStatus = document.querySelector('#local-storage-status > .status');
var gamepadMappingTable = document.querySe... | HTML | battle-pong/controls.html | secretrobotron/games | mit | 4,384 | 132 | codeparrot/github-code |
8d84c5144b070c99b8035937708b4d070e9a2db1582a0f21858b0ffc26fcff1e | "use strict";
import {expect,assert} from 'chai';
import {all, random , parse , get, Dom } from './index.js';
describe('Emotsjs' ,() => {
describe('all' ,() => {
it('should be an array of strings' ,() => {
expect(all()).to.satisfy(isArrayOfString);
function isArrayOfString(array){
return array.every((i... | JavaScript | src/index.test.js | devrchancay/emotsjs | mit | 1,784 | 78 | codeparrot/github-code |
7c85447fd6cf1c6e0629ce89b4556e7439b81cecf6b72aac629139949fb215b2 | /*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2006 Erwin Coumans https://bulletphysics.org
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is gran... | C++ | Deps/bullet/src/BulletSoftBody/btSoftRigidCollisionAlgorithm.cpp | niello/deusexmachina | mit | 3,472 | 79 | codeparrot/github-code |
73d68a7804a5fa090d097828a0e83424e448cb08aa00781d555f7c4c04208da6 | package triangle;
/**
* An implementation that classifies triangles.
*/
public class Triangle {
/**
* This enum gives the type of the triangle.
*/
public static enum Type {
INVALID, SCALENE, EQUILATERAL, ISOSCELES
};
/**
* This static method does the actual classification... | Java | MVC/mutation_results/mutants/79/triangle/Triangle.java | reiffev/CS520_Final_Project | mit | 1,279 | 53 | codeparrot/github-code |
4a9b7d81824c3a0f4a47dccb35fceb29e8d791e0bba1307e4418d32fb011213a | <?php
namespace Vipa\JournalBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Vipa\CoreBundle\Entity\DisplayTrait;
use Prezent\Doctrine\Translatable\Annotation as Prezent;
use Prezent\Doctrine\Translatable\Entity\AbstractTranslation;
class JournalAnnouncementTranslation extends AbstractTranslation
{
use Displa... | PHP | src/Vipa/JournalBundle/Entity/JournalAnnouncementTranslation.php | okulbilisim/ojs | mit | 1,148 | 60 | codeparrot/github-code |
47e1d06257deae18c90c03afccee5ad90c6b94f402372ffc5a6871a3c6030cac | /*
* Copyright (C) 2015 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | third_party/okhttp-master/okhttp/src/main/java/com/squareup/okhttp/HttpUrl.java | cdut007/PMS_TASK | mit | 9,177 | 303 | codeparrot/github-code |
aa090c138971e3fc8fc31a526b3e082565d63eb905d935f2e7a01ce3dc206190 | // Copyright © 2010-12 Qtrac Ltd.
//
// This program or package and any associated files are licensed under the
// Apache License, Version 2.0 (the "License"); you may not use these files
// except in compliance with the License. You can get a copy of the License
// at: http://www.apache.org/licenses/LICENSE-2.0.
//
//... | GO | bigdigits/bigdigits.go | ihcsim/golang-tutorial | mit | 2,916 | 107 | codeparrot/github-code |
3ee68661d19b1a590b5d94136085c644e5afa2a29f83cbf573584463e96af9ac | "use strict";
var immutableMap = require('immutable').Map;
var database = require('../../database');
/*
keys of this object will be used as annotations_task.type
*/
var annotationFunctions = {
'facebook_like': require('./facebookLikes'),
'facebook_share': require('./facebookShares'),
'linkedin_share'... | JavaScript | automatedAnnotation/socialSignals/index.js | MyWebIntelligence/MyWebIntelligence | mit | 973 | 38 | codeparrot/github-code |
21e895345d91043ec0265c8cbbbe814e74e7a3f21629b4a2eec0fe73e1f308d9 | /*
Copyright (c) 2015 Martin Sustrik
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, d... | C | tutorial/step7.c | ebfe/libmill | mit | 3,409 | 132 | codeparrot/github-code |
816bf438348aa17f263cb240b1892456f03e81a48e7fc49216abed8f2d1f3ae9 | const _ = require('lodash');
const Promise = require('bluebird');
const db = require('../../data/db');
const commands = require('../schema').commands;
const ghostVersion = require('../../lib/ghost-version');
const {i18n} = require('../../lib/common');
const logging = require('../../../shared/logging');
const errors = r... | JavaScript | core/server/data/exporter/index.js | e10/Ghost | mit | 3,032 | 108 | codeparrot/github-code |
f6299a26b30b7feaf507449164043a7c6d105ae794fbad3712642b651c9d7aaf | /*
*
* Copyright (C) 2002-2010, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmdata
*
* Author: Marco Ei... | C++ | dcmtk-3.6.1_20150629/dcmdata/libsrc/dcistrmz.cc | leonardorame/openpacs | mit | 13,225 | 433 | codeparrot/github-code |
471b994f2bb13c0ae8d225dd66187fbdaac83f1446c08efb2499e751ba49043c | from itertools import tee, chain, combinations
from collections import defaultdict
from pgmpy.factors import Factor
from pgmpy.factors.Factor import factor_product
from pgmpy.inference import Inference, BeliefPropagation
class DBNInference(Inference):
def __init__(self, model):
"""
Class for perf... | Python | pgmpy/inference/dbn_inference.py | anaviltripathi/pgmpy | mit | 18,559 | 439 | codeparrot/github-code |
b04dc88c57fa41e7635dfa070faed941f35de88aab8f86f19f89c4b0548fa244 | // This file is part of YamlDotNet - A .NET library for YAML.
// Copyright (c) Antoine Aubry and contributors
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction... | C# | YamlDotNetEditor/CommandHandlers/SelectionModifierCommandHandler.cs | modulexcite/YamlDotNet.Editor | mit | 3,113 | 83 | codeparrot/github-code |
e81ec38c0a93f6fd91c4f1823da52a455edea7b1a05850cf5f5e1d9aa927bd51 | <?php
namespace ThreadAndMirror\ProductsBundle\Parser;
use ThreadAndMirror\ProductsBundle\Parser\BaseParser;
use Symfony\Component\DomCrawler\Crawler;
class MatchesfashionParser extends BaseParser
{
protected $shop = 3;
protected $selector = 'div.products > div.product';
protected $urlSale = 'http:... | PHP | src/ThreadAndMirror/ProductsBundle/Parser/MatchesfashionParser.php | ScragLabs/ThreadAndMirror | mit | 9,542 | 364 | codeparrot/github-code |
0635c7f5b233054bd87b4619a067a1088413de9889c102e0d45ea52af66dcbb6 | /*
html2canvas @VERSION@ <http://html2canvas.hertzen.com>
Copyright (c) 2011 Niklas von Hertzen. All rights reserved.
http://www.twitter.com/niklasvh
Released under MIT License
*/
/*
* New function for traversing elements
*/
_html2canvas.Parse = function ( images, options ) {
window.scroll(0,0);
... | JavaScript | src/Parse.js | GurpreetSran/html2canvas | mit | 43,016 | 1,400 | codeparrot/github-code |
c8a2bbfd5e60e1fa18464a23cd8a48c51f2df9bd5de628349a2eca3e21983ae1 | module cola {
var packingOptions = {
PADDING: 10,
GOLDEN_SECTION: (1 + Math.sqrt(5)) / 2,
FLOAT_EPSILON: 0.0001,
MAX_INERATIONS: 100
};
// assign x, y to nodes while using box packing algorithm for disconnected graphs
export function applyPacking(graphs:Array<any>, w, h... | TypeScript | WebCola/src/handledisconnected.ts | davkal/WebCola | mit | 10,178 | 310 | codeparrot/github-code |
a6810f97bcbfc756cdc52bd011b95a0f872b5ed277f81d8a27ef7db5fc5c5984 | #!/usr/bin/env python2
# ============================================================
# File: hex-array.py [input files]
# Description: inputs a file, and formats it in a hex array
# Created by Henry Crute
# 3/5/2015
# ============================================================
#12 hex digits on a line
import sys
... | Python | ESP8266/keys/hex_array.py | seadsystem/ShR2 | mit | 804 | 43 | codeparrot/github-code |
641ddcabc8dc618014767c6efe45d45b2ae632b4f20d17548e09f0a51830789c | require('./navbar.less');
var _ = require('underscore');
navbarController.$inject = [ '$rootScope', 'notificationService', '$state', '$scope' ];
function navbarController($rootScope, notificationService, $state, $scope) {
var self = this;
self.showNotImplementedNotification = function() {
notificatio... | JavaScript | app/view/top/navbar/navbar.controller.js | stq/angular1-5-webpack-oclazyload-sample | mit | 1,152 | 45 | codeparrot/github-code |
55fa1539bb01a4e21bd217fdda97fda6a70823fa3b0006c1545406818c73b27b | /*
M3 -- Meka Robotics Robot Components
Copyright (c) 2010 Meka Robotics
Author: edsinger@mekabot.com (Aaron Edsinger)
M3 is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the Lic... | C++ | src/m3/hardware/joint_slave.cpp | ahoarau/m3meka | mit | 2,195 | 90 | codeparrot/github-code |
bb374c3ec89412e38902f73372f4d9bdb83b88325acb7b380df99ba662e68c03 | /*
* AAC Spectral Band Replication decoding functions
* Copyright (c) 2008-2009 Robert Swain ( rob opendot cl )
* Copyright (c) 2009-2010 Alex Converse <alex.converse@gmail.com>
*
* This file is part of Libav.
*
* Libav is free software; you can redistribute it and/or
* modify it under the terms of the GNU Less... | C | src/libav/libavcodec/aacsbr.c | fillest/rtmp_load | mit | 67,171 | 1,768 | codeparrot/github-code |
8d60cae0bbc664a6666fd5f3c948dc67820c6aa5791d860c853b8634e49578c4 | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparamsbase.h"
#include "util.h"
#include <assert.h>
#include <boost/assig... | C++ | src/chainparamsbase.cpp | florincoin/florincoin | mit | 2,778 | 130 | codeparrot/github-code |
0701a2b8d21f8e7496f0545da1d803d6b4b6227891809b63d18326a72d1cca10 | 'use strict';
var Promise = require('promise');
var List = require('immutable').List;
var Map = require('immutable').Map;
var Specberus = require('specberus/lib/validator').Specberus;
require('../config.js');
/**
* @exports lib/specberus-wrapper
*/
var SpecberusWrapper = {};
SpecberusWrapper.validate = function ... | JavaScript | lib/specberus-wrapper.js | catataw/echidna | mit | 1,590 | 67 | codeparrot/github-code |
8cebebf3f9d0a2dc5bba9f0e65b97fc497a0aa1167bd590614c7fc9cbdcf1eab | //
// Copyright (c) 2008-2011, Kenneth Bell
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, m... | C# | src/Iso9660/IsoUtilities.cs | breezechen/DiscUtils | mit | 16,591 | 467 | codeparrot/github-code |
9f1edc8a0d0df09ad43e671a64df97338cfa13acfee18e6f5eafe30279927aaa | // Copyright 2013 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 "mojo/edk/embedder/platform_handle.h"
#include "build/build_config.h"
#if defined(OS_POSIX)
#include <unistd.h>
#elif defined(OS_WIN)
#include <... | C++ | src/mojo/edk/embedder/platform_handle.cc | junhuac/MQUIC | mit | 1,120 | 49 | codeparrot/github-code |
23b52c68094cbf4b9d1cdd3aa01e9124c8a7720f3eb5f8c362e0827b859e64a2 | <?php
/**
*/
namespace Commercetools\Core\Model\Common;
/**
* @package Commercetools\Core\Model\Common
*
* @method string getCurrencyCode()
* @method CentPrecisionMoney setCurrencyCode(string $currencyCode = null)
* @method int getCentAmount()
* @method CentPrecisionMoney setCentAmount(int $centAmount = null)
... | PHP | src/Core/Model/Common/CentPrecisionMoney.php | sphereio/sphere-php-sdk | mit | 1,471 | 53 | codeparrot/github-code |
d0cbc9b3b57e1c026881017c33f092c8ef199a46d49e3f0bc60084a3d072b9e6 | <!DOCTYPE HTML>
<html>
<head>
<link type="text/css" rel="stylesheet" href="animate.css">
<script>
function move(elem) {
var left = 0
function frame() {
left++ // update parameters
elem.style.left = left + 'px' // show frame
if (left == 100) // check finish condition
clearInterval(... | HTML | unit_05/js1/a1.html | janusnic/21v-js | mit | 530 | 30 | codeparrot/github-code |
a40972cd8694ac6595ef399122dff2bc20fe78ad358c0225edc6a45a5890e76e | /*
* Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*/
package org.dom4j;
import junit.textui.TestRunner;
import java.io.StringWriter;
import org.dom4j.io.HTMLWriter;
import org.dom4j.io.OutputFormat;
... | Java | lib/dom4j-1.6.1/src/test/org/dom4j/HTMLWriterTest.java | teslaworksumn/lightshow-visualizer | mit | 6,767 | 172 | codeparrot/github-code |
807c8a65057dadcc938618e1d41b7b8d766ffce453a7dcad63de13b8b83b476a | //////////////////////////////////////////////////////////////////////////////
//
// Detours Test Program (setdll.cpp of setdll.exe)
//
// Microsoft Research Detours Package
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <shell... | C++ | steam_api/Detours/samples/setdll/setdll.cpp | qeedquan/game_format_dumpers | mit | 9,673 | 333 | codeparrot/github-code |
39d0f7563975d352d5fc9819154df86656e92fa579ccc972cca46edabfb67247 | /*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for license information.
*/
using System;
using System.Globalization;
using System.Text;
namespace Adxstudio.Xrm.Web.Mvc.Liquid
{
public static class DateFilters
{
/// <summary>
/... | C# | Framework/Adxstudio.Xrm/Web/Mvc/Liquid/DateFilters.cs | Adoxio/xRM-Portals-Community-Edition | mit | 5,695 | 164 | codeparrot/github-code |
a9f476a2270716c49fb5d136e37e9b1c4f66aa10fbd643208210aefe539f2b75 | #!/usr/bin/env python
########################################################################.......
"""Print all arguments to stdout, separated by spaces.
"""
from __future__ import print_function
import sys
def main(args):
# Not using argparse here, because echo should echo anything that is not a
# valid... | Python | bin/echo.py | jsbain/stash | mit | 1,000 | 40 | codeparrot/github-code |
d80d6bdb08ffff34e1f4bf1d29351e61e4d79578a3afcf59ae6f844cce489d31 | class Groups < Spinach::FeatureSteps
include SharedAuthentication
include SharedPaths
include SharedGroup
include SharedUser
include Select2Helper
Then 'I should see group "Owned" projects list' do
Group.find_by(name: "Owned").projects.each do |project|
page.should have_link project.name
end
... | Ruby | features/steps/group/group.rb | bladealslayer/gitlabhq | mit | 9,344 | 278 | codeparrot/github-code |
fcade112fe4967cdf1c4899e9d030cd00a5bbddae29899a600fa5581b354972b | 'use strict';
var should = require('should');
var lib = require('../lib');
var _ = require('lodash');
describe('test suite', function(){
it('should pass', function(done){
lib.add(1, 1).should.equal(2);
done();
});
it('clone', function(cb){
this.timeout(30000);
var data = [];
_.rang... | JavaScript | test/test.js | rain1017/tests | mit | 2,951 | 117 | codeparrot/github-code |
31f3702048f7a79ffbfade669d4ec33c038953624c3a676eecdae2bd5e1cf928 | // Copyright (c) 2012-2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "util.h"
#include <string>
#include <vector>
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp... | C++ | src/test/getarg_tests.cpp | putinclassic/putic | mit | 4,567 | 162 | codeparrot/github-code |
560882a43da0d8eaa9d825d945f3290f40e920f59ecfe97ff7162663c3e2391b | using Xamarin.Forms.CustomAttributes;
namespace Xamarin.Forms.Controls
{
internal class LabelCoreGalleryPage : CoreGalleryPage<Label>
{
protected override bool SupportsFocus
{
get { return false; }
}
protected override void InitializeElement (Label element)
{
element.Text = "I am a label's text.";
... | C# | Xamarin.Forms.Controls/CoreGalleryPages/LabelCoreGalleryPage.cs | Hitcents/Xamarin.Forms | mit | 8,002 | 175 | codeparrot/github-code |
e67d41856e4f66cd6f5b3c303892d1951a0b0af7ae1c91871550a76c62f65040 | ////////////////////////////////////////////////////////////////////////////
//
// Crytek Engine Source File.
// Copyright (C), Crytek Studios, 2001-2007.
// -------------------------------------------------------------------------
// File name: Endian.h
// Version: v1.00
// Created: 16/2/2006 by Scott,T... | C | src/native/inc/cryengine/CryCommon/Endian.h | samneirinck/cemono | mit | 6,291 | 223 | codeparrot/github-code |
71fcca281e3f64150aa24635cad36cb1f766ad749ca0296fb299526274fa060b | var myApp = angular.module('myapplication', ['ngRoute', 'ngResource']);
//Factory
myApp.factory('Users', ['$resource',function($resource){
return $resource('/users.json', {},{
query: { method: 'GET', isArray: true },
create: { method: 'POST' }
})
}]);
myApp.factory('User', ['$resource', function($resour... | JavaScript | app/assets/javascripts/angular/controller/users_controller.js | rortrainees/crud_with_angularjs | mit | 3,297 | 115 | codeparrot/github-code |
86beb24cbe5d2799c70e2397b953b5f72f719c119e427a3716a780de796f9925 | module Jekyll
class LessCssFile < StaticFile
def write(dest)
# do nothing
end
end
class LessJsGenerator < Generator
safe true
priority :low
def generate(site)
src_root = site.config['source']
lessc_bin = site.config['lessc'] || 'lessc'
sf = StaticFile.new(site, src_... | Ruby | _plugins/less.rb | groveatx/groveatx.github.io | mit | 818 | 37 | codeparrot/github-code |
8bb84403696d9e0f3d93a39e275de72b5f72d43787ce93545d719623d35cb2c7 | /***********************************************************************************
** MIT License **
** **
** Copyright (c) 2018 Victor DENIS (victordenis01@gmail.com) ... | C++ | Core/Widgets/Preferences/GeneralPage.cpp | Feldrise/Sielo-NavigateurV3-WebEngine | mit | 16,589 | 481 | codeparrot/github-code |
b5c181674084872e845449f2a02564331d8742363f2cebf0bb45959655e009c7 | import mth from 'osg/math';
import glm from 'gl-matrix';
import config from 'config.js';
glm.glMatrix.setMatrixArrayType(config.ArrayType);
glm.glMatrix.EPSILON = 1e-9;
var vec2 = glm.vec2;
var vec3 = glm.vec3;
var vec4 = glm.vec4;
var mat4 = glm.mat4;
var mat3 = glm.mat3;
var quat = glm.quat;
// osg vec3 additions
... | JavaScript | sources/osg/glMatrix.js | jtorresfabra/osgjs | mit | 13,712 | 553 | codeparrot/github-code |
7da12a2d2c16c417af009d2f982746ae533737be467e70955b50710777f017d1 | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... | C++ | src/Providers/UNIXProviders/PortImplementsEndpoint/UNIX_PortImplementsEndpointProvider.cpp | brunolauze/openpegasus-providers-old | mit | 3,292 | 101 | codeparrot/github-code |
172cbe62b04cd2a845ff37ab01834d196523aa0156c5c7295c74827aefa266bd | # coding: utf-8
require 'acts_as_ordered_tree/relation/arrangeable'
require 'acts_as_ordered_tree/relation/iterable'
module ActsAsOrderedTree
class Node
module Traversals
# Returns relation that contains all node's parents, starting from root.
#
# @return [ActiveRecord::Relation]
def anc... | Ruby | lib/acts_as_ordered_tree/node/traversals.rb | ebakan/acts_as_ordered_tree | mit | 1,534 | 53 | codeparrot/github-code |
20e8dd3a50f6ba0c2075e4ae88ff0b128921725b5eee932fea62317d42cbac66 | /*
* Copyright (c) 2009 QOS.ch All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modif... | Java | cal10n-api/src/test/java/ch/qos/cal10n/verifier/MessageKeyVerifierTest.java | gjs29/cal10n | mit | 2,755 | 78 | codeparrot/github-code |
c3a7fa397fe4119060073fac0ef6b744c3ce00286ef2fdb2c9477f02e07b3fac | package resources;
/**
* @author v.chibrikov
* <p>
* Пример кода для курса на https://stepic.org/
* <p>
* Описание курса и лицензия: https://github.com/vitaly-chibrikov/stepic_java_webserver
*/
@SuppressWarnings("UnusedDeclaration")
public class DBParametersResource {
private ... | Java | L6.3 XML/src/main/java/resources/DBParametersResource.java | WeR58/stepic_java_webserver | mit | 1,091 | 49 | codeparrot/github-code |
b0be6c78c148aa5a97b415b38b1ca6166d554e3eb5c0ffbc9efb1109c1d5618c | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>UnknownStream (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script t... | HTML | eclipse/poi-3.12/docs/apidocs/org/apache/poi/hdgf/streams/UnknownStream.html | misuqian/ExcelTool | mit | 9,727 | 249 | codeparrot/github-code |
975caceef82ee0983a34befc94304d125056551125db8caf4fc6c058946a611e | <!DOCTYPE html>
<html>
<head>
<title>AutoMapperTS samples</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/styles/default.min.css">
<script src="lib/sample-scripts.js"></script>
<script src="lib/highlight.pack.js"></script>... | HTML | samples/index.html | loedeman/AutoMapper | mit | 2,912 | 85 | codeparrot/github-code |
466ba7869a1fec6d67c57c3f03c86be025a58302fb51a50e41635f4bf0f27e6e | import React from 'react';
import { shallow } from 'enzyme';
import assert from 'assert';
import WeUI from '../src/index';
const {Toast, Mask, Icon} = WeUI;
describe('<Toast></Toast>', ()=> {
['small', 'large'].map((iconSize) => {
[undefined, null, false, true].map((show) => {
['toast', 'loadi... | JavaScript | test/toast.js | woshisbb43/coinMessageWechat | mit | 3,411 | 80 | codeparrot/github-code |
217b20c58f4937b5cf3caa8590ad072b25840123ea4bb927cff8f2353811d24e | using Aspose.Barcode.Live.Demos.UI.Models;
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.UI;
namespace Aspose.Barcode.Live.Demos.UI.Config
{
public class BaseMasterPage : MasterPage
{
private AsposeBarCodeContext _atContext;
/// <summary>... | C# | Demos/src/Aspose.BarCode.Live.Demos.UI/Config/BaseMasterPage.cs | asposebarcode/Aspose_BarCode_NET | mit | 1,250 | 48 | codeparrot/github-code |
29630a0fbf7a799d7a3f2da81e73a3b0d2afa2499e346fe0a7332838f04aa769 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Global... | C# | src/Compilers/CSharp/Portable/Symbols/Source/SourceOrdinaryMethodSymbol.cs | abock/roslyn | mit | 59,817 | 1,277 | codeparrot/github-code |
792f48d26614a2cfcf1c73c24e4da6611a59657332d08629cf5eea1aa4f84cf5 | package framework;
import java.awt.*;
public class Enemy {
private Core core;
private int x;
private static final int width = 12;
private static final int height = 60;
public static int y=0;
public static int dy=0;
public Enemy(Core core) {
this.core = core;
}
void updat... | Java | Pong/src/framework/Enemy.java | TRodz/Java-Pong | mit | 617 | 31 | codeparrot/github-code |
1360cecc8170b8dbef6e927457693ade3d3b9e207a4c66e1e3cffd31e0ac4e62 | // Copyright (c) 2007-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2011-2017 The Litecoin Core developers
// Copyright (c) 2013-2018 The Goldcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.... | C | src/consensus/consensus.h | goldcoin/Goldcoin-GLD | mit | 2,229 | 52 | codeparrot/github-code |
a4eb8d229a9b9dd47e775716854950a11e1fa1046f61965975abc8fa8673f6eb | // Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.services' is found in services.js
// 'start... | JavaScript | www/js/app.js | qintengfei/ionic-seeds | mit | 2,475 | 89 | codeparrot/github-code |
e6fd72105bb5cf12d65168e76bf02d7d02836a5ccee693ca41771e6868805622 | <?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: m... | HTML | QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/widgets-codeeditor-main-cpp.html | stephaneAG/PengPod700 | mit | 12,360 | 261 | codeparrot/github-code |
4a0c00de27c36cd009b3026429f179a04dd989eb65d8744c04820082fff3786b | /**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2014 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* The ScaleManager object is responsible for helping you manage the scaling, resizing and alignment of your game withi... | JavaScript | src/core/ScaleManager.js | bevacqua/phaser | mit | 25,154 | 810 | codeparrot/github-code |
ee749da7880757c4a07025d7d023b756e2dd0d16556f53b0326b038a756d29e4 | var Url = require('fire-url');
Polymer({
created: function () {
this.viewMode = "list";
this.searchText = "";
this.items = [];
this._curId = "";
},
ready: function () {
window.onkeydown = function ( event ) {
switch ( event.which ) {
// enter... | JavaScript | quick-view/editor/panel/quick-view.js | cocos-creator/deprecated-builtin | mit | 2,772 | 101 | codeparrot/github-code |
dcf2f521aa881649759d14d68e92a64e6cde4dbec1e6b1fa4eda620877501a46 | using UnityEngine;
namespace Thesis {
public class Shutter : DrawableObject
{
public readonly FaceComponent parent;
public readonly ShutterSide side;
static private int angles;
public BuildingMesh parentBuilding
{
get { return parent.parentBuilding; }
}
/*************** CONSTRUCTORS ***********... | C# | Assets/Standard Assets/Shutter/Shuter.cs | AlexanderMazaletskiy/ProceduralBuildings | mit | 4,963 | 206 | codeparrot/github-code |
cd6da34781bce0246c8b5a806ddbb337740ef7b9977ffe29e1bdb13b85b0d535 | #include <time.h>
#include <utils.h>
#include "command.h"
#include "../CmdHandler.h"
#include "../option.h"
/* full name of the command */
CMDNAME("submit");
/* description of the command */
CMDDESCR("submit a message to the streamer");
/* command usage synopsis */
CMDUSAGE("$submit MSG");
/* submit: submit a message... | C++ | src/cmd/submit.cpp | frolv/osrs-twitch-bot | mit | 1,560 | 70 | codeparrot/github-code |
f8884ad061525b50197e222d6777775bfa26b2d165921d3129e0557123185517 | define([
'jquery',
'kb_common/jsonRpc/dynamicServiceClient',
'widgets/modeling/KBModeling',
'widgets/modeling/kbaseTabTable'
], function ($, DynamicServiceClient, KBModeling) {
'use strict';
function KBaseBiochem_CompoundSet(tabwidget) {
var self = this;
this.tabwidget = tabwidge... | JavaScript | src/plugin/iframe_root/modules/widgets/modeling/KBaseBiochem.CompoundSet.js | eapearson/kbase-ui-plugin-dataview | mit | 5,533 | 185 | codeparrot/github-code |
434166045ace5e23fc19c6a3909d9cf4becd60534aaddded879eb00443a02571 | module Gitlab
module Popen
class Runner
attr_reader :results
def initialize
@results = []
end
def run(commands, &block)
commands.each do |cmd|
# yield doesn't support blocks, so we need to use a block variable
block.call(cmd) do # rubocop:disable Perfo... | Ruby | lib/gitlab/popen/runner.rb | jirutka/gitlabhq | mit | 1,028 | 47 | codeparrot/github-code |
971a7b48cbd63fb20b3be0057c86b4e522a5bb530ceedcd7cdec71c9a7a7df34 | // if97_p23 stub - Interfaces CoolProp IF97 function to Mathcad
//
// this code executes the user function if97_p23(P), which is a wrapper for
// the CoolProp-IF97 function, Region23_T(T), used to calculate the
// pressure along the Region23 curve in terms of temperature
LRESULT if97_P23(
LPCOMPLEXSCALAR c, // ... | C | wrapper/Mathcad/includes/p23.h | CoolProp/IF97 | mit | 1,387 | 35 | codeparrot/github-code |
030329bcb551f2cb4bc7bee1909f5d2f596303effb16e14936a6dd8922d51e95 | <?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.
*/
declare(strict_types=1);
namespace Sylius\Bundle\ThemeBundle\Locator;
use Sylius\Bundle\ThemeBundle\... | PHP | src/Sylius/Bundle/ThemeBundle/Locator/BundleResourceLocator.php | venyii/Sylius | mit | 3,597 | 108 | codeparrot/github-code |
810b2c2888deba5c02a4aecd09cbe800d86846386ed918ec709cd909b3031655 | namespace BankAccounts
{
using System;
// Problem 2. Bank accounts
// A bank holds different types of accounts for its customers: deposit accounts, loan accounts and mortgage accounts.
// Customers could be individuals or companies.
// All accounts have customer, balance and interest rate (mont... | C# | OOP/OOPPrinciplesPartTwoHomework/BankAccounts/Test.cs | tddold/Telerik-Academy-Homeworks | mit | 3,016 | 69 | codeparrot/github-code |
8cacd8512fad993e3665d4c671acd2a494e4cd9911b93e21468f1971e547859b | package thaumcraft.api.research;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import thaumcraft.api.ThaumcraftApiHelper;
public class ScanItem implements IScanThing {
String research;
ItemStack stack;
public ScanItem(String r... | Java | api/thaumcraft/api/research/ScanItem.java | bloodmc/StorageDrawers | mit | 878 | 38 | codeparrot/github-code |
3054fc31b4f1b7df2481aed35746911c6c3277249ace71bb5be702c41fc905f5 |
/*
* Superfish v1.4.8 - jQuery menu widget
* Copyright (c) 2008 Joel Birch
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
*/
;(functi... | JavaScript | web/store/modules/blocktopmenu/js/superfish-modified.js | timetre/tnk | mit | 3,765 | 124 | codeparrot/github-code |
d3df43901b2f5d64f12b531896196a8de22c2d880fbd6b80ff0a9284229bcb8e | """SCons.Tool.bcc32
XXX
"""
#
# __COPYRIGHT__
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, ... | Python | src/engine/SCons/Tool/bcc32.py | datalogics/scons | mit | 2,993 | 82 | codeparrot/github-code |
02252cabd4c0dcd114c971e749624a47e5b40c0698a9e1f94f5f331402975e49 | /*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at:
* http://research.scea.com/scea_shared_source_license.html
*
* Unless r... | C++ | ThirdParty/bullet-2.75/Extras/COLLADA_DOM/src/1.4/dom/domGles_texture_unit.cpp | palestar/medusa | mit | 5,758 | 203 | codeparrot/github-code |
233eaf5d240654a768e0f033a5d14bb5f0c99d190050639e611c383707fe881d | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Binary;
using System.Runtime;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace System.IO.Pipelines
{
public static clas... | C# | src/System.IO.Pipelines.Extensions/ReadWriteExtensions.cs | Vedin/corefxlab | mit | 3,586 | 96 | codeparrot/github-code |
e54185acd5797c4537a73370a9aa9ed0a00146378ec0c14ae9dce1505bf76693 | window.myDay = {
};
window.myDay.loadClubs = function(target, callback) {
window.api.get("myDay/clubs/getAll", function(data) {
for (var clubIndex in data.clubs) {
var club = data.clubs[clubIndex];
var option = $('<option></option>');
option.val(club.clubId);
option.text(club.name);
target.append(... | JavaScript | public/js/myDay.js | PlanHubMe/PlanHub | mit | 3,193 | 100 | codeparrot/github-code |
c563d5847df35b278719b2cf6b5837b4934ad81f712d4543fba7922a1b48d4fb | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | Java | tomcat_files/7.0.0/ConstantString.java | plumer/codana | mit | 2,624 | 99 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.