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
8887f1075414453e7112770e3ec9cf2d10b34436c2099cb29541a1d7a16e643b
#!/usr/local/bin/python # ---------------------------------------------------------------------- # MR-MPI = MapReduce-MPI library # http://www.cs.sandia.gov/~sjplimp/mapreduce.html # Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories # # Copyright (2009) Sandia Corporation. Under the terms of Co...
Python
examples/rmat.py
ravikanthreddy89/MR-MPI
bsd-3-clause
4,953
208
codeparrot/github-code
a6201be29bebfd25fce840555ded5ba2f5c2e062b116a9f049200dd2efbf87b5
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE194_Unexpected_Sign_Extension__fgets_malloc_10.c Label Definition File: CWE194_Unexpected_Sign_Extension.label.xml Template File: sources-sink-10.tmpl.c */ /* * @description * CWE: 194 Unexpected Sign Extension * BadSource: fgets Read data from the console usi...
C
xcc/test/juliet/testcases/CWE194_Unexpected_Sign_Extension/s01/CWE194_Unexpected_Sign_Extension__fgets_malloc_10.c
JianpingZeng/xcc
bsd-3-clause
4,738
155
codeparrot/github-code
cbf79449f445a7ce6b27bdc8182727e032e294a59a0b139d11e153db0d4503ea
// Copyright 2012 Dorival de Moraes Pedroso. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // package utl implements functions for simplifying calculations and allocation of structures // such as slices and slices of slices. It also contain...
GO
utl/mylab.go
PaddySchmidt/gosl
bsd-3-clause
9,583
433
codeparrot/github-code
3b79e4fcc51d40302799e4e3d72e4be9633ce79aae7e4dbf0c72050d23d68d3c
/*************************************************************************/ /* */ /* Language Technologies Institute */ /* Carnegie Mellon University */ /* ...
C
Library_Flite/src/cg/cst_cg_map.c
minigeek/MMDAgent
bsd-3-clause
10,397
363
codeparrot/github-code
d497bb3818aecbed48f0fd46566fbf24633ed725cd45d9aab2a968c650e9d5e3
/* * OPMLWriterTest.java * JUnit based test * * Created on September 18, 2006, 4:32 PM */ package dg.hipster.io; import dg.hipster.model.IdeaDocument; import junit.framework.*; import dg.hipster.model.Idea; import dg.hipster.model.IdeaLink; import static dg.hipster.io.OPMLWriter.DATE_FORMAT; import java.io.Byte...
Java
test/dg/hipster/io/OPMLWriterTest.java
dogriffiths/hipster
bsd-3-clause
2,702
90
codeparrot/github-code
a6434cf184798b13854c37fcb5996068a363d31214eca7e9b88b0c828b5a54ec
<?php namespace backend\controllers; use backend\models\System; use common\models\UploadForm; use Yii; use backend\models\IntegralGoods; use backend\models\searchs\IntegralGoodsSearch; use common\core\backend\BackendController; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * IgoodsController im...
PHP
backend/controllers/IgoodsController.php
zhangjianr/shop
bsd-3-clause
4,474
170
codeparrot/github-code
c3344bac87d3a76b52a81e2912583a9e33683cd67e9193f1b3db3a82a17ac55d
// Copyright 2013 the Chromium Embedded Framework Authors. Portions Copyright // 2012 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 "libcef/browser/devtools_delegate.h" #include "libcef/browser/devtools_scheme_ha...
C++
libcef/browser/devtools_delegate.cc
kuscsik/chromiumembedded
bsd-3-clause
5,661
173
codeparrot/github-code
443d3c2cc22f316c27332c93887888633ef52c8761b3917141f10c6abe391df8
<html > <head ><STYLE TYPE="text/css">@import "../../../stylesheet.css";</STYLE><title ></title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script language='JavaScript'> function doClick(imageHref) { if (parent.imageFrame != null) parent.imageFrame.location.href = imageHref; }...
HTML
doc/PureMVC/Core/View/TView.html
PureMVC/puremvc-delphi-standard-framework
bsd-3-clause
23,345
284
codeparrot/github-code
9186d532f7712a03166722579420924309a431ecd8f6e2f102a1f624395d43c7
// Copyright (c) 2012 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. #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ #include <string> #includ...
C
chrome/browser/extensions/extension_install_prompt.h
Crystalnix/BitPop
bsd-3-clause
12,208
329
codeparrot/github-code
33049da5983434314b64ca10d73a28aca0cef42f0f502344f6aabbef502fe026
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/Threshold.c" #else void THNN_(Threshold_updateOutput)(THNNState *state, THTensor *input, THTensor *output, real threshold, real val, bool inplace) { if (inplace) { TH_TENSOR_APPLY(real, input, if (*input_data <= threshold) *input_data = val...
C
lib/THNN/generic/Threshold.c
andreaskoepf/nn
bsd-3-clause
1,155
47
codeparrot/github-code
600946a1289a1c7596750fb405544c039ea151b548e537f4b5766a9f49f904eb
/* * Copyright (c) 2009, okazoh_tk. 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 cond...
C++
driver/directx9/src/DirectXDecoderFactory.cpp
google-code/alkes
bsd-3-clause
2,760
72
codeparrot/github-code
f33ba791153804b88256716ba3d4a58c7accb20a1ae6b1ec8e5ab0adfb25a9de
// Copyright (c) 2001-2010 Hartmut Kaiser // Copyright (c) 2001-2010 Joel de Guzman // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #if !defined(BOOST_SPIRIT_LEX_ARGUMENT_JUNE_07_2009_1106AM) #defin...
C++
LibsExternes/Includes/boost/spirit/home/lex/argument.hpp
benkaraban/anima-games-engine
bsd-3-clause
14,552
382
codeparrot/github-code
257398d974eb5ff432d96efe7dece459b065ed543da3165a872acaa4757f51f5
/* * Copyright (c) 2007, Novell Inc. * * This program is licensed under the BSD license, read LICENSE.BSD * for further information */ #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <sys/time.h> #include "util.h" void sat_oom(size_t num, size_t len) ...
C
src/util.c
ryppl/sat-solver
bsd-3-clause
2,694
148
codeparrot/github-code
82218ac39d8a37c055e26b81ab6b457cbf4a382442f3a0df0a0299f269f96a6e
// Copyright 2019 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 "components/services/app_service/public/cpp/intent_util.h" #include "base/values.h" #include "components/services/app_service/public/cpp/intent_...
C++
chromium/components/services/app_service/public/cpp/intent_util_unittest.cc
ric2b/Vivaldi-browser
bsd-3-clause
38,174
859
codeparrot/github-code
073ddcfbf1fa40f81cf40f0a7d33220d6346b7caf3ded8537e549612faf3d62c
// Copyright 2019 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 "chrome/browser/page_load_metrics/observers/prefetch_proxy_page_load_metrics_observer.h" #include <memory> #include "base/command_line.h" #incl...
C++
chromium/chrome/browser/page_load_metrics/observers/prefetch_proxy_page_load_metrics_observer_unittest.cc
ric2b/Vivaldi-browser
bsd-3-clause
24,408
546
codeparrot/github-code
25241621f813784680f377bd1a6927e5b5df9e2b5996041c79450e4eed3416a4
/******************************************************************************* * Copyright (c) 2016 AT&T Intellectual Property. All rights reserved. *******************************************************************************/ package com.att.cadi; import java.util.Enumeration; import javax.servlet.FilterConfi...
Java
cadi/core/src/main/java/com/att/cadi/ServletContextAccess.java
att/AAF
bsd-3-clause
1,518
53
codeparrot/github-code
377e6de8c76228188684bae488227e44e3e36e41181a1fe5427b7f3db417dd4c
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeOperators #-} -- | -- Module : Data.Array.Accelerate.Math.DFT -- Copyright : [2012] Manuel M T Chakravarty, Gabriele Keller, Trevor L. McDonell -- License : BSD3 -- -- Maintainer : Manuel M T Chakravarty <chak@cse.unsw.edu.au> -- Stability : expe...
Haskell
Data/Array/Accelerate/Math/DFT.hs
thielema/accelerate-fft
bsd-3-clause
4,283
111
codeparrot/github-code
a3dcf7da8a3dae9edb42d9c698c7fd4f5bcea1f3d1e21911641704ac601fc84e
// Copyright 2011 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 "config.h" #include "cc/program_binding.h" #include "base/debug/trace_event.h" #include "cc/geometry_binding.h" #include "cc/gl_renderer.h" // ...
C++
cc/program_binding.cc
junmin-zhu/chromium-rivertrail
bsd-3-clause
4,264
143
codeparrot/github-code
da5038670f894c898359f5ac51f97a3978960e8991d206cc7b9c5820f444d53d
#!/usr/bin/env python3 """ Testing Client for flasktex. """ __license__ = 'BSD-3' __docformat__ = 'reStructuredText' import os import urllib.request def ft_checkalive(url:str): """ Check whether given server is alive. """ resp = None try: resp = urllib.request.urlopen(url+'/ping').read...
Python
src/client.py
hosiet/flasktex
bsd-3-clause
2,633
105
codeparrot/github-code
3c6c411e9ac2cdc3d3b216c14f57805b80c4dbd9004b6ff1dc0e5d9ae73df4d1
( function( $ ) { var Explain = { _form : null, _table : null, init : function( form, table ) { this._setForm( form ); this._setTable( table ); }, _setForm : function( form ) { form = $( form ); form.bind( 'submit'...
JavaScript
public/js/explain.js
depesz/explain.depesz.com
bsd-3-clause
9,880
376
codeparrot/github-code
483ce46112e47a4b3148c81eb7d8a521045b0ff624b5e164aac9c9d6f6e75bf5
/* * Topcliff PCH DMA controller driver * Copyright (c) 2010 Intel Corporation * Copyright (C) 2011 LAPIS Semiconductor Co., Ltd. * * This program 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 Foundatio...
C
virt/drivers/dma/pch_dma.c
talnoah/android_kernel_htc_dlx
gpl-2.0
26,847
1,049
codeparrot/github-code
31f2f1f7caaed1da7ea175a7bfd685e82b6e095541941835057cb001fd566e8a
# Copyright (C) 2001-2005 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND ...
Python
dns/opcode.py
liyongyue/dnsspider
isc
2,603
105
codeparrot/github-code
34d77c397b02acb7f9e4f08643fa2f6b554e17d21cfba1917fdd1dbf58e07606
<?php namespace Intracto\SecretSantaBundle\Validator; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\ConstraintValidator; class ParticipantIsNotBlacklistedValidator extends ConstraintValidator { private $em; public function __construct(En...
PHP
src/Intracto/SecretSantaBundle/Validator/ParticipantIsNotBlacklistedValidator.php
wimme002/SecretSanta
isc
960
35
codeparrot/github-code
ed4de332c471d7194ef70ffbe1ab5c49d83180aeb45e99427600cef3d4dbab2b
@ECHO OFF REM Command file for Sphinx documentation if "%SPHINXBUILD%" == "" ( set SPHINXBUILD=sphinx-build ) set BUILDDIR=_build set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% . set I18NSPHINXOPTS=%SPHINXOPTS% . if NOT "%PAPER%" == "" ( set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS% set I18N...
Batchfile
make.bat
giyohm/octosend-docs-fr
isc
5,126
191
codeparrot/github-code
807c82f02547f1525997c6177f1e8260713d781375baf750dda9cea26a4cd488
/*- * Copyright (c) 2004 Marcel Moolenaar * 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
FreeBSD/sys/ddb/db_thread.c
TigerBSD/TigerBSD
isc
4,602
173
codeparrot/github-code
6bc7db78fe9a22ac93e3e45b84af667befe8c2d991420171f76965eb8f86ba37
/****************************************************************************** * * Module Name: acgetline - local line editing * *****************************************************************************/ /* * Copyright (C) 2000 - 2016, Intel Corp. * All rights reserved. * * Redistribution and use in sourc...
C
FreeBSD/sys/contrib/dev/acpica/common/acgetline.c
eriknstr/ThinkPad-FreeBSD-setup
isc
13,994
442
codeparrot/github-code
ec67b6d6a3d20a0c3812db0bd805a746489c61baaa7e82dff3f063d767cb9acf
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Game.On...
C#
osu.Game/Online/Multiplayer/Room.cs
ZLima12/osu
mit
5,383
153
codeparrot/github-code
e4761cae422600b7da977f34a82ae00dda948ad45f06c6023eaa46c502b2b2c8
package org.elkoserver.foundation.json; /** * An optional JSON message parameter of type boolean. */ public class OptBoolean extends OptionalParameter { /** Singleton instance of OptBoolean with the value not present. */ public static final OptBoolean theMissingValue = new OptBoolean(); /** The actual b...
Java
ServerCore/java/org/elkoserver/foundation/json/OptBoolean.java
frandallfarmer/Elko
mit
1,561
63
codeparrot/github-code
0e663f60bbb5b5abbde5ff67802e41b7128e7fa9a503528d223726af2adb4e42
require "blacklight" # this code will move to lib/hydra/access_controls/ability.rb (with the appropriate namespace changes) in Hydra 5.0 # Code for [CANCAN] access to Hydra models module Hydra::Ability include Hydra::AccessControlsEnforcement def initialize(user, session=nil) user ||= ::User.new # guest user (...
Ruby
lib/hydra/ability.rb
dchandekstark/hydra-access-controls
mit
5,205
143
codeparrot/github-code
ad3dd87f47bd6e4bd0903894186f2a0105976757c0fcc2214f05439aab9aed14
/* m2ghu8gfb.c m2tklib = Mini Interative Interface Toolkit Library Copyright (C) 2012 olikraus@gmail.com 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 3 of the Li...
C
libraries/M2tklib/utility/m2ghu8gfb.c
bdagerman/arduino-projects
mit
3,087
92
codeparrot/github-code
daa30335372db5e45e8bc6347a6980b58c6d1f93787d4591d178a19df1672e7d
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpc/server.h" #include "base58.h" #include "fs.h" #include "init.h" #includ...
C++
src/rpc/server.cpp
Anfauglith/iop-hd
mit
17,551
561
codeparrot/github-code
3ca909082d95664e9e8d7d7b4c7940d6f7a810423d00c8ae947c99d47d1f5198
// Copyright (c) 2012 The Bitcoin developers // Copyright (c) 2012 Koin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_MRUSET_H #define BITCOIN_MRUSET_H #include <set> #include <deque> /** STL-li...
C
koin/src/mruset.h
Officine-KOIN/Officine-Koin
mit
2,131
66
codeparrot/github-code
a3c088394a5910c647ba59aa80488d9db1d7cda74a9e002b3ac1de7ee1858fb3
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; namespace Swashbuckle.AspNetCore.SwaggerGen { public class XmlCommentsNodeNameHelper { public static string GetMemberNameForMethod(MethodInfo method) { var builder = new S...
C#
src/Swashbuckle.AspNetCore.SwaggerGen/XmlComments/XmlCommentsNodeNameHelper.cs
domaindrivendev/Swashbuckle.AspNetCore
mit
3,277
100
codeparrot/github-code
f0d241031c96c96b71128be976730b5e97fb133be6004ba95e5ba40dd1ea8e16
using BEPUphysics.PositionUpdating; using System; using BEPUutilities; using BEPUphysics.NarrowPhaseSystems.Pairs; using BEPUphysics.Entities; using BEPUphysics.CollisionRuleManagement; using BEPUphysics.BroadPhaseEntries; namespace BEPUphysics.Settings { ///<summary> /// Contains global settings about motion...
C#
Trashdroids/BEPUphysics/Settings/MotionSettings.cs
mayermatt/coms-437-trashdroids
mit
3,552
84
codeparrot/github-code
535fc55620295baac77f625b769b82ea802c5cad99f0069c11e1560fa13e2809
package May2021PrepLeetcode; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.Map; import java.util.Queue; public class _0207CourseSchedule { public static void main(String[] args) { System.out.println(canFinish(2, new int[][] { new int[] { 1, 0 } })); System.out....
Java
src/May2021PrepLeetcode/_0207CourseSchedule.java
darshanhs90/Java-Coding
mit
1,478
55
codeparrot/github-code
6d0b34a67bf49d4b44d01da902328b49821ce55f1de12984cb3092f27797ee8a
# -*- coding: utf-8 -*- ''' General documentation architecture: Home Index - Getting started Getting started to concise Layers - Preprocessing Genomic Sequence Preprocessing RNA Structure Preprocessing Spline-position Preprocessing - Data Encode Attract Losses Metrics Eval metrics Optimizer...
Python
docs/autogen.py
gagneurlab/concise
mit
12,495
452
codeparrot/github-code
7c7f1a9b9da25e3fedbd846013cc3c84b1d6647d0924a1dea7b25cb77bdb2cbe
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Release 9.4.10</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REV="MADE" HREF="mailto:pgsql-docs@postgresql.org"><LINK REL="HOME" TITLE="PostgreSQL 9....
HTML
ogamebotserver/src/main/resources/databases/postgres/share/doc/postgresql/html/release-9-4-10.html
unsupo/ogame
mit
16,430
769
codeparrot/github-code
389bc46e1531b8464db817a1c82a89b28fc5f70db6104330c2847c677e0d898e
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Linq.Expressions; using System.Net; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; namespace Rouse { #region Resources public class Pr...
C#
src/Rouse.cs
jorik041/rouse
mit
11,619
487
codeparrot/github-code
31e9520c795bb6e9e03642e191842524a12b1d333c3b2c89f2e51163d82ee3f9
#! /usr/bin/env python """ This program plots the average electronic energy during a NAMD simulatons averaged over several initial conditions. It plots both the SH and SE population based energies. Example: plot_average_energy.py -p . -nstates 26 -nconds 6 Note that the number of states is the same as given in the ...
Python
scripts/pyxaid/plot_average_energy.py
SCM-NV/qmworks-namd
mit
3,318
104
codeparrot/github-code
a20f224af3eccf9f770d7a6d5aab19f0926e91c0d8042902502c7338ed9d7928
<?php namespace Bolt\Configuration\Validation; use Bolt\Config; use Bolt\Configuration\LowlevelChecks; use Bolt\Configuration\ResourceManager; use Bolt\Controller; use Bolt\Exception\BootException; use Bolt\Logger\FlashLoggerInterface; use Symfony\Component\HttpFoundation\Response; /** * System validator. * * @in...
PHP
src/Configuration/Validation/Validator.php
HonzaMikula/masivnipostele
mit
4,674
164
codeparrot/github-code
07101e97b01b644b33b99cf900db29dc1a366c5001cc49b84ff24664a2788336
module TicketGate class Client < RocketPants::Client class Venue < APISmith::Smash property :created_at property :event_id property :id property :name property :updated_at end def list_venues get "venues", :transformer => Venue end def get_venue id get "...
Ruby
lib/ticket_gate/client/resources/venue.rb
dchacke/ticket_gate
mit
702
31
codeparrot/github-code
0b7d239b8d31df10f2bf461101e1fc34965dad81bc03d4506db571d6590791c6
<?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. */ namespace Sylius\Bundle\ResourceBundle; use Sylius\Bundle\ResourceBundle\DependencyInjection\Compiler...
PHP
src/Sylius/Bundle/ResourceBundle/SyliusResourceBundle.php
rpg600/Sylius
mit
1,300
42
codeparrot/github-code
d48538474a592f8e50b2c7fc6058dabb300b3deb53009352f5d37b0d922273fc
/////////////////////////////////////////////////////////////// // Copyright 2019 John Maddock. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt #ifndef BOOST_MP_CONSTEXPR_HPP #define BOOST_MP_CONSTEXPR_HPP #inc...
C++
ThirdParty/include/boost/multiprecision/detail/constexpr.hpp
SketchUp/sketchup-ruby-debugger
mit
1,113
57
codeparrot/github-code
e10366b3b396618766ce28ac06be0f0aaaef01abac7b8df7597b66ef9ddfa55f
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.search.documents.implementation.converters; import com.azure.search.documents.indexes.models.UaxUrlEmailTokenizer; /** * A converter between {@link com.azure.search.documents.indexes.implementation.mode...
Java
sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/UaxUrlEmailTokenizerConverter.java
selvasingh/azure-sdk-for-java
mit
1,836
48
codeparrot/github-code
22b383950451d131248ba2fa548b07a31f8a1603b28b2b673190c449280e3dbf
/** * */ package com.mcac0006.siftscience.types.deserializer; import java.io.IOException; import org.codehaus.jackson.JsonNode; import org.codehaus.jackson.JsonParser; import org.codehaus.jackson.ObjectCodec; import org.codehaus.jackson.map.DeserializationContext; import org.codehaus.jackson.map.JsonDeserializer; ...
Java
src/main/java/com/mcac0006/siftscience/types/deserializer/TransactionStatusDeserializer.java
gonzalob/sift-java
mit
1,001
35
codeparrot/github-code
3a40e984401a8031939477bbe7c0f92a313e48a98b7f0058b0813cfdb89c0ebf
package eu.timepit.refined.util import eu.timepit.refined.api.Refined import eu.timepit.refined.string._ /** * Module for statically checking constructors of types that can be * instantiated with `String`s. * * @see [[https://github.com/fthomas/refined/blob/master/docs/util_string.md]] */ object string { /** ...
Scala
modules/core/shared/src/main/scala/eu/timepit/refined/util/string.scala
fthomas/refined
mit
1,309
38
codeparrot/github-code
f206207debe54f091e1e5d9026a530e2875dffb94b0d5d8e7b15853af9be8403
/* * Copyright (c) 2001-2013 Aspose Pty Ltd. All Rights Reserved. * Author: Mohsan.Raza */ package com.aspose.ecplugin; import org.eclipse.ui.plugin.AbstractUIPlugin; import org.osgi.framework.BundleContext; /** * The activator class controls the plug-in life cycle */ public class Activator extends AbstractUIPlu...
Java
Plugins/Aspose_for_Eclipse/EclipsePlugin/com.aspose.ecplugin/src/com/aspose/ecplugin/Activator.java
asposetotal/Aspose_Total_Java
mit
1,107
55
codeparrot/github-code
6294b21f5ca0c412d5d87688f7358c450e333675f4b459f87a267deddc29ba00
/** * @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 */ import {CompileIdentifierMetadata} from '@angular/compiler/src/compile_metadata'; import * as o from '@angular/compi...
TypeScript
modules/@angular/compiler/test/output/ts_emitter_spec.ts
ollie314/angular
mit
17,135
357
codeparrot/github-code
7cf129d994613c22427dc3c1211f3f7ba908f071a06606a3312b599d45de3049
using System; using EnvDTE; using Microsoft.VisualStudio.Shell.Interop; namespace Microsoft.OData.ConnectedService.Common { /// <summary> /// A utility class for working with VS projects (e.g. retrieving settings from). /// </summary> internal static class ProjectHelper { public const uint...
C#
ODataConnectedService/src/Common/ProjectHelper.cs
congysu/lab
mit
1,403
43
codeparrot/github-code
40d9f469e90c6170f03a79d054f23ec8f7853403115e41e73a1e21e47dfd7f59
/******************************************************************************************** PNGU Version : 0.2a Coder : frontier More info : http://frontier-dev.net ********************************************************************************************/ #include <stdio.h> #include <malloc.h> #include "pngu.h...
C
GRRLIB/lib/pngu/pngu.c
capz/GRRLIB
mit
44,160
1,291
codeparrot/github-code
942d1dd8be0eb0ea8d6c160e50049ce65ff68d12265b552081678324cf2d07f7
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Stitch.CSS { public sealed class StylesheetParseError { public StylesheetParseError( ParserError error, string errorMessage, int line, int column ) { Parse...
C#
src/Stitch/CSS/Parser/StylesheetParserError.cs
jherink/Stitch
mit
783
34
codeparrot/github-code
4313f20c92afae5c2f95c2d33219ac5d3567ed7ff6e4936c4bf4c6d30051baa0
////////////////////////////////////////////////////////////////////////// // SyncObject.cpp // // Copyright (C) 2014 Microsoft Corp. All Rights Reserved ////////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "SyncObject.h" XTOOLS_NAMESPACE_BEGIN XTOOLS_REFLECTION_DE...
C++
Sharing/Src/Source/Common/Private/SyncObject.cpp
joevdh/HoloToolkit
mit
5,489
246
codeparrot/github-code
04c014f6bbafaf7c97603e938a33be922e15c798d77a3b2b9a8d76a4be5521bf
#include "UEPyCapture.h" #include "Runtime/MovieSceneCapture/Public/MovieSceneCapture.h" #if WITH_EDITOR /* This is taken as-is (more or less) from MovieSceneCaptureDialogModule.cpp to automate sequencer capturing. The only relevant implementation is the support for a queue of UMovieSceneCapture objects */ #inclu...
C++
Source/UnrealEnginePython/Private/UObject/UEPyCapture.cpp
20tab/UnrealEnginePython
mit
13,876
492
codeparrot/github-code
4e74802e59e5dc8e0bf3408d430907d8f478fce45cb3f35bdee4efb4640e0406
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
C
py/objdict.c
Xykon/pycom-micropython-sigfox
mit
23,183
636
codeparrot/github-code
4884e193797a5ec83fb87660b09189d2337af890f0eaac805e545addc780041f
'use strict'; var path = require('path'), fs = require('fs'), ss = require( '../../../../lib/socketstream'), Router = require('../../../../lib/http/router').Router, options = ss.client.options, defineAbcClient = require('../abcClient'); var responseStub = { writeHead: function() {}, end: fu...
JavaScript
test/unit/client/serve/dev.test.js
evanlh/socketstream
mit
3,623
115
codeparrot/github-code
4f3d7e8a47e1a6aee4dee248c846df138042b92c0ad5a113955a5970325dc4f7
//====== Copyright © 1996-2009, Valve Corporation, All rights reserved. ======= // // Purpose: interface to http client // //============================================================================= #ifndef ISTEAMHTTP_H #define ISTEAMHTTP_H #ifdef _WIN32 #pragma once #endif #include "steam_api_common.h" #include...
C
thirdparty/steamworks_sdk_149/sdk/public/steam/isteamhttp.h
Jean-LouisH/LaniaEngine
mit
11,802
219
codeparrot/github-code
426f6425bd913f705948c2f9d36f4df4039e61260c9ec2f0108a93feb88a8bdd
/** * @license * Copyright Google LLC 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 */ import {coerceBooleanProperty} from '@angular/cdk/coercion'; import {Directive, ElementRef, EventEmitter, Input, Outp...
TypeScript
src/lib/chips/chip-input.ts
amcdnl/material2
mit
4,254
146
codeparrot/github-code
ba8430629ed29423882e74da8c98cb7c06e72b1e4457685a55bc3279780829f1
/**************************************************************************** Copyright (c) 2011-2013,WebJet Business Division,CYOU http://www.genesis-3d.com.cn Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal i...
C++
Engine/app/graphicfeature/components/apprenderable.cc
EngineDreamer/DreamEngine
mit
2,440
77
codeparrot/github-code
0dfdbb2f1d2051291b9a3fdc8e533745d846bcdfb9cf032392ca2b6927f2187b
import fs from 'fs' import path from 'path' import Hub from 'pkghub' import _ from 'underscore' import Promise from 'bluebird' import render from 'pkghub-render' import * as finder from './finder' const hub = new Hub const defaultHome = path.resolve(__dirname, '../', '../', '../') /** * * Class Theme * @param {String...
JavaScript
libs/theme.js
turingou/theme
mit
3,463
147
codeparrot/github-code
43cae918f5b110f3d74ac76ec0df90934967bb2c4d98a751ad9936388758a87b
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import os PACKAGEDIR = os.path.abspath(os.path.dirname(__file__)) import matplotlib matplotlib.use('TkAgg') from .version import __version__ from .keparray import * from .kepbls import * from .kepclean import * from .kepclip import * ...
Python
pyke/__init__.py
gully/PyKE
mit
1,296
54
codeparrot/github-code
edf1ac630c34054b9455e58d9c97a75ca71ff84b0b7d6f056c0cfc4e7ef2d4d5
#!/usr/bin/env perl ## Name........: tmesis ## Autor.......: Jens Steube <jens.steube@gmail.com> ## License.....: MIT use strict; use warnings; #tmesis will take a wordlist and produce insertion rules that would insert each word of the wordlist to preset positions. #For example: #Word ‘password’ will create insertio...
Perl
src/tmesis.pl
philsmd/hashcat-utils
mit
1,478
60
codeparrot/github-code
67d36fc7252405f9f828ce7d964a61c287be69737466fdaf603459601c9e545e
package sched import ( "encoding/json" "bosun.org/cmd/bosun/expr" elastic "gopkg.in/olivere/elastic.v5" ) func (c *Context) esQuery5(indexRoot expr.ESIndexer, filter expr.ESQuery, sduration, eduration string, size int) interface{} { newFilter := expr.ScopeES5(c.Group(), filter.Query(expr.ESV5).(elastic.Query)) ...
GO
cmd/bosun/sched/esquery5.go
bookingcom/bosun
mit
1,476
56
codeparrot/github-code
acb0015b49b8eaeae5019186e7b248d41cf24dcc3e3db7f952e42b6edd61a5ce
import threading class Statistics_Response: pass # empty class class Statistics: def __init__(self, upmeasure, downmeasure, connecter, httpdl, ratelimiter, rerequest_lastfailed, fdatflag): self.upmeasure = upmeasure self.downmeasure = downmeasure self.connecter = ...
Python
BitTornado/Client/Statistics.py
jakesyl/BitTornado
mit
6,510
169
codeparrot/github-code
62448eb0d66ac396dcb2a94ba102cb63006099476ee7aaf2cdf3807de410fa87
from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class FoursquareAccount(ProviderAccount): def get_profile_url(self): return "https://foursquare.com/user/" + self.account.extra_data.get("id") def get_avatar_url...
Python
allauth/socialaccount/providers/foursquare/provider.py
pennersr/django-allauth
mit
967
34
codeparrot/github-code
d3a5b9b67de3e3bb472b1a7f03c52670af10425776a384b1d43bc9340833e4f4
var menuToggler = document.querySelector('.dropdown-toggle'); menuToggler.addEventListener("click", function() { var isExpanded = menuToggler.getAttribute("aria-expanded"); if (isExpanded === "false") { document.querySelector(".nav").classList.add('dropdown-open'); document.querySelecto...
JavaScript
src/AdminBundle/Resources/public/js/test.js
arturdziocha/gumserwis.eu
mit
1,732
38
codeparrot/github-code
607928314e242bd7812ce4a9bd190e67114b84c23f187e42b8acd031e0268f1c
package codechicken.enderstorage; import java.io.File; import codechicken.lib.config.ConfigTag; import cpw.mods.fml.common.event.FMLServerAboutToStartEvent; import net.minecraft.command.CommandHandler; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import codechi...
Java
src/codechicken/enderstorage/EnderStorage.java
Chicken-Bones/EnderStorage
mit
4,033
91
codeparrot/github-code
9af84034e89750123f63732d95c253e27bcec71ef8f988a0d9452db1149339a6
<?php /** * An extended reflection/documentation class for class methods * * This class extends the reflectioMethod class by also parsing the * comment for javadoc compatible @tags and by providing help * functions to generate a WSDL file. The class might also * be used to generate a phpdoc on the fly * ...
PHP
app/vendors/wshelper/lib/soap/IPReflectionMethod.class.php
HadoDokis/Pragtico
mit
2,586
99
codeparrot/github-code
49599d55c6adbf019c44eabb7ae8eb014d14c7219d7236e56bb41d088cf802ef
#import <UIKit/UIKit.h> #import "BTVenmoDriver.h" @interface BTVenmoDriver () /** Defaults to [UIApplication sharedApplication], but exposed for unit tests to inject test doubles to prevent calls to openURL. Its type is `id` and not `UIApplication` because trying to subclass UIApplication is not possible, since it...
C
lib/ios/BraintreeVenmo.framework/PrivateHeaders/BTVenmoDriver_Internal.h
Taracque/cordova-plugin-braintree
mit
1,277
39
codeparrot/github-code
945ed3919680e134a0ad2b29334f941f54fac786867df59b2e231014248d20b9
package com.microsoft.bingads.v10.api.test.entities.keyword.read; import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; import com.microsoft.bingads.internal.functionalinterfaces.Function; import java.util.Arrays; import java.util.Collec...
Java
src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesCampaignNameTest.java
JeffRisberg/BING01
mit
1,131
36
codeparrot/github-code
ab10163bb7430c4e2c2b32272d002972937773d7b338b9762ae02312e33bbee3
"use babel"; // @flow import * as React from "react"; import DevTool from "./DevTool"; import DevToolName from "./DevToolName"; import type { DiagnosticSeverity } from "../../DiagnosticsFeature/Types/types"; import DiagnosticsSummaryCircle from "../../DiagnosticsFeature/Presenters/DiagnosticsSummaryCircle"; import typ...
JavaScript
lib/ExecutionControlEpic/DevToolsSummaryFeature/Presenters/DevToolWithDiagnostics.js
alanzanattadev/atom-molecule-dev-environment
mit
10,634
394
codeparrot/github-code
93cfe2700b0d12fa2f6db5f75842be8371f0d5a63a416eea68fc5bf335fd4fc1
import pygame import numpy as np BLACK = 0, 0, 0 class World: def __init__(self, settings): res = settings.gameRes self.walls = [] #4 walls self.walls.append(Line([0, 0], [0, res])) self.walls.append(Line([res, 0], [res, res])) self.walls.append(Line([0, 0], [res,...
Python
PygameDeepRLAgent/A3CBootcampGame/ShootingGrounds/world.py
Muff1nz/PygameDeepRLAgent
mit
1,167
41
codeparrot/github-code
0e16069e91bbcafb1b0cbb21586b9b86eeb7223841538543d2e2b680253e1d07
package main import ( "encoding/xml" "github.com/kataras/iris/v12" ) // User example struct for json and msgpack. type User struct { Firstname string `json:"firstname" msgpack:"firstname"` Lastname string `json:"lastname" msgpack:"lastname"` City string `json:"city" msgpack:"city"` Age int `json...
GO
_examples/response-writer/write-rest/main.go
kataras/gapi
mit
4,592
168
codeparrot/github-code
b1d2ec11408d9d18440250a29a6cf995bafdb164d2f3778679e05c6bc0026296
var Promise = require('bluebird'), path = require('path'), fs = Promise.promisifyAll(require('fs')), PZ = require('promzard').PromZard, NPM = require('npm'); var package = path.resolve('./package.json'); var pkg, ctx, options; function loadNpm() { // You have to load npm in order to use it programatically ...
JavaScript
lib/init.js
wprater/t2-cli
mit
4,385
183
codeparrot/github-code
4dbe530fb05e1777649d2055d522d98c955c60064773fc755214629f05ffd971
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. #if UNITY_EDITOR using UnityEditor; using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Input.Utilities { /// <summary> /// Helper class to get Can...
C#
Two-hands manipulation - MRTKv2/Assets/MixedRealityToolkit.Services/InputSystem/Utilities/CanvasEditorExtension.cs
davidezordan/MixedRealitySamples
mit
1,067
37
codeparrot/github-code
70048244091e697b74d76709311de90feda58f217adf8914c9907c60e0c03636
/** * Listen for clicks outside the multi-select and collapse it if needed * * @package ivh.multiSelect * @copyright 2015 iVantage Health Analytics, Inc. */ angular.module('ivh.multiSelect') .directive('ivhMultiSelectCollapsable', ['$document', function($document) { 'use strict'; return { restric...
JavaScript
src/scripts/directives/ivh-multi-select-collapsable.js
iVantage/angular-ivh-multi-select
mit
1,328
50
codeparrot/github-code
f724e38a7d6455921ad759916b49d0fc3521a8093f1864f3f507627b58fddd1b
require 'rubygems' require 'bundler' Bundler.setup require 'ruby-debug' if !defined?(RUBY_ENGINE) && RUBY_VERSION != '1.9.3' && !ENV['CI'] require 'aruba/cucumber' require 'aruba/jruby' if RUBY_PLATFORM == 'java' additional_paths = [] Before('@rspec-1') do additional_paths << File.join(%w[ .. .. vendor rspec-1 bin...
Ruby
gems/2.0.0/gems/vcr-2.9.3/features/support/env.rb
etewiah/discourse-plugin-maptopic
mit
1,193
42
codeparrot/github-code
d1d6cb1db796f78d67d7d7aaaafdbdbc4e73d4c567bc4c94fe9b1ffa655807ef
package li.vin.net; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import com.google.gson.Gson; import com.google.gson.TypeAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.Locale; import ...
Java
android-net/src/main/java/li/vin/net/Wrapped.java
vinli/android-net
mit
2,229
85
codeparrot/github-code
f49f9bfc66eb6ff46a46eebfb65d39c354160cb5da01987fb490c027d9372584
import numpy as np import pandas as pd import matplotlib.pyplot as plt import math class Res: def __init__(self, res_file): ''' Res Class Parameters ---------- res_file : str Path to .res or .rei file from PEST Attributes ---------- df : Pandas ...
Python
res.py
aleaf/pest_tools
mit
16,441
414
codeparrot/github-code
a9fbd1108aad021ed834cc6703c820580a5aec7f91ee7bff6ac117359892ecbc
'use strict'; var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var prompts = require('./prompts'); var generate = require('./generate'); module.exports = yeoman.generators.Base.extend({ constructor: function () { yeoman.generators.Base.apply(this, arguments); }, prompting: function ...
JavaScript
app/index.js
xfiveco/generator-xh-email
mit
1,478
60
codeparrot/github-code
7cd735e7dfb210162ad944467121e0ab9ad8c9ba3d2dcec1fbebf0855f018a9c
# == Schema Information # # Table name: order_items # # id :integer(4) not null, primary key # price :decimal(8, 2) # total :decimal(8, 2) # order_id :integer(4) not null # variant_id :integer(4) not null # state :string(255) not null...
Ruby
app/models/order_item.rb
PrabhakarUndurthi/ror_ecommerce
mit
7,481
226
codeparrot/github-code
89e6cb1c1861cc1fed2e2a9541d7472ca331bdab0c3bfa76721a2e1e32123d73
using System.ComponentModel.DataAnnotations.Resources; using System.Diagnostics.CodeAnalysis; using System.Globalization; namespace System.ComponentModel.DataAnnotations { /// <summary> /// Specifies the maximum length of array/string data allowed in a property. /// </summary> [AttributeUsage...
C#
Portable.DataAnnotations.Net45Portable/ValidationAttributes/MaxLengthAttribute.cs
ryanhorath/PortableDataAnnotations
mit
4,653
110
codeparrot/github-code
f2af7b6e6c6c5b9d5f1c50ca3a9b7d4efafe1f772ef3b7a334efbeae7fcf163a
#include "askpassphrasedialog.h" #include "ui_askpassphrasedialog.h" #include "guiconstants.h" #include "walletmodel.h" #include <QMessageBox> #include <QPushButton> #include <QKeyEvent> extern bool fWalletUnlockStakingOnly; AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) : QDialog(parent),...
C++
src/qt/askpassphrasedialog.cpp
Astrych/Pink2
mit
10,263
271
codeparrot/github-code
3bf9887a728f5204efde6cfdac00bd90fcbcd2415752f6fe80b8013ff3dcfca8
YUI.add('ac-plugin', function(Y) { function ACPlugin () { ACPlugin.superclass.constructor.apply(this, arguments) }; Y.extend( (Y.Plugin.ACPlugin = Y.augment(ACPlugin, Y.EventTarget)), Y.Plugin.Base, { // prototype initializer : function () { var self = this, host = self...
JavaScript
libs/yui/yui3-gallery/src/gallery-autocomplete/test/ac-plugin.js
inikoo/fact
mit
6,978
195
codeparrot/github-code
3bebe4d560dd0427a99a20372bd4936b003e9db1b3a4d424805d6dfba24c81ba
# -*- coding: utf-8 -*- # Copyright © 2012-2015 Roberto Alsina and others. # 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 t...
Python
nikola/plugins/task/sources.py
immanetize/nikola
mit
3,425
85
codeparrot/github-code
37d91d7d2bb52effc645a68ea657027ff6f341cd6b6d32e18075a789cb8fa1b7
using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace GraphQL.DataLoader { public partial class DataLoaderBase<TKey, T> { private class DataLoaderList : Dictionary<TKey, DataLoaderPair<TKey, T>>, IDataLoader { protected reado...
C#
src/GraphQL.DataLoader/DataLoaderList.cs
joemcbride/graphql-dotnet
mit
2,365
57
codeparrot/github-code
ba613384ff299a5692dbfaa7dc2cc4937a28ef31030cdffc05e8d27f3acf5616
/* Copyright 2006 by Sean Luke Licensed under the Academic Free License version 3.0 See the file "LICENSE" for more information */ package ec.gp.koza; import ec.util.*; import ec.*; import java.io.*; /* * KozaFitness.java * * Created: Fri Oct 15 14:26:44 1999 * By: Sean Luke */ /** * KozaFitness is a ...
Java
src/ec/gp/koza/KozaFitness.java
meiyi1986/GPJSS
mit
7,151
208
codeparrot/github-code
a7702e4fb535db4a3319b519f9babc3ab8f5022403e8189d0136b9131053ec9a
"""This Q-Learning neural network agent is still a work in progress and is not complete yet.""" import random from agents import Agent from keras.layers import Dense from keras.models import Sequential, model_from_json from keras.optimizers import RMSprop, SGD from util import info, opponent, color_name, numpify, best_...
Python
agents/q_learning_agent.py
andysalerno/reversi_ai
mit
8,477
233
codeparrot/github-code
3d9ccea1e358959b6ca84c323bda05bf93d76d192e87cdaef1b64bf588981761
using Discord; using Discord.WebSocket; using NadekoBot.Common; using NadekoBot.Common.Collections; using NadekoBot.Core.Modules.Xp.Common; using NadekoBot.Core.Services; using NadekoBot.Core.Services.Database.Models; using NadekoBot.Core.Services.Impl; using NadekoBot.Extensions; using NadekoBot.Modules.Xp.Common; usi...
C#
NadekoBot.Core/Modules/Xp/Services/XpService.cs
ScarletKuro/NadekoBot
mit
38,334
948
codeparrot/github-code
a1674542b234a5f715e082d2b792363824677b894f1f50135642f0c5b9ab87eb
var angular = require('angular') , $ = require('jquery') , mocks = require('../../mocks') , sinon = require('sinon') , angularMocks = require('angular-mocks'); require('../../../vendor/angular_ui_select'); describe('map edit page tests', function() { var sandbox; var $compile; var $rootScope; var $l...
JavaScript
public/test/mapcache/cache/testMapcacheCreateDirective.js
ngageoint/mapcache-server
mit
2,027
77
codeparrot/github-code
b63978209c28d350a899e26e76c6731b8e9b6793c2c72d034f4d1afe968dd9c9
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
C++
PhysX-3.2.4_PC_SDK_Core/Source/PhysXVehicle/src/PxVehicleSDK.cpp
JayStilla/AIEPhysics
mit
5,700
127
codeparrot/github-code
3c2fde81f37941c47a63356cc7f672d383be7b9c0064d0aacbe0987874b6c8ef
#!/usr/bin/env python # -*- coding: utf-8 -*- # # ----------------------------------------------------------------------------- # File: modules/module_graph.py # Created: 2015-02-07 # Purpose: Create graphs from generated results # # Copyright # --------------------------------------------------------...
Python
smalisca/modules/module_graph.py
Ever-Never/smalisca
mit
13,577
443
codeparrot/github-code
3914ebf6e5070088c37d3df8682074c94c437c14ee3e2cb597dcd575716ad352
package com.loomcom.symon; import com.loomcom.symon.devices.Memory; import com.loomcom.symon.exceptions.*; import junit.framework.*; public class CpuImmediateModeTest extends TestCase { protected Cpu cpu; protected Bus bus; protected Memory mem; public void setUp() throws MemoryRangeException...
Java
src/test/java/com/loomcom/symon/CpuImmediateModeTest.java
LIV2/symon
mit
29,232
863
codeparrot/github-code
be4e418e579d70bd6f66787cc96ef4b3a94415e4d1b3676581e9cd8251f34859
using System; using UnityEditor; using UnityEngine; using System.Linq; using Vexe.Runtime.Extensions; using UnityObject = UnityEngine.Object; namespace Hourai.Editor { public static class EditorUtil { /* This somehow generates a compiler error. Commenting it out for now. public class Hor...
C#
Assets/Dependencies/HouraiLib/Editor/Util/EditorUtil.cs
Rhythmia/DanmakU
mit
3,695
105
codeparrot/github-code
eb2622a47d5e760bbc490616c0abbe4c19e10c6cbf9db78715e14dd6ea769272
#pragma once #include "Options.h" #include "metaoutput/TileLocation.h" #include "metaoutput/Tile.h" #include "metaoutput/Tileset.h" #include "metaoutput/TileGroups.h" #include <map> #include <set> #include <vector> #include <unordered_map> #include <SFML/System/Vector2.hpp> namespace metaoutput { class MetaOutput { p...
C
Wangscape/metaoutput/MetaOutput.h
serin-delaunay/Wangscape
mit
1,518
49
codeparrot/github-code
60c4ca5bea1f09879c8e16938c7c4b89a4258aaf25fc90afbd79e73cb13c86e3
import math import random from hokuyolx import HokuyoLX # Dimensions of the playing field WORLD_X = 3000 WORLD_Y = 2000 INT_MAX = 99999990 mark_r = 40 landmarks = [[WORLD_X/2, 0.0], [WORLD_X+mark_r, WORLD_Y], [-mark_r, WORLD_Y]] # position of 4 landmarks in (x, y) format. # Noises distance_noise = 5.0 # Noise par...
Python
HighLevel/localisation/ParticleFilter.py
SkRobo/Eurobot-2017
mit
8,791
263
codeparrot/github-code
d86855bf45c5a219b0a88dfe7b9b8f423a95d7d886360c06916805f169d6cd2a
@echo off :: Windows SDK for Windows 7 (7.0) should be installed first. :: And the "%VS90COMNTOOLS%" enviornment variable should be set correctly. :: NOTE: For Python 3.3, MSVC 10 is required for building. :: Configuration set PYTHON26_X86="F:\Langs\Python26\python.exe" set PYTHON26_X64="F:\Langs\Python26_x64\python.e...
Batchfile
src/win_build_all.bat
timonwong/SublimeAStyleFormatter
mit
2,178
91
codeparrot/github-code
de251b0fccd39eebcfad868d9020d4e49784f6a0945a2d1de3cf9d05457196e5
/* The MIT License (MIT) Copyright (c) 2015 Nicholas Oppersdorff 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/org/nvonop/selenium/framework/utilities/BaseTest.java
testworx/SeleniumFramework
mit
11,880
269
codeparrot/github-code
39efa268559bcf19b4f9742cdf6d83540d7b73a0d58b9f488e4410d839763f90
const { renderPredicate, renderIntegerExpression, renderVariable } = require('./render-predicate-impl') function renderProgram(program, indentStr, lineEnd) { return renderStatements(program.statements, 0, indentStr, lineEnd) } function renderStatements(statements, nestingLevel, indentStr, lineEnd) { return stat...
JavaScript
testing-utils/rendering/render-pseudocode-impl.js
harry-tallbelt/verifiable-tests
mit
2,901
82
codeparrot/github-code
5f46ad65a76bc729021cefd0cede0ed84dad55631e32b4f6729213549525cf58
using System; using System.Collections.Generic; using System.Diagnostics; using AutoMapper; using Nelibur.ObjectMapper; using Nelibur.Sword.Extensions; namespace Benchmark.Benchmarks { public sealed class CollectionBenchmark : Benchmark { private const int CollectionLength = 100; public Colle...
C#
Source/Benchmark/Benchmarks/CollectionBenchmark.cs
Sufflavus/TinyMapper
mit
5,033
171
codeparrot/github-code
3dff6ed8ba9673a89f71dbe6c4fbb1bf4baf9ba67127c6f498d39cd5f85e1291
var _ = require('underscore'); var mongoose = require('mongoose'); var AbstractQuestionSchema = require('../question').AbstractQuestionSchema; var Question = require('../question').Question; var QuestionSchema = require('../question').QuestionSchema; var Schema = mongoose.Schema; var FillInQuestionSchema = new Abstrac...
JavaScript
lib/questions/fillIn.js
vatozana/swot
mit
1,500
48
codeparrot/github-code