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
a1de03b6597e0e87b550d7da6435d8a9f5f3fadc6a1e6942711d154fdec637a3
// sqlite3pp.h // // The MIT License // // Copyright (c) 2015 Wongoo Lee (iwongu at gmail dot 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...
C
include/sqlite3pp/sqlite3pp.h
GuramDuka/spacenet
mit
34,513
1,061
codeparrot/github-code
008fd106690982abcc6096e119d74d667af699ab7638bbd25a9e5701b6bd5d7f
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _Sdk = require('./Sdk'); var _Sdk2 = _interopRequireDefault(_Sdk); var _global = require('./global'); var _global2 = _interopRequireDefault(_global); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { def...
JavaScript
es5/src/core/URLSearchParams.js
pictawall/sdk-js
mit
1,003
39
codeparrot/github-code
41eba12fcca38c393771e86d238664346f52a80a4d2436fafd9618c7bde3f628
// Copyright (c) Christof Senn. All rights reserved. See license.txt in the project root for license information. namespace Aqua.ProtoBuf { using Aqua.EnumerableExtensions; using Aqua.ProtoBuf.Dynamic; using Aqua.ProtoBuf.TypeSystem; using global::ProtoBuf.Meta; using System; using System.Coll...
C#
src/Aqua.protobuf-net/ProtoBufTypeModel.cs
6bee/aqua-core
mit
1,962
57
codeparrot/github-code
e616a8ac31c02dd8569a137289b7b1a2b92bb7cce7055b4e2bcd3f28db43b34b
<?php namespace Academe\Proj; /** * Defines an ellisoid. * How do the named ellipsoids link in, and how do we register additional ellipsoids? * Maybe managing the ellipsoid data sources is not the job of this class. */ /* * semi-major axis (a) * semi-minor axis (b) * flattening ...
PHP
src/Ellipsoid.php
judgej/Proj4
mit
9,723
414
codeparrot/github-code
bdcdd994d854af36a4b19a1b74229202078785612d0ee5a1f684ddc4a5bd0945
<?php class CaptchaHelper extends CComponent { // public $sess_captcha = 'captcha'; protected $chars = 'ABCDEFGHKLMNPQRSTUVWYZ13456789'; protected $randomStr = ''; protected $image = null; protected $string = ''; public $location = ''; public function output( $width=100, $height=30, $length=3 ) { $locatio...
PHP
system/protected/admin/components/CaptchaHelper.php
zmiftah/yiihippo
mit
1,403
57
codeparrot/github-code
6ebe9d1b995c077488f2ffe70428cd9c4e0e4336bcf79967c40c71e871f0207d
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>Smart classroom: innovando el espacio de aprendizaje con TIC - Tecnología, Innovación y más..</title> <meta name="HandheldFriendly" content="True"> <meta name="MobileOptimized" con...
HTML
2016/01/15/Smart-classroom-innovando-el-espacio-de-aprendizaje-con-TIC.html
marchelo2212/marchelo2212.github.io
mit
27,661
557
codeparrot/github-code
50401ee6de0c27733be10e51fd8e6b7c0a907ae500f12ce669d96e8124589e7f
import Adapter from '../../../../src/core/adapters/configuration'; import SearchAdapter from '../../../../src/core/adapters/search'; import { DEFAULT_AREA } from '../../../../src/core/reducers/data/area'; import { DEFAULT_COLLECTION } from '../../../../src/core/reducers/data/collections'; import * as PageReducer from '...
TypeScript
test/unit/core/adapters/configuration.ts
groupby/flux-capacitor
mit
26,198
805
codeparrot/github-code
8e95efecac807c5a576882d22b4a432e4de03b9bcb3f2eece986d1594162d13b
function bomOverload() { if(settings.verbose) console.log("RubberGlove: Creating PluginArray"); function PluginArray() { // native(PluginArray) if(window.navigator.plugins.constructor === PluginArray) throw new TypeError("Illegal constructor"); if(settings.verbose) console.log("RubberGlove: Creating ...
JavaScript
js/bomOverload.js
jsclary/RubberGlove
mit
10,737
265
codeparrot/github-code
cea3e6a24762ea12cec36a31ca4b6aef9a8cc984ccd891e7593b567552f9a326
<?php namespace romkaChev\yii2\swiper\helpers; use yii\helpers\ArrayHelper; /** * Class SwiperCssHelper * * @package romkaChev\yii2\swiper\helpers */ class SwiperCssHelper { /** * This function will get [[background]] property * and place it AFTER content of [[style]] property * * @param...
PHP
helpers/SwiperCssHelper.php
romka-chev/yii2-swiper
mit
1,108
48
codeparrot/github-code
ad2f081e11c3cdcc4aaeebed62020f86731ce902c0601e00eceb19eecb3e5234
package pixlepix.auracascade.potions; import net.minecraft.client.renderer.texture.TextureMap; import net.minecraft.entity.EntityLivingBase; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.util.math.AxisAlignedBB; import net.minecraftforge.fml.relauncher.Side; import ...
Java
src/main/java/pixlepix/auracascade/potions/PotionVioletCurse.java
pixlepix/Aura-Cascade
mit
2,035
52
codeparrot/github-code
a23fc73b4d47702fda0bb9b0a807d1eb40c569f5dcef030db0f695ae0c69b6ba
/* Copyright © 2010 Richard G. Todd. * Licensed under the terms of the Microsoft Public License (Ms-PL). */ using Prolog.Code; namespace Prolog.Grammar { // BinaryElementExpression700 ::= BinaryElementExpression700 BinaryOp700 BinaryElementExpression500 // ::= BinaryElementExpres...
C#
Adugo/Prolog/Grammar/Nonterminals/BinaryElementExpression700.cs
AdugoGame/AdugoGameProject
mit
1,390
48
codeparrot/github-code
6ba8b07346bc7c30c0e10d327b20bded553095f90830144637635a5745288a23
//ticoin Copyright (c) 2011 The LevelDB Authors. All rights reserved. //ticoin Use of this source code is governed by a BSD-style license that can be //ticoin found in the LICENSE file. See the AUTHORS file for names of contributors. // //ticoin Thread safety //ticoin ------------- // //ticoin Writes require external s...
C
src/leveldb/db/skiplist.h
ticoins/ticoin
mit
11,699
380
codeparrot/github-code
5977798aae687ea16cf368b299a1d5b33e884847d3b22540dcc91e0dd5d0bf77
<?php /* * Copyright 2007-2013 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, o...
PHP
pydio-core/plugins/core.ajaxplorer/i18n/eus.php
reverserob/pydio-docker
mit
24,846
637
codeparrot/github-code
8027bc2b8cb11fc2220f54833c033ae4a3f9e2713c489aa77a7a45fad7fae5a6
#Requires -Version 3.0 Param( [string] [Parameter(Mandatory=$true)] $ResourceGroupLocation, [string] $ResourceGroupName = 'Esfa.Vacancy.Register', [switch] $UploadArtifacts, [string] $StorageAccountName, [string] $StorageContainerName = $ResourceGroupName.ToLowerInvariant() + '-stageartifacts', ...
PowerShell
src/Esfa.Vacancy.Azure.Resources/Deploy-AzureResourceGroup.ps1
SkillsFundingAgency/vacancy-register-api
mit
6,817
118
codeparrot/github-code
42eddb1b016ed7a2119082dc9e643bac04360265fd0f317ddcb4474db9310d1a
using System; using System.Collections; using System.Collections.Generic; namespace Hyperion.Http.Routing { [Serializable] public class RouteParsingException : Exception { public RouteParsingException(string message) : base(message) { } protected RouteParsingException(System.Runtime.Serial...
C#
src/Hyperion.Http/Routing/Route.cs
yonglehou/Hyperion
mit
822
33
codeparrot/github-code
4412087ce8846cd86a39313dc1c2f47d95f8e9374b5354062c4873238b1932f7
package com.uber.nullaway.jarinfer.toys.unannotated; public class Toys { @ExpectNullable public static String getString(boolean flag, String str) { if (flag) { return null; } return str; } public static void test(@ExpectNonnull String s, Foo f, @ExpectNonnull Bar b) { if (s.length() >= ...
Java
jar-infer/test-android-lib-jarinfer/src/main/java/com/uber/nullaway/jarinfer/toys/unannotated/Toys.java
uber/nullaway
mit
905
44
codeparrot/github-code
a9c87e3a69d904a1c9046d91bf54cd549892359cbeef8d29bb7a50a3812328fa
import Ember from "ember"; var oneWay = Ember.computed.oneWay, equal = Ember.computed.equal; export default Ember.Controller.extend({ needs: ['mixin-stack', 'mixin-details'], emberApplication: false, navWidth: 180, inspectorWidth: 360, mixinStack: oneWay('controllers.mixin-stack').readOnly(), mixinDe...
JavaScript
app/controllers/application.js
rwjblue/ember-inspector
mit
2,066
71
codeparrot/github-code
219b37692b50ed9a05a86df42139f33351d41d6a7453ebf5206e953f87e697f6
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>monae: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
HTML
clean/Linux-x86_64-4.08.1-2.0.5/released/8.13.1/monae/0.0.1.html
coq-bench/coq-bench.github.io
mit
6,975
176
codeparrot/github-code
288af7b68663545fbe02004f8a3834a7e3190f5fcfeccfb9af67c29bb4543761
package com.youzi.portal.service.impl; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import com.youzi.http.response.entity.ResultEntity; import com.youzi.portal.pojo.OrderInfo; import com.youzi.portal.service.OrderService; import com.youzi.utils.FastJsonUtil...
Java
youzi-portal/src/main/java/com/youzi/portal/service/impl/OrderServiceImpl.java
xiaoysec/Youzi
mit
1,051
40
codeparrot/github-code
8bc2155bcd666cebc3380daeef7696603883940f0c183df0f51da89c1e06fe61
// // NTDataNetwork.h // notes // // Created by Nate on 12/1/14. // Copyright (c) 2014 ifcantel. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIImage.h> NSString *const NTDataCollectorErrorRetrieveImage; NSString *const NTDataCollectorErrorDataType; NSString *const NTDataCollectorError...
C
seattle_schools/Sources/NTLibrary/Helpers/NTDataCollector.h
naterhat/seattleschools
mit
1,768
66
codeparrot/github-code
7e0c6bc6365a4ee1fd1de3ee40492de88d7a304eeb0f583a2a51d51dd04a42f3
import { Injectable } from '@angular/core'; import { Http, Headers } from '@angular/http'; import { Hero } from './hero'; import 'rxjs/add/operator/toPromise' @Injectable() export class HeroService { private heroesUrl = 'app/heroes'; // URL to web api constructor(private http: Http) {} // Get Hero getHeroe...
TypeScript
app/hero.service.ts
ReymundoRangel/ang2-qs-toh
mit
1,935
79
codeparrot/github-code
3136cd71781bf76686746f5e2f48ed5d92ba49dcc643755dd6a251592a855aee
package puzzledice; import gui.PuzzleEditPanel; import gui.WindowMain; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; import java.util.List; import java.util.Map; import javax.swing.BoxLayout; import javax.swing.DefaultComboBoxModel; im...
Java
Tools/PuzzleMapEditor/src/puzzledice/ORBlock.java
alect/Puzzledice
mit
9,826
312
codeparrot/github-code
09076984d627ae2665c1ea66d654b208f1e5af28dedf080f71fc7a06ff1c58c1
#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include "parse.h" void debug_out(const char *msg, ...) { static FILE *logfile = NULL; if (logfile == NULL) { logfile = fopen("debug.log", "wt"); setvbuf(logfile, NULL, _IONBF, 0); } va_list args; va_start(args, msg); ...
C
src/io.c
GrenDrake/if-parse-test
mit
1,202
62
codeparrot/github-code
ac327cb1ee710bbe482029c1f29b48b5f86ec7ad5c0df6da8015ea7e2a626ba9
/* * The MIT License * * Copyright 2016 Ahseya. * * 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,...
Java
src/main/java/com/github/horrorho/inflatabledonkey/cloudkitty/operations/RecordRetrieveRequestOperations.java
horrorho/InflatableDonkey
mit
3,779
87
codeparrot/github-code
768171e477d30567a91cb466fd685947e567b1f078fb9d2c1b30d56f71646e61
<?php namespace Notebleu\Lexicon\Curators; use Notebleu\Lexicon\Core\Curator; use Notebleu\Lexicon\Entities\User; /** * Class UserCurator * @package Notebleu\Lexicon\Curators * */ class Users extends Curator { protected $className = User::class; final protected function prepareCoreArgs() { ...
PHP
src/Curators/Users.php
loresjoberg/lexicon
mit
1,804
91
codeparrot/github-code
e77396a1d825b59e1eeac155da8c8cfc6224b9242b1f83b69e4a0d1d552b1f88
package changelog import ( "fmt" "sort" "strings" ) // SectionAliasMap is for associating commit prefixes to a section of the // changelog type SectionAliasMap map[string][]string // NewSectionAliasMap returns the default map func NewSectionAliasMap() SectionAliasMap { sectionAliasMap := make(SectionAliasMap) s...
GO
src/changelog/alias_map.go
skuid/changelog
mit
2,178
85
codeparrot/github-code
80cde80e78f4bcc84e622c35a589805feebed3b8a546b0c186fb87c54e478214
import os import os.path import sys import pygame from buffalo import utils from buffalo.scene import Scene from buffalo.label import Label from buffalo.button import Button from buffalo.input import Input from buffalo.tray import Tray from camera import Camera from mapManager import MapManager from pluginManager im...
Python
editMapTestScene.py
benjamincongdon/adept
mit
5,875
198
codeparrot/github-code
83ea701cf4cd4f0431d26cb7808219660d037e621bcbdd04333200a0ce23b637
import { Process, BlockHandler } from '../blockHandlers'; import { isSpaceOrTab, peek } from '../blockHelper'; import { unescapeString } from '../common'; import { CustomBlockNode, BlockNode } from '../node'; const reClosingCustomBlock = /^\$\$$/; export const customBlock: BlockHandler = { continue(parser, containe...
TypeScript
libs/toastmark/src/commonmark/custom/customBlockHandler.ts
nhnent/tui.editor
mit
1,418
46
codeparrot/github-code
46cf4dd95666c4c6a58b025c8f061e5bf0de8e22d95a1b7aa188491b22a91217
/* * This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file * at the root of this project for more details. */ package io.github.nucleuspowered.nucleus.modules.warp.commands; import com.google.common.collect.Lists; import io.github.nucleuspowered.nucleus.Nucleus; import io.gith...
Java
src/main/java/io/github/nucleuspowered/nucleus/modules/warp/commands/CategoryCommand.java
OblivionNW/Nucleus
mit
8,538
171
codeparrot/github-code
bb00f4d0d3b2fc9b375031a0a3fdd2dd8031e009e3e9f8385310b1ace7b341a0
using System; using System.Runtime.InteropServices; namespace VulkanCore.Android { /// <summary> /// Provides Android specific extension methods for the <see cref="Device"/> class. /// </summary> public static unsafe class DeviceExtensions { /// <exception cref="VulkanException">Vulkan retu...
C#
Src/Android/DeviceExtensions.cs
discosultan/VulkanCore
mit
1,329
35
codeparrot/github-code
c8158fa136a8388f39f01ac1ec24012e1b87f18304c8b397b0b0f1fef7fa2465
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN"> <html> <head> <title>Actor Protocol</title> <link href="styles.css" rel=STYLESHEET TYPE="text/css"> </head> <body> <h2>Actor Protocol</h2> <h3>Actor Interface</h3> <p> To speak to an actor, we simply send a statement along with the objec...
HTML
documentation/ActorProtocol.html
RichardAlexanderGreen/ProgrammingInSimpleEnglish
mit
5,077
164
codeparrot/github-code
879bc22470b5499cbe394167259d8a49843cf4e6dec1b13af8e0c00e80ba5394
/** * DOM manipulation methods */ Firestorm.DOM = { /** * When turning HTML into nodes - it must be inserted into appropriate tags to stay valid */ _wrap_map: { select: [1, "<select multiple='multiple'>", "</select>"], fieldset: [1, "<fieldset>", "</fieldset>"], table: [1, "<table>", "</table>"], tbody...
JavaScript
src/DOM.js
kogarashisan/Firestorm
mit
15,886
566
codeparrot/github-code
c7b9ced440ac6a4b4a1ac6a9baf708726c94198a6e3ef2711e1371171232acb3
<!DOCTYPE HTML> <html> <head> <title> Fire </title> <style> body { margin: 0; padding: 0; background-color: #333333; } #help { position: absolute; z-index: 20; color: black; top: 20px; ...
HTML
test/index.html
knoxHuang/engine
mit
2,456
86
codeparrot/github-code
93cd255b2ac128387a7a50328f17f6dd52bc2697965d8d00d743460d7c28ddac
"""Contains the drivers and interface code for pinball machines which use the Multimorphic R-ROC hardware controllers. This code can be used with P-ROC driver boards, or with Stern SAM, Stern Whitestar, Williams WPC, or Williams WPC95 driver boards. Much of this code is from the P-ROC drivers section of the pyprocgam...
Python
mpf/platforms/p_roc.py
missionpinball/mpf
mit
22,477
552
codeparrot/github-code
fbe594db30f037e0b88be1e3a358262301230224ae5a26157217b6e8dabe441a
// Copyright (c) 2011-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "bitcoingui.h" #include "bitcoinunits.h" #include "clientmodel.h" #include "guiconstants.h" #include "guiutil.h" #in...
C++
src/qt/bitcoingui.cpp
roques/bitcoin
mit
33,539
975
codeparrot/github-code
278ef60dbf4be69c9e83464fd783cc1c3c63aa61d365c47357cbb2e6db42c24f
using System; using System.IO; using System.Linq; using System.Collections.Generic; namespace TaskEngine { public sealed class TaskDefinitionReader { public TaskDefinitionReader(string fileName) { FileName = fileName; } public Task Read() { var s...
C#
Util/TaskEngine/TaskDefinitionReader.cs
vorov2/slot
mit
4,275
130
codeparrot/github-code
cb8bc3748ab3c7a3e875ff534f583cd6f3fc4e617bfb782753b128f4e7e5f1d8
package org.knowm.xchange.hitbtc.v2.service; import java.io.IOException; import java.util.List; import org.knowm.xchange.Exchange; import org.knowm.xchange.currency.CurrencyPair; import org.knowm.xchange.hitbtc.v2.dto.HitbtcOrderBook; import org.knowm.xchange.hitbtc.v2.dto.HitbtcSort; import org.knowm.xchange.hitbtc....
Java
xchange-hitbtc/src/main/java/org/knowm/xchange/hitbtc/v2/service/HitbtcMarketDataServiceRaw.java
gaborkolozsy/XChange
mit
1,672
50
codeparrot/github-code
22c42345aca16da919c09f9504df196c812ac71a77c40d57ec59c7456df72bc9
# Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. """ Builder for Atmel AVR series of microcontrollers """ from os.path import join from time import sleep from SCons.Script import (COMMAND_LINE_TARGETS, AlwaysBuild, Default, DefaultEnvironment, SConscript) from ...
Python
platformio/builder/scripts/atmelavr.py
bkudria/platformio
mit
3,837
144
codeparrot/github-code
d1e1fe67808bac9f1b62341782bd62aeb123174472a4e2346d480040841b095d
package com.aspose.pdf.examples.AsposePdfExamples.Text; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import com.aspose.pdf.Document; import com.aspose.pdf.Rectangle; import com.aspose.pdf.TextAbsorber; public class ExtractTextFromAnParticularPageRegion { public static void ...
Java
Examples/src/main/java/com/aspose/pdf/examples/AsposePdfExamples/Text/ExtractTextFromAnParticularPageRegion.java
aspose-pdf/Aspose.Pdf-for-Java
mit
1,069
32
codeparrot/github-code
3ccefda128472ae3d08aa41008c8c95ac63544b29f2dc2e344bb2a333a2bf83b
package personal import ( "encoding/xml" "fmt" ) type FriendsArray []Friend func (self FriendsArray) String() (s string) { s = "[" i := 0 m := len(self) for _, f := range self { t := fmt.Sprintf( `{"expertise":"%s", "name":"%s", "userid":%d, "gender":%d, "portrait" : "%s"}`, f.Expertise, f.Name, f.Us...
GO
src/personal/friend.go
XinyueZ/osc-server
mit
995
55
codeparrot/github-code
167fffb384029c64095f801ee3133437f2f646d0979a860b79cab6dc1eb105c6
package com.microsoft.bingads.examples.v9; import java.rmi.*; import java.util.ArrayList; import com.microsoft.bingads.*; import com.microsoft.bingads.campaignmanagement.*; public class AdExtensions extends ExampleBaseV9 { static AuthorizationData authorizationData; static ServiceClient<ICampaignManagementS...
Java
examples/BingAdsDesktopApp/v9/AdExtensions.java
JeffRisberg/BING01
mit
23,566
459
codeparrot/github-code
8a61888d97cf2a29836d8a06e35802bb21946e03f0b6aa7a6b452c1173671894
/** * @class Li */ /** * DOM utility methods */ (function (factory) { if (typeof define === "function" && define.amd) { define(['./lithium', 'jquery'], factory); } else if (typeof exports === 'object') { //For NodeJS module.exports = factory(require('./lithium'), require('jquery-node')); ...
JavaScript
src/lithium.dom.js
Munawwar/Lithium
mit
5,809
136
codeparrot/github-code
b4f9e7e3947d34f2b877049257d959f04eb7c0027413085939c7b304cebb2c97
#ifndef CGnuPlotTitle_H #define CGnuPlotTitle_H #include <CGnuPlotColorSpec.h> #include <CGnuPlotPosition.h> #include <CFont.h> class CGnuPlotGroup; class CGnuPlotRenderer; class CGnuPlotTitleData { public: CGnuPlotTitleData() { } const std::string &text() const { return text_; } void setText(const std::stri...
C
src/CGnuPlotTitle.h
colinw7/CQGnuPlot
mit
3,250
117
codeparrot/github-code
0f162f97419b488795844ed54475c121f33aa45707bb7e148b38927c7b88990d
""" ## NumPy UltraQuick Tutorial [source](https://colab.research.google.com/github/google/eng-edu/blob/main/ml/cc/exercises/numpy_ultraquick_tutorial.ipynb?utm_source=mlcc) > create/manipulate vectors and matrices """ ## import module as import numpy as np ## populate array with specific numbers ### 'np.array' to...
Python
talks-articles/machine-learning/google-courses/prework--numpy-ultraquick-tutorial.py
abhishekkr/tutorials_as_code
mit
2,051
68
codeparrot/github-code
089bcdf40ffe69959e88d3fbf6601151b8741075fb81260f292a0c686506399a
var React = require('react'); var Firebase = require('firebase'); var Game = require('../../game.js'); var FirebaseIntegration = require('../../firebase-integration'); var GameContainer = require('../game-container/game-container'); //var gameListRef = new Firebase("https://blazing-inferno-190.firebaseio.com/-JqBmJEqK...
JavaScript
app/components/game-list/game-list.js
eliasdawson/react-firebase-tictactoe
mit
1,088
45
codeparrot/github-code
dc5873ba73652b4e16a1fc9d82c056c6e715a8846c656afd84105a5568d2fa3e
import {keccak256, bufferToHex} from "ethereumjs-util" import MerkleTree from "../../utils/merkleTree" import Fixture from "./helpers/Fixture" import {web3, ethers} from "hardhat" import chai, {expect, assert} from "chai" import {solidity} from "ethereum-waffle" chai.use(solidity) describe("MerkleSnapshot", () => { ...
JavaScript
test/unit/MerkleSnapshot.js
livepeer/protocol
mit
3,167
93
codeparrot/github-code
f15b3e3b936c4c9f97524adc482f13673d18f6af9714aea494ff05181481ab4a
// ============================= // Email: info@ebenmonney.com // www.ebenmonney.com/templates // ============================= import { Injectable } from '@angular/core'; import { Observable, Subject } from 'rxjs'; import { Utilities } from './utilities'; @Injectable() /** * Provides a wrapper for accessing the we...
TypeScript
QuickApp/ClientApp/src/app/services/local-store-manager.service.ts
emonney/QuickApp
mit
9,493
359
codeparrot/github-code
a28ce8b1d78853241539f902fbe3458e545bca6689ecb3cbc81d3c7b02321924
import Geometry = THREE.Geometry; import Mesh = THREE.Mesh; import LineBasicMaterial = THREE.LineBasicMaterial; import Material = THREE.Material; import Vector3 = THREE.Vector3; import Line = THREE.Line; import { ChartWidget } from "../Widget"; import LineSegments = THREE.LineSegments; import { Utils } from "../Utils";...
TypeScript
src/widgets/GridWidget.ts
holiber/three-charts
mit
6,757
199
codeparrot/github-code
51100ed229757c5651319e5f8a495155aaf64d39c2f2243ce789d0bc45931538
<!DOCTYPE html> <html lang="en-us"> <head> <meta charset="UTF-8"> <title>We're with her</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="theme-color" content="#157878"> <link rel="stylesheet" href="css/normalize.css"> <link href="https://fonts.googleapis...
HTML
endorsements.html
whereistanya/not-my-locker-room
mit
6,341
72
codeparrot/github-code
5862bb9ca3c45bedc308203f695aaf245db0e79d580923ff9dbf7ff5329d2017
<?php /* OCPlatformBundle::layout.html.twig */ class __TwigTemplate_4a9d9001e69fe4fa5a6362d4fabdcec9e5a33b0e7dc48de006be52c82a8fc7cd extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = $this->env->loadTemplate("::layout.html.t...
PHP
app/cache/dev/twig/4a/9d/9001e69fe4fa5a6362d4fabdcec9e5a33b0e7dc48de006be52c82a8fc7cd.php
mmxm/test_symfony
mit
1,868
81
codeparrot/github-code
e1fe14b738260464d604aa1e71c58211efb1ab7f3bd83f652f03419fe82a66a1
namespace TestADB { partial class SetDeviceToGroupForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
C#
TestADB/TestADB/TestADB/SetDeviceToGroupForm.Designer.cs
samwen/GroupControl
mit
7,560
166
codeparrot/github-code
edf2a3df76d344d6b8c7324aa5b351b7245c6d6eb4230a1eac072a114e722c37
<!-- Safe sample input : get the field userData from the variable $_GET via an object sanitize : use of the function htmlspecialchars. Sanitizes the query but has a high chance to produce unexpected results File : use of untrusted data in the body --> <!--Copyright 2015 Bertrand STIVALET Permission is hereby grante...
PHP
XSS/CWE_79/safe/CWE_79__object-classicGet__func_htmlspecialchars__Use_untrusted_data-body.php
stivalet/PHP-Vulnerability-test-suite
mit
1,542
69
codeparrot/github-code
c121bb7536053581b5e47b530c6c40a11a57fcadfbe347e7921f28d3185552f7
/////////////////////////////////////////////////////////////////////////// // Copyright © 2015 Esri. All Rights Reserved. // // Licensed under the Apache License Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://w...
JavaScript
wab/2.2/widgets/AttributeTable/_ResourceManager.js
cmccullough2/cmv-wab-widgets
mit
15,115
446
codeparrot/github-code
11bed57259fac71ae2523fb12a11e017b8715576403ce4b6fc01bfc88466f660
SUBROUTINE AB09BD( DICO, JOB, EQUIL, ORDSEL, N, M, P, NR, A, LDA, $ B, LDB, C, LDC, D, LDD, HSV, TOL1, TOL2, IWORK, $ DWORK, LDWORK, IWARN, INFO ) C C SLICOT RELEASE 5.5. C C Copyright (c) 2002-2012 NICONET e.V. C C PURPOSE C C To compute a r...
FORTRAN
External/SLICOT/AB09BD.f
bgin/MissileSimulation
mit
13,816
372
codeparrot/github-code
58a4db35da388a9c44c77c125bc5f9265dcfc4996c25c5129f86adb3e0d7f3e0
<?php declare(strict_types = 1); namespace Rebing\GraphQL\Query\User; use Closure; use GraphQL\GraphQL; use GraphQL\Type\Definition\ResolveInfo; use GraphQL\Type\Definition\Type; use Models\User; use Rebing\GraphQL\Support\Query; use Rebing\GraphQL\Support\SelectFields; class UsersQuery extends Query { protected...
PHP
example/Query/UsersQuery.php
rebing/graphql-laravel
mit
1,037
45
codeparrot/github-code
1312583578d734cb7041abe503bcf2487ebb879ffe158e04ba92f39d06142db7
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>DeferredPermissionRequest | picturepark-sdk-v1-widgets API</title> <meta name="description" content="Documentation for picturepark-sdk-v1-widgets API"> <meta name="viewport" conte...
HTML
docs/picturepark-sdk-v1-widgets/api/interfaces/deferredpermissionrequest.html
Picturepark/Picturepark.SDK.TypeScript
mit
9,811
230
codeparrot/github-code
26ce33f7e51e3afc1f18c2e2e110420f5d9956f9c8738cf171b38d4f853bb8e4
//! Abstracts out the APIs necessary to `Runtime` for integrating the blocking //! pool. When the `blocking` feature flag is **not** enabled, these APIs are //! shells. This isolates the complexity of dealing with conditional //! compilation. mod pool; pub(crate) use pool::{spawn_blocking, BlockingPool, Mandatory, Spa...
Rust
tokio/src/runtime/blocking/mod.rs
tokio-rs/tokio
mit
1,211
49
codeparrot/github-code
2ec9b00f6cc81fb0e1f4654f29c1b9804e42d6652595d263a43c6ceaf33dd6a5
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="author" content="Open Knowledge"> <meta name="description" content="The state of government open data ...
HTML
place/romania/statistics/2013/index.html
okfn/opendataindex-2015
mit
21,510
385
codeparrot/github-code
85720b04a035b06fd812fc6bba4397f88cf84a0a70e2478dcac3b2a3496d7810
import { BrowserModule, Title } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { HttpClientModule } from '@angular/common/http'; import { FormsModule } from '@angular/forms'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; imp...
TypeScript
src/app/app.module.ts
ikarigeorge/angular-demo
mit
1,156
39
codeparrot/github-code
60ba28ba6e5b1d566a9adfa69ddfdd1d309d0c1e02f997449fdc2daa5892b13d
// // DotNetNuke® - http://www.dotnetnuke.com // Copyright (c) 2002-2010 // by DotNetNuke 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 withou...
C#
Components/Common/UserGroupsModuleBase.cs
DNNCommunity/DNNUserGroups
mit
5,714
201
codeparrot/github-code
4ed0b54abb3d0a1d8b38e7dd3f359e45ad86790f064ad379cdc6563a097de1c3
#!/bin/bash pushd sample-vm > /dev/null if [[ "$OSTYPE" == "linux-gnu" ]]; then VBOXMANAGE=`which vboxmanage` elif [[ "$OSTYPE" == "darwin"* ]]; then VBOXMANAGE=`which vboxmanage` elif [[ "$OSTYPE" == "cygwin" ]]; then VBOXMANAGE="/c/Program Files/Oracle/VirtualBox/VBoxManage.exe" elif [[ "$OSTYPE" ...
Shell
test.sh
kusnier/vagrant-persistent-storage
mit
1,066
39
codeparrot/github-code
894c1fd383e400fa64d3c580acfcdcfda2469eb63a9e330c1b808557adb4faf2
var express = require('express'); var router = express.Router(); var sqlite3 = require('sqlite3').verbose() router.get('/', function (req, res) { var db = new sqlite3.Database('./database.db') db.serialize(function () { var query = 'SELECT * FROM guest'; db.all(query, function (err, rows) { ...
JavaScript
routes/guest.js
rgaborieau/weddingAPI
mit
6,208
184
codeparrot/github-code
3a5cbcd815d4dbbb4d012c15083c537f4362dcad085006739fbe77dc600d8666
<!DOCTYPE html> <HTML><head><TITLE>Manpage of FSYNC</TITLE> <meta charset="utf-8"> <link rel="stylesheet" href="/css/main.css" type="text/css"> </head> <body> <header class="site-header"> <div class="wrap"> <div class="site-title"><a href="/manpages/index.html">linux manpages</a></div> <div class="site-description"...
HTML
manpages/man2/fsync.2.html
yuweijun/yuweijun.github.io
mit
6,480
278
codeparrot/github-code
19efb672c683db08cc962b8c87682bb077e070d0dd7189e26a33d6d90286265e
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; using Outlook = Microsoft.Office.Interop.Outlook; using Office = Microsoft.Office.Core; using Ribbins = Microsoft.Office.Tools.Ribbon; using Tools = Microsoft.Office.Tools; using System.Windows.Forms; using Lyn...
C#
ReadOut/ThisAddIn.cs
varunkho/ReadOut
mit
9,365
259
codeparrot/github-code
ef14cf048101eca3e383cee4cb581cc2bc1af58b7abb8eb1781ff5fbda0a4dbd
package com.example.calendarquickstart; import com.google.android.gms.common.ConnectionResult; import com.google.api.client.extensions.android.http.AndroidHttp; import com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential; import com.google.android.gms.common.GooglePlayServicesUtil; impo...
Java
app/src/main/java/com/example/calendarquickstart/MainActivity.java
miguelarauj1o/CalendarQuickStart
mit
11,422
299
codeparrot/github-code
9e1adb81781b06b0bfa4acb7c8cf7dee8a8ede974cfbd78b120fea765bf2f24c
package main import ( "github.com/go-martini/martini" "github.com/martini-contrib/render" ) func main() { m := martini.Classic() StaticOptions := martini.StaticOptions{Prefix: "public"} m.Use(martini.Static("public", StaticOptions)) m.Use(martini.Static("public", StaticOptions)) m.Use(martini.Static("public"...
GO
server.go
notvitor/go-martini-boilerplate
mit
1,345
53
codeparrot/github-code
a15de8fc682221299aeb69f2d71037483b33a83e202e3ff74a688688dadbdaf8
// Copyright © 2007 by Initial Force AS. All rights reserved. // https://github.com/InitialForce/UnitsNet // // 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, includi...
C#
UnitsNet/GeneratedCode/UnitClasses/Energy.g.cs
Tirael/UnitsNet
mit
22,533
628
codeparrot/github-code
c5e7f103c067e0eab7be55ab055b3af583b9dc96b11853a853e8f1e52c9b4c60
package pl.grzeslowski.jsupla.protocoljava.common; import io.github.benas.randombeans.api.EnhancedRandom; import io.github.benas.randombeans.api.Randomizer; import pl.grzeslowski.jsupla.protocoljava.api.entities.sdc.GetVersionResult; import static pl.grzeslowski.jsupla.protocol.api.consts.JavaConsts.UNSIGNED_BYTE_MAX...
Java
protocol-java/src/test/java/pl/grzeslowski/jsupla/protocoljava/common/GetVersionResultRandomizer.java
magx2/jSupla
mit
1,273
37
codeparrot/github-code
05e73f8569717c2338c6f49426a40e3bae53586ebe89686b32bf083377d18b58
/* global Me */ function Grid(c, r) { console.log('New grid', c, r); this.cells = []; this.c = c; this.r = r; // init cells: this.empty(); this.chain = /((?!00)\d{1,2}.)\1{2,9}/g; } Grid.prototype = { get: function(x, y) { if ((x < 0 || x >= this.c) || (y < 0 || y >= this.r)) return 1; else return this....
JavaScript
src/grid.js
Floriaen/Genesis
mit
2,358
120
codeparrot/github-code
4266a212234e40e9177e305f4351149369b0510e07dae87441a9a551751fa986
/* * This file is part of Poedit (http://poedit.net) * * Copyright (C) 2000-2016 Vaclav Slavik * * 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
src/propertiesdlg.h
BenKeyFSI/poedit
mit
3,001
88
codeparrot/github-code
958993661c9707220849163dc764ca0a7caef9e0afb90aa0b13278bbd3d12f45
/* * Copyright (c) 2002-2004 NONAKA Kimihiro * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of...
C
x/gtk2/dialog_serial.c
AZO234/NP2kai
mit
68,758
1,956
codeparrot/github-code
d6ed9c97f78c2969bd06f7b777c0fb8c9449c159ba75ef5defc7e9a551a3dcec
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Runtime.InteropServices; using System.Drawing; using FDK; namespace DTXMania { internal class CAct演奏Combo音声 : CActivity { // コンストラクタ public CAct演奏Combo音声() { base.b活性化してない = true; } // メソッド p...
C#
DTXManiaプロジェクト/コード/ステージ/07.演奏/CAct演奏Combo音声.cs
kairera0467/TJAP2fPC
mit
7,081
228
codeparrot/github-code
b5fd3d75995506fdc34aad0ef29f6f3a868bca38931128d2cc50d6f155206e0b
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Source: FCalendar.js</title> <script src="scripts/prettify/prettify.js"></script> <script src="scripts/prettify/lang-css.js"></script> <script src="scripts/jquery.min.js"></script> <!--[if lt IE 9]> <script src="//html5s...
HTML
doc/FCalendar.js.html
fsy0718/calendar
mit
6,559
232
codeparrot/github-code
6d8ee1c59c518ca02a6c23feeacb31ba31102aa7ed519ff4e368fb56f14ffe03
namespace GeekLearning.Domain.Validation { using Domain; using System; using System.Security.Claims; using System.Threading.Tasks; public abstract class ValidatableDomainBase<TUser> : IDomain<TUser> where TUser : class, IAggregate { private readonly IValidatorFactory validatorF...
C#
src/GeekLearning.Domain/Validation/ValidatableDomainBase.cs
geeklearningio/gl-dotnet-domain
mit
1,220
45
codeparrot/github-code
95e707ca2a8b8c64bf44a85d18a8f32d7a3696a480b7433190279dd7a7c6ceda
package com.yuyanzhe.mybatis.numybeans; import java.math.BigDecimal; import java.util.Date; public class ConContract { private Integer id; private String mainCode; private String mainName; private String code; private BigDecimal money; private String moneyMax; private String bankPop;...
Java
管理合同项目/mybatis-generator/src/com/yuyanzhe/mybatis/numybeans/ConContract.java
zhangjk4859/java-stuff
mit
4,852
236
codeparrot/github-code
6f6159bc2c07195ac5bd5ef48b512c3b0523ecbc66eecaea02be594c9973a76e
var q = require('q'); var _ = require('lodash'); var moment = require('moment'); var trello = require('../libs/trello_client'); var ORGANIZATIONS = [ { id: '4ffb85c372c8548a030144e5', name: 'HuaJiao' }, { id: '4ffb861572c8548a03015a66', name: 'Asimov' }, { id: '544765a39570e08b7e6aeccb', name: 'NextTao' }, ]; ...
JavaScript
scripts/trello/index.js
hbrls/magii
mit
2,803
126
codeparrot/github-code
7f60f96f24ba5df3059676b97d2ca58da41cd2f04d09d0faef07ccaddbee6333
// !LOCNS:live_game var model; var handlers = {}; $(document).ready(function () { function HeaderViewModel() { var self = this; self.active = ko.observable(true); self.setup = function () { $(window).focus(function() { self.active(true); }); $(window).blur(functio...
JavaScript
ui/main/game/live_game/live_game_header.js
UberEnt/pa-ui
mit
731
32
codeparrot/github-code
48589896952087f8b9c0b54eba00236598f17c4f6f0c3b48cd8c1ef2e0a9a5ba
/* * DaTtSs: engine.js * * (c) Copyright Teleportd Labs 2013. All rights reserved. * * @author: n1t0 * * @log: * 2013-04-22 n1t0 Creation */ var fwk = require('fwk'); var factory = require('../factory.js').factory; // // ### @PUT /agg // Aggregates value // exports.put_agg = function(req, res, next) { ...
JavaScript
server/routes/engine.js
mocheng/dattss
mit
10,041
389
codeparrot/github-code
86a2b8abfa5e5dd540964ef364deece2716110704df970b5bac34d0bc010c3a5
#pragma once #include <node.h> class Contracts { public: static bool RequireNumberOfArguments(const v8::FunctionCallbackInfo<v8::Value>& args, int requiredNumberOfArguments); static bool RequireObjectArgument(const v8::FunctionCallbackInfo<v8::Value>& args, int argumentIndex); static bool RequireNumberAr...
C
sources/binding/contracts.h
alexeiskachykhin/node-alienfx
mit
1,395
47
codeparrot/github-code
03bc4fb622f50c7ff770da6c745cd49ae44d039464a31a7b62202581e5a4e707
using Newtonsoft.Json; using NZgeek.ElitePlayerJournal.Events.Types; namespace NZgeek.ElitePlayerJournal.Events.Startup { public class LoadGame : Event { [JsonProperty("Commander")] public string CommanderName { get; private set; } [JsonProperty("Ship")] public string ShipType...
C#
src/Events/Startup/LoadGame.cs
nzgeek/ElitePlayerJournal
mit
1,472
50
codeparrot/github-code
c006da876e034a71d5945776dae1883bc6cd9905bdbd045cb815abd37115e9de
// 32feet.NET - Personal Area Networking for .NET // // InTheHand.Net.BluetoothAddress // // Copyright (c) 2003-2010 In The Hand Ltd, All rights reserved. // This source code is licensed under the MIT License using System; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Diagnostics; n...
C#
Legacy/InTheHand.Net.Personal/Net/BluetoothAddress.cs
inthehand/32feet
mit
25,871
696
codeparrot/github-code
9bd707ccaa04afa9efe59e72aa41ef5ab83f47d2d1d68de8ab7d5c65edf1866f
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "walletdb.h" #include "wallet.h" #include <iostream> #include <fstream> ...
C++
src/walletdb.cpp
urodarkcoin/urodark
mit
30,249
903
codeparrot/github-code
4b62f1979b92608f3b7ddc2d0afe47d22be9510c605c5d09e4595b72f33388bd
import itertools, logging from gibbs.models import CommonName, Compound, Enzyme from haystack.query import SearchQuerySet class Error(Exception): pass class IllegalQueryError(Error): pass class Match(object): """An object containing a string match and it's score.""" def __init__(self, key, va...
Python
matching/matcher.py
flamholz/equilibrator
mit
7,321
233
codeparrot/github-code
2f0b103c0661c55af2667c8ab64f86507a7cea31cff7a5dd5d544717a474b09c
/* Copyright (c) 2009 Dave Gamble 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, publish, distr...
C
cJSON.c
w-xuefeng/SAM
mit
50,865
2,262
codeparrot/github-code
20b33dad72844bc45f2df16892c56e516adca3183c1eb79ee547e5c411de90fa
/* Add additional stylesheets below -------------------------------------------------- */ /* Bootstrap's documentation styles Special styles for presenting Bootstrap's documentation and examples */ /* Body and structure -------------------------------------------------- */ body { position: relative; padding-t...
CSS
lib/qless/server/static/css/docs.css
seomoz/qless
mit
16,575
819
codeparrot/github-code
4a43dc5fc93f0d12b000586ff779e9802188228b6568c40631e295ddd16a0ff0
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> ...
HTML
Reports/pc/pcladd.1.0.1/PCLADD-net11.html
kuhlenh/port-to-core
mit
9,627
240
codeparrot/github-code
f783cc29ed67562122c1c685ff7dc3866c6b19c3b76edc342eb768bb12e9fff3
import os, sys, re import ConfigParser import optparse import shutil import subprocess import difflib import collections #import numpy as np # Alberto Meseguer file; 18/11/2016 # Modified by Quim Aguirre; 13/03/2017 # This file is the master coordinator of the DIANA project. It is used to run multiple DIANA commands...
Python
scripts/old_scripts/run_experiment_cluster.py
quimaguirre/diana
mit
5,102
151
codeparrot/github-code
b2f20e78ad1a31c390a06ce8ab814638efeb6c6224e8a04fcfa60081ca9a3025
from __future__ import print_function import torch as th import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable from torch.nn.utils.rnn import PackedSequence, pack_padded_sequence, pad_packed_sequence #from torchtext import vocab class Vocabulary(object):...
Python
acl17/models.py
douwekiela/nncg-negation
mit
13,191
328
codeparrot/github-code
4ea1eb9e3ae3db930d1a506d6c8d522c104dbf88348973939c64570474b9b47b
// ------------------------------------------------------------------------ // Muragatte - A Toolkit for Observation of Swarm Behaviour // Visualization Library // // Copyright (C) 2012 Jiří Vejmola. // Developed under the MIT License. See the file license.txt for details. // // Muragatte on the in...
C#
MuragatteVisual/src/Visual.Shapes/TriangleShape.cs
yuqiora/muragatte
mit
2,513
87
codeparrot/github-code
3e3aaabde5b16dcd6424cf32a047736823228aea919787d8fbf1bb6fd3a69a27
import _WeakMap from "babel-runtime/core-js/weak-map"; /** * @license * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at http://polymer.github.io/A...
JavaScript
www/lib/onsen/esm/polyfills/MutationObserver@0.7.22/MutationObserver.js
devmobilenovatec/novacard_monaca
mit
11,929
316
codeparrot/github-code
253bcd8f43eba8f2e318265158b767fdfe75f10afeaa6fca2c917529f0878fc4
package org.blendee.internal; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.LinkedList; import java.util.Map; import java.util.Set; /** * 内部使用ユーティリティクラス * @author 千葉 哲嗣 * @param <K> Key * @param <V> Value */ @SuppressWarnings("javadoc") public class Collect...
Java
src/main/java/org/blendee/internal/CollectionMap.java
blendee/blendee
mit
2,167
108
codeparrot/github-code
e41d967a9964c06be2b01eff767f81c53c8d26d68fbcb31f5e8e1b95ce0fcfd7
using System; using System.Collections; using System.Globalization; using Org.BouncyCastle.Asn1; using Org.BouncyCastle.Asn1.CryptoPro; using Org.BouncyCastle.Asn1.Nist; using Org.BouncyCastle.Asn1.Pkcs; using Org.BouncyCastle.Asn1.TeleTrust; using Org.BouncyCastle.Asn1.X509; using Org.BouncyCastle.Asn1.X9; using Org.B...
C#
Crypto/security/SignerUtilities.cs
SchmooseSA/Schmoose-BouncyCastle
mit
23,995
529
codeparrot/github-code
4df2a688db3908fb46322c81f23de44b0f618a832f01186ace38e82fac9770aa
import { Routes, RouterModule } from '@angular/router'; import { DashboardComponent } from './components/dashboard/dashboard.component'; import { GameLobbyComponent } from './components/game-lobby/game-lobby.component'; import { GamePlayComponent } from './components/game-play/game-play.component'; import { GameCreat...
TypeScript
src/client/app/app.routing.ts
atomicham/defiance
mit
942
35
codeparrot/github-code
ff331734d604457cb9993a7fce53046dc49c5361d95680b04f69decffaf42e2b
package com.nikitakozlov.pury.profile; public class StageError { public static StageError createError(String intendedStageName, Stage parentStage, Type type) { return createError(intendedStageName, 0, parentStage, type); } public static StageError createError(String intendedStageName, int intende...
Java
pury/src/main/java/com/nikitakozlov/pury/profile/StageError.java
NikitaKozlov/Pury
mit
2,034
77
codeparrot/github-code
ff0bc2513792eb0bd24144112d31660a59dfaf88882ba7f06cbc573fe14cbb69
#include <csv.h> #include "../rt.h" #include "module.h" #define BUFFER_SIZE 1024 enum { PARSE_OP_THIS = 2, PARSE_OP_ENTRY = 4, PARSE_OP_END, PARSE_OP_BEGIN }; typedef struct { int col; int row; int status; /* GLA_SUCCESS, GLA_VM (error in cb handler), GLA_END (parsing aborted by handler) */ HSQUIRRELVM vm;...
C
src/csv/cbparser.c
torsten-schenk/gla
mit
4,638
171
codeparrot/github-code
a74972e9cd3aafccacdf7aa58df1bc1ea802ef26addf2d53cd0979fb75ff0db1
#pragma once #include<vector> #include<string> #include<cstring> #include<climits> #include<algorithm> #include<cmath> #include<stack> #include <numeric> #include<unordered_map> #include<unordered_set> #include<sstream> using namespace std; class Solution { public: int f[1000] = {0}; int numTrees(int n) { if (n ...
C
C++/96. Unique Binary Search Trees/solution.h
wenqf11/LeetCode
mit
510
31
codeparrot/github-code
bd016dab0caf628d2ee9064e65d1b0b25207229c2c641fe23103e69ed45cf826
/* global describe, it, beforeEach */ import { expect } from '@open-wc/testing'; import * as components from '@lit-any/components-paper-elements'; import * as sinon from 'sinon'; import { pEvent } from '../async-tests'; import render from './helper/render'; describe('paper-elements', () => { let opts; describ...
JavaScript
test/components/paper.test.js
wikibus/augeas
mit
7,517
248
codeparrot/github-code
7af7398835514cd8fb495be343850e7037ce0832853e4db10f3f3f762b9c4fc1
/* jshint browser: true */ /* global $ */ "use strict"; var formField = require("../ui/utils/form-field.js"); module.exports = function(core, config, store) { function addBanMenu(from, menu, next) { var room = store.get("nav", "room"), rel = store.getRelation(), senderRelation = store.getRelation(room, fr...
JavaScript
anti-abuse/anti-abuse-client.js
metao1/chat
mit
5,048
217
codeparrot/github-code
22a2db28f7b37687a64ff99b42a0ed2303f039623e2cf7c53744fdd53e5d212e
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define("require exports ../../../../core/tsSupport/declareExtendsHelper ../../../../core/tsSupport/decorateHelper ../../../../core/tsSupport/generatorHelper ../../...
JavaScript
2020-devsummit/arcgis-js-api-road-ahead/js-api/esri/views/3d/layers/graphics/Labeler.js
ycabon/presentations
mit
16,660
35
codeparrot/github-code
27a565f634826e21019171ed11dfd86f1f2eb5192c0581b470c0ec4552eb1e09
{% extends 'base/backend_base.html' %} {% block title %}Surveys - Interns Australia{% endblock %} {% block content %} <div class="context"> <script> function submitForm(){ var newpw = document.getElementById("newpw"); var confirmpw = document.getElementById("confirmpw"); var form = document.getElementById...
HTML
views/password-update.html
benkaiser/iasurvey
mit
1,898
53
codeparrot/github-code