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 |
|---|---|---|---|---|---|---|---|---|
03c68881aed033f20aab9ad8352a77dff1bbf42c9e1f754e6fe786f25db33803 | /**
* This software is released as part of the Pumpernickel project.
*
* All com.pump resources in the Pumpernickel project are distributed under the
* MIT License:
* https://raw.githubusercontent.com/mickleness/pumpernickel/master/License.txt
*
* More information about the Pumpernickel project is available he... | Java | src/main/java/com/pump/plaf/PulsingCirclesThrobberUI.java | mickleness/pumpernickel | mit | 2,926 | 94 | codeparrot/github-code |
21e52ceba6388172f22639bd196b9d081c903f72171e1117b994fdf815946ce1 | """
virtstrap.log
-------------
Provides a central logging facility. It is used to record log info
and report both to a log file and stdout
"""
import sys
import logging
import traceback
CLINT_AVAILABLE = True
try:
from clint.textui import puts, colored
except:
# Clint is still not stable enough yet to just i... | Python | virtstrap-core/virtstrap/log.py | ravenac95/virtstrap | mit | 6,365 | 217 | codeparrot/github-code |
37f78ad1adcbed7274fdff65065efff53f2853e07247f211e9bb5c9a1e69d5c8 | package surge
import (
"fmt"
"time"
)
type applyCallback func(gwy NodeRunnerInterface, flow FlowInterface)
//========================================================================
//
// type FlowInterface
//
//========================================================================
type FlowInterface interface {... | GO | flow.go | hqr/surge | mit | 6,742 | 224 | codeparrot/github-code |
6da430b8911c141d7edfc00d8b92e51f431ef3d03a36af1b05beea2aabcda3ab | <?php
declare(strict_types=1);
namespace OAuth2Framework\Component\OpenIdConnect\UserInfo\Claim;
use OAuth2Framework\Component\Core\UserAccount\UserAccount;
final class GivenName implements Claim
{
private const CLAIM_NAME = 'given_name';
public function name(): string
{
return self::CLAIM_NAME... | PHP | src/Component/OpenIdConnect/UserInfo/Claim/GivenName.php | OAuth2-Framework/oauth2-framework | mit | 889 | 33 | codeparrot/github-code |
c51a27eba307f51e18123c7b173799a2b3426d57c7fbf9ac5624897b733066ab | const test = require('tape')
const MinHeap = require('./MinHeap')
test('find returns null in empty heap', assert => {
const heap = new MinHeap()
assert.equal(heap.findMin(), null)
assert.end()
})
test('length is 0 in empty heap', assert => {
const heap = new MinHeap()
assert.equal(heap.length, 0)
assert... | JavaScript | src/DataStructures/MinHeap.test.js | ayastreb/cs101 | mit | 3,005 | 135 | codeparrot/github-code |
14669d0e53d08407e41e6ac9204c5027fe3950a4b77328021451055c9d6ac490 | <?php
/*
* @author M2E Pro Developers Team
* @copyright M2E LTD
* @license Commercial use is forbidden
*/
class Ess_M2ePro_Model_Resource_Ebay_Template_Category_Collection
extends Ess_M2ePro_Model_Resource_Collection_Abstract
{
//########################################
public function _const... | PHP | src/app/code/community/Ess/M2ePro/Model/Resource/Ebay/Template/Category/Collection.php | portchris/NaturalRemedyCompany | mit | 2,128 | 67 | codeparrot/github-code |
004a404c3e36d66cb31cb33f0f5d839b1f0038fc77bf8d17d326dec05160e407 | import { Type } from '@angular/core';
import { ComponentFixture } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { KEYS } from '@terminus/ngx-tools/keycodes';
import {
createComponent as createComponentInner,
createKeyboardEvent,
} from '@terminus/n... | TypeScript | projects/library/expansion-panel/src/accordion/accordion.component.spec.ts | GetTerminus/terminus-ui | mit | 6,726 | 182 | codeparrot/github-code |
0d60b297130a4ecdf9f6cca8694fab2d0c1f3cf48046d6515348cb7317cb07d5 | using FingerMovingSimulation.Core.Hands.Colemak.Fingers.Right;
using MiscUtil;
namespace FingerMovingSimulation.Infrastructure.Hands.Colemak.Fingers.Right.IndexFinger
{
internal class LKeyState : IRightIndexFingerKeyState
{
private readonly RightIndexFinger rightIndexFinger;
public LKeyState(... | C# | legacy/CountFingerReachingWhenTexting/FingerMovingSimulation/Infrastructure/Hands/Colemak/Fingers/Right/IndexFinger/LKeyState.cs | sonbua/Sonak | mit | 1,657 | 67 | codeparrot/github-code |
780b67852fa1aceba66896133b67619687a2064e6efd88aaa64442ec58eb8901 | from __future__ import print_function
from eventlet import hubs
from eventlet.support import greenlets as greenlet
__all__ = ['Event']
class NOT_USED:
def __repr__(self):
return 'NOT_USED'
NOT_USED = NOT_USED()
class Event(object):
"""An abstraction where an arbitrary number of coroutines
can... | Python | eventlet/event.py | sbadia/pkg-python-eventlet | mit | 7,095 | 214 | codeparrot/github-code |
caca7eb9f9520429dfc5318fe001ea8e2c2fee149e89d58c3dd1d39b37eb9859 | from PyQt4 import QtCore, QtGui
from components.propertyeditor.Property import Property
from components.RestrictFileDialog import RestrictFileDialog
from PyQt4.QtCore import *
from PyQt4.QtGui import *
import sys, os
class QPropertyModel(QtCore.QAbstractItemModel):
def __init__(self, parent):
super(QProp... | Python | components/propertyeditor/QPropertyModel.py | go2net/PythonBlocks | mit | 7,747 | 221 | codeparrot/github-code |
48bb6c3f2414892347745d51abcfc93a74772ee3341056735f31c59782b18378 | //
// 2017-05-08, jjuiddong
// shader macro define
//
#pragma once
#define SHADER_SETFLOAT_MACRO(funcname, key, handle)\
D3DXHANDLE handle=NULL;\
void funcname(const float &val)\
{\
RET(!m_effect);\
if (!handle)\
handle = m_effect->GetParameterByName(NULL, key);\
if (FAILED(m_effect->SetFloat(handle, val)... | C | Graphic/base/shaderdef.h | jjuiddong/Common | mit | 1,281 | 54 | codeparrot/github-code |
76de471e322ee20da04bb942b8f4a3a75bc0660d44b36bd0983d35851d676959 | do $$
begin
if not exists (select 1 from information_schema.columns where table_name = 'masterIntegrations') then
-- This is the base table, do not add any fields here. Add them below.
create table "masterIntegrations" (
"id" VARCHAR(24) PRIMARY KEY NOT NULL,
"masterIntegrationId" INT NO... | SQL | common/scripts/configs/master_integrations.sql | stephanielingwood/admiral | mit | 29,431 | 382 | codeparrot/github-code |
c9aab020de117a1ec60d143c84cb11332a59350182395bb35960afe80fdf10a9 | # -*- coding: utf-8 -*-
"""
Sitemap builder
"""
import json, os
from treelib import Tree
from optimus.conf import settings
class SitemapError(Exception):
pass
class PageSitemap(object):
"""
Construct ressource page to build and published sitemap
"""
def __init__(self, tree, view, with_root=Fal... | Python | project/sitemap.py | sveetch/Sveetoy | mit | 4,546 | 134 | codeparrot/github-code |
c22ccef8bf4574c6314163c59c6e1ce844e1b4ec33e199f627d1e7fc9dc907f2 | <?php
class MageFM_Cielo_Block_Form extends Mage_Payment_Block_Form_Cc
{
protected function _construct()
{
$this->setTemplate('magefm/cielo/form.phtml');
}
public function getCcAvailableTypes()
{
$types = Mage::getModel('magefm_cielo/source_cctype')->toKeyValueArray();
if... | PHP | app/code/community/MageFM/Cielo/Block/Form.php | magefm/cielo | mit | 776 | 31 | codeparrot/github-code |
139b87789fcbe46c7b4bef81c5f558f0d58ccfa27ee0ee6fd7c1cfa15061f87a | #include "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "walletmodel.h"
#include <QMessageBox>
#include <QPushButton>
#include <QKeyEvent>
AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
QDialog(parent),
ui(new Ui::AskPassphraseDialog),
... | C++ | src/qt/askpassphrasedialog.cpp | barcoin-project/nothingcoin | mit | 9,729 | 249 | codeparrot/github-code |
cb50087f1c860c7cd9ec167fa90de82059a7498e769ae79e3e7fa37de71bfe64 | package it.uniba.di.itps.asd.exams.Lab20101117.pila;
/**
* Created by acidghost on 27/08/14.
*/
public class PilaDoubling<T> implements Pila<T> {
private T[] pila = (T[]) new Object[1];
private int n = 0;
@Override
public boolean isEmpty() {
return n == 0;
}
@Override
public voi... | Java | src/it/uniba/di/itps/asd/exams/Lab20101117/pila/PilaDoubling.java | acidghost/algorithms-data-structures-java | mit | 944 | 45 | codeparrot/github-code |
fd1f04c4b71f3a4be58927e13899af9cf9e8ac62e6cd8e51103bdf60d8fa3eb4 | using UnityEngine;
using System.Collections;
using UnityEngine.Networking;
public class PickupSpawner : NetworkBehaviour {
public GameObject pistol;
public GameObject shotgun;
public GameObject cannon;
private GameObject pickup;
private bool[] canSpawn;
private float[] spawnTimes;
public... | C# | Assets/Scripts/Pickups/PickupSpawner.cs | szucs2020/SpaceGame | mit | 1,991 | 63 | codeparrot/github-code |
73d5b2b8023db179bcde9d39841bf17645539830b56a96468618d6eff1fe212f | // Copyright (c) 2016, Ben Morgan. All rights reserved.
// Use of this source code is governed by an MIT license
// that can be found in the LICENSE file.
package lackey
import (
"os"
"os/exec"
"strconv"
"strings"
"github.com/cassava/lackey/audio/mp3"
"github.com/goulash/audio"
"github.com/goulash/color"
"gi... | GO | active.go | cassava/lackey | mit | 6,380 | 304 | codeparrot/github-code |
2fe18ad204e01eeda1a2d348388bbd09cc60d77013edbab8fc3667d1cc575d1e | require_relative 'pieces'
require_relative '../chess_utils/chess_utils'
class Board
include ChessUtils
include ChessUtils::Renderable
def initialize
@rows = Array.new(SIZE) { Array.new(SIZE) }
end
def [](pos)
row, col = pos
rows[row][col]
end
def []=(pos, piece)
row, col = pos
rows... | Ruby | lib/chess/board.rb | cribbles/chess | mit | 1,956 | 105 | codeparrot/github-code |
ee46cf11983c2ef91eededb4400206dacffc697dc25702e4f293019e5168cfb2 | package com.github.itimur.downloader;
import com.github.itimur.callbacks.FutureDownloadCallback;
import com.google.common.collect.ImmutableList;
import com.google.common.eventbus.EventBus;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.com... | Java | src/main/java/com/github/itimur/downloader/AsyncDownloader.java | timur86/console-downloader | mit | 1,331 | 34 | codeparrot/github-code |
cb74caa0458742d55ff199172bd385a06bdd15d5b5e441fa889f80dbb9ceeab8 | #include "stage.h"
#include <assert.h>
#include <map>
#include <string>
#include <vector>
#include "util.h"
static std::vector<std::string> stageStrings = {"planning", "alpha", "beta", "release", "mature", "inactive",
"abandoned", "deleted", "unknown"};
static std::map<std::string, Stage> stageMap = std::ma... | C++ | stage.cpp | caseif/dbo-get | mit | 981 | 38 | codeparrot/github-code |
d4f788f0a9ab302c5e7beb6dc24f9ad432350c5e8ef0054685ab627074d179c3 | import * as actions from './actions'
describe('App actions', () => {
it('selectTerm should create SELECT_TERM action', () => {
expect(actions.selectTerm('term')).toEqual({
type: 'SELECT_TERM',
term: 'term'
})
})
it('startFetch should create START_FETCH action', () => {
expect(actions.st... | JavaScript | src/actions/actions.spec.js | AlexanderAA/conceptnet | mit | 1,444 | 41 | codeparrot/github-code |
ef19cff136db884b1f46cfdb052a81ed3cdd9492d1ec20897a5a51d0c6097378 |
/*
***************************************************************************
* Mica - the Java(tm) Graphics Framework *
***************************************************************************
* NOTICE: Permission to use, copy, and modify this software and its *
* docum... | Java | src/parts/MiBasicPropertyPanel.java | justacoder/mica | mit | 5,741 | 147 | codeparrot/github-code |
7aa213a049c6cac45ecdf57f9e1e76c7759977858c875e78e47d676180ba8bf0 | #include "StdAfx.h"
#include "Tetris.h"
#include "TetrisDlg.h"
/*
case dir
when 0
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . * x * . . . . .
. . . . * . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
.... | C++ | BlockL.cpp | zhangsu/tetris | mit | 7,341 | 285 | codeparrot/github-code |
fb8e793d4eb428f964a858bab6e0e4aebf85ea0c5e96ad09ce28aed9d5d182dc | package com.fcduarte.todoapp.activity;
import android.app.Activity;
import android.app.Fragment;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v4.widget.CursorAdapter;
import android.support.v4.widget.SimpleCursorAdapter;
import android.view.LayoutInfla... | Java | src/com/fcduarte/todoapp/activity/TodoActivity.java | fcduarte/simple-todo | mit | 5,147 | 166 | codeparrot/github-code |
82c988b350e3837aa37edb14037d4b38f63435f2e28f96660dfe9e81b3a00d61 | /*
Nihonium Engine
This file is licensed under the terms of the MIT License.
See LICENCE.txt for the full licence.
*/
#include "../common/object.h"
#include "../common/screen.h"
#include "../windows/windows_filesystem.h"
#include "../windows/windows_input.h"
#include "../windows/windows_audio.h"
int main(int argc, ch... | C++ | source/windows/main.cpp | IDidMakeThat/gameengine-temp | mit | 960 | 36 | codeparrot/github-code |
36d44a66ed50e085bc3598ae632f2e61e43bb6dbd4b4036baf9a74222c914b2e | /**
* @version: 1.0.1
* @author: Dan Grossman http://www.dangrossman.info/
* @date: 2012-08-20
* @copyright: Copyright (c) 2012 Dan Grossman. All rights reserved.
* @license: Licensed under Apache License v2.0. See http://www.apache.org/licenses/LICENSE-2.0
* @website: http://www.improvely.com/
*/
!function ($)... | JavaScript | assets/bootstrap-daterangepicker/daterangepicker.js | bernatixer/QUEDEM.CAT | mit | 22,195 | 574 | codeparrot/github-code |
b3965f338c434a95c9a6623f26c4c5e5c3ee34c20ab9f8148981ef86ddaca988 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autodesk.AutoCAD.Colors;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.Runtime;
namespace Linq2Acad
{
public partial class Sam... | C# | src/Sources/Linq2Acad.SampleCode.CS/SampleCode.cs | wtertinek/Linq2Acad | mit | 10,743 | 374 | codeparrot/github-code |
7f297ba908558af44814207ba3e9830a5882e43ab0487def166d02740926fc75 | using ArtportalenApp.DependencyInjection;
using ArtportalenApp.Interfaces;
using ArtportalenApp.ViewModels;
using Autofac;
using Xamarin.Forms;
namespace ArtportalenApp.Views
{
public class SiteDetailPage : TabbedPage, IPage<SiteDetailViewModel>
{
private SiteDetailViewModel _viewModel;
privat... | C# | ArtportalenApp/Views/SiteDetailPage.cs | unger/ArtportalenApp | mit | 2,291 | 71 | codeparrot/github-code |
54a5db4e3768a8ff5cbac15889fb4395a181e3debc8e3376da7f91be0c2650c1 | 'use strict';
angular.module('refugeesApp')
.controller('SettingsController', function ($scope, Principal, Auth, Language, $translate) {
$scope.success = null;
$scope.error = null;
Principal.identity().then(function(account) {
$scope.settingsAccount = copyAccount(account);
... | JavaScript | src/main/webapp/scripts/app/account/settings/settings.controller.js | hubek/Refugees | mit | 1,537 | 43 | codeparrot/github-code |
6fb64ab95b13b015134e54022dbf23d9ca59eed115951c77d3bb88e85aaeca53 | var UTIL = require('./util');
var ShadowNode;
module.exports = ShadowNode = function(patch,options){
this.shadow = options.shadow;
this.native = options.native;
this.elem = new patch.type(this);
this.elem.props = patch.props;
this.elem.props.children = patch.children;
this.elem.state = this.elem.getInitia... | JavaScript | src/render/ShadowNode.js | guisouza/tEmbO | mit | 2,061 | 88 | codeparrot/github-code |
99795d6a33da6f83452c870298c71b947320465d06a6abd1a70aee9bae33a742 | <?php
namespace Cacic\CommonBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\JsonResponse;
class ModuloController extends Controller
{
/**
*
* Tela de exibição dos módulos do CACIC
*/
public func... | PHP | src/Cacic/CommonBundle/Controller/ModuloController.php | lightbase/cacic | mit | 6,529 | 180 | codeparrot/github-code |
fd3f980c57219d2e172be589cdd105170de2eb5a8821d7e9f212550d7ecdea19 | package stacks3;
import java.io.*;
// Todo
public class Zad3 {
public static void main(String[] args) {
Stos stos = new Stos();
while (true) {
System.out.println("Podaj napis do odwrócenia (Puste konczy program)");
String napis = "";
try {
Buf... | Java | java/algorithms/src/stacks3/Zad3.java | novirael/school-codebase | mit | 1,099 | 43 | codeparrot/github-code |
b79125d714b25434fabc1170a5dcbde193013fc818bdfd1a21af0de5f3662545 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title> L378 有序矩阵中第K小的元素 ... | HTML | _site/2019/08/28/L378/index.html | AndiHappy/andihappy.github.io | mit | 5,707 | 175 | codeparrot/github-code |
57680bc85d100cfe83d72dc93ddd1a3c6b8a3131b767f79246d01f88d8c04fef | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>circuits: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | HTML | clean/Linux-x86_64-4.11.1-2.0.7/released/8.12.0/circuits/8.8.0.html | coq-bench/coq-bench.github.io | mit | 6,666 | 163 | codeparrot/github-code |
d9bcfc065237524439beca4419d8f9d0c2b5875104539a47262edbb69072ab7c | package com.example.plugintest.manymethods.f.c;
public class A5 {
public static void a0(String msg) { System.out.println("msg=" + msg + 0); }
public static void a1(String msg) { System.out.println("msg=" + msg + 1); }
public static void a2(String msg) { System.out.println("msg=" + msg + 2); }
public st... | Java | Samples/PluginTest/src/main/java/com/example/plugintest/manymethods/f/c/A5.java | limpoxe/Android-Plugin-Framework | mit | 8,249 | 105 | codeparrot/github-code |
179c8d3e7efe98fddf883f69fbf05c36e8476454a934bb1e5e6a3dab9f28b929 | using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using Quilt4.Service.Interface.Business;
using Quilt4Net.Core.DataTransfer;
namespace Quilt4.Service.Controllers.WebAPI.Client
{
[Authorize]
public class ClientUserController : ApiController
{
private read... | C# | Quilt4.Service/Controllers/WebAPI/Client/ClientUserController.cs | Quilt4/Quilt4.Service | mit | 1,237 | 37 | codeparrot/github-code |
58d01d04e3f4b5cfe7486da409ed05f9d062416a209879e3770c5cc674cc7ae1 | #!/usr/bin/lua5.3
recipfns = {
"/home/matt/factorio/data/base/prototypes/recipe/ammo.lua",
"/home/matt/factorio/data/base/prototypes/recipe/capsule.lua",
"/home/matt/factorio/data/base/prototypes/recipe/equipment.lua",
"/home/matt/factorio/data/base/prototypes/recipe/fluid-recipe.lua",
"/home/matt/factorio... | Lua | LuaRecipe_to_JL.lua | lawless-m/factorio-utils | mit | 3,624 | 134 | codeparrot/github-code |
7ebb348776b782e26132e85fd96e187e5576e6b1dce0c3addba8bcbf7085a0e0 | package io.callstats.sdk;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import io.callstats.sdk.httpclient.CallStatsHttp2Client;
import io.callstats.sdk.internal.CallStatsAuthenticator;
import io.callstats.sdk.internal.CallStatsConst;
import io.callstats.sdk.listeners.CallStatsInitListene... | Java | callstats-java-sdk/src/test/java/io/callstats/sdk/CallStatsAuthenticatorTest.java | callstats-io/callstats.java | mit | 1,690 | 62 | codeparrot/github-code |
eb63f7f62337a168ebc0171986e3de8a97635fb583194da8c73fa52c79cc9c59 | import React, {PropTypes} from 'react';
import { Link, IndexLink } from 'react-router';
// import {Navbar, Nav, NavItem, NavDropdown, MenuItem} from 'react-bootstrap';
class Header extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div id="container" className="link... | JavaScript | src/components/common/Header.js | masakiando/dscount | mit | 1,905 | 62 | codeparrot/github-code |
9eda22d037179e7f49de227defac86923bd5f2fd26778b50479f17f8d1d25d34 |
//ButtonTable is a very very special case, because I am still not sure why it is a table :-)
// alternate design is to make it a field. Filed looks more logical, but table is more convenient at this time.
// we will review this design later and decide, meanwhile here is the ButtonPane table that DOES NOT inherit from ... | JavaScript | WebContent/exilityClient/js/api/features/tableButton.js | ExilantTechnologies/ExilityCore-5.0.0-ExampleProject | mit | 6,354 | 197 | codeparrot/github-code |
b5bd83d950b1955659854dfe0642950ce80bd6edf433a7f373c423083f0b59a9 | /**
* The MIT License (MIT)
* Copyright (c) 2012 David Carver
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy... | Java | serenity-app/src/main/java/us/nineworlds/serenity/volley/VolleyUtils.java | 0359xiaodong/serenity-android | mit | 2,183 | 63 | codeparrot/github-code |
48a367c450c9fe42cdb70276794e055a7c080deb46e0bf4b8e8736149c618b33 | package com.main.junaidstore.activities;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Parcelable;
import android.support.v4.app.FragmentActivity;
import android.support.v4.content.ContextCompat;
import androi... | Java | app/src/main/java/com/main/junaidstore/activities/MainActivity.java | mozi22/ImageUploadAndroidExample | mit | 14,871 | 341 | codeparrot/github-code |
82659ca2e4e3b0c4c0e45ea72356e85d9ce24fafd101f6fddd64d605fa267b56 | // Copyright (c) 2011-2014 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 "utilitydialog.h"
#include "ui_helpmessagedialog.h"
#include "bitcoingui.h"
#include "clientmodel.h"
#include "guiu... | C++ | src/qt/utilitydialog.cpp | m0gliE/fastcoin-cli | mit | 4,995 | 142 | codeparrot/github-code |
87228298358aea9121bb993dd7e6d15d4d7ae7bb06b0f6eeaab82f273a8931a8 | /*
function Canvas(paper, props){
var
props = $.extend(true, {
"x" : 0,
"y" : 0,
"width" : "100%",
"height" : "100%"
}, (props || {})),
_scale = 1,
_translateX = 0,
_translateY = 0,
self = this,
lx = 0,
ly = 0,
ox = 0,
oy = 0,
canvasBg = paper.rect(props.x, props.y, pr... | JavaScript | logica/js/class/Canvas.js | meszaros-lajos-gyorgy/meszaros-lajos-gyorgy.github.io | mit | 1,852 | 94 | codeparrot/github-code |
0ea9c906b3424f509181eb61136ea81f6d75d9f652fa0b1f07b081e80b50c5ff | <?php
$column_width = (int)(80/count($columns));
if (!empty($list)) {
?><div class="bDiv" >
<table cellspacing="0" cellpadding="0" border="0" id="flex1">
<thead>
<tr class='hDiv'>
<?php foreach ($columns as $column) { ?>
<th width='<?php echo $column_width; ?>%'>
<div class="text-left field-so... | PHP | assets/grocery_crud/themes/flexigrid/views/list_advertiser.php | YoshitoshiAbe/haotian | mit | 6,340 | 134 | codeparrot/github-code |
3bacc80ce102870ffdd0764136a67ff5574ea131bac97ad998f1104074bcbc6b | /* Bento
*
* $Id: Holder.java,v 1.14 2014/01/14 14:42:45 sthippo Exp $
*
* Copyright (c) 2002-2014 by bentodev.org
*
* Use of this code in source or compiled form is subject to the
* Bento Poetic License at http://www.bentodev.org/poetic-license.html
*/
package bento.runtime;
import bento.lang.Definition;
import bent... | Java | src/bento/runtime/Holder.java | bentodev/bentolang | mit | 2,076 | 66 | codeparrot/github-code |
074884e389c1d0ce10b7004540a9ea75deae0efcb5df007e1abe16ed3f6a2228 | /*
* Copyright (c) 2014 airbug inc. http://airbug.com
*
* bugpack-registry may be freely distributed under the MIT license.
*/
//-------------------------------------------------------------------------------
// Requires
//-------------------------------------------------------------------------------
var buildb... | JavaScript | buildbug.js | airbug/bugpack-registry | mit | 15,072 | 385 | codeparrot/github-code |
09dda6142afae028781b98d31bdbe832416553472d8e0e107f062259083e9eb9 | # -*- coding: utf-8 -*-
# @Time : 2017/7/27 18:04
# @Author : play4fun
# @File : calibrateCamera2.py
# @Software: PyCharm
"""
calibrateCamera2.py:
"""
import cv2
import numpy as np
def draw_axis(img, charuco_corners, charuco_ids, board):
vecs = np.load("./calib.npz") # I already calibrated the camera
... | Python | ch200_Extra_modules/aruco/Camera Calibration using ChArUco and Python/calibrateCamera2.py | makelove/OpenCV-Python-Tutorial | mit | 2,398 | 68 | codeparrot/github-code |
12cbd4965ce63c6bb18498c691225abbb073bf23f318a549de7c7a2516cf9364 | <a name="Datagram-Example"></a>
<div class="header">
<p>
Next: <a href="Example-Receiver.html#Example-Receiver" accesskey="n" rel="next">Example Receiver</a>, Previous: <a href="Receiving-Datagrams.html#Receiving-Datagrams" accesskey="p" rel="prev">Receiving Datagrams</a>, Up: <a href="Datagrams.html#Datagrams" accessk... | HTML | gnu_formatted/Datagram-Example.html | elmerland/elmerland | mit | 2,632 | 74 | codeparrot/github-code |
8d650ec53cf3498873bf14e0aad8e9be0742f7a240dc40511812454e227a2b43 | """
Module containing MPG Ranch NFC coarse classifier, version 3.1.
An NFC coarse classifier classifies an unclassified clip as a `'Call'`
if it appears to be a nocturnal flight call, or as a `'Noise'` otherwise.
It does not classify a clip that has already been classified, whether
manually or automatically.
This cla... | Python | vesper/mpg_ranch/nfc_coarse_classifier_3_1/classifier.py | HaroldMills/Vesper | mit | 14,590 | 416 | codeparrot/github-code |
b1c651dc8497a03c74ed20f6af612958d507764ce61767d1c568a8033ec71fac | <?php
/*
* This file is part of the Sonata 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\Cache\Adapter\Cache;
use Sonata\Cache\CacheElement;
/... | PHP | lib/Adapter/Cache/ApcCache.php | rmzamora/cache | mit | 4,597 | 201 | codeparrot/github-code |
5e3cca4ae80c922187493d6e49cbc64a26bdd4b5c47621b27775b12778b25233 | import superagent from 'superagent';
import config from '../config';
const { NODE_ENV } = process.env;
const methods = ['get', 'post', 'put', 'patch', 'del'];
function formatUrl(path) {
const adjustedPath = path[0] !== '/' ? '/' + path : path;
if (__SERVER__ || NODE_ENV === 'production') {
return `${config.a... | JavaScript | src/helpers/ApiClient.js | OKNoah/slipstream | mit | 1,542 | 54 | codeparrot/github-code |
bed6c323469a13b8daeb80cdaa86081eaac6f23a8555929ad0fe06b72b10ff5f | <?php
namespace Theme;
class Bootstrap extends \Reborn\Module\AbstractBootstrap
{
public function boot()
{
\Translate::load('theme::theme');
\Translate::load('theme::editor');
}
public function adminMenu(\Reborn\Util\Menu $menu, $modUri)
{
$menu->add('theme', t('theme::th... | PHP | heart/modules/theme/Bootstrap.php | reborncms/reborn | mit | 1,158 | 50 | codeparrot/github-code |
ea2bc82f203aa663b81d8786ae17c52cfcd736ddc6aa89d1efb74bb03bd20e0c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Open Knowledge">
<meta name="description" content="The Global... | HTML | place/south-sudan/index.html | okfn/opendataindex-2015 | mit | 8,611 | 174 | codeparrot/github-code |
6d5588c8f7d0ed17cb5f26ffd50fc22e5ba5a6549945a6cdf97481cb27dd2f80 | #region COPYRIGHT© 2009-2014 Phillip Clark. All rights reserved.
// For licensing information see License.txt (MIT style licensing).
#endregion
using System.Configuration;
using System.Reflection;
using System.Text.RegularExpressions;
namespace FlitBit.Wireup.Configuration
{
/// <summary>
/// Determines how wi... | C# | FlitBit.Wireup/Configuration/WireupIgnoreConfigurationElement.cs | flitbit-org/fbwireup | mit | 2,353 | 85 | codeparrot/github-code |
ee9b546130754d8078c74ee7880adb676a74218747dabf5d0cfe557f0b724da7 | #include <stdlib.h>
#include "tick.h"
#include "hw_config.h"
#include "typedef.h"
static volatile U32 internalTicks;
#define TICK__DisableInt() NVIC_Config(SysTick_IRQn, TICK_PRIORITY, DISABLE);
#define TICK__EnableInt() NVIC_Config(SysTick_IRQn, TICK_PRIORITY, ENABLE);
typedef struct _TICK{
struct _TICK* next;
... | C | audio_spectrum-firmware/src/tick.c | tuanpmt/led-rgb-audio-spectrum | mit | 3,061 | 144 | codeparrot/github-code |
0f7c78d0216395f588f3503e68aa175cd611d7fe4a1c10e1b72b673523b0ad90 | <?php
namespace Amber\Event\Parse;
/**
* Regex Parser
*
* Parses Regular Expressions
*
* @author Benjamin J. Anderson <andeb2804@gmail.com>
* @package Amber\Event\Parse
* @since Nov 4th, 2015
* @version v0.1
*/
class Regex
{
protected $route;
protected $regex;
protected $matches;
public functio... | PHP | amber/event/src/parse/regex.php | Vandise/Amber | mit | 2,433 | 113 | codeparrot/github-code |
b9279d7631a5fab37b1c9c1dcbedffe9aa6647ecde94fa98b90f71f78324dd0a | //
// analytical functions
//
#include "analyticalSolutions.h"
/**
\ingroup analyticalSolutions
@{
*/
/**
\brief Couette Flow between two parallel plates. One moving relative to the other with constant seperation (width).
@param iwork NOT USED
@param rwork[0] velocity of moving plate in the x-dir, \f$ vx ... | C | proteus/analyticalSolutions.c | erdc/proteus | mit | 57,408 | 2,237 | codeparrot/github-code |
dc4f2beb81f1f3c43a7240789d1293222e2a740201b651250d0ea4c4e54f0ecb | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| T... | PHP | application/config/routes.php | rick99856/loginnew | mit | 1,965 | 55 | codeparrot/github-code |
0053b0286952bcb6f38c12e55b16661983e0a4819fc9661336dbb40521206211 | package com.thirtydays.pushservice.receiver;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.thirtydays.pushservice.PushManager;
import com.thirtydays.pushservice.constant.PushConstant;
import com.thirtydays.pushservice.entity.... | Java | 公共组件/pushservice/src/main/java/com/thirtydays/pushservice/receiver/XMMessageReceiver.java | 30days-tech/android | mit | 5,515 | 132 | codeparrot/github-code |
f594870b3effb7f4fce7b815635e074c3e70fea3f0b442679dcf7bf976fa61dc | package test.matcher;
import static hu.interconnect.util.DateUtils.parseNap;
import java.util.Date;
import org.hamcrest.CoreMatchers;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.hamcrest.core.IsAnything;
import hu.interconnect.hr.backend.api.dto.SzabadsagFelhasznalasResponseDTO;
import ... | Java | hr2-java-parent/hr2-backend-api/src/test/java/test/matcher/SzabadsagFelhasznalasResponseDTOMatcher.java | tornaia/hr2 | mit | 2,803 | 81 | codeparrot/github-code |
f5f1ee30d5d08e312789cdf07bfdda9fd55ba2b445f54df93e0a2b00b13a48c3 | #include "c_tga_header.h"
#include <cstring>
namespace Img {
bool TGAHeader::LoadHeader(IO::FileReader::Ptr file) {
if (file->Size() - file->Position() < 19) {
return false;
}
file->ReadFull(&IdSize, 1);
file->ReadFull(&ColorMapType, 1);
file->ReadFull(&ImageType, 1);
file->ReadFull(&ColorMapStart, 2)... | C++ | source/deps/illa/c_tga_header.cpp | poppeman/Pictus | mit | 2,475 | 109 | codeparrot/github-code |
ff46ca0ea0f0152a96664196de0c1a8d6add0c85e78dcca80b5ae450ef2dc64c | /**
* ghostHunter - 0.4.0
* Copyright (C) 2014 Jamal Neufeld (jamal@i11u.me)
* MIT Licensed
* @license
*/
(function( $ ) {
/* Include the Lunr library */
var lunr=require('./lunr.min.js');
//This is the main plugin definition
$.fn.ghostHunter = function( options ) {
//Here we use jQuery's extend to set defa... | JavaScript | assets/ghostHunter/src/ghosthunter-nodependency.js | rkalis/roscasper | mit | 5,344 | 192 | codeparrot/github-code |
fa08904aecb6a63608789478e7a1cdbc87138332623fafc3abfbe97cd271aaf2 | <?php
/*
* This file is part of the BootstrapPHP package.
*
* (c) Milos Danilov <milosdanilov@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace BootstrapPHP\Components\Dropdown;
/**
* Class DropdownItem
*
* ... | PHP | src/BootstrapPHP/Components/Dropdown/DropdownItem.php | milosd92/BootstrapPHP | mit | 862 | 39 | codeparrot/github-code |
57a484944b840a3eea9762051781e13821c9e264259074339088168a6d616f1b | //
// YTKBatchRequest.h
//
// Copyright (c) 2012-2014 YTKNetwork https://github.com/yuantiku
//
// 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 with... | C | YTKNetwork/YTKBatchRequest.h | jjj2mdd/YTKNetwork | mit | 3,020 | 98 | codeparrot/github-code |
02490f85f8361bb5375f21da27b3af2fbf8ee121bdbbf57b01a115aa65f96773 | # Past examples are programmatically insecure
# You require arguments to be passed in but what if the wrong arguments are provided?
# Look at the timestable solution which changes numbers to text - what happens if you provide the number 30?
#
# One way of controlling these things uses conditions
# These enable specific... | Python | courses/examples/Beginners_python/conditions.py | Chris35Wills/Chris35Wills.github.io | mit | 826 | 30 | codeparrot/github-code |
3f66a5b89b96bdbc47975f2d575bd246ebb7d63afd9402d7a058e188154277d9 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>list-plus: 18 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="s... | HTML | clean/Linux-x86_64-4.04.2-2.0.5/released/8.5.0~camlp4/list-plus/1.1.0.html | coq-bench/coq-bench.github.io | mit | 6,787 | 164 | codeparrot/github-code |
317589a9077647a7b65b9aa68fc81b8c0076ae38d7c1b19c937d0e95af42ffae | package com.rsegismont.androlife.details;
import android.content.pm.ActivityInfo;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.CursorLoader;
import android.support.v4.content.Loader;
import android.support.v4.view.PagerTabStrip... | Java | mobile/src/main/java/com/rsegismont/androlife/details/ProgrammesDetailActivity.java | rsegismont/Androlife | mit | 7,606 | 233 | codeparrot/github-code |
cc737cffa16cbd61cc14791a18cfbe908c5b178d86765cd7b1a225071cef68e4 | package api
import (
"github.com/johnny-morrice/godless/crdt"
)
type CacheCloser interface {
CloseCache() error
}
type Cache interface {
HeadCache
IndexCache
NamespaceCache
CacheCloser
}
type HeadCache interface {
SetHead(head crdt.IPFSPath) error
GetHead() (crdt.IPFSPath, error)
}
type RequestPriorityQueu... | GO | api/cache.go | johnny-morrice/godless | mit | 762 | 39 | codeparrot/github-code |
297319542c55028ecf64cf4d9431c28fd95fcd64d6dc93687ffb54d1cfc3f49b | <?php
abstract class BaseMlmDailyBonusLog extends BaseObject implements Persistent {
protected static $peer;
protected $log_id;
protected $access_ip;
protected $bonus_type;
protected $bonus_date;
protected $created_by;
protected $created_on;
protected $updated_by;
protect... | PHP | lib/model/om/BaseMlmDailyBonusLog.php | vincent03460/fxcmiscc-partner | mit | 13,401 | 611 | codeparrot/github-code |
ae28eda48372712039e23b21d7fa75e5a91b3a15f03608d493fa42eebffd3431 | import React, {
PropTypes,
} from 'react';
import {
StyleSheet,
View,
Text,
} from 'react-native';
const styles = StyleSheet.create({
all: {
paddingHorizontal: 10,
paddingVertical: 5,
},
text: {
fontSize: 12,
color: '#666',
},
});
function ListItemTitle(props) {
return (
<View s... | JavaScript | Example/src/component/List/ListItemTitle/index.js | dragonwong/rnx-ui | mit | 576 | 42 | codeparrot/github-code |
925d66040fdb3be24df444ca1519309befbd8e92b394a02b959dc560263cbd5e | // Copyright (c) 2018 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "masternode-budget.h"
#include "tinyformat.h"
#include "utilmoneystr.h"
#include "test_syndicate.h"
#include <boost/test/uni... | C++ | src/test/budget_tests.cpp | SyndicateLtd/SyndicateQT | mit | 1,172 | 34 | codeparrot/github-code |
ff70d2e4ab8b83f5552ba95f0f01143e539468205d8288fcea87a9244dcf4a04 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Cages;
import cages.Cages;
import cage.Cage;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Assert;
imp... | Java | test/Cages/CagesTest.java | mahdiarn/OOPJava | mit | 6,210 | 186 | codeparrot/github-code |
ae86f3c654c057dbcff3fccfb32c9a2e44d0ff4be5e98c822eff31b25a0bb253 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | HTML | Reports/nd/nd.framework.4.0.6/Nd.Framework.Logging.Log4Net-net40.html | kuhlenh/port-to-core | mit | 11,682 | 285 | codeparrot/github-code |
1f1fe0c6de3df3e664a5005141393215ae25663561a043d2ad3ca7c20b29e120 | import axios from 'axios';
import {getAuthInfo} from './firebase-service';
import {VIANCA, CHAN, TOPA, IBA_COLOMBIA} from './service-store';
export const ERROR_RESULT = 'ERROR';
export const RESERVED_RESULT = 'R';
export const INSUFICIENT_RESULT = 'I';
export const NOT_FOUND_RESULT = 'NF';
export function submitReser... | JavaScript | src/service/reserve-service.js | camilosampedro/desvolar-web | mit | 1,631 | 53 | codeparrot/github-code |
b761262bddf43b7a81cc499d23dbf424b8930b1a5d4dd0e4521ac0ac9b95f9d6 | #!/usr/bin/python3
# This code is available for use under CC0 (Creative Commons 0 - universal).
# You can copy, modify, distribute and perform the work, even for commercial
# purposes, all without asking permission. For more information, see LICENSE.md or
# https://creativecommons.org/publicdomain/zero/1.0/
# usage:
... | Python | studdp/picker.py | MSchuwalow/StudDP | mit | 5,867 | 197 | codeparrot/github-code |
ddb6aa6d3d818276b5e6801eea367c9b88b2564a7d55eb3cc1c1f54a313c0c2b | <?php
/**
* Adapter to provide all information from any webpage.
*/
namespace Embed\Adapters;
use Embed\Request;
use Embed\Providers;
use Embed\Utils;
class N500px extends Adapter implements AdapterInterface
{
/**
* {@inheritdoc}
*/
public static function check(Request $request)
{
ret... | PHP | src/Adapters/N500px.php | zyuhel/Embed | mit | 1,404 | 66 | codeparrot/github-code |
c222a26510175951c839b5a719260d3a9370fd5a2de4b15d3b7fe39752e522aa | <!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http:/... | HTML | public/static/polymer/iron-list/iron-list.html | sfp12/darwin | mit | 27,585 | 970 | codeparrot/github-code |
3ef668f14b96ecfb8204a64af424cb03463d4aaf533640bf84f3ad85e044bcce | /* eslint-env jest */
import chalk from 'chalk'
import { wrapPlugin } from '../utils/test-helpers'
import plugin from './jasmine-this'
chalk.level = 0
const wrappedPlugin = wrapPlugin(plugin)
function expectTransformation(source, expectedOutput, options = {}) {
const result = wrappedPlugin(source, options)
expec... | TypeScript | src/transformers/jasmine-this.test.ts | skovhus/jest-codemods | mit | 11,985 | 603 | codeparrot/github-code |
ad86f584e6e550b32e4ba2512182266d487d769c7f2104cec7ced2f1f186a53c | #include "back_circle_server.h"
BackCircleServer::BackCircleServer()
{
back_circle_service_server_ =
nh_.advertiseService("/back_circle_service", &BackCircleServer::backCircleCallback, this);
ROS_INFO("Back Circle Service Ready");
}
void BackCircleServer::waitForTransform()
{
const double waiting_time = 5... | C++ | igvc_navigation/src/back_circle/back_circle_server.cpp | RoboJackets/igvc-software | mit | 2,844 | 80 | codeparrot/github-code |
5e0b25ca67fa4eb82626655c07808f10749a102fac4a0da01e592e6921b98d64 | /**
* Runs a webserver and socket server for visualizating interactions with TJBot
*/
var ip = require('ip');
var express = require("express")
var config = require('./config.js')
var path = require("path")
var app = express();
var http = require('http');
var exports = module.exports = {};
// routes
var routes = requ... | JavaScript | server.js | victordibia/tjdashboard | mit | 1,711 | 74 | codeparrot/github-code |
29d6b83f7145e42b1a4b5d03dc6f6c65ec1725f7f046682df85d0473c5c4cd84 | import 'webrtc-adapter/out/adapter.js';
import EventEmitter from 'events';
var configuration = {
iceServers: [
{urls: "stun:stun.l.google.com:19302"},
{urls: "turn:numb.viagenie.ca", credential: "w0kkaw0kka", username: "paul.sachs%40influitive.com"}
]
};
export default class FirePeer extends EventEmitter {... | JavaScript | src/utilities/FirePeer.js | psachs21/lillywood | mit | 6,680 | 216 | codeparrot/github-code |
db250058ed2ea95cbc94bba0d006456291e6d9f5c43b4bd885ad53e10eeec6c6 | package net.chrigel.clusterbrake.transcode.ffmpeg;
import com.google.inject.Inject;
import com.google.inject.Provider;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.Objects;
import jav... | Java | src/main/java/net/chrigel/clusterbrake/transcode/ffmpeg/FfmpegCLI.java | BrainDoctor/clusterbrake | mit | 4,174 | 129 | codeparrot/github-code |
5e4e87de29011a03e80eb9d630205d88df37d996df7db68d2f8e7f80f83a46ec | <!DOCTYPE html>
<html lang="en" ng-app="changessalonApp">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head... | HTML | about-us.html | leemtek/changessalon.com | mit | 19,384 | 320 | codeparrot/github-code |
e822e11198bd9598b878986842f7c0934d9cfe0baea1e355e2d36357e1144d1b | module FT
class SentenceProcessor
include FT::StemmerContainer
extend Forwardable
def_delegator :stemmer, :stem
attr_reader :sentence, :processed_sentence
private :sentence, :processed_sentence
def initialize(sentence)
@sentence = sentence
end
def call
normalize
r... | Ruby | lib/ft/sentence_processor.rb | vaihtovirta/ft | mit | 941 | 43 | codeparrot/github-code |
0a56d012514fcf0555f178d83f0760567c85ff92c070fcfe1bbd27eda5c79ef7 | struct file {
enum { FD_NONE, FD_PIPE, FD_INODE } type;
int ref; // reference count
char readable;
char writable;
struct pipe *pipe;
struct inode *ip;
uint off;
};
// in-memory copy of an inode
struct inode {
uint dev; // Device number
... | C | xv6/file.h | gaopinghuang0/xv6_project | mit | 927 | 43 | codeparrot/github-code |
43262b0673b007689db3e163d10b08e7ab6e055fb7465be547167a92e751ebef | //
// Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
/... | C++ | src/wrappers/image.cpp | baxtea/Anvil | mit | 91,414 | 2,033 | codeparrot/github-code |
c5720b4ba74031589bd09da95dc3d505ee03eef88153eb31b6484bc247986a2a | import React from 'react'
import ReactDOM from 'react-dom'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import { useRouterHistory } from 'react-router'
import {
mySyncHistoryWithStore,
default as createStore
} from './store/createStore'
import AppContainer from './containers/AppContainer'
imp... | JavaScript | src/main.js | theosherry/mx_pl | mit | 2,563 | 82 | codeparrot/github-code |
6699f2746bea5a76618fb5d94c542df8a0c34a73b693cf933e6dadeac8f092aa | /*
* continue_run.hpp
*
* Created on: Aug 14, 2014
* Author: joost
*/
#ifndef CONTINUE_RUN_HPP_
#define CONTINUE_RUN_HPP_
#include <boost/fusion/container.hpp>
#include <boost/fusion/include/vector.hpp>
#include <sferes/dbg/dbg.hpp>
#include "global_options.hpp"
#include <exp/images/stat/stat_map_image.h... | C++ | sferes/exp/images/continue_run/continue_run.hpp | Evolving-AI-Lab/innovation-engine | mit | 2,931 | 119 | codeparrot/github-code |
4a66bc3603aa786124e4811b25b30900c27f081f4b8dee95669367d9b7723b66 | /* Димитър Валериев Трифонов, КН, 50Б, 146518 */
/*
Задача 2. Да се напише програма, която сортира масива като използва структурата пирамида.
*/
#include "stdafx.h"
#include <iostream>
int total;
void heapify(int arr[], int i)
{
// Get index of left child & right child and
int leftChildIndex = i * 2;
int... | C++ | C++/Uni-Ruse/3. Data Structures and Algorithms/01.12.2015.22.25.cpp | dvt32/cpp-journey | mit | 1,394 | 66 | codeparrot/github-code |
b418557292d36a0d423d47e55addd67df6af605461bc226ce7c65df2303d7f4a |
#include "report.h"
#include "../opt_mps.h"
#include <general/iter.h>
#include <tid/tid.h>
#include <tools/common/log.h>
/* clang-format off */
void tools::finite::opt::reports::print_bfgs_report(){
if (tools::log->level() > spdlog::level::debug) return;
if (bfgs_log.empty()) return;
tools::log->debug(FMT... | C++ | source/tools/finite/opt/report.cpp | DavidAce/DMRG | mit | 8,037 | 173 | codeparrot/github-code |
e820624a124b46ee69d0b51192f64b06c57c53a010c42778cc0d9f6e0ec5c40b | /*----------------------------------------------------------------------------
File : fcmat3.c
Contents: data type for functional connectivity matrix (half-stored)
Author : Kristian Loewe, Christian Borgelt
----------------------------------------------------------------------------*/
#ifndef _WIN32 ... | C | src/fcmat3.c | kloewe/mod-fconn | mit | 9,360 | 191 | codeparrot/github-code |
8c90a761195054337d0cd4caf7162cc3c7551b7b76f4ba1daa011e013d68d81d | var github = require('octonode');
var _ = require('lodash');
module.exports = {
name:'action',
description:'A command to show recent activity for all members of your org',
example:'bosco action',
cmd:cmd
}
function cmd(bosco) {
getActivity(bosco);
}
function getActivity(bosco) {
var client = git... | JavaScript | commands/action.js | tomgco/bosco | mit | 1,100 | 48 | codeparrot/github-code |
2215bff45b65210e2e33a25edcced9fdd63d74f1f57ff560eebcb9d37c0866eb | /// <reference path="../../typings/index.d.ts" />
/// <reference path="../../node_modules/excalibur/dist/excalibur.d.ts" />
import * as ex from "excalibur";
import { Actor, Engine, IEngineOptions, Sprite, Texture, Vector } from "excalibur";
import * as p2 from "p2";
import { Body, Shape } from "p2";
export class Phys... | TypeScript | src/main/physics.ts | HSAR/Caldwell | mit | 1,948 | 54 | codeparrot/github-code |
4df78f4db98af1d234e2ad0087e5da96cfc12b643e625a414dd250dd77500346 | package infodynamics.measures.discrete;
import infodynamics.utils.MathsUtils;
import infodynamics.utils.MatrixUtils;
/**
* @author Joseph Lizier
*
* Info theoretic measure calculator base class for
* measures which require the context of the past
* history of the destination variable.
*
* Usage:
* 1. Con... | Java | MATLAB_functions/infodynamics/infodynamics-dist-0.1.3/java/source/infodynamics/measures/discrete/ContextOfPastMeasureCalculator.java | uomsystemsbiology/LMMEL-miR-miner | mit | 4,293 | 154 | codeparrot/github-code |
19c0e862a4ddf4cd30016a824212ff8409e282ea418253a4dfa6da437a2574a9 | #!/usr/bin/env python
import dateutil.parser
import dateutil.tz
import feedparser
import re
from datetime import datetime, timedelta
from joblist import JobList
class FilterException(Exception):
pass
class IndeedJobList(JobList):
'''Joblist class for Indeed
This joblist is for the indeed.com rss feed. I... | Python | indeed.py | keisetsu/joblist | mit | 5,528 | 142 | codeparrot/github-code |
e77ffcf723f70f3ece90f2828fb9ed11272b2efbaaf828b4a293e2002f75e954 | param(
[ValidateSet('Build', 'Pack', 'Clean')]
[string]$Target = 'Build',
[ValidatePattern("\d+\.\d+\.\d+(-\w*)?")]
[string]$Version = "2.0.1"
)
$BuildConfig = 'Release'
#$year = Get-Date -Format "yyyy"
$SolutionPath = Resolve-path Build.proj
$out = Join-Path (Resolve-Path .) bin
#reg... | PowerShell | build.ps1 | VisualOn/vo.ext | mit | 1,930 | 67 | codeparrot/github-code |
994ae62eb0a1a263ac36fcd552e2af44e134a12724635aa2ace76ea428bebc29 | /*******************************************************************************
* refn - All content 2016 Trent Reed, all rights reserved.
*------------------------------------------------------------------------------
* A type containing information for type qualifications and declarators.
***********************... | C++ | tools/RefN/Common/Qualifiers.hpp | TReed0803/RefN | mit | 1,322 | 57 | codeparrot/github-code |
0453d32d69fcc15003d1788fd1dbba6cffc58db7cc3a11a3b31f9d7db7848809 |
local PANEL = {}
local strAllowedNumericCharacters = "1234567890.-"
AccessorFunc( PANEL, "m_bAllowEnter", "EnterAllowed", FORCE_BOOL )
AccessorFunc( PANEL, "m_bUpdateOnType", "UpdateOnType", FORCE_BOOL ) -- Update the convar as we type
AccessorFunc( PANEL, "m_bNumeric", "Numeric", FORCE_BOOL )
AccessorFunc( PANEL, "... | Lua | lua/vgui/dtextentry.lua | OctoEnigma/shiny-octo-system | mit | 8,156 | 399 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.