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
64058f9adfab4445ad1dffe8ab210225bf9436f49ab92ef8ab4ca6c945879433
import React, {PropTypes} from 'react'; import {connect} from 'react-redux'; //import components import FooterContent from './FooterContent'; //getWindowHeight import {getWindowHeight} from '../../utilities/getElementHeight'; //animation breakpoints values import * as breakpoints from '../../utilities/animationBreak...
JavaScript
src/components/common/Footer.js
blurbyte/blurbyte-web
mit
981
43
codeparrot/github-code
1704bf2c3aafa2644406552716d334de59e8091903273d4ffb2d3bcc227d5e6b
#ifndef SRC_UTIL_H_ #define SRC_UTIL_H_ #include "v8.h" #include <assert.h> #include <signal.h> #include <stddef.h> #include <stdlib.h> namespace node { #define FIXED_ONE_BYTE_STRING(isolate, string) \ (node::OneByteString((isolate), (string), sizeof(string) - 1)) #d...
C
.node-gyp/.node-gyp/0.37.8/src/util.h
adammenges/atomconfig
mit
6,712
238
codeparrot/github-code
5260e7a31157c9ee20abb72c60d1af448a625a9929f062c751b56f194f2c579a
package com.silver.dan.castdemo; import android.content.Context; import android.databinding.BaseObservable; import android.databinding.Bindable; import android.databinding.Observable; import android.support.v4.content.ContextCompat; import com.google.firebase.database.DatabaseReference; import com.google.firebase.dat...
Java
app/src/main/java/com/silver/dan/castdemo/AppSettingsBindings.java
dan-silver/cast-dashboard-android-app
mit
8,804
277
codeparrot/github-code
1efeaafe56e4988f933f58d74006e3a3c529aa6cd7485cefd4f91bfaef2df35c
#client.rb # A simple container class to store the basic client information # @author = Shad Scarboro #--------------------------------------------------------------------------- # Existing Ruby Gems require "json" #--------------------------------------------------------------------------- class Client # Basic ini...
Ruby
Client/client.rb
ShadRS-On-GitHub/GLOBO_Queueing_Project
mit
1,245
45
codeparrot/github-code
0fde062a96cc2c6ff543d299ee661dc003da34c42c5c952127a1390e7d7b4700
package simcity.Drew_restaurant.gui; import simcity.Drew_restaurant.Drew_CustomerRole; import simcity.Drew_restaurant.Drew_HostRole; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.List; import java.util.ArrayList; /** * Subpanel of restaurantPanel. * This holds the scroll panes...
Java
src/simcity/Drew_restaurant/gui/ListPanel.java
dhakiki/SimCity201
mit
3,525
109
codeparrot/github-code
999a6a5b2a43b50c0b8196d79117bce3d45ea7a99d50c6c1dbc1dd47890746c8
package com.witchcraft.common.item.block; import net.minecraft.block.Block; import net.minecraft.item.EnumDyeColor; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; /** * This class was created by Arekkuusu on 11/03/2017. * It's distributed as part of Witchcraft under * the MIT license. *...
Java
src/main/java/com/witchcraft/common/item/block/ItemBlockColor.java
Um-Mitternacht/Witchworks
mit
745
32
codeparrot/github-code
16a20495598a800dc539534af67003bd53c4c746ba41508ec813592a575b5428
<?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\Component\Core\Distributor; use Webmozart\Assert\Assert; /...
PHP
src/Sylius/Component/Core/Distributor/IntegerDistributor.php
Pitoune/Sylius
mit
1,126
49
codeparrot/github-code
d0f934510afb0c79d27232db185760762525d027440c232e9df070821ae45620
{-# OPTIONS_GHC -fno-warn-orphans #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE Typ...
Haskell
test/Database/Esqueleto/TextSearchSpec.hs
albertov/esqueleto-textsearch
mit
11,833
330
codeparrot/github-code
437287be7226c50e79d3f93929a54a13a1b97934cd9616d06ec4d224fdb2b461
/** ****************************************************************************** * @file stm32l4xx_hal_tim_ex.c * @author MCD Application Team * @brief TIM HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Timer Extended per...
C
demo/stm32l475_non_os_qspi/Drivers/STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_tim_ex.c
armink/SFUD
mit
78,750
2,243
codeparrot/github-code
4e635a7432bb0b6ebb40a7f560cfd46da4ccd6b7c5035b1043f19161190c2209
require 'singleton' require 'statsd' module Webhook # Fake Statsd if we do not have metrics enabled class MockStatsd def gauge(_name, _value); end def count(_name, _count = 1); end end # Wrapper for Statsd metrics class Metrics include Singleton attr_reader :statsd def initialize ...
Ruby
lib/webhook/metrics.rb
wanelo/webhook
mit
714
41
codeparrot/github-code
920bc429b2cf02f9fe1a5a726dea999d79355b1e45df412d3d7c760c62a4ce3b
<?php /** * TransactionCategory repository. * * @copyright (c) 2016 Tomasz Chojna * @link http://epi.chojna.info.pl */ namespace CashflowBundle\Repository; use Doctrine\ORM\EntityRepository; /** * Class TransactionCategory. * @package CashflowBundle\Repository * @author Radosław Stolarski */ class Transacti...
PHP
src/CashflowBundle/Repository/TransactionCategory.php
stolarz92/cashflow
mit
1,159
47
codeparrot/github-code
3dd2f09d16727f56d1a9fcc9356e794bfcbf40d6c58226e2f381abd14f778f1a
using System; using System.Web.Mvc; namespace AlexNitter.Todo.WebFramework.PipelineModules { /// <summary> /// Modul, das in die MVC-Pipeline eingehängt wird. Dieses Modul wird bei jedem HTTP-Request gegen die Anwendung aufgerufen, noch vor den MVC-Controllern. /// Dieses Modul prüft die SessionId des Coo...
C#
src/AlexNitter.Todo.Web.Framework/PipelineModules/MvcAuthenticationModule.cs
AlexNitter/Todo
mit
1,538
39
codeparrot/github-code
b78644976192e26493b8d623a2f5db29621801d1682e43cacdce2d9fc821c683
package inpacker.core; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.concurrent.BlockingDeque; import java.util.function.Consumer; public class DirPacker implements Packer { @Override public void pack(BlockingDeque<PackItem> itemsDeque, ...
Java
core/src/main/java/inpacker/core/DirPacker.java
dreyman/inpacker
mit
1,741
54
codeparrot/github-code
0f8d0c36127a583a819579c56f9005e962ba0b04d34437b8b3f41f1f86b6e4f9
#!/usr/bin/env python3 import importlib import inspect import logging import sys import synapseclient try: from synapseclient.core.exceptions import SynapseHTTPError except ModuleNotFoundError: from synapseclient.exceptions import SynapseHTTPError from . import config from . import example_filetype_format fro...
Python
genie/validate.py
thomasyu888/Genie
mit
10,061
294
codeparrot/github-code
9bb9fd8f618c7914daba5c09843d6e44a091839261ccbefb69c2a9c2d639541b
/****************************************************************************** * Compilation: javac PrimMST.java * Execution: java PrimMST filename.txt * Dependencies: EdgeWeightedGraph.java Edge.java Queue.java * IndexMinPQ.java UF.java In.java StdOut.java * Data files: http://algs4.cs.p...
Java
src/main/java/com/afcrowther/algorithms/library/PrimMST.java
afcrowther/algorithms
mit
8,464
248
codeparrot/github-code
50ef109acbd8eb2ec28d2f05d22ed3918caeded1568e1d025e391210b20db10f
'use strict'; /*! * import(s) */ var expect = require('expect.js'); var path = require('path'); var hogan = require('../'); var FIXTURES_DIR = __dirname + '/fixtures'; /*! * test(s) */ describe('component-render-hogan', function () { var program = {}; before(function (done) { program.local = path.joi...
JavaScript
test/render.js
Frapwings/component-render-hogan
mit
630
34
codeparrot/github-code
8805a85250374b9c53d4ac4c58c57977a3eae8b59011d9ce861053817f580b55
#!/usr/bin/env bash # # Create the information pages # # Use: # info.sh input output # Arguments: # input The path to the folder with the source data (server/static/info/) # output The root output path. The script will put the final output in that folder. set -euo pipefail program=$(basename "$0") function ...
Shell
server/static/info.sh
ZeusWPI/hydra
mit
1,566
57
codeparrot/github-code
9180ec976dd74a533e33d3c4533e3a84471a576a0044eb45ad5a1ff1dda38bd2
using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; using System.Linq; using System.Windows.Controls; using System.Windows.Ink; using System.Windows.Input; using Xamarin.CommunityToolkit.Sample.WPF; using Xamarin.CommunityToolkit.UI.Views; using Xamarin.Forms; using...
C#
samples/XCT.Sample.WPF/DrawingViewRenderer.wpf.cs
FormsCommunityToolkit/FormsCommunityToolkit
mit
4,272
151
codeparrot/github-code
ec637edac3ef3e1ad1b1a7330df2218cd2223f0c91ceb670c3aa410c2757a17e
import { assoc, uniq, flatten, map, compose, path, slice, merge, filter, contains, isNil, reduce, values, assocPath, length, times, } from 'ramda'; import { createSelector } from 'reselect'; import uuid from 'uuid'; import { FETCH_USERS_SUCCEEDED, UPDATE_FILTERS, SET_CURRENT_USER, DEFAULTS, CHANGE_USER_STATUS, ...
JavaScript
src/app/reducers/users.js
lpan/htn-challenge
mit
3,044
125
codeparrot/github-code
9179d439726f5478882283433f7161251c0a32a2ab69ac75d08c025c25832837
#include "photon_core.h" #include "photon_texture.h" #include <physfs.h> #include <libxml/parser.h> namespace photon{ namespace opengl{ GLuint LoadAndCompileShader(const char *filename, GLenum shader_type){ GLuint shader = glCreateShader(shader_type); PHYSFS_File *file; long length; char *source; ...
C++
src/opengl/shader.cpp
chipgw/photon-legacy
mit
7,674
228
codeparrot/github-code
def4744dd30082b27b993cd0a083409e24b12e84b738dcba40aaa1c3c611722e
'use strict'; var chai = require('chai'), spies = require('chai-spies'), expect = chai.expect, affinity = require('../lib/index.js'), types = affinity.types, Events = require('../lib/events.js'), testing = require('../lib/testing.js'); chai.use(spies); let Fill = testing.fill; /* TODO: - Create...
JavaScript
test/values.js
SpikedPunchVictim/gaia
mit
11,750
365
codeparrot/github-code
f0609472e871d4c642cddae22a0954f4d70456664108fbb5277a8cf4c80afa5a
// MIT License // // Copyright( c ) 2017 Packt // // 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, mer...
C
Library/Common Files/Tools.h
PacktPublishing/Vulkan-Cookbook
mit
2,966
92
codeparrot/github-code
055d8fb1dd0621a89ce683b081bc18f28f0517c0b0df10663d177ed6b5cd927f
<?php /* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS B...
PHP
test/Cli/WorkerCommandTest.php
zf-fr/zfr-eb-worker
mit
3,013
83
codeparrot/github-code
99045b95acd62b59e339b87dbbedd144f1a4912a254865e60aefe927a463af06
using System.Collections.Generic; using System.Linq; using ConsoleToolkit.ApplicationStyles.Internals; using ConsoleToolkit.Exceptions; namespace ConsoleToolkit.CommandLineInterpretation { /// <summary> /// This class interprets a set of command line arguments. /// </summary> public sealed c...
C#
ConsoleToolkit/CommandLineInterpretation/CommandLineInterpreter.cs
jamie-davis/ConsoleTools
mit
5,090
140
codeparrot/github-code
de428a895c1f06fe970b3f02cdf0da00f2a1becd186174b23ec145716743774a
module ConfigExport PROJECT_ATTRIBUTES = %w[guid name deprecated_feed_url auth_username auth_password enabled type polling_interval ...
Ruby
lib/config_export.rb
CodeforHawaii/projectmonitor
mit
1,914
64
codeparrot/github-code
ca8cac63f699a4f7785aaf2b2f6fa7a77df529bea62dece15034328d6bd047ea
//! # Client //! //! Main module to handle HTTP request signing //! and Rest calls //! extern crate serde; extern crate serde_json; use config::Credential; use std::io::Read; #[cfg(not(feature = "curl"))] use reqwest; #[cfg(not(feature = "curl"))] use reqwest::Response; #[cfg(not(feature = "curl"))] use hyper::heade...
Rust
src/client.rs
Olinkl/ovh-rs
mit
16,195
449
codeparrot/github-code
64a8c36c2e55aa89fde0b57b7a7d7af7ab1a6bedde90761de13f73ee4522e250
module Verifier class Characters def initialize(characters) @characters = characters @buffer = [] end def next if !@buffer.empty? return @buffer.pop end @characters.next rescue nil end def eat_whitespace c = self.next while c && c.strip.empty...
Ruby
lib/parser/token.rb
binary-koan/idk-verifier
mit
4,120
227
codeparrot/github-code
7b0d5b810d5abcf18213c9cd62c56b3a9af3de41b31c4820bfd902780bdf96b3
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>bertrand: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.7.1+2/bertrand/8.9.0.html
coq-bench/coq-bench.github.io
mit
7,146
166
codeparrot/github-code
2a2b4f2ec0a864a85177191080c317ca03d39fa68d3ff1c3ddb220db88710400
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>zorns-lemma: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
HTML
clean/Linux-x86_64-4.12.0-2.0.8/released/8.13.2/zorns-lemma/8.7.0.html
coq-bench/coq-bench.github.io
mit
7,205
174
codeparrot/github-code
b668ec064c59bef4dca2cb46d2383b3cce6df91c31022c06ca763323b8137b53
<?php include "config.php"; $data = ""; $sql = "SELECT nopendaftaran,nama,tmplahir,tgllahir,asalsekolah,hportu,ts,is_konfirmasi,registrasi,info2,info1 FROM calonsiswa WHERE aktif=1"; $query = mysqli_query($koneksi, $sql); $no = 1; while($row = mysqli_fetch_assoc($query)) { $date_ts = date_create($row['ts']); $t...
PHP
@dmiral/pages/calonsantri.php
asepsholihin/psmb2016
mit
4,567
145
codeparrot/github-code
861812246ca6e45d37f84dbc65f7f5b2db882bf6fd5371c9aa06e10aacc79f60
# -*- coding: utf-8 -*- import os import glob import sys import re # Display debug information, print to statistics file verbose = 0 obstruents = {'b':'B', 'd':'D', 'g':'G'} nasals = ['m', 'n', 'N'] # Vocales vowels = ['a', 'e', 'i', 'o', 'u'] # Semivocales semivowels = ['%', '#', '@', '$', '&', '!', '*', '+', '-', ...
Python
Spanish/scripts/dict_convert.py
lawphill/PhillipsPearl_Corpora
mit
8,342
231
codeparrot/github-code
97591defb2346bd22ad75dfc772ea1ceebab7dd505e5957502fb5e8143e29403
package uk.gov.dvsa.motr.web.component.subscription.service; import org.junit.Before; import org.junit.Test; import uk.gov.dvsa.motr.notifications.service.NotifyService; import uk.gov.dvsa.motr.remote.vehicledetails.MotIdentification; import uk.gov.dvsa.motr.remote.vehicledetails.VehicleDetails; import uk.gov.dvsa.mo...
Java
webapp/src/test/java/uk/gov/dvsa/motr/web/component/subscription/service/SubscriptionConfirmationServiceTest.java
dvsa/motr-webapp
mit
6,263
144
codeparrot/github-code
15a6531133292e63e02285ac8f8fc2ed102978a0d809c603f38fc655f10dfeeb
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO.Ports; using System.ComponentModel; namespace SerialPortListener.Serial { /// <summary> /// Class containing properties related to a serial port /// </summary> public class SerialSettings : INotifyPr...
C#
SerialPortListener/SerialSettings.cs
davidhao2046/ShotokuTrackingPanel
mit
6,962
213
codeparrot/github-code
899cc605ed07a9354dbd2a4378062fb3987e5a96bcc766413e427b7ba09cd7a4
/** * Simple example of setting up your own MHub server instance * from scratch, to integrate it in your own application backend. * * The example sets up a websocket server for external users to * connect to, but also connects to the hub using an internal * connection (like you'd e.g. use for your API backend). ...
TypeScript
src/example/custom-server.ts
poelstra/mhub
mit
4,797
163
codeparrot/github-code
20e264eadd3069dfbcb24446aecb0bad8c5272468ac19f4660022c45d890213f
package com.devopsbuddy.test.integration; import com.devopsbuddy.backend.persistence.domain.backend.PasswordResetToken; import com.devopsbuddy.backend.persistence.domain.backend.User; import com.devopsbuddy.backend.persistence.repositories.PasswordResetTokenRepository; import org.junit.Assert; import org.junit.Before;...
Java
src/test/java/com/devopsbuddy/test/integration/PasswordResetTokenIntegrationTest.java
dfcoffin/devopsbuddy
mit
5,579
148
codeparrot/github-code
ca58369ade2617008fab59d283c12746f992d431ef4184d998a396af6bcc165b
/* * Created on Aug 21, 2005 */ package org.seqcode.gseutils; /** * @author tdanford */ public class NamedValue<Y> { private Y data; private String name; public NamedValue(String n, Y d) { name = n; data = d; } public NamedValue(Y d) { name = d.toString(); ...
Java
src/org/seqcode/gseutils/NamedValue.java
seqcode/seqcode-core
mit
891
42
codeparrot/github-code
1fe0896e1d93a8cd5a6bb73bb5428c1b7aa8239d10240b8e526066897f2c1365
module Ods class Sheet attr_reader :content def initialize(content) @content = content end def name content.attribute('name').to_s end # access by (0,0) = top left def [](row_index, col_index) row = data[row_index] row && row[col_index] end def rows ...
Ruby
lib/ods/sheet.rb
mike-park/ods
mit
948
49
codeparrot/github-code
37579b94ef98212d124a27ea28592ad2517765a6cc24adaed41300314c444aea
function focus_list(){ //获得数据 if(LogInUID != 0) Cluster.get_probably_acquaintance(LogInUID, function(set){ // var str = ""; // for(var i = 0; i < set.length; i ++){ // str += set[i]; // str += " "; // } var ptr = 0; //关注列表一次显示3个。ptr是set的指针。 var list_num = 0; //显示在上边的关注列表的...
JavaScript
src/main/webapp/twitter_proj/my_js/focus_list.js
wind2412/simple_twitter
mit
5,225
160
codeparrot/github-code
0622e0a1b0247f1ae4a8a6d38e68f313a39fbc8e512b2c19b838b69710d46511
/** * Model v0.1 * 修改于Backbone 1.1.2,未投入使用。 */ define(['underscore', 'events', 'extend'], function(_, Events, extend) { var array = []; var push = array.push; var slice = array.slice; var splice = array.splice; // Backbone **Models** are the basic data object in the framework -- // frequently represen...
JavaScript
app/framework/js/core/model/model.js
rollo-zhou/riipa
mit
12,875
374
codeparrot/github-code
87c4565f45099c02c58b6d0bbb762b701856adec5cf32b1fd0551b524d96765b
angular.module('twilioApp') .factory('taskFactory',['$resource', function ($resource) { return $resource('/api/tasks', {}, { save: { method: 'POST'}, update: { method: 'PUT' }, remove: { method: 'DELETE'}, query: { method: 'GET', isArray:...
JavaScript
public/app/services.js
lnolazco/twilio
mit
1,306
40
codeparrot/github-code
8ead9652de86f8464d3df58039769034a7ce83a9e73848871cfa2179e633fe8f
namespace ml { // // TODO: really, the TriMeshf version should be the one that calls the TriMesh* version!!! // TriMeshf meshutil::createUnifiedMesh(const std::vector< std::pair<const TriMeshf*, mat4f> >& meshes) { std::vector< std::pair<TriMeshf, mat4f> > meshList; for (const auto &m...
C++
mLib/src/core-mesh/meshUtil.cpp
techmatt/d3d11-interceptor
mit
4,258
100
codeparrot/github-code
2ee1be4e5be6c7f9a959af1c4925c95c2ac3c2a8fa98641743b7ec0ca810a43a
var assert = require("assert"), pc = require("../..") template = pc.template, stringifyView = require("../utils/stringifyView"); /* var tpl = paperclip.template("abba") */ describe(__filename + "#", function () { it("can show conditional content", function () { var v = pc.template( ...
JavaScript
test/components/switch-test.js
coderangerdan/paperclip.js
mit
3,952
174
codeparrot/github-code
09675ecc5ddb6c368ecfe8f843ec2b142dbe6fefe57162ea354524d9f576c0ff
#### ZarcFit.py #### for interactive model fitting of spectral electrical impedance observations. # Seogi Kang and Randy Enkin, developed starting November 2015. # Based on ZarcFit.vi, written in LabView by Randy Enkin, Geological Survey of Canada # Using Python version 3.4 and QT version 4.8 # # requires files Zar...
Python
codes/ZarcFit2016-01-26.py
sgkang/PhysPropIP
mit
44,212
898
codeparrot/github-code
ddca2dc024ba98969a7a4e1e5aafe6ecbdc5267eba2345eef94d15efa4780b53
/* * Copyright (C) 2000 Lars Knoll (knoll@kde.org) * Copyright (C) 2013 Apple Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the...
C
WebLayoutCoreOnly/Source/WebCore/RenderLineBreak.h
gubaojian/trylearn
mit
4,240
100
codeparrot/github-code
25543c8934aa59bfd854a60f10b491692829c6edf390c14ba6c93a8a6769d0d5
import { NgModule } from '@angular/core'; import { APP_PROVIDERS } from './app.providers'; import { AppComponent } from './app.component'; import { appRoutingProviders, routing } from './app.routing'; import { NavbarModule } from './shared'; import { HomeModule } from './home/home.module'; import { ProfessionalsModule...
TypeScript
src/app/app.module.ts
vibesharing/MJG-Angular2
mit
908
31
codeparrot/github-code
f06029b86cf73ff91591a679a835c1e2b776b200b3d701f3cf4dab1b596793bd
<?php /* @WebProfiler/Profiler/toolbar_js.html.twig */ class __TwigTemplate_1fb55b47e87ade18861b96707bea8521055b89b8f07b4d16e628c53136e27c9f extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = a...
PHP
app/cache/dev/twig/f0/f0922b92a1dee5caf9d85c2554e638a74f2452f0039679a3e04e6da754da1a08.php
benkhellat/serveurdevoeux
mit
11,004
235
codeparrot/github-code
830b89246b0b46cdf5e8ac916ba1c1b924bfef1339c6a545c67b37ab09024b29
module PostHaste class MostViewed attr_reader :platform, :datetime, :title, :byline, :url, :rank, :type def initialize(params={}) params.each_pair do |k,v| instance_variable_set("@#{k}", v) end end def self.all(platform='web', limit=25) url = "https://js.washingtonpost.com/...
Ruby
lib/post_haste/most_viewed.rb
dwillis/post_haste
mit
1,272
40
codeparrot/github-code
d064e9ae78699da33eef25cdab732f3866cfab959b040a4f084d46634f27a9e8
import {pt} from "src/client/graphics.js" export default class DragBehavior { static on(target) { return new DragBehavior(target) } constructor(target) { this.target = target this.target.draggable = true lively.addEventListener("DragBehavior", this.target, "dragstart", (evt) => this....
JavaScript
src/client/morphic/dragbehavior.js
LivelyKernel/lively4-core
mit
1,650
53
codeparrot/github-code
98d2aedf57f33eda118fd45de4c74dce9d8fb56d6bf4bd796b8c9ea9e21f2213
using Chloe.DbExpressions; using Chloe.RDBMS; using System.Reflection; namespace Chloe.SqlServer.Odbc { partial class SqlGenerator : SqlGeneratorBase { static Dictionary<MethodInfo, Action<DbBinaryExpression, SqlGeneratorBase>> InitBinaryWithMethodHandlers() { var binaryWithMethodH...
C#
src/Chloe.SqlServer.Odbc/SqlGenerator_BinaryWithMethodHandlers.cs
shuxinqin/Chloe
mit
3,078
82
codeparrot/github-code
b17e68665e92789005aff8ad0934b7a2ba9ef8c9ff0baac8755873c7a4122c32
/*! * This file is part of Weaver.js snapshot-2aecd76751-1429735360408. * * Weaver.js 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 License, or (at your option) any * la...
JavaScript
documentation/api/weaver.js-snapshot-2aecd76751-1429735360408/weaver.js
maxkfranz/weaver
mit
47,123
1,622
codeparrot/github-code
bed46310c39b4c2c1e33e0adc4b200d9c36ac3b6b020e3ff88e5dc5bff92d7d5
import ClassUtils from "./class"; export default { find(format, container, returnArray) { if (!format || !format.key || !format.match) { return false; } var predicate = NSPredicate.predicateWithFormat(format.key, format.match), container = container || this.current, items; if (cont...
JavaScript
src/utils/modules/array.js
websiddu/sketch-material
mit
964
38
codeparrot/github-code
15a52a261ffe250ab5e58c9a172f560e7cb484e20cbc0f9e09185f9691b2570e
package com.mantralabsglobal.cashin.ui.fragment.tabs; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.os.Bundle; import android.support.annotation.Nullable; import android.text.TextUtils; import an...
Java
app/src/main/java/com/mantralabsglobal/cashin/ui/fragment/tabs/YourPhotoFragment.java
kritikaguptakg5/CashIn
mit
8,107
225
codeparrot/github-code
051734fc32ea6535cbfe1eb7e187c906ce519de57357756553065dd7308b742d
namespace Generic { using System; public class MainProgram { public static void Main() { GenericList<int> newList = new GenericList<int>(); while (true) { Console.WriteLine("Enter number for adding to the Generic list OR \"end\":"); ...
C#
OOP/02.Defining Classes Part 2/GenericClass/MainProgram.cs
emilti/Telerik-Academy-My-Courses
mit
3,274
101
codeparrot/github-code
bb2c14e54fd0067aff4ca1161aff00676812d7e6810cd7a1af88e51e2bfb9946
var should = require("chai").should(), sinon = require("sinon"), Q = require("q"), ExecutionPool = require("../src/execution-pool.js"); describe('execution-pool', function() { "use strict"; describe('constructor', function() { const DEFAULT_POOL_SIZE = 5, CUSTOM_POOL_SIZE = 7...
JavaScript
test/execution-pool-test.js
fmsf/node-execution-pool
mit
4,414
138
codeparrot/github-code
997571e81b00ad31bb1cc73dd176c36ac3c0a85fea3dbda6f4233f5d735d45d7
<h2>Comments</h2> <pre><code># This is a comment # -*- coding: &lt;encoding-name> -*-</code></pre> <h2>Strings</h2> <pre><code>"foo \"bar\" baz" 'foo \'bar\' baz' """ "Multi-line" strings are supported.""" ''' 'Multi-line' strings are supported.'''</code></pre> <h2>Numbers</h2> <pre><code>7 2147483647 0o177 0b1001101...
HTML
examples/prism-python.html
byverdu/prism
mit
1,450
65
codeparrot/github-code
2a7ea8afd468febb5ba1ec4c43607f6527179cf013d11805c71bd2629bdfefcc
#include "FactoryElementos.h" FactoryElementos* FactoryElementos::factory = NULL; FactoryElementos::FactoryElementos() { } Avion* FactoryElementos::crearAvion(EstrategiaAvion prioridad) { return new Avion(prioridad); } Pista* FactoryElementos::crearPista(int numero) { return NULL; } Controlador* FactoryElementos...
C++
tp1/common/FactoryElementos.cpp
imgaray/7559
mit
586
32
codeparrot/github-code
bb58035275d4449a5af92a1ab5e8ca90903c620365522e61ede7a6e63d97ec8a
require 'rake' require 'rake/tasklib' class ChiliVideosTasks < Rake::TaskLib VALID_DJ_ACTIONS = %w(start restart stop status) def initialize define end def define namespace :chili_videos do desc "Install ChiliVideos plugin (migrate database, include assets, etc)" task :install => [:migrat...
Ruby
lib/tasks/chili_videos_tasks.rb
tomkersten/chili_videos
mit
3,989
117
codeparrot/github-code
f62835df5596daaaa4e244ab3261fbef58a13da5391b56e2c368a3ba0ef8eb96
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GroupControl.Model { public class NewFriendStateViewModel:BaseViewModel { public string Device { get; set; } public bool IsImportContracts { get; set; } publi...
C#
TestADB/TestADB/GroupControlModel/ViewModel/NewFriendStateViewModel.cs
samwen/GroupControl
mit
676
33
codeparrot/github-code
2b2b4ff4ab104be4efc57e127acebbb3ec0968bb641e0d66b1c8e790e9318232
<?php namespace NRTest\PetClinicBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use NRTest\PetClinicBundle\Entity\PetType; use NRTest\PetClinicBundle\Form\PetTypeType; /** * PetType controller. * */ class PetTypeController extends Controller { /** * Lists all PetType entitie...
PHP
src/NRTest/PetClinicBundle/Controller/PetTypeController.php
mmennis/SymfonyPetClinic
mit
5,056
188
codeparrot/github-code
00d8142f4eee938ad1189c1f05a67d7928c11675c212fc1e65bd9f92e65f092f
class Game extends Screen { constructor() { super() this.tubes = [] this.tubesSpawned = 0 this.bird = new Bird() score.last = 0 this.tubes.push(new Tube(this)) let g = this this.spawner = setInterval(function() { g.tubes.push(new Tube(g))...
JavaScript
scr/screens/game.js
Revanee/TrashyDove
mit
2,048
86
codeparrot/github-code
37c9062982b09f219f47a7226d7ad925d1a19ba192d66aa1e89394a06eb10543
#ifndef TSP_H #define TSP_H namespace TSP { enum class TYPE { TSP, /// symmetric TSP ATSP, /// asymmetric TSP GTSP, /// generalized symmetric TSP AGTSP, /// generalized asymmetric TSP SOP, /// sequential ordering problem CVRP, /// Capacitated vehicle routing problem ...
C
common/tsp.h
JoostvanPinxten/tsplib-parser
mit
1,064
58
codeparrot/github-code
64c76ec12698a00e2c1ae474f8bd42a9d4d4af8d0208c0257577f5a7d571ce93
/* ヘッダファイルのインクルード */ #include <stdio.h> /* 標準入出力 */ #include <string.h> /* 文字列処理 */ #include <stdlib.h> /* 標準ライブラリ */ #include <unistd.h> /* UNIX標準 */ #include <sys/types.h> /* 派生型 */ #include <sys/socket.h> /* ソケット */ #include <netinet/in.h> /* AF_INET, AF_INET6アドレス・ファミリー */ #include <arpa/inet.h> /* IPアドレス変換 */ #incl...
C
http/http_status_code/200/src/http_status_code/http_server.c
bg1bgst333/Sample
mit
6,017
175
codeparrot/github-code
c5b15d72f91c50296c5f6f3581d22e9eb436bbf2557f476da39ff4ee439523b8
package Devel::NYTProf::FileInfo; # fid_fileinfo use strict; use Carp; use Config; use List::Util qw(sum max); use Devel::NYTProf::Util qw(strip_prefix_from_paths trace_level); use Devel::NYTProf::Constants qw( NYTP_FIDf_HAS_SRC NYTP_FIDf_SAVE_SRC NYTP_FIDf_IS_FAKE NYTP_FIDf_IS_PMC NYTP_FIDf_IS_EVAL ...
Perl
Beginning Perl for Bioinformatics/lib/Devel/NYTProf/FileInfo.pm
amidoimidazol/bio_info
mit
19,877
608
codeparrot/github-code
54b5750848b6f9572f7659efd2679b003f2308e6a8165740cbe5546528d6393b
--- layout: post title: Ruby vs JavaScript --- <div class="post_text"> <h3>Javascript vs Ruby</h3> <p>So who wins? There is no right answer. Javascript has obvious benefits, but the web we know today requires passwords and databases. These are the domain of server-side languages.</p> <p>But Ruby can't do fast, ...
HTML
_posts/2014-05-14-ruby-vs-javascript.html
rjspencer/rjspencer.github.io
mit
6,215
107
codeparrot/github-code
cae619f03697a06bbde8783f904d5320577296e4eb5ef79f82445a15c12bb0a8
// // Player.cpp // MyStudy // // Created by 陆伟 on 14-12-25. // // #include "Player.h" #include "MainScene.h" #define HP_GAP 1 typedef enum { tag_player=0,//主角 tag_playerHp1,//血量1 tag_playerHp2,//血量2 tag_playerHp3,//血量3 tag_scoreLabelTTF,//分数文字 tag_scoreTTF,//分数 tag_killsCountLabelTTF,/...
C++
Classes/others/Player.cpp
luwei2012/Filters
mit
5,174
149
codeparrot/github-code
e2fa98c427ebfcc63558f56964b0e8dd877dc16c918931882d7f9ef93e7788e9
using System.IO; namespace VBessonov.GZip.Core.Compression.Utils { internal class TempFileStream : FileStream { public const int DefaultBufferSize = 4096; public TempFileStream() : base(Path.GetTempFileName(), FileMode.Create, FileAccess.ReadWrite, FileShare.Read, DefaultBufferSiz...
C#
GZip/GZip.Core/Compression/Utils/TempFileStream.cs
vbessonov/gzip
mit
1,007
34
codeparrot/github-code
83557d11c9765f84ea6b67cfd09978ee800e656685012b859439e5e5b0720606
#region SignReferences // An automatic tool to presign unsigned dependencies // https://github.com/picrap/SignReferences #endregion namespace SignReferences.Signing { using System; using System.IO; using Project; using Utility; /// <summary> /// Signs unsigned assemblies /// </summary> ...
C#
SignReferences/Signing/AssemblySigner.cs
picrap/SignReferences
mit
2,249
52
codeparrot/github-code
cf6fc292998b22fd04cc12fe48b206c3e59c79376341ff0c19c2f725e4e27aaf
require('env2')('.env'); // optionally store youre Evironment Variables in .env require('babel-register')(); const SCREENSHOT_PATH = './screenshots/'; const BINPATH = './node_modules/nightwatch/bin/'; // we use a nightwatch.conf.js file so we can include comments and helper functions module.exports = { src_folders:...
JavaScript
nightwatch.js
andela-onnenanya/document-manager
mit
3,311
87
codeparrot/github-code
b218d7557aa0d4fbccc218b14050b1ec1156410abfd7745731c3d318d23cb71e
package com.aksantos.dcuocensus.models; import java.io.Serializable; public abstract class Type implements Serializable { private static final long serialVersionUID = 1374830829973928458L; private long id = 0; public long getId() { return id; } public void setId(long id) { this....
Java
src/main/java/com/aksantos/dcuocensus/models/Type.java
adamsantos67/DCUOStats
mit
861
40
codeparrot/github-code
38bc1bb9a63d356f1625adc34e5487e8229ce53b62a0cbc1b9c6bd1f8da2ac9c
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Collections.Generic; using System.Linq; namespace Microsoft.DotNet.ProjectJsonMigration { public class ProjectMigrationReport ...
C#
src/Microsoft.DotNet.ProjectJsonMigration/Report/ProjectMigrationReport.cs
naamunds/cli
mit
1,841
46
codeparrot/github-code
059b1fd04934f83c9ed48e24fcea262777ccf92390da82e50f91afd814d4a138
package com.jurua.api.common.utils.cache; import com.jurua.api.common.utils.cache.broadcast.CacheMsgBroadcast; import org.redisson.api.RedissonClient; import org.springframework.cache.Cache; import org.springframework.cache.caffeine.CaffeineCacheManager; /** * @author 张博【zhangb@lianliantech.cn】 * * 继承 CaffeineCach...
Java
src/main/java/com/jurua/api/common/utils/cache/RedisCaffeineCacheManager.java
sundayha/jurua-api
mit
1,181
36
codeparrot/github-code
468448e00ed8677ae51697a22a3bd9194aeca6d5c14fb51446183d08b113e5cd
require "json" require "open-uri" require "rainbow" class OutdatedPackages REPOS = { "api_umbrella_static_site" => { :git => "https://github.com/NREL/api-umbrella-static-site.git", :git_ref => "master", }, "bundler" => { :git => "https://github.com/bundler/bundler.git", }, "elas...
Ruby
scripts/rake/outdated_packages.rb
apinf/api-umbrella
mit
10,989
368
codeparrot/github-code
0244ad33d0703742fa0f758724bfacd49caa91f5ff977d10b673445a72ef6a50
using System.Collections.Generic; using WcfServices.DTO; using WcfServices.Interfaces; namespace WcfServices { public class PersonWcfService : IPersonService { private readonly IPersonRepository personRepository; public PersonWcfService(IPersonRepository personRepository) {...
C#
WcfServices/PersonService.svc.cs
jolmari/netcore-wcf-service-proxy
mit
740
32
codeparrot/github-code
ead864dfb65dd5c8889eabdf9a2912c9a6576797252bb9d98763454d8ac6b6ab
{% load static %} <html> <head> <title>Pianobar Client</title> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, height=device-height, target-densitydpi=device-dpi"> <!-- External CSS Styles --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.c...
HTML
web/templates/web/index.html
appendjeff/pianobar-client
mit
9,094
194
codeparrot/github-code
8220cb9f06c8ce443fd4a179d08cd0c1c56ee273696b52aac17246b37feda2d4
import React from "react"; import Layout from "../../lib/components/Layout"; const Resume = () => ( <Layout title="Public Speaking"> <main id="content" className="main" role="main"> <section className="container"> <h1>Writings</h1> <p> I wrote some articles on the interwebz and o...
TypeScript
pages/about/writings.tsx
drublic/vc
mit
3,402
101
codeparrot/github-code
5a21892803d010a10a279f197cdc1c128072d08dd1e05a34503fc467b999a603
using System; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace RedditSharp.Things { public class AuthenticatedUser : RedditUser { private const string ModeratorUrl = "/reddits/mine/moderator.json"; private const string UnreadMessagesUrl = "/message/unre...
C#
RedditSharp/Things/AuthenticatedUser.cs
chuggafan/RedditSharp-1
mit
7,142
218
codeparrot/github-code
204d108bfcbe45dfd78fdf0a533f11245adb8e85ba320b08650cec8cf07bfe83
/** * Copyright (c) 2017 Oliver Warrings <dev@qhun.de> * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ import { Helper } from '@shared'; import { GravityForce } from '@client'; import { suite, test } from 'mocha-typescript'; import { expect } from 'chai'; @suite("sh...
TypeScript
test/shared/math/Helper.ts
wartoshika/qhun-engine
mit
1,436
55
codeparrot/github-code
2e76b6a5a92c306028b6c89e76eb986e7001ebcfbcd7216b9598c414c035dddc
#ifndef RAPIDJSON_READER_H_ #define RAPIDJSON_READER_H_ // Copyright (c) 2011 Milo Yip (miloyip@gmail.com) // Version 0.1 #include "rapidjson.h" #include "encodings.h" #include "internal/pow10.h" #include "internal/stack.h" #if defined(RAPIDJSON_SIMD) && defined(_MSC_VER) #include <intrin.h> #pragma int...
C
include/lib/rapidjson/reader.h
yb-kim/osSim
mit
41,929
1,247
codeparrot/github-code
5dea95e8934f90ceb3e8c4c37d42b0ea3a6947f466985ba5d30992d740a0adc4
module Stamper class Message HEADER_FIELDS = :date, :from, :to, :subject attr_reader *HEADER_FIELDS, :header, :mailbox, :seqno def initialize(seqno: nil, header: {}, body: nil, mailbox: nil) raise "A message must belongs to a mailbox" if !mailbox @seqno = seqno @header = header ...
Ruby
lib/stamper/message.rb
garnieretienne/stamper
mit
1,391
59
codeparrot/github-code
81631930a0a9715bdc2f9b88e118d9b22eeb77b92883e0a4009402ddc410aff3
import React, { Component } from 'react'; import { View, LayoutAnimation } from 'react-native'; import { ListItem, Icon } from 'react-native-elements'; import styles from './styles'; const CustomLayoutAnimation = { duration: 200, update: { type: LayoutAnimation.Types.spring, springDamping: 0.7, }, }; cl...
JavaScript
components/WalletsListItem/index.js
haaswill/open-wallet-app
mit
2,020
96
codeparrot/github-code
2d31dc39b7ba5616b5be4a74689912197f540f1f2569f8e3bd344b527ca1ed90
import _ from 'lodash'; import ReplConstants from '../constants/ReplConstants'; let navigation = { 'keyLeft': 37, 'keyup': 38, 'keyRight': 39, 'keydown': 40, }; let events = { 'blurEvent': 'blur', 'keydownEvent': 'keydown', 'keyupEvent': 'keyup', }; let keyNameBindings = { 'tab': 9, 'enter': 13, ...
JavaScript
src/common/ReplDOMEvents.js
antonyr/Mancy
mit
1,626
82
codeparrot/github-code
ec224afc7c8e7e4d46874aa5eaaafb5759e193f5b0f9d6e61f07cffebe5a8ef1
(function() { 'use strict'; var nb_users = 0; var DEMO_STROKES_INTERVAL = 30000; // in seconds var MAX_NEW_STROKES = 10; // being added at every interval in "demo" mode var MAX_STROKES = 1000; // in total on screen // setup CreateJS objects var stage = new createjs.Stage('canvas'); var renderContainer...
JavaScript
scripts/render.js
herebefrogs/office-to
mit
3,232
108
codeparrot/github-code
98d36a1118aa802e10436d546251fdb3a149231d409491e6d6412c268631a56e
// Copyright 2012 Google Inc. All Rights Reserved. // // This code is licensed under the same terms as WebM: // Software License Agreement: http://www.webmproject.org/license/software/ // Additional IP Rights Grant: http://www.webmproject.org/license/additional/ // ---------------------------------------------...
C
Sample/ClientSource/cocos2dx/platform/third_party/marmalade/libwebp/mux/demux.c
wenhulove333/ScutServer
mit
30,148
903
codeparrot/github-code
65ae47f1f3082efb2eb9d19f5cbfbd4b97cf3c5e1d2475db8bb49e3fc1c7799b
'use strict'; const query = require('../schema/horizon_protocol').query; const check = require('../error.js').check; const reql_options = require('./common').reql_options; const Joi = require('joi'); const r = require('rethinkdb'); const object_to_fields = (obj) => Object.keys(obj).map((key) => { const value =...
JavaScript
server/src/endpoint/query.js
rethinkdb/horizon
mit
4,506
137
codeparrot/github-code
fc8023b541c0f8eac2ed8d836dd65aa0dc5951e20b7875a6fd52f8c5d8a45ecc
#! /usr/bin/env python # # whoosh_test.py --- # # Filename: whoosh_test.py # Description: # Author: Werther Zhang # Maintainer: # Created: Mon Oct 23 19:29:49 2017 (+0800) # # Change Log: # # import os from whoosh.index import create_in from whoosh.index import exists_in from whoosh.index import open_dir from whoosh...
Python
slackbot/plugins/component/database/BookshelfDatabase.py
pengzhangdev/slackbot
mit
2,538
75
codeparrot/github-code
d1c8ca5deec1ca8f45843cac6e1665a436079719cd65623f807794733667f1fd
package sis.report; import sis.studentinfo.Student; import java.util.List; /** * Created by AidenChoi on 2016. 11. 22.. */ public class RosterReporter { static final String SEPARATOR = System.getProperty("line.separator"); static final String ROSTER_REPORT_HEADER = "학생 명단 ======" + SEPARATOR; static fi...
Java
src/main/java/sis/report/RosterReporter.java
m0er/pikicast-java-study
mit
1,156
44
codeparrot/github-code
e9cc2918285c4ac2840a94037a2917cfa0783f2792a3d6ab4ab53e4f6040c36a
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2013 Michel Petit <petit.michel@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 # w...
Python
team.py
malenkiki/team
mit
3,108
85
codeparrot/github-code
7030a44d16a4a36bd33ef60c8e235f33c3bb312bf9897d2cdecfaf264caa27d8
#!/usr/bin/env python # -*- coding:utf-8 -*- # ****************************************************************# # ScriptName: # Author: Eli # Create Date: # Modify Author: # Modify Date: # Function: # ****************************************************************# import random import ImageDraw from PIL import Imag...
Python
flaskcode.py
Ayi-/flask_HRmanager
mit
2,624
94
codeparrot/github-code
67965f47ae4ebc77a8964b3061b07f1dca922a4ec3a2292a51f86e31d0ce4219
#!/usr/bin/env python """ Output a table showing what percentage of targets can be read assuming a certain percentage coverage (columns) and number of items learnt in arbitrary order (rows). The first input file should consist of lines of <target> <item> separated by whitespace. The second input file should consist ...
Python
code/vocab-coverage-arbitrary.py
jtauber/graded-reader
mit
3,511
127
codeparrot/github-code
36acb120c3e9db9cfd8f53788f6f1bf4b26f36c9bd8768a6ae0878f1b023156b
/// <reference path="../kg.ts" /> module KG { import MathFunction = KG.MathFunction; export interface MultivariateFunctionDefinition extends MathFunctionDefinition { fn: string; domainCondition?: string; } export interface IMultivariateFunction extends IMathFunction { inDomai...
TypeScript
src/ts/math/multivariateFunction.ts
cmakler/kgjs
mit
4,777
127
codeparrot/github-code
c6c45c6bae4ae011f1ad00fcdf95dc2cde6661a964a932e0210a345a906fbf0f
package worker import ( "crypto/tls" "fmt" "log" "net/http" "os" "os/exec" "os/signal" "syscall" "time" // include for conditional pprof HTTP server _ "net/http/pprof" "github.com/Sirupsen/logrus" "github.com/codegangsta/cli" "github.com/getsentry/raven-go" "github.com/mihasya/go-metrics-librato" "gi...
GO
cli.go
solarce/worker
mit
8,864
349
codeparrot/github-code
14470207fd1c3c8cb8d70e64b75327465d65b2962227068bd7a5ad86e5d7b456
/* Copyright (C) 2016 -2017 Jerry Jin */ #ifndef leg_h #define leg_h #include <nan.h> #include <string> #include <queue> #include <utility> #include "../quantlibnode.hpp" #include <oh/objecthandler.hpp> using namespace node; using namespace v8; using namespace std; class LegWorker : public Nan::AsyncWorker { ...
C++
src/leg.hpp
quantlibnode/quantlibnode
mit
34,826
1,773
codeparrot/github-code
f7df1e1cca813965bdab4f0a70a212c34f52720d1d8f3bd1504d678885794f80
package holland.des.code_2040; import java.io.BufferedReader; import java.io.File; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List; import org.apache.http.HttpEntity; import...
Java
src/holland/des/code_2040/MyAsync.java
descartesholland/c_2040
mit
3,618
119
codeparrot/github-code
24cab68570c94dd70aefd47b89e6ff1324fc9505b2c103f68f7234cf5484bfd5
/* -*- C++ -*- * * Copyright (c) 2014 * Spoken Language Systems Group * MIT Computer Science and Artificial Intelligence Laboratory * Massachusetts Institute of Technology * * FILE: datum.h * * Chia-ying (Jackie) Lee <chiaying@csail.mit.edu> * Jan 2016 ***********************************...
C
src/datum.h
jacquelineCelia/lexicon_discovery
mit
1,457
53
codeparrot/github-code
9c40570e1be07cc90543379e64b3002fc5acf964410ca02051946100924d8baf
------------------------------------------------------------------ -- MailScene.lua -- Author :JUNM CHEN -- Version : 1.0 -- Date :Ðżþ -- Description: , ------------------------------------------------------------------ module("MailScene", package.seeall) -- ³¡¾°ÖÐÓõ½µÄ³ÉÔ±±äÁ¿ÒªÔÚÎļþÍ·²¿ÏÈÉêÃ...
Lua
Sample/Koudai/Client/lua/scenes/MailScene.lua
wenhulove333/ScutServer
mit
7,256
261
codeparrot/github-code
f9180f5e866d814532a888c3b30bef0b890ff8f9cde2b8507f26bd112a48c7ab
package com.github.visgeek.utils.collections; import java.io.Serializable; import java.lang.reflect.Array; import java.util.Collection; import java.util.Set; @SuppressWarnings("unchecked") public interface ISet<T> extends Set<T>, IReadOnlySet<T>, Cloneable, Serializable { default boolean addAll(Iterable<? e...
Java
src/src/main/java/com/github/visgeek/utils/collections/ISet.java
visGeek/JavaVisGeekCollections
mit
1,437
67
codeparrot/github-code
ccccafc4f16bd0279ec2f530eacb2a5e2864c5ac6663a3fd95a07a7a52afc447
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace System { // There are many file dialogs, eg. OpenFileDialog exists in: // WinForms : Windows.Forms.OpenFileDialog // WPF : Microsoft.Win32.OpenFileDialog // Silverlight: System.Windows.Contro...
C#
Source/KSz.Shared.Core/Native/FileDialogService.cs
kubaszostak/KSz.Shared
mit
5,743
192
codeparrot/github-code
4a60e5455c57f88f1a8c7b97fdc71933e11b8a865113fedaa83a1135e8b5f9e8
<?php $useRecaptcha = false; if (file_exists(dirname(__FILE__) . '/../includes/recaptchaconfig.php')) { include(dirname(__FILE__) . '/../includes/recaptchaconfig.php'); } ?> <script src='https://www.google.com/recaptcha/api.js'></script> <?php /** * contact.php * * This file is the "Contact Us" page. * */ $fo...
PHP
webroot/contact.php
stockportdojo/website
mit
5,683
184
codeparrot/github-code
259eb730152432ef8ad61dad4b0f71a99bec5dea2c5f66f54692d341dfcffc76
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Mdl_document extends CI_Model { public function __construct() { parent::__construct(); } public function getAllDoc() { $sql = "SELECT doc_id, doc_name, doc_lastname, doc_moneySupport, doc_amount, doc_publicationWhere, ...
PHP
application/models/Mdl_document.php
mynameistecs51/faculty-ge
mit
6,561
215
codeparrot/github-code
7cf7e36fc0ad45b8a98f89245df1d91a1292d1a9d39ced0b563754aab65e9a38
package server.persistence; import java.util.Date; import org.springframework.data.annotation.Id; import server.business.ErrorHolder; public abstract class TaskEntity { @Id private String id; private Date created; // the time when upload-process started private Date canceled; // the time when cance...
Java
src/main/java/server/persistence/TaskEntity.java
jsNikos/tanners
mit
1,293
69
codeparrot/github-code