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 |
|---|---|---|---|---|---|---|---|---|
805b19c4e56e52a58b2e8461091b341b41542f4d450969b16e07566ef14870b6 | using System;
using System.Threading.Tasks;
namespace Abp.Runtime.Caching
{
/// <summary>
/// Implements <see cref="ITypedCache{TKey,TValue}"/> to wrap a <see cref="ICache"/>.
/// </summary>
/// <typeparam name="TKey"></typeparam>
/// <typeparam name="TValue"></typeparam>
public class TypedCach... | C# | src/Abp/Runtime/Caching/TypedCacheWrapper.cs | AlexGeller/aspnetboilerplate | mit | 2,836 | 95 | codeparrot/github-code |
be686fc8cd3ea468ae856d778235d9eb7046ca4b3271b9ceaf258eb688a5255b | // Copyright (c) Microsoft Corporation. All rights reserved.
#include "StdAfx.h"
#include "DirectControl.h"
using namespace Microsoft::WindowsAPICodePack::DirectX::Controls;
#define WM_CUSTOM_DRAW WM_USER+100
DirectControl::DirectControl()
{
SetStyle(ControlStyles::UserPaint, true);
SetStyle(ControlStyles... | C++ | source/Samples/DirectX/UtilitiesLibrary/Controls/DirectControl.cpp | devkimchi/Windows-API-Code-Pack-1.1 | mit | 1,438 | 64 | codeparrot/github-code |
fccc21102f03841ad5e52d82c93b73814f4b31424f468e4c6496bd170a9ed8dd | /* -*- c++ -*-
+-----------------------------------------------------------------------+
| MSL GUI - A Graphical User Interface for the Marburg Software Library |
| |
| Copyright (C) 2018 Henning Zickermann ... | C | MSL_GUI/sources/GUI/src/problem_definition_dialog.h | kedingagnumerikunimarburg/Marburg_Software_Library | mit | 2,539 | 80 | codeparrot/github-code |
abe78d46486e4a5cbd7709ba387bdce16abeba4c5c7e9f735f888da2da331902 | using System;
using System.IO;
using EarLab.Analysis;
using EarLab.ReaderWriters;
namespace EarLab.Analysis
{
struct AnalysisResults
{
public double [,] Output;
public double MinValue, MaxValue, MinX, MaxX, MinY, MaxY;
public string ColorbarName, XAxisName, YAxisName, Title;
}
class AnalysisTo... | C# | tags/release-2.2/DataViewer/EarLabSharedLibrary/Analysis/Analysis.cs | AuditoryBiophysicsLab/EarLab | mit | 14,267 | 408 | codeparrot/github-code |
1386a97a59f93ec670fb95d31ed0615dadab932df2dbaf5cb3d27e575695faa2 | <?php
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\PageBundle\Admin;
use Doctrine\ORM\EntityRepos... | PHP | Admin/BlockAdmin.php | grimpows/SonataPageBundle | mit | 7,496 | 238 | codeparrot/github-code |
76aba8f618ef7e138485db6a666df7a325e2ccca3bd6f23458f6948889399972 | #include <iostream>
#include <seqan/sequence.h>
#include <seqan/file.h>
using namespace seqan;
using namespace std;
void print(StringSet<String<Dna5> > a){
for (int i=0;i<length(a);++i){
cout << a[i];
cout << ", ";}
cout << endl;
}
int main()
{
StringSet<String<Dna5> > nucleotideSets;
String<Dna5> s... | C++ | raw/pmsb13/pmsb13-data-20130530/sources/qhuulr654q26tohr/2013-04-26T17-24-19.186+0200/sandbox/seqanTuts/apps/2.3/2.3.cpp | bkahlert/seqan-research | mit | 1,024 | 42 | codeparrot/github-code |
5a76995ebf8f6a949cf896fd4f3c6d8dbc1f1c61e426b0798e681a28a252f0b3 | from dolfin import *
import numpy as np
import pandas as pd
n = 6
Dim = np.zeros((n,1))
ErrorL2 = np.zeros((n,1))
ErrorH1 = np.zeros((n,1))
OrderL2 = np.zeros((n,1))
OrderH1 = np.zeros((n,1))
# parameters['reorder_dofs_serial'] = False
for x in range(1,n+1):
parameters['form_compiler']['quadrature_degree'] = -1
... | Python | MHD/FEniCS/MHD/Stabilised/SaddlePointForm/Test/SplitMatrix/ScottTest/Hartman2D/Laplacian.py | wathen/PhD | mit | 1,981 | 71 | codeparrot/github-code |
f944696de8caa14e1a9328a7c041db31c32cfd5eeee9e74af50726e47d956556 | namespace SIM.Pipelines
{
#region
using System.Collections.Generic;
using SIM.Pipelines.Processors;
using Sitecore.Diagnostics.Base;
using JetBrains.Annotations;
using SIM.Extensions;
#endregion
public class Step
{
#region Fields
[CanBeNull]
public string ArgsName { get; }
[NotNu... | C# | src/SIM.Base/Pipelines/Step.cs | sergeyshushlyapin/Sitecore-Instance-Manager | mit | 1,800 | 69 | codeparrot/github-code |
84d00a301158fc373de9bbc5f6e775615495e5de9aec761eead59b3052d31311 | function Find-DbaDbUnusedIndex {
<#
.SYNOPSIS
Find unused indexes
.DESCRIPTION
This command will help you to find Unused indexes on a database or a list of databases
For now only supported for CLUSTERED and NONCLUSTERED indexes
.PARAMETER SqlInstance
The SQL Server you... | PowerShell | functions/Find-DbaDbUnusedIndex.ps1 | kozloski/dbatools | mit | 11,238 | 258 | codeparrot/github-code |
da3787539fc4c6b51dff59601a89ab18e39c867528a873a744f221ec3c27103a | //// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//// PARTICULAR PURPOSE.
////
//// Copyright (c) Microsoft Corporation. All rights reserved
#pragma once
/... | C | DirectXSceneStore/GameContent/Level.h | Kinect/tutorial | mit | 1,886 | 53 | codeparrot/github-code |
3732f2cf984fb2fcfdf23d9c23068ce29544a95575bbc678f273ac24057ed999 | goog.provide('ol.render.webgl.Immediate');
goog.require('ol');
goog.require('ol.extent');
goog.require('ol.geom.GeometryType');
goog.require('ol.render.ReplayType');
goog.require('ol.render.VectorContext');
goog.require('ol.render.webgl.ReplayGroup');
if (ol.ENABLE_WEBGL) {
/**
* @constructor
* @extends {ol... | JavaScript | bower_components/openlayers/src/ol/render/webgl/immediate.js | gistnu/tru-workshop | mit | 12,766 | 418 | codeparrot/github-code |
aa86ad14f5fb1067dab049c49038ce5af2c29f2c6d089bb3c9d4b72e5f7a7546 | # frozen_string_literal: true
module WaitableWorker
extend ActiveSupport::Concern
class_methods do
# Schedules multiple jobs and waits for them to be completed.
def bulk_perform_and_wait(args_list, timeout: 10)
# Short-circuit: it's more efficient to do small numbers of jobs inline
return bulk... | Ruby | app/workers/concerns/waitable_worker.rb | dreampet/gitlab | mit | 1,266 | 47 | codeparrot/github-code |
26fa7aef247da0840a6af7af202fc813b92c39ff9496beee51a70a600ae16ce7 | <?php
/**
* This file is part of the Zephir.
*
* (c) Phalcon Team <team@zephir-lang.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Zephir\Optimizers\FunctionCall;
use Zephir\Call;
use Zephir\CompilationContext;
u... | PHP | Library/Optimizers/FunctionCall/ZephirStringToHexOptimizer.php | phalcon/zephir | mit | 2,084 | 73 | codeparrot/github-code |
0dc56a0a9375d444cebbd5c623fb991640ded6cfba555080639a0f431a35a93b | /*
* Licensed to the University Corporation for Advanced Internet Development,
* Inc. (UCAID) under one or more contributor license agreements. See the
* NOTICE file distributed with this work for additional information regarding
* copyright ownership. The UCAID licenses this file to You under the Apache
* Lic... | Java | kombit-opensaml-2.5.1/src/org/opensaml/saml2/ecp/RelayState.java | Safewhere/kombit-web-java | mit | 1,879 | 48 | codeparrot/github-code |
520df9cf35608ee9f6ac61c46fbdcdc1041e605a08a2060293f8d82b02120806 | package autodagger.compiler.utils;
import com.google.auto.common.MoreElements;
import com.squareup.javapoet.ClassName;
import org.apache.commons.lang3.StringUtils;
import javax.lang.model.element.Element;
/**
* @author Lukasz Piliszczuk - lukasz.pili@gmail.com
*/
public class AutoComponentClassNameUtil {
pub... | Java | compiler-utils/src/main/java/autodagger/compiler/utils/AutoComponentClassNameUtil.java | dotfeng/Auto-Dagger2 | mit | 1,028 | 34 | codeparrot/github-code |
7657247ffea7065d3baa6b0f6559f07dc507a7e0b20242fa907789f6373ca38a | package hdkeys
import (
"crypto/sha256"
"fmt"
"math/big"
"github.com/runeaune/bitcoin-crypto/bitecdsa"
"github.com/runeaune/bitcoin-crypto/bitelliptic"
"golang.org/x/crypto/ripemd160"
)
type point struct {
x, y *big.Int
}
func RIPEMD160Hash(data []byte) []byte {
first := sha256.Sum256(data)
hasher := ripem... | GO | util.go | aarbt/bitcoin-hdwallet | mit | 3,046 | 146 | codeparrot/github-code |
5b7981ff59e11d08b4c5d2bd791eb1e90021ea119c1c86ca947aea3d33724fa6 | namespace Renci.SshNet.Messages.Connection
{
/// <summary>
/// Represents "signal" type channel request information
/// </summary>
internal class SignalRequestInfo : RequestInfo
{
/// <summary>
/// Channel request name.
/// </summary>
public const string NAME = "sign... | C# | trunk/Rhythm.SSIS/3rdParty/sshnet-31793/Messages/Connection/ChannelRequest/SignalRequestInfo.cs | rhythmagency/rhythm.ssis | mit | 1,886 | 71 | codeparrot/github-code |
47506daf6aa33b5e2adfce65f5395d47682800566a7906d4d38bcb4cf3cad815 | package com.xeiam.xchange.coinfloor;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.Deserializ... | Java | xchange-coinfloor/src/main/java/com/xeiam/xchange/coinfloor/CoinfloorAdapters.java | SovietBear/xchange-clean | mit | 19,664 | 534 | codeparrot/github-code |
94829583350857102520fd72a9dade568a9d1195dc0c459ba22944e20778578c | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="generator" content="pandoc">
<meta name="author" content="Hobson Lane" />
<meta name="dcterms.date" content="2015-05-19" />
<title>Neural Nets Demystified</title>
<meta name="apple-mobile-web-app-capable" content="yes" ... | HTML | nnd.html | totalgood/talks | mit | 15,223 | 470 | codeparrot/github-code |
6c854dc12ea172c7892cfe185fb65d4b13f857422a63b46194d9eac3c60e299e | namespace Sequin.Integration.Features
{
using System;
using System.Reflection;
using CommandBus;
using Discovery;
using Extensions;
using Fakes;
using FluentAssertions;
using Infrastructure;
using Pipeline;
using Xbehave;
public class CommandPipelineFeature : FeatureBase
... | C# | src/Sequin.Integration/Features/CommandPipelineFeature.cs | jasonmitchell/sequin | mit | 6,730 | 209 | codeparrot/github-code |
0681303c18b28bdd43f3cbcaf579cb1a0ffd7f8e10adb3fbb53a1018293a6f1e | <?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Sec... | PHP | app/AppKernel.php | wargfangs/3wa-cinema | mit | 1,669 | 42 | codeparrot/github-code |
87a3a5c353d360f9bede3b01234281bda208644cb6ead6f2525f613d7f18bdf0 | using System;
namespace PowerArgs.Preview
{
/// <summary>
/// Metadata that designates a particular command line argument as an action's direct pipeline target. When specified any and all pipeline input will
/// be used to directly populate the given argument. That means that any validators and revivers... | C# | PowerArgs/Hooks/ArgPipeline/ArgPipelineTarget.cs | dpen2000/PowerArgs | mit | 2,297 | 57 | codeparrot/github-code |
3d0db3f04c299930369e3678a3f4753061690a2a4bddd74c94859df2105bc81d | function locationSwitchChanged() {
if (locationSwitch.isChecked()) {
menu.setMainPage('mapClusterView.html', {closeMenu: false});
}
else {
menu.setMainPage('noLocationServices.html', {closeMenu: false});
}
};
function fuzzingSwitchChanged() {
alert(fuzzingSwitch.isChecked() ? 'Fuzzing on' : 'Fuzzing ... | JavaScript | client/client/www/lib/flock/;.js | justincosentino/cs91-heatmap | mit | 1,192 | 51 | codeparrot/github-code |
a639d97d7ae78005df590092b876360d3ac0b995ea2d96cf494a576386b6b066 | package in.twizmwaz.cardinal.module.modules.armorKeep;
import in.twizmwaz.cardinal.event.CardinalSpawnEvent;
import in.twizmwaz.cardinal.module.Module;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Handl... | Java | src/main/java/in/twizmwaz/cardinal/module/modules/armorKeep/ArmorKeep.java | Pablete1234/CardinalPGM | mit | 3,662 | 103 | codeparrot/github-code |
48e7af547c52aea05f8ba6834904c86007a965d67296027ce461cda12d169aa7 | function Update-KeePassDatabaseConfiguration
{
<#
.SYNOPSIS
Function to Update a KeePass Database Configuration Profile in the KeePassConfiguration.xml
.DESCRIPTION
The Profile Created will be accessible from the core functions Get,Update,New,Remove KeePassEntry and ect.
... | PowerShell | functions/Update-KeePassDatabaseConfiguration.ps1 | chritea/PSKeePass | mit | 8,926 | 182 | codeparrot/github-code |
d69302fb6b3bcdb7bbd35f3ae19a65cf5700abfc25bba629e7fd4b8317b669ae | #ifndef Vector3_h__
#define Vector3_h__
#include <Windows.h>
#include <cmath>
#include <limits>
static __forceinline float ToDegree(float Args)
{
const float flPi = 3.141592654f;
return (Args * (180.f / flPi));
}
#define D3DX_PI ((FLOAT) 3.141592654f)
#define D3DX_1BYPI ((FLOAT) 0.318309886f)
... | C | RyTak-Evade/Evade/Evade/Vector3.h | RyTak/LeaguePlusPlus | mit | 12,250 | 751 | codeparrot/github-code |
67fba69213fb1d3719087d9affa513eaa2449da8626410072a66e88c4b1348a4 | require 'vagrant/util/guest_hosts'
module VagrantPlugins
module GuestFreeBSD
module Cap
class ChangeHostName
extend Vagrant::Util::GuestHosts::BSD
def self.change_host_name(machine, name)
comm = machine.communicate
if !comm.test("hostname -f | grep '^#{name}$'", sudo: ... | Ruby | plugins/guests/freebsd/cap/change_host_name.rb | marxarelli/vagrant | mit | 982 | 32 | codeparrot/github-code |
5604d8b5abf5bd21d4ee80bac114f8148093a844470c7d79d8dd4531ad228bce | /**
* @fileoverview Raphael bubble chart renderer.
* @author NHN.
* FE Development Lab <dl_javascript@nhn.com>
*/
import raphaelRenderUtil from './raphaelRenderUtil';
import snippet from 'tui-code-snippet';
import raphael from 'raphael';
const ANIMATION_DURATION = 700;
const CIRCLE_OPACITY = 0.8;
const ST... | JavaScript | src/js/plugins/raphaelCoordinateTypeChart.js | nhnent/tui.chart | mit | 13,426 | 465 | codeparrot/github-code |
1343f494bd5ac5907c40b1bd720676fc14295cc0423c358a47804cdbe980e43b | //===-- llvm/CodeGen/MachineBasicBlock.h ------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C | include/llvm/include/llvm/CodeGen/MachineBasicBlock.h | ensemblr/llvm-project-boilerplate | mit | 35,943 | 847 | codeparrot/github-code |
8e0f052bce14a734e6c4cc3fd849eb67dd0d2f389425c5414ffc987acfce0572 | package handshake
import (
"bytes"
"encoding/binary"
"errors"
"fmt"
"v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol"
"v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/utils"
)
const quicTLSExtensionType = 0xffa5
type clientHelloTransportParameters struct {
Initi... | GO | external/github.com/lucas-clemente/quic-go/internal/handshake/tls_extension.go | simpleman1984/v2ray-core | mit | 2,985 | 91 | codeparrot/github-code |
9358866133ee55fb875d0d7dbe6a23d1e54ecce2ca2d8f353d0187138d9088c6 | package org.workcraft.plugins.petri;
import org.workcraft.annotations.DisplayName;
import org.workcraft.annotations.Hotkey;
import org.workcraft.annotations.SVGIcon;
import org.workcraft.dom.visual.VisualComponent;
import org.workcraft.plugins.builtin.settings.VisualCommonSettings;
import org.workcraft.shared.ColorGen... | Java | workcraft/PetriPlugin/src/org/workcraft/plugins/petri/VisualTransition.java | tuura/workcraft | mit | 1,545 | 49 | codeparrot/github-code |
b5ce6b6de02a8d25a3db9b38dba42cfdda17b548c54ad4ff8cc9dc95f8d911e7 | <?php
namespace LoopAnime\AppBundle\Queue\ConsoleCommand\Creators;
use Doctrine\ORM\EntityManager;
use LoopAnime\AppBundle\Queue\Entity\QueueRepository;
use LoopAnime\AppBundle\Queue\Enum\QueueType;
use LoopAnime\AppBundle\Queue\Services\QueueService;
use LoopAnime\ShowsBundle\Entity\AnimesEpisodesRepository;
use Sym... | PHP | src/LoopAnime/AppBundle/Queue/ConsoleCommand/Creators/PopulateTodaysEpisodesConsoleCommand.php | GodOfConquest/LoopAnime-Website | mit | 2,469 | 65 | codeparrot/github-code |
3e53728bfbb720879d4f76dbf3abf8e679f942daf44acceca987b7fa5ea4d1fb | #!/usr/bin/env python3
# Copyright (c) 2015-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Test script for security-check.py
'''
import os
import subprocess
import unittest
def write_testcode(... | Python | contrib/devtools/test-security-check.py | rnicoll/bitcoin | mit | 5,500 | 99 | codeparrot/github-code |
234aee450c5ef42127f469ca7062a542cf398416e00c802ea0b0e174e50136c2 | /*************************************************************************/
/* texture_region_editor_plugin.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | C++ | tools/editor/plugins/texture_region_editor_plugin.cpp | JoshuaGrams/godot | mit | 33,590 | 990 | codeparrot/github-code |
8687c644ca9fac79da4d7205c4aa9f4bbc581897115e754f1ba7fbdd8380aef8 | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | C++ | RenderSystems/GLES2/src/NaCl/OgreNaClGLContext.cpp | vbudovski/ogre | mit | 4,603 | 141 | codeparrot/github-code |
475fd588569cb944d9b74181ca05dca116815215e9945dc9a15bc878f0be9103 | import difflib
import os
import re
import subprocess
BREW_CMD_PATH = '/Library/Homebrew/cmd'
TAP_PATH = '/Library/Taps'
TAP_CMD_PATH = '/%s/%s/cmd'
def _get_brew_path_prefix():
"""To get brew path"""
try:
return subprocess.check_output(['brew', '--prefix'],
uni... | Python | thefuck/rules/brew_unknown_command.py | ytjiang/thefuck | mit | 3,202 | 104 | codeparrot/github-code |
6676a64fdfd1b29ecff7ca2ef65b50baae11e89bd4a96d7167793a2a7ce265c9 | var utils = require('../../../utils');
module.exports = function BooleanType(config) {
var self = {
selector: '.field-type-boolean[for="' + config.fieldName + '"]',
elements: {
button: 'button',
label: 'span',
value: 'label input[name="' + config.fieldName + '"]',
},
commands: [{
assertUI: functio... | JavaScript | test/e2e/adminUI/pages/fieldTypes/boolean.js | everisARQ/keystone | mit | 926 | 40 | codeparrot/github-code |
e9c9529b31071601475810ea7fa330f178d73fdf6ecfc1977699a8b673e5e39f | <?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* @ignore
*/
require_once(SMARTY_PLUGINS_DIR . 'shared.literal_compiler_param.php');
/**
* Smarty escape modifier plugin
*
* Type: modifier<br>
* Name: escape<br>
* Purpose: escape string for output
*
* @... | PHP | proto/lib/smarty/plugins/modifiercompiler.escape.php | pedro-c/FEUP-LBAW | mit | 4,976 | 125 | codeparrot/github-code |
528f95b1f71a05e34e8cdfcea5ad616bb62649a7b56fdd8a947c20de66d619a3 | namespace SuperPutty
{
partial class dlgLogin
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | C# | SuperPutty/dlgLogin.Designer.cs | primeinc/superputty | mit | 6,049 | 130 | codeparrot/github-code |
d2d0279ae0e1b76b97032dcb5b11d827b66afe4b187981fd3ce725de2e195023 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... | JavaScript | packages/common/locales/global/fr-GP.js | Toxicable/angular | mit | 3,441 | 120 | codeparrot/github-code |
09ff44356f60e25351732e8bcc970e314753e708cef202cd9a5359a151c40a15 | <h2 class="main api-key">API Key</h2>
<form name="apiKeyForm<?php echo $id ?>" id="apiKeyForm<?php echo $id ?>" action="<?php echo admin_url() ?>api/save_key">
<!-- Hidden fields -->
<input id="id" name="id" type="hidden" value="<?php echo $id ?>" />
<!-- Key Hash -->
<dl class="small">
... | PHP | themes/admin/views/api/key.php | chguoxi/ionize | mit | 3,711 | 98 | codeparrot/github-code |
4e15f300aa01bf7cbd849cea3f3d72858881e0e29bdfa3f156d14917019b051e | package org.tools.hqlbuilder.service;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.... | Java | hql-builder/hibernate/hibernate-5.4/src/main/java/org/tools/hqlbuilder/service/RunQuery.java | jurgendl/hql-builder | mit | 6,648 | 146 | codeparrot/github-code |
854236cd85abef9f5638259634b85d86e41c8488bbe605fcf1c3d53cca5778fe | {% load i18n %}
<table class="table table-striped">
<thead>
<tr>
<th>{% trans "Compose ID" %}</th>
<th>{% trans "Release" %}</th>
<th>{% trans "Date" %}</th>
<th>{% trans "Type" %}</th>
<th>{% trans "Respin" %}</th>
<th>{% trans "Label" %}</th>
<th>{% trans "Imported Date" %}</th>
<th... | HTML | pdc/apps/compose/templates/compose_list_include.html | release-engineering/product-definition-center | mit | 1,253 | 40 | codeparrot/github-code |
e1f9a89a434442c6977d8343dcac9aafa997b2fe0ffb7b7f4e3a194cb710ea82 | #include <string.h>
#include <stdio.h>
typedef union
{
int units;
float kgs;
} amount;
typedef struct
{
char selling[15];
float unitprice;
int unittype;
amount howmuch;
} product;
int main()
{
product dieselmotorbike;
product apples;
product * myebaystore[2];
int nitems = 2;
int i;
strcpy... | C | c/struct/union_struct.c | kwailamchan/programming-languages | mit | 1,015 | 56 | codeparrot/github-code |
b36ef52d4241a6511bec901698ca4e7f52b0292397ae1c1ab972072cfd7f1a24 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Stashcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef __cplusplus
# error This header can only be compiled as C++.
#endif
#if... | C | src/protocol.h | stashdev/stashcoin | mit | 3,695 | 148 | codeparrot/github-code |
5aaf01387117c0012aa9f3ac274077dae769dece42891a56687446a32d2acc8e | <?php
/* @var Concrete\Attribute\Address\Controller $controller */
/* @var Concrete\Core\Form\Service\Form $form */
/* @var array $scopeItems */
/* @var Concrete\Core\Attribute\View $view */
$app = Concrete\Core\Support\Facade\Application::getFacadeApplication();
$co = $app->make('helper/lists/countries');
$countries ... | PHP | concrete/attributes/address/type_form.php | rikzuiderlicht/concrete5 | mit | 2,805 | 72 | codeparrot/github-code |
2705b0ac8e0a1106942681d2abf6b6f54543644ba7c9a963e9a814db6c992ef9 | /*
Copyright 2005-2014 Intel Corporation. All Rights Reserved.
This file is part of Threading Building Blocks.
Threading Building Blocks is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundat... | C | libs/tbb/tbb/pipeline.h | weshoke/ofxOpenVDB | mit | 24,224 | 674 | codeparrot/github-code |
741e53553907d315e107172e30b889bb5fd60f8003fd98e69e5df7f6a01278fe | // MvxWindowsPhoneLiveTileBookmarkLibrarian.cs
// (c) Copyright Cirrious Ltd. http://www.cirrious.com
// MvvmCross is licensed using Microsoft Public License (Ms-PL)
// Contributions and inspirations noted in readme.md and license.txt
//
// Project Lead - Stuart Lodge, @slodge, me@slodge.com
using MvvmCross.Platform;
... | C# | Bookmarks/MvvmCross.Plugins.Bookmarks.WindowsPhone/MvxWindowsPhoneLiveTileBookmarkLibrarian.cs | martijn00/MvvmCross-Plugins | mit | 3,267 | 91 | codeparrot/github-code |
66f8548829b72d6025c9b44d9591af7b96da61676d2feb8e8f64c7f1b31953e1 | function cuda_geometry(:: ActivationFunction, output :: Blob)
len = length(output)
x_block = round(Int64, ceil(float64(len)/512));
return ((x_block,512), (len,))
end
############################################################
# Rectified-Linear
############################################################
funct... | Julia | src/cuda/neurons.jl | ilo10/Mocha.jl | mit | 4,188 | 120 | codeparrot/github-code |
9476cccfd5e9a43a4a5ad006183dd88f4e8015956f51f844351cc27cb109901e | namespace Multiply_Evens_by_Odds
{
using System;
public class MultiplyEvensByOdds
{
public static void Main(string[] args)
{
long number = long.Parse(Console.ReadLine());
int evenSum = EvenSum(number);
int oddSum = OddSum(number);
Console.Wri... | C# | Programming Fundamentals/Methods and Debugging - Lab/8. Multiply Evens by Odd/MultiplyEvensByOdds.cs | RAstardzhiev/Software-University-SoftUni | mit | 1,037 | 48 | codeparrot/github-code |
e0746bc95c520840f55754ee3ac3c388eb3d6cfff6694276d1c8112c354df81d | <?php defined('C5_EXECUTE') or die('Access denied.'); ?>
<div class='form-group'>
<?= $form->label('apikey', t('App ID')) ?>
<?= $form->text('apikey', $apikey) ?>
</div>
<div class='form-group'>
<?= $form->label('apisecret', t('App Secret')) ?>
<div class="input-group">
<?= $form->password('api... | PHP | concrete/authentication/google/type_form.php | MichaelMaar/concrete5 | mit | 4,177 | 111 | codeparrot/github-code |
7bdc62a3d2fc6ba83aa442f0ab325d07132056dd7abe064e27dae82d0e9381da | <!DOCTYPE html>
<html>
<head>
<title>Chapter XXIV: "The Youth on the Raft" | The Outdoor Girls in Florida | Laura Lee Hope | Lit2Go ETC</title>
<link rel="stylesheet" href="http://etc.usf.edu/lit2go/css/screenless.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet"... | HTML | lit2go.ok/62/the-outdoor-girls-in-florida/1146/chapter-xxiv-the-youth-on-the-raft/index.html | adrianosb/HtmlToText | mit | 17,910 | 322 | codeparrot/github-code |
d382d35479d5c01ffdb7e19a8df71c6bfe85254b1319f560319b7ac3f455b172 | package hudson.model;
import static java.lang.System.currentTimeMillis;
import static java.util.Collections.emptyMap;
import static org.apache.commons.io.FileUtils.writeStringToFile;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.is... | Java | test/src/test/java/hudson/model/UserPropertyTest.java | MarkEWaite/jenkins | mit | 6,595 | 211 | codeparrot/github-code |
cb30abc73361f8ddf795d29753dda6051748dabbcdadaeeffff5fb7bea93329c | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
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 ("v... | JavaScript | lib/filters/filter.js | evgenypoyarkov/bodybuilder | mit | 1,626 | 58 | codeparrot/github-code |
b7d51494929b05b61e680204e54998f271dd8ee52dae021bd3b9df887304c05d | class TransactionSetEnrollmentMetric
EmployerTSEnrollmentMetric = Struct.new(:employer, :sent, :unacknowledged, :acknowledged, :rejected)
TSEnrollmentTotalsMetric = Struct.new(:transaction_kinds, :sent, :unacknowledged, :acknowledged, :rejected)
def self.sum_records(records)
records.inject(0) { |acc, val| ... | Ruby | app/models/transaction_set_enrollment_metric.rb | blackeaglejs/gluedb | mit | 2,520 | 73 | codeparrot/github-code |
2e8d75f2e3e2d72000acf382caf8e7a89b0063a8cf6ca3b8057a5351c143a018 | /*!
* filename: ej.localetexts.ro-RO.js
* Copyright Syncfusion Inc. 2001 - 2016. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
* applicab... | JavaScript | files/syncfusion-ej-global/14.4.20/l10n/ej.localetexts.ro-RO.js | PeterDaveHello/jsdelivr | mit | 84,320 | 1,998 | codeparrot/github-code |
2149e37d88b127f7eecf15dcbd49d6a45800fbbe51dac68e185a685fe1286f52 | <?php
/**
* sfMessageFormat class file.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the BSD License.
*
* Copyright(c) 2004 by Qiang Xue. All rights reserved.
*
* To contact the author write to {@link mailto:qiang.xue@gmail.com Qiang Xue}
* The la... | PHP | lib/symfony/i18n/sfMessageFormat.class.php | vincent03460/fortrend-web | mit | 7,749 | 303 | codeparrot/github-code |
dc94019a5419ec83eb3243853021a23a05e87c63a0f0ddc57a646082cd26e513 | using UnityEngine;
namespace HoloToolkit.Unity.InputModule
{
public class GamePadHandlerBase : MonoBehaviour, ISourceStateHandler
{
[SerializeField]
[Tooltip("True, if gaze is not required for Input")]
protected bool IsGlobalListener = true;
protected string GamePadName = stri... | C# | CubesDemoMRT/Assets/HoloToolkit/Input/Scripts/GamePad/GamePadHandlerBase.cs | davidezordan/MixedRealitySamples | mit | 1,039 | 40 | codeparrot/github-code |
32039c93b75792035cfc2c64da0ca0a19e65f5fc0fa315669de8785bc24263a8 | // Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOINUNITS_H
#define BITCOINUNITS_H
#include <QAbstractListModel>
#i... | C | src/qt/bitcoinunits.h | crowning2/dash | mit | 2,242 | 80 | codeparrot/github-code |
6b1be71665c78903ef5377353be2ff11e278f901d488640f682c7f1e88a294a1 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ipc/mach_port_mac.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "base/strings/string_number_conversions.h"
#includ... | C++ | third_party/webrtc/src/chromium/src/ipc/mach_port_mac.cc | Teamxrtc/webrtc-streaming-node | mit | 1,590 | 49 | codeparrot/github-code |
a533c2805d9cff11c048aeaf447a8f694d03fc336dd9ba5733e7fc57d04c47ad | <?xml version="1.0" ?><!DOCTYPE TS><TS language="ca" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Canada eCoin</source>
<translation>A prop de Canada eCoin</translati... | TypeScript | src/qt/locale/bitcoin_ca.ts | ThisIsOurCoin/canadaecoin | mit | 96,757 | 2,917 | codeparrot/github-code |
08b219ef3422752224f163e90f5087f3306235edf43c8ae912eeaf47a796854d | /*===============================================================================================
Use Plugins Example
Copyright (c), Firelight Technologies Pty, Ltd 2004-2011.
This example shows how to use FMODEXP.DLL and its associated plugins.
The example lists the available plugins, and loads a new plugin that ... | C | moai/3rdparty/fmod-4.44.08/examples/useplugins/main.c | jjimenezg93/ai-pathfinding | mit | 7,595 | 265 | codeparrot/github-code |
1581cbff1fedb9c06f70c5f1abee1d08c9e097e70fdf5e22c9cd260047d9c1dd | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Class opencl_error</title>
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="../../index.html" title="... | HTML | ext/c++/thirdpart/c++/boost/libs/compute/doc/html/boost/compute/opencl_error.html | yinchunlong/abelkhan-1 | mit | 10,752 | 109 | codeparrot/github-code |
3b90232204183dcd0d908c280c6437a0078dbbfb04b372df6aeeda65a36c74ca | # encoding: utf-8
# Copyright 2011 Tree.io Limited
# This file is part of Treeio.
# License www.tree.io/license
"""
Identities module forms
"""
from django import forms
from django.core.files.storage import default_storage
from django.template import defaultfilters
from django.core.urlresolvers import reverse
from dja... | Python | treeio/identities/forms.py | thiagof/treeio | mit | 15,660 | 387 | codeparrot/github-code |
9ba2a636327ee2f251fea38177ac1a6f6a183bb5a8b4928d952ab5ec6c6a1a2a | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Component\Grid\Definition;
/**
* @author Paweł Jędrzejews... | PHP | src/Sylius/Component/Grid/Definition/Action.php | psren/Sylius | mit | 2,756 | 176 | codeparrot/github-code |
ccd71a6679b192fd01c03b92c8a302e265a99ed10f0f3a63bd9f9d2b5b7acb8b | import * as React from 'react';
import * as classnames from 'classnames';
export interface IStreamProps {
stream: MediaStream;
className?: string;
muted?: boolean;
onClick?: () => void;
mirror?: boolean;
// TODO(yunsi): Need to figure out if we want
// 1: each client get their own audioActi... | TypeScript | src/components/controls/Stream.tsx | teamious/react-conf-webrtc | mit | 1,914 | 63 | codeparrot/github-code |
db4e132fe91e879753200579c6622291a81ee5a11d2c73f6e65d99c6ac126621 | #if !UNITY_WINRT || UNITY_EDITOR || (UNITY_WP8 && !UNITY_WP_8_1)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Newtonsoft.Json.Serialization
{
/// <summary>
/// Provides data for the Error event.
/// </summary>
public class ErrorEventArgs : EventArg... | C# | Assets/ServervilleClient/json/Serialization/ErrorEventArgs.cs | rejemy/serverville-client-unity | mit | 1,181 | 37 | codeparrot/github-code |
5186b68069e64e08d8840b5716f70a87f72224540cb717e4d9cfe53bb218cde4 | /*
* Copyright © 2014 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, pub... | C++ | src/cm_program.cpp | mgherzan/cmrt | mit | 18,730 | 782 | codeparrot/github-code |
65ce565f8795840131737b4040968c250886b3c08ea1e19f80b8759bc799705f | "use strict";
var neume = require("../../src");
describe("neume.Context", function() {
var audioContext = null;
var context = null;
beforeEach(function() {
audioContext = new global.AudioContext();
context = new neume.Context(audioContext.destination, {
scheduleInterval: 0.05, scheduleAheadTime: ... | JavaScript | test/core/context.js | eriser/neume.js | mit | 19,653 | 764 | codeparrot/github-code |
e6eeeb970d6effd0b58cb21ccf21d496071b73338779aae186f1a11bf7ef8f59 | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the ... | PHP | lib/Zend/Form/Decorator/HtmlTag.php | almadaocta/lordbike-production | mit | 7,555 | 258 | codeparrot/github-code |
f3449e577d80bfd47399f7ea3cd47839c6ac6eab728bd13de67676020a816230 | /*
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for license information.
*/
(function($) {
if (!$) {
return;
}
$(function() {
if (navigator.registerProtocolHandler) {
$('.package-installer').show();
} else ... | JavaScript | Samples/MasterPortal/Areas/EntityList/js/gallery.js | Adoxio/xRM-Portals-Community-Edition | mit | 6,586 | 259 | codeparrot/github-code |
bfa1982fd9a138024abe30f1893d52593fed406ac63d6db6727a2d1c6c9024e7 | <!DOCTYPE html>
<html>
<head>
<title>Chapter 3: “Across the Moor” | The Secret Garden | Frances Hodgson Burnett | Lit2Go ETC</title>
<link rel="stylesheet" href="http://etc.usf.edu/lit2go/css/screenless.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="http... | HTML | lit2go.ok/163/the-secret-garden/2876/chapter-3-across-the-moor/index.html | adrianosb/HtmlToText | mit | 19,820 | 306 | codeparrot/github-code |
4036da0dd178e2fc131cdf0a1cac02cbae7869aa1a7dc984a78b0ede61bdaac8 | /*
Using an output stream for debugging (http://www.codetools.com/useritems/debugout.asp)
By Sven Axelsson (svenax@bredband.net)
modified:
Konstantin Boukreev (konstantin@mail.primorye.ru)
Created: 12.04.2001 15:51:26
Version: 1.0.0
*/
#ifndef _debug_stream_8c834f97_cc85_440a_a62d_a744ff43227c
#define _debu... | C | SEvos/Common/common/debug_stream.h | jjuiddong/Dx3D-Study | mit | 2,203 | 92 | codeparrot/github-code |
28df49967a1fb5932f207806ae3004530a217e5f32477b12dec56a2d4777e384 | # -*- coding: utf-8 -*-
from __future__ import print_function
# Form implementation generated from reading ui file 'acq4/analysis/modules/STDPAnalyzer/STDPPlotsTemplate.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
... | Python | acq4/analysis/modules/STDPAnalyzer/STDPPlotsTemplate.py | pbmanis/acq4 | mit | 3,796 | 83 | codeparrot/github-code |
9fdb3eae7ac7c5bd6749ff6357062547309904d0e25c8b9cd3bc7e86009311b7 | /*
* Jitter
*
* This code has been extracted from the Csound opcode "jitter".
* It has been modified to work as a Soundpipe module.
*
* Original Author(s): Gabriel Maldonado
* Year: 1998
* Location: Opcodes/uggab.c
*
*/
#include <stdlib.h>
#include "soundpipe.h"
/* the randgabs are essentially magic incanta... | C | Sources/soundpipe/modules/jitter.c | audiokit/AudioKit | mit | 1,900 | 80 | codeparrot/github-code |
78b66a89dd30023085bac93b9e418555cac7a078673d5abd3a06dd34ba7bead3 | // Copyright 2011 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... | C++ | v8-read-only/src/incremental-marking.cc | sirchristian/v8DOM.NET | mit | 30,678 | 926 | codeparrot/github-code |
de8f9cbc7ae1ddc1870f5e127a5bb7d4b424aad4f7891847dbad02511354b753 | <?php
namespace App\Services\Forms;
class TrickEditForm extends AbstractForm
{
/**
* The id of the trick.
*
* @var mixed
*/
protected $id;
/**
* The validation rules to validate the input data against.
*
* @var array
*/
protected $rules = [
'title' => '... | PHP | app/Services/Forms/TrickEditForm.php | Denniskevin/site | mit | 1,050 | 57 | codeparrot/github-code |
c9b60ba680bc3a290bced4d0a51c4e3dd0d0d72cb040c293ce7127ce87a911c1 | using System.Windows;
using System.Collections.Generic;
using System.Linq;
using SharpDX;
using SharpDX.Direct3D;
using SharpDX.Direct3D11;
namespace HelixToolkit.Wpf.SharpDX
{
public class BillboardTextModel3D : MeshGeometryModel3D
{
#region Private Class Data Members
private EffectVectorVa... | C# | Source/HelixToolkit.Wpf.SharpDX/Model/Elements3D/BillboardTextModel3D.cs | lcouz/helix-toolkit | mit | 6,029 | 169 | codeparrot/github-code |
e7253aac5a8286655865a268fbcf1f463dfe105894e6058394be80cef2bf79d5 | /*
* Copyright (c) 2012 Stephen A. Pratt
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, me... | C# | src/main/Assets/CAI/nmbuild-u3d/Editor/TerrainUtil.cs | stevefsp/critterai | mit | 9,499 | 246 | codeparrot/github-code |
07e08e913486223ec3bdf889e2be20e50814f1655f108ae2fb9bc2cad46ff681 | """SMTP email backend class."""
import smtplib
import socket
import ssl
import threading
from django.conf import settings
from django.core.mail.backends.base import BaseEmailBackend
from django.core.mail.message import sanitize_address
from django.core.mail.utils import DNS_NAME
class EmailBackend(BaseEmailBackend):... | Python | ignore_this_directory/django/core/mail/backends/smtp.py | sametmax/Django--an-app-at-a-time | mit | 5,306 | 132 | codeparrot/github-code |
4038c572c0ab2d4825c99f9e3a079654dc6b5dfaa86ed6e0e23aeba16675f42c | // CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wit... | C# | Microsoft.Research/Contracts/System.Core.Contracts/System.Linq.Expressions.DynamicExpression.cs | danielcweber/CodeContracts | mit | 3,500 | 108 | codeparrot/github-code |
c73180e93137021fd522b4e34fb2c7c1bb2200b71bac3f3e7ac9558a23e618be | //===-- llvm/Target/ARMTargetObjectFile.h - ARM Object Info -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C | thirdparty/llvm/lib/Target/ARM/ARMTargetObjectFile.h | wrmsr/lljvm | mit | 1,360 | 40 | codeparrot/github-code |
9b615a3185268b626edf31e3ae6d591b122c00a5d1d9c53b428b4412260b0904 | /*
* Copyright (c) 2006-2012 Rogério Liesenfeld
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package end2end;
import java.awt.*;
import javax.swing.*;
import org.jdesktop.animation.timing.*;
import org.jdesktop.animation.timing.Animator.*;
import org.jdesktop.animation.ti... | Java | samples/TimingFramework/test/end2end/EndToEndTest.java | theyelllowdart/jmockit | mit | 2,827 | 91 | codeparrot/github-code |
1a908add145863fb433ccb33faa0dbf0de6025151c70e92f099fe26dd25a1f72 | /////////////////////////////////////////////////////////////
// Autor: Nergal
// Date: 2014-01-08
/////////////////////////////////////////////////////////////
"use strict";
// constants
var WATER = 500000;
var SUICIDE = 500001;
/////////////////////////////////////////////////////////////
// Player base 'class'
///... | JavaScript | js/player.js | tltneon/wizardwarz | mit | 27,756 | 854 | codeparrot/github-code |
beeab9d7399caa9daa84d9a2def1298c559324b3482878805f4adf72fad552c3 | <?php
/**
* External Links v1.5.3
*
* This plugin adds small icons to external and mailto links, informing
* users the link will take them to a new site or open their email client.
*
* Dual licensed under the MIT or GPL Version 3 licenses, see LICENSE.
* http://benjamin-regler.de/license/
*
* @package Exte... | PHP | user/plugins/external_links/external_links.php | asikart/docs | mit | 6,535 | 222 | codeparrot/github-code |
ac489929f39ad1042da213b63f7e90dbf04728126e4b9eb29d335b1828b4148a | // 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.
using System.Diagnostics;
namespace System.Globalization
{
public partial class TextInfo
{
////////... | C# | src/System.Private.CoreLib/src/System/Globalization/TextInfo.Windows.cs | sandreenko/corert | mit | 4,386 | 118 | codeparrot/github-code |
61544897f3eb9aef9cae14f65db5dbf1ad6679f3822d3ebe26a18f79a5de0289 | <?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace ApiPlatform\Core\JsonLd\Serializer;
use ApiP... | PHP | src/JsonLd/Serializer/ObjectNormalizer.php | jdeniau/DunglasApiBundle | mit | 3,131 | 96 | codeparrot/github-code |
59b2ff33f1905f2265c4aae5fbc9704a713eb19a28324a04f153710c1bdc1071 | 'use strict';
var fusebill = require('../testUtils').getSpyableFusebill();
var expect = require('chai').expect;
var Promise = require('bluebird');
var fs = require('fs');
var path = require('path');
var TEST_AUTH_KEY = 'aGN0bIwXnHdw5645VABjPdSn8nWY7G11';
describe('File Uploads Resource', function() {
describe('ret... | JavaScript | test/resources/FileUploads.spec.js | fingerfoodstudios/fusebill-node | mit | 2,455 | 84 | codeparrot/github-code |
d04a8ea4a1d2656db67e988539e186be6b63a04f76c39b7ebf2118daf964341e | import produce from 'immer';
import { R as RandomPlugin } from './plugin-random-087f861e.js';
import isPlainObject from 'lodash.isplainobject';
/*
* Copyright 2017 The boardgame.io Authors
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://o... | JavaScript | ajax/libs/boardgame-io/0.49.9/esm/turn-order-0b7dce3d.js | cdnjs/cdnjs | mit | 39,095 | 1,094 | codeparrot/github-code |
0476aa12b457438c6bff878b59f67a44d194be26de3e3595611647fd6c03d5ce | #!/usr/bin/env python
import datetime
import logging
import os
import re
from urllib.parse import urljoin, urlparse, parse_qs
from bs4 import BeautifulSoup
from utils import utils, inspector
# https://www.sba.gov/office-of-inspector-general
archive = 1994
# options:
# standard since/year options for a year range ... | Python | inspectors/sba.py | divergentdave/inspectors-general | cc0-1.0 | 10,624 | 271 | codeparrot/github-code |
45ca3b30632f422c8dcfef320c4dc6076d7391d6d7c5aa78855f16482bbeb03e | # vim: set encoding=utf-8
# @todo: this file is becoming too large; refactor
import logging
import string
from pyparsing import CaselessLiteral, FollowedBy, OneOrMore, Optional
from pyparsing import Suppress, Word, LineEnd, ZeroOrMore
from regparser.grammar import atomic, tokens, unified
from regparser.grammar.utils ... | Python | regparser/grammar/amdpar.py | grapesmoker/regulations-parser | cc0-1.0 | 17,062 | 475 | codeparrot/github-code |
5040502f4e331de98a7dbf6ec8f75731d83c9cb13f20fe2733a861e6a816ad2c | ///////////////////////////////////////////////////////////////////////////////
//
// JTOpen (IBM Toolbox for Java - OSS version)
//
... | Java | src/com/ibm/as400/access/JDLobLocator.java | devjunix/libjt400-java | epl-1.0 | 16,065 | 420 | codeparrot/github-code |
4ec81fedd3cafec1e86f63e0cfc44213b61657a844ab96c5e5acb0e83366d8ff | /******************************************************************************
* Copyright (C) 2011 Fabio Zadrozny
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* h... | Java | src/org/python/pydev/editor/PyExternalZipFileAnnotationModel.java | siddhika1889/Pydev-Editor | epl-1.0 | 1,347 | 43 | codeparrot/github-code |
78be5119a85d801807a4e2d833bb9c5185a04f445ab4264947a312ea77216af7 | package org.csstudio.utility.adlparser.fileParser.widgets;
import java.util.ArrayList;
import org.csstudio.utility.adlparser.Activator;
import org.csstudio.utility.adlparser.IImageKeys;
import org.csstudio.utility.adlparser.fileParser.ADLWidget;
import org.csstudio.utility.adlparser.fileParser.WrongADLFormatException... | Java | applications/apputil/apputil-plugins/org.csstudio.utility.adlParser/src/org/csstudio/utility/adlparser/fileParser/widgets/Polygon.java | ESSICS/cs-studio | epl-1.0 | 2,659 | 71 | codeparrot/github-code |
ea29e085d44341210acdf39ed204745a0c08ce4102f2a4224542156014526b2a | // mods by Patrick OReilly
// twitter: @pato_reilly
var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create, update: update, render: render });
function preload() {
game.load.image('background','assets/misc/starfield.jpg');
game.load.image('player','assets/spr... | JavaScript | source/phasereditor/phasereditor.resources.phaser.examples/phaser-examples-master/examples/arcade physics/launcher follow world.js | boniatillo-com/PhaserEditor | epl-1.0 | 4,368 | 156 | codeparrot/github-code |
2fae79454d410eee773cfc659a3db251f844b0b0d7b07e1fafd7a00a457f4b67 | /*
* Copyright (C) 2008-2017 TrinityCore <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later ve... | C++ | src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_azgalor.cpp | MoistBaguette/mangosbot | gpl-2.0 | 8,138 | 286 | codeparrot/github-code |
cccff1adf32b601c1efd15c6d18d9d1e1ac5fb9f04280ff28bec279bba4755f2 | /*****************************************************************************
*
* XVID MPEG-4 VIDEO CODEC
* - MB coding -
*
* Copyright (C) 2002 Michael Militzer <isibaar@xvid.org>
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU General Public Lice... | C | src/codecs/xvidcore/bitstream/mbcoding.c | TheRyuu/ffdshow | gpl-2.0 | 57,032 | 1,986 | codeparrot/github-code |
ecdf09a1d4980090db2e9bc80e4925042e9f2c5d547ea3010f925e5ba00fdcb9 | <?php
/*
* Title : Pinpoint Booking System WordPress Plugin
* Version : 2.1.1
* File : includes/fees/class-frontend-fees.php
* File Version : 1.0.3
* Created / Last Modified : 26 August 2015
* Author : Dot on Paper
* Copyright ... | PHP | wp-content/plugins/booking-system/includes/fees/class-frontend-fees.php | iq007/MadScape | gpl-2.0 | 2,825 | 66 | codeparrot/github-code |
c5263ae6351ed98e31f5bed879633740c3e27b58db0d273a0568f2df6b76bddc | /*
* Copyright (C) 2008-2013 TrinityCore <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later ve... | C++ | src/server/scripts/Northrend/Ulduar/Ulduar/boss_xt002.cpp | private123/private | gpl-2.0 | 38,376 | 1,116 | codeparrot/github-code |
e467d5533c7155f05db6e2a2b41e74019d1dd357e5c288206f0eb258d9d8119e | /*
* Remmina - The GTK+ Remote Desktop Client
* Copyright (C) 2009-2011 Vic Lee
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) an... | C | remmina/src/remmina_pref_dialog.h | lmcro/Remmina | gpl-2.0 | 4,177 | 119 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.