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 |
|---|---|---|---|---|---|---|---|---|
b0ed064dd03a55f945dcd282b45e5c386b7d0f52cb610567ded6ea59e0739d0c | # PyMM - Python MP3 Manager
# Copyright (C) 2000 Pierre Hjalm <pierre.hjalm@dis.uu.se>
#
# Modified by Alexander Kanavin <ak@sensi.org>
# Removed ID tags support and added VBR support
# Used http://home.swipnet.se/grd/mp3info/ for information
#
# This program is free software; you can redistribute it and/or
# modify it... | Python | reference/pyarchive/pyarchive/mp3.py | JoeGermuska/worblehat | mit | 7,381 | 264 | codeparrot/github-code |
abbbfa7f663b4812f2d05d234ff005866e3f4535e051583771543332f98bf582 | #include <boost/container/vector.hpp>
#include <boost/move/utility_core.hpp>
#include <cassert>
// Non-copyable class
class non_copyable {
BOOST_MOVABLE_BUT_NOT_COPYABLE(non_copyable)
public:
non_copyable() {}
non_copyable(BOOST_RV_REF(non_copyable)) {}
non_copyable& operator=(BOOST_RV_REF(non_copyable)) ... | C++ | cpp/boost/container/vector_move_container/main.cpp | Akagi201/learning-c | mit | 892 | 40 | codeparrot/github-code |
76812400cf3f0f65f5d4ed97c3804f21c635fd544c6047b11fefcdd8a8f0cfaa | <?xml version="1.0" ?><!DOCTYPE TS><TS language="bs" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Phicoin</source>
<translation>O Phicoinu</translation>
</message... | TypeScript | src/qt/locale/bitcoin_bs.ts | linked67/phicoin | mit | 96,680 | 2,917 | codeparrot/github-code |
7b65f9c280ceed0a63d24e78a01420442b4473d7d0b3dafb89a6ccab23362631 | import * as React from 'react'
import * as Path from 'path'
import { clamp } from '../../lib/clamp'
import { Tooltip } from './tooltip'
import { createObservableRef } from './observable-ref'
interface IPathTextProps {
/**
* The file system path which is to be displayed and, if
* necessary, truncated.
*/
r... | TypeScript | app/src/ui/lib/path-text.tsx | say25/desktop | mit | 15,237 | 503 | codeparrot/github-code |
84068c0d54b8625e52ac2b34e78d468882841841b9732b436078d4978e1b2ef9 |
#include "tdestr.h"
#include "common.h"
#include "define.h"
#include "tdefunc.h"
/*
* Name: initialize_window
* Purpose: To open a new window
* Date: June 5, 1991
* Returns: OK if window opened successfully
* ERROR if anything went wrong
* Notes: If this is first window, then set up as normal ... | C++ | DaiJiale-C-Demo/C Studio/C语言实例解析精粹/218/WINDOW.C | Encore777/DaiJiale-ProfessionalNotes | mit | 35,889 | 1,200 | codeparrot/github-code |
b53b83cfea20adb51103646388ad28fe686415b0008248a950095a7a4883cd2a | "use strict";
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProp... | JavaScript | libs/tink.js | danman113/Bound-Horizon | mit | 29,709 | 876 | codeparrot/github-code |
e62b5d743ba18cdc25b84b771bd770ca41c51e230da6632f941adb4c2de66dd5 | <?php
// $INDATA, $person and $mysqli are made available by gate.php
$personResult = $mysqli->query("
SELECT
*
FROM tee_people
WHERE status='Submitted' AND personid IN
(SELECT
personid
FROM tee_events
WHERE event IN ('B19', 'B20', 'B21', 'B22'))") or die($mysqli->error);
while ($person = $person... | PHP | ifgteamsmail.php | shanhija/Taido-Event-Enrolment | mit | 2,419 | 63 | codeparrot/github-code |
21304a8e9d411ea4ec21fe019120cdb8f562d2a0e3e6e8d816fb6678096a6fae | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtai... | C | src/Ogre/RenderSystems/NULL/include/Vao/OgreNULLUavBufferPacked.h | devxkh/FrankE | mit | 2,618 | 61 | codeparrot/github-code |
dbeb62aaeafe08e1072c811f95fd71b1c9d367a2251c07167fc0be50c40f30ab | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.Metadata.ManagedReference
{
using System;
using System.IO;
using System.Linq;
using Microsoft.CodeAnalysis.MSBuild;
... | C# | src/Microsoft.DocAsCode.Metadata.ManagedReference.Roslyn/ExtractMetadata/Project/RoslynProjectLoader.cs | superyyrrzz/docfx | mit | 1,355 | 40 | codeparrot/github-code |
668ecb103ad8311e991223766e0008f027347a63707fbb4522bb244855a05944 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>Notes</title>
... | HTML | notes/app/index.html | ryan-roemer/backbone-testing | mit | 5,076 | 136 | codeparrot/github-code |
b77c11bda7ffdbf6d06ba8f87fccd6263f401aa9cab53716e0e440443627f662 | <?php
namespace Taskio\Controller;
use Taskio\Entity\TimeRow;
use Cake\Chronos\Chronos;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\HttpFoundation\Request;
use Sym... | PHP | src/Taskio/Controller/TimeRowController.php | joonaskaskisolaphz/taskmanager | mit | 3,169 | 98 | codeparrot/github-code |
568400446227805a5632777cc80c618880d71321b71f0063459e4aef1a653156 | # frozen_string_literal: true
require "active_admin/helpers/collection"
module ActiveAdmin
module Views
# Renders a collection of index views available to the resource
# as a list with a separator
class IndexList < ActiveAdmin::Component
builder_method :index_list_renderer
include ::ActiveA... | Ruby | lib/active_admin/views/components/index_list.rb | activeadmin/activeadmin | mit | 2,045 | 71 | codeparrot/github-code |
c694835b3729018a430090033488f47e0baf5a06b376da96d2452e6f3dec42fb | const should = require('should');
const sinon = require('sinon');
const Promise = require('bluebird');
const mail = require('../../../../../core/server/services/mail');
const settingsCache = require('../../../../../core/shared/settings-cache');
const configUtils = require('../../../../utils/configUtils');
const urlUtil... | JavaScript | test/unit/server/services/mail/GhostMailer.test.js | ErisDS/Ghost | mit | 11,365 | 338 | codeparrot/github-code |
98740ca9b7508eaf638a540fdfc5e6729d06bbb5db7e82e51f0f275c8a3fabc0 | /**
* Created by moshensky on 6/17/15.
*/
import {inject} from 'aurelia-dependency-injection';
import {Session} from './session';
import {Logger} from './logger';
import {Locale} from './locale';
import {Config} from './config';
import {Redirect} from 'aurelia-router';
class BaseAuthorizeStep {
constructor(sessio... | JavaScript | src/authorize-steps.js | moshensky/aurelia-auth-session | mit | 2,086 | 85 | codeparrot/github-code |
036efaee76abef96aa5f65d995c376e40e0193314a177f27a678aaf4efc1a63d | #!/usr/bin/python
import os,sys,glob,re
import numpy as np
import scipy
from scipy import stats
import datetime
import time
from datetime import timedelta
#import matplotlib
#matplotlib.use('Agg')
#import matplotlib.pyplot as plt
#from matplotlib import colors as c
#from matplotlib import cm
from scipy.stats.kde impor... | Python | BehaviorAnalysis/mergingbehaviordata/lmmanalysisave_septcut4and2ifsame.py | sthyme/ZFSchizophrenia | mit | 13,435 | 284 | codeparrot/github-code |
2a137aaf6a7439a39324c67ed6e9a75b40f66ec78dde75f08e1bc543c839af84 | /*
* Copyright (c) 2014-2018 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | Java | components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/ws/KumuluzWSInvoker.java | kumuluz/kumuluzee | mit | 3,132 | 84 | codeparrot/github-code |
061a805a24d891bebacf5e229eba6062f15b060f6d8994a046c3dc60395039bb | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.CodeDom.Compiler
{
using System;
using System.CodeDom;
using System.Collections;
us... | C# | src/System.Private.Xml/src/Workarounds/CodeDom/Compiler/CompilerParameters.cs | shmao/corefx | mit | 9,534 | 323 | codeparrot/github-code |
9da1665d1a5b37214823d57a6fd8911bb00ebc040c503b3179fc973997f25a06 | /**
* Baobab Cursors
* ===============
*
* Cursors created by selecting some data within a Baobab tree.
*/
import Emitter from 'emmett';
import {Monkey} from './monkey';
import type from './type';
import {
Archive,
arrayFrom,
before,
coercePath,
deepClone,
getIn,
makeError,
shallowClone,
solveUpd... | JavaScript | src/cursor.js | Yomguithereal/baobab | mit | 21,174 | 855 | codeparrot/github-code |
e96ebda6a61d7cfe26527f90c92fe1f7def9342eaf080b7cd52ec7dd78739431 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _11.Equal_Sums
{
class Program
{
static void Main(string[] args)
{
int[] array = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int... | C# | 02. Programming Fundamentals - Jan 2017/04. Arrays/11. Equal Sums/11. Equal Sums/Program.cs | zrusev/SoftUni_2016 | mit | 816 | 32 | codeparrot/github-code |
bb66e615af3ed32cf4b71ddb7be6b45b83eb1c9e181695f2e7e300e78c8ce290 | ///<reference path="../testReference.ts" />
describe("Interactive Components", () => {
describe("YDragBoxLayer", () => {
let SVG_WIDTH = 400;
let SVG_HEIGHT = 400;
it("bounds()", () => {
let svg = TestMethods.generateSVG(SVG_WIDTH, SVG_HEIGHT);
let dbl = new Plottable.Components.YDragBoxLaye... | TypeScript | test/components/yDragBoxLayerTests.ts | onaio/plottable | mit | 5,370 | 168 | codeparrot/github-code |
72e4818528e432e79738dcb869770ca397254aafba5b2c92f1a29640ac1fc14c | /*
* Copyright 2015 Datalogics, Inc.
*/
package com.datalogics.pdf.samples.images;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.allOf;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasProperty;
import static org.junit.Assert.assertTrue;
... | Java | src/test/java/com/datalogics/pdf/samples/images/ImageDownsamplingTest.java | datalogics-coreyy/pdf-java-toolkit-samples | mit | 12,400 | 323 | codeparrot/github-code |
c49926612cf994acce6aee7983c2102309efd6b1ddbea8d808f3c85713d9d74a | include(CMakeParseArguments)
include(GenerateExportHeader)
include(cmake/utils.cmake)
include(cmake/install.cmake)
set(NAMESPACE_SEPARATOR "-")
function(add_run_target NAME TARGET_TYPE)
set(global-run-test-all run${NAMESPACE_SEPARATOR}tests${NAMESPACE_SEPARATOR}all)
set(global-run-all run${NAMESPACE_SEPARAT... | CMake | cmake/deftargets.cmake | GueimUCM/siplasplas | mit | 10,471 | 314 | codeparrot/github-code |
4cf219cfd903ee1fb29db05d35b0c1f81be3c4a03ea7bbdf55fc781fa40f2e49 |
var _ = require('lodash'),
moment = require('moment-timezone');
function dateStringToTimestampWithZone(timeIn, zone) {
// 07/09/2015 11:00 AM
var pieces = timeIn.split(' '),
dateString = pieces[0],
timeString = pieces[1],
ampm = pieces[2],
datePieces = dateString.split('/')... | JavaScript | rivers/chicago-beach-water-quality/parser.js | nupic-community/river-view | mit | 1,849 | 64 | codeparrot/github-code |
a4e3270ed8de0d0ca500b8b740ae844203b0c9b0d0ca0d543ebb1bf0d171f8a6 | <?php
class Upload extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->helper(array('form', 'url'));
}
function index()
{
$this->load->view('upload_form', array('error' => ' ' ));
}
function do_upload()
{
$config['upload_path'] = './uploads/';
$co... | PHP | doc/application/controllers/upload.php | AndersonMarcus/SitApTecNot2014 | mit | 806 | 40 | codeparrot/github-code |
bf8c182f4450609c4a51f09aea5602f32c734731ba2b7fb6ab8b5a6ff94d7ed1 | <?php
/* knp_menu_base.html.twig */
class __TwigTemplate_bbfcd9c793440ec65ad83b4206e10767344bb3041c486340a090228254c742cc extends Sonata\CacheBundle\Twig\TwigTemplate14
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->bloc... | PHP | web/1/bb/fc/d9c793440ec65ad83b4206e10767344bb3041c486340a090228254c742cc.php | wieloming/GPI | mit | 1,010 | 41 | codeparrot/github-code |
aa4704576ef7055e7211be682643cd5806025997dc44bd0afdf2a24f03a6a9f1 | // This file is part of the re-linq project (relinq.codeplex.com)
// Copyright (C) 2005-2009 rubicon informationstechnologie gmbh, www.rubicon.eu
//
// re-linq is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License as published by the
// Free Software F... | C# | src/portable/BrightstarDB.Portable/relinq/RelinqCore/Utilities/ArgumentUtility.cs | kentcb/BrightstarDB | mit | 5,863 | 142 | codeparrot/github-code |
e5d8472e9bcd93e1b61682487c1ffb62076a05b12874f60ec9c40db28ab18919 | // Copyright (c) 2015, Samvel Khalatyan. All rights reserved.
#include <unistd.h>
#include <stdio.h>
#include <initializer_list>
namespace {
const char* StdFilename(int fd) {
if (fd > STDERR_FILENO) {
return "invalid file descriptor";
}
const char* fnames[] {"stdin", "stdout", "stderr"};
ret... | C++ | src/ch3/seek_cur_main.cc | skhal/ap_unix | mit | 726 | 35 | codeparrot/github-code |
91ed81c34881746126d5fd6aab1c060e7b18cf41c4c602c5a4d99cceabd5669f | import { ModelData, ModelReference } from './dataTypes';
import { Plump } from './plump';
import { Observable } from 'rxjs';
import * as deepEqual from 'deep-equal';
export function observeAttribute<T>(
o: Observable<ModelData>,
attr: string,
): Observable<T> {
return o
.filter(v => !!v)
.map(v => v.attr... | TypeScript | src/observers.ts | kstf/plump | mit | 1,687 | 67 | codeparrot/github-code |
1c0947ac5621e2cbf7e37e6d8184c742b933aef1cec2be26f865420455f5a484 | /*
* Nuklear - 1.32.0 - public domain
* no warrenty implied; use at your own risk.
* authored from 2015-2017 by Micha Mettke
*/
/*
* ==============================================================
*
* API
*
* ===============================================================
*/... | C | c/nuklear_sdl.h | zecruel/sand_box | mit | 16,249 | 535 | codeparrot/github-code |
78c784a66875f747efe0d8560cfe9b6fc44449c16612fa9886cf708f45a639f3 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading.Tasks;
using Derivco.Orniscient.Proxy.Attributes;
using Derivco.Orniscient.Proxy.Filters;
using Derivco.Orniscient.Proxy.Grains.Filters;
using Orleans;
namespace TestGrains.Grains
{
[OrniscientGrain(typeof(SubGrain), L... | C# | Derivco.Orniscient/TestGrains/Grains/FooGrain.cs | DerivcoIpswich/Orniscient | mit | 2,783 | 84 | codeparrot/github-code |
d3f14643751fa511ea00f140d55d0db78e76df496de8d15bf818ee873ebf3d55 | namespace Orleans.CodeGenerator
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis... | C# | src/OrleansCodeGenerator/GrainMethodInvokerGenerator.cs | rrector/orleans | mit | 13,928 | 304 | codeparrot/github-code |
4d5391aa0dc620467d42f3fb31c719d4fec0133856929d160a9a48ca6ca90826 | /****************************************************************************
Copyright (c) 2011-2013,WebJet Business Division,CYOU
http://www.genesis-3d.com.cn
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... | C | Engine/addons/resource/resource.h | EngineDreamer/DreamEngine | mit | 9,299 | 351 | codeparrot/github-code |
6cf4ca1c899c6376e8b88f49ca0083b99e68f4336049d5a018b3251e44e4ceb9 | import numpy as np
import sys
import os
from utils import *
from utils_procs import *
# extract letters and spaces, and transform to lower case
# how: python proc_txt.py input_file_name
# read input args
# _, input_fname = 'temp', 'poetry_2'
_, input_fname = sys.argv
# constant
input_path = '../story/'
train_test_r... | Python | src/proc_txt.py | ProjectSEM/narrative | mit | 1,798 | 55 | codeparrot/github-code |
061a4f077abc93c03a7c97f5ec4cb0ac4ff143d952b0fdae04a4e78ab30bb1d1 | 'use strict';
angular.module('testing').controller('TestingController', ['$scope', '$http', '$location', 'Authentication', 'Appprogress', 'Users', 'Registrations', 'creditCardMgmt', 'createDialog', 'bankAccountMgmt',
function ($scope, $http, $location, Authentication, Appprogress, Users, Registrations, creditCardMgmt,... | JavaScript | public/modules/testing/controller/testing.js | UCDaHacker/btru | mit | 29,969 | 718 | codeparrot/github-code |
62bf046555f094dabec345c309ec7113f713b9d8d7b17e571297615b32d2d638 | #!/usr/bin/env python
# -*- coding: latin-1 -*-
import sys
import datetime
from threading import Thread
class ProcPing(Thread):
def __init__(self, name, data, qtdMsg):
Thread.__init__(self)
self.name = name
self.data = data
self.qtdMsg = qtdMsg
self.mailBox = []
def setPeer(self, Peer):
self.Pee... | Python | examples/MPI_Benchmark/source_code/pingping/python/pingping.py | jucimarjr/uarini | mit | 1,681 | 92 | codeparrot/github-code |
0635a362b60d60b2936b98621f8d81dc83676f93485ed17046bf9e0483392836 | class ProjectDocumentationViewObject
attr_reader :bank_account, :banks, :project, :user
def initialize(banks:, project:)
@bank_account = build_authorization_documents(
resource: BankAccount.new,
documents: BankAccount::AUTHORIZATION_DOCUMENTS
)
@user = build_authorization_documents(
... | Ruby | app/view_objects/project_documentation_view_object.rb | juntos-com-vc/juntos.com.vc | mit | 1,265 | 60 | codeparrot/github-code |
87483577080f28007f6445c17cd9245de00ecfcec9d008d81e956bbfbbde576f | import * as React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import Button from '@material-ui/core/Button';
import Tooltip from '@material-ui/core/Tooltip';
const useStyles = makeStyles({
root: {
width: 500,
},
});
export default function Po... | TypeScript | docs/src/pages/components/tooltips/PositionedTooltips.tsx | callemall/material-ui | mit | 2,341 | 79 | codeparrot/github-code |
4d6a77627706b08a7c38aa4d6647fc7015fc0ff788a5cccecf65450e415c8169 | <?php
/**
* Native(原生)支付-模式二-demo
* ====================================================
* 商户生成订单,先调用统一支付接口获取到code_url,
* 此URL直接生成二维码,用户扫码后调起支付。
*
*/
include_once("../WxPayPubHelper/WxPayPubHelper.php");
//使用统一支付接口
$unifiedOrder = new UnifiedOrder_pub();
//设置统一支付接口参数
//设置必填参数
//appid已填,商户无... | PHP | bqwxpay/demo/native_dynamic_qrcode.php | guotao2000/ecmall | mit | 3,316 | 114 | codeparrot/github-code |
ea0ed1885199f0c456a63c45c8170c03716824a1fa69a32744ba96655764c496 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using LibGit2Sharp;
namespace PullRequestReleaseNotes
{
public class UnreleasedCommitsProvider
{
private static readonly Regex ParseSemVer = new Regex(@"^(?<SemVer>(?<Major>\d+)(\.(?<Minor>\d+))(\.... | C# | src/PullRequestReleaseNotes/UnreleasedCommitsProvider.cs | jasminsehic/PullRequestReleaseNotes | mit | 3,576 | 81 | codeparrot/github-code |
82093e6677f31f73ad839e41e58d9547fdaf388b8fb525ce5bbc873365008b80 | #include <iostream>
#include <fstream>
#include <sstream>
#include <unistd.h>
#include "../include/solvers/Solver.h"
#include "../include/solvers/VISolver.h"
#include "../include/solvers/LRTDPSolver.h"
#include "../include/solvers/UCTSolver.h"
#include "../include/util/general.h"
#include "../include/util/graph.h"
#... | C++ | test/testB2T.cpp | luisenp/mdp-lib | mit | 1,378 | 53 | codeparrot/github-code |
6638d7f053d9d40eb53cd33459ba62494db62426645d84cc64e613e1b942aaac | module Cms::Extensions::ColumnValuesRelation
extend ActiveSupport::Concern
class LiquidExports < SS::Liquidization::LiquidExportsBase
def key?(name)
find_value(name).present?
end
def [](method_or_key)
find_value(method_or_key) || super
end
def find_value(id_or_name)
if id_or... | Ruby | app/models/cms/extensions/column_values_relation.rb | itowtips/shirasagi | mit | 1,825 | 59 | codeparrot/github-code |
fb77677999621cb623d1ec057d53ada5f001fe139624a789f6143f65f042b03d | <?php
/* GsbBundle:Comptable:liste.html.twig */
class __TwigTemplate_dc06f54f9a6a05255b94625b105abe9a800f77ec36d8c43116f14357fd56d26c extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
try {
$this->parent = $thi... | PHP | app/cache/dev/twig/dc/06/f54f9a6a05255b94625b105abe9a800f77ec36d8c43116f14357fd56d26c.php | Vulcanior/GSB_Symfony | mit | 3,106 | 104 | codeparrot/github-code |
160fd11eb8f7dae23dc0d5898b8b9ec334962311a675f09df7b75a01a2379fd9 | -- Copyright (c) 2011 by Robert G. Jakabosky <bobby@neoawareness.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 ... | Lua | handler/http/server.lua | Neopallium/lua-handlers | mit | 6,281 | 202 | codeparrot/github-code |
06ff8c2f15946b99a618f09ee499e768d051cbae1a0257983522023e0b60d2c7 | import {RegExpWrapper, StringWrapper, isPresent, isBlank} from '../../../src/facade/lang';
import {BaseException} from '../../../src/facade/exceptions';
import {StringMapWrapper} from '../../../src/facade/collection';
import {TouchMap, normalizeString} from '../../utils';
import {Url, RootUrl, convertUrlParamsToArray} ... | TypeScript | modules/@angular/router-deprecated/src/rules/route_paths/param_route_path.ts | hannahhoward/angular | mit | 10,280 | 310 | codeparrot/github-code |
d3024664c6d0bd7c70113c865969c3c133fab950af6e8cfa2274a8ce8046f986 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | src/autorest-core/lib/pipeline/schema-validation.ts | brjohnstmsft/autorest | mit | 2,036 | 38 | codeparrot/github-code |
3ec147bbbc7dc89e0f0ea0cec0d539acde889ebe835642aca664e8d950da7349 | /*!
* Flowtime.js
* http://marcolago.com/flowtime-js/
* MIT licensed
*
* Copyright (C) 2012-2013 Marco Lago, http://marcolago.com
*/
var Flowtime = (function ()
{
/**
* test if the device is touch enbled
*/
var isTouchDevice = 'ontouchstart' in document.documentElement;
/**
* test if the HTML History... | JavaScript | js/flowtime.js | maicong/qiugouda-love | mit | 56,570 | 2,102 | codeparrot/github-code |
45cba5c30026b49a30c06847778db87cefd39c2cd157c8b46025119366e7521d | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qgraphicsitem... | HTML | QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/qabstractgraphicsshapeitem-members.html | stephaneAG/PengPod700 | mit | 39,938 | 424 | codeparrot/github-code |
21b77acb8653b7d9d8d03b74f69cc2e9f29dc0c8ac88e9bf8345e1740e4b7688 | import React from 'react';
import xhttp from 'xhttp';
import {Modal, Button, Input, Alert} from 'react-bootstrap';
import ee from './../Emitter.js';
import ModalComponent from '../components/ModalComponent.js'
import RegistrationForm from './../forms/RegistrationForm.js'
export default class RegisterModal extends M... | JavaScript | client/modals/RegisterModal.js | spectralsun/reactgur | mit | 2,086 | 65 | codeparrot/github-code |
fba4a326d78bf398ef245838046c8e5b60d6232c6e7e35a22eb9d6e22e839b44 | class BooksController < ApplicationController
ADMIN_USERS = { "ror_admin" => "secretpass" }
before_action :authenticate , only: [:new, :edit, :create, :destroy]
def index
@books = Book.all
end
def new
@book = Book.new
end
def edit
@book = Book.find(params[:id])
end
def show
@book = ... | Ruby | 12-rails-model-has-many-relationship/hello-rails/app/controllers/books_controller.rb | sureshdsk/30-days-of-ruby-on-rails | mit | 958 | 60 | codeparrot/github-code |
d327edce91d7c882b867547a9a47fcbc88d095de734e3c9777f0e3d9b7056fa5 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using PlayStation.Entities.User;
using PlayStation.Entities.Web;
using PlayStation.Managers;
using PlayStation.Tools;
using PlayStation_App.Common;
using PlayStation_App.Database;
... | C# | PSX-App/ViewModels/LoginPageViewModel.cs | drasticactions/Pureisuteshon-App | mit | 4,886 | 129 | codeparrot/github-code |
550e47fc5e5aeb80ce97d3b03963b92e4e2e2b29a68e562efdeeabf011457a36 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs... | HTML | fonts/Geomanist-Complete-Webfont/Geomanist-Ultra-Webfont/geomanist-ultra-demo.html | newalchemylimited/tokendev.github.io | mit | 46,581 | 762 | codeparrot/github-code |
b48ba2a9ce0859c26705247953a38fb8ba5f82dcd6e5230adb59931709b51408 | /******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
Copyright (C) 2014-2015 Wang Bin <wbsecg1@gmail.com>
* This file is part of QtAV
This library is free software; you can redistribute it and/or
modify it under the terms of... | C | QtAV-master/qml/QmlAV/QuickVideoPreview.h | fuyanzhi1234/DevelopQt | mit | 2,221 | 67 | codeparrot/github-code |
315ac661b848818986ee48d80c977afbf2d8b64b9c5da6d3b11292f535228cac | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>DalekJS - Documentation - Browser - Mozilla Firefox</title>
<meta name="description" content="DalekJS - Documentation - Browser - Mozilla Firefox">
<meta... | HTML | docs/0.0.2/firefox.html | dalekjs/dalekjs.com | mit | 6,757 | 125 | codeparrot/github-code |
2a0df9089f96e57b1ab385a62e6f06b4f90bb45ab0b4e7953754b4fffb8bae09 | #ifndef PEOPLE_LIST_H
#define PEOPLE_LIST_H
#include <View.h>
#include <OutlineListView.h>
#include <PopUpMenu.h>
class PeepsListItem;
class PeopleList : public BOutlineListView
{
public:
PeopleList(BRect frame, const char *name, DataView *dv);
void SelectionChanged();
int32 FindNextAlphabetical(char c, int32 in... | C | src/PeopleList.h | HaikuArchives/MrPeeps | mit | 873 | 39 | codeparrot/github-code |
66dd5cf1a3e99303ab29a631322404676c899dab2ce05fd15651b49a1bbd3b42 | <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="imagetoolbar" content="false" />
<meta name="MSSmartTagsPreventParsing" content="true" />
<title>Extending the preview period f... | HTML | output/changes/2014-04-10-deployment-api-preview-extension/index.html | EEmeMo/developer.eeme.io | mit | 4,360 | 101 | codeparrot/github-code |
8a425617ba81b40303b66c9a20350a31c96d1d44b93fd7b6b375c5956c4d6297 | use std::any::Any;
use std::any::TypeId;
use std::fmt;
use std::str::from_utf8;
use typeable::Typeable;
use super::cell::{OptCell, PtrMapCell};
use header::{Header, HeaderFormat};
#[derive(Clone)]
pub struct Item {
raw: OptCell<Vec<Vec<u8>>>,
typed: PtrMapCell<HeaderFormat + Send + Sync>
}
impl Item {
... | Rust | src/header/internals/item.rs | clatour/hyper | mit | 3,276 | 115 | codeparrot/github-code |
22d3ac9548387ae3d5e1ece807b369bb0259710f45d830b7ab1d7507a4ef3ab0 | // #docregion
import {Component, OnInit} from 'angular2/core';
import {Hero} from './hero';
import {HeroService} from './hero.service';
@Component({
selector: 'hero-list',
template: `
<h3>Heroes:</h3>
<ul>
<li *ngFor="#hero of heroes">
{{ hero.name }}
</li>
</ul>
New Hero:
... | TypeScript | public/docs/_examples/server-communication/ts/app/toh/hero-list.component.ts | mbuhot/angular.io | mit | 1,385 | 56 | codeparrot/github-code |
7e894daaa18a35a83f238af4109db733b0af8a763cb553b5253dc0e619c46d0e | package com.lucene;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
public class CommentNews {
public Commen... | Java | src/com/lucene/CommentNews.java | MrWooJ/WJLucene-Server | mit | 3,720 | 90 | codeparrot/github-code |
869eb00d2ec6fbc1eb81b237972a2bd7596b758b19c7b4c7e61c3bafce56e725 | package com.njyb.test.zhanghuacai;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Properties;
import org.junit... | Java | src/test/java/com/njyb/test/zhanghuacai/TestCountryField.java | Willie1234/Inforvellor-master | mit | 3,157 | 112 | codeparrot/github-code |
396b879631bd1e2b3a6dbb534ca081d306afe5cc0e731c1e8bcee2a4d52eefaa | using UnityEditor;
using UnityEngine;
using System;
using System.Reflection;
namespace PlayFab.PfEditor
{
public class PlayFabEditorPackages : UnityEditor.Editor
{
private const int buttonWidth = 150;
public static bool IsPubSubPresent { get { return GetIsPubSubTypePresent(); } }
publ... | C# | Samples/Unity/PlayFabSignIn/Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorPackages.cs | PlayFab/PlayFab-Samples | mit | 4,339 | 114 | codeparrot/github-code |
196d5d36125161b2ffb0f4ebdc77cedb0374d0c3517d3980f27eed20d62a4abc | from som.interp_type import is_ast_interpreter
from som.primitives.primitives import Primitives
from som.vm.globals import trueObject, falseObject, nilObject
from som.vmobjects.primitive import UnaryPrimitive, BinaryPrimitive, TernaryPrimitive
if is_ast_interpreter():
from som.vmobjects.block_ast import AstBlock a... | Python | src/som/primitives/true_primitives.py | SOM-st/PySOM | mit | 1,649 | 52 | codeparrot/github-code |
07fa55b709874857990820e7f96b3c2a22197bb4f8ada5523fa5ef9b60d7fa05 | <?php
/**
* @link http://www.iisns.com/
* @copyright Copyright (c) 2015 iiSNS
* @license http://www.iisns.com/license/
*/
namespace app\modules\forum\models;
use Yii;
/**
* This is the model class for table "{{%forum_follow}}".
*
* @property integer $id
* @property integer $forum_id
* @property integer $use... | PHP | frontend/modules/forum/models/ForumFollow.php | shi-yang/iisns | mit | 958 | 54 | codeparrot/github-code |
5f38946a23cd3922ed94bcf9faeec03e1d84756c44fdeeaaea01a4922404135d | /**
* Module dependencies
*/
var _ = require('lodash');
var async = require('async');
var path = require('path');
var router = require('express')
.Router();
/**
* Models
*/
var Account = require('../models/Account');
var App = require('../models/App');
var Invite = require('../models/Invite');
/**
* Polici... | JavaScript | apps/demo/api/routes/AccountController.js | prateekbhatt/userjoy | mit | 11,907 | 648 | codeparrot/github-code |
544cf07c5176863bb51bf27b3c9f6180913ff0f8b4237cea6b2cc649579a88f0 | using ClosedXML.Excel;
using System;
namespace ClosedXML.Examples.Misc
{
public class CellValues : IXLExample
{
public void Create(String filePath)
{
using (var workbook = new XLWorkbook())
{
var ws = workbook.Worksheets.Add("Cell Values");
... | C# | ClosedXML.Examples/Misc/CellValues.cs | igitur/ClosedXML | mit | 6,508 | 149 | codeparrot/github-code |
cfe50e8c24f40a21197b5031e27195bb3fb456ca671c46593ca4d8989c8a2d29 | #include "Player_Cluster.h"
using namespace SparCraft;
Player_Cluster::Player_Cluster (const IDType & playerID)
{
_playerID = playerID;
}
void Player_Cluster::getMoves(GameState & state, const MoveArray & moves, std::vector<Action> & moveVec)
{
moveVec.clear();
IDType enemy(state.getEnemy(_playerID));
//... | C++ | ualbertabot/SparCraft/source/Player_Cluster.cpp | GBT3101/StarcraftGeneticAlgorithm | mit | 1,535 | 57 | codeparrot/github-code |
5913448f02e63868a966712c344484d41dce06842b32437126770d955b6b9087 | using System;
using Premotion.Mansion.Core.Scripting.ExpressionScript;
namespace Premotion.Mansion.Core.ScriptFunctions.String
{
/// <summary>
/// Clips the input string to the specified number of chararcters.
/// </summary>
[ScriptFunction("Clip")]
public class Clip : FunctionExpression
{
/// <summary>
///... | C# | src/Premotion.Mansion.Core/ScriptFunctions/String/Clip.cs | devatwork/Premotion-Mansion | mit | 1,336 | 48 | codeparrot/github-code |
05aa68c71ab02f81af542a5eb50caad3806765b5b9a353a8c705498d50d86b2e | package flow.twist.reporter;
import static flow.twist.config.AnalysisDirection.FORWARDS;
import java.util.Set;
import soot.SootMethod;
import soot.Unit;
import att.grappa.Edge;
import att.grappa.Graph;
import att.grappa.Node;
import att.grappa.Subgraph;
import com.google.common.collect.Sets;
import flow.twist.conf... | Java | src/main/java/flow/twist/reporter/DebugPlotter.java | packlnd/IFDS-RA | mit | 5,208 | 185 | codeparrot/github-code |
b0b002a70034d1e27a5f7913c96adba2e626f049ff681b26163e03dbdb2883e6 | namespace ADO.NET_Fetching_Resultsets
{
using System;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Text;
public class Exercises
{
private const string DBCreationFilePath = @"SQL/CreateDatabase.sql";
private const string TablesCreationFilePat... | C# | Databases Advanced - Entity Framework Core/DB Apps Introduction/ADO.NET Fetching Resultsets/Exercises.cs | RAstardzhiev/Software-University-SoftUni | mit | 14,153 | 337 | codeparrot/github-code |
3fa484b8d2b99bcebe2bfbc31ac0d6f3bef543bc9027a3a434d9ea1fafd074d0 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | HTML | Specification/API_Reference/iOS_SDK/d1/d81/interface_d_connect_message.html | DeviceConnect/DeviceConnect-Docs | mit | 57,391 | 1,261 | codeparrot/github-code |
38c7161157e6d88a7d7dad26ede32966a9d6c092d352d7a670a198264a8df838 | frappe.provide('frappe.ui.misc');
frappe.ui.misc.about = function() {
if(!frappe.ui.misc.about_dialog) {
var d = new frappe.ui.Dialog({title: __('Frappe Framework')});
$(d.body).html(repl("<div>\
<p>"+__("Open Source Applications for the Web")+"</p> \
<p><i class='fa fa-globe fa-fw'></i>\
Website: <a href... | JavaScript | frappe/public/js/frappe/ui/toolbar/about.js | bcornwellmott/frappe | mit | 1,550 | 54 | codeparrot/github-code |
7efaf60ac274908f40c0bc40e8dd59e0190d2b414ae98be406728db44ddc5bf4 | # frozen_string_literal: true
require 'opal/paths'
module Opal
module CliRunners
class Nashorn
def initialize(options)
@output = options.fetch(:output, $stdout)
end
attr_reader :output, :exit_status
def puts(*args)
output.puts(*args)
end
def run(code, argv)
... | Ruby | lib/opal/cli_runners/nashorn.rb | iliabylich/opal | mit | 1,676 | 60 | codeparrot/github-code |
7fb0d290318f809633553f675ec2205ae19dba7d1d2a96794d5cc4f57a96d758 | // ***********************************************************************
// Copyright (c) 2016 Charlie Poole
//
// 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, incl... | C# | src/TestCentric/testcentric.gui/Views/ProgressBarView.cs | NUnitSoftware/nunit-gui | mit | 2,918 | 89 | codeparrot/github-code |
e513543573fdbfe6478419c752017d592e991ee623f17b6b99e281f98c5b8196 | <?php
defined('PANEL_ACCESS') or die('No direct script access.');
/* EDIT PAGES/BLOCKS
-----------------------------*/
/*
* @name Edit
* @desc Edit page ( :any use base64_encode remenber decode file)
*/
$p->route('/action/edit/(:any)/(:any)', function ($token, $file) use ($p) {
if (Session::exists('u... | PHP | admin/api/inc/edit.php | nakome/morfy-admin-panel | mit | 14,508 | 353 | codeparrot/github-code |
63474b6fdcdff5c29dbf44516c9998c108ed85720b1a5c5ce5b9eae0a4afe3d7 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Qt 4.8: m... | HTML | QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/mainwindows-sdi-mainwindow-cpp.html | stephaneAG/PengPod700 | mit | 42,351 | 570 | codeparrot/github-code |
71a9b34eeccbaf65a997028c1f83098d7b72bdcfc40d851105681812585eb18f | module Fuelcell
module Help
# Formats help text to be displayed on the command line. The formatter
# works with help text structured in a hash.
class UsageFormatter < BaseFormatter
def call(data)
usage = data[:usage] || {}
text = format_cmd(usage)
opts = format_opts(usage[... | Ruby | lib/fuelcell/help/usage_formatter.rb | engine8/fuelcell | mit | 2,843 | 89 | codeparrot/github-code |
366c58339b96d6b68b7ea7853b38e48b70e4f6e7a3136afa8952db597e779a08 | from django.http import HttpRequest
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
try:
from allauth.account import app_settings as allauth_settings
from allauth.utils import (email_address_exists,
get_username_max_length)
from allaut... | Python | rest_auth/registration/serializers.py | saurabhVisie/appserver | mit | 6,316 | 173 | codeparrot/github-code |
fffe65b04740fc285b52919e1d971c6f973ee50237e0a5f63f6bc2b9f71ecc39 | package net.oschina.app.service;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import net.oschina.app.AppContext;
import net.oschina.app.bean.Tweet;
public class ServerTaskUtils {
public static void pubTweet(Context context, Tweet tweet) {
Intent intent = new I... | Java | android-app/app/src/main/java/net/oschina/app/service/ServerTaskUtils.java | vito-kong/oschina | mit | 1,145 | 32 | codeparrot/github-code |
550c468aa9981f33f81d7e9519e2e177bce130ad5350a936c2cc3e356dab47c8 | #First parameter is path for binary file containing instructions to be injected
#Second parameter is Process Identifier for process to be injected to
import binascii
import sys
from ctypes import *
if len(sys.argv) < 3:
print("usage inject.py <shellcodefile.bin> <pid>")
sys.exit(1)
file = open(sys.argv[1],'rb')... | Python | inject.py | idkwim/snippets | mit | 956 | 46 | codeparrot/github-code |
ac41b72603efa45335e5b874ecd4d7efccd483ebcd2a8fc99565a54be0c4bde9 | var path = require('path');
var webpack = require('webpack');
module.exports = {
devtool: 'source-map',
entry: [
'webpack-hot-middleware/client',
'./index'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: '/static/'
},
plugins: [
new webpack.optimi... | JavaScript | examples/counter/webpack.config.js | zalmoxisus/remote-redux-devtools | mit | 1,003 | 43 | codeparrot/github-code |
3b3e84cbdbabdd8e5d9ddd7461cc5a2ba9daf7f01492c91de186ea6692714124 | package com.aspose.barcode.examples.barcode_recognition.advanced_features;
import com.aspose.barcode.barcoderecognition.BarCodeReader;
import com.aspose.barcode.barcoderecognition.BarCodeResult;
import com.aspose.barcode.barcoderecognition.QualitySettings;
import com.aspose.barcode.examples.ApplyALicense;
import com.a... | Java | Examples/src/main/java/com/aspose/barcode/examples/barcode_recognition/advanced_features/FasterImageProcessingForBarcodeRecognition.java | asposebarcode/Aspose_BarCode_Java | mit | 1,597 | 43 | codeparrot/github-code |
1090c806646e1225186aa0c3141ab0c3e4e6db1b3a53fcd51cd54d823a30f5fa | /*!
TieJS - http://develman.github.io/tiejs
Licensed under the MIT license
Copyright (c) 2018 Georg Henkel <g.henkel@cg-solutions.de>, Christoph Huppertz <c.huppertz@cg-solutions.de>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (t... | JavaScript | src/tie.js | Develman/tiejs | mit | 29,487 | 821 | codeparrot/github-code |
54f14a108c96683264b53106b809ba7e17bae642ee0311544b8153b83587ee63 | <?php
/**
* DronePHP (http://www.dronephp.com)
*
* @link http://github.com/Pleets/DronePHP
* @copyright Copyright (c) 2016-2018 Pleets. (http://www.pleets.org)
* @license http://www.dronephp.com/license
* @author Darío Rivera <fermius.us@gmail.com>
*/
namespace DroneTest\Util;
use Drone\Db\Entity;
us... | PHP | test/Db/TableGateway/EntityAdapterTest.php | Pleets/Drone | mit | 8,298 | 279 | codeparrot/github-code |
aa6fe7ec5c90749d28f2131432a9206873d57efa5946d6b40fba603772823251 | /******************************************************************************/
/* Copyright (c) 2013-2022 VectorChief (at github, bitbucket, sourceforge) */
/* Distributed under the MIT software license, see the accompanying */
/* file COPYING or http://www.opensource.org/licenses/mit-license.php ... | C | core/config/rtarch_p32_128x2v2.h | VectorChief/QuadRay-engine | mit | 76,674 | 1,423 | codeparrot/github-code |
03d507c3ec55fb459e8382f5d8e069e19e7507c0887883ec9a49ddd6d55e8cbc | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>guest card report</title>
<link rel="stylesheet" type="text/css" href="jquery.contextmenu.css">
<link rel="stylesheet" type="text/css" href="table.css"/>
<link rel="stylesheet" href="grid.css" type="text... | HTML | reports/index.html | tukobit/simplecrud | mit | 16,046 | 345 | codeparrot/github-code |
990a2020bb177d3b5b820966a2fb1690d75c4280ce5315c9e6542cdd27cef9fe | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name... | HTML | HTMLDOCUMENTATION/README.html | chrismaeda/ChatScript | mit | 9,730 | 85 | codeparrot/github-code |
7cc6db6e86dce4c951be8ee6e1922d3f8091eaddb9a0830371f3145128e2a2ec | import zmq
class JRPC:
def __init__(self):
self.id = 0
def make_noti(self, method, params=None):
noti = {"jsonrpc":"2.0", "method":method}
if params is not None:
noti["params"] = params
return noti
def make_req(self, method, params=None):
req = self.make_noti(method, params)
req["id"] = self.id
s... | Python | testmethods.py | pijyoi/jsonrpc | mit | 1,581 | 73 | codeparrot/github-code |
a5c9bf3d14ce70bf1029d360ad8861e9f0f1b9fb5e6a3aba30d6bbedf78d555d |
// @require core/widget/helpers.js
(function ( $, _, Svelto ) {
/* PLUGIN */
let Plugin = {
call ( Widget, $ele, args ) {
let options = args[0],
isMethodCall = ( _.isString ( options ) && options.charAt ( 0 ) !== '_' ); // Methods starting with '_' are private
for ( let i = 0, l = $... | JavaScript | src/core/plugin/plugin.js | svelto/svelto | mit | 1,115 | 58 | codeparrot/github-code |
46e348a839481e620f2c690a70d67c5801bcf0ec0a66b607e3d4be9c9db6c159 | 'use strict';
const common = require('../common');
const assert = require('assert');
const URLSearchParams = require('url').URLSearchParams;
const { test, assert_equals, assert_true } = require('../common/wpt');
/* The following tests are copied from WPT. Modifications to them should be
upstreamed first. Refs:
... | JavaScript | nodejs/test/parallel/test-whatwg-url-searchparams-set.js | hoho/dosido | mit | 2,515 | 68 | codeparrot/github-code |
5f2bea104868818463a06d9a095952ad20623eb7cf4c262bb5a25d259be5ec0f | // Created by Samvel Khalatyan on Dec 12, 2013
// Copyright (c) 2013 Samvel Khalatyan. All rights reserved
//
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
#include <iostream>
#include <sstream>
#include "interface/11.13.h"
using std::cout;
using std::endl;
u... | C++ | src/11.13.cc | skhal/tcpppl | mit | 6,976 | 335 | codeparrot/github-code |
1bd6e1cb9702ff856da3204b3afecf7e35e584f29a05cae8bc413464152bcf96 | package io.github.cavweb20.xml.sax.rss;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;
import io.github.cavweb20.xml.util.XercesConstants;
... | Java | src/main/java/io/github/cavweb20/xml/sax/rss/ParsingRSSEvents.java | cavweb20/tutorial-xml | mit | 1,476 | 54 | codeparrot/github-code |
0f2860526367dc5deac94961400dbb8c88e0b09eefd22bdf9782c478e12ca846 | /* OpenCL runtime library: clCreateProgramWithBinary()
Copyright (c) 2012 Pekka Jääskeläinen / Tampere University of Technology
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 with... | C | lib/CL/clCreateProgramWithBinary.c | sting47/pocl | mit | 5,226 | 151 | codeparrot/github-code |
6678580fa570a17d9d1a8b67ade11862bedce1b121ce04911e23c37a71f09e46 | <?php
/**
* Red Internacion
*
* @author Sebastian Berra
*
* @since 0.1.5
*
*/
namespace RI\DBRIBundle\Entity;
use Doctrine\ORM\EntityRepository;
use RI\RIBundle\Utils\RI\RI;
use RI\RIBundle\Utils\RI\RIUtiles;
/**
* Repositorio Doctrine tabla salas_hist
*
* @author Sebastian Berra
*
*/
class SalasHist... | PHP | ri_3_4/src/RI/DBRIBundle/Entity/SalasHistRepository.php | sebasberra/ri | mit | 5,927 | 231 | codeparrot/github-code |
c71a070ab548ce3689c02063e59fe102e4324d050fe33c4db1faa0145af14a8f | /*
* MIT License
*
* Copyright (c) 2020-2021 The OSHI Project Contributors: https://github.com/oshi/oshi/graphs/contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without r... | Java | oshi-core/src/main/java/oshi/software/os/linux/LinuxOSFileStore.java | hazendaz/oshi | mit | 3,903 | 118 | codeparrot/github-code |
7a88f9f827f3a2e70ab9b1e859a8e8764964e62eff830c21135ee486c1d6ae6c | 'use strict';
var babelHelpers = require('./util/babelHelpers.js');
var React = require('react'),
_ = require('./util/_'),
cx = require('classnames'),
dates = require('./util/dates'),
localizers = require('./util/configuration').locale,
CustomPropTypes = require('./util/propTypes'),
Btn = requ... | JavaScript | lib/Decade.js | rdjpalmer/react-widgets | mit | 3,353 | 109 | codeparrot/github-code |
08a8ba6b8575c2b07da29720aebbc5601cfc38e59d28a7371964643fd9b41f8f | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Qt 4.8: t... | HTML | QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/qtestlib-tutorial3-testgui-cpp.html | stephaneAG/PengPod700 | mit | 12,488 | 266 | codeparrot/github-code |
bfcd0ebc5a94dd5cc4d98e719524f5480332835b84521b69926a2d2e1cd09543 | """Script to display a collection of paths after inserting one new path
Usage:
add_to_a_path.py [-U] PATHS PATH
add_to_a_path.py [-U] (-s | -i INDEX ) PATHS PATH
Options:
-h, --help Show this help and exit
-v, --version Show version number and exit
-s, --start ... | Python | src/python/add_to_a_path.py | jalanb/jab | mit | 3,399 | 137 | codeparrot/github-code |
25ef627b1d96927ad0534c0435419af62aa6612ec89476386d4123a5c1703238 | import React from 'react';
import ActionButton from './ActionButton';
import renderer from 'react-test-renderer';
describe('floating action button', () => {
it('renders initial view', () => {
const component = renderer.create(
<ActionButton />,
);
let tree = component.toJSON();
expect(tree).t... | JavaScript | client/components/ActionButton.test.js | crosshj/nodeCents | mit | 1,542 | 53 | codeparrot/github-code |
ccda46ceea46381c40c0a74884f81034d38e58b37f5e3011da35872f15c7536b | import { LoadoutParameters } from '@destinyitemmanager/dim-api-types';
import ClosableContainer from 'app/dim-ui/ClosableContainer';
import { t } from 'app/i18next-t';
import ConnectedInventoryItem from 'app/inventory/ConnectedInventoryItem';
import { D2BucketCategory, InventoryBucket } from 'app/inventory/inventory-bu... | TypeScript | src/app/loadout/loadout-edit/LoadoutEditBucket.tsx | DestinyItemManager/DIM | mit | 8,961 | 282 | codeparrot/github-code |
01b7b49a1a160dc6160f8ea376e583db1f80210d508626ab3aae80cb2fcb5e93 |
import os.path
import SCons.Tool
import aql
#//---------------------------------------------------------------------------//
_Warning = aql.Warning
_Tool = SCons.Tool.Tool
#//---------------------------------------------------------------------------//
def generate( env ):
toolsets = (
... | Python | tags/aql_working_copy_16022008/tools/aql_deftool_cc.py | menify/sandbox | mit | 880 | 39 | codeparrot/github-code |
cbf7c4bd535d0b2e2f569bfdd5f83ceb078e6a0481f31153875a064251e16599 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "miner.h"
#include "amount.h"
#include "chainparams.h"
#include "consen... | C++ | src/miner.cpp | phelix/namecore | mit | 21,213 | 569 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.