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 |
|---|---|---|---|---|---|---|---|---|
5afef1f058b9a92b7d2e116ac9b4f3c9fc48f5aabf1fce81c7244b433c098a9d | {-# LANGUAGE BangPatterns, DataKinds, DeriveDataTypeable, FlexibleInstances, MultiParamTypeClasses #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Hadoop.Protos.YarnProtos.AMCommandProto (AMCommandProto(..)) where
import Prelude ((+), (/), (.))
import qualified Prelude as Prelude'
import qualified Data.Typeable... | Haskell | hadoop-protos/src/Hadoop/Protos/YarnProtos/AMCommandProto.hs | alexbiehl/hoop | mit | 2,466 | 61 | codeparrot/github-code |
1852ab70e237bd3f35d60a1247d3e807b3eaca99397e76656f8ef1e0552d0ca9 | -- module Day04 (solveDay04) where
module Day04 where
import Control.Monad (mapM_)
import Data.Char (chr, isDigit, ord)
import Data.Function (on)
import Data.List (group, nub, sort, sortBy)
import Data.List.Split (splitOn, wordsBy)
isSquareBracket :: C... | Haskell | 2016/Haskell/AdventOfCode/src/Day04.hs | justanotherdot/advent-linguist | mit | 1,928 | 55 | codeparrot/github-code |
a8ab67092384e4588c680ae4bed1c59c77a1f04aeb79970ac1d62d9f96cb26aa | // The MIT License (MIT)
//
// Copyright (c) 2014-2017, Institute for Software & Systems Engineering
//
// 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 wit... | C# | Source/SafetySharp/Runtime/SafetySharpRuntimeModel.cs | maul-esel/ssharp | mit | 9,662 | 256 | codeparrot/github-code |
2f0433bfc7638b7e625379ea592796256b9c36b115995c04692fce82848c2038 | import pyqtgraph as pg
from pyqtgraph.Qt import QtGui, QtCore
import numpy#
from pyqtgraph.parametertree import Parameter, ParameterTree, ParameterItem, registerParameterType
class FeatureSelectionDialog(QtGui.QDialog):
def __init__(self,viewer, parent):
super(FeatureSelectionDialog, self).__init... | Python | vigranumpy/examples/boundary_gui/bv_feature_selection.py | timoMa/vigra | mit | 3,993 | 133 | codeparrot/github-code |
dd1288679eb658a42fcc84bf56c70373dcfb7b894957fb4d596bb3677ad1f5f4 | /**
* App
*/
'use strict';
// Base setup
var express = require('express');
var app = express();
var path = require('path');
var bodyParser = require('body-parser');
var logger = require('morgan');
var mongoose = require('mongoose');
var config = require('./config');
var routes = require('./routes/index');
var val... | JavaScript | app.js | lucianot/dealbook-node-api | mit | 2,082 | 82 | codeparrot/github-code |
2027108b20d53f403410d427c8a61f3f5706091cc0cdd176a72f919287ec58f0 | $(document).ready(function(){
'use strict';
//Turn off and on the music
$("#sound-control").click(function() {
var toggle = document.getElementById("sound-control");
var music = document.getElementById("music");
if(music.paused){
music.play();
$("#sound-control").attr('src', 'img/ljud_pa.png');
... | JavaScript | js/megaslider.js | emmb14/MegaSlider | mit | 3,148 | 148 | codeparrot/github-code |
c2f1f571a6121f6606b6c7d7fc7e802a4e03c76f7160af3233dd487aa392a0a6 | from engine.api import API
from engine.utils.printing_utils import progressBar
from setup.utils.datastore_utils import repair_corrupt_reference, link_references_to_paper
def remove_duplicates_from_cited_by():
print("\nRemove Duplicates")
api = API()
papers = api.get_all_paper()
for i, paper in enumer... | Python | src/setup/check_for_currupt_references.py | thomasmauerhofer/search-engine | mit | 2,124 | 70 | codeparrot/github-code |
881e58a2c9ac4602b30e4c76cb7175d6deb2d66c9972f847f6ee753e6b6aa8ae | // $Id: CurrentFunction.java 96 2005-02-28 21:07:29Z blindsey $
package com.blnz.xsl.expr;
import com.blnz.xsl.om.*;
/**
* Represents the XSLT Function: node-set current()
*
* The current function returns a node-set that has the
* current node as its only member. For an outermost
* expression (an expression n... | Java | src/main/java/com/blnz/xsl/expr/CurrentFunction.java | blnz/palomar | mit | 874 | 31 | codeparrot/github-code |
102997102a03cceff988a613cbe453f0aada99c323fa36202acdd76eca25934f | <tmpl-metadata parentId="demo" parentTitle="Demo" sort="1" id="basic" title="basic" desc=""/>
<layout-use template="${data.layoutPath}"
project-name="${data.projectName}"
parent-id="${data.metadata.parentId}"
page-title="${data.metadata.title}"
page-id="${data.metadata.i... | HTML | _src_/ax5ui-binder/demo/index.html | ax5ui/ax5docs | mit | 5,983 | 137 | codeparrot/github-code |
068626407d08d6cb105d39c47fc073827c5373ce83388ac4981fd844629d0f35 | /*
*@author jaime P. Bravo
*/
$(document).ready(function () {
//forms general
function sendDataWithAjax(type, url, data) {
return $.ajax({
type: type,
url: url,
data: data,
dataType: 'json',
beforeSend: function () {
console... | JavaScript | assets/js/general.js | fireflex/matters | mit | 2,873 | 103 | codeparrot/github-code |
46002e53ddf1200f32720db79c100f2a31d6ea112762bd16d0d2aaad23be553a | var LedgerRequestHandler = require('../../helpers/ledgerRequestHandler');
/**
* @api {post} /gl/:LEDGER_ID/add-filter add filter
* @apiGroup Ledger.Utils
* @apiVersion v1.0.0
*
* @apiDescription
* Add a filter for caching balances. This will speed up balance
* requests containing a matching filters.
*
* @... | JavaScript | lib/routes/gl/addFilter.js | electronifie/accountifie-svc | mit | 1,756 | 45 | codeparrot/github-code |
83a8f48828e90c3d7fd81c38e6421db0eaa72fd19f3961f693bf9c0f03092f8b | package postactions
import (
"net/http"
"github.com/fragmenta/auth/can"
"github.com/fragmenta/mux"
"github.com/fragmenta/server"
"github.com/fragmenta/view"
"github.com/fragmenta/fragmenta-cms/src/lib/session"
"github.com/fragmenta/fragmenta-cms/src/posts"
"github.com/fragmenta/fragmenta-cms/src/users"
)
//... | GO | src/posts/actions/update.go | fragmenta/fragmenta-cms | mit | 2,058 | 91 | codeparrot/github-code |
17ec4cfd48cba09193d5419bd1d2e065018ad01b0e6ca3f89f3c8c278c94e18f | /*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHOR BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, O... | JavaScript | lib/message/request/describeGroups.js | pelger/Kafkaesque | mit | 1,146 | 38 | codeparrot/github-code |
c695afc6c46b00be2a1790fefa84421b3b1bf0a1f4b35a8b8b0f6d84ead0ccb3 | package main.habitivity.services;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/**
* Created by Shally on 2017-12-01.
*/
public class Connectivity... | Java | app/src/main/java/main/habitivity/services/ConnectivityService.java | CMPUT301F17T20/Habitivity | mit | 1,916 | 61 | codeparrot/github-code |
e611f34ef83843a36c22d77f5db25559711d00090357bad969ae0c63f182929c | <?php
/* @WebProfiler/Collector/twig.html.twig */
class __TwigTemplate_793d44b82b00b11058566fd43a938457dfbf8bd2ba53b4f3f33086ff7eecb7a9 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate(... | PHP | var/cache/dev/twig/3c/3c143050536fee4bbe81d2075bb2515ac85282e72e70471d06862fa83c81a660.php | peterpangl/sso-project | mit | 15,225 | 351 | codeparrot/github-code |
2d640a1625773aff059cb2058e842fd43f740af526548fe7209d25bbb859028e | <?php
namespace Qafoo\ChangeTrack\FISCalculator;
class TransactionDatabase
{
/**
* Row based data set
*
* @var array
*/
private $data;
/**
* Items that occur in this data base
*
* @var string[]
*/
private $items = array();
/**
* @param array $data
... | PHP | src/main/Qafoo/ChangeTrack/FISCalculator/TransactionDatabase.php | Qafoo/changetrack | mit | 1,795 | 78 | codeparrot/github-code |
6e37d29f34466c10e7ffcad227e36e09e47afe709788dce59965be1acb2b2644 | // @flow
/* **********************************************************
* File: Footer.js
*
* Brief: The react footer component
*
* Authors: Craig Cheney, George Whitfield
*
* 2017.04.27 CC - Document created
*
********************************************************* */
import React, { Component } from 'react';
import ... | JavaScript | app/components/Footer.js | TheCbac/MICA-Desktop | mit | 1,554 | 55 | codeparrot/github-code |
8152ae6a328ca633acae8b50901e591fad3de9d703af61ceb15d261a6d01c7bb | /**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import {Typography, Popover, Input, Select, Checkbox} from 'antd';
import {DataInspectorSetValue} from './DataInsp... | TypeScript | desktop/flipper-plugin/src/ui/data-inspector/DataDescription.tsx | facebook/flipper | mit | 18,166 | 720 | codeparrot/github-code |
009b0285615f67442a5a0a33aa64e1c51485bcede40bb72e1ca7a5645c55fe88 | ๏ปฟusing System;
using Windows.ApplicationModel.Activation;
using Windows.UI.Core;
using Windows.UI.Input;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Navigation;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&c... | C# | Podcasts/Chrome.xaml.cs | AndrewGaspar/Podcasts | mit | 6,127 | 194 | codeparrot/github-code |
73b4347ef389c4603e6ddba36a9794b8ea34ace219c0e316f9c11ee91571deb6 | #include "mdl_file.hpp"
MDLFile::MDLFile(std::string file_path): File(std::move(file_path))
{this->update();}
bool MDLFile::exists_tag(const std::string& tag_name) const
{
return this->parsed_tags.find(tag_name) != this->parsed_tags.end();
}
bool MDLFile::exists_sequence(const std::string& sequence_name) const
{
r... | C++ | src/mdl_file.cpp | Harrand/MDL | mit | 6,776 | 253 | codeparrot/github-code |
200c67b9cce4139fa12c287ef31c3d443fcfbfc3c9ff4438702ef5244e630541 | # -*- coding: utf-8 -*-
# Copyright (c) 2013, Theo Crevon
# Copyright (c) 2013, Greg Leclercq
#
# See the file LICENSE for copying permission.
from boto.swf.exceptions import SWFResponseError
from swf.constants import REGISTERED
from swf.querysets.base import BaseQuerySet
from swf.models import Domain
from swf.model... | Python | swf/querysets/workflow.py | botify-labs/python-simple-workflow | mit | 25,485 | 662 | codeparrot/github-code |
3907dec735b70db1d3250c17ca57a87f7b23330c519e685284525133b2288eba | module DataTablesController
def self.included(cls)
cls.extend(ClassMethods)
end
module ClassMethods
def datatables_source(action, model, *attrs)
modelCls = Kernel.const_get(model.to_s.capitalize)
modelAttrs = modelCls.new.attributes
columns = []
modelAttrs.each_key { |k| ... | Ruby | lib/data_tables_controller.rb | chrismoos/datatables | mit | 3,255 | 99 | codeparrot/github-code |
3c77edb64706c26a6f0eb2be83e0e1bd6217382127404f1811f5426519047916 | import tensorflow as tf
from ocnn import *
# octree-based resnet55
def network_resnet(octree, flags, training=True, reuse=None):
depth = flags.depth
channels = [2048, 1024, 512, 256, 128, 64, 32, 16, 8]
with tf.variable_scope("ocnn_resnet", reuse=reuse):
data = octree_property(octree, property_name="feature... | Python | tensorflow/script/network_cls.py | microsoft/O-CNN | mit | 2,557 | 72 | codeparrot/github-code |
e77d549364f8844483cc2538ee05497637cad04ccd47b4f2f6afa89e5c2290f2 | ๏ปฟ#nullable disable
using System;
using System.Globalization;
using System.IO;
using Core2D.Model;
using Core2D.ViewModels;
using Core2D.ViewModels.Data;
using CSV = CsvHelper;
namespace Core2D.Modules.TextFieldWriter.CsvHelper
{
public sealed class CsvHelperWriter : ITextFieldWriter<DatabaseViewModel>
{
... | C# | src/Core2D/Modules/TextFieldWriter.CsvHelper/CsvHelperWriter.cs | Core2D/Core2D | mit | 1,974 | 66 | codeparrot/github-code |
da005e4b8fa059a7a0d05f1151dd6e4061f76c79278204fd40443af2f3658176 | package de.espend.idea.shopware.reference.provider;
import com.intellij.codeInsight.lookup.LookupElement;
import com.intellij.codeInsight.lookup.LookupElementBuilder;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiPolyVariantReferenceBase;
import com.intellij.psi.ResolveResult;
import com.jetbrains.php... | Java | src/main/java/de/espend/idea/shopware/reference/provider/StringReferenceProvider.java | Haehnchen/idea-php-shopware-plugin | mit | 1,454 | 50 | codeparrot/github-code |
b28edc603b33ab518d1b42810c1b80aefe134ec1295bc1c02a03035aadd27065 | <?php namespace Fes\Blog\Models;
use Model;
use Schema;
/**
* Category Model
*/
class Category extends Model
{
/**
* @var string The database table used by the model.
*/
public $table = 'rainlab_blog_categories';
/**
* @var array Guarded fields
*/
protected $guarded = ['*'];
... | PHP | models/Category.php | FrontEndStudio/oc-blog-plugin | mit | 869 | 50 | codeparrot/github-code |
c77967d92c1a7afb31a28f7736c4b3a4a648989b71ebd35cd34835deaf2826be | #ifndef DT3_SCRIPTINGKEYFRAMESMATERIALRESOURCE
#define DT3_SCRIPTINGKEYFRAMESMATERIALRESOURCE
//==============================================================================
///
/// File: ScriptingKeyframesMaterialResource.hpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
/... | C++ | DT3Core/Scripting/ScriptingKeyframesMaterialResource.hpp | pakoito/DT3 | mit | 3,534 | 100 | codeparrot/github-code |
565c38832495097961514820e16375912c60ed7301b7413468e7411105198177 | package com.algorithms.sorting;
public class MergeBU {
public static void sort(Comparable[] a) {
Comparable[] aux = new Comparable[a.length];
int N = a.length;
for (int size = 1; size < N; size = size*2) {
for (int i = 0; i < N; i = i + size) merge(a, aux, i, i+size-1, Math.m... | Java | Algorithms/src/sorting/MergeBU.java | SkullTech/algorithms-princeton | mit | 1,193 | 43 | codeparrot/github-code |
91cb57031f94ff33d3036a7f702b933800d85b8dd69cd82627dbb2652aef43a4 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="A Social Media Analytics Platform that lets you advertise on the Social Media Acco... | HTML | index.html | codegeek007/ic2 | mit | 15,462 | 349 | codeparrot/github-code |
2c05d9bb034efe9d35d24d8bbcc3a737a483467032d33e1bf730cd5de0a8387b | ๏ปฟusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Drawing.Drawing2D;
namespace Scheduler
{
public class Scheduler<T, K> : IRuntimeScheduler, IScheduler<K> where T:ScheduleTask, new()
{
... | C# | SchedulerLib/definition/Scheduler.cs | weihuajiang/SchedulerEngineDotNet | mit | 53,611 | 1,363 | codeparrot/github-code |
e9c1b20d23b225199ff07b85d352579962e38427dab781d2853f13b5c5f727fe | /* Copyright (c) 2015 Sai Jayanthi
This source file is licensed under the "MIT license".
Please see the file COPYING in this distribution for license terms.
*/
/*
This program provides the functionality to implement sound and swipe features for Colors activity
*/
package projects.oss2015.cs.fundookid;
import ... | Java | app/src/main/java/projects/oss2015/cs/fundookid/Colors.java | saipjayanthi23/Fundoo-Tots | mit | 3,586 | 129 | codeparrot/github-code |
16539e0689dfc166347db61c13084777b43990e8c7ce59c34eccb115a6957b31 | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Class: ActiveRecord::ConnectionAdapters::PostgreSQLColumn<... | HTML | doc/api/classes/ActiveRecord/ConnectionAdapters/PostgreSQLColumn.html | ecoulthard/summitsearch | mit | 2,752 | 119 | codeparrot/github-code |
484dbe4c6700b181b6e3c1ae2c3dcd701db38877fa022389ba1ab0dedc50fa9a | #!/usr/bin/env python
from __future__ import print_function
import sys
import re
from utils import CDNEngine
from utils import request
if sys.version_info >= (3, 0):
import subprocess as commands
import urllib.parse as urlparse
else:
import commands
import urlparse
def detect(hostname):
"""
P... | Python | plugins/ErrorServerDetection/behaviors.py | Nitr4x/whichCDN | mit | 907 | 38 | codeparrot/github-code |
ee86623755bf77e4c7c217c271d8d863432ea70d650846ba493ebb1c143f7305 | class BookingsController < ApplicationController
respond_to :html, :json
before_action :find_booking, except: [:create, :index]
def index
@bookings = Booking.current.order(:starts_at)
respond_with @bookings
end
def new
@booking = Booking.new
end
def create
@booking = Booking.new(bookin... | Ruby | lib/bookings/generators/templates/bookings_controller.rb | codenamev/bookings | mit | 1,474 | 79 | codeparrot/github-code |
ae5a2e88d306498bf3276d01299f09940930d4a3246a47def3e3d3e7a58ad221 | package edacc.parameterspace.domain;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
@SuppressWarnings("serial")
public class IntegerDomain extends Domain {
protected Integer low, high;
public static final String name = "Integer";
@SuppressWarnings("unused")
private IntegerDomain... | Java | src/edacc/parameterspace/domain/IntegerDomain.java | EDACC/edacc_api | mit | 3,522 | 136 | codeparrot/github-code |
2cef7a8869d84a9b40f0450aaccb022bb5490d99b3c38328620e1dfb4fb43ff5 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="https://just2us.com/img/favicon-180.png" />
<link rel="apple-touch-icon"... | HTML | 2011/07/06/i-am-now-developer-advocate-in-hoiio/index.html | samwize/just2me.com | mit | 13,080 | 310 | codeparrot/github-code |
5ef177c10ca33788393be8961f22be5d4cf6d23e579ea70aa1443e727580e016 | import {StringUtils} from "../node_modules/igv-utils/src/index.js"
class Locus {
constructor({chr, start, end}) {
this.chr = chr
this.start = start
this.end = end
}
contains(locus) {
return locus.chr === this.chr && locus.start >= this.start && locus.end <= this.end
}... | JavaScript | js/locus.js | igvteam/igv.js | mit | 1,337 | 49 | codeparrot/github-code |
01c334c6bb942a50819f01b1ac5748e60a4a5a7531ae5d13b950c7850a146f9a | ๏ปฟusing MonoGame.Extended.BitmapFonts;
using System;
using System.Collections.Generic;
using System.Text;
namespace XmasHell.Extensions
{
public static class StringExtension
{
public static List<String> FormatBoxString(String text, int width, BitmapFont font)
{
var strings = new List... | C# | Xmas-Hell/Xmas-Hell-Core/Extensions/StringExtension.cs | Noxalus/Xmas-Hell | mit | 938 | 37 | codeparrot/github-code |
717e034a9b29d6fc515fda5728be8b1fbb5a0f3aa64acf67e380d601aff587fb | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>exact-real-arithmetic: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootst... | HTML | clean/Linux-x86_64-4.09.0-2.0.5/released/8.10.2/exact-real-arithmetic/8.7.0.html | coq-bench/coq-bench.github.io | mit | 7,040 | 168 | codeparrot/github-code |
75cfded646a1dff073685db1cc4b151c04439fa10e5119e5e922fccbdb85ddc4 | ๏ปฟ(function () {
'use strict';
var app = angular.module('app');
// Collect the routes
app.constant('routes', getRoutes());
// Configure the routes and route resolvers
app.config(['$routeProvider', 'routes', routeConfigurator]);
function routeConfigurator($routeProvider, routes) {
... | JavaScript | Source/UI/NeighboursCommunityManager.UI/app/config.route.js | Community-Manager/NCS-Web | mit | 3,596 | 129 | codeparrot/github-code |
d1854e21284a9604abba82cd02a30f3a4cb78e92402c08f7c0e5d05334623f1f | //
// File: Math.cpp
// Author: John Barbero Unenge
// Date: 10/11/12.
//
// Copyright (c) 2012 Catch22. All rights reserved.
//
// All code is my own except where credited to others.
//
// License: The following code is licensed under the Catch22-License
//
#include "Math.hpp"
#include <math.h>
Vector2d* Math... | C++ | src/Math/Math.cpp | JBarberU/CatchLib | mit | 761 | 34 | codeparrot/github-code |
49af3d13559ab6ffa8e1cf0c5c8413c77c109ecf18de3cb4e152889c03eb5ab8 | 'use strict';
module.exports = {
controller: function (args) {
this.config = _.merge({
salvar: _.noop,
publicar: _.noop,
descartar: _.noop,
visualizar: _.noop,
editar: _.noop
}, args);
},
view: function (ctrl) {
var salvarView = '';
if (ctrl.config.salvar !== _.noo... | JavaScript | src/main/javascript/cabecalho/metadados.js | servicosgovbr/editor-de-servicos | mit | 1,796 | 67 | codeparrot/github-code |
7300d8113b6c54feb0f1f0a5817d42905454d1578401889a8a1fcfcb173f8617 | /*
The parser for parsing US's date format that begin with month's name.
EX.
- January 13
- January 13, 2012
- January 13 - 15, 2012
- Tuesday, January 13, 2012
*/
var moment = require('moment');
require('moment-timezone');
var Parser = require('../parser').Parser;
va... | JavaScript | src/parsers/EN/ENMonthNameMiddleEndianParser.js | trever/chrono | mit | 4,981 | 134 | codeparrot/github-code |
16968bb6106bbfd217df96637d92efd815442dc28ab15dc3aac23ebaadd1bc6f |
/*
main.c
*/
#define F_CPU 8000000
#include <stdio.h>
#include <string.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include <avr/io.h>
#include "../lib/ring_buffer.h"
#include "../lib/serial.h"
/*
Basic test of interrupt based serial functionality
*/
int main(void) {
uart_init();
sei();... | C | 3_Interrupt_Serial/src/main.c | alexburn97/AVR-C-Development-Board | mit | 1,148 | 62 | codeparrot/github-code |
3a523622ba4396aa33b1963391c68e8d5fc9a90e4cb5d10ef953e5d77e651021 | ## Scanner
type Scanner
string::AbstractString
tail::AbstractString
pos::Integer
end
Scanner(string::AbstractString) = Scanner("", string, 0)
## Returns `true` if the tail is empty (end of string).
function eos(s::Scanner)
s.tail == ""
end
## Tries to match the given regular expression at the curr... | Julia | src/scanner.jl | JuliaPackageMirrors/Mustache.jl | mit | 1,446 | 62 | codeparrot/github-code |
1ca884e3b2b6d97f0129eec0beaecb94f6b88197612df8381917fccab4fa20f6 | 'use strict';
import React, {PureComponent} from 'react';
import {StyleSheet, View, Text} from 'react-native';
import withMaterialTheme from './styles/withMaterialTheme';
import {withMeasurementForwarding} from './util';
import * as typo from './styles/typo';
import shades from './styles/shades';
/**
* Section headin... | JavaScript | src/Subheader.js | material-native/material-native | mit | 1,665 | 89 | codeparrot/github-code |
5a314291eba92650559b5963e261ee99a2ba3dd7abd8d6752678fbe8e52f0931 | package controller
import (
"net/http"
"encoding/json"
"rest-commander/store"
"rest-commander/model/dto"
)
type AuthenticationController interface {
HandleLogin(w http.ResponseWriter, r *http.Request)
HandleLogout(w http.ResponseWriter, r *http.Request)
}
func (t *AuthenticationRoute) HandleLogin(w http.Respon... | GO | server-go/src/rest-commander/controller/auth_handler.go | rainu/rest-commander | mit | 1,102 | 47 | codeparrot/github-code |
7a74b52005e73077936f5d474b0f82085858254a0920fbc02e4d1897c05b7d3e | """
=================================================
Modeling quasi-seasonal trends with date features
=================================================
Some trends are common enough to appear seasonal, yet sporadic enough that
approaching them from a seasonal perspective may not be valid. An example of
this is the ... | Python | examples/preprocessing/example_date_featurizer.py | tgsmith61591/pyramid | mit | 2,754 | 88 | codeparrot/github-code |
861283a34d0a194474853af86c2226fd384d6713e586f77179ce080a3dc1d34b | //
// KPHRequest.h
// KeePassHttp-ObjC
//
// Created by James Hurst on 2014-09-21.
// Copyright (c) 2014 James Hurst. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "JSONModel.h"
static NSString *const kKPHRequestGetLogins = @"get-logins";
static NSString *const kKPHRequestGetLoginsCount = @"g... | C | KeePassHttp/KPHRequest.h | jameshurst/KeePassHttp-ObjC | mit | 2,204 | 60 | codeparrot/github-code |
0b2545163bdb145b8967889e0ed4fcae4fe2c8781772dcc3f51f77b1c457b288 | package com.riteshakya.subs.views.screens.login;
import android.content.Intent;
import android.support.v4.app.FragmentActivity;
import com.google.android.gms.common.api.GoogleApiClient;
import com.riteshakya.subs.mvp.FlowListener;
import com.riteshakya.subs.mvp.IPresenter;
import com.riteshakya.subs.mvp.IView;
import... | Java | presentation/src/main/java/com/riteshakya/subs/views/screens/login/LoginPresenter.java | riteshakya037/Subs | mit | 859 | 37 | codeparrot/github-code |
d272da22c43cc38fcd15f42b3419f5e8006b455cb29e770a887dc213df7db085 | /*
* Copyright (C) 2013 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | lib-common/src/main/java/com/hyh/common/picasso/PicassoExecutorService.java | EricHyh/FileDownloader | mit | 4,271 | 112 | codeparrot/github-code |
e2a169c47faf9f45ede78881d843632eb14e86432a2f2dc80141c929515fe3bb | <?php
/**
* This file is part of the LdapTools package.
*
* (c) Chad Sikorra <Chad.Sikorra@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace LdapTools\Connection;
use LdapTools\Exception\InvalidArgumentExceptio... | PHP | src/LdapTools/Connection/LdapServerPool.php | ldaptools/ldaptools | mit | 4,828 | 195 | codeparrot/github-code |
0a602db5af997c77ad2b7aebb53cecac191abb43a7036f361dacbe916fbd7ef3 | <?php
/**
* Thankyou page
*
* This template can be overridden by copying it to yourtheme/woocommerce/checkout/thankyou.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to ... | PHP | woocommerce/checkout/thankyou.php | AustinWinnett/jenny-b-photo | mit | 3,682 | 88 | codeparrot/github-code |
2eb81dbfa7f3ff6480235685106dd9bbdd037a988fcaa500b2b5adc78d97e1b9 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>addition-chains: 3 m 2 s ๐</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/released/8.11.0/addition-chains/0.4.html | coq-bench/coq-bench.github.io | mit | 12,149 | 212 | codeparrot/github-code |
77566ef2ffdee5c9ce1c0f3df0a9443c000019720f6b9e067cd69fb7e58302ec | ๏ปฟusing System;
using System.Collections.Generic;
using Xamarin.Forms;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls
{
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 26032, " ListView... | C# | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla26032.xaml.cs | xjpeter/Xamarin.Forms | mit | 2,085 | 75 | codeparrot/github-code |
badc89e506ceadfa4275cc784780fe1fe0458241cb9227c42e001c8f68e52570 | package eu.bcvsolutions.idm.core.bulk.action.impl;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.List;
import java.util.Set;
import java.util.UUID;
import org.junit.After;
imp... | Java | Realization/backend/core/core-impl/src/test/java/eu/bcvsolutions/idm/core/bulk/action/impl/IdentityDisableBulkActionTest.java | bcvsolutions/CzechIdMng | mit | 9,528 | 241 | codeparrot/github-code |
dfc32a240509faa6fdc9272d30b313fd27e491b918d5d188359961adfb1d4fae | ๏ปฟusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace WarZ
{
public class ParticlesManager : DrawableGameComponent
{
private WarZGame WZGame;
//PARTICLES
// This sample uses five different particle systems.
... | C# | src/WarZ/WarZ/3D/Particles/ParticlesManager.cs | vvolkgang/WarZ | mit | 5,425 | 167 | codeparrot/github-code |
506503e9a3e13090f8d1ed61a83a9647b756dc6f94ad427d5314a9b2a6c929f5 | var gulp = require('gulp'),
plugins = require('gulp-load-plugins')(),
Karma = require('karma').Server;
var paths = {
scripts: {
src: ['src/**/*.js'],
dest: 'dist',
file: 'mention.js'
},
styles: {
src: ['src/**/*.scss'],
dest: 'dist',
file: 'mention.css'
},
example: {
scrip... | JavaScript | gulpfile.js | kasperlewau/ui-mention | mit | 2,033 | 82 | codeparrot/github-code |
d9dd041ff118b647bf8d63efcf07ef2a0cc691182ae3cffec61acacb7f242920 | import { StyleSheet } from 'react-native'
const s = StyleSheet.create({
flexRowAround: {
flexDirection: 'row',
justifyContent: 'space-around',
},
dot: {
height: 7,
width: 7,
borderRadius: 3.5,
},
green: {
color: '#50d2c2',
},
flexWrap: {
flexWrap: 'wrap',
},
textCenter: {
... | JavaScript | src/styles.js | SeunLanLege/react-native-mobx-calender | mit | 3,411 | 133 | codeparrot/github-code |
2ce1ace03714c5acaeed6395110ebf7f221a3058a8661d5c39f6c62a20a96007 | import {AbstractControl, FormBuilder, FormGroup, Validators} from "@angular/forms";
import {DatePickerOptions} from "ng2-datepicker";
import {MatchesDataStoreService} from "../../matches-data-store";
import {MatchesConstants} from "../../matches.constant.service";
import {IOption} from "ng-select";
import {Component, E... | TypeScript | src/app/ctcl/Matches/components/submit.score/match.basic.details.component/basic.details.component.ts | malikme3/angular4 | mit | 14,964 | 376 | codeparrot/github-code |
a90fd47fe019410a4d64dd1617239320f8aef22b98ea1610e7e19447ad004a6a | import json
from chargebee.model import Model
from chargebee import request
from chargebee import APIError
class Plan(Model):
class Tier(Model):
fields = ["starting_unit", "ending_unit", "price", "starting_unit_in_decimal", "ending_unit_in_decimal", "price_in_decimal"]
pass
class ApplicableAddon(Mo... | Python | chargebee/models/plan.py | chargebee/chargebee-python | mit | 2,784 | 59 | codeparrot/github-code |
630d833f004ffd809226816f3d325b4b0a6897219899779cb0dd2ff31bc4e0d1 | <?php
namespace denbora\R_T_G_Services\services\REST;
use denbora\R_T_G_Services\R_T_G_ServiceException;
class GameService extends RestService
{
/**
* First part in url after /api/
*/
const API_URL = 'games';
/**
* @param $query
* @param null $array
* @param string $endpoint
... | PHP | src/services/REST/GameService.php | Denbora/R_T_G_Services | mit | 2,636 | 115 | codeparrot/github-code |
a5e146411b98bb9aadb9ca837d0b7ae4d28b9514b5b732a510d6a7ba7fb06742 | 'use strict';
!function($) {
/**
* OffCanvas module.
* @module foundation.offcanvas
* @requires foundation.util.keyboard
* @requires foundation.util.mediaQuery
* @requires foundation.util.triggers
* @requires foundation.util.motion
*/
class OffCanvas {
/**
* Creates a new instance of an off-canvas wrappe... | JavaScript | js/foundation.offcanvas.js | PassKitInc/foundation-sites | mit | 10,884 | 392 | codeparrot/github-code |
0e7fb60fc5f5ddd5cbf9cb4428e23412f8e848a9a5f58b354681d610d6bd0dcc | /*
* Copyright (c) 2008-2018 SLIBIO <https://github.com/SLIBIO>
*
* 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
* ... | C++ | src/slib/ui/clipboard_gtk.cpp | SLIBIO/SLib | mit | 2,093 | 68 | codeparrot/github-code |
d5bbf34968b5a7b1f3a579cfa1f704f6967053424482496965712dfb4a68f641 | #pragma once
#include <string>
namespace pyconv {
namespace language {
namespace types{
namespace line {
using std::string;
class LineType {
public:
typedef int line_t;
static const line_t BLANK = 0;
static const line_t CLOSE_BRACE = 1;
static const line_t ELIF_STATEMENT = 2;
static const line... | C++ | src/PyConv/main/language/types/line/LineType.hpp | mattheuslee/PyConv | mit | 2,232 | 89 | codeparrot/github-code |
e2eeb7e29b7d41d231a98f6ba8f1f8187c8473377daf99cc352496a233c6d2ff | <?php
class Klevu_Boosting_Model_Boost extends Mage_CatalogRule_Model_Rule
{
protected $_eventPrefix = 'boosting';
protected $_eventObject = 'object';
protected function _construct()
{
$this->_init("boosting/boost");
}
public function getConditionsInstance()
{
return Mage::ge... | PHP | app/code/community/Klevu/Boosting/Model/Boost.php | klevu/klevu-smart-search-M1 | mit | 1,698 | 54 | codeparrot/github-code |
a5738ff3de46556a82bf228c38308a8ba84bc040fc8496452117baad2c06d518 | /*******************************************************************************
USART Peripheral Library Template Implementation
File Name:
usart_Receiver9Bits_Default.h
Summary:
USART PLIB Template Implementation
Description:
This header file contains template implementations
For Feature : ... | C | firmware/prototype - final/firmware/src/system_config/default/framework/peripheral/usart/templates/usart_Receiver9Bits_Default.h | mzeitler/openstrom | mit | 3,281 | 90 | codeparrot/github-code |
a56250e56dc8d1ca31282669e403f53475fc2ea8b609ba3ffce6c2aa9bc93d20 | $(document).ready(function(){
//enable the return time input and dropdown
$("#round").change(function() {
if(this.checked) {
console.log("Return data field open!");
$("#rD").removeClass('ui disabled input').addClass('ui input');
$("#rY").removeClass('ui disabled inp... | JavaScript | public/resources/main.js | yanx611/Flightonight | mit | 6,549 | 154 | codeparrot/github-code |
3c67a0500a622f6af967ec59180dc1c52048dfd6cbf443f17505361c9e69bd40 | # encoding: utf-8
require "phonology"
require File.expand_path("../spanish/orthography", __FILE__)
require File.expand_path("../spanish/phonology", __FILE__)
require File.expand_path("../spanish/syllable", __FILE__)
# This library provides some linguistic and orthographic tools for Spanish
# words.
module Spanish
e... | Ruby | lib/spanish.rb | norman/spanish | mit | 1,405 | 52 | codeparrot/github-code |
16c364d8ca28a7c37b071149f0a4ee91530b438e4a9705433be5a55c51b48899 | #include "math/lu.hh"
#include <cassert>
#include <cmath>
#include "math/vlist.hh"
LU::lu_t LU::lu(const Matrix& a)
{
assert(a.rows() == a.cols());
std::size_t n = a.rows();
auto l = Matrix::id(n);
auto u = a;
for (std::size_t j = 0; j < n; ++j)
for (std::size_t i = j + 1; i < n; ++i)
{
do... | C++ | src/math/lu.cc | obs145628/ai-cpp | mit | 2,463 | 98 | codeparrot/github-code |
814efcc5f72c2dfa64b3f56d4a140f593800faef73b8db92c20a052e21dee3f7 | use anyhow::{anyhow, Result};
use cnx::text::{Attributes, Text};
use cnx::widgets::{Widget, WidgetStream};
use std::fs::File;
use std::io::BufRead;
use std::io::BufReader;
use std::time::Duration;
use tokio::time;
use tokio_stream::wrappers::IntervalStream;
use tokio_stream::StreamExt;
/// Represents CPU widget used t... | Rust | cnx-contrib/src/widgets/cpu.rs | mjkillough/hue | mit | 4,869 | 154 | codeparrot/github-code |
4b867b3543c49535de2033b2aeba73fee45e08e45125c1264be0df3817c7c1d9 | ##
# $Id$
##
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##
require 'msf/core'
class Metasp... | Ruby | archive/exploits/linux/remote/9954.rb | hahwul/mad-metasploit | mit | 2,217 | 119 | codeparrot/github-code |
63999166a9718d6729e1589b3cff7cbee339dd421c2bac38e29d205f820d609d | <!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Node.js breaks into the Top 5 - Hacker News Hiring Trends (May 2018)</title>
<meta property="og:title" content="Node.js breaks into the Top 5 - Hacker News Hiring Trends (May 2018... | HTML | web/2018/may-node-js-breaks-into-top-5.html | ryanwi/hiringtrends | mit | 18,079 | 705 | codeparrot/github-code |
a7eea4752a9e4e8bff68ffb910464b446676ba02644fcf56ecaae1cb4a909676 |
angular.module('material.animations')
.directive('inkRipple', [
'$materialInkRipple',
InkRippleDirective
])
.factory('$materialInkRipple', [
'$window',
'$$rAF',
'$materialEffects',
'$timeout',
InkRippleService
]);
function InkRippleDirective($materialInkRipple) {
return function(scope, element, attr... | JavaScript | src/components/animate/inkCssRipple.js | mauricionr/material | mit | 5,058 | 176 | codeparrot/github-code |
162b7170728cf10225f1d325b4e915c580d83aeca4e0164d547c6604c685cb99 | #pragma once
// Qt.
#include <QWidget>
#include <QSize>
// Forward declarations.
class QVBoxLayout;
class QAbstractButton;
// Multi purpose view container to help with maximization, focus management, and titlebar support.
class rgViewContainer : public QWidget
{
Q_OBJECT
public:
rgViewContainer(QWidget* pPa... | C | RadeonGPUAnalyzerGUI/Include/Qt/rgViewContainer.h | GPUOpen-Tools/RGA | mit | 3,078 | 106 | codeparrot/github-code |
38dbca068457d98cc63f9683dadf9c87dc151ab8a9663f2c44212d24399d532f | import math
from service.fake_api_results import ALL_TITLES, OFFICIAL_COPY_RESULT, SELECTED_FULL_RESULTS
SEARCH_RESULTS_PER_PAGE = 20
def get_title(title_number):
return SELECTED_FULL_RESULTS.get(title_number)
def _get_titles(page_number):
nof_results = len(ALL_TITLES)
number_pages = math.ceil(nof_resu... | Python | service/api_client.py | LandRegistry/drv-flask-based-prototype | mit | 898 | 34 | codeparrot/github-code |
c874dbd56d5bf7e86832f4ac0ec472dcb7be846cfed59fb7f365ab871e1c5b85 | package pl.java.scalatech.basic;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.runners.MethodSorters.NAME_ASCENDING;
import java.util.List;
import java.util.Map;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.bea... | Java | src/test/java/pl/java/scalatech/basic/SimpleBetterSpringSolutionDaoTest.java | przodownikR1/hibernateKata | mit | 2,249 | 66 | codeparrot/github-code |
3ac36140074428a588fa68c8342bb0cecc2ec7c8ee902962edc1a684e522d1e4 | var boletesPinya = $.merge($.merge($.merge($("#cDB").find("path"), $("#cB4").find("path")), $("#cB3").find("path")), $("#cB2").find("path"));
var boletesTronc = $.merge($.merge($("#cB4").find("path"), $("#cB3").find("path")), $("#cB2").find("path"));
var usedTweets = {};
$(document).ready(function () {
$.each(b... | JavaScript | js/tweets.js | MPapus/QuanHiSomTots | mit | 5,021 | 182 | codeparrot/github-code |
1e35d76b5590c98084989103039143392d34d63d2821f1c0aa0cfca5dfaca206 | <?php
namespace prgTW\ErrorHandlerBundle\Command;
use prgTW\ErrorHandler\Error\ErrorException;
use prgTW\ErrorHandlerBundle\ErrorHandler;
use prgTW\ErrorHandler\Metadata\Metadata;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component... | PHP | Command/TestCommand.php | prgTW/error-handler-bundle | mit | 2,106 | 63 | codeparrot/github-code |
a50a7bb6844626ad61a9a3e194528f473e8b85a0008dda98a033199705886bf7 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>canon-bdds: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... | HTML | clean/Linux-x86_64-4.09.0-2.0.5/released/8.7.0/canon-bdds/8.9.0.html | coq-bench/coq-bench.github.io | mit | 7,103 | 176 | codeparrot/github-code |
3f382ed12ecab79564a75556c70539c13e90319d9cb5f3a910b6176039b8b637 | import datetime
import re
import sys
from collections import deque
from decimal import Decimal
from enum import Enum
from ipaddress import IPv4Address, IPv4Interface, IPv4Network, IPv6Address, IPv6Interface, IPv6Network
from pathlib import Path
from types import GeneratorType
from typing import Any, Callable, Dict, Typ... | Python | .vscode/extensions/ms-python.python-2021.5.842923320/pythonFiles/lib/jedilsp/pydantic/json.py | glenngillen/dotfiles | mit | 3,365 | 117 | codeparrot/github-code |
79ba1d3d098e3f765417370951db8bd9308f1b0064a1006dc2eba69b37bf8811 | <!DOCTYPE html>
<html lang="en">
<!-- Mirrored from themelize.me/demos/appstrap1.2/index.htm by HTTrack Website Copier/3.x [XR&CO'2010], Sun, 16 Jun 2013 11:12:50 GMT -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Flow</title>
<!-- Bootstrap CSS -->
<link ... | HTML | viewdiagram_timeLapse.html | ryansukale/svgwikiflow | mit | 16,402 | 499 | codeparrot/github-code |
3f0f7d801427d7502dabcd23bc9db320b709f4c87e4d68e696b066d9babaae56 | import ROOT
from math import pi, sqrt, pow, exp
import scipy.integrate
import numpy
from array import array
alpha = 7.2973e-3
m_e = 0.51099892
Z_Xe = 54
Q = 2.4578
def F(Z, KE):
E = KE + m_e
W = E/m_e
Z0 = Z + 2
if W <= 1:
W = 1 + 1e-4
if W > 2.2:
a = -8.46e-2 + 2.48e-2*Z0 + 2.... | Python | Thesis/scripts/make_bb_spectrum_plot.py | steveherrin/PhDThesis | mit | 5,583 | 217 | codeparrot/github-code |
0ee8ae29ea9ee3ebd70561ed638a65599703d08ea1c0691f861c57acf293eb0e | //
// Copyright (C) 2016, Vinodh Kumar M. <GreenHex@gmail.com>
//
// Weather icons from Forecast Font <http://forecastfont.iconvau.lt>.
//
#pragma once
#include <pebble.h>
#include "global.h"
#include "pbl_64_hex_colours.h"
#ifdef INCLUDE_WEATHER
typedef struct {
char glyph;
uint32_t colour;
} GLYPH;
typedef st... | C | src/c/weather_icons.h | GreenHex/Pebble.Anery | mit | 2,286 | 51 | codeparrot/github-code |
1dcd6e70d6393fe9afcb9298fe33dfb205fac5464b309e71c7b019935554cb43 | import { Component, OnInit, Inject } from '@angular/core';
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
import { Materiaal, Reservering } from '../../models/index';
import { Subscription } from 'rxjs/Subscription';
import { MaterialenService, ReserveringService } from '../../services/in... | TypeScript | UitleenSysteem/src/app/components/cart/cart.component.ts | GewoonMaarten/FEP-eindopdracht | mit | 2,736 | 101 | codeparrot/github-code |
58f5a8ce0857cad2e48a488d2190da19bb4f7328d93112c977b4529fe51fe40a | /*jslint browser: true*/
/*global Tangram, gui */
map = (function () {
'use strict';
var locations = {
'Yangon': [16.8313077,96.2187007,7]
};
var map_start_location = locations['Yangon'];
/*** Map ***/
var map = L.map('map',
{"keyboardZoomOffset" : .05, maxZoom: 20 }
);
... | JavaScript | main.js | mapmeld/mvoter-usage | mit | 4,919 | 147 | codeparrot/github-code |
cbdd216c9a84ad74dcf3c0a9dc5ea29583c308db7e6e29339b45134c0bc87de3 | /*
* 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 helper;
import bean.CorpDetat;
import java.util.List;
import javax.swing.JTable;
/**
*
* @author kamal
*/
p... | Java | src/helper/CorpDetatHelper.java | ismailBsd/cdc | mit | 1,011 | 41 | codeparrot/github-code |
cbab2e61579c70bb2061e0a8292b53353249d119069ddb6aad15369d30fe0b6e | #!/usr/bin/perl
use strict 'vars';
use warnings;
use diagnostics;
# Author: Rauan Sagit
# Beginning Date: 5 June 2013
# Name: tag_pgn_file.pl
# Purpose: take a PGN file containing one or more games as input.
# Write one material balance sheet per game as output. Use a new
# field called "Key = " to connect the PGN fil... | Perl | bin/tag_pgn_file.pl | testviking/chess-material-search | mit | 95,418 | 3,795 | codeparrot/github-code |
572ef75201739bde54b9224b4cbd37649b9ef8e703cb187e8938cb5bfacb8c63 | <?php
/**
* Abstract class InvoiceOcean
*
* API class to communicate with the InvoiceOcean API
*
* @abstract
* @author Chris Schalenborgh <chris@schalenborgh.be>
* @version 1.0
* @link https://github.com/InvoiceOcean/api
*
*/
abstract class InvoiceOcean
{
/**
* @var bool
*/
private $_debug =... | PHP | src/InvoiceOcean.php | cschalenborgh/php-invoiceocean | mit | 6,465 | 241 | codeparrot/github-code |
a0a7adfb5fbfa9e0d9221c7d1fa1dbaebe059da16586d7d9a8f9102c8737289f | package soap
import (
"bytes"
"crypto/tls"
"fmt"
"io/ioutil"
"net/http"
"encoding/xml"
"strings"
"encoding/json"
)
//BasicAuthGet adds basic auth and perform a request to path
func BasicAuthGet(path, username, password string) ([]byte, int, error) {
request, err := BasicAuthRequest(path, username, password)
... | GO | brocade/soap/soap.go | josh5276/brocade-adx-client | mit | 5,467 | 189 | codeparrot/github-code |
01ed63001cee8f164861fe9e590ddfee4a8af833a33643519b4b08eafed439ff | var height = window.innerHeight;
// console.log(height);
var main = document.getElementById('main');
var btn = document.getElementById("btn");
main.style.height = height + 'px';
btn.style.top = (height-90) + 'px';
document.getElementById('usr_name').onkeydown = function(e) {
e = e || event;
if(e.keyCode === 13) {
b... | JavaScript | public/javascripts/index.js | Jfmaily/Draw-Guess | mit | 1,093 | 45 | codeparrot/github-code |
6b6b4a23b63ab523ecba4944962a2d5febaf86ed247f4cbb5b0bc4a9a70283c2 | /*
* default/mouse-push-button.js
*/
"use strict";
var Q = require('q'),
Button = require('./../../button');
var MousePushButton = function (options) {
Button.prototype.constructor.call(this, options);
this.delay = options.delay > 0 ? options.delay : 0;
this.g = null;
if(typeof options.g === 'f... | JavaScript | lib/mouse/default/mouse-push-button.js | peutetre/mobile-button | mit | 3,393 | 118 | codeparrot/github-code |
9b74e082c83d7c5726b77f76ba6781ef1cc3914abe8ada8b9d5974d755352533 | # encoding: ascii-8bit
module Bitcoin::Gui
class TxView < TreeView
def initialize gui, replace = nil
super(gui, :tx_view, [
[GObject::TYPE_STRING, "Type"],
[GObject::TYPE_STRING, "Hash"],
[GObject::TYPE_STRING, "Value", :format_value_col],
[GObject::TYPE_INT, "Confi... | Ruby | lib/gui/tx_view.rb | mhanne/bitcoin-ruby-gui | mit | 2,132 | 70 | codeparrot/github-code |
38f728b510851d225f6deaeebf055394af4e7a30f021a207ae0f332207647e0c | import { privatize as P } from '@ember/-internals/container';
import { getOwner } from '@ember/-internals/owner';
import { guidFor } from '@ember/-internals/utils';
import {
addChildView,
OwnedTemplateMeta,
setElementView,
setViewElement,
} from '@ember/-internals/views';
import { assert, debugFreeze } from '@e... | TypeScript | packages/@ember/-internals/glimmer/lib/component-managers/curly.ts | intercom/ember.js | mit | 18,111 | 601 | codeparrot/github-code |
9d65ddbafb3899b9e96b37e0a1cc08a37b2caa3eb327d785ce622901d0fd33e6 | class SubscriptionTracking(object):
def __init__(self, enable=None, text=None, html=None, substitution_tag=None):
self._enable = None
self._text = None
self._html = None
self._substitution_tag = None
if enable is not None:
self.enable = enable
if text is... | Python | sendgrid/helpers/mail/subscription_tracking.py | galihmelon/sendgrid-python | mit | 1,603 | 64 | codeparrot/github-code |
36c23c803c223aa5aeabe2b0561a16b2f98a075070daa955d08778b71bb4e12c | <?php defined('BASEPATH') OR exit('No direct script access allowed');
class Auction extends CI_Controller {
public $id_auction;
public $tabNav;
public function __construct(){
parent::__construct();
if(!$this->session->userdata('admin')){
redirect(site_url());
}
$this->load->model('auction_model','am'... | PHP | application/modules/auction/controllers/auction.php | muarif/regas | mit | 28,463 | 839 | codeparrot/github-code |
b8c9444ad19c2018a4108aa6f135a1f041284264b3f5c244a2fe6ce64b03574b | /*!
* \file
* \brief Class module::Decoder_turbo.
*/
#ifndef DECODER_TURBO_HPP_
#define DECODER_TURBO_HPP_
#include <vector>
#include <memory>
#include <mipp.h>
#include "Tools/Code/Turbo/Post_processing_SISO/Post_processing_SISO.hpp"
#include "Module/Interleaver/Interleaver.hpp"
#include "Module/Decoder/Decoder_S... | C++ | include/Module/Decoder/Turbo/Decoder_turbo.hpp | aff3ct/aff3ct | mit | 2,569 | 76 | codeparrot/github-code |
e442bf530ea9a8a0157aca57cfd145db6359682d62669284e2e6aa786bfa9367 | ๏ปฟusing SSPES.BD;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
namespace SSPES.Models {
public class VariableModel {
private Conexion con = new Conexion();
protected string nombre { get; set; }
protected string tipoDato { get; set; ... | C# | SSPES/SSPES/Models/VariableModel.cs | manuelstuner/SSPES | mit | 3,400 | 80 | codeparrot/github-code |
655e797fd2f322c788a975623b20784c6feff2fe1d41c0f4b28f344a93c675c8 | 'use strict'
const { spawn } = require('@malept/cross-spawn-promise')
const which = require('which')
function updateExecutableMissingException (err, hasLogger) {
if (hasLogger && err.code === 'ENOENT' && err.syscall === 'spawn mono') {
let installer
let pkg
if (process.platform === 'darwin') {
in... | JavaScript | src/spawn.js | unindented/electron-installer-windows | mit | 913 | 36 | codeparrot/github-code |
a71d1b5cc65b2c6bee0ceff640fa12ebd842d157d2518141492b7cf0cad1e5fe | import novaclient
from novaclient.exceptions import NotFound
import novaclient.client
from keystoneauth1 import loading
from keystoneauth1 import session
import neutronclient.v2_0.client
import cinderclient.v2.client
from osc_lib.utils import wait_for_delete
import taskflow.engines
from taskflow.patterns import line... | Python | pebbles/services/openstack_service.py | CSC-IT-Center-for-Science/pouta-blueprints | mit | 23,846 | 665 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.