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 |
|---|---|---|---|---|---|---|---|---|
33f4a54f7317015c407550f7ced103fddef1bd00bbdbef4d06877e8f7b33376a | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.invbf.sistemagestionclientes.entity;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
impo... | Java | SistemaGestionClientes/src/main/java/com/invbf/sistemagestionclientes/entity/Usuario.java | ivanbanos/inversionesgit | mit | 5,520 | 182 | codeparrot/github-code |
8c0400571de570deb9286181b2b0314680eb9ffed1e50611a638425d82dfc523 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShopifySharp
{
public class RefundLineItem : ShopifyObject
{
/// <summary>
/// The single <see cref="ShopifySharp.LineItem"/> being returned.
... | C# | ShopifySharp/Entities/RefundLineItem.cs | addsb/ShopifySharp | mit | 1,131 | 43 | codeparrot/github-code |
1a24463f86b4356adaf324ae51610ae396006746bb4ab9a964d00865bb3ad173 | package ua.com.fielden.platform.attachment;
import static ua.com.fielden.platform.attachment.Attachment.pn_IS_LATEST_REV;
import static ua.com.fielden.platform.attachment.Attachment.pn_LAST_MODIFIED;
import static ua.com.fielden.platform.attachment.Attachment.pn_LAST_REVISION;
import static ua.com.fielden.platform.att... | Java | platform-dao/src/main/java/ua/com/fielden/platform/attachment/AbstractAttachmentDao.java | fieldenms/tg | mit | 3,055 | 83 | codeparrot/github-code |
b85b4d96e513b1e291156f9598d89c7d73ce8af05ec0102412925ad9be5a3db9 | // The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import VueRouter from 'vue-router';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-default/index.css';
import NProgress from 'nprogress';
i... | JavaScript | vue/maid/src/main.js | tao12345666333/Talk-Is-Cheap | mit | 2,187 | 98 | codeparrot/github-code |
9399acdddfbe6d6e685bdafe11255521e244bbda046eea7623f6f12d78a91f6c | /*
* Copyright 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | C++ | Boss2D/addon/webrtc-jumpingyang001_for_boss/pc/proxy_unittest.cc | koobonil/Boss2D | mit | 9,991 | 310 | codeparrot/github-code |
22c472ce7f6984ba3469e4e46d6404b0e8047da366e4683378c042961870a02f | package com.aspose.imaging.examples.ModifyingImages.jpeg;
import com.aspose.imaging.Image;
import com.aspose.imaging.examples.Utils;
import com.aspose.imaging.exif.JpegExifData;
import com.aspose.imaging.fileformats.jpeg.JpegImage;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.M... | Java | Examples/src/main/java/com/aspose/imaging/examples/ModifyingImages/jpeg/ReadAndModifyJpegEXIFTags.java | asposeimaging/Aspose_Imaging_Java | mit | 1,482 | 43 | codeparrot/github-code |
ecebbbe01ed7603b0fae67fecca00e1867862f7ae60b5399be43e14ddc67c6c2 | import React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import { shallow } from 'enzyme';
import Button from '../../../src/components/util/Button';
import { Link } from 'react-router-dom';
import Icon from '../../../src/components/svg/icon/X';
describe('<Button />', () => {
it('rende... | JavaScript | test/components/util/Button.test.js | ryanabragg/VanguardLARP | mit | 1,836 | 49 | codeparrot/github-code |
2eef2aba3289493922bd777336c6ece5f6dee6234fca33e04ad02f325c545e5c | local PANEL = { };
AccessorFunc( PANEL, "m_fAnimSpeed", "AnimSpeed" )
AccessorFunc( PANEL, "Entity", "Entity" )
AccessorFunc( PANEL, "vCamPos", "CamPos" )
AccessorFunc( PANEL, "fFOV", "FOV" )
AccessorFunc( PANEL, "vLookatPos", "LookAt" )
AccessorFunc( PANEL, "colAmbientLight", "AmbientLight" )
AccessorFunc(... | Lua | lua/greencode/derma/cl_charpanel.lua | men232/greencode-framework | mit | 4,285 | 212 | codeparrot/github-code |
4b0e2ab43828eeb05e546126006ca8902ffe17dbb32b813b6f11bf100007b606 | const { promises: fs } = require('fs')
const L = require('./leaflet')
const _ = require('lodash')
const capDecimals = n => Math.trunc(n * 100000) / 100000
const getCoordinates = ({ x, y, width, height, xoffset, yoffset }) => {
const widthBigger = width > height
const pixel = L.point(x, y)
.add(L.point(xoffset... | JavaScript | extractors/xenoblade-chronicles/src/utils.js | frontiernav/frontiernav-data | mit | 3,360 | 134 | codeparrot/github-code |
60ecb5490191593c2b9113d47f27f32b6d4a1c2ec1e309ba78b00891987312f4 | <?php
/******************************************************************************
* An implementation of the "Formlets"-abstraction in PHP.
* Copyright (c) 2014, 2015 Richard Klees <richard.klees@rwth-aachen.de>
*
* This software is licensed under The MIT License. You should have received
* a copy of the alon... | PHP | src/Internal/WrappedCollector.php | lechimp-p/php-formlets | mit | 1,317 | 44 | codeparrot/github-code |
c70cf0c36e035ffb9fdc74b78711aa68fe8d9a8900c9d4e44b45437e9271cf00 | <?php
// ================================================
// PHP image browser - iBrowser
// ================================================
// iBrowser - configuration
// ================================================
// Developed: net4visions.com
// Copyright: net4visions.com
// License: GPL - see license... | PHP | static/js/tiny_mce/plugins/ibrowser/config/config.inc.php | yugaswara/ci-cms-dev0 | mit | 6,731 | 123 | codeparrot/github-code |
3fd7ce6f27846534f5912dc8934476c3ea0968b0db8a4b8b9ff7f5151a5675ff | // Parse Platform Plugin
// Created by Patryk Stepniewski
// Copyright (c) 2014-2016 gameDNA studio. All Rights Reserved.
#include "ParsePlatformPrivatePCH.h"
#include "ParsePlatformBlueprintLibrary.h"
#if PLATFORM_IOS
#import <Parse/Parse.h>
#import "IOSAppDelegate.h"
#elif PLATFORM_ANDROID
#include "Android/Android... | C++ | Source/ParsePlatform/Private/ParsePlatformBlueprintLibrary.cpp | gameDNAstudio/ParsePlatform | mit | 3,388 | 94 | codeparrot/github-code |
308b746c235b17634866207cd822baa5c1e130af7cf69105ce69aed6822495af | import React from 'react';
import { Link } from 'react-router-dom';
import { green } from '../../constants/styles';
const Breadcrumbs = ({ children }) => (
<ul>
{ children }
<style jsx>{`
ul {
margin: 0 0 20px;
opacity: 0.5;
}
`}</style>
</ul>
);
const Breadcrumb = ({ to,... | JavaScript | admin/src/components/Breadcrumbs/index.js | alexpriceonline/JumpCMS | mit | 1,268 | 70 | codeparrot/github-code |
963df639c6e4707300d15f31e80a57e7742658ee0b53db97eb70b7be32f6ad3a | import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.util.Scanner;
public class FinalProjectDemo
{
public static void main(String[] argv)
throws IOException, InterruptedIOException
{
Scanner sc = new Scanne... | Java | FinalProjectDemo.java | tenguix/IndexedAVLDemo | mit | 5,061 | 142 | codeparrot/github-code |
d9e5eb590d62bd7294138755b7dc98d91cec562423305dec48f0bd4f1ec650d8 | require "thor/group"
require "active_support"
require "active_support/version"
require "active_support/core_ext/string"
require "rails/generators"
require "rails/generators/rails/app/app_generator"
require "sugar-high/file"
require 'fileutils'
# The problem is, that the rails command doesn't work right within a dire... | Ruby | lib/dummy/export.rb | kristianmandrup/multiapp-engine | mit | 2,761 | 108 | codeparrot/github-code |
a87f0f12cddf360f74d7beedc0c93bc17ea49e1f95bb220a1ec60e3efb839d2d | using System;
namespace BitPaySDK.Exceptions
{
public class InvoiceException : BitPayException
{
private const string BitPayMessage = "An unexpected error occured while trying to manage the invoice";
private readonly string _bitpayCode = "BITPAY-INVOICE-GENERIC";
protected string ApiCo... | C# | BitPay/Exceptions/InvoiceException.cs | bitpay/csharp-bitpay-client | mit | 984 | 35 | codeparrot/github-code |
092ae18eda214184a4b6f98df00c535262954f037af6735d46ca80613cfca7ae | '''
Video player
============
.. versionadded:: 1.2.0
The video player widget can be used to play video and let the user control the
play/pausing, volume and position. The widget cannot be customized much because
of the complex assembly of numerous base widgets.
.. image:: images/videoplayer.jpg
:align: center
... | Python | kivy/uix/videoplayer.py | kivy/kivy | mit | 22,745 | 698 | codeparrot/github-code |
2db10921eb3e7e8fb1ccc637ba94dc7b3bb4731bcee9d05e0ec6db578d1c9a25 | ---
---
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Trace | @uirouter/angular</title>
<meta name="description" content="Documentation for @uirouter/angular">
<meta name="viewport" content="width=device-width, initial-scale=... | HTML | _ng2_docs/7.0.0/classes/_uirouter_core_common_trace.trace.html | ui-router/ui-router.github.io | mit | 15,556 | 311 | codeparrot/github-code |
be867e8a1610c94434e0f8f6e057290779086929268ee8fc5489ddff040734bb | import { Link } from "gatsby";
import React, { useEffect, useState } from "react";
const Search = () => {
const [query, setQuery] = useState("");
const [results, setResults] = useState<LunrResult[]>([]);
useEffect(() => {
if (!query || !window.__LUNR__) {
setResults([]);
return;
}
const lunrIndex = win... | TypeScript | src/components/search.tsx | jamestharpe/jamestharpe.com | mit | 1,033 | 49 | codeparrot/github-code |
fbc6457e5287e99489401cb86945dc793caee02bc6f0f420855b58a991738492 | using System;
namespace MetroFtpClient.Infrastructure.Constants
{
public static class FileAndFolderConstants
{
/// <summary>
/// The application data folder
/// </summary>
public static string ApplicationDataFolder
{
get
{
string ... | C# | Common/MetroFtpClient.Infrastructure/Constants/FileAndFolderConstants.cs | steve600/MetroFtpClient | mit | 1,557 | 57 | codeparrot/github-code |
47bd94f25cfd6e9a6b969ec0fefcfbeee38c9afe983f135f0c8174b9754c736f | package baekjoon_3653_dvd;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.StringTokenizer;
public class Main {
public static int T;
public static int N;
public static int M... | Java | baekjoon_3653_dvd/src/baekjoon_3653_dvd/Main.java | leechwin/algorithm | mit | 3,585 | 111 | codeparrot/github-code |
c398f26db7a0f1b563bb9ae6da81b5f77584b8cffa52d601d6a3cf2d996155e0 | using LiveSplit.Model;
using LiveSplit.Model.RunImporters;
using LiveSplit.Options;
using LiveSplit.TimeFormatters;
using LiveSplit.UI;
using LiveSplit.Web;
using LiveSplit.Utils;
using LiveSplit.Web.Share;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using Sys... | C# | LiveSplit/LiveSplit.View/View/RunEditorDialog.cs | Dalet/LiveSplit | mit | 63,968 | 1,631 | codeparrot/github-code |
22746b7a93950bdfabfccc94fd4955afb154e77ce9d052a7339978b02634e700 | module ActiveScaffold
module Helpers
module AssociationHelpers
# Provides a way to honor the :conditions on an association while searching the association's klass
def association_options_find(association, conditions = nil)
association.klass.where(conditions).where(association.options[:conditio... | Ruby | lib/active_scaffold/helpers/association_helpers.rb | vhochstein/active_scaffold | mit | 1,759 | 41 | codeparrot/github-code |
0eb4ad9bebfdb37325228a9cffc42e23da489734e1cee2853a468351bcd103fe | // CICLO DE VIDA
Polymer.AppartmentliveCycleBehaviors = {
logBehaviour: function(callbackCycle, msg) {
var hasInitProperties = function() {
// [created calllback] hasnt initialized its prototype properties
return callbackCycle.toLowerCase().indexOf('created') === -1 && !!this.debug;
};
if ( h... | JavaScript | app/elements/appartment/appartment-list.behavior.liveCycle.js | fernandoPalaciosGit/sample-vanilla-element | mit | 1,496 | 53 | codeparrot/github-code |
308440fa0254f7c2fd6b240ddeda48cfe2f7e0c15c3895a85486d28bc1a72167 | 'use strict'; // eslint-disable-line semi
const app = require('APP');
const {env} = app;
const debug = require('debug')(`${app.name}:auth`);
const passport = require('passport');
const User = require('APP/db/models/user');
const OAuth = require('APP/db/models/oauth');
const auth = require('express').Router(); // esli... | JavaScript | server/auth.js | jzheng16/personal-website | mit | 4,378 | 147 | codeparrot/github-code |
ec4aeeb78119efa6a7f29b92ec6dd224e96d902a035f3ce3aa8450780f0578fa | module Grape
# An Endpoint is the proxy scope in which all routing
# blocks are executed. In other words, any methods
# on the instance level of this class may be called
# from inside a `get`, `post`, etc.
class Endpoint
attr_accessor :block, :source, :options, :settings
attr_reader :env, :request
... | Ruby | lib/grape/endpoint.rb | ovargas27/grape | mit | 14,933 | 466 | codeparrot/github-code |
306bef53b83c431c931f4f92d871397ab5a80dca6689554e71aa923ba48e6195 | using System;
//### Problem 08. Maximal sum
//* Write a program that finds the sequence of maximal sum in given array.
//_Example:_
//| input | result |
//|-------------------------------------|-------------|
//| 2, 3, -6, -1, **2, -1, 6, 4**, -8, 8 | 2, -1, 6, 4 |
//* _Can you do... | C# | Courses/Programming/C# Part 2/01. Arrays/08. Maximal sum/08. Maximal sum.cs | todorm85/TelerikAcademy | mit | 2,263 | 52 | codeparrot/github-code |
7bf36208703f70af30abd14a6f21b5510ccd48d1507bd518007a785d7fccb5a1 | // ======================================================================
// Filename: ss_scanner.cc
// Description: Implement the methods of the Scanner class.
// Created: Tue Feb 14 13:10:47 2017 (-0600)
// Last-Updated: Fri Mar 31 14:49:57 2017 (-0500)
// Author: Ivan Guerra <Ivan.E.Guerra-1@ou.edu>
// =============... | C++ | compiler_construction/ss_parser/src/ss_scanner.cc | ivan-guerra/university_projects | mit | 28,995 | 1,102 | codeparrot/github-code |
e0aafdd913d4a879c87ddc3b4cba825be6efc30a8f79eefc5341f7a07f2e9fc5 | /*
FreeRTOS V7.4.0 - Copyright (C) 2013 Real Time Engineers Ltd.
FEATURES AND PORTS ARE ADDED TO FREERTOS ALL THE TIME. PLEASE VISIT
http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
***************************************************************************
* ... | C | freeRTOS/FreeRTOSV7.4.0/FreeRTOSV7.4.0/FreeRTOS/Source/portable/MPLAB/PIC24_dsPIC/port.c | andyOsaft/02_SourceCode | mit | 12,799 | 367 | codeparrot/github-code |
5bf6cacac1902b8f30c18976d37e12d0610974a644358976471ca1a6a49fc5e7 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QuickMailGenerator
{
[JsonObject]
public class Settings
{
[JsonProperty("menu")]
public List<MenuItem> MenuItems... | C# | QuickMailGenerator/Settings.cs | tarukosu/QuickMailGenerator | mit | 2,103 | 84 | codeparrot/github-code |
52779ad194af6195870aa37bcf2d55f07a1f5833421b69974126e35e0d0fda68 | import Ember from 'ember';
import ValidationError from '../error';
import defaultMessages from '../messages';
import getOwner from 'ember-getowner-polyfill';
function createValidationError(model) {
const messageResolver = lookupMessageResolver(getOwner(model));
const errors = model.get('errors');
let message = mess... | JavaScript | addon/mixins/validator.js | vladaspasic/ember-cli-data-validation | mit | 4,643 | 197 | codeparrot/github-code |
9fd88214a2f9c14d2d744222db8576441dc47c24229383ffa6d7b85332ee87cd |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Course_Model extends CI_Model
{
var $table = 'courses';
var $column_order = array('','name','course_code','credits','semester','syllabus',null); //set column field database for datatable orderable
var $column_search = arra... | PHP | application/models/Course_Model.php | bicpu/sams | mit | 22,765 | 646 | codeparrot/github-code |
e9099605e652b54ed77efa497c2461d760c1b49d3e176029a66574128e166ae5 | <?php
namespace app\components;
use Yii;
use yii\helpers\VarDumper;
/**
* Class DiceHelper
*
* @author Andreev Sergey <si.andreev316@gmail.com>
* @version 1.0
* @since 1.0
*/
class DiceHelper
{
const MINIMAL_VALUE = 1;
const MINIMAL_SUM = 2;
const EXACT_VALUE = 3;
const EXACT_SUM = 4;
prot... | PHP | components/DiceHelper.php | Odan316/wh40kpaint | mit | 4,535 | 190 | codeparrot/github-code |
d36e9a797daac8fc618be20bb751c15f8e20e9179f34bbcc9f400605d7039821 | <?php
/*
* @copyright 2016 Mautic Contributors. All rights reserved
* @author Mautic
*
* @link http://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace MauticPlugin\MauticInfoBipSmsBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Co... | PHP | Form/Type/ConfigType.php | mjlogan/MauticInfoBipSmsBundle | mit | 4,094 | 134 | codeparrot/github-code |
465b09243328359dbf5ed576e7e28eca8d6a81a6f9e08ab810f4b1755ddd9bc2 | "use strict";
// setup context
let canvas = document.querySelector('canvas');
let context = canvas.getContext('2d');
// setup size of canvas
let width = window.innerWidth * 2;
let height = window.innerHeight * 2;
canvas.width = width;
canvas.height = height;
// load image
let image = new Image();
image.src = 'head.p... | JavaScript | 04 - Particle System/Solution/code.js | filR/course-advanced-web-dev-2017 | mit | 1,869 | 85 | codeparrot/github-code |
7d38bdda6e954a08694a25ee1f7cdbb69da97af45b9f9712285e6b813342c413 | var DefaultResourceProvider = require("../../../../lib/provider/resource/default"),
DM = require("../../../../lib/dm"),
Async = require("../../../../lib/async"),
Chance = require("chance"),
chai = require("chai"),
sinon = require("sinon"),
RSVP = require("rsvp"),
chance;
expect = ... | JavaScript | test/unit/provider/resource/default.js | gobwas/dm.js | mit | 3,582 | 108 | codeparrot/github-code |
2460e08a269ead59396f55032e78affead5cc406bdfd19c3c9e8eeae697a9960 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* Description of cAdmin
*
* @author 5-09
*/
class cSesion extends CI_Controller {
public function __construct(){
parent::__construct();
... | PHP | application/controllers/cSesion.php | jvilla8a/bets | mit | 1,201 | 59 | codeparrot/github-code |
c5da1b4c84af9b0e5392843dd101cf8c99c3db285da2d3b5204715b9fb65acfa | <?php
declare(strict_types=1);
/*
* This file is part of the `idea` project.
*
* (c) Aula de Software Libre de la UCO <aulasoftwarelibre@uco.es>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Controller\Idea;
use... | PHP | src/Controller/Idea/ListGroupIdeaController.php | aulasoftwarelibre/ceo | mit | 1,756 | 64 | codeparrot/github-code |
e0396b35424c078320bc28125543aee809ad0d4b4cdb9101e388decb0e084e85 | package org.blendee.sql;
import org.blendee.jdbc.ComposedSQL;
import org.blendee.sql.SQLQueryBuilder.CombineOperator;
/**
* UNION されたクエリを構成する要素を保持するクラスです。
* @author 千葉 哲嗣
*/
public class CombiningQuery {
private final CombineOperator combineOperator;
private final ComposedSQL query;
/**
* @... | Java | src/main/java/org/blendee/sql/CombiningQuery.java | blendee/blendee | mit | 792 | 39 | codeparrot/github-code |
1d50062a7eacc22fb9568e1fe6f23255a295b247e474a7ce7452ebe65ab751fd |
if (-not ([System.Management.Automation.PSTypeName]'VersionComponent').Type) {
Add-Type -TypeDefinition @"
using System;
using System.Text;
public enum VersionComponent
{
Major = 0,
Minor = 1,
Patch = 2,
Build = 3,
Suffix = 4,
SuffixBranch = 45,
... | PowerShell | src/SemVer/SemVer.psm1 | qbikez/ps-csproj | mit | 8,624 | 265 | codeparrot/github-code |
676916c35308492ae47135fa9c0627b90f0de980d2e0d6c40365ad1e51aa39fc | <?php
/* AutenticaBundle:Security:login.html.twig */
class __TwigTemplate_828267aae2a800739c000235685463f0 extends Twig_Template
{
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
if ($this->getContext($context, "error")) {
// line 2
echo... | PHP | app/cache/dev/twig/82/82/67aae2a800739c000235685463f0.php | pmscopracsa/PMS | mit | 1,347 | 44 | codeparrot/github-code |
544101f98f3331cc85a8f9176526a2ba2eb297cdc6c435d18177531975cad242 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 選舉資料查詢 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>中選會選舉資料庫網站</title>
<link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css">
<script typ... | HTML | mirror/prvCode_07/cityCode_008-areaCode_01-deptCode_008/voteCode_20120101T1A2-qryType_ctks-prvCode_06-cityCode_008-areaCode_01-deptCode_008-liCode_0177.html | g0v/projectV | mit | 5,237 | 165 | codeparrot/github-code |
e07434b8129f441bf42be8347bc49e4b54e301d366b218b0e51832756336fea7 | class Trie{
public:
vector<Trie*> children;
bool wholeWord;
Trie(){
children = vector<Trie*>(26, NULL);
wholeWord = false;
}
};
class WordDictionary {
private:
Trie* root;
public:
WordDictionary(){
root = new Trie();
}
// Adds a word into the data structure.
... | C++ | Leetcode2/211.cpp | nolink/algorithm | mit | 1,423 | 53 | codeparrot/github-code |
366175d557dc408585ac3c319faea9f9d034fc4008a307635cbb41f36bd03862 | <?php
/**
* This file is part of the Underbar.php package.
*
* Copyright (C) 2013 Shota Nozaki <emonkak@gmail.com>
*
* Licensed under the MIT License
*/
namespace Underbar\Internal;
class Parallel implements \Iterator, \Countable
{
/**
* Sockets for interprocess communication
*
* @var array
... | PHP | src/Underbar/Internal/Parallel.php | emonkak/underbar.php | mit | 8,756 | 408 | codeparrot/github-code |
2011c4caf5a56674dca2de1d09232ba593cd5585f5c78b34b9ee55b59785ea12 | //@@author A0129538W
package jfdi.test.ui;
import static org.junit.Assert.assertEquals;
import jfdi.ui.Constants;
public class TestUnalias extends UiTest {
TestUnalias(TestMain main) {
super(main);
}
@Override
void run() {
testUnaliasDone();
testNonExistentAlias();
}
... | Java | src/test/java/jfdi/test/ui/TestUnalias.java | cs2103jan2016-w13-4j/main | mit | 1,306 | 49 | codeparrot/github-code |
5e35ead5035e3b31d8a07e8a1253ed8788fd62285f70ff0bab568734ce520a25 | 'use strict';
var https = require('https');
var pjson = require('../package.json');
var Xml2js = require('xml2js');
exports.create = function (config) {
config.RECURLY_HOST = config.SUBDOMAIN + '.recurly.com';
var parser = new Xml2js.Parser(config.XML2JS_OPTIONS || { explicitArray: false });
return {
reque... | JavaScript | lib/client.js | umayr/recurly-js | mit | 4,755 | 153 | codeparrot/github-code |
df960e6f7b4ce587ce5735be9c5d95f7773b58789d7422f7b07517ed585c082e | import gdb
import pwndbg.decorators
import pwndbg.events
import pwndbg.gdbutils
import pwndbg.memoize
from pwndbg.color import disable_colors
from pwndbg.color import message
funcs_list_str = ', '.join(message.notice('$' + f.name) for f in pwndbg.gdbutils.functions.functions)
hint_lines = (
'loaded %i commands. ... | Python | pwndbg/prompt.py | pwndbg/pwndbg | mit | 1,730 | 64 | codeparrot/github-code |
06170bea17c488155523b58ee9335a2bf97baff9c4294bf6ed63962d1d18756d | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>schroeder: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | HTML | clean/Linux-x86_64-4.10.0-2.0.6/released/8.11.2/schroeder/8.5.0.html | coq-bench/coq-bench.github.io | mit | 6,931 | 167 | codeparrot/github-code |
d35008f4faa499aee718e11f5b14a9a9f6a1fe8742de4eacdb016e918126a200 | package server
import (
"encoding/json"
"errors"
)
const (
ChatReqTypeSetNickname = 101 + iota
ChatReqTypeGetNickname
ChatReqTypeListRooms
ChatReqTypeJoin
ChatReqTypeListNames
ChatReqTypeHide
ChatReqTypeUnhide
ChatReqTypeMsg
ChatReqTypeLeave
)
// ChatRequest is a structure for commands sent for processing... | GO | server/chat_request.go | composer22/chattypantz | mit | 1,310 | 47 | codeparrot/github-code |
daec556d783c864e0fa5f18a315eec6ae2e818bae1179ca81535fdc866430801 | 'use strict';
const express = require('express');
const bodyParser = require('body-parser');
const restService = express();
restService.use(bodyParser.json());
restService.post('/hook', function (req, res) {
console.log('hook request');
try {
var speech = 'empty speech';
if (req.body) {
... | JavaScript | index.js | amshenoy/lucid-bot | mit | 1,689 | 65 | codeparrot/github-code |
94e525c0075f96908554e5bb70274cc2b95a0b34cf32b9940e88a623e54e4955 | package main.trainer;
import java.io.Serializable;
/**
* TrainMessage is a container for all the necessary variables for the
* NNTrainProcess to train a network.
*
* @author cseibert
*/
public class TrainMessage implements Serializable
{
/** */
private static final long serialVersionUID = 7427308198554574774... | Java | NNStockTrainer/src/main/trainer/TrainMessage.java | codyseibert/random | mit | 1,736 | 94 | codeparrot/github-code |
97538d695ab3276928aaea25b72770fbc3f6cac5d0a3cc878aade4bf0698922d | package de.cdelmonte.service.aliens;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframe... | Java | aliens-service/src/main/java/de/cdelmonte/service/aliens/Application.java | cdelmonte-zg/microworld | mit | 2,694 | 82 | codeparrot/github-code |
77373bdc904ab9db1fcf939702ab502ca6dd6cd75875a56aeeed07fad89cac18 | var fs = require('fs');
var readline = require('readline');
var google = require('googleapis');
var googleAuth = require('google-auth-library');
// If modifying these scopes, delete your previously saved credentials
// at ~/.credentials/gmail-nodejs-quickstart.json
var SCOPES = ['https://www.googleapis.com/auth/gmail.... | JavaScript | tmp/readgmailmail.js | byteshiva/test-selenium-suite | mit | 4,996 | 177 | codeparrot/github-code |
c9574106d2ac06083cd159a78af4f06505d42a25669bc0ee5e728428ddb4aa60 | /*
* A significant portion of this code was taken from the MongoDB C# driver (https://github.com/mongodb/mongo-csharp-driver)
* so I am preserving their copyright notice.
*/
/* Copyright 2013-2015 MongoDB Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... | C# | src/NationBuilderConnect.Client/Utilities/Cursors/AsyncCursorEnumerator.cs | proximitymobile/NationBuilderConnect | mit | 2,826 | 99 | codeparrot/github-code |
7896bbdf0524310b79d2d045d27fc192b5d022908bbc235d5fa90786f091a360 | package com.rnergachev.propertylisting.data.network.response;
import com.google.gson.annotations.SerializedName;
import com.rnergachev.propertylisting.data.model.PropertyItem;
import java.util.List;
/**
* Response of and API for the request of properties
*/
public class APIResponse {
private class ListingResul... | Java | app/src/main/java/com/rnergachev/propertylisting/data/network/response/APIResponse.java | romannergachev/property-listing | mit | 731 | 33 | codeparrot/github-code |
05bdb9be82c0fe68a4eba7f836bd69e249f01c0801df39db0ae8ab416e181b2b | /*
* This file is part of GriefPrevention, licensed under the MIT License (MIT).
*
* Copyright (c) Ryan Hamshire
* Copyright (c) bloodmc
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softw... | Java | src/main/java/me/ryanhamshire/griefprevention/command/CommandClaimAbandon.java | MinecraftPortCentral/GriefPrevention | mit | 8,663 | 167 | codeparrot/github-code |
948b472c8e0ce7e73286976df67d4c2fac549fbceaffda727734d0932bf997e4 | #include "circular_queue.h"
namespace notastd
{
template <class T>
void queue<T>::enqueue(T value)
{
if(front == -1 && back == -1)
{
front = back = 0;
arry[front] = value;
}
else if((front == 0 && back == 5 ) || ((front - back) == 1))
{
std::cout << "st... | C++ | data_structures/queue/circular_queue.cpp | sunilgaikwad/coderunner | mit | 1,020 | 59 | codeparrot/github-code |
67a26c151bc039d5b74e448d88c960a2e5494053f065790932a78783215e8d45 | <HTML><HEAD>
<TITLE>Review for American Beauty (1999)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0169547">American Beauty (1999)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Michael... | HTML | data science/machine_learning_for_the_web/chapter_4/movie/20541.html | xianjunzhengbackup/code | mit | 4,155 | 62 | codeparrot/github-code |
1468abe7235e96ea56c99d417e5d8cce6faccd1b91947ae9f49f2bd466aa5ef1 | <HTML><HEAD>
<TITLE>Review for American Psycho (2000)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0144084">American Psycho (2000)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?James+F... | HTML | data science/machine_learning_for_the_web/chapter_4/movie/24167.html | xianjunzhengbackup/code | mit | 9,096 | 153 | codeparrot/github-code |
ccada6ec433c86f92fc8b914b259454e320676605cf52b1ad848f02667353412 | /*
The MIT License
Copyright 2012-2014 (c) Peter Širka <petersirka@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, ... | JavaScript | index.js | petersirka/node-couchdb | mit | 25,751 | 1,054 | codeparrot/github-code |
826e3642d81948fdda4f31c9814eed3f7c83f12000feb28c635e3f6ba2245bc4 | <h1>iPhone Feedback Tool Hilfe</h1>
<p>With the iPhone Feedback Tool the developers of iOS applications can be informed in a fast and comfortable way about errors or general requests from their users.</p>
<h2 id="top">Content:</h2>
<p>
<a href="#1" class="nav_main">1 Annotations</a><br />
<a href="#1.1" class="nav_s... | HTML | Classes/iPhoneFeedbackTool.bundle/en.lproj/help.html | UniSiegenCSCW/Shake | mit | 4,562 | 68 | codeparrot/github-code |
36fdead26fd8cd3f03055fd8b928184a2c7a698aa5f1e5debee78c53db0ddcda | using System;
using Grasshopper.Kernel;
using Grasshopper.Kernel.Parameters;
using Grasshopper.Kernel.Types;
using System.Drawing;
using System.Windows.Forms;
using Macaw.Utilities;
using Macaw.Compositing;
namespace Macaw_GH.Composite
{
public class BlendImages : GH_Component
{
int MatchType = 0;
... | C# | Macaw_GH/Composite/BlendImages.cs | interopxyz/Aviary | mit | 6,767 | 205 | codeparrot/github-code |
f1ae8f3aa54343fddad0eda2ff4f7517edb11cc7cfafa0f5ce01bfb886788d89 | // --------------------------------------------------------------------------------------------------------------------
// <summary>
// The area controller renderer.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace Sitecor... | C# | Source/Sitecore.Mvc.Areas/Controllers/AreaControllerRenderer.cs | BenGGolden/Sitecore.Mvc.Areas | mit | 3,038 | 105 | codeparrot/github-code |
c2ca4fab4f5c3a6c9dc9ec951d646cbaa1e8117bd3140925d309f8fbe2e2eb93 | #ifndef AUDIODEVICE
#define AUDIODEVICE
class VstPluginBridge;
/* Defines */
enum PortDirection
{
_OUTPUT = 0,
_INPUT
};
enum DeviceType
{
_GENERATOR = 1,
_EFFECT,
_MIDIDEVICE
};
enum GuiEventType
{
_KEYDOWN = 1,
_KEYUP,
_MOUSEWHEEL
};
enum EventType
{
_PARAMETER = 1,
_MIDI,
_PROGRAM,
_WINDOWSIZE,
_... | C | SharpSoundDevice.VST/AudioDevice.h | ValdemarOrn/SharpSoundDevice | mit | 2,839 | 182 | codeparrot/github-code |
24f153ffe3207d666291ec5be5fe4f41c48a4a60ed3d15b7e032f98998f20429 | 'use strict';
var path = require('path');
var conf = require('./gulp/conf');
var _ = require('lodash');
var wiredep = require('wiredep');
var pathSrcHtml = [
path.join(conf.paths.src, '/**/*.html')
];
function listFiles() {
var wiredepOptions = _.extend({}, conf.wiredep, {
dependencies: true,
devDepende... | JavaScript | karma.conf.js | grkacy/material-meta-ui | mit | 2,662 | 111 | codeparrot/github-code |
11497618087fd505c966af419b321bcd2a8df7812b750cfceca4d1e8aaf3f953 | using System;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Xml;
using System.Xml.Serialization;
using SubSonic;
using SubSonic.Utilities;... | C# | DalSic/generated/MamCirugium.cs | saludnqn/consultorio | mit | 28,411 | 921 | codeparrot/github-code |
b27e64aedb4c41dda8f81465e9d2b4d11a771f7e90ae7a7c9b229e93dbbfde9f | using System;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Xml;
using System.Xml.Serialization;
using SubSonic;
using SubSonic.Utilities;... | C# | DalSic/generated/PnDatosReportableController.cs | saludnqn/consultorio | mit | 3,484 | 114 | codeparrot/github-code |
357cf3169d58b57bfe235d58b642f4e2465391455a4e7db5fc69f076eea4e9cb | /*
* consolify
*
* Copyright (c) 2013 Maximilian Antoni <mail@maxantoni.de>
*
* @license MIT
*/
'use strict';
var through = require('through');
var fs = require('fs');
var template1 = __dirname + '/template1.html';
var template2 = __dirname + '/template2.html';
var template3 = __dirname + '/template3.html'... | JavaScript | lib/consolify.js | maxogden/consolify | mit | 1,123 | 49 | codeparrot/github-code |
6ba604c6c4c5c63aedaf20c7644839b513095651c18ed320335f6cf488dc709c | <?php
namespace ChickenWire\I18n;
abstract class Backend
{
abstract function translations($prefix = '');
abstract function translate($locale, $key, $options = array());
abstract function loadAll($prefix = '');
protected function _processValue($value, $options)
{
// Is the value an array?
if ... | PHP | src/ChickenWire/I18n/Backend.php | rseyferth/chickenwire | mit | 2,081 | 94 | codeparrot/github-code |
8be3cda2fa2343a09bf7bb41172a29b0df0686e3c2a0528aca5d6ad8dfc46b58 | <?php
/* TwigBundle:Exception:error.js.twig */
class __TwigTemplate_5b1a3d687d21c78ba58fadf43c45c997d3f801668de64dc6511f961b6c530a5d extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | PHP | app/cache/dev/twig/5b/1a/3d687d21c78ba58fadf43c45c997d3f801668de64dc6511f961b6c530a5d.php | MZK91/3w | mit | 1,122 | 46 | codeparrot/github-code |
fd2ac77aa90b4ec597e4fba187a1bccaee4df9db486ba435c52b45dbdd236866 | package HxCKDMS.HxCBlocks.Client.Rendering.GUI;
import HxCKDMS.HxCBlocks.Container.BarrierContainer;
import HxCKDMS.HxCBlocks.lib.Reference;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.resources.I18n;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
imp... | Java | src/main/java/HxCKDMS/HxCBlocks/Client/Rendering/GUI/BarrierGUI.java | HxCKDMS/HxC-Blocks | mit | 1,326 | 39 | codeparrot/github-code |
349c263e94e41e25439c6eeeb9100a6edb70140cd0887fd8e4479dc6cb552f31 | /*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.m.GrowingList.
sap.ui.define(['jquery.sap.global', './List', './library'],
function(jQuery, List, library) {... | JavaScript | webapp/resources/sap/m/GrowingList-dbg.js | marinho/german-articles | mit | 3,532 | 92 | codeparrot/github-code |
376d2ed085f0e755ed7e3ee32560a592ad8f268ca1b6e40008c78142898e923a | import PropTypes from 'prop-types';
import React from 'react';
import {
View,
ViewPropTypes,
StyleSheet,
Animated,
} from 'react-native';
import Avatar from './Avatar';
import Bubble from './Bubble';
import Day from './Day';
import {isSameUser, isSameDay} from './utils';
export default class Message extends ... | JavaScript | src/Message.js | pluralcom/react-native-gifted-chat | mit | 2,972 | 129 | codeparrot/github-code |
fe4d01079fdf6d6ff2dfec7df015872194e92621dc83d0cc21f0221f2a6f7199 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Release extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->library('session');
$this->load->model('release_model','release');
$this->load->model('asset_model','asset');
$this->load->model('... | PHP | application/controllers/Release.php | jmigsdj/epams | mit | 4,070 | 144 | codeparrot/github-code |
0e3f45876501ba240e5403a814428c12f9653fe270e80fd6de7225e64bb9cbca | require 'csv'
module Redshifter
module Util
class ExtractAndTransformUpdates
# Character used to represent a NULL value in the CSV. We cannot use an
# empty string to represent NULL, because then any tables with empty string
# values would have those converted to NULL in the Redshift tables. T... | Ruby | lib/redshifter/util/extract_and_transform_updates.rb | apartmentlist/redshifter | mit | 2,963 | 85 | codeparrot/github-code |
889cd4aa1a473087c78986a803697117363c06b29f6a7e04c2d51674d844fdcf | import readModelList from '../src/api-handlers/event-broker-read-models-list'
import sagasList from '../src/api-handlers/event-broker-sagas-list'
describe('@resolve-js/module-admin', () => {
test('handler "readModelList" should tolerate to errors', async () => {
let result = null
const req = {
resolve... | JavaScript | packages/modules/module-admin/test/api-handlers.test.js | reimagined/resolve | mit | 2,733 | 115 | codeparrot/github-code |
f17eec95a5ef1906d9c1ae2ed62f6c6960e01999337eb66a04b47027cb533c33 | // Packages
import { ServerResponse, IncomingMessage } from 'http'
import micro, { RequestHandler } from 'micro'
import test from 'ava'
import listen from 'test-listen'
// import request from 'request'
import requestPromise from 'request-promise'
// Lib
const post = require('../src')
// Function service
const servic... | TypeScript | test/index.ts | romuloalves/micro-post | mit | 6,052 | 254 | codeparrot/github-code |
61e3d4fcb1d6fa804e037815a13aa16398c7c5e71049e9e867739a3caed835b3 | '''The script reads an annotation files from Eel
pond protocol and outputs unannotated transcripts.
'''
import sys
from pandas import read_csv
from Bio import SeqIO
def main():
seq = read_csv(sys.argv[1], header=0)
# removed transcripts with no orthologs
seq_ortho = seq[seq.ortholog.notnull()]
# re... | Python | scripts/get_unannot.py | likit/seal-protocol | mit | 1,179 | 47 | codeparrot/github-code |
a5fa4a84bd7b5466b0df43e5e182b64599ea75fa4a7812d3c63ab4db7de79513 | <?php
class Conexion {
private $conex;
private $user;
private $port;
private $pass;
private $db;
private $host;
function __construct() {
// include_once 'configuracion.php';
$this->host = 'localhost';
$this->user = 'postgres';
$this->pass = 'pa... | PHP | librerias/Conexion.php | luispalacios2014/banco | mit | 3,091 | 114 | codeparrot/github-code |
534ecf725280088bd8b11112d7cca166dba7d999ccb4ab58e63b6b7fa3a99aa6 | // Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 Litecoin Developers
// Copyright (c) 2013 Elephancoin Developers
// Copyright (c) 2014 CinemaCoin Developer
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licen... | C++ | src/checkpoints.cpp | CCPorg/CIC-CinemaCoin-Ver-631-Original | mit | 2,017 | 79 | codeparrot/github-code |
12cb0caaf78cde01b6e0075d5a0b06c6227b8aedaa7d08cfa57a3b09514a3b8c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strnequ.c :+: :+: :+: ... | C | COREWAR_SRC/libft/ft_strnequ.c | AntonMirgorod/Redcode | mit | 1,133 | 32 | codeparrot/github-code |
655e6b1a21ff09215396a2d66f7a1b12a47b46cde07fd8652516b97299d14d9a | class Solution {
public:
string simplifyPath(string path) {
if (path == "/") {
return path;
}
string rst;
istringstream ss(path);
string token;
vector<string> s;
while(getline(ss, token, '/')) {
if (token == "..") {
if (!s.empty()) {
s.pop_back();
}
} else if (token =... | C++ | cpp/071_Simplify_Path.cpp | pineal/Leetcode_OJ | mit | 532 | 33 | codeparrot/github-code |
dc2107090db53de4add30e5b12a3bc926160cba1e4c5945ef7bf06b5cef33f5e | use serde_json::Value;
use super::super::schema;
use super::super::validators;
#[allow(missing_copy_implementations)]
pub struct UniqueItems;
impl super::Keyword for UniqueItems {
fn compile(&self, def: &Value, ctx: &schema::WalkContext<'_>) -> super::KeywordResult {
let uniq = keyword_key_exists!(def, "u... | Rust | src/json_schema/keywords/unique_items.rs | rustless/valico | mit | 1,360 | 55 | codeparrot/github-code |
fc6176ed2a29cd3e9b806d058216461fb88fc7d7b1689f26243cd8ccc083cd58 | <?php
namespace Webfactory\Doctrine\Config;
use Doctrine\DBAL\Connection;
/**
* Allows to use a pre-existing Doctrine DBAL connection with the ORMInfrastructure
*/
class ExistingConnectionConfiguration extends ConnectionConfiguration
{
/**
* @var Connection
*/
private $connection;
/**
*... | PHP | src/Webfactory/Doctrine/Config/ExistingConnectionConfiguration.php | webfactory/doctrine-orm-test-infrastructure | mit | 888 | 40 | codeparrot/github-code |
077caa6744f641beccab3f026339bce9e65442976eed465547f50c179d7c994f | <?php
namespace PHPWorldWide\Stats\Collection;
use PHPWorldWide\Stats\Collection;
use PHPWorldWide\Stats\Model\User;
class UserCollection extends Collection
{
private $startDate;
private $endDate;
public function setStartDate(\DateTime $startDate)
{
$this->startDate = $startDate;
}
... | PHP | src/Collection/UserCollection.php | dwdraju/stats | mit | 3,335 | 96 | codeparrot/github-code |
01afc6754e49ed68dea23cb30dd5d0816f7e6b6c27583a1fceb6d999de384641 | var Code = require('code');
var Lab = require('lab');
// Test shortcuts
var lab = exports.lab = Lab.script();
var expect = Code.expect;
var describe = lab.experiment;
var it = lab.test;
var Utils = require('../../lib/utils');
describe('Utils methods -', function () {
it('gets width', function (done) {
... | JavaScript | test/misc/utils.js | ldesplat/react-picture | mit | 1,724 | 88 | codeparrot/github-code |
2d912fc5e033051cd686a92426369e10b37fd9da7089f07ef18f770e353ec87a | <TS language="hi_IN" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>नया पता लिखिए !</translation>
</message>
<message>
<source>Copy the currently selected address to the system clipboard</source>
<transla... | TypeScript | src/qt/locale/bitcredit_hi_IN.ts | dragosbdi/bitcredit-2.0 | mit | 25,884 | 876 | codeparrot/github-code |
156c2988be6cf3d61a60a91111f54655ded75de30367998cda109228fefac934 | import React from 'react';
import { Menu, Icon } from 'antd';
import { connect } from 'react-redux';
import { setActiveTab } from '../../../actions';
const menu = [{
key: 1,
icon: 'key',
title: 'Quests'
},{
key: 2,
icon: 'flag',
title: 'Arena'
},{
key: 3,
icon: 'shop',
title: 'Shop'... | JavaScript | components/UI/Header/MainMenu.js | Dadidam/gladiator | mit | 1,307 | 59 | codeparrot/github-code |
5103188cb7dfb6075054237118a8afcdbf4bd1b1538f14023d7e477a24ebdd6f | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>lib/panels/PanelFooter.js - eagle-ui</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
<link rel="stylesheet" href="../asset... | HTML | doc/files/lib_panels_PanelFooter.js.html | xiaoking/eagle-ui | mit | 18,695 | 531 | codeparrot/github-code |
b034efd3d0f8d71f73b7d9481f426c8fb0078a020f618664d9044480b3f88843 | package com.jyutwaa.zhaoziliang.glimpse.Presenter.presenterImpl;
import android.content.Context;
import com.jyutwaa.zhaoziliang.glimpse.Activity.Bilibili.BilibiliCommentActivity;
import com.jyutwaa.zhaoziliang.glimpse.Presenter.IBilibiliCommentPresenter;
import com.jyutwaa.zhaoziliang.glimpse.Utils.CacheUtil;
/**
*... | Java | app/src/main/java/com/jyutwaa/zhaoziliang/glimpse/Presenter/presenterImpl/IBilibiliCommentPresenterImpl.java | ValentinZhao/Glimpse | mit | 978 | 31 | codeparrot/github-code |
271a886c264991d2cab2342f1473dfc26b39a9ef9355e4d33b3f91fae753f59f | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "db.h"
#include "net.h"
#include "init.h"
#include "addrman.h"
#include "... | C++ | src/net.cpp | DecryptRcoin/DecryptRcoin | mit | 64,484 | 1,973 | codeparrot/github-code |
9a8f433ae0a09bab8a345195f1fc8eaa4f90e3a20b33d7f401ba9380b0338077 | // WinIOCPServer.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include "Thread.h"
#include "IOCPServer.h"
#include "WS32SocketServer.h"
HANDLE g_IOCP;
class IOThread : public Thread
{
public:
virtual void Run()
{
//Thread::Run();
while (1)
{
//std::... | C++ | StudyServer/WinIOCPServer/Server.cpp | nicecapj/crossplatfromMmorpgServer | mit | 2,364 | 122 | codeparrot/github-code |
cbf2831e9e59690f3b8406aafb4de7a74f18deb25e1066da16ee04154dfe76dd | package carsonsx;
/**
* carsonsx/_HelloStub.java .
* ÓÉIDL-to-Java ±àÒëÆ÷ (¿ÉÒÆÖ²), °æ±¾ "3.2"Éú³É
* ´ÓHello.idl
* 2017Äê3ÔÂ27ÈÕ ÐÇÆÚÒ» ÏÂÎç05ʱ18·Ö31Ãë CST
*/
public class _HelloStub extends org.omg.CORBA.portable.ObjectImpl implements carsonsx.Hello
{
public String say ()
{
org.omg.CORBA.portable.... | Java | corba/src/main/java/carsonsx/_HelloStub.java | carsonsx/java-tutorials | mit | 2,039 | 70 | codeparrot/github-code |
016371a67aa23c972ebb581b328c8a1a843ad4718e5f7a22897ad87dd0996d66 | /*
* Based on http://andreasvolz.wordpress.com/2008/01/24/a-linux-joystick-class-for-c/
* by Andreas Volz, released under the MIT license.
* Ported to QT threads from Philip Trettner.
*
* Define ACGL_COMPILE_WITH_LINUX_JOYSTICK_SUPPORT to use this. Access the joystick/gamepads
* using the ACGL wrapper HardwareSup... | C | extern/acgl/include/linuxjoystick/Joystick.h | sabov/jedi | mit | 4,038 | 133 | codeparrot/github-code |
8ec3f5c1681e1583f88b87bf5b66f42a70cf3f29a86ac5fadb17cd06362c7363 | import { WebData } from '../../../ReduxCore/Util/webData';
import { Article } from '../../../Evolve/Entities/Article';
import { ArticleFormState, createArticleFormState } from '../../../Evolve/Forms/ArticleForm';
export interface ArticleListState {
webData: WebData<Article[]>;
createFormOpen: boolean;
crea... | TypeScript | src/Components/Pages/ArticleList/ArticleList.state.ts | Greakz/TypeScriptReactTest | mit | 902 | 30 | codeparrot/github-code |
0ee20aee3373f86804d8636ea97fa6cdec4bfc58d1770695542313d27b0cd3ef | package types
import com.codahale.jerkson.Json._
object DataItemUtil {
def obj2str[T](data: T): String = {
generate[T](data)
}
def str2obj(objectdata: String): DataItem = {
inClassLoader(classOf[DataItem])({
parse[DataItem](objectdata)
})
}
//Reference: https://github.com/codahale/j... | Scala | web2local/src/main/scala/types/DataItemUtil.scala | kappinen/web2local | mit | 3,242 | 115 | codeparrot/github-code |
93542fcce300b73955ee66c4565d21ddebebe606a5ec165c61d6e73d0845eac9 | var linkedList = function(value) {
this.value = value;
this.next = null;
};
var findKthToLast = function(k, head) {
// do recursively
if (head === null || k < 1) {
return;
} else if (k === 1) {
console.log(head.value);
findKthToLast(k, head.next);
} else {
findKthToLast(k-1, head.next);
}... | JavaScript | javascript/chapter02/2.2 - Return Kth to Last/returnKthToLast.js | Kiandr/CrackingCodingInterview | mit | 725 | 43 | codeparrot/github-code |
d3663786bf330c5267353065783b716aaadd36ce2e43693e14f47f74e436114d | goog.require('Odyssey.Generics.extend');
goog.require('Odyssey.Events.EventDispatcher');
goog.require('Odyssey.Events.EventDispatchInterface');
goog.require('Odyssey.Model.ModelAttributor');
goog.require('Odyssey.View.ViewAttributor');
goog.require('Odyssey.Events.MapClickEvent');
goog.require('Odyssey.Model.Matrix3D')... | JavaScript | Odyssey/Scripts/View/Overlay.js | Sixish/Odyssey | mit | 6,942 | 188 | codeparrot/github-code |
ccc70573facab36bae54c52aed297be9762498bca0f6f35d3b71c3629e2118e4 | require 'socket' # Get sockets from stdlib
require 'webrick/httputils' # for WEBrick::HTTPUtils::DefaultMimeTypes
module SingleServing
class Server
def get_ext(file)
# Not a great way to get the extension.
# If there is no '.' character it will return the entire string
# which ... | Ruby | lib/singleserving/server.rb | csexton/singleserving | mit | 1,375 | 38 | codeparrot/github-code |
41dc81fe6c1bbb6e9c17a2d4fab752bd4977f32aac29592ba29cca42b05455f0 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- CUSTOMIZE METADATA HERE -->
<title>Presentation</title>
<meta name="description" content="An html slideshow">
<meta name="author" content="Michael J. Harms">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name... | HTML | index.html | harmsm/four-minute-talk | mit | 4,540 | 131 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.