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
b4cfab344f9af41e20e1f7096626f30fc1edf8260b9007a96cfe7ee5be50638a
/* * Copyright 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
example/source/src/main/java/ua/org/gdg/devfest/iosched/receiver/SessionAlarmReceiver.java
zasadnyy/android-hothack-13
mit
1,444
41
codeparrot/github-code
1a97889de6a08eb8f935f0a7c3c74646f7eac40a4c0bce715e02528e66eaf2b5
using System.Text; public class Engine { private const string offset = " "; public string model; public int power; public int displacement; public string efficiency; public Engine(string model, int power) { this.model = model; this.power = power; this.displacemen...
C#
05-Csharp OOP Basics/06-EXERCISE WORKING WITH ABSTRACTION/06-AbstractionExercises/02-CarsSalesman/Engine.cs
MrPIvanov/SoftUni
mit
1,292
48
codeparrot/github-code
d43137a445f2dfa4ac4dd5b6db4d443d671234ab005dd0ccfaa3ee6637880845
from itertools import permutations import re def create_formula(combination,numbers): formula = "" index = 0 for op in combination: formula += str(numbers[index]) + op index += 1 formula += numbers[index] return formula ''' Unnecessary Funtion ''' def evaluate(form): result ...
Python
DailyProgrammer/Challenge#318/src.py
F0lha/UJunior-Projects
mit
2,546
89
codeparrot/github-code
b1a826702b95e833b94a54a58bc04e0802650330901cff185e3af86cd0a71864
#if !defined(LIQUID_BLOCK_H) #define LIQUID_BLOCK_H #include "document_body.h" #include "vm_assembler_pool.h" typedef struct block_body { bool compiled; VALUE obj; union { struct { document_body_entry_t document_body_entry; VALUE nodelist; } compiled; struc...
C
ext/liquid_c/block.h
Shopify/liquid-c
mit
743
34
codeparrot/github-code
21e56bcc4f8b9fe8d6805e182f40e958400f07957697c6e782f2fa312575be5f
<?php return [ /* |-------------------------------------------------------------------------- | Application Environment |-------------------------------------------------------------------------- | | This value determines the "environment" your application is currently | running in. This m...
PHP
config/app.php
milanbrckalo/cvator
mit
8,504
213
codeparrot/github-code
bcbf5b92bcb9ab740b88f8ab7c8fd5bbaba0eb8e5599380c0f5a4b1e3734f670
package soymsg import ( "bytes" "regexp" "strconv" "strings" "github.com/robfig/soy/ast" ) // setPlaceholderNames generates the placeholder names for all children of the // given message node, setting the .Name property on them. func setPlaceholderNames(n *ast.MsgNode) { // Step 1: Determine representative nod...
GO
soymsg/placeholder.go
robfig/soy
mit
5,537
210
codeparrot/github-code
26736b2a0079f58cf6848227d7ead81cc90a3109e45fac93e564d18637aa638b
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.HttpsPolicy; using ...
C#
src/WebJobs.Script.WebHost/Middleware/HstsConfigurationMiddleware.cs
Azure/azure-webjobs-sdk-script
mit
1,536
45
codeparrot/github-code
74d7e9c7c2f6eb384d90d017974dafa9c7286be894852be99fa03511b93075dc
// Include gulp import gulp from 'gulp'; import fs from 'fs'; // Include Our Plugins import eslint from 'gulp-eslint'; import mocha from 'gulp-mocha'; import browserSyncJs from 'browser-sync'; import sassJs from 'gulp-sass'; import sassCompiler from 'sass'; import rename from "gulp-rena...
JavaScript
gulpfile.js
fboes/blogophon
mit
2,874
110
codeparrot/github-code
06c4ae348fee3e404ba30b5f25cfd71bc606deef906c1e628795fda9058b15ad
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "main.h" #include "bitcoinrpc.h" using namespace json_spirit; using namespace...
C++
src/rpcblockchain.cpp
N2ODev/Nitrous
mit
10,201
306
codeparrot/github-code
6e13345fbecb9315ae09a6d7e861e00ef881203ecf47844114cabaa2b0397509
package helper const ( // EmojiStar const for unicode code EmojiStar = "\U00002B50" // EmojiAlarm const for unicode code EmojiAlarm = "\U000023F0" // EmojiDroplet const for unicode code EmojiDroplet = "\U0001F4A7" // EmojiGear const for unicode code EmojiGear = "\U00002699" // EmojiBell const for unicode ...
GO
helper/emoji.go
vort3x/watery
mit
747
34
codeparrot/github-code
2aa838931a1151f0888d2b7195043ad935ca682e7ab405f6b32e1b45ce99c8ae
/* ============================================================================== Copyright (C) 2016 Jacob Sologub 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 restricti...
C
FFKit/gui/controllers/UIViewController+FFKit.h
jacobsologub/FFKit
mit
2,936
83
codeparrot/github-code
192d2e3d67fe04cf1f64e3cd75e516c9cf7bf5dc3eb808cb2247f0cc8ea04746
/** * * wxform.cpp * * - implementation for main wx-based form * **/ #include "wxform.hpp" #include <wx/aboutdlg.h> #include "../res/apps.xpm" #include "../res/exit.xpm" #include "../res/quest.xpm" #define MACRO_WXBMP(bmp) wxBitmap(bmp##_xpm) #define MACRO_WXICO(bmp) wxIcon(bmp##_xpm) #define MESSAGE_WELCOME "Welco...
C++
src/wxform.cpp
my1matrix/my1termw
mit
2,350
84
codeparrot/github-code
9f4560f0110e7af8e36076fb23a81b1b2e34ae8b6d2f446b001902338659c686
<?php /* * Title: XML * Purpose: * Collection of parameters, functions, and classes that expand * Ditto's output capabilities to include XML */ if(!defined('MODX_BASE_PATH') || strpos(str_replace('\\','/',__FILE__), MODX_BASE_PATH)!==0) exit; // set placeholders $xml_placeholders['[+xml_copyright+]'] = isset...
PHP
evo/assets/snippets/ditto/formats/xml.format.inc.php
win-k/CMSTV
mit
3,036
140
codeparrot/github-code
962d7906fdaec138a2ea5ac1e8aa3cec84bc069320cab3d63c7994d18838924b
@(businessChooseYourAddressForm: Form[models.BusinessChooseYourAddressFormModel], traderBusinessName: String, traderPostcode: String, traderEmail: Option[String], dropDownOptions: Seq[(String, String)])(implicit lang: Lang, token: uk.gov.dvla.vehicles.presentation.common.filters....
HTML
app/views/acquire/business_choose_your_address.scala.html
dvla/vehicles-acquire-online
mit
3,868
81
codeparrot/github-code
8210779bfce44539b07685470edad7182c5fa6a13a6e99e78bce574d610b3ee8
<?php namespace Topxia\Service\Article; interface CategoryService { public function getCategory($id); public function getCategoryByCode($code); public function getCategoryTree(); public function getCategoryByParentId($parentId); public function findAllCategoriesByParentId($parentId); publ...
PHP
src/Topxia/Service/Article/CategoryService.php
smeagonline-developers/OnlineEducationPlatform---SMEAGonline
mit
852
37
codeparrot/github-code
0d7dcefa89547b3b4462c59907a0148ab3056abf776de6c1a72d390fbece42b5
package me.ronggenliu.dp.creation.builder; /** * Created by garliu on 2017/5/29. */ public class Product { private String partA; private String partB; private String partC; public String getPartA() { return partA; } public void setPartA(String partA) { this.partA = partA; } public String g...
Java
src/me/ronggenliu/dp/creation/builder/Product.java
ronggenliu/DesignPattern
mit
544
35
codeparrot/github-code
e82a767712cc9e25e2fd6d6242592d87884fc6d9867ed8618cceaaabf66952a0
package com.recursivechaos.boredgames.domain; import com.fasterxml.jackson.annotation.JsonIgnore; import org.springframework.data.annotation.Id; /** * Created by Andrew Bell 5/28/2015 * www.recursivechaos.com * andrew@recursivechaos.com * Licensed under MIT License 2015. See license.txt for details. */ public c...
Java
src/main/java/com/recursivechaos/boredgames/domain/Game.java
AndrewBell/boredgames-mongo
mit
888
49
codeparrot/github-code
75264bffffb92cc4c5b29b3e2cef05cbc8440b210c3b009257567579f34b632f
# frozen_string_literal: true # An InternalId is a strictly monotone sequence of integers # generated for a given scope and usage. # # The monotone sequence may be broken if an ID is explicitly provided # to `.track_greatest_and_save!` or `#track_greatest`. # # For example, issues use their project to scope internal i...
Ruby
app/models/internal_id.rb
iiet/iiet-git
mit
6,777
201
codeparrot/github-code
74819c11a33a9dc637c2fe8a582c2e90618e57c0eb79e9cbbf2f7f7b6520ec69
<h3 id="c49"><a href="#top">Chapter 49: Hiiro and the girl</a></h3> <p>“Hey! Were you serious, just now!? Tell me!” (?)</p> <p>Arnold was lifted up by the scruff of his neck by the person that walked into the room. He looked like he was suffocating.</p> <p>“Kuu-sama! What are you doing here!?” (Raiev)</p> <p>Raiev was ...
HTML
novels/konjiki-no-wordmaster/chapters/c49.html
Portgass/light-novel-reader
mit
18,687
144
codeparrot/github-code
4959d1bc1caff4d55df47b14cf956302fc32ea1d5e3c309f32c298f2c58ef3ad
using OpenQA.Selenium; namespace Vzhzhzh.SeleniumWrapper.Examples.Proprietary.Pages.Operator.Shared { public abstract class SubForm : PageElement { protected SubForm(DriverHolder driver) : base(driver) { } public virtual IWebElement SaveButton { ...
C#
Vzhzhzh.SeleniumWrapper.Examples/Proprietary/Pages/Operator/Shared/SubForm.cs
vzhzhzh/Vzhzhzh.SeleniumWrapper
mit
829
40
codeparrot/github-code
991b5d3cc2375bbd7c65d51b8b7a6439d39ceb7206fdc8f90a90b2886d72577f
var base64url = require('urlsafe-base64') , After = require('json-list-response').After , inherits = require('util').inherits module.exports = DateAfter function DateAfter(value, options) { After.call(this, value, options) this.skip = 0 this.value = 0 if (value) { value = base64url.decode(value) ...
JavaScript
lib/after/date.js
tellnes/mongo-list
mit
1,122
53
codeparrot/github-code
a62aa305bcc4f75f68a4cf920d95f733aa706ad5fe73307833124a7bf4875fd9
# wakautils.pl v9 use strict; use Time::Local; use Socket; use Net::SMTP; my $has_md5=0; eval 'use Digest::MD5 qw(md5)'; $has_md5=1 unless $@; my $has_encode=0; eval 'use Encode qw(decode)'; $has_encode=1 unless $@; use constant MAX_UNICODE => 1114111; # # HTML utilities # my $protocol_re=qr{(?:http://|https://...
Perl
wakautils.pl
marlencrabapple/Glaukaba
mit
39,034
1,522
codeparrot/github-code
29b27832c06bd32cc6a6f8080fdeba09e07a75d8c2bdc3c7e47591f243423b78
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta chars...
HTML
index.html
AndrewAlva/Newbauer
mit
14,655
327
codeparrot/github-code
962a1492d0f0be1bfee4f10af05d09b8aa0f4933335377663984c2d334ae951c
"""94. Binary Tree Inorder Traversal https://leetcode.com/problems/binary-tree-inorder-traversal/ Given a binary tree, return the in-order traversal of its nodes' values. Example: Input: [1,null,2,3] 1 \ 2 / 3 Output: [1,3,2] Follow up: Recursive solution is trivial, could you do it iteratively?...
Python
python-algorithm/leetcode/problem_94.py
isudox/leetcode-solution
mit
1,229
53
codeparrot/github-code
66442cf0afe00dc0614092c227a6033fdeaf13df927dd14d954e8c73a3498e1f
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>graph-basics: 31 s 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel...
HTML
clean/Linux-x86_64-4.07.1-2.0.6/released/8.8.1/graph-basics/8.8.0.html
coq-bench/coq-bench.github.io
mit
11,429
203
codeparrot/github-code
0e55575a1f111a4f874977926d99a631add57d1dc6e7c701d03b39b36afd35d0
import React, { MouseEvent, FunctionComponent } from 'react'; import classnames from 'classnames'; import rcFont from '../../assets/RcFont/RcFont.scss'; import styles from './styles.scss'; export interface RemoveButtonProps { className?: string; visibility?: boolean; onClick: (ev: MouseEvent) => void; } export ...
TypeScript
packages/ringcentral-widgets/components/RemoveButton/RemoveButton.tsx
ringcentral/ringcentral-js-widget
mit
790
36
codeparrot/github-code
6a97cfc46a55dbaf9a7fb658936e097054dc8a9cdca52414d81714ef2a66e3e1
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections.ObjectModel; using System.Text.RegularExpressions; using SharpDX; namespace Oggy { public class MapLayoutResource : IDisposable// : ResourceBase { #region properties priv...
C#
OculusWalkerDemo/Map/MapLayoutResource.cs
oggy83/OculusWalkerDemo
mit
1,289
71
codeparrot/github-code
c3c09f464ade001a410a9652f272e6a474e2c9f970e1beaaf94454837318bf89
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using PubSub; using Microsoft.Framework.ConfigurationModel; using Microsoft.Framework.DependencyInjection; using System.Threading; namespace MonitorTest { public class Program { IConfiguration Config { get...
C#
archive/MonitorDemo/MonitorTest/Program.cs
zbrad/WebSocketsDemo
mit
4,078
134
codeparrot/github-code
72196904de7b2c06629dc08cae3c031cad62722eaaa731f442c052a46a2a1aa5
<?php namespace Tyler\TopTrumpsBundle\Controller; use Doctrine\Common\Persistence\ObjectManager; use Doctrine\ORM\Query; use Doctrine\ORM\QueryBuilder; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\DependencyInjection\ContainerInterface; class RequestUtilityFunctions { /** * @param Obj...
PHP
src/Tyler/TopTrumpsBundle/Controller/RequestUtilityFunctions.php
DaveTCode/TopTrumps-PHPSymfony
mit
2,688
79
codeparrot/github-code
6ceba860696f7eca80c289d4e5e87f8242d54107e198a1bb9566956685e68b7e
/* * The MIT License (MIT) * * Copyright (c) 2015 Gareth Jon Lynch * * 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 * ...
Java
bxbot-exchanges/src/test/java/com/gazbert/bxbot/exchanges/trading/api/impl/TestOpenOrderImpl.java
gazbert/BX-bot
mit
5,233
158
codeparrot/github-code
64c0a73158ccc8c930db09713297672a146b4107ed1589385eb04a3ae34664e0
/** * @file ic_frame_constructor.c * @author Paweł Kaźmierzewski <p.kazmierzewski@inteliclinic.com> * @author Wojtek Weclewski <w.weclewski@inteliclinic.com> * @date February, 2017 * @brief Brief description * * Description */ #include "ic_frame_constructor.h" #pragma GCC visibility push(hidden) typ...
C
src/ic_frame_constructor.c
inteliclinic/neuroon-unified-communication
mit
7,567
199
codeparrot/github-code
15cf3fa2f242ea5ffaa24923dc4b4cb074d9048acfa0fcf11acefb5132c124a0
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef __cplusplus #error This header can only be compiled as C++. #endif #ifnde...
C
src/protocol.h
pelorusjack/BlockDX
mit
4,640
171
codeparrot/github-code
824a3338754d2c0645d6a3c4e2a04e582a489a116b0dffd5d5d098390f9ef9b0
function Set-DbaDbCompression { <# .SYNOPSIS Sets tables and indexes with preferred compression setting. .DESCRIPTION This function sets the appropriate compression recommendation, determined either by using the Tiger Team's query or set to the CompressionType parameter. ...
PowerShell
functions/Set-DbaDbCompression.ps1
SirCaptainMitch/dbatools
mit
19,148
291
codeparrot/github-code
e4d5929d02e5cf55caeed88d4b12a0ea76aa169e96cf2b450313e3f9f5a63de5
from tkinter import * import tkinter import HoursParser class UserInterface(tkinter.Frame): def __init__(self, master): self.master = master self.events_list = [] # Set window size master.minsize(width=800, height=600) master.maxsize(width=800, height=600) ...
Python
interface.py
itsknob/TechnicalServicesScheduler-Python
mit
3,856
100
codeparrot/github-code
21c28abb7c8a2f497530d846ffa842678636c134e5544245f93eec5fa77c37fe
required_states = ['accept', 'reject', 'init'] class TuringMachine(object): def __init__(self, sigma, gamma, delta): self.sigma = sigma self.gamma = gamma self.delta = delta self.state = None self.tape = None self.head_position = None return ...
Python
turing.py
ssanderson/turing.py
mit
2,182
72
codeparrot/github-code
3b344cc81719d89b8df2e76adabee22d023d8344c8fd69421c94302788724fe2
/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
Job/app/src/main/java/com/mardin/job/widgets/wizard/ui/SingleChoiceFragment.java
wawaeasybuy/jobandroid
mit
4,068
126
codeparrot/github-code
b374126415824845a6455b1baf07c95cf2e3d8f10e359f3111d258fe43f3fcc6
/// <reference path="../../tsd.d.ts" /> import { Component, View, } from 'angular2/core'; import { CORE_DIRECTIVES } from 'angular2/common'; import {tabs} from '../../ng2-bootstrap'; import {TimepickerDemo} from './timepicker/timepicker-demo'; let name = 'Timepicker'; let src = 'https://github.com/valor-software/ng...
TypeScript
demo/components/timepicker-section.ts
ciriarte/ng2-bootstrap
mit
1,970
69
codeparrot/github-code
cb927b56fd4b7f75f90bcaa3be7293c65dc301280b8ce4fd0ab7da27ffc3677b
var express = require("express"); var Pusher = require("pusher"); var bodyParser = require("body-parser"); var env = require("node-env-file"); var app = express(); app.use(bodyParser.urlencoded()); try { env(__dirname + "/.env"); } catch (_error) { error = _error; console.log(error); } var pusher = new Pusher...
JavaScript
server.js
adambutler/geo-pusher
mit
735
35
codeparrot/github-code
879fe649b428e94411cca54b0edf21b9116f0b01ec0d5ba6a4e04be5d2ed79e3
var app = angular.module("ethics-app"); // User create controller app.controller("userCreateController", function($scope, $rootScope, $routeParams, $filter, $translate, $location, config, $window, $authenticationService, $userService, $universityService, $instituteService) { /************************************...
JavaScript
public/member-client/js/controllers/user/createController.js
sitcomlab/Ethics-app
mit
5,089
145
codeparrot/github-code
a17150dfa68d8615aeaeb3cde85dcd2d9ffa46d02a63d29b7865a4cc925f77c3
package sample.rabbitmq; import static sample.rabbitmq.annotation.RabbitDirectRouting.*; import java.util.Arrays; import java.util.concurrent.*; import org.springframework.amqp.rabbit.annotation.*; import org.springframework.amqp.rabbit.core.RabbitTemplate; import org.springframework.amqp.rabbit.listener.ListenerCon...
Java
amqp/src/main/java/sample/rabbitmq/RabbitDirectChecker.java
jkazama/sandbox
mit
2,694
90
codeparrot/github-code
fa94b252fb88955e7056537f2b2f825d29f6e7f8a207db367c0164dd8cd8dabc
<!doctype html> <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]--> <!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!...
HTML
_layouts/page.html
merenlab/web
mit
2,006
80
codeparrot/github-code
d2efa411400bf9ded3d6502d6244eb4c0dbf68cb9eb71c39c6f4f7facc5bd1cc
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using HelpTheHomelessApp.Models; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace HelpTheHomelessApp { public partial class SurveyPage : ContentPage { public List<SurveyQuestionModel> ...
C#
HelpTheHomelessApp/HelpTheHomelessApp/SurveyPage.xaml.cs
leightonb/HomelessHack2017
mit
4,002
113
codeparrot/github-code
0e8e40e4ecd4fc4188d733570647b2deaa11d58f5ef50e86cabb37de124a89ea
package graphql.analysis; import graphql.PublicApi; import graphql.execution.AbortExecutionException; import graphql.execution.instrumentation.InstrumentationContext; import graphql.execution.instrumentation.SimpleInstrumentation; import graphql.execution.instrumentation.parameters.InstrumentationValidationParameters;...
Java
src/main/java/graphql/analysis/MaxQueryComplexityInstrumentation.java
graphql-java/graphql-java
mit
7,538
161
codeparrot/github-code
6d061f989a76b0693ab4a0612b966d776fd64b40d84844e6591c63bb0e991b44
package com.github.maxopoly.finale.combat; public class CombatConfig { private int cpsLimit; private long cpsCounterInterval; private boolean noCooldown; private double maxReach; private boolean sweepEnabled; private CombatSoundConfig combatSounds; private double horizontalKb; private double verticalKb; priv...
Java
src/main/java/com/github/maxopoly/finale/combat/CombatConfig.java
Maxopoly/Finale
mit
4,053
165
codeparrot/github-code
c0592185e5eff3a55db0c57ae8c78b9ab70835340c00d8a5b7135957b94d7c4e
#!/usr/bin/python import argparse from os import path as os_path import demo_project as demo import traceback def set_host_url_arg(): parser.add_argument('--host', required=True, help='the url for the Materials Commons server') def set_datapath_arg(): parser.add_argument('--datapath', ...
Python
backend/scripts/demo-project/build_project.py
materials-commons/materialscommons.org
mit
1,400
49
codeparrot/github-code
d484c176e3b927c2a86b157992ea92f7c39c9e2bb89d5837db975c2b971c77d5
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import getIn from '@mzvonar/getin'; import isEvent from './../utils/isEvent'; import getPath from './../utils/getPath'; import deepEqual from 'react-fast-compare'; function deleteChildren(object, children) { let del...
JavaScript
src/components/ConnectedInput.js
mzvonar/modular-redux-form
mit
6,941
236
codeparrot/github-code
977ab3a5b0571830d353055cdf65d8a668c69ebf937b7caa91445d69fef556d8
<html> <head> <style> canvas#imageCanvas { position: absolute; left: 100px; top: 100px; } canvas#coverCanvas { position: absolute; left: 500px; top: 100px; } canvas#fftCanvas { position: absolute; left: 900px; top: 100px; } </style> </head> <body> <canvas id="imageCa...
HTML
public/graphics.html
wowhack/uncovered-service
mit
4,574
155
codeparrot/github-code
2b53209a3c547c6174df38333aab28ce4792538e97311323353e4519fd90d664
package edu.stanford.graphics.shapenet.jme3.viewer import java.io.File import edu.stanford.graphics.shapenet.{Constants, UserDataConstants} import edu.stanford.graphics.shapenet.common.{CameraState, GeometricScene, CameraInfo} import edu.stanford.graphics.shapenet.jme3.JmeUtils import edu.stanford.graphics.shapenet.j...
Scala
src/main/scala/edu/stanford/graphics/shapenet/jme3/viewer/CameraPositionOptimizer.scala
ShapeNet/shapenet-viewer
mit
31,453
707
codeparrot/github-code
ec82564578f84ea1db356ce9e0ecf4ca45180a3c065524ae9041af8448c0d06e
using System; using System.Linq; using System.Text; using System.Collections.Generic; using Quasar.Communication.Packets.Outgoing.Users; using Quasar.Database.Interfaces; namespace Quasar.Communication.Packets.Incoming.Users { class CheckValidNameEvent : IPacketEvent { public void Parse(HabboHotel....
C#
Communication/Packets/Incoming/Users/CheckValidNameEvent.cs
slaapkopamy/PlusEmu-making-ready-for-linux-server
mit
2,937
85
codeparrot/github-code
58be8ded0f2d0f3e5a50e27d4a00ac901ec03d87242588ee54e864c3aeca99cc
/*** * Inferno Engine v4 2015-2017 * Written by Tomasz "Rex Dex" Jonarski * * [# filter: elements\controls\simple #] ***/ #include "build.h" #include "uiProgressBar.h" #include "ui/toolkit/include/uiStaticContent.h" namespace ui { //--- // active area element, does nothing but is class ProgressBarArea ...
C++
dev/src/ui/widgets/src/uiProgressBar.cpp
InfernoEngine/engine
mit
3,017
112
codeparrot/github-code
7934bf305f10a898ff554cb518efa815703a97ddec4cc4724514c139995b7936
<?php /** * Flash Messenger - implement session-based messages * * @author Loïc Frering <loic.frering@gmail.com> */ class LoSo_Zend_Controller_Action_Helper_FlashMessenger extends Zend_Controller_Action_Helper_FlashMessenger { /** * preDispatch() - runs before action is dispatched. * * @return Lo...
PHP
src/LoSo/Zend/Controller/Action/Helper/FlashMessenger.php
loicfrering/losolib
mit
1,578
50
codeparrot/github-code
801bf12e8cc13397e99b2f559bac102dac06d3270bc511e79459512b488f7bd5
module.exports = handler var debug = require('../debug').server var fs = require('fs') function handler (err, req, res, next) { debug('Error page because of ' + err.message) var ldp = req.app.locals.ldp // If the user specifies this function // then, they can customize the error programmatically if (ldp.e...
JavaScript
lib/handlers/error-pages.js
nicola/ldnode
mit
941
39
codeparrot/github-code
466db684b1848c2a1f5a2b792b1563d3f3e57249a3c4fcd7136c1cef643643a7
package redis.clients.jedis.util; import java.io.FilterOutputStream; import java.io.IOException; import java.io.OutputStream; /** * The class implements a buffered output stream without synchronization There are also special * operations like in-place string encoding. This stream fully ignore mark/reset and should ...
Java
src/main/java/redis/clients/jedis/util/RedisOutputStream.java
xetorthio/jedis
mit
4,015
137
codeparrot/github-code
396451e79fee5da18434fcdcecaaba7d6bb86824dbaca6625b3b37751ed82d42
/***********************************************************************\ | | | File: SGD_AudioManager.cpp | | Author: Douglas Monroe | | Last Modified: 2014-03-10 | | | | Purpose: To load and play audio files | | .wav - sound effect | | ...
C++
DestinyFalls/SGD Wrappers/SGD_AudioManager.cpp
Poofyfancypants/Destiny-Falls
mit
40,414
1,351
codeparrot/github-code
74f9d9b66e67df1f5338fbf25e4055e2c670ddf47b60ff0641345c1008358a62
<?php /** Tabbed Pane. * * Copyright (c) 2008 Oliver C Dodd * * 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 righ...
PHP
components/php/TabbedPane.php
oliverdodd/0
mit
6,362
184
codeparrot/github-code
af31df42d5358031e01bb41b800b11c8a9bbf02e4652f1d09edb8c500954e344
package cpup.mc.computers.content.network.impl.network import scala.reflect.runtime.{universe => ru} import cpup.mc.computers.CPupComputers import cpup.mc.computers.content.network.impl import cpup.mc.computers.content.network.impl.{Bus, Network, Node} class NetworkBus(val network: Network) extends Bus { override d...
Scala
src/main/scala/cpup/mc/computers/content/network/impl/network/NetworkBus.scala
CoderPuppy/cpup-computers-mc
mit
1,519
47
codeparrot/github-code
eb8715202e0a6dc545eaa7dc24c386efad8b5ebada9caf9a85ba7189d30e3915
package Eldhelm::Server::Logger; use strict; use threads; use threads::shared; use Data::Dumper; use Time::HiRes qw(usleep); use Date::Format; use Carp; use base qw(Eldhelm::Server::Child); sub create { my (%args) = @_; Eldhelm::Server::Logger->new(%args); } sub new { my ($class, %args) = @_; my $self = Eldhelm...
Perl
lib/Eldhelm/Server/Logger.pm
wastedabuser/eldhelm-platform
mit
2,645
133
codeparrot/github-code
3d58cfd750ab9b521c11c523570c33bfbee3dbf87d7424dc6d4c7f59fe77feb7
const DateTime = Jymfony.Component.DateTime.DateTime; const DateTimeZone = Jymfony.Component.DateTime.DateTimeZone; const TimeSpan = Jymfony.Component.DateTime.TimeSpanInterface; const { expect } = require('chai'); describe('[DateTime] DateTime', function () { it('should accept string on construction', () => { ...
JavaScript
src/Component/DateTime/test/DateTimeTest.js
alekitto/jymfony
mit
9,292
254
codeparrot/github-code
fc283e6fa077419c3b6086030ad462b4ec8a8b14eefa65f65298fd457986334d
<div class="card"> <div class="card-image waves-effect waves-block waves-light"> <% if (image) { %> <img class="activator" src="<%= image %>"> <% if (mode == 'mapmaker' && _.contains(objectType, 'kaart')) { %> <div class="add-image-container"> <a href="#" class="add-image icon-plus...
HTML
app/templates/result-item.html
TotalActiveMedia/erfgeoviewer
mit
1,680
47
codeparrot/github-code
56871458abcab00ff184d5c5d68a764a08c899f8b46c3922a559c69f3811d311
package com.imrenagi.service_auth.service.security; import com.imrenagi.service_auth.AuthApplication; import com.imrenagi.service_auth.domain.User; import com.imrenagi.service_auth.repository.UserRepository; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks...
Java
service-auth/src/test/java/com/imrenagi/service_auth/service/security/MysqlUserDetailsServiceTest.java
imrenagi/microservice-skeleton
mit
2,072
64
codeparrot/github-code
1fbbe176611181d014de5bd6e0e5cd3088f49c364c9f58e8d552331dafed0cbe
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package net.daw.bean; import com.google.gson.annotations.Expose; /** * * @author rafa */ public class Element implements IElement ...
Java
src/main/java/net/daw/bean/Element.java
Josecho93/ExamenCliente
mit
1,120
66
codeparrot/github-code
8a72e3031cf9a2f4048f3ce9ba02d1ad7c2520f72ffc33fc1ac67f8b693a013d
package org.vitrivr.cineast.api.rest.handlers.actions.metadata; import io.javalin.http.Context; import io.javalin.plugin.openapi.dsl.OpenApiBuilder; import io.javalin.plugin.openapi.dsl.OpenApiDocumentation; import java.util.Map; import org.vitrivr.cineast.api.messages.result.MediaObjectMetadataQueryResult; import org...
Java
cineast-api/src/main/java/org/vitrivr/cineast/api/rest/handlers/actions/metadata/FindObjectMetadataFullyQualifiedGetHandler.java
vitrivr/cineast
mit
2,769
69
codeparrot/github-code
094d878c3d185dea6a246611afbf612c218038632f80d583b16de6f034e2f73f
using System.Web.Http; using ProductService.Filters; namespace ProductService { public class Config { //#if !DEBUG // // windows içindeki docker için // //static string Service_Registery_Url = "http://192.168.99.100:5000/api/registery/save/"; // //static string Service_Url = "192.168.99.1...
C#
ProductService/Config.cs
sgulci/MicroserviceSample
mit
1,252
39
codeparrot/github-code
ed7d1f7f5b997419a92c3180dc40ab0538a012a67143de6006087b9119d8f4aa
require 'fileutils' module TwitterSms class Logger def initialize(filename,log_size=5) @log_size=log_size @raw_filename = filename @file = File.new(filename, "a") # 2x check mode write_intro end def log(message) @file.puts("#{Time.now.strftime("(%b %d - %H:%M:%S)")} #{messa...
Ruby
lib/twitter-sms/logger.rb
rkneufeld/twitter-sms
mit
648
33
codeparrot/github-code
be0b5b90ecd396a95d4e55dc57b0b346d4194c3531d55eeb1c24a190233f04fa
using System; using System.Data; using Signum.Utilities; using Signum.Engine.Maps; using System.IO; using System.Data.Common; using System.Linq.Expressions; using Signum.Entities; using Signum.Utilities.Reflection; using System.Reflection; using System.Threading.Tasks; using System.Threading; using System.D...
C#
Signum.Engine/Connection/Connector.cs
avifatal/framework
mit
8,153
212
codeparrot/github-code
adca45f99cad65c1a91bfe9fe40019c88b2dd5d294838bf3b93abf5ed7a5c6d4
<?php declare(strict_types=1); namespace Fc2blog\Model; class Validate { /** * 必須チェック * @param $value * @param bool $isNeed true/false * @return bool|string True is valid, string is some error message. */ public static function required($value, bool $isNeed) { if ($value =...
PHP
app/src/Model/Validate.php
fc2blog/blog
mit
10,731
375
codeparrot/github-code
415319b682debc71fe2aafcbf9b6f9a8fa232ac9f437f4f6c9631e58d3e828c0
module.exports = function () { var modules = []; var creeps = Game.creeps; var spawn = Game.spawns.Spawn1; var score = spawn ? spawn.room.survivalInfo.score : 0; var minions = { total: 0, build: 0, carry: 0, harvest: 0, guard: 0, medic: 0, runn...
JavaScript
game/clock.js
cameroncondry/cbc-screeps
mit
1,928
75
codeparrot/github-code
19b4b269a47d2686a12d2b38a064268a542c7b4565aab81d70ce90db353f0149
package com.indignado.logicbricks.utils.builders.joints; import com.badlogic.gdx.physics.box2d.World; /** * @author Rubentxu */ public class JointBuilder { private final World world; private DistanceJointBuilder distanceJointBuilder; private FrictionJointBuilder frictionJointBuilder; private GearJoi...
Java
gdx-logic-bricks/src/main/java/com/indignado/logicbricks/utils/builders/joints/JointBuilder.java
Rubentxu/GDX-Logic-Bricks
mit
2,754
99
codeparrot/github-code
80c63bbe0780b9c394df7d43290d018e6ba5115f30ca11b79e23a9f471620c99
/** * @class A wrapper around WebGL. * @name GL * @param {HTMLCanvasElement} element A canvas element. * @param {function} onload A callback function. * @param {function} callbacks.onerror A callback function. * @param {function} callbacks.onprogress A callback function. * @param {function} callbacks.onloadstart...
JavaScript
src/gl/gl.js
emnh/mdx-m3-viewer
mit
15,053
578
codeparrot/github-code
049ca4db73a00de0228957e0024de40414f9064bfe27eb94892f73001508e244
using System; using System.Collections.Generic; using PMKS; using PMKS.PositionSolving; using StarMathLib; namespace PMKS { internal class GearData { internal readonly double radius1; internal readonly double radius2; internal readonly int gearTeethIndex; internal ...
C#
PlanarMechanismSimulator/gearData.cs
DesignEngrLab/PMKS
mit
13,963
308
codeparrot/github-code
9b4303f67e1b7d958edeae095fb1fd9bd1c33a998f300305fffd2b59e2841b55
module Generators module Hobo module Migration class HabtmModelShim < Struct.new(:join_table, :foreign_keys, :connection) def self.from_reflection(refl) result = self.new result.join_table = refl.options[:join_table].to_s result.foreign_keys = [refl.primary_key_name.t...
Ruby
lib/generators/hobo/migration/migrator.rb
activestylus/hobofields
mit
16,330
446
codeparrot/github-code
8ee61f3018663fe742c836cfb100d021a0f3f3c64fdba952e382be6b5efb111f
#!/usr/bin/perl use strict; use warnings; use Getopt::Std; our $VERSION = "v0.1"; my $X = "\e[0m"; my $R = "\e[0;31m"; my $G = "\e[0;32m"; my $Y = "\e[0;33m"; my $B = "\e[0;34m"; my $P = "\e[0;35m"; my $IR = "\e[0;91m"; my $IG = "\e[0;92m"; my $IY = "\e[0;93m"; my $IB = "\e[0;94m"; my $IP = "\e[0;95m"; my %opt...
Perl
Kexploiter.pl
Gioyik/Kexploiter
mit
18,057
496
codeparrot/github-code
7c102f110667e75c4bd2993f5aa68219fbb5cd6b094ead8b2fe2b0b6ac2c257b
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!--suppress ALL --> <html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; fo...
HTML
src/main/resources/ticket_email_template.html
sdsu-its/rohan-search
mit
9,099
116
codeparrot/github-code
590eeeacf41152740f8b14b4f9b34b057aa069826eebce388e5676bf2305509f
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Rank extends MX_Controller { public function __construct() { parent::__construct(); $this->load->config('rank'); $this->configs_rank = config_item('rank'); $this->players = $this->load->model('account/player_model'); $this->lo...
PHP
application/modules/tfs0.4/players/controllers/rank.php
WebATS/WebAAC
mit
4,297
146
codeparrot/github-code
d623062b30439947fe2cf9585917846f50491a74eaa31ec71a9958ee516919b0
<?php namespace Helpers; /** * Assets static helper * @date 27th November, 2014 * @date May 18 2015 */ class Assets { /** * @var array Asset templates */ protected static $templates = array ( 'js' => '<script src="%s" type="text/javascript"></script>', 'css' => '<link href="...
PHP
app/Helpers/Assets.php
NandoKstroNet/babita
mit
1,175
60
codeparrot/github-code
98d950a35ba547a64c144c6fd72ede165af44f4d025f5082c10da1276d360695
$(function(){ BrowserDetect.init(); $('.minifyme').on("navminified", function() { // $('td.expand,th.expand').toggle(); }); // Activate all popovers (if NOT mobile) if ( !BrowserDetect.isMobile() ) { $('[data-toggle="popover"]').popover(); } }); $.fn.pressEnter = function(fn) { ...
JavaScript
app/assets/javascripts/main.js
empath-io/empath
mit
2,251
82
codeparrot/github-code
9f759bdacd8343267076210f95498f463ecd20bee92fb2cbc4516ed47b85176a
import { PickScaleConfigWithoutType, ScaleConfigWithoutType } from './types/ScaleConfig'; import { DefaultThresholdInput, D3Scale, PickD3Scale } from './types/Scale'; import { StringLike, DefaultOutput } from './types/Base'; import scaleOperator, { ALL_OPERATORS } from './operators/scaleOperator'; const applyAllOperat...
TypeScript
packages/visx-scale/src/updateScale.ts
hshoff/vx
mit
5,310
153
codeparrot/github-code
a02625f45f9303edd5c5493b0d7473abf428530af7fc3fd5be98e406bd315156
<?php session_start(); //echo "filename:". $_REQUEST['fn']; ini_set('display_errors', 'Off'); ini_set('display_startup_errors', 'Off'); error_reporting(0); include("../config.php"); include("../class/mysql.class.php"); if ($_REQUEST['r']) $resource = $_REQUEST['r']; $db = new MySQL(true); if ($db->Error())...
PHP
assets/mysite/editor.php
yellowelise/crypt2share
mit
4,709
115
codeparrot/github-code
c2694f611b4551fd516fb94802d84c8037a7c8f83cb53f744fc74d1195496c0b
{% extends "volunteers/base.html" %} {% load staticfiles%} {% block cssfiles %} <link rel="stylesheet" type="text/css" href="{% static 'volunteers/css/updateProfile.css' %}" /> <link rel="stylesheet" type="text/css" href="{% static 'volunteers/css/staffPages.css' %}" /> {% endblock cssfiles %} {% block tabs ...
HTML
bnbvolunteer/volunteers/templates/volunteers/profile.html
codeforgood2015/bnb
mit
3,174
82
codeparrot/github-code
85ccfca8f5b5fdc7c942f43498c851fc304ddec2cea195d8ec53ca3a8c8148ff
from pwn.internal.shellcode_helper import * @shellcode_reqs(arch=['i386', 'amd64'], os=['linux', 'freebsd']) def fork(parent, child = None, os = None, arch = None): """Fork this shit.""" if arch == 'i386': if os in ['linux', 'freebsd']: return _fork_i386(parent, child) elif arch == 'am...
Python
pwn/shellcode/misc/fork.py
Haabb/pwnfork
mit
910
39
codeparrot/github-code
3a0cb557c532193669116c3e0696332db2939f29cf667bc9a2392602ad8f55e4
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>W30497_text</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;"> ...
HTML
ocr_extracted/W30497_text/page38.html
datamade/elpc_bakken
mit
2,281
49
codeparrot/github-code
58a430005dba1abe0847622805343210964318f5ed38f0bf3e9e6230382b0372
/* Author: Gerard Lamusse Created: 08/2015 Version: 1.0 URL: https://github.com/u12206050/jsonZipper */ var jsonZipper = (function(){ var jz = function(_jsonObj, _options) { var Z = this; var MAP = []; var opts = _options && typeof(_options) !== "boolean" ? _options : {}; /* Public Func...
JavaScript
javascript/jsonZipper.js
mboulette/incendie
mit
8,405
303
codeparrot/github-code
fa6a8fce1f7934a92b7a18c1302d50b2ed68e5ce28f3cc01752da2f31bb7c90f
package com.github.daneko.simpleitemanimator; import android.support.v4.view.ViewCompat; import android.support.v4.view.ViewPropertyAnimatorCompat; import android.view.View; import fj.F; import fj.F2; import fj.F3; import fj.Unit; import fj.data.Option; /** * @see {@link android.support.v7.widget.DefaultItemAnimato...
Java
library/src/main/java/com/github/daneko/simpleitemanimator/DefaultAnimations.java
daneko/SimpleItemAnimator
mit
3,855
98
codeparrot/github-code
96832b15781e2faa9acee1dfaf653a5f6cd6d44169e9d30f44b8b6b4cdc100d5
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>MediaQueryListEventInit | picturepark-sdk-v1-fetch API</title> <meta name="description" content="Documentation for picturepark-sdk-v1-fetch API"> <meta name="viewport" content="wi...
HTML
docs/picturepark-sdk-v1-fetch/api/interfaces/mediaquerylisteventinit.html
Picturepark/Picturepark.SDK.TypeScript
mit
9,754
217
codeparrot/github-code
3cd39e52d2a79b924b60de3795e1aeb0ca8308ce25e58f49128bb4f7174fae6c
<?php // Newfoundland Genetics Project // https://github.com/opyum/nlgp // Admin Functions // "admin.php" // Get config and start session require 'inc/config.php'; session_start(); $uid = $_SESSION['UserID']; if (isset($_SESSION['UserLoggedIn']) && ($_SESSION['UserLevel'] == 2)) { // Print Token if (isset($_...
PHP
public_html/admin.php
opyum/nlgp
mit
23,962
505
codeparrot/github-code
8f2f35485da1ca49b860731d75aa8cb22dc755358a017b684a8db33fcc6f36ad
// (The MIT License) // // Copyright Michał Czapracki, budleigh.salterton@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 ...
JavaScript
examples/advanced/test.js
MichalCz/node-flat-config
mit
2,204
67
codeparrot/github-code
76f2a7246762c5abcc9e0457cb5362df9adc1dc83ffe887748b5c4ad4e3cc26c
//===------ polly/SCEVAffinator.h - Create isl expressions from SCEVs -----===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
C
include/llvm/tools/polly/include/polly/Support/SCEVAffinator.h
ensemblr/llvm-project-boilerplate
mit
4,779
140
codeparrot/github-code
f50f5275e1463bf4d841ac868aba3f076f52b026c5d323733e98ee35f139a681
#include<iostream> template<classy T> class CSL // CommaSeparatedList { private: int size; public: CSL(T *d, int s); void showList(); }; CSL<T>::CSL(T *d, int s): data(s),size(d) template<typename T> void CSL<T>::showList() { cout<<"Comma separated list:"<<endl; for(int x = 0; x < s ++x) { ...
C++
Tutorials/Week 10/Support/CSL.cpp
JamesMarino/CSCI204
mit
2,261
97
codeparrot/github-code
1810a6568933d932123f6921494dbe1f9d54d06ff82f06dbbc30054bf7b3f164
package clusterconf import ( "encoding/json" "fmt" "math/rand" "net/url" "path" "path/filepath" "strconv" "strings" "sync" "time" "github.com/cerana/cerana/acomm" "github.com/cerana/cerana/pkg/errors" ) const bundlesPrefix string = "bundles" // BundleDatasetType is the type of dataset to be used in a bu...
GO
providers/clusterconf/bundle.go
cerana/cerana
mit
11,671
470
codeparrot/github-code
9ca3b379cd26160689285a3e2de042e2e9cef3f80e6e55bc883f29bc59ff4c6d
<HTML><HEAD> <TITLE>Review for Crossing Guard, The (1995)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0112744">Crossing Guard, The (1995)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy...
HTML
data science/machine_learning_for_the_web/chapter_4/movie/4680.html
xianjunzhengbackup/code
mit
5,126
78
codeparrot/github-code
2a7eb319250b6a050de64d3d74967b0d3a1c52aeb6ac7e7ded29351372d3465e
# Copyright(C) 2012 Ruby-GNOME2 Project. # # This program is licenced under the same license of Ruby-GNOME2. require "open-uri" require "pathname" class GNOME2Win32BinaryBuildTask include Rake::DSL def initialize(package) @package = package define end private def define namespace :win32 do ...
Ruby
ruby-glib2/pkg/ruby-glib2/usr/lib/ruby/gems/2.1.0/gems/glib2-2.1.0/lib/gnome2/rake/win32-binary-build-task.rb
mat-mo/arch-pkgs
mit
7,429
249
codeparrot/github-code
b3b7a17c6eaa9fde31473ae63053ee6bf394a198b2711bf3b5d1b48799eb5301
/* global expect */ describe('outputFormat', () => { describe('when given a format', () => { it('decides the output that will be used for serializing errors', () => { expect( function () { const clonedExpect = expect.clone().outputFormat('html'); clonedExpect(42, 'to equal', 24);...
JavaScript
test/api/outputFormat.spec.js
unexpectedjs/unexpected
mit
1,096
33
codeparrot/github-code
648a8e0dd3588cbe872ea798f68d3dabbb2ee09f8f79880ac683acf58f01bfbd
require 'json' require 'net/http' require 'open-uri' require 'uri' require 'ostruct' module DismalTony # :nodoc: # Umbrella module for all mixins for Directives module DirectiveHelpers # Basic template , adds the inheritence methods through metaprogramming so # that n-children inherit class methods and ins...
Ruby
lib/dismaltony/directive_helpers.rb
jtp184/DismalTony
mit
12,093
372
codeparrot/github-code
46def3b89ce62d4ad3a81ee01f129b44792a1cfb53e2ec05cecb98a5f9bee5e2
//------------------------------------------------------------------------------ // <copyright project="BEmu_cpp" file="headers/ReferenceDataRequest/ReferenceElementErrorInfo.h" company="Jordan Robinson"> // Copyright (c) 2013 Jordan Robinson. All rights reserved. // // The use of this software is governed by ...
C
exceldna/Libs/Bemu/BEmu_cpp/headers/ReferenceDataRequest/ReferenceElementErrorInfo.h
red2901/sandbox
mit
1,659
52
codeparrot/github-code
18becc2777b79eed774ac7f8053ad4fa9b46fa32baaf928309bec3f5149da7e6
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Login Page - Photon Admin Panel Theme</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <link rel="shortcut icon" href="ht...
HTML
lib/assets/css/css_compiled/@{photonImagePath}plugins/elrte/js/bootstrap/js/plugins/js/js/plugins/raphael.2.1.0.min.js.html
user-tony/photon-rails
mit
16,006
197
codeparrot/github-code
25914c0560c70e4ad08a3e0c7915a42a5e09b69218f09b7fdf4f424976f3df7b
// ********************************************************************** // // <copyright> // // BBN Technologies // 10 Moulton Street // Cambridge, MA 02138 // (617) 873-8000 // // Copyright (C) BBNT Solutions LLC. All rights reserved. // // </copyright> // ***************************************************...
Java
src/main/java/com/bbn/openmap/image/ImageServerUtils.java
d2fn/passage
mit
5,229
149
codeparrot/github-code
3677224e685ddcdc2aebe6e70774cfaa497060fc5600acadb7aa15a0947dde4e
/* * Copyright (C) 2013-2018 The Project Lombok Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, ...
Java
src/utils/lombok/javac/JavacTreeMaker.java
Lekanich/lombok
mit
34,532
878
codeparrot/github-code
1a22308f1bcb3171e4b2168350b283170dcb5936df9b734291f8e0706eac0e47
# -*- coding: utf-8 -*- """ Sahana Eden Common Alerting Protocol (CAP) Model @copyright: 2009-2015 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to dea...
Python
modules/s3db/cap.py
michaelhowden/eden
mit
86,498
1,883
codeparrot/github-code
e8d3c2640b57d2fe82446457afc4d4084e1daa04e45f230fd7e76d217e597b79
var path = require('path'); var fs = require('fs'); var Writer = require('broccoli-writer'); var Handlebars = require('handlebars'); var walkSync = require('walk-sync'); var RSVP = require('rsvp'); var helpers = require('broccoli-kitchen-sink-helpers'); var mkdirp = require('mkdirp'); v...
JavaScript
index.js
michaellopez/broccoli-handlebars
mit
2,973
86
codeparrot/github-code
7d2b2d9534c781175db909045da1242d27f4bf34a488bd652dba6cf335f6d211
from django.shortcuts import render, render_to_response, get_object_or_404 from django.template import RequestContext # Create your views here. from django.views.generic import ListView, DetailView from .models import Category, Product from cart.forms import CartAddProductForm def category_list(request): return...
Python
src/shop/views.py
sunlaiqi/fundiy
mit
1,636
58
codeparrot/github-code