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
500cb00517e312d51c15cc0372f853ad869706aed8df2573e42f750375658fed
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeFamilies #-} ------------------------------------------- -- | -- Module : Web.Stripe.Dispute -- Copyright : (c) David Johnson, 2014 -- Maintainer : djohnson.m@gmail.com ...
Haskell
stripe-core/src/Web/Stripe/Dispute.hs
dmjio/stripe
mit
2,913
87
codeparrot/github-code
a93969f314c937382dad4c98ded77d473b713dfff34b712e0cff3f43c0395b8c
#include<iostream> #include<algorithm> #include<cstdio> #include<cstdlib> #include<cmath> #include<cstring> #define li long int #define m 1000000 using namespace std ; char a[m+2]; char b[m+2]; char c[m+2]; int main() { li t; scanf("%ld",&t); while(t--) { memset(a,0,sizeof(a)); memset(b,0,s...
C++
codechef/JUNE-LONG-CHALLANGE-2016/BINOP.cpp
hardbeater/Coding-competition-solution
mit
1,148
84
codeparrot/github-code
29ff4149e72a27216b8ee29027f196333844b7a57955bfca7163be05420c1fb3
// Copyright (c) 2011-2015 The C-Bit Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "utilitydialog.h" #include "ui_helpmessagedialog.h" #include "bitcoingui.h" #include "clientmodel.h" #include "guico...
C++
src/qt/utilitydialog.cpp
c-bit/c-bit
mit
7,296
192
codeparrot/github-code
27d1f571fa8d41bf5756d42e231900e4c2fb21cf4595adf3e9f4922d796ec0e3
var pkg = require('../package.json'); var fs = require('fs'); var DISCOURSE_FILE = __dirname + '/DISCOURSE_POST_URL'; module.exports = { dist: 'dist', releasePostUrl: fs.readFileSync(DISCOURSE_FILE).toString(), releasePostFile: DISCOURSE_FILE, protractorPort: 8876, banner: '/*!\n' + ' * Copyright ...
JavaScript
config/build.config.js
KholofeloMoyaba/atajo-ui
mit
3,887
113
codeparrot/github-code
7ccd74f3d08f46a0b1d2a09b664c42ce79c0c917f38a6f8169a83e21b499e3bd
using System; using System.Collections.Generic; using System.Linq; using System.Text; using AccountRepository.Interface; using IOCFactory; using AccountModel.Utility.Interface; using System.Security.Cryptography; using Infratructure.Interface; using ADOUtility.Model; namespace AccountModel { public partial class ...
C#
Project/ScriptShareFree/AccountModel/DomainModel/LoginAccount/LoginAccount.cs
mt830813/code
mit
2,551
91
codeparrot/github-code
8f092f23098a8791534a381f2fd9a8e6535ed88d230744077dc89b6e7de6e77c
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>param-pi: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
HTML
clean/Linux-x86_64-4.02.3-2.0.1/released/8.5.0~camlp4/param-pi/8.6.0.html
coq-bench/coq-bench.github.io
mit
7,682
177
codeparrot/github-code
bd73b87fe16f7399a2e50b238809ddab4ae946879185d32f3e842e0b7a073d88
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>square-matrices: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.mi...
HTML
clean/Linux-x86_64-4.05.0-2.0.6/extra-dev/8.10.0/square-matrices/8.8.0.html
coq-bench/coq-bench.github.io
mit
7,134
168
codeparrot/github-code
aa2880c7d8e7e276586912117024bc4275afa91967f8abb27af64e237c50115a
namespace Range_Exceptions { using System; class RangeExeptions { static void Main() { try { //var petko = new Human(34); var petko = new Human(105); } catch (InvalidRangeException<int> ex) //InvalidRangeExcept...
C#
Object-Oriented-Programming/05. OOP-Principles-Part-2/03. Range Exceptions/03. Range Exeptions.cs
Camyul/Modul_1
mit
1,187
34
codeparrot/github-code
62de917b120c9fff240237bdc9b34884b45c7ce7f77fa492cdfeca2ae256e195
def forenkling(a,b): while b!=0: gammel_b=b b=a%b a=gammel_b #print(a,b) return a print(forenkling(30,20)) print(forenkling(10,2)) def gcd(a,b): a=forenkling(a,b) return a def reduce_fraction(a,b): divisor=forenkling(a,b) a=int(a/diviso...
Python
Oving5/torleif/07_Forenkling_av_brøker.py
TorleifHensvold/ITGK3
mit
702
37
codeparrot/github-code
79f95b727f6a3793f7bb2ecc65dfc39f5f5738769b8919ccb45e62e613b4460d
"use strict"; (function() { var that; dom.screenVideo[ 0 ].crossOrigin = "anonymous"; api.video = that = { isStopped: true, isPlaying: false, play: function() { if ( !that.isPlaying ) { var file = api.playlist.selectedFile(); if ( api.isLoaded || api.isLoading ) { that.isStopped = false; that.is...
JavaScript
api/video.js
FilePlayer/fileplayer.github.io
mit
1,820
94
codeparrot/github-code
30dd7ce5070e13bce3ca29d7d26a52202b961186fd161652ca68800ccf8ce259
/** * Input: "23" Output: ["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"]. * @param {string} digits * @return {string[]} */ var letterCombinations = function(digits) { if (digits == '') return []; strArr = []; strNum = digits.toString(); nextStr = strNum.substring(1, strNum.length); if...
JavaScript
leetcode/question-phonenumber.js
xiemingzhi/webproject
mit
1,655
63
codeparrot/github-code
d3758a6042512e7fa0c50f8761bab2d732b89e4f15ee93a5f60bb2d093aa2c10
#ifndef BRUSHTOOLVIEW_H #define BRUSHTOOLVIEW_H #include "toolcontroller.h" #include <QPoint> #include <QImage> #include <QScopedPointer> #include <QElapsedTimer> #include <QTimer> class BrushTool; class TerrainViewDrawingContext; class QMouseEvent; class BrushToolEdit; class Session; class BrushToolView : public To...
C
brushtoolview.h
yvt/terravox
mit
1,086
53
codeparrot/github-code
bafa260e032de385e08f53d703efce9de7ae3443929f653722f56c12c416e8b8
import copy import operator empty = object() def unpickle_lazyobject(wrapped): """ Used to unpickle lazy objects. Just return its argument, which will be the wrapped object. """ return wrapped def new_method_proxy(func): def inner(self, *args): if self._wrapped is empty: ...
Python
gozokia/utils/functional.py
avara1986/gozokia
mit
4,105
116
codeparrot/github-code
b04b847bf20341f9f2e4407e9fce54c3c4f697d6f76589a8c4141dd24651894e
package opencsp.uacontroller.asterisk; import opencsp.Log; import opencsp.asterisk.Asterisk; import opencsp.csta.types.Connection; import opencsp.devices.SIPPhone; import opencsp.uacontroller.UAController; import opencsp.util.ConfigurationProvider; import org.asteriskjava.manager.action.HangupAction; import org.aster...
Java
src/main/java/opencsp/uacontroller/asterisk/AMIController.java
jonas-koeritz/asterisk-csp
mit
2,662
77
codeparrot/github-code
b12a9a0d5f77042250e72ed196b4c884549ed2b3b78849115ba07122b7eab08f
const Webpack = require('webpack'); const Cssnano = require('cssnano'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const Config = require('./main'); const Debug = require('debug')('app:webpack:config'); const paths = Config.utils_paths; c...
JavaScript
config/webpack.config.js
bmleight/kegbot-strangeluv
mit
9,642
374
codeparrot/github-code
fef24a1334097faa0a65744d6202c2ee04f6cbbb1d139a0c3c5415a77e930776
import os import ycm_core from clang_helpers import PrepareClangFlags # These are the compilation flags that will be used in case there's no # compilation database set (by default, one is not set). # CHANGE THIS LIST OF FLAGS. YES, THIS IS THE DROID YOU HAVE BEEN LOOKING FOR. flags = [ '-Wall', '-Wextra', '-Werror', '...
Python
.ycm_extra_conf.py
mtzstngl/RSA_Encryption
mit
4,012
131
codeparrot/github-code
e258d7c258bdb465f72c15167e3530b3c24c95ba51789df9b58e94828092eefe
package com.stackexchange.stacman; import java.io.Serializable; import java.util.Date; /** * Represents API v2.2's SearchExcerpt type */ public final class SearchExcerpt implements Serializable { private String title; public String getTitle() { return title; } private String excerpt; public String ...
Java
src/com/stackexchange/stacman/SearchExcerpt.java
kevin-montrose/stacman-java
mit
2,248
67
codeparrot/github-code
240331ed049c0839dfaa5b24a2b07deab0c31d04e55772590f806659e97c2d12
//----------------------------------------------------------------------- // <copyright file="StorageItemThumbnail.Portable.cs" company="In The Hand Ltd"> // Copyright © 2017 In The Hand Ltd. All rights reserved. // </copyright> //----------------------------------------------------------------------- using Syste...
C#
Source/InTheHand/Storage/FileProperties/StorageItemThumbnail.Portable.cs
inthehand/charming
mit
1,313
53
codeparrot/github-code
36aa94e7b83ff082c0e08662bbd9be08d5e8adefcbd490040c7f0dd9c163264c
#ifndef HMLIB_UNIQUERESOURCE_INC #define HMLIB_UNIQUERESOURCE_INC 100 #include<boost/optional.hpp> #include"exceptions.hpp" # namespace hmLib{ namespace{ struct resource_exception_identifier{}; } using resrouce_exepction = exceptions::exception_pattern<resource_exception_identifier>; using resource_nullptr_deref...
C++
resource.hpp
hmito/hmLib
mit
2,619
88
codeparrot/github-code
dce8f20e3e8561f2dd1ea6b16e79e3e8c56701ecfc9a5bce0c3044ed57a76c4e
import os import re import nltk from nltk.tag import tnt from modules import cleaner class Location: def __init__(self): train_data = [] with open(os.path.join(os.path.dirname(__file__), 'tagged_locations.txt'), 'r') as f: for line in f: train_data.append([nltk.tag.st...
Python
modules/location.py
dwiajik/twit-macet-mining-v2
mit
1,393
50
codeparrot/github-code
33a837d4d2cff69a82e149054a0550dfdfbdff6b533f40fec2ab0be03e19ce77
package scratchlib.objects.fixed.data; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.nio.charset.StandardCharsets; import org.junit.jupiter.api.Test; import scratchlib.objects.ScratchReferenceTable; import scratchlib.project.ScratchProject; import s...
Java
src/test/java/scratchlib/objects/fixed/data/ScratchObjectAbstractStringTest.java
JangoBrick/scratchlib
mit
2,976
89
codeparrot/github-code
e7ec392416d7e970523ad23c4662c9675ae1c5c874f2985ad54576c9524098b8
package partitaOnline.view; import dominio.classi_dati.StatoMano; import dominio.eccezioni.CanzoneNonTrovataException; import dominio.eccezioni.CaricamentoCanzoneException; import dominio.eccezioni.MattaException; import dominio.elementi_di_gioco.Carta; import dominio.giocatori.GiocatoreOnline; import dominio....
Java
Sette_e_Mezzo/src/partitaOnline/view/PartitaOnlineGuiView.java
IngSW-unipv/Progetto-A
mit
37,703
923
codeparrot/github-code
4e94c95f003eb05c662cf10a8d610e046f20e12bfec5a2c624de0e5652d2b973
using System.Collections.Generic; using System.Linq; using CodeOwls.PowerShell.Provider.PathNodeProcessors; using CodeOwls.PowerShell.Provider.PathNodes; using Microsoft.SqlServer.Dts.Pipeline.Wrapper; namespace CodeOwls.BIPS { public class DataFlowInputColumnNodeFactory : NodeFactoryBase { private rea...
C#
src/CodeOwls.BIPS.Provider/DataFlowInputColumnNodeFactory.cs
beefarino/bips
mit
1,157
37
codeparrot/github-code
a308bf712eba1d5ae27103fbb393ec4b94fee029dd7003698f8430f7ba89ef7a
<?php /* TwigBundle:Exception:traces.html.twig */ class __TwigTemplate_7d7769099402d4973058e8c19295787b extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected...
PHP
app/cache/dev/twig/7d/77/69099402d4973058e8c19295787b.php
WCORP/just2
mit
5,967
125
codeparrot/github-code
7a49dfacefea3016bb515081dd7d40220c54debb94e6ba3c3bd197343581488f
/* * The MIT License * * Copyright (c) 2012 Petar Petrov * * 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 ...
Java
src/net/vexelon/jdevlog/config/ConfigurationBuilder.java
petarov/jdevlog
mit
4,155
99
codeparrot/github-code
a19b128b7aa7ceacf8047cfc51e9371d1a55d45c3b59e5b880bb8f51c4b29c6d
// 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 <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boost/foreach.hpp> #include "checkpoints.h" #include "m...
C++
src/checkpoints.cpp
PeoplesReserve/PeoplesReserve-master
mit
5,080
137
codeparrot/github-code
476df7901b11838098ed76ed4aeacc75e69f6a66e3a1fb47f79db49d72c04816
package org.hccp.morsebird.rpi; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintStream; /** * Created with IntelliJ IDEA. * User: ibrown * Date: 1/1/14 * Time: 9:55 PM * To change this template use File | Settings | File Templates. */ public class PythonB...
Java
src/java/org/hccp/morsebird/rpi/PythonBuzzerController.java
igb/MorseBird
mit
2,409
89
codeparrot/github-code
4171153a15c584db04570fd890bb3450d512b0984db5af9478d827aa55c57bcd
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Taskling.Contexts; namespace Taskling.Blocks.ListBlocks { public class ListBlock<T> : IListBlock<T> { private IList<IListBlockItem<T>> _items; private ListBlockContext<T> _...
C#
src/Taskling/Blocks/ListBlocks/ListBlock.cs
Vanlightly/Taskling.NET
mit
2,179
82
codeparrot/github-code
b7b4c7cf75537f9e2ce39271cb56b829136759a5acb4fed0f3a2f456fe0baa3b
// 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. #ifndef BITCOIN_KEY_H #define BITCOIN_KEY_H #include <stdexcept> #include <vector>...
C
src/key.h
bcpki/bitcoin
mit
5,049
167
codeparrot/github-code
2b967f22c63e678ce68807edf4f85c31c1f6205bc2f15890d53e4958549b57ce
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
C
Boss2D/addon/webrtc-jumpingyang001_for_boss/modules/rtp_rtcp/include/rtp_rtcp.h
koobonil/Boss2D
mit
18,574
456
codeparrot/github-code
6ceb08bb8354d6f16c121b767cb4c9fff63d56ad8ce2d59cc2d8de5bc3fcb884
/* * Progarm Name: alpha-bet.hpp * Created Time: 2017-03-02 10:58:36 * Last modified: 2017-03-02 14:10:23 * @author: minphone.linails linails@foxmail.com */ #ifndef _ALPHA_BET_HPP_ #define _ALPHA_BET_HPP_ #include <string> #include <vector> using std::string; using std::vector; class AlphaBet{ public: Alp...
C++
src/srcs/alpha-bet.hpp
linails/NLP-correlation
mit
732
36
codeparrot/github-code
01293604b8f30aa2d58a190303b17b5e9242cbe090c9421ec46428f0391833e9
<?php namespace Application\Form; use Zend\Form\Form, Zend\InputFilter\InputFilter, Zend\InputFilter\Factory as InputFactory; class UserForm extends Form { public $inputFilter = null; public function __construct($name = null) { // we want to ignore the name passed parent::__const...
PHP
module/Application/src/Application/Form/UserForm.php
Diks3D/ZendToTest
mit
5,765
189
codeparrot/github-code
6c01863284c33e85dd4e08edd0e7e16f1eb183b9b9645fb881e7cfce1f9da123
var path = require('path'), fs = require('fs'), webpack = require("webpack"), libPath = path.join(__dirname, 'lib'), distPath = path.join(__dirname, 'dist'), pkg = require('./package.json'), cordovaLib = require('cordova').cordova_lib, extend = require('util')._extend, deepExtend = requi...
JavaScript
webpack.config.prod.js
silverbux/wordpress-hybrid-client
mit
1,426
41
codeparrot/github-code
73b01e1d632e75e5246bcacfa58454ffda028277f9b2a1ccf2da7e6979e85a56
// // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved // LICENSE: Atomic Game Engine Editor and Tools EULA // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for // license information: https://github.com/AtomicGameEngine/AtomicGameEngine // #include <AtomicJS/Javascript/JSVM.h> #i...
C++
Source/ToolCoreJS/ToolCoreJS.cpp
nonconforme/AtomicGameEngine
mit
4,345
157
codeparrot/github-code
c30d8d2ec1260268331fa0f9ed5702843491534baef2edbb097bf0ffd5dfac6c
using DemoWebApp.BLL.DTOs; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace DemoWebApp.Web.Controllers.API { public class EmployeeController : ApiController { private static IEnumerable<EmployeeDTO> _products; ...
C#
DemoWebApp/DemoWebApp.Web/Controllers/API/EmployeeController.cs
myatyga/WebApp
mit
1,235
53
codeparrot/github-code
2c7d6b1e4cab5bcd44c9ea1566f3f64100ae2f7c6c31369432ee2819cd801ec8
package io.github.siddharthgoel88.useragents.impl; import io.github.siddharthgoel88.useragents.UserAgent; /** * UserAgents from latest to oldest for TheworldBrowser */ public class TheworldBrowser extends UserAgent { public String[] getAllUserAgentStrings() { String [] userAgentStrings = { "Mozilla/5.0 (co...
Java
src/main/java/io/github/siddharthgoel88/useragents/impl/TheworldBrowser.java
siddharthgoel88/feku
mit
3,777
35
codeparrot/github-code
ccb47b5bfdd6f9e1097498264535f7bf0618fa2dcf82481c8c116cb6e255728b
#region License /* Copyright (c) 2012-2016 ObjectGL Project - Daniil Rodin 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, cop...
C#
Source/ObjectGL/Api/Context/DepthRangeDouble.cs
Zulkir/ObjectGL
mit
1,831
54
codeparrot/github-code
d0c2257c6a27425b5216af59bcd0c80071d02cae15c3f4a8d52f739e267cdbf7
#include <limits.h> #include "Function.h" #include "Random.h" #include "util.h" #include "Type.h" #include "ExprGen.h" Function::Function(string returnType, string functionName) { retType = returnType; name = functionName; } void Function::printBodyHeader() { coutLine(retType + " " + name + "() {"); return; } ...
C++
src/Function.cpp
m1c0l/RPG
mit
1,413
66
codeparrot/github-code
0281358e34a5d78a09cdbf055a9f2a383e51bd0a277732fdd11c49061ce0d76d
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>seagull</title> <style type="text/css" media="screen"> html, body { height:100%; background-color: #ffffff;} body { margin:0; padding:0; overflow:hidden; } #flashContent { width:100%; height:100%; } </style> <script> (function(i,s,o,g,r,a,m...
HTML
Webpage/seagull.html
maninkari/seagullgame
mit
4,237
117
codeparrot/github-code
d94180be1991a1c9a916e9683f403126f1bde9f894a905fbe2ebe5bb3e29c0a1
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8" /> <title>pymatgen.core.xcfunc &#8212; pymatgen 2019.10.16 documentation</title> <link rel="stylesheet" href="../../../_static/proBlue.css" type="text/css" /> <link rel="stylesheet" href="../../../_static/pygmen...
HTML
docs/_modules/pymatgen/core/xcfunc.html
tschaume/pymatgen
mit
47,269
378
codeparrot/github-code
6ee8d35983d747ada109b50d3f554b516116b3b4254357c7275c7ad1dc742c9c
<h1><code ng:non-bindable=""></code> <span class="hint"></span> </h1> <div><p><a href="/guide/variants">Node.js Variant</a> Skip this step and go to <a href="/tutorial/step-10">10 MyApp on NodeJS Site</a></p> <p><code>MyApp</code> is now ready to upload to the <a href="/guide/gaesite">GAE Site</a>. These are the step...
HTML
docgen/docs/partials/tutorial/step-08.html
srp7474/tri
mit
3,375
53
codeparrot/github-code
5de9071e866ae65f71508fb407f405a5f6f63ebe1cae993087f2860c37a5bc81
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.github.Eddyosos.integracao20171.esus.cds.cadastroindividual; import java.util.LinkedList; import org.junit.Before; import ...
Java
src/test/java/com/github/Eddyosos/integracao20171/esus/cds/cadastroindividual/InformacoesSocioDemograficasTest.java
Eddyosos/integracao201701
mit
2,421
81
codeparrot/github-code
341342370178f8a9fa6204318b3bf16597f20ed604fd690189bdbfdaace8483c
<?php class NiceString implements Serializable, Iterator, ArrayAccess { private $s; public function __construct($string) { $this->s = (string) $string; } public function __toString() { return $this->s; } public function __get($n) { return new self($this->s.$n); } public function __invoke($a, $b) ...
PHP
NiceString.php
Seb-C/NiceString.php
mit
3,352
156
codeparrot/github-code
346645860053031e608778afddb82a05a6ec46410371298c006b774c723f8c44
//! depends: rand = "0.3" //! depends: regex = "0.2" extern crate zaldinar_core; extern crate regex; extern crate rand; use rand::Rng; use zaldinar_core::client::PluginRegister; use zaldinar_core::events::CommandEvent; macro_rules! regex { ($s:expr) => (::regex::Regex::new($s).unwrap()) } fn choose(event: &Com...
Rust
plugins/choose.rs
daboross/zaldinar
mit
1,900
61
codeparrot/github-code
9196dec55e31d0d2392d6533f2e5c87f577112ed205525c0d1c0cddbd0249586
using System; using System.Windows.Forms; using SSS_Library; using SSS_Library.IS2G10_DBSSSDataSetTableAdapters; namespace SSS_Windows_Forms.Forms.Tutor { public partial class Tutor : Form { //database stuff //Modals private readonly UpdateStudentAttendanceModal _updateStudentAttendan...
C#
SSS/SSS/Forms/Tutor/Tutor.cs
TRex22/StudentSupportSystemGroup10
mit
3,560
106
codeparrot/github-code
ef93913ee73ad0f9fa1c2eca3efdc6e5e7a51d76d7ca321e15741f6a58f3ce41
package com.transparentdiscord.UI; import com.transparentdiscord.TransparentDiscord; import javax.swing.*; import javax.swing.border.EmptyBorder; import java.awt.*; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; /** * Created by liam on 7/10/17. * Represents a window bar of sorts, as most wi...
Java
src/main/java/com/transparentdiscord/UI/UITitleBar.java
MCPlummet/TransparentDiscord
mit
2,405
70
codeparrot/github-code
27af7024f3060a843f7cc74ee2d413c22c70de02e3ec17e64d97e26ce7afce19
using System; using MQTTnet.Server.Internal; namespace MQTTnet.Server { public sealed class MqttServerOptions : IMqttServerOptions { public MqttServerTcpEndpointOptions DefaultEndpointOptions { get; } = new MqttServerTcpEndpointOptions(); public MqttServerTlsTcpEndpointOptions TlsEndpointOpti...
C#
Source/MQTTnet/Server/MqttServerOptions.cs
chkr1011/MQTTnet
mit
1,874
45
codeparrot/github-code
7ebfe71ff54600b9f6ebc27966212d2ff8f67c3006ecc931c146f239f299fd5f
<?php if (sfConfig::get('app_sf_guard_member_plugin_routes_register', true)) { $rcon = sfRouting::getInstance(); $config = sfYaml::load(dirname(__FILE__) .'/plugin_routing.yml'); $enabled_modules = sfConfig::get('sf_enabled_modules', array()); foreach ($config['mapping'] as $module_name => $route_names) ...
PHP
config/config.php
tumf/Symfony1.0_sfGuardMemberPlugin
mit
1,139
42
codeparrot/github-code
f2166e7971bc2cee5a4175b5005d279f7e4c0f4df9ea89e4e2d2ac8650314350
from django.db.models import Min from django.http import Http404 from django.utils.encoding import force_str from django.utils.translation import gettext as _ from django.views.generic import DetailView, YearArchiveView from django.views.generic.detail import SingleObjectMixin from spectator.core import app_settings f...
Python
spectator/events/views.py
philgyford/django-spectator
mit
8,037
277
codeparrot/github-code
6c0c93cc2d00533133c17aa3d83a0b6833497eb0bbaa5735ed4237dbefd0996c
namespace InheritanceAndPolymorphism { using System.Collections.Generic; using System.Text; public class OffsiteCourse : Course { public OffsiteCourse(string name) : base(name) { this.Town = null; } public OffsiteCourse(string courseName, string...
C#
07. HighQualityClassesHomework/Inheritance-and-Polymorphism/OffsiteCourse.cs
vassildinev/High-Quality-Code
mit
1,720
68
codeparrot/github-code
f4edf5edaa04e513886e05c03c3229ecfce1a0532ff3a3f79021f3689e97a12a
package github.turtlehunter.ElCircoServer; import java.util.Arrays; public class AdminShell { public enum AdminCommands {reboot, update}; public void handle(String str) { String[] strs = str.split(" "); for(AdminCommands value:AdminCommands.values()) { if(value.name().equals(strs[...
Java
src/main/java/github/turtlehunter/ElCircoServer/AdminShell.java
El-Circo/El-Circo-Server
mit
729
33
codeparrot/github-code
592b4bba82ded3f1e6dbb55e8b26b03efd14b599543949623a52186c0a838c95
package spout; //======================================================================================================== // // Spout.Java // // Adds support to the functions of the JSpout JNI library. // // 19.12.15 - Finalised Library class // - Changed all parent.println to System.out.println...
Java
lib/spout/src/spout/Spout.java
cacheflowe/haxademic
mit
22,504
786
codeparrot/github-code
6694127445bf8b408bbbba6bb26910577fa0804423d6900a4e1138cb5c9aa164
using System; using System.Collections.Generic; using System.Runtime.Serialization; using System.ServiceModel; using System.Drawing; using System.Text; using System.IO; using System.Xml; using System.Xml.Linq; using System.Xml.Serialization; using Hydra.Framework; using Hydra.Framework.Helpers; using Hydra.Framework....
C#
5/Hydra.DomainModel/InternalRegion.cs
andywiddess/Hydra
mit
18,181
470
codeparrot/github-code
c0237b216033c5e132a7672173828c4c30bd5139a8443de5ac4e3f7ea1a60e58
#include "mex.h" #include "../SE_fgg.h" #include "../SE_fkg.h" void SE_FGG_MEX_params(SE_FGG_params*, const mxArray*, int); #define X prhs[0] #define Q prhs[1] #define OPT prhs[2] #define H_OUT plhs[0] // Output #ifndef VERBOSE #define VERBOSE 0 #endif void mexFunction(int nlhs, mxArray *plhs[], in...
C
SE_fast_gridding/mex/SE_fg_grid_kaiser_mex.c
ludvigak/SE_unified
mit
1,386
60
codeparrot/github-code
c3f0b2499eea09a8b384dd4504157b5ea3e2aea690948f4d9428788fd22dc2c5
/* Please add all Javascript code to this file. */ $.get("https://accesscontrolalloworiginall.herokuapp.com/http://mashable.com/stories.json", function(response) { var results = response.new; var articles = parseResults(results); //console.log(articles); addArticlesToPage(articles); function parseResults(r...
JavaScript
jsd920_class_repo/projects/feedr/js/app.js
catespinosa/catespinosa.github.io
mit
2,335
95
codeparrot/github-code
f0352543f840e46bb87c71bfb7f8721209bba654d343c3d55babe8b2f7e724ab
import { reducer as formReducer } from 'redux-form'; import { reducer as uiReducer } from 'redux-ui'; import { combineReducers } from 'redux'; import { isUndefined, omitBy } from 'lodash'; import * as listingsReducers from './listings'; import * as watchesReducers from './watches'; import * as seeksReducers from './s...
JavaScript
client/src/reducers/index.js
casey-chow/tigertrade
mit
2,890
127
codeparrot/github-code
8af3265d8517743e3f117996183c76194c7ff053fd01e5ddf59fac9c9833ff3e
#include "material.h" namespace wyc { CMaterial::CMaterial() { } CMaterial::CMaterial(const char * name) : m_name(name) { } CMaterial::~CMaterial() { } const CUniform * CMaterial::find_uniform(const std::string & name) const { const auto &uniform_map = get_uniform_define(); auto it = uniform_map.fi...
C++
src/sparrow/renderer/material.cpp
wangyongcong/pixpad
mit
1,396
67
codeparrot/github-code
422afcd1210bc05fe53fa1bc56de8c11ed4b6f2f28cd9424b719e53dcd40e748
// Copyright (c) 2009 Bohumir Zamecnik <bohumir@zamecnik.org> // License: The MIT License, see the LICENSE file using System; using Gtk; using HalftoneLab; namespace HalftoneLab.GUI.Gtk { /// <summary> /// %Matrix threshold filter configuration dialog. /// </summary> /// <see cref="HalftoneLab.Matrix...
C#
src/GtkGUI/moduleUI/MatrixThresholdFilterDialog.cs
bzamecnik/HalftoneLab
mit
1,972
57
codeparrot/github-code
aac051a9d8a63308f273ad7834f3a5ee92b42263dac4845adcbef30f36d22753
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coqeal: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.7.0/coqeal/1.0.0.html
coq-bench/coq-bench.github.io
mit
7,800
185
codeparrot/github-code
fd6d966f4f43a68801f85fdf270d7745b719eef0be8996ed8b835ff3e4940783
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
JavaScript
bin/form/date.js
redarrowlabs/strongback
mit
2,641
59
codeparrot/github-code
92eda62f9ebe809fd1546bdeae1d765821aabde7c4df69bf6e8d5ed2f7cf5d00
import { Assert, UnitTest } from '@ephox/bedrock-client'; import { Optional } from '@ephox/katamari'; import * as CurrentWord from 'ephox/robin/util/CurrentWord'; UnitTest.test('CurrentWordTest', () => { const check = (expected: { before: Optional<number>; after: Optional<number> }, text: string, position: number) ...
TypeScript
modules/robin/src/test/ts/atomic/util/CurrentWordTest.ts
tinymce/tinymce
mit
1,500
32
codeparrot/github-code
74f03bedbe5e0fe4a0000602ed9a99ea82220c8ccaa770e181ff0d6379e7cd6b
#include <gtest/gtest.h> #include <uvw/tcp.h> TEST(TCP, Functionalities) { auto loop = uvw::Loop::getDefault(); auto handle = loop->resource<uvw::TCPHandle>(); ASSERT_TRUE(handle->noDelay(true)); ASSERT_TRUE(handle->keepAlive(true, uvw::TCPHandle::Time{128})); ASSERT_TRUE(handle->simultaneousAcce...
C++
test/uvw/tcp.cpp
skypjack/uvw
mit
5,982
168
codeparrot/github-code
7b6a60e1abf2c18cf6177f011dfc96bfa62971ae55a7d1553563f69d0c42f446
(function() { 'use strict'; angular .module('myPick10') .controller('LoginController', LoginController); //inject dependencies LoginController.$inject = ['$scope', '$location', '$routeParams', '$log', 'AuthService', 'appTitle']; function LoginController($scope, $location, $routeParams, $log...
JavaScript
client/my-ng-files/welcome/login.ng.controller.js
gatto-c/Pick10b
mit
1,491
53
codeparrot/github-code
1723b14bc6674fd87747dcace9499c792d59f6f49ebcd717a0ab4507bd1a0f4d
using System; using System.Collections.Generic; using System.Linq; using Haven.Resources; using Haven.Utils; using SharpHaven.Client; using SharpHaven.Utils; namespace SharpHaven.Graphics.Sprites.Plants { public class GaussianPlantMaker : SpriteMaker { private readonly int num; private readonly SpritePart[] str...
C#
SharpHaven/Graphics/Sprites/Plants/GaussianPlantMaker.cs
k-t/SharpHaven
mit
1,286
47
codeparrot/github-code
d8a574c40e65e380ed370632fca93929463b0357c2c6a237ef35060ac558240a
using UnityEngine; using System.Collections; namespace Lockstep { public static class FixedMath { #region Meta public const int SHIFT_AMOUNT = 16; public const long One = 1 << SHIFT_AMOUNT; public const long Half = One / 2; public const float OneF = (float)One; public const double OneD = (double)One; p...
C#
Core/Simulation/Math/FixedMath.cs
pakoito/Lockstep-Framework
mit
5,422
224
codeparrot/github-code
e7687ccb10cdc68052973002699e091a195c34b2cadbd7bb614104c14b58f12a
<?php namespace Application\MainBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class AuthorForm extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) ...
PHP
src/Application/MainBundle/Form/AuthorForm.php
siciarek/sfproj
mit
1,467
54
codeparrot/github-code
4c827ec60d5d9a07a7b93b0dbb682a22d1043453b9a7726fe94d3ea65937f540
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="TileMap.cs" company="nGratis"> // The MIT License (MIT) // // Copyright (c) 2014 - 2016 Cahya Ong // // Permission is hereby granted, free of charge, to any person obtaining...
C#
Archive/Gaia.Client.Unity/Assets/Scripts/TileMap.cs
cahyaong/cop.gaia
mit
7,837
221
codeparrot/github-code
7693f393e3fd964f27a38afd00ce3b75116b305e3779e8898ed075854dc77b68
import sys if sys.version_info >= (3, 8): from importlib import metadata else: import importlib_metadata as metadata extensions = [ "sphinx.ext.autodoc", "sphinx.ext.doctest", "sphinx.ext.intersphinx", "sphinx.ext.coverage", "sphinx.ext.viewcode", ] # Add any paths that contain templates...
Python
docs/conf.py
hpk42/pluggy
mit
2,375
89
codeparrot/github-code
efb00c471d8d9a055adb9bd9c8766e27181cf0a8d12a85276cdcf4167ab4e755
/* * PointF.cs - Implementation of the "System.Drawing.PointF" class. * * Copyright (C) 2003 Southern Storm Software, Pty Ltd. * * 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 ve...
C#
qca_designer/lib/pnetlib-0.8.0/System.Drawing/PointF.cs
jjenki11/blaze-chem-rendering
mit
2,731
132
codeparrot/github-code
1613a9c1b4ae213547550c211e2c46b02652b73803ac0195f384170d4b8e6be8
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="Viewport3DX.cs" company="Helix Toolkit"> // Copyright (c) 2014 Helix Toolkit contributors // </copyright> // <summary> // Provides a Viewport control. // </summary> // -------...
C#
Source/HelixToolkit.Wpf.SharpDX.Shared/Controls/Viewport3DX.cs
JeremyAnsel/helix-toolkit
mit
70,167
1,895
codeparrot/github-code
267137a307de3d2b23294d6d231b050951c9dd373fae1cb32f805e5b6fd06c8e
/* ** ** Copyright 2014, Jules White ** ** */ package org.coursera.mutibo.client; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Executor; import org.apache.commons.io.IOUtils; import org.coursera.mutibo.json.ResourcesMapper; import retrofit.Endpoint; import retrofit.ErrorHandl...
Java
CapstoneAndroidMutiboBackend/src/main/java/org/coursera/mutibo/client/SecuredRestBuilder.java
kclaes83/android101
mit
8,899
286
codeparrot/github-code
41d6cc0293dea1a4cdb1e1921fb49140c7c4e52abd8903a1d7fab30f8db1dd0d
<?php function setPassword(){ $alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'; $pass = array(); //remember to declare $pass as an array $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache for ($i = 0; $i < 8; $i++) { $n = rand(0, $alphaLength); $pass[] ...
PHP
dev/classes/functions.php
gbrand/painel-sitehospedo
mit
772
37
codeparrot/github-code
fa1c52038eff818e95d5aa08870109ab9325d595ed6a36caf3c9ce1bb1e8fcb2
<?php namespace FlyingColours\CommonBundle\Service; use Psr\SimpleCache\CacheInterface; use Symfony\Component\Intl\Exception\NotImplementedException; class InMemoryCache implements CacheInterface { private $cache = []; public function get($key, $default = null) { return $this->cache[$key] ?? $de...
PHP
src/Service/InMemoryCache.php
FlyingColours/common-bundle
mit
1,019
55
codeparrot/github-code
e8bda8fc48fec8c17fdb71e3fd58991e68d62dbe034d781db57471f6b40c32e1
<!DOCTYPE html> <!--[if IE]><![endif]--> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Class Message | Picturepark.SDK.V1 API </title> <meta name="viewport" content="width=device-width"> <meta name="title" content="Class Message ...
HTML
docs/sdk/site/api/Picturepark.SDK.V1.CloudManager.Contract.Message.html
Picturepark/Picturepark.SDK.DotNet
mit
13,694
434
codeparrot/github-code
43b588491d1d19d4662f39645968e5dba2712659b1484aaeb527db9063c9f662
// // Copyright (c) Microsoft Corporation. All rights reserved. // // // Use of this sample source code is subject to the terms of the Microsoft // license agreement under which you licensed this sample source code. If // you did not accept the terms of the license agreement, you are not // authorized to use this samp...
C
86duino_80b/src/boot/xldr/filesystem.c
embedded101/Compact2013.BSP
mit
13,030
370
codeparrot/github-code
deb4b8239a3263b6b298899ad3f38090b611ae1f2c5f6642f8307aab29aa5645
using System; using System.Collections.Generic; using Composite.C1Console.Actions; using Composite.C1Console.Security; using Composite.Data; using CompositeC1Contrib.FormBuilder.C1Console.ElementProvider; using CompositeC1Contrib.FormBuilder.C1Console.EntityTokens; using CompositeC1Contrib.FormBuilder.Data....
C#
FormBuilder.Dynamic/C1Console/Actions/DeleteFormActionToken.cs
burningice2866/CompositeC1Contrib.FormBuilder
mit
1,936
54
codeparrot/github-code
60fe05a8a59a8616e5c534304c431cb6690a184817f925048d30eb20938dd236
package com.streamquote.strategies.indicators.trackers; import java.util.ArrayList; import java.util.Date; import java.util.List; import com.streamquote.strategies.Decimal; public class StockPriceSeriesListing { private String stockName; private List<StockTicker> ticks = new ArrayList<StockTicker>(); private Date...
Java
src/main/java/com/streamquote/strategies/indicators/trackers/StockPriceSeriesListing.java
shiveshpandey/StreamQuote
mit
1,855
69
codeparrot/github-code
8aefb86a8e63e73102b7b255d40124141d7ad29c0ec985832629c8488a2f8adb
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using NHunspell; using NSL.DotNet.Helpers; using NSL.TextProcessing.Common; using NSL.TextProcessing.Common.Highlight; using HighIndex = System.Collections.Generic.K...
C#
TextHandler.cs
NoofSaeidh/NSL.TextProcessing
mit
9,028
247
codeparrot/github-code
d4cc8128f1087cc51cab192fa60ab70b3148847f252c2bae4923346ef9f6e999
#!/bin/sh set -e set -u set -o pipefail if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy # frameworks to, so exit 0 (signalling the script phase was successful). exit 0 fi echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_P...
Shell
Example/Pods/Target Support Files/Pods-KVVersionManager_Example/Pods-KVVersionManager_Example-frameworks.sh
thangpham26394/KVVersionManager
mit
7,171
156
codeparrot/github-code
133652bfad6a3a16a46a5a5eec0c1b6784bf624246efbadd8aac57d0ebc0dbf1
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\HttpFoundation\File\File; /** * @ORM\Table(name="user") * @ORM\Entity */ class User { /** * @ORM\Id * @ORM\Column(name="id", type="integer") * @ORM\GeneratedValue(...
PHP
src/Entity/User.php
javiereguiluz/easy-admin-demo
mit
3,034
181
codeparrot/github-code
f9736d7fe2c6f3d31f27ad01af42d0105333e8250b1fa5339700050437afaf81
$(document).ready(function() { //google map var geocoder; var map; var styles = [{ "featureType": "water", "elementType": "geometry.fill", "stylers": [{ "color": "#d3d3d3" }] }, { "featureType": "transit", ...
JavaScript
app/scripts/src/main.js
hunglion1368/solution2017
mit
7,578
290
codeparrot/github-code
5200abfbcb213bb90a516e8914166feb9c2e8edd54fb3f320006a9ccb4c25659
module Dev module Command module Stage class Base < Dev::Command::Base def initialize(names:, **args) super(**args) @names = names end protected attr_reader :names # overrideable value def projects_repository Dev::Stage ...
Ruby
lib/dev/command/stage/base.rb
whoward/docker-development
mit
875
41
codeparrot/github-code
92822bb64b2da42b2f97cd58c36a473f15a09140d1f23452318a108cefef0315
class DocumentsController < AuthenticatedController authorize_resource before_action :load_attachable, except: :download def download @document = Document.find(params[:id]) file = "#{@document.attachment.path}" ext = @document.attachment.file.extension begin mime_type = MIME::Types.type_fo...
Ruby
app/controllers/documents_controller.rb
yorkulcs/papyrus
mit
1,991
82
codeparrot/github-code
a48773f93879893067a6f535e0779d1c02521c468b7791f5dca41575519d0967
function textInputAtts() { var atts = _.clone(this.atts); delete atts.collection; // we want the schema key tied to the hidden file field only delete atts["data-schema-key"]; atts["class"] = (atts["class"] || "") + " form-control"; return atts; } function fileInputAtts() { return {'data-schema-key': this...
JavaScript
client/views/autoform/cfsFileField.js
RickCSong/simple-library
mit
2,211
72
codeparrot/github-code
59e98027c3ef58417cbb30b89e9e814684148c9575722bc6a0351501686677f6
package mcjty.rftoolsdim.gui; import mcjty.lib.blocks.GenericBlock; import mcjty.rftoolsdim.items.manual.GuiRFToolsManual; import net.minecraft.block.Block; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.math.BlockPos; import net.minecraft.world.W...
Java
src/main/java/mcjty/rftoolsdim/gui/GuiProxy.java
McJty/RFToolsDimensions
mit
3,594
79
codeparrot/github-code
27049e75c5e5e696dc0c052f8cbf954381eda1a9e936d9e2287b5f8e881cceac
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>db_se...
HTML
db-5.3.28.NC/docs/api_reference/STL/stldb_set_base_iteratordb_set_base_iterator.html
iadix/iadixcoin
mit
7,780
209
codeparrot/github-code
9acde6cc34f25f7c6128acfd028fab13c44683cfca6de4a66e5ba118cf267456
(function () { 'use strict'; angular .module('anlyts') .controller('ArticlesController', ArticlesController); ArticlesController.$inject = ['$scope', '$state', 'articleResolve', 'Authentication']; function ArticlesController($scope, $state, article, Authentication) { var vm = this; vm.articl...
JavaScript
modules/anlyts/client/controllers/anlyts.client.controller.js
ahurtado-ht/go5app_portal_meanjs
mit
1,261
53
codeparrot/github-code
8e0fea2df5242fb92ad28426ce063c70def1d08bdf971ba390165789aa2a8f3b
![Spontaneous CMS](https://github.com/SpontaneousCMS/spontaneous/raw/master/application/static/logo-400px-transparent.png) Spontaneous is a revolutionary new content management system that brings the best of Ruby and the best of HTML5 together in one elegant package. This is version 2 of an existing (closed source) C...
Markdown
Readme.markdown
magnetised/spontaneous
mit
6,923
176
codeparrot/github-code
e29b0b91e8751b3b938451ae7ffb30e76e2705fa7e6cf58f1fc4d18e2be489cc
/* * ipop-project * Copyright 2016, University of Florida * * 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...
C++
trunk/src/tincan_control.cc
ipop-project/Tincan
mit
9,780
322
codeparrot/github-code
ffadfc54e0a9c27e48c24da4b2a3056be804190085dc6880976003509ff64503
package main import ( "bufio" "bytes" "io" "io/ioutil" "net/http" "github.com/Shopify/toxiproxy/stream" "github.com/Shopify/toxiproxy/toxics" ) type HttpResponseToxic struct { HttpBody string `json:"body"` HttpStatusCode int `json:"code"` HttpStatusText string `json:"status"` } func (t *HttpRespo...
GO
response.go
gaggl/marten
mit
1,313
61
codeparrot/github-code
cd990a515843baae4ae5edd7767958c0a37be9192d4ab93ffd21d325f87e02e9
var http = require('http'); var os = require('os'); var fs = require('fs'); var worker_num = process.argv[2] || 8; var exeClicker = process.argv[3] || true; var crawlers = {"remain" : 0}; var clickers = {"remain" : 0}; process.env.PATH=process.env.PATH+":node_modules/phantomjs-prebuilt/bin/"+":node_modules/c...
JavaScript
crawler.js
JalexChang/ProductLinkCrawler
mit
2,696
91
codeparrot/github-code
b675d3ad2303d58de5d7cdd6a40e836059b1bde0eaf5b19ba118dfe9796b6597
package com.whu.dailyexercise.activities; import com.whu.dailyexercise.R; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import android.widget.LinearLayout; public class Us...
Java
DailyExerciseClient/src/com/whu/dailyexercise/activities/UserCenterActivity.java
liulin2012/DailyExercise
mit
1,834
59
codeparrot/github-code
cdb14d0770e7be61afaddae6dbbbd86904eb2536fcb3d71f1f4f959c275d097b
// Copyright: Robert P Herbig, 2010 using System; using NUnit.Framework; namespace Herbig.ProgrammingChallenge { [TestFixture] public class PrimeFibonacci { private static readonly double Phi = (1 + Math.Sqrt( 5 )) / 2; #region Tests [Test] public void ShouldCalculateNthF...
C#
Challenge 2 - Prime Fibonacci/rpherbig.cs
rpherbig/programming_challenges
mit
3,778
115
codeparrot/github-code
619cae96657a6bf659e27976d0c8d671ad05a4a7785e410011403ea58c24e3d6
package enchiridion.api; import net.minecraft.util.ResourceLocation; import org.apache.commons.lang3.Validate; public class GuideImageLocation extends ResourceLocation { private final String resourceDomain; private final String resourcePath; public GuideImageLocation(String par1Str, String par2Str) { ...
Java
src/api/java/enchiridion/api/GuideImageLocation.java
Mazdallier/Mariculture
mit
1,860
75
codeparrot/github-code
07877cc48b80ac5bfe5468aeea69e9daf072749b0f6a47ffa71f70391d072415
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>huffman: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" r...
HTML
clean/Linux-x86_64-4.11.1-2.0.7/released/8.11.2/huffman/8.5.0.html
coq-bench/coq-bench.github.io
mit
6,960
166
codeparrot/github-code
b4e41791e8014d5801b131f3c752f31d927e3f369eb1f47263e2dbe891f55968
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; namespace XMovie.Common { public class RelayCommand : ICommand { private readonly Action<object> execute; private readonly Predicate<object> canExecut...
C#
XMovie/Common/RelayCommand.cs
pizza-diagnostics/XMovie
mit
1,030
40
codeparrot/github-code
6a65e3517e462cf96faddf14a4ea94e5f453dcd2f9505569e053845b47395441
<?php /* Unsafe sample input : get the field userData from the variable $_GET via an object Uses a special_chars_filter via filter_var function construction : concatenation with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy...
PHP
Injection/CWE_98/unsafe/CWE_98__object-classicGet__func_FILTER-CLEANING-special_chars_filter__include_file_name-concatenation_simple_quote.php
stivalet/PHP-Vulnerability-test-suite
mit
1,483
69
codeparrot/github-code
40853cd330c850b1049849493e2b1c40e62b607ba1d32a835d8084da1ccf5c8b
<?php /* * This file is part of the Zephir. * * (c) Zephir Team <team@zephir-lang.com> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace Zephir\Expression\Builder; /** * Class AbstractBuilder. */ abstract class Abstrac...
PHP
Library/Expression/Builder/AbstractBuilder.php
dreamsxin/zephir
mit
3,043
164
codeparrot/github-code
01cea6c48785b17056da8bca16f05d299dd0fc1f4648f09ad31230ea8d3a6daa
// From http://mkweb.bcgsc.ca/circos/guide/tables/ var matrix = [ [11975, 5871, 8916, 2868], //black row -- cols are also black, yellow, brown and red [ 1951, 10048, 2060, 6171], //yellow [ 8010, 16145, 8090, 8045], //brown [ 1013, 990, 940, 6907] //red ]; matrix = [ [0,2115,531,1027,10075,285,759,1691,885...
JavaScript
js/chord_diagram.js
cagaray/MusicMeter
mit
6,053
124
codeparrot/github-code
40d77ec8d24c7598126f7e94852b7dfc0e7f67904ccc3210da921feff0001796
using UnityEngine; using System.Collections; public sealed class IK3DInformation : ABaseIKInformation { private IK3D myOwnIK; private float transition; [SerializeField] private Transform elbowTarget = null, handTarget = null; public float Transition { get ...
C#
Benjamin Haddad - Technical Project - Inverse Kinematics/Assets/Project/Scripts/IK 3D/IK3DInformation.cs
HaddadBenjamin/Unity-Inverse-Kinematics
mit
2,452
69
codeparrot/github-code