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 |
|---|---|---|---|---|---|---|---|---|
cb9202524231509b42943b647ae8f20df62a8234f94239bc072e3a10463496bd | <?php
/**
* TravelPAQ Connect Api
*
* @package TravelPAQ
*
* @author TravelPAQ <malves@travelpaq.com.ar>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace TravelPAQ\PackagesAPI\Models;
/**
* Class PlaceFare
*
*... | PHP | src/Models/PlaceFare.php | travelpaq/Connect-SDK-PHP | mit | 1,691 | 66 | codeparrot/github-code |
8504e0345554691acc16c4178e7425496fd8bd1dcdab973fba68a89f28588a09 | // run `node syncSchemaDocs.js` from the lib folder to update/add the schema docs that we specify here
// note the relative path to nano module from where this doc is stored.
// currently this script requires the context docs to already exist in couchdb
// if creating/defining a brand new schema doc - use futon or cu... | JavaScript | site/lib/syncSchemaDocs.js | cameronmclean/hyperPatterns | mit | 3,709 | 149 | codeparrot/github-code |
9eaf318a0a98035657c3f98a78810bc1beb199968e83b77db3a61f9719483015 | # backports.functools_lru_cache v1.5
# https://github.com/jaraco/backports.functools_lru_cache
# Copyright (c) 2014-2018 Jason R. Coombs
#
# 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 wit... | Python | geomdl/functools_lru_cache.py | orbingol/NURBS-Python | mit | 8,538 | 209 | codeparrot/github-code |
0127cd7fb5a1d7f211f420d0337cf091a6710e667fc4e2d273af9e758e9b0d7f | const ESCAPES = {
u: (flags) => {
flags.lowercaseNext = false
flags.uppercaseNext = true
},
l: (flags) => {
flags.uppercaseNext = false
flags.lowercaseNext = true
},
U: (flags) => {
flags.lowercaseAll = false
flags.uppercaseAll = true
},
L: (flags) => {
flags.uppercaseAll = fal... | JavaScript | lib/insertion.js | atom/snippets | mit | 2,274 | 96 | codeparrot/github-code |
8c09bbc22cc6c86375306616459c78c5009a1ee32ae162712b51487f0852ff7d | package mono;
import java.io.*;
import java.lang.String;
import java.util.Locale;
import java.util.HashSet;
import java.util.zip.*;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.res.AssetManager;
import android.util.Log;
import mono.and... | Java | ChiroAppDev/obj/Release/android/src/mono/MonoPackageManager.java | Chirojeugd-Vlaanderen/ChiroApp | mit | 1,976 | 75 | codeparrot/github-code |
7930b0ebbe540e5ecb44f3e0ac1569e2b5b0bf7cd2053c55588395af448c0cd8 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Lerdo Project</title>
<!-- Bootstrap core CSS -->
<link href... | HTML | orchard.html | amazingjump/LedroProject | mit | 5,007 | 129 | codeparrot/github-code |
cc750236fec225c3fec5cc7f3b07e88dbab5b714aa5e26db5a6483de758de96d |
angular
.module('platoon.event', [])
.controller('EventController', ['$scope', '$location', '$filter',
function($scope, $location, $filter)
{
$scope.eventTypes = [{
label: 'Private',
type: 'private'
},{
label: 'Company',
type: 'company'
},{
label: 'Wedding',
type: 'wedd... | JavaScript | web/app/event/EventController.js | platoon-djs/admin-platoon-se | mit | 1,556 | 67 | codeparrot/github-code |
801320bbe718acc15816b85086fac35f07cfb5f589846311bfa74dabf334f7e9 | 'use strict';
/**
* This contains a promisified confirmation question
*/
module.exports = function(kbox) {
// Npm modules
var inquirer = require('inquirer');
// Kbox modules
var Promise = require('bluebird');
/*
* Make sure the user wants to proceed with the install/update
*/
return function(st... | JavaScript | plugins/kalabox-core/steps/authorize.js | ManatiCR/kalabox | mit | 913 | 46 | codeparrot/github-code |
102573bfb72edad6591ea7c9ff2cbf9229ee82d8715b30bf717811b2fe93b101 | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Web.Http;
using System.Web... | C# | UseCaseTranslator.WebAPI/Areas/HelpPage/HelpPageConfigurationExtensions.cs | east-pmo/UseCaseTranslator | mit | 24,148 | 468 | codeparrot/github-code |
bd2f45ee831286443f221b9ac3eb118e507ea0129f8a4874949af4c33ae71a36 | module Kinvey
class DataStore
attr_reader :collection_name
def initialize(client, name)
@client = client
@collection_name = name
end
def create(entity)
resp = @client.conn.post do |req|
req.url "/appdata/#{@client.appKey}/#{@collection_name}"
req.body = entity.to_h... | Ruby | lib/kinvey/datastore.rb | aYoshikazuNakase/kinvey-rails | mit | 1,799 | 85 | codeparrot/github-code |
29ba27ca34ea2d30629d6c42f025121ee4879084077e6e1d80e70744ce3227ce | import React from 'react';
import {withStyles} from '@material-ui/core/styles';
import Popover from '@material-ui/core/Popover';
import {VisualQueryManager, PastebinContext} from './Pastebin';
import GraphicalQuery from '../components/GraphicalQuery';
const animationId = `scr-a-graphicalHighlight-${Date.now()}`;
const... | JavaScript | scr-app/src/containers/GraphicalMapper.js | tlatoza/SeeCodeRun | mit | 10,864 | 258 | codeparrot/github-code |
e7314c24e9f9b7918c2d8acd204a6092c1d38f9f0e27a5f102bfcb9f776f6efc | #pragma once
// Helper functions for error handling
// 2.5.6 Error handling
// 3.6 Error handling
#include "SYCL/detail/common.h"
#include "SYCL/detail/debug.h"
#include "SYCL/detail/error_code.h"
#include "SYCL/exception.h"
namespace cl {
namespace sycl {
// Forward declaration
class context;
namespace detail {
... | C | sycl-gtx/include/SYCL/error_handler.h | ProGTX/sycl-gtx | mit | 2,113 | 76 | codeparrot/github-code |
d3a16297c86a43ee33dcaeafab4f899ce720e8dded3b38c093c4a1f98d6c9120 | /**
* butterItemFilterField is a jQuery plugin that filters html element with the css class <code>filterable-item</code>.
* It is applied to the search field.<br/>
* If no filter text is entered, then all filterable-items are displayed. Else the search field value is matched against <b>all</b> text contained by a fi... | JavaScript | components/src/main/resources/META-INF/resources/butterfaces-js/butterfaces-clientSideFilter.jquery.js | ButterFaces/ButterFaces | mit | 2,437 | 61 | codeparrot/github-code |
16d567c250cca78d843b426dce492f11d7f727f5a314c1425d397931a75074af | <?php
/* TwigBundle:Exception:traces_text.html.twig */
class __TwigTemplate_4eb2e00793bfca33ada5a91e4918ba1f66207162c078a7055fab91d03b0c776f extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = a... | PHP | app/cache/dev/twig/4e/b2/e00793bfca33ada5a91e4918ba1f66207162c078a7055fab91d03b0c776f.php | Nunu05/Symphony | mit | 3,350 | 78 | codeparrot/github-code |
e6a63da33bcb6c7665f3c8662a8fc41c7355a28ee3d258320ff0699ae7eacefc | package com.resources;
import java.util.Random;
import com.lac.annotations.Resource;
@Resource
public class Barbero2 {
int n = 2;
int countClientes = 0;
int cantMax = 1;
int cantMin = 0;
Random rand = new Random();
public void sentarCliente() throws InterruptedException{
Random rand = new Random();
cou... | Java | Barberia/src/com/resources/Barbero2.java | LAC-UNC/ChimpStudyCases | mit | 2,532 | 63 | codeparrot/github-code |
de11d3d28d92a6d23fc612446122d941703f5f0398f9b7dcb0b2ccd6dfb72419 | import socket, threading, thread, os, sys, time
def create(settings):
return IrcBot(settings)
# Revision, yolo
class IrcBot:
_settings = {}
_debug = None
_client = "ArmedGuys IRC Bot"
_version = "0.5"
_env = "Python"
_socket = None
# Channels the bot is in
_channels = []
# Messag... | Python | pyircbot.py | ArmedGuy/pyircbot | mit | 15,149 | 399 | codeparrot/github-code |
2065b5b56eee111c66ce2d6e8a2fdd8f74ef8e5add913632c3ecbb6bb2dd0080 | /*
* Copyright (c) 2010 Matt Fichman
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publis... | C++ | compiler/Parser.hpp | mfichman/jogo | mit | 5,533 | 174 | codeparrot/github-code |
dd0b5b116281adc075f15de72753e655c5a3b0378dfba8691621571a4f11f6ef | import { Component, View } from 'angular2/core';
import { Router, RouterLink } from 'angular2/router';
import { CORE_DIRECTIVES, FORM_DIRECTIVES } from 'angular2/common';
import { Http, Headers } from 'angular2/http';
import { contentHeaders } from '../common/headers';
let styles = require('./login.css');
let templa... | TypeScript | src/login/login.ts | vijayKriz/kouponifyui | mit | 1,135 | 41 | codeparrot/github-code |
4afe07ade52ebbe319e99a660df6739615ca9fc488824b99c53e152a414e17ec | import { AssetCredentials } from "./Gemini/getGeminiCredentialsForEnvironment"
export { getGeminiCredentialsForEnvironment } from "./Gemini/getGeminiCredentialsForEnvironment"
export { createGeminiAssetWithS3Credentials } from "./Gemini/createGeminiAssetWithS3Credentials"
export { getConvectionGeminiKey } from "./Gemi... | TypeScript | src/app/Scenes/Consignments/Submission/geminiUploadToS3.ts | artsy/eigen | mit | 2,843 | 74 | codeparrot/github-code |
924e2c44a3d98f08ae20c908513845e70e2c98ad5611090fdca2b71eb20e4dba | function ConnectionList(){
this.client = {};
this.add = function(id, value){
if( id )
this.client[id] = value;
else
throw "Não da pra adicionar um valor [ " + id + " ] ao dicionario hash;";
}
this.remove = function(id){
delete this.client[... | JavaScript | api/myLibs.js | rhuanvcsantiago/TestesNodeAzure | mit | 1,742 | 84 | codeparrot/github-code |
492406d93a1f58ea98b6ee36b32d73c5f010ac328fb35a14e7afe636fb717fe6 | #include "ZhongCai.h"
#include "..\GameGrail.h"
#include "..\UserTask.h"
ZhongCai::ZhongCai(GameGrail *engine, int id, int color): PlayerEntity(engine, id, color)
{
setCrystal(2);
GameInfo game_info;
Coder::energyNotice(id, gem, crystal, game_info);
engine->sendMessage(-1, MSG_GAME, game_info);
tokenMax... | C++ | DiceGameServer/role/ZhongCai.cpp | chntujia/CodfiyAsteriatedGrailServer | mit | 8,299 | 323 | codeparrot/github-code |
fe26532fd37bdf69af0fb34ccb6606b4a0ce0756634dc3a7d2b45604e276f126 | #!/bin/bash
#
# Install cmake.
#
SCRIPT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source ${SCRIPT_ROOT}/funcs-make.sh
function cmake_url()
{
echo "https://cmake.org/files"
}
function cmake_all_versions()
{
curl -sL $(cmake_url) | grep -E -o ">v[0-9\.]+[0-9]" | grep -E -o "[0-9\.]+[0-9]" | ... | Shell | tools/linux/funcs-cmake.sh | woutdenolf/spectrocrunch | mit | 3,865 | 177 | codeparrot/github-code |
37e92ef07647999b50a4c17ca71f75bfe15ada5734ad3853ec66426bc7fef74a | // =============================
// Email: info@ebenmonney.com
// www.ebenmonney.com/templates
// =============================
import { Component, ViewEncapsulation, OnInit, OnDestroy, ViewChildren, AfterViewInit, QueryList, ElementRef } from '@angular/core';
import { Router, NavigationStart } from '@angular/router';... | TypeScript | QuickApp/ClientApp/src/app/components/app.component.ts | emonney/QuickApp | mit | 10,284 | 356 | codeparrot/github-code |
880ed5fa74bd74b1fe882d45523fc7d5eda770b13958f7fa84263d953e3d3dc1 | require 'securerandom'
module ASpaceImport
module Utils
# Fake an ID to create URIs
def self.mint_id
"import_#{SecureRandom.uuid}"
end
def self.get_property_type(property_def)
# subrecord slots taking more than one type
if property_def['type'].is_a? Array
if ((property_de... | Ruby | plugins/ead_load/backend/converters/lib/utils.rb | UoEMainLibrary/ASPlugins | mit | 5,054 | 216 | codeparrot/github-code |
3bae50146db3a96e66a6ae5ce8503cf347fc397010142fcfbe5b70695e6d8c7c | <?php
namespace WellnessCoreBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Doctrine\ORM\EntityRepository;
use WellnessCoreBundle\Entity\User;
class UserAdminType extends AbstractType
{
/**
... | PHP | src/WellnessCoreBundle/Form/UserAdminType.php | heyvaertyohan/Welness2015 | mit | 4,538 | 120 | codeparrot/github-code |
7b0043926e9d17d48be855ce4699e55e3e3a13f067dc6ac092ad543131a47f3b | from django.conf import settings
from django.contrib.auth import logout
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.utils.translation import ugettext_lazy as _
from django.views.generic.base import View, TemplateView
from socialregistration.clients.oauth import ... | Python | socialregistration/views.py | vinco/django-socialregistration | mit | 10,506 | 297 | codeparrot/github-code |
640553e51a5fa74542d10ae666f51399a72624a63566ba796beb663bfb214adc | /*
* Device.cs - Developed by Max Röhrl for Transformer Toolkit
*/
using System;
using System.Linq;
namespace Toolkit
{
public class Device
{
/// <summary>
/// Android version of the latest Asus firmware for TF700T/TF300T/ME301T
/// </summary>
private const string MinAnd... | C# | Toolkit/Classes/Device.cs | blackmamba97/Transformer-Toolkit | mit | 2,014 | 50 | codeparrot/github-code |
5ef195b72bb35be735230dde17de92301f771ca5a703e741d1ca1cf767dab1e6 | package git
import (
"fmt"
"os"
"github.com/Originate/git-town/src/command"
"github.com/Originate/git-town/src/util"
)
// EnsureDoesNotHaveConflicts asserts that the workspace
// has no unresolved merge conflicts.
func EnsureDoesNotHaveConflicts() {
util.Ensure(!HasConflicts(), "You must resolve the conflicts b... | GO | src/git/status.go | Originate/git-town | mit | 2,117 | 63 | codeparrot/github-code |
59b2ca6b29ea0d452e3e534f8974ef481f66e840457a0b3cc657e6267311cd68 | #region Licence
/****************************************************************************
Copyright 1999-2018 Vincent J. Jacquet. All rights reserved.
Permission is granted to anyone to use this software for any purpose on
any computer system, and to alter it and redistribute it, subject
to... | C# | WmcSoft.Core/Security/Cryptography/CRC32.cs | vjacquet/WmcSoft | mit | 2,075 | 64 | codeparrot/github-code |
4821dcaf9e35f97bb5b2865f5de94876f4b79d364e4f1165db93c94308da4c83 | /**
@module ember
@submodule ember-htmlbars
*/
/**
An HTMLBars AST transformation that replaces all instances of
```handlebars
{{#with foo.bar as bar}}
{{/with}}
```
with
```handlebars
{{#with foo.bar keywordName="bar"}}
{{/with}}
```
@private
@class TransformWithAsToHash
*/
function Transf... | JavaScript | packages/ember-htmlbars/lib/plugins/transform-with-as-to-hash.js | raycohen/ember.js | mit | 1,496 | 68 | codeparrot/github-code |
2ce92edc4131cba5e87809495c7d079286047aa40be104c223c2db67656f5d50 | # -*- coding: utf-8 -*-
import configs.module
import wsgiref.simple_server
import select
import json
import bot
from urllib import parse
import irc.fullparse
import irc.splitparse
import os.path
def init(options):
m = configs.module.Module(__name__)
if 'wserver' in options['server'].state:
del options... | Python | modules/core/api/__init__.py | shacknetisp/fourthevaz | mit | 3,378 | 103 | codeparrot/github-code |
8afbb01833fd410a5ab81725516a619b0934f5c0aecaf4b073c112c7b0af71c0 | var clientElasticsearch = require("../../../Elasticsearch/ElasticsearchClient");
var ElasticsearchParser = require("../../../Elasticsearch/ElasticsearchParser");
var Q = require('q');
var getSuggestions=function(){
return clientElasticsearch.search({
"index":"source",
"type":"zabbix_host",
"body":{
"query" :... | JavaScript | modules/ConsistenciesLauncher/consistency/host_without_zabbix_mapping/suggestions.js | Kaenn/Geko | mit | 916 | 40 | codeparrot/github-code |
ac27b6a9368a9e6567c981e3e5b9e5e170d086c377076e10477084f06589b72e | package com.swandiggy.poe4j.gui.log;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.ext.spring.ApplicationContextHolder;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @author Jacob Swanson
* ... | Java | poe4j-gui/src/main/java/com/swandiggy/poe4j/gui/log/LogConfig.java | Jacob-Swanson/poe4j | mit | 925 | 34 | codeparrot/github-code |
f52dfc7425b19f026fbf6ddb6855d78fc80ed2a9e88b18c0f78c953051d5864b | package com.javarush.task.task09.task0913;
import java.io.FileNotFoundException;
import java.net.URISyntaxException;
/*
Исключения. Просто исключения.
*/
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
try {
method1();
... | Java | 1.JavaSyntax/src/com/javarush/task/task09/task0913/Solution.java | Sukora-Stas/JavaRushTasks | mit | 898 | 37 | codeparrot/github-code |
be03c248fbbbc3f30c518d33ad528cc8b9f9289b814f6edc26160121edeac859 | package seedu.tache.storage;
import java.io.IOException;
import java.util.Optional;
import java.util.logging.Logger;
import com.google.common.eventbus.Subscribe;
import seedu.tache.commons.core.ComponentManager;
import seedu.tache.commons.core.LogsCenter;
import seedu.tache.commons.events.model.TaskManagerChangedEve... | Java | src/main/java/seedu/tache/storage/StorageManager.java | CS2103JAN2017-T09-B4/main | mit | 3,735 | 107 | codeparrot/github-code |
3d0b6b7f233952da39754c0da9eb2f03f6ee2a97d7fb8cce33944abda2bb46fe | package org.bitcoins.spvnode.serializers.messages.control
import org.bitcoins.core.number.UInt32
import org.bitcoins.core.util.BitcoinSUtil
import org.bitcoins.spvnode.messages.control.NodeNetwork
import org.scalatest.{FlatSpec, MustMatchers}
/**
* Created by chris on 6/2/16.
*/
class RawNetworkIpAddressSerialize... | Scala | src/test/scala/org/bitcoins/spvnode/serializers/messages/control/RawNetworkIpAddressSerializerTest.scala | Christewart/bitcoin-s-spv-node | mit | 1,209 | 33 | codeparrot/github-code |
8e22d1c96002685737e2fe24d6e215eabe4ef9f60228f226c3bd7582f14eb80b | /// <reference path="ace.d.ts" />
var assert: any;
var editor = ace.edit("editor");
editor.setTheme("ace/theme/monokai");
editor.getSession().setMode("ace/mode/javascript");
editor.setTheme("ace/theme/twilight");
editor.getSession().setMode("ace/mode/javascript");
editor.setValue("the new text here"); // or sessio... | TypeScript | ace/ace-tests.ts | RonnieHegelund/DefinitelyTyped | mit | 11,211 | 454 | codeparrot/github-code |
60e1d32e7db2dddbe824f201a5e62689f34fafcf65d4fe1f52b5f015637e4055 | /**
* See Copyright Notice in picrin.h
*/
#include "picrin.h"
static void
setup_default_env(pic_state *pic, struct pic_env *env)
{
pic_put_variable(pic, env, pic_obj_value(pic->sDEFINE_LIBRARY), pic->uDEFINE_LIBRARY);
pic_put_variable(pic, env, pic_obj_value(pic->sIMPORT), pic->uIMPORT);
pic_put_variable(pic,... | C | extlib/benz/lib.c | ktakashi/picrin | mit | 4,713 | 211 | codeparrot/github-code |
07f4123b5e646c0d40b445cc4aa3665f657338d005cde54f6d30bdf58eebdef6 | #pragma once
#include "Application.h"
namespace Lab5Master
{
Application::Application(HINSTANCE hInst, int nCmdShow)
{
AppInstance = hInst;
CmdShow = nCmdShow;
GlobalWindow = nullptr;
LoadString(AppInstance, IDS_TITLE, AppTitle, MAX_STR);
LoadString(AppInstance, IDC_MAINWINDOWCLASS, MainWindowClass, MAX_S... | C++ | Lab5Master/Application.cpp | kinpa200296/SP_labs | mit | 1,462 | 72 | codeparrot/github-code |
7c8f72027aa52cdf4ca3365f2f623abbb940b6c282cff42232e1b460af57e3d8 | <?php
/*
Developer: dionyziz
*/
// replacement as an icon for things that we don't have an icon for
$arrow = "<span class=\"arrow\">»</span> ";
function PopupMenu( $items ) {
$popupid = uid();
$pid = "popup_" . $popupid;
?><div id="<?... | PHP | gui.php | dionyziz/blogcube | mit | 13,809 | 418 | codeparrot/github-code |
92336ab59d7d77f9684b2693f1657072347db8dbc5ac3b0404fe8789ff6ea746 | # Write a function to delete a node (except the tail) in a singly linked list,
# given only access to that node.
#
# Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node
# with value 3, the linked list should become 1 -> 2 -> 4 after calling your function.
#
# time: O(1)
# space: O(1)
# Defini... | Python | LinkedList/deleteNode.py | RobinCPC/algorithm-practice | mit | 1,861 | 73 | codeparrot/github-code |
038cad9c13e331eb1b207a3f0b794077fec5458adde7c6308e218dd64ff4b771 | local function serialize(v,opts)
if not opts then opts = {} end
if not opts.notype then opts.notype = {} end
if not opts.nokey then opts.nokey = {} end
if not opts.lv then opts.lv=0 end
if opts.sort and type(opts.sort)~='function' then opts.sort = function(a,b) if type(a[1])==type(b[1]) then retu... | Lua | lib/serialize.lua | Phrogz/LXSC | mit | 2,304 | 73 | codeparrot/github-code |
6724f311468c56fe1b396a9d5a2210223f04bec52b26bdaba1b7cfc9eb2a83a0 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pixeez.Objects
{
public class UsersFavoriteWork
{
[JsonProperty("id")]
public long? Id { get; set; }
[JsonProperty("comment")]
... | C# | Pixeez/Objects/UsersFavoriteWork.cs | CryADsisAM/CryPixiv | mit | 3,422 | 108 | codeparrot/github-code |
d818514066f1b0fcbb068b836ceb528416f6b07b968306c103faf35b7c632ed9 | <?php
/*
* Part of tivars_lib
* (C) 2015-2017 Adrien 'Adriweb' Bertrand
* https://github.com/adriweb/tivars_lib
* License: MIT
*/
namespace tivars\TypeHandlers;
include_once 'ITIVarTypeHandler.php';
// Type Handler for type 0x20: ExactRealPi
class TH_0x20 implements ITIVarTypeHandler
{
const dataByteCount =... | PHP | src/TypeHandlers/TH_0x20.php | adriweb/tivars_lib | mit | 1,361 | 47 | codeparrot/github-code |
6dadcc9ba27a7b48cf79faf26748e5a3b538e8bab4581e361efbc36511ab2226 | const getExport = require('../services/get-export')
const getSubNav = require('../services/get-sub-nav')
const organisationUnit = require('../constants/organisation-unit')
const authorisation = require('../authorisation')
const workloadTypes = require('../constants/workload-type')
const getLastUpdated = require('../ser... | JavaScript | app/routes/export.js | ministryofjustice/wmt-web | mit | 6,448 | 167 | codeparrot/github-code |
58bf35c8815e5a20c546b3ac3fc7ce306b5aa6a9fbae7193a0dec56bb5f608b9 | /**
* @module components
*
*/
import $ from 'jquery';
import { assert } from '@ember/debug';
import { dasherize } from '@ember/string';
import EmberObject, { get, set } from '@ember/object';
import { isNone, isEmpty } from '@ember/utils';
import Component from '@ember/component';
import { inject as service } from '@... | JavaScript | addon/components/bc-tabs.js | busybusy/webapp-busy-components | mit | 5,241 | 232 | codeparrot/github-code |
607ea7e8f69c355228cb40603c4291eaf64c0a8d660a3491f99ff2a40f81f7e9 | /**
* @module lib/tool/native
*/
import Tool from 'lib/tool/base';
import os from 'os';
/**
* @class
* @extends Tool
*/
class Native extends Tool {
/**
* Creates a native tool
*/
constructor() {
super();
this.command = 'echo';
}
/**
* Generates a native command give... | JavaScript | src/lib/tool/native/index.js | withinboredom/tyche | mit | 2,997 | 136 | codeparrot/github-code |
28a60d0d649ae77d9918a56be5917e77506d237e974ebf9530f8e036b6250d70 | <!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">
<title>Statistics: Line counts for each chapter | Programming Language Foundations in Agda
</title><!-- Begin Jekyll SEO tag v2... | HTML | versions/19.08/Statistics/index.html | wenkokke/sf | mit | 9,390 | 239 | codeparrot/github-code |
caf2a4c64155155629ea8b9ce732cd6a578bcbef730d10d6b54990d3a4f55fcf | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="coqdoc.css" rel="stylesheet" type="text/css"/>
<title>Induction: Proof by Indu... | HTML | Induction.html | 0x00-pl/SFCT | mit | 60,538 | 888 | codeparrot/github-code |
922de2bbf5630c5045de3e3abf7b08692be98a47d05980d0f7f1d68db9b9e2e0 | // Copyright (c) 2011-2013 The Testcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef Testcoin_QT_PEERTABLEMODEL_H
#define Testcoin_QT_PEERTABLEMODEL_H
#include "main.h"
#include "net.h"
#include <QAb... | C | src/qt/peertablemodel.h | L5hunter/TestCoin | mit | 2,061 | 82 | codeparrot/github-code |
e7dc977123450024b782bd32e41c6a83d8472e50a58bb4c98dbefc0ec4319f40 | // this will only run locally to test the connection to foursquare
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import FoursquareConnection from './connect';
import config from 'config';
import nock from 'nock';
chai.should();
chai.use(chaiAsPromised);
const expect = chai.expect;
describ... | JavaScript | src/models/external/foursquare/connect.spec.local.js | SomethingSexy/cf-venue-api | mit | 3,386 | 98 | codeparrot/github-code |
edb91c4dfce06445c63477aa1326126d05abcbf918268462fb7c0fac4ad20cad | #ifndef SOUNDMANAGER_H
#define SOUNDMANAGER_H
#include "portaudio.h"
#include "sndfile.h"
#include <vector>
#include <string>
#define SAMPLE_RATE 44100
#define NUM_MUSICS 32
#define PAUSE_FADE_RATE (0.996f)
#define PAUSE_FADE_LIMIT (0.01f)
#define UPDATE_GAIN_RATE (0.00005f)
#define UPDATE_BALANCE_RATE (0.0001f)
#d... | C | gm_music_lib/src/soundmanager.h | karlak/GM_SoundManager_electron | mit | 3,215 | 90 | codeparrot/github-code |
90036597946962cc4c97f1d4aacf8f8eb7eff1505a0ba778ec894a7e05e5c44e | <div class="page-header">
<ul>
<?= $this->hook->render('template:project-list:menu:before') ?>
<?php if ($this->user->hasAccess('ProjectCreationController', 'create')): ?>
<li>
<?= $this->modal->medium('plus', t('New project'), 'ProjectCreationController', 'create') ?>
... | PHP | app/Template/project_list/listing.php | mrkafk/mykanboard | mit | 1,887 | 48 | codeparrot/github-code |
5b517b62a3cfb3cec30232329a8e89b4edd409701e1408ddb852916c2dd4b544 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>your local Caffeine filesystem</title>
<link rel="icon" type="image/png" href="pictures/context.png">
<link rel="stylesheet" href="css/squeakjs.css">
<script src="js/squeakjs/squeak.js"></script>
<script>
function runSqueak(imageName) {
sqCanvas.st... | HTML | files/index.html | ccrraaiigg/ccrraaiigg.github.io | mit | 7,452 | 179 | codeparrot/github-code |
50f8e4a1b59c3787a3aed915dd16ffdfc307da9845cf133dfbf5394cf7c4e570 | ///
/// @file retdec/decompiler.cpp
/// @copyright (c) 2015 by Petr Zemek (s3rvac@gmail.com) and contributors
/// @license MIT, see the @c LICENSE file for more details
/// @brief Implementation of the decompilation service.
///
#include "retdec/decompilation.h"
#include "retdec/decompilation_arguments.h"
#... | C++ | src/retdec/decompiler.cpp | s3rvac/retdec-cpp | mit | 2,483 | 91 | codeparrot/github-code |
c54e7ddfda3bb4fe939c541f2ea29112d982613ba7711c341d796788b55f9aae | <?php
namespace Frogsystem\Metamorphosis\Providers;
use Frogsystem\Spawn\Container;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Zend\Diactoros\Response;
use Zend\Diactoros\ServerRequestFactory;
/**
* Class HttpServiceProvider
* @package Frogsystem\Metamorphosis\Providers... | PHP | src/frogsystem/metamorphosis/Providers/HttpServiceProvider.php | frogsystem/metamorphosis | mit | 893 | 34 | codeparrot/github-code |
4b0842edef842f568eb5603139610144ff9c8d6a354b0754e67ebdf95431177b | from __future__ import absolute_import, print_function
import os
import pwd
import grp
import sys
import subprocess
from .command import Command
class AuthorizedKeysCommand(Command):
"""
Get authorized keys for a user using NSS and SSSD.
"""
@staticmethod
def configure_parser(parser):
"... | Python | ssh_ldap_utils/authorized_keys.py | CtrlC-Root/ssh-ldap-utils | mit | 2,487 | 93 | codeparrot/github-code |
703dc73271ea2db635ee71306b255cc9f1a80196ba4ba3a9ce90aaa2c01e2385 | /**
* @file HGAlphaAnimation.cpp
* @brief Alpha animation implementation
*
* @author Master.G (MG), mg@snsteam.com
*
* @internal
* Created: 2013/01/15
* Company: SNSTEAM.inc
* (C) Copyright 2013 SNSTEAM.inc All rights reserved.
*
* This file is a part of Hourglass Engine Project.
*
* The co... | C++ | Hourglass/original/HGAnimation/HGAnimations/HGAlphaAnimation.cpp | master-g/hourglass | mit | 1,910 | 79 | codeparrot/github-code |
0f9dc93a7c21818333fe45624908aad871a1ff54698acd5811f922f9ea2d436b |
namespace Org.Cen.RobotManager.Pages
{
using Devices.Motion.Pid.Com;
using Devices.Pid;
using Devices.Pid.Com;
using OxyPlot;
using OxyPlot.Series;
using System.Windows;
using System.Windows.Controls;
/// <summary>
/// Interaction logic for MotionParameters.xaml
/... | C# | RobotManager/RobotManager/Pages/MotionParametersControl.xaml.cs | svanacker/cen-info-kinect | mit | 3,576 | 86 | codeparrot/github-code |
cafef9f270e88f5afaf350ce1de1b1272c1075a47ffab268dfb1069a1eab2a09 | // @flow
//
// Copyright (c) 2018 DDN. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
import highland from "highland";
import angular from "angular";
import { querySelector } from "./dom-utils.js";
import type { HighlandStreamT } from "hi... | JavaScript | source/iml/angular-exec.js | intel-hpdd/GUI | mit | 1,125 | 52 | codeparrot/github-code |
d8f2e37b758bfb6fd2807d8425eb337e768d31348005d33c21225717ff51d568 | <?php /* Smarty version Smarty-3.1.8, created on 2013-10-06 21:46:04
compiled from "/homez.151/thenailk/www/administrator/themes/default/template/controllers/customers/helpers/view/view.tpl" */ ?>
<?php /*%%SmartyHeaderCode:19467569315251bdfc07da60-89803074%%*/if(!defined('SMARTY_DIR')) exit('no direct access ... | PHP | web/store/cache/smarty/compile/637de6f7b8ae7c6ad4f4dd57a305d015f7e6ee0b.file.view.tpl.php | timetre/tnk | mit | 39,761 | 785 | codeparrot/github-code |
a59dc74017d32e69a8684c4a3a96a31007de4f252a14c3f0b740ac2b8bceb6f9 | <?php
/*
|| UI.LAYOUT
*/
/*
* Initial functions
* Starts adding the helper ysJQueryUICore core files jquery.ui
* Call set_layout_configuration_files function ();
*/
if(!function_exists('ui_core_exist')){
use_helper('ysJQueryUICore');
}
set_layout_configuration_files();
/**
*
* Add the context all the files... | PHP | lib/helper/ysJQueryUILayoutHelper.php | Symfony-Plugins/ysJQueryUIPlugin | mit | 6,361 | 186 | codeparrot/github-code |
8290cbeff4de5310aa63f18dc9ed459df2890978548b8a1824bd90c4c2843601 | package glutton
import (
"bytes"
"context"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"encoding/pem"
"fmt"
"io"
"net"
"net/url"
"github.com/lunixbochs/vtclean"
"go.uber.org/zap"
"golang.org/x/crypto/ssh"
)
type sshProxy struct {
logger *zap.Logger
config *ssh.ServerConfig
callbackFn func(c ssh.... | GO | proxy_ssh.go | mushorg/glutton | mit | 6,991 | 304 | codeparrot/github-code |
d67ac12c581685a0470608f41f90b8295d44b6e115e864cb5482d073e46acfb1 | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta chars... | PHP | index.php | strivegfx/silver-fern-farms-restaurant-finder | mit | 6,510 | 138 | codeparrot/github-code |
3498ba9824c9c01eed344bb411d29f02f4f597bd894ed3e3a2463941f367369c | (function () {
angular.module('app').controller('app.views.tenants.index', [
'$scope', '$uibModal', 'abp.services.app.tenant',
function ($scope, $uibModal, tenantService) {
var vm = this;
vm.tenants = [];
function getTenants() {
tenantService.ge... | JavaScript | src/AbpCompanyName.AbpProjectName.WebSpaAngular/App/Main/views/tenants/index.js | aspnetboilerplate/module-zero-template | mit | 2,491 | 75 | codeparrot/github-code |
776cdf4f8e9e336995914e2f41d9a84b0534aedabd7e69524b712be6f767a205 | <?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\AdminBundle\Dependenc... | PHP | src/DependencyInjection/Compiler/AdminMakerCompilerPass.php | Armstrong1992/SonataAdminBundle | mit | 1,265 | 43 | codeparrot/github-code |
a0f143c98bd14c7f6fa38de6768fbd2750c7f2a0b6b5f3c1135725f30fb55b63 | <?php
class Dashboard_model extends CI_Model {
public function __construct() {
$this->load->database();
}
public function getInstInfo($username)
{
// DebugBreak();
$query = $this->db->order_by('iyear', 'DESC')->get_where('Registration..tblinst_stats', array('inst_cd' => $user... | PHP | application/models/dashboard_model.php | segno789/adminbise | mit | 1,002 | 42 | codeparrot/github-code |
565ca4ea3135bb5d88281dd951f961e869263a3b481ba9fefd2bef75289e2d32 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Kata.LoanPrediction.CSharp.Common.Helpers;
using Kata.LoanPrediction.CSharp.Common.Models;
namespace Kata.LoanPrediction.CSharp.MVC.Application
{
/// <summary>
/// Helper methods for Razor... | C# | C#/Kata.LoanPrediction.CSharp/Kata.LoanPrediction.CSharp.MVC/Application/RazorViewHelpers.cs | retroburst/Kata | mit | 3,740 | 122 | codeparrot/github-code |
6cffdf3f35249a9f7b5b1cad7688ac8fe248afe4703d182a79d37a7614c7416c | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_environment_w32_spawnvp_09.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-09.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: environment Read input from an... | C | samples/Juliet/testcases/CWE78_OS_Command_Injection/s03/CWE78_OS_Command_Injection__char_environment_w32_spawnvp_09.c | maurer/tiamat | mit | 4,852 | 159 | codeparrot/github-code |
c7d626a92dee8a576448a3042aa336e88d937424c1fb1b7539248965892a65f7 | // Dependencies
const queryValidation = require('./libs/query-validation.js');
const utils = require('./libs/utilities');
/**
* Create an instance of Behance
* @param {string} token - authentication for Behance API
* @public
*/
const Behance = function behance(token) {
this.clientId = token;
// Throw an error... | JavaScript | index.js | Polyneue/behance-api | mit | 4,987 | 192 | codeparrot/github-code |
a6aa6959b519154fc9d0f8d12c1f5937c0e36bced1fbbe0d3b8f7160444d900b | require 'fileutils'
require 'uri'
require 'digest/sha1'
module Bundler
class Source
class Git < Path
autoload :GitProxy, 'bundler/source/git/git_proxy'
attr_reader :uri, :ref, :branch, :options, :submodules
def initialize(options)
@options = options
@glob = options["glob"] ||... | Ruby | lib/bundler/source/git.rb | mitchellh/bundler | mit | 8,276 | 286 | codeparrot/github-code |
301407061c2834ae3d5a5d0515ca4e42684e322004fbedbe0514d0a8771d20d3 | <?php
class SV_OptimizedListQueries_Dark_PostRating_Model extends XFCP_SV_OptimizedListQueries_Dark_PostRating_Model
{
public function getRatingsForContentUser($userId, array $fetchOptions = [])
{
$options = XenForo_Application::get('options');
$limitOptions = $this->prepareLimitFetchOptions($... | PHP | upload/library/SV/OptimizedListQueries/Dark/PostRating/Model.php | Xon/XenForo-OptimizedListQueries | mit | 4,503 | 95 | codeparrot/github-code |
d654c60fed869238926fe5f880adabcb68db2ad7667c6a6ea9f0b30a476932a6 | <!DOCTYPE html>
<html>
<head>
<title>WebdriverJS Testpage</title>
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="css/bootstrap.css">
<... | HTML | test/site/www/index.html | georgecrawford/webdriverio | mit | 11,512 | 274 | codeparrot/github-code |
b92ccda22ca6ff614237d5ff30ce666ad79f19866b568f3cd0a566f7521fc6bd |
public class TernarySearchTrie {
public Node root;
public void put(String s, int val) {
this.root = this.put(this.root, s, 0, val);
}
private Node put(Node r, String s, int val) {
if (r == null) {
r = new Node();
if (s.length() > 0)
r.middleChar = s.charAt(0);
}
if (s.length() == 0) {
r.val ... | Java | whiteboard/TernarySearchTrie.java | tbian7/pst | mit | 1,092 | 61 | codeparrot/github-code |
0796fe00a47225fd583a43abcb15519ffcc99d55d68bed9488220fe98d07026b | /**
*
* Note Edit View
*
* noteEditView.js
* @author Kerri Shotts
* @version 3.0.0
*
* Copyright (c) 2013 Packt Publishing
* 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 r... | JavaScript | filerv6/www/js/app/views/textNoteEditView.js | kerrishotts/PhoneGap-HotShot-3-x-Code-Bundle | mit | 8,444 | 230 | codeparrot/github-code |
3305d16d43e49d427b6cf5053b7ff2804375b85a56b88feedc661e22d2c24c34 | ---
layout: post
title: Installing Windows Azure command line tools on CentOS
date: 2013-09-13 16:38:17.000000000 -05:00
type: post
published: true
status: publish
categories:
- Web Development
tags:
- Azure
- centos
- cloud
- command line
- EPEL
- linux
- node.js
- Windows Azure
meta:
_edit_last: '51126004'
_publi... | HTML | _posts/2013-09-13-installing-windows-azure-command-line-tools-on-centos.html | NathanAhlstrom/nathanahlstrom.github.io | mit | 7,185 | 166 | codeparrot/github-code |
1301321beb22828da72ebcce632d76b8f9fb2532dfb9ee9aea03c92ae066cd56 | """
This module contains a helper to extract various kinds of primitive data types
from a dictionary of strings.
"""
class StringDictHelper:
"""
Helper class to extract primitive types from a dictionary of strings. This is a port
of Java robotutils class StringmapHelper. The special values 'true' an... | Python | python_robotutils/robotutils/strmap_helper.py | josephmjoy/robotics | mit | 3,444 | 94 | codeparrot/github-code |
d3f2f32fe01aa01ae671475348f59a7b9b7f77623782b660bf51f7f95c21c06b | import { createStore, compose, applyMiddleware } from "redux";
import { routerMiddleware } from "react-router-redux";
import createSagaMiddleware from "redux-saga";
import createLogger from "redux-logger";
import rootReducer from "../reducers";
import rootSaga from "../sagas/";
const configureStore = (history: any) =... | JavaScript | src/store/configure-store.js | BradZzz/occasio | mit | 1,121 | 50 | codeparrot/github-code |
7de69901cea1ec7ff341e430f7f684b825a154d40e160595ab8089f4f1ac4921 | <?php
namespace Statamic\Data\Globals;
use Statamic\Data\Content\ContentFactory;
use Statamic\Contracts\Data\Globals\GlobalFactory as GlobalFactoryContract;
class GlobalFactory extends ContentFactory implements GlobalFactoryContract
{
protected $slug;
/**
* @param string $slug
* @return $this
... | PHP | statamic/core/Data/Globals/GlobalFactory.php | ICJIA/icjia-tvpp | mit | 805 | 44 | codeparrot/github-code |
ead12319720924295c458578884a31282e055caac5d4c0ee996bab5d32c56da9 | <?php
App::uses('AppShell', 'Console/Command');
App::uses('Lapis', 'Lapis.Lib');
class KeysShell extends AppShell {
public $uses = array('Lapis.Requester');
public function main() {
$this->out('Lapis keys generator.');
}
public function getOptionParser() {
$parser = parent::getOptionParser();
$parser->addO... | PHP | Console/Command/KeysShell.php | intersective/lapis | mit | 2,181 | 78 | codeparrot/github-code |
c34c935d958b811d88c9d7c7f1b4bdcebd81cda2d28202d03f5b4b78de176aa7 | package library.com.github.programmerr47.discogs.responseobjects.marketplace;
import library.com.github.programmerr47.discogs.responseobjects.summary.OrderMessage;
import library.com.github.programmerr47.discogs.responseobjects.summary.Pagination;
import library.org.json.JSONObject;
import java.util.List;
/**
* @au... | Java | src/library/com/github/programmerr47/discogs/responseobjects/marketplace/ListOrderMessages.java | programmerr47/discogs-api-java | mit | 2,147 | 70 | codeparrot/github-code |
26e7d21106d5be79ad71ebc8d5dab8c7a5fb8beeb9624c1c4b29c87bd7ea6f65 | // CocoaUPnP by A&R Cambridge Ltd, http://www.arcam.co.uk
// Copyright 2015 Arcam. See LICENSE file.
#import "UPPBaseParser.h"
@class UPPBasicDevice;
/**
Parser completion block
@param devices If parsing succeeds, a new `UPPBasicDevice` object is returned
@param error If parsing fails, an `NSError` object is r... | C | CocoaUPnP/Parsers/UPPDeviceParser.h | arcam/CocoaUPnP | mit | 926 | 32 | codeparrot/github-code |
fdbc03a8cf940046ec84f82dda1ccb54ce05446645bf3837089885bbfd4e2826 | using System;
using System.Collections.Generic;
namespace LinqToDB.SqlQuery
{
public class QueryVisitor
{
#region Visit
readonly Dictionary<IQueryElement,IQueryElement> _visitedElements = new Dictionary<IQueryElement, IQueryElement>();
public Dictionary<IQueryElement,IQueryElement> VisitedElemen... | C# | Source/LinqToDB/SqlQuery/QueryVisitor.cs | genusP/linq2db | mit | 52,861 | 1,902 | codeparrot/github-code |
53da6f1726729110d524298f6d5d02d89cf343e7d86a83f18b534113d93d4776 | /*
* This is my "C"urriculum Vitae
* Based on hacker news post of the resume of https://github.com/klange
* Shows knowledge in pointers, structs and references.
* TODO: String formatting and a unified print function
*/
#include <stdio.h>
#include <time.h>
typedef struct {
union {
const char * ... | C | cv.c | dhpark/-C-urriculum-Vitae | mit | 6,405 | 231 | codeparrot/github-code |
33ac364058df1a59337a8c611865c2efa795ed8404f4596023f4a9bb80eeb641 | package com.paypal.svcs.types.ap;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.paypal.svcs.types.ap.AddressList;
import com.paypal.svcs.types.ap.AgreementType;
import com.paypal.svcs.types.ap.SenderIdentifier;
import com.paypal.svcs.types.common.DayOfWeek;
import com.paypal.svcs... | Java | sujet2/src/main/java/com/paypal/svcs/types/ap/PreapprovalDetailsResponse.java | DAC-2014-Equipe-3/sujet-2 | mit | 19,286 | 734 | codeparrot/github-code |
6ccd3e48ae7afbb7a1711c639e471cfd4886fcc02a1e062b54b19cc6608b7831 | /* include/libgadu.h. Generated from libgadu.h.in by configure. */
/* $Id$ */
/*
* (C) Copyright 2001-2009 Wojtek Kaniewski <wojtekka@irc.pl>
* Robert J. WoĹşny <speedy@ziew.org>
* Arkadiusz Miśkiewicz <arekm@pld-linux.org>
* Toma... | C | libs/libgadu/libgadu.h | jakubfijalkowski/pluggablebot | mit | 98,275 | 2,639 | codeparrot/github-code |
ceabd5fc4cd7cafbbbf863ac3d74a8fb769d71532fbcc39fca2b2982a989a064 | import CaseFactory from 'domains/CaseFactory'
import Case from 'domains/Case'
import * as assert from 'power-assert'
describe("ThenFactory", function() {
describe("create", () => {
before(() => {
this.newCase = CaseFactory.create<number,number>({
when: n => n > 0,
then: v => v + 1,
}... | TypeScript | test/domains/CaseFactorySpec.ts | namikingsoft/match-case | mit | 1,903 | 65 | codeparrot/github-code |
54313759df0db4b020de63a148c127e2b7d082602b872c8fdaf87802ade1fe8d | <?php namespace CupOfTea\TwoStream\Console;
use Symfony\Component\Console\Output\ConsoleOutput;
class Output extends ConsoleOutput
{
/**
* String prepended to the Console output.
*
* @var string
*/
protected $prepend = ' ';
/**
* {@inheritdoc}
*/
public function wr... | PHP | src/Console/Output.php | CupOfTea696/TwoStream | mit | 1,029 | 47 | codeparrot/github-code |
bc90a696df6daa62678dd7a339c26552adcda7b5e7c82741568c46ee57f46fad | # frozen_string_literal: true
module Orbacle
class Builder
class Context
AnalyzedKlass = Struct.new(:klass_id, :method_visibility)
def initialize(filepath, selfie, nesting, analyzed_klass, analyzed_method, lenv)
@filepath = filepath.freeze
@selfie = selfie.freeze
@nesting = n... | Ruby | lib/orbacle/builder/context.rb | swistak35/orbacle | mit | 2,146 | 72 | codeparrot/github-code |
ca46cffa20817c2a9707ef3b3da5ad580fbb6f1e1b8c93b0e86040d875ec6eb8 | // @flow
import React, { Component } from 'react';
import { Grid, Row, Col, FormGroup, FormControl, HelpBlock, ControlLabel } from 'react-bootstrap';
export default class AdminFamilySearch extends Component {
render() {
return (
<div>
<Grid>
<Row className="show-grid">
<Col x... | JavaScript | app/components/admin/family/AdminFamilySearch.js | geekmansam/Olive-Check-In | mit | 909 | 31 | codeparrot/github-code |
dc2ee2c56a47e612b324d5ab5d79bc5bc9083dae75f50d2a4bc4abfee5ca8b96 | <?php
/**
* WebHemi.
*
* PHP version 7.2
*
* @copyright 2012 - 2019 Gixx-web (http://www.gixx-web.com)
* @license https://opensource.org/licenses/MIT The MIT License (MIT)
*
* @link http://www.gixx-web.com
*/
declare(strict_types = 1);
namespace WebHemi\Ftp\ServiceAdapter;
use RuntimeException;
use WebHemi... | PHP | src/WebHemi/Ftp/ServiceAdapter/AbstractServiceAdapter.php | Gixx/WebHemi | mit | 8,048 | 322 | codeparrot/github-code |
5a03f5edc75687a074c7cac3c6d292341c1fe62aa71c6e0b6e4e3f759a3e7576 | <?php
/*
* This file is part of the Eulogix\Cool package.
*
* (c) Eulogix <http://www.eulogix.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Eulogix\Cool\Lib\Database;
use Eulogix\Cool\Bundle\CoreBundle\Model\Cor... | PHP | Lib/Database/Schema.php | eulogix/cool-core-bundle | mit | 34,634 | 1,056 | codeparrot/github-code |
311bba58dad5a4e3cc68b0f463297eed446b29c625fa3d028ed175412aea2e71 | /*
* Name: TUTableImpl.js
* Module:
* Location: Norris/test/unit
* Date: 2015-05-25
* Version: v1.00
*
* History:
*
* ================================================================================
* Version Date Programmer Changes
* =========================================================================... | JavaScript | test/unit/TUTableImpl.js | kaizenteamSWE/norris-rtc | mit | 1,825 | 50 | codeparrot/github-code |
159a0963d66118cb6a109f53f6a9c024f716a1f9d0b666446aa05df5f49b9523 | from pathlib import Path
import click
from git import Repo
from git.exc import InvalidGitRepositoryError
from logger import logger
from config import config
from utils import PairedObject, PairedProject, get_current_project, PathType
@click.group()
@click.option('-v', '--verbose', is_flag=True, help='Enables verbos... | Python | main.py | pnw/env-tracker | mit | 6,662 | 183 | codeparrot/github-code |
a05d0bba86d26c8af12af7b0d1ee898c181f4e1854a3c14811bcdc81b175df60 | package com.example.filters;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter;
@WebF... | Java | servlets/examples/servlets-example/src/main/java/com/example/filters/DogFilter.java | seed-0317/training | mit | 758 | 34 | codeparrot/github-code |
e8074a3329ba992e7e4d8293562da0a214a57e8f3d7f94c1db46ba344c2479b7 | 'use strict';
var d3;
var datafile = "./data/imf_tot_gov_rev.json";
var country_init = "Guinea";
var citation_text = "International Monetary Fund";
var citation_url = "http://www.imf.org/external/data.htm";
var margin = {top: 20, right: 20, bottom: 30, left: 40},
// width = parseInt(d3.select('#chart').style('wi... | JavaScript | eiti-blog-post/imf_tot_gov_rev.js | NRGI/nrgi-visualizations | mit | 8,143 | 262 | codeparrot/github-code |
0af407cd609566cec1d352a71a3e53ae0e258c947ee82b792b49d10ca6c82ae7 | // passwort-generator.js
// http://passwort-generieren.de
// (c) 2014 Jan Krause
(function() {
"use strict";
var root = this;
var PasswordGenerator = function(options) {
if(!options){
options = {};
options.el = document.body;
}
this.options = this.extend(op... | JavaScript | password-generator.js | webdynamik/password-generator | mit | 3,092 | 114 | codeparrot/github-code |
d4c73a5ba0504cd9d13fc9e8dec72800384f53a9780d9ba18434c0c4bb093728 | ////////////////////////////////////////////////
//
// Markdown to HTML converter demo (markdown widget)
//
//
// IoT Manager https://play.google.com/store/apps/details?id=ru.esp8266.iotmanager
//
// version : 1.0
// IoT Manager : 1.5.4 and above
//
////////////////////////////////////////////////
////////////////... | JavaScript | node.js/official-demo/markdown.js | 4refr0nt/iot-manager-demo | mit | 3,151 | 118 | codeparrot/github-code |
c33e48357141d2b1488c08c3582625b96bbde64d1a76810a256bdb62bab3cd95 | //
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
//
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Messaging;
using Microsoft.VisualStudio.Shell;
using nanoFramework.Tools.Debugger;
using nanoFramework.Tools.Debugger.WireProtocol;
using Pro... | C# | vs-extension.shared/ToolWindow.DeviceExplorer/ViewModel/DeviceExplorerViewModel.cs | nanoframework/nf-Visual-Studio-extension | mit | 13,308 | 336 | codeparrot/github-code |
ab356096a417a1b0fd032a2646869829997e4d5a03973145672c9647cc279f4a | # coding: utf-8
require "twitter"
require "sqlite3"
require "yaml"
require "./markov.rb"
class Account
def initialize(keys)
@keys = keys
@data = File.expand_path("../data", __FILE__)
@accounts = []
@rest = Twitter::REST::Client.new(keys[0]);@accounts<<@rest #メインアカウント
@keys[1..-2].each{|key|@accounts<<Twitt... | Ruby | account.rb | hinaloe/nkroid | mit | 2,543 | 123 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.