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
06d154fbd65f93f15119c76eff874eb8a8eb9e7809077d50124f7d8128b84adb
var React = require('react'); var PostStore = require('../PostStore'); var ProgramStore = require('../ProgramStore'); var AudioStore = require('../AudioStore'); var actions = require('../actions'); var PostEpisodeControls = React.createClass({ getInitialState: function() { return { programs: Progr...
JavaScript
frontend/app/components/PostEpisodeControls.js
RadioRevolt/radiorevolt.no
mit
3,480
87
codeparrot/github-code
580bffaab3a138ec7ae37c4d9ceacf4131aadcf323a00c5b605bbd32fa873bec
namespace Santase.Logic.Cards { /// <summary> /// Immutable object to represent game card with suit and type. /// </summary> public class Card : IDeepCloneable<Card> { public Card(CardSuit suit, CardType type) { this.Suit = suit; this.Type = type; } ...
C#
Unit Testing with C#/Unit Testing/Task 2/SentaseGame/Santase/Logic/Cards/Card.cs
Paskow/Telerik-Academy-Homeworks
mit
1,969
74
codeparrot/github-code
26a13312923d4317e4596deb78ee2436f67e5d6b26bc6feac44213660b80e42c
;(function ($, window, document, undefined) { 'use strict'; Foundation.libs.topbar = { name : 'topbar', version: '5.3.0', settings : { index : 0, sticky_class : 'sticky', custom_back_text: true, back_text: 'Back', is_hover: true, scrolltop : true, // jump to top wh...
JavaScript
app/assets/javascripts/foundation/foundation.topbar.js
CloCkWeRX/OpenFarm
mit
13,963
426
codeparrot/github-code
d37cad536276af506aa94faaa90ecd6f9694b97b9df6a404a9837b342676dc30
#################### PDMatDistribution #################### typealias PDMatDistribution Union{InverseWishart, Wishart} function unlist(d::PDMatDistribution, X::AbstractArray) n = dim(d) y = similar(X, Int(n * (n + 1) / 2)) k = 0 for i in 1:n, j in i:n k += 1 y[k] = X[i, j] end y end function reli...
Julia
src/distributions/pdmatdistribution.jl
JuliaPackageMirrors/Mamba.jl
mit
1,179
64
codeparrot/github-code
aa7a87a23110dca8f62fa8a48c5f363194b1b301ee09232faf710ca4982d2533
using System.Collections.Generic; using System; namespace FastColoredTextBoxNS { public class CommandManager { readonly int maxHistoryLength = 200; LimitedStack<UndoableCommand> history; Stack<UndoableCommand> redoStack = new Stack<UndoableCommand>(); public TextSource TextSour...
C#
VCCEditor/FastColoredTextBox/CommandManager.cs
temcocontrols/T3000_CrossPlatform
mit
6,448
244
codeparrot/github-code
53b48ce6736359f56fa1a6a4fdb36cbbc15baf0166050ce94ec187eab7d3da39
<?php namespace Chamilo\Core\Repository\ContentObject\Blog\Form; use Chamilo\Core\Repository\ContentObject\Blog\Storage\DataClass\Blog; use Chamilo\Core\Repository\Form\ContentObjectForm; /** * * @package repository.lib.content_object.blog */ /** * This class represents a form to create or update blogs */ class...
PHP
src/Chamilo/Core/Repository/ContentObject/Blog/Form/BlogForm.php
cosnics/cosnics
mit
2,126
77
codeparrot/github-code
b5c8b35d88858cf4f436680c36ae623c65e6138c16aba2015ea709597d88419e
import sun.security.util.BigInt; import java.io.BufferedReader; import java.io.InputStreamReader; import java.math.BigInteger; public class Solution { public static void main(String[] args) throws Exception{ new Solution().run(); } BigInteger[][] z = new BigInteger[2][110]; String s; Bi...
Java
data/05/24894.java
Bookshelf-of-Nagi/OOP-Lynxy
mit
3,105
111
codeparrot/github-code
adf78c1f74e43b450f777271b830d6fab6355fc499e2f9b45de6226ec5740ab1
"""Tellstick device discovery.""" import socket import threading from datetime import timedelta DISCOVERY_PORT = 30303 DISCOVERY_ADDRESS = '<broadcast>' DISCOVERY_PAYLOAD = b"D" DISCOVERY_TIMEOUT = timedelta(seconds=5) class Tellstick(object): """Base class to discover Tellstick devices.""" def __init__(se...
Python
netdisco/tellstick.py
sfam/netdisco
mit
1,815
69
codeparrot/github-code
f0a34d1c5df181f5b9415484c59abee8889ea4f9e5aedc20b5a883d93f0497f5
import React from 'react'; import PropTypes from 'prop-types'; import { imported } from '../imported'; const local = 'local-value'; /** * A component that renders its props */ // eslint-disable-next-line react/prefer-stateless-function class PropsWriter extends React.Component { render() { return <pre>{JSON....
JavaScript
addons/docs/src/frameworks/react/__testfixtures__/js-class-component/input.js
kadirahq/react-storybook
mit
1,718
56
codeparrot/github-code
088d125e34ee4d6580a2a6940fa0e3d4ff03941bef465239eb11101b8612770b
// Copyright (c) 2017 The Bitcoin developers // Copyright (c) 2017-2019 The Bitcoin Unlimited developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "cashaddrenc.h" #include "cashaddr.h" #include "chainparams.h" #inc...
C++
src/cashaddrenc.cpp
BitcoinUnlimited/BitcoinUnlimited
mit
5,106
198
codeparrot/github-code
2feb935b46f477dcd542fa824039ab662ad26b423a7a036c38b15afc4be804bb
package FacebookPrep; import java.util.HashMap; public class _0146LRUCache { public static void main(String[] args) { LRUCache lRUCache = new LRUCache(2); lRUCache.put(1, 1); // cache is {1=1} lRUCache.put(2, 2); // cache is {1=1, 2=2} System.out.println(lRUCache.get(1)); // return 1 lRUCache.put(3, 3); /...
Java
src/FacebookPrep/_0146LRUCache.java
darshanhs90/Java-Coding
mit
2,245
98
codeparrot/github-code
8ce95da00587cf7ae4574909b6933be9b606686d2ee41c584e8736184262db78
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>CI.Router - CILibraries</title> <link rel="stylesheet" href=""> <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="styles...
HTML
docs/yuidoc/classes/CI.Router.html
codeiain/CodeIainJsLibrary
mit
16,088
559
codeparrot/github-code
0c21e019f67383494ff0936ade9873a1adb22b99eb1ca3cb8aae078b2f3696b7
#include <stdio.h> #define ZIPLEN 10 #define PHONLEN 15 /*struct addrÀàÐͶ¨Òå*/ struct addr { char *name;/*ÐÕÃû*/ char *address;/*µØÖ·*/ char zip[ZIPLEN];/*ÓÊÕþ±àÂë*/ char phone[PHONLEN];/*µç»°ºÅÂë*/ }; main()/*±¾Ö÷º¯ÊýʾÒâÉÏÊöÊäÈëÊä³öº¯ÊýµÄÓ÷¨*/ { struct addr p[100]; int i,j; clrscr(); for(i=0;readaddr(p+i)...
C
DaiJiale-C-Demo/C Studio/C语言实例解析精粹/032/32.c
Encore777/DaiJiale-ProfessionalNotes
mit
1,758
80
codeparrot/github-code
2ff9d79e121310001d31e69e66b457738a013ec0ad2c67c29ed4d04a5ed879d0
var $border_color = "#eee"; var $grid_color = "#eee"; var $default_black = "#666"; var $dark_blue = "#005387"; var $info = "#87CEEB"; var $danger = "#F56B6B"; var $warning = "#F38733"; var $success = "#2ecc71"; var $yellow = "#fdd922"; var $facebook = "#3b5999"; var $twitter = "#00acee"; var $linkedin = "#1a85bd"; var...
JavaScript
client/lib/js/flot/custom/vertical.js
SamirL/Meteor-Aliexpress-Ioffer
mit
1,650
77
codeparrot/github-code
eedf15f4d73838b178679a4d8a00519691d1029eae79b80b5f54badafa9b0721
/* Copyright (c) 2014 Cryptography Research, Inc. * Released under the MIT License. See LICENSE.txt for license information. */ #include "p521.h" typedef struct { uint64x3_t lo, hi, hier; } nonad_t; static __inline__ uint64_t is_zero(uint64_t a) { /* let's hope the compiler isn't clever enough to optimize t...
C
src/p521/arch_x86_64_r12/p521.c
enascimento/ed448goldilocks-code
mit
11,949
491
codeparrot/github-code
e925dcbf85941acdc78b0cca82f26501346c35b8bcee9164edf30165f8faf526
// DO NOT MODIFY THIS FILE // Never try to directly create an instance of this class, or modify its member variables. // This contains implementation details, written by code, and only useful to code #include "../spider.hpp" #include "../../../joueur/src/base_ai.hpp" #include "../../../joueur/src/any.hpp" #include "...
C++
games/spiders/impl/spider_impl.cpp
JacobFischer/Joueur.cpp
mit
3,263
129
codeparrot/github-code
0b14ebdc4abe07ee5ac4ed406976ed7cd039ed6d2bda077acfd06e578a0aee55
package com.gilmour.service; import java.util.ArrayList; import java.util.List; import com.gilmour.model.Activity; import com.gilmour.model.Exercise; import com.gilmour.repository.ExerciseRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import o...
Java
spring-security/src/main/java/com/gilmour/service/ExerciseServiceImpl.java
alicanalbayrak/spring-projects
mit
1,026
45
codeparrot/github-code
bc4b1ae03417412ce8bdf70eb03885b91afe86376010a9068b4844adb9364f61
<?php /** * SpeakerDeck.php * * @package Embera * @author Michael Pratt <yo@michael-pratt.com> * @link http://www.michael-pratt.com/ * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Embera\Provider; use Embera\Url; ...
PHP
upgrade/files/12.1.0-13.0.0.A1/files/plugins/mpratt/embera/src/Embera/Provider/SpeakerDeck.php
unaio/una
mit
1,155
54
codeparrot/github-code
bc8d376c00504e12ca005575e1f541b09a354fbbe7a777da1ad26554ef4aaf1e
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
TypeScript
extensions/css-language-features/client/src/cssClient.ts
hoovercj/vscode
mit
6,766
167
codeparrot/github-code
9dfe4b21dcfe1b9555e7da60172075323fcb45ea7c3214b27c2a8738caf68107
package com.zvidia.pomelo.websocket; import com.zvidia.pomelo.exception.PomeloException; import com.zvidia.pomelo.protobuf.ProtoBuf; import com.zvidia.pomelo.protocol.PomeloMessage; import com.zvidia.pomelo.protocol.PomeloPackage; import org.java_websocket.client.WebSocketClient; import org.java_websocket.drafts.Draft...
Java
src/main/java/com/zvidia/pomelo/websocket/PomeloClient.java
sreeusha/javarepo
mit
13,167
373
codeparrot/github-code
923f1621dd1694b6d52725dd894b3f03817cf361e5488fb7bf77880934af006c
/* __ _____ _____ _____ __| | __| | | | JSON for Modern C++ (test suite) | | |__ | | | | | | version 3.10.5 |_____|_____|_____|_|___| https://github.com/nlohmann/json Licensed under the MIT License <http://opensource.org/licenses/MIT>. SPDX-License-Identifier: MIT Copyright (c) 2013-2022 Niels L...
C++
test/src/unit-noexcept.cpp
nlohmann/json
mit
4,427
104
codeparrot/github-code
3e07e40b928040b51337df12e3ee2eb3f7cdfce3531f5b98a9c5dfa654b30d59
package nl.cwi.reo.semantics.predicates; import java.util.HashSet; import java.util.Map; import java.util.Set; import org.checkerframework.checker.nullness.qual.Nullable; import nl.cwi.reo.interpret.Scope; import nl.cwi.reo.interpret.ports.Port; import nl.cwi.reo.interpret.typetags.TypeTag; import nl.cwi.reo.interpr...
Java
reo-semantics/src/main/java/nl/cwi/reo/semantics/predicates/NonNullValue.java
kasperdokter/Reo
mit
1,491
83
codeparrot/github-code
dbe82360d3502b0e0524ff69191101409413e56463144da734673ecba5ba1fc6
<?php /** * This file is a part of Woketo package. * * (c) Nekland <dev@nekland.fr> * * For the full license, take a look to the LICENSE file * on the root directory of this project */ namespace Nekland\Woketo\Rfc6455; use Nekland\Woketo\Utils\BitManipulation; /** * Class FrameFactory * * This class genera...
PHP
src/Rfc6455/FrameFactory.php
Nekland/Woketo
mit
2,151
92
codeparrot/github-code
94ff1100decd580877da133d66632bcb043051151a00c3f1fde5b7148a6ff4f7
# -*- coding: utf-8 -*- import random import itertools from .misc.lolcat import lolcat TOPIC_SERVICE_DISCOVERY = 0x1 << 0 TOPIC_AUTOMATIC_DECTECTION = 0x1 << 1 TOPIC_MONITORING = 0x1 << 2 TOPIC_METROLOGY = 0x1 << 3 TOPIC_CONFIGURATION_AUTOMATION = 0x1 << 4 TOPIC_SYSTEM_COMPLIANCE = 0x1 << 5 TOPIC_GENERIC = 0x1 << 6 ...
Python
opsbro/topic.py
naparuba/opsbro
mit
4,530
138
codeparrot/github-code
fb2932c1be33b868fd6d39de31af3b11e97f874227ef60d8e95adf1ca09910e7
//rander类 (function(square){ class rander { constructor(ctx,map,robot) { this.frame = this.frame.bind(this); this.lastTime = 0; this.ctx = ctx; this.randering = false; this.map = map; this.robot = robot; //默认间隔间隔应当大于30否则将会导致数字遮住方框 this.space = 30; } setSpace(size){ this.space = size; ...
JavaScript
task34/icepro/js/rander.js
ifestudy/ife-task
mit
2,713
111
codeparrot/github-code
c4631ac57e44100998517d3be6c48e61882e47f6c7a73fedb6491be5abba4aeb
import { SEMANTIC_POSITION, PRIMITIVE_TRISTRIP } from '../../graphics/constants.js'; import { Shader } from '../../graphics/shader.js'; import { shaderChunks } from '../../graphics/program-lib/chunks/chunks.js'; import { BLEND_NORMAL } from '../../scene/constants.js'; import { BasicMaterial } from '../../scen...
JavaScript
src/scene/immediate/immediate.js
MicroWorldwide/PlayCanvas
mit
9,560
278
codeparrot/github-code
02fa5830538f8c7950ea1834bc02d0d03fbc4ef38a5d713cb76e97eb60b8183c
// Copyright (c) 2007-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2011-2017 The Litecoin Core developers // Copyright (c) 2013-2018 The Goldcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource....
C
src/validationinterface.h
goldcoin/Goldcoin-GLD
mit
4,552
90
codeparrot/github-code
c60bdf29d4c2169a7a134376891198530afe2b3ee0e0e49d9796bb302be756a6
{-# LANGUAGE CPP #-} {-# LANGUAGE ForeignFunctionInterface #-} {-# LANGUAGE JavaScriptFFI #-} {-# OPTIONS_HADDOCK hide #-} module JavaScript.Blob ( Blob , readBlob , isBlob ) where import Control.Exception (mask_) import Data.ByteString (ByteString) #ifdef ghcjs_HOST_OS import GHCJS.Foreign (bufferBy...
Haskell
src/JavaScript/Blob.hs
mstksg/ghcjs-websockets
mit
1,311
48
codeparrot/github-code
9bd1af5ff1ba2a7ea675b394f89db040e3f2815aa9c9efed777776a4fd0247d7
// // DHMathCGVector.h // Euclid // // Created by David Hallgren on 2014-06-24. // Copyright (c) 2015, Kasper Peulen & David Hallgren. All rights reserved. // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // #ifndef Euclid_DHMathCGVector_h #define Euclid_DHMathCGVecto...
C
Euclid/DHMathCGVector.h
hsw625728/euclid
mit
6,563
238
codeparrot/github-code
0bc63c4e8a727bc208506ef7243dba3aaf230d3890aa05d41b776ca239723e1e
require 'ffi' class Bio::FinishM::VelvetCBinding extend FFI::Library include Bio::FinishM::Logging ffi_lib File.join(File.dirname(__FILE__),'..','external','libfinishm.so.1.0') ############## ProbeNodeFinding ################################## # IDnum* extract_best_probe_reads(Graph* graph, IDnum* probeRea...
Ruby
lib/assembly/velvet_c_binding.rb
timbalam/finishm
mit
1,938
55
codeparrot/github-code
4a1320affeabe707978c356cc34a79b6363f2cf8da53f5b9673e84e25036fa42
package cheatsheet.result_analysis.number_to_name_converter; /** * Created by erick on 26.02.17. */ public class CompositeBigProcessor extends AbstractProcessor implements ScalesArray { private HundredProcessor hundredProcessor = new HundredProcessor(); private AbstractProcessor lowProcessor; private in...
Java
src/main/java/cheatsheet/result_analysis/number_to_name_converter/CompositeBigProcessor.java
GLTeamCommon/Initial
mit
1,821
71
codeparrot/github-code
f573fd0b2888207b4c8ddb2f23332b50c43e94832e5b917402fc35f4640ff63f
/* jQWidgets v4.5.4 (2017-June) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export default class JqxScrollView extends React.Component { componentDidMount() { let options = this.manageAttributes(); this.cre...
JavaScript
assets/jqwidgets/jqwidgets-react/react_jqxscrollview.js
juannelisalde/holter
mit
5,933
172
codeparrot/github-code
b91c65ee719ffab69e967ee03ecb0faec17fb22ed359e32915c89bb7d6a8ce41
package modules.computation import scala.collection.mutable /** * Represents a cluster of pixels. * * This is mostly a utility class to manipulate pixels. * * @param pixels Pixels composing the cluster. */ case class Cluster(var pixels: List[Pixel]) { /** Shortcut for cluster size */ var size: Int = ...
Scala
backend/app/modules/computation/Cluster.scala
ArchangelX360/EnvironmentalEventsDetector
mit
2,174
77
codeparrot/github-code
41243d084d07e198c00b7ce63c5da3053a3eefcc1fbd9eb7408dc405f1f8998f
var TreeBase = require('../treebase/treebase'); var nodeId = 0; // Identify if a value is a number that is whole // (equally divisible by 1) and positive var isWholePositiveNumber = function (value) { return (! isNaN(value) && // Isn't a NaN typeof value === 'number' && // Is a number value >= 0 &...
JavaScript
rbtreelist/rbtreelist_core.js
akagomez/can-binarytree
mit
28,613
1,048
codeparrot/github-code
3802f7c4bafff50ff06dcbced5f25164a52b03ea15f37dc34d56b0b1655fe798
<?php /* Copyright (c) 2009-2012 F3::Factory/Bong Cosca, All rights reserved. This file is part of the Fat-Free Framework (http://fatfree.sf.net). THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF...
PHP
lib/magic.php
Pygocentrus/Spitdata
mit
2,653
141
codeparrot/github-code
851c187147275ec90c4a21c91f2b202594bf6013dac23dee069f160554ffa8d6
using System; using System.IO; namespace NBitcoin.BouncyCastle.Asn1 { internal abstract class Asn1Object : Asn1Encodable { /// <summary>Create a base ASN.1 object from a byte array.</summary> /// <param name="data">The byte array to parse.</param> /// <returns>The base ASN.1 object represented by t...
C#
NBitcoin/BouncyCastle/asn1/Asn1Object.cs
lontivero/NBitcoin
mit
1,897
69
codeparrot/github-code
4aa77ccd03bd842f508383daa91e8a247dfd075e390eb982bc10d4806f502800
// Copyright (c) 2009-2012 Bitcoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" // for pwalletMain #include "bitcoinrpc.h" #include "ui_interface.h" #include "base58.h" #include <boost/lexica...
C++
src/rpcdump.cpp
ottolevin/testcoin
mit
2,854
97
codeparrot/github-code
2200633f4be00421f39097f7b4a9c65d26816d5206507a1dc070532d4f0506ee
<?php /** * @package CME * @copyright 2014-2016 silverorange * @license http://www.opensource.org/licenses/mit-license.html MIT License */ class CMEOptionImageUpload extends InquisitionOptionImageUpload { // {{{ protected properties /** * @var CMEOptionHelper */ protected $helper; // }}} // init ph...
PHP
CME/admin/components/Option/ImageUpload.php
silverorange/Cme
mit
1,088
68
codeparrot/github-code
0d2073e7990676651ef370bc9c394fe6a80bf5692cf008dc8f188a364a4d922e
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format * @emails oncall+relay */ // flowlint ambiguous-object-type:error 'use strict'; const {REQUEST...
JavaScript
packages/relay-runtime/util/getOperation.js
atxwebs/relay
mit
878
41
codeparrot/github-code
70357efa384db2b9c2b3903d7abdee12a6735b085d08fa6d443a9494b1dd6581
#include "spritepack.h" #include "matrix.h" #include "shader.h" #include "array.h" #include <lua.h> #include <lauxlib.h> #include <stdint.h> #include <string.h> #define TAG_ID 1 #define TAG_COLOR 2 #define TAG_ADDITIVE 4 #define TAG_MATRIX 8 #define TAG_TOUCH 16 struct import_alloc { lua_State *L; char * buffer; ...
C
lualib-src/ejoy2d/spritepack.c
wyaocn/skynet-ejoy2d
mit
15,428
687
codeparrot/github-code
91400fc2343dba734c62e6627019ac6f9dcc9dce0b94a914c533a64d177976df
// Copyright (c) 2012-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <random.h> #include <scheduler.h> #include <util/time.h> #include <boost/test/unit_test.hpp> #include <functional>...
C++
src/test/scheduler_tests.cpp
jambolo/bitcoin
mit
8,378
214
codeparrot/github-code
9c4c32acef41db04aa302356bca5558bdae7e3ff458de4cae4d7d1f39ae67ebf
#include "gauss_seidel.h" template <int dim> GaussSeidel<dim>::GaussSeidel (const dealii::ParameterHandler &prm, std::shared_ptr<FundamentalData<dim>> &dat_ptr) : MGBase<dim> (prm, dat_ptr) {} template <int dim> GaussSeidel<dim>::~GaussSeidel () {} template <int dim> void GaussSeidel<dim>::NonthermalSolv...
C++
src/iteration/gauss_seidel.cc
weixiong-zheng-berkeley/BART
mit
1,575
49
codeparrot/github-code
5d018ec0c0028479169bccc2ba10b87e986ad90781e5e2b3bc771e3171be3fbd
using System; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; namespace Cuemon.Extensions.DependencyInjection { /// <summary> /// Extension methods for the <see cref="IServiceCollection"/> interface. /// </summary> public static class ServiceC...
C#
src/Cuemon.Extensions.DependencyInjection/ServiceCollectionExtensions.cs
gimlichael/CuemonCore
mit
23,133
330
codeparrot/github-code
d95f5c3fb9853087e3ab0a765b4d98f28a32592fdbf675a0de0d2c407386600c
require 'acts_as_ordered_tree/version' require 'active_support/lazy_load_hooks' module ActsAsOrderedTree autoload :Tree, 'acts_as_ordered_tree/tree' # @!attribute [r] ordered_tree # @return [ActsAsOrderedTree::Tree] ordered tree object # == Usage # class Category < ActiveRecord::Base # acts_as_or...
Ruby
lib/acts_as_ordered_tree.rb
ebakan/acts_as_ordered_tree
mit
1,282
41
codeparrot/github-code
051bc2f9f4aef59d95d6e8fc54d685e30caf95b6365df025fd9607a125e3bd20
var Shuffle = require('./Shuffle'); var GetValue = require('../object/GetValue'); var BuildChunk = function (a, b, qty) { var out = []; for (var aIndex = 0; aIndex < a.length; aIndex++) { for (var bIndex = 0; bIndex < b.length; bIndex++) { for (var i = 0; i < qty; i++) ...
JavaScript
v3/src/utils/array/Range.js
clark-stevenson/phaser
mit
2,615
117
codeparrot/github-code
bf3fc07273d4a29731174dbdda5a0cecd368d5ed29f3357a10bc642b9e93c69e
#include <cstdio> #include <cstdlib> #include <cmath> #include <algorithm> #include <iostream> #include <cstring> #include <vector> #include <set> #include <map> #include <cassert> #include <ctime> #include <string> using namespace std; #ifdef _WIN32 #define LLD "%I64d" #else #define LLD "%lld" #endif typedef long d...
C++
data/07/u6352_518_E_9991442.cpp
Bookshelf-of-Nagi/OOP-Lynxy
mit
2,088
117
codeparrot/github-code
7d42c81f2b8d24357751218f1e3f6a7ee536e6087c72073f5632f1526db28baa
package simpledb.index.btree; import simpledb.file.Block; import simpledb.tx.Transaction; import simpledb.record.*; import simpledb.query.Constant; /** * An object that holds the contents of a B-tree leaf block. * @author Edward Sciore */ public class BTreeLeaf { private TableInfo ti; private Tr...
Java
src/simpledb/index/btree/BTreeLeaf.java
sathley/micro-db
mit
5,209
150
codeparrot/github-code
ab1bccf394742202b1f5cba7ea8dd540a242d0b0d244801b74e9fd0f30612818
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Qt 4.8: i...
HTML
QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/tools-inputpanel-inputpanel-pro.html
stephaneAG/PengPod700
mit
10,057
225
codeparrot/github-code
f6685ad3c3a9c8cf33ced10c43f235ec56cc7218971a209b480b8ef1862d31c8
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Fab Academy 2017</title> <...
HTML
v1/finalproject.html
FabAcademyPortugal2017/FabAcademyPortugal2017.github.io
mit
12,478
306
codeparrot/github-code
b6b79065dfb770279595cf6eb1321e28838882a8516a7ba0977321f98d7176b1
using System; using System.Collections.Generic; using System.Text; using TgcViewer.Utils.TgcSceneLoader; using Microsoft.DirectX; using TgcViewer.Utils.TgcGeometry; using System.Drawing; namespace Examples.Optimizacion.Octree { /// <summary> /// Herramienta para construir un Octree /// </summary> class...
C#
SRC/Renderman/Octree/OctreeBuilder.cs
nicolasazrak/AlumnoEjemplos
mit
16,888
496
codeparrot/github-code
6572e1c41a974464c30da2931c69b79ce63fe5a2d179057a08686b6dedc4f542
(function ($) { // Monkey patch jQuery 1.3.1+ css() method to support CSS 'transform' // property uniformly across Webkit/Safari/Chrome and Firefox 3.5. // 2009-2010 Zachary Johnson www.zachstronaut.com // Updated 2010.11.06 // function getTransformProperty(element) { // Try tra...
JavaScript
src/Reurbano/CoreBundle/Resources/views/themes/reurbano/Backend/js/quicksand/jquery-css-transform.js
fernanDOTdo/reurbano
mit
3,444
91
codeparrot/github-code
5a2c48eaad0295ef3116f877d5f8e68cecaf2bb92aae9809fb07d3bdc538c5a9
// https://developers.google.com/maps/documentation/javascript/examples/ function initMap() { var customMapType = new google.maps.StyledMapType([ { stylers: [ {'gamma': 1}, {'weight': 1}, {'visibility': 'simplified'}, {'hue': '#8dab68'} ] }, { elementType: 'labels', stylers...
JavaScript
webapp/webapp/static/Unify-v1.9.4/HTML/One-Pages/Spa/assets/js/plugins/gmaps-ini-rtl.js
eb-intl/eb-intl.com
mit
1,229
55
codeparrot/github-code
54de7134f44c486c27504319ad0bed8e39284eca293b2851ddc0ba19c746ce90
package com.visenze.visearch.internal; import com.google.common.base.Preconditions; import com.google.common.collect.HashMultimap; import com.google.common.collect.Multimap; import com.visenze.visearch.internal.http.ViSearchHttpClient; import org.apache.http.auth.UsernamePasswordCredentials; import java.util.Map; imp...
Java
src/main/java/com/visenze/visearch/internal/TrackOperationsImpl.java
bo-git/visearch-sdk-java
mit
2,020
59
codeparrot/github-code
031e41cd9c704ac86a90ad72e58387e46d1ad2473e922a6f2510df6c2030bbc2
// // FLGridViewController.h // FishLamp-iOS-Lib // // Created by Mike Fullerton on 12/17/11. // Copyright (c) 2013 GreenTongue Software LLC, Mike Fullerton. // The FishLamp Framework is released under the MIT License: http://fishlamp.com/license // #import "FLScrollViewController.h" #import "FLGridCell.h" #imp...
C
Frameworks/iOS/Classes/ViewControllers/FLGridViewController/FLGridViewController.h
fishlamp-released/FishLamp2
mit
3,824
124
codeparrot/github-code
1a69bdfd65f207fef6f93d6b41b5360dae1c53846df1a72ddf4ee9e39a6d0825
<?php /** * Created by PhpStorm. * User: murilo * Date: 03/11/16 * Time: 13:18 */ namespace Ewerton\Cnab\Cnab240\Cecred; trait DadosBancarios { protected $convenio; protected $contaDv; protected $conta; protected $agenciaDv; protected $agencia; /** * @return mixed */ public ...
PHP
src/Ewerton/Cnab/Cnab240/Cecred/DadosBancarios.php
murilosandiego/cnab
mit
1,797
115
codeparrot/github-code
15bb09e0d200b922afede3e5b9cde690a691b839ee028171eb4b127521e617df
import { Objects } from '@ephox/boulder'; import { Css, EventArgs } from '@ephox/sugar'; import * as AlloyEvents from '../../api/events/AlloyEvents'; import * as NativeEvents from '../../api/events/NativeEvents'; import { DomDefinitionDetail } from '../../dom/DomDefinition'; import * as DomModification from '../../dom...
TypeScript
modules/alloy/src/main/ts/ephox/alloy/behaviour/sliding/ActiveSliding.ts
tinymce/tinymce
mit
1,826
43
codeparrot/github-code
660099fbd0933f3c1746f16aebf2c0d7f9097d6b136bb5f957685da2f2695af7
package eureka import ( "io/ioutil" "strconv" "text/template" "github.com/ArthurHlt/go-eureka-client/eureka" "github.com/containous/traefik/log" "github.com/containous/traefik/provider" "github.com/containous/traefik/provider/label" "github.com/containous/traefik/types" ) // Build the configuration from Prov...
GO
provider/eureka/config.go
timoreimann/traefik
mit
1,727
70
codeparrot/github-code
41ef041546e379d9d05130f7460ab6223e8bccafdf053332d54e94efe06c1fe1
package algebra.laws import algebra._ import algebra.lattice._ import cats.kernel.laws._ import org.scalacheck.{Arbitrary, Prop} import org.scalacheck.Prop._ object LatticeLaws { def apply[A: Eq: Arbitrary] = new LatticeLaws[A] { def Equ = Eq[A] def Arb = implicitly[Arbitrary[A]] } } trait LatticeLaws[...
Scala
laws/src/main/scala/algebra/laws/LatticeLaws.scala
tixxit/algebra
mit
3,725
116
codeparrot/github-code
64ec4acc22727fcde16347d5c96981fbea716002489617b49de367c320a01642
use libc::{self, c_int}; #[macro_use] pub mod dlsym; #[cfg(any(target_os = "linux", target_os = "android"))] mod epoll; #[cfg(any(target_os = "linux", target_os = "android"))] pub use self::epoll::{Events, Selector}; #[cfg(any(target_os = "bitrig", target_os = "dragonfly", target_os = "freebsd", target_os...
Rust
src/sys/unix/mod.rs
mneumann/mio
mit
2,244
91
codeparrot/github-code
ea65a2f7290df3f9add01b98ffdb437f34bce694b3123f22126d1d5e5a7e1a86
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class M_Range_Kriteria extends CI_Model { public function create($id,$kriteria,$nilai,$deskripsi){ return $this->db->insert( 'range_kriteria', array( 'ID_RANGE_KRITERIA' => $id, 'ID_KRITERIA' => $kriteria, 'NILAI_RANGE_KRI...
PHP
application/models/M_Range_kriteria.php
yaqien378/penilaian_restoran
mit
1,694
57
codeparrot/github-code
0a8db658e4a9f2432a71fe62b8d99784b97ce3ce3f2a87834f8450c4c162276f
package thin.blog.survey; import java.util.ArrayList; /** * Created by jmprathab on 17/11/15. */ public class Question { int id; String question; ArrayList<Option> option; public int getId() { return id; } public void setId(int id) { this.id = id; } public String g...
Java
app/src/main/java/thin/blog/survey/Question.java
jmprathab/Survey
mit
620
37
codeparrot/github-code
2b3f25a9d35969be7c230b72eb7ed61e5c8acc4fbe9b345e63efcb6db766b209
/** * @author jbouny / https://github.com/fft-ocean */ THREE.ShaderChunk["screenplane_pars_vertex"] = [ 'const float infinite = 150000.0;', 'const float screenScale = 1.2;', 'const vec3 groundNormal = vec3( 0.0, 1.0, 0.0 );', 'const float groundHeight = 0.0;', 'varying vec3 vCamPosition;', 'vec...
JavaScript
js/shaders/ScreenSpaceShader.js
Iced-Tea/fft-ocean
mit
3,035
96
codeparrot/github-code
5ff64f43b2c974c2b39c774fb9b0054a7b75c40d6dcec90a2eadf84570cdb2de
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2006-2010 (ita) """ Support for the KDE4 libraries and msgfmt """ import os, sys, re from waflib import Options, TaskGen, Task, Utils from waflib.TaskGen import feature, after_method @feature('msgfmt') def apply_msgfmt(self): """ Process all languages to creat...
Python
support/waf/waflib/Tools/kde4.py
tommo/gii
mit
2,732
91
codeparrot/github-code
2c63f0a10bc713f2d5667d7041ff0e6007070764494e02a8f041c73a8785e5f0
/* globals module */ 'use strict'; module.exports = function ({ data }) { return { getLatestMessages(req, res) { let username = req.params.username; data.getUserByUsername(username) .then(user => { if (user === null || typeof user === 'undefin...
JavaScript
controllers/messages-controller.js
Team-NullReference/Vozilo.bg
mit
5,998
167
codeparrot/github-code
87a7d7e076208e49f1e0bf3dd3cea39f5ce7541cda9b9256a5e8b83cebc97f10
#ifndef UIFRIENDS_HPP #define UIFRIENDS_HPP #include "UIListCommonDefine.hpp" namespace DuiLib { struct FriendListItemInfo { bool folder; bool empty; tString id; tString logo; tString nick_name; tString description; }; class CFriendsUI : public CListUI { public: enum {SCROLL_TIMERID = 10}; CFriendsUI(CPain...
C++
duilib/QQDemo/UIFriends.hpp
Gones/duilib
mit
1,115
68
codeparrot/github-code
3aabca490317767288c5636fee0934a3fd01a32fef0f7c4196c636241148c041
<h1>Create a Depth Buffer</h1> <p><link href="../css/lg_stylesheet.css" rel="stylesheet"></link></p> <p>Code file for this section is <code>06-init_depth_buffer.cpp</code></p> <p>Depth buffers are optional, but you will need a depth buffer to render a 3D cube in the final sample. And you need only one for rendering ...
HTML
thirdparty/vulkan/Documentation/Tutorial/html/06-init_depth_buffer.html
MasonLeeBack/PolyEngine
mit
5,976
154
codeparrot/github-code
8b6f7b842d18b4213bbda47db835a832f432e4bf533ff5f514ac1e0eb6d57ab7
package com.hp.autonomy.frontend.find.core.beanconfiguration; import com.hp.autonomy.frontend.configuration.ConfigService; import com.hp.autonomy.frontend.find.core.configuration.FindConfig; import com.hp.autonomy.frontend.find.core.configuration.export.PowerPointConfig; import com.hp.autonomy.frontend.reports.powerpo...
Java
webapp/core/src/main/java/com/hp/autonomy/frontend/find/core/beanconfiguration/ExportConfiguration.java
hpe-idol/find
mit
3,012
60
codeparrot/github-code
3e3a4d45954b5524f98137905402970dc1e71e71edbf540a7473f651b3a98182
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors // MIT License. See license.txt wn.provide("wn.views.calendar"); wn.provide("wn.views.calendars"); wn.views.CalendarFactory = wn.views.Factory.extend({ make: function(route) { var me = this; wn.model.with_doctype(route[1], function() { v...
JavaScript
public/js/wn/views/calendar.js
saurabh6790/ON-RISLIB
mit
8,323
283
codeparrot/github-code
e9de3ea6d81db9f17dbe505cc1a3666ff61d0cdf099e08277d47b0ff58c1a066
import { Directive, ElementRef, Input } from '@angular/core'; import { DisableScroll, GestureController, GestureDelegate } from '../../gestures/gesture-controller'; import { isTrueProperty } from '../../util/util'; /** * @private */ @Directive({ selector: 'ion-backdrop', host: { 'role': 'presentation', ...
TypeScript
src/components/backdrop/backdrop.ts
jarrodkoch/ionic
mit
936
42
codeparrot/github-code
00bdade207adc7a83f2d4ee0cf4ad7bd6c74e914aef5effa385bc4727aa95066
# encoding=utf-8 import sqlalchemy from sqlalchemy.engine import create_engine from sqlalchemy.pool import SingletonThreadPool from terroroftinytown.tracker.model import Session, Base class Database(object): def __init__(self, path, delete_everything=False): if path.startswith('sqlite:'): sel...
Python
terroroftinytown/tracker/database.py
hugovk/terroroftinytown
mit
992
32
codeparrot/github-code
0514ce44234eb460c1c9fe9bac98204e4695eca8c94b13a2676fc0adee833091
<?php namespace App\Classes; class LocationHelper { public static function getTypes() { return [ 'Shop' => 'Shop', 'Tavern/Inn' => 'Tavern/Inn', 'Castle/Keep' => 'Castle/Keep', 'Temple' => 'Temple', 'Building (Other)' => 'Building (Other)', 'Biome (Other)' => 'Biome (Other)', 'Village/Town/Ci...
PHP
app/Classes/LocationHelper.php
Arcanaio/Arcanaio
mit
1,553
69
codeparrot/github-code
9540bd6ce9862b65d8cf3f551b9933444ab1423e3edbc4b30a3bdf7f412ee8fb
<?php /** * @package Grav\Console\Cli * * @copyright Copyright (c) 2015 - 2021 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Console\Cli; use DateTime; use Grav\Common\Grav; use Grav\Common\Helpers\LogViewer; use Grav\Console\GravCommand; ...
PHP
system/src/Grav/Console/Cli/LogViewerCommand.php
stell/grav
mit
2,714
97
codeparrot/github-code
a6bd25d9cbb58642b2e63c6a99e795b5e30a41f444b196f0448b61f027962342
package com.thebluealliance.spectrum; import android.content.Context; import android.content.SharedPreferences; import android.content.res.TypedArray; import android.graphics.Color; import android.os.Build; import android.support.annotation.ArrayRes; import android.support.annotation.ColorInt; import android.support.v...
Java
spectrum/src/main/java/com/thebluealliance/spectrum/SpectrumPreferenceCompat.java
phil-lopreiato/the-blue-alliance-android
mit
9,259
244
codeparrot/github-code
af6a730edff84f0f0f417c5f16bd63620d90775709b0a7f055f425c48f3c09e1
import Vue from 'vue' import anime from 'animejs' Vue.transition('fade', { enterClass: 'fadeIn', leaveClass: 'fadeOut' }) Vue.transition('fade-horizontal-rtl', { enterClass: 'fadeInRight', leaveClass: 'fadeOutLeft' }) Vue.transition('fade-horizontal-ltr', { enterClass: 'fadeInLeft', leaveClass: 'fadeOutR...
JavaScript
src/transitions.js
JeOam/vue-admin
mit
2,852
141
codeparrot/github-code
0deb6d510baae7fece453f07b755c15b30a1b874223b1f550e0c020e05adef7c
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S11.8.3_A1; * @section: 11.8.3, 7.2, 7.3; * @assertion: White Space and Line Terminator between RelationalExpression and "<=" or between "<=" and ShiftExpression are al...
JavaScript
Storm.Test/SputnikV1/11_Expressions/11.8_Relational_Operators/11.8.3_The_Less_than_or_equal_Operator/S11.8.3_A1.js
Diullei/Storm
mit
1,645
60
codeparrot/github-code
8647f0bd33b99f11083e00eb2c48a50001c2dfcc18de20716927411f6c76540f
package de.thk.ct.endpoint.pi4j.osgi.resources.gpio; import com.pi4j.io.gpio.GpioController; import com.pi4j.io.gpio.GpioPinDigitalInput; import com.pi4j.io.gpio.Pin; import com.pi4j.io.gpio.PinPullResistance; import de.thk.ct.endpoint.device.osgi.resources.SensorType; import de.thk.ct.endpoint.pi4j.osgi.reso...
Java
ct-endpoint-parent/ct-endpoint-pi4j-osgi/src/main/java/de/thk/ct/endpoint/pi4j/osgi/resources/gpio/TactileSwitchResource.java
mvantroba/resource-directory-workbench
mit
1,324
43
codeparrot/github-code
d0ad07d8ef30b1271daf359f8e64d3ad89de6069687c4e929ccc1c3bd28e8267
using System.Windows; using System.Windows.Input; using Spect.Net.VsPackage.Vsx; namespace Spect.Net.VsPackage.ToolWindows.Watch { /// <summary> /// Interaction logic for WatchToolWindowControl.xaml /// </summary> public partial class WatchToolWindowControl: ISupportsMvvm<WatchToolWindowViewModel> ...
C#
VsIntegration/Spect.Net.VsPackage/ToolWindows/Watch/WatchToolWindowControl.xaml.cs
Dotneteer/spectnetide
mit
2,915
89
codeparrot/github-code
dd5c42b6f1fa51ef3486e21b7c39f91567db6bb8261670c8142ae289ea4ab557
/* * This file is part of the Kreta package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import config from './webpack.config.babe...
JavaScript
CompositeUi/config/webpackDevServer.config.js
kreta/kreta
mit
1,322
48
codeparrot/github-code
4b0c6d97b66cffeeb47d2d1303443838cd0f8bfaaffa3151f04d4caac6e3df66
/* Copyright(c) Microsoft Open Technologies, Inc. All rights reserved. The MIT License(MIT) 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 witho...
C#
App2App WebServer/WebServerApp/WebServer/App.xaml.cs
snobu/samples
mit
5,401
134
codeparrot/github-code
4408d6c69a1c487ff2ba2da71b0d3d8c06d22fe2dff2f58efc107b771c9f8c6e
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using KBVault.Dal.Entities; namespace KBVault.Dal.Repository { public class CategoryRepository : ICategoryRepository { public int Add(Category category) { using (var db = new KbVaultContext(...
C#
KBVault.Dal/Repository/CategoryRepository.cs
2b-proje-evi/kbvault
mit
3,656
124
codeparrot/github-code
10d162d50bc2404c621337c90c3f28af0346fb5f5071db8d16666114109b625a
package example; //-*- mode:java; encoding:utf-8 -*- // vim:set fileencoding=utf-8: //@homepage@ import java.awt.*; import java.beans.*; import javax.swing.*; public final class MainPanel extends JPanel { private MainPanel() { super(new BorderLayout()); try { Thread.sleep(3000); //dummy...
Java
ProgressSplashScreen/src/java/example/MainPanel.java
mhcrnl/java-swing-tips
mit
3,159
91
codeparrot/github-code
614a249d2de6f5a2213d800ec979c04a28484acf4b3fb7065ede4b87b582e4c8
namespace ShootR { public class GameConfigurationManager { public GameConfigurationManager() { bulletConfig = new BulletConfiguration(); gameConfig = new GameConfiguration(); shipConfig = new ShipConfiguration(); mapConfig = new MapConfiguration()...
C#
ShootR/ShootR/Server/Configuration/GameConfigurationManager.cs
NTaylorMullen/ShootR
mit
1,565
44
codeparrot/github-code
f26e1240a6ac18f5c13dedf44d1e16155211b3ffa664589d267b7a9c70c3333e
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Qt 4.8: m...
HTML
QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/desktop-screenshot-main-cpp.html
stephaneAG/PengPod700
mit
11,986
254
codeparrot/github-code
6203b7fb387faa50d3fae37fdf8a5ec801f7893d0e4e89fafb04342a580c3253
var setScript = [ //"../../../assets/vendor/datatables/media/js/jquery.dataTables.min.js", // "../../../assets/vendor/datatables/media/js/dataTables.bootstrap.js", "../../../assets/vendor/bootstrap-filestyle/src/bootstrap-filestyle.js", "../../../assets/vendor/bootstrap-wysiwyg/bootstrap-wysiwyg.js", "../../../ass...
JavaScript
js/assets/js/register/regis.js
iceicy/NEMS
mit
1,919
67
codeparrot/github-code
4dccfcf44fbb6f67332e531ee8357b63491c23b44e31ba707c8d4b89d3b89d58
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>LCOV - result.info - c++/7.1.0/ostream</title> <link rel="stylesheet" type="text/css" href="../../gcov.css"> </head> <body> <table width="100%" b...
HTML
RayChew/Ex7/result/c++/7.1.0/ostream.gcov.html
FirstSanny/appfs
mit
60,636
745
codeparrot/github-code
0aff778fae4d5e22a238c155962507acda9d9c94590a4517a03e7fddfdf3ea90
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Threading.Tasks; using Azure.Storage.Queues; using Azure.Storage.Queues.Models; using Microsoft.Azure.WebJobs.Extensions.Storage.Common; using Microsoft.Azure.We...
C#
sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/src/Triggers/QueueTriggerBinding.cs
AsrOneSdk/azure-sdk-for-net
mit
8,819
191
codeparrot/github-code
8da9d8f4e83dab9cfe1dfece616283172d0d531a2e6a2053fb61fc71b9079208
#!/usr/bin/env bash token_file="token" # file to store authorization token, # so that not needed to be authorized every time app_name="LinuxScriptDBox" # your app name app_key="yy054hn27csq94s" # your app key app_secret="cahra7l8m2z3cfs" # your app secret curl_ver=$(which curl) auth_code="" ## your auth code access...
Shell
resource/dropbox.sh
SHiL0NG/web
mit
3,324
146
codeparrot/github-code
14cf349e8a0a065d1b8db97e9b8d606b66d54c7b5d53022c6d92f814840fc8ad
package main import ( "log" ) func main() { tests := [][]int32{{1, 2, 3, 4, 5}} for _, test := range tests { log.Printf("LeftRotate(%v) == %v\n", test, LeftRotate(test, 2)) } } // left-rotate n, x times func LeftRotate(n []int32, x int32) []int32 { if len(n) <= 1 { return n } var j int32 for j = ...
GO
ArrayLeftRot.go
astdb/TB_ShortProbs
mit
711
54
codeparrot/github-code
309cbf35d498d3ec733313f1738392703c05b134c95606f73d4c4faa366806ad
/* Copyright (C) <2009-2011> <Thorben Linneweber, Jitter Physics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any...
C#
YellowSignUnity/Assets/ThirdParty/Networking/TrueSync/Physics/Jitter/Collision/Shapes/Multishape.cs
Xaer033/YellowSign
mit
5,304
148
codeparrot/github-code
b49296f332d45fbe562d2d2cd2d873729c30cdd2f7eb0589c26a82f856fe7069
/*file chiron src/base/dict.js */ /*preamble Copyright (c) 2002-2008 Kris Kowal <http://cixar.com/~kris.kowal> MIT License The license terms are stated in full in <license.rst> and at the end of all source files. */ "use iojs"; var boot = require('./boot'); var type = require('./type'); var ope...
JavaScript
lib/chiron/dict.js
kriskowal/chiron
mit
19,584
774
codeparrot/github-code
74cc81dde9423e87d97f7247ee855db4d272392abb79b1bf9307da26d8de0a84
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> int globvar = 6; /* external variable in initialized data */ char buf[] = "a write to stdout\n"; int main(int argc, char const *argv[]) { int var; /* automatic variable on the stack */ pid_t pid; var = 88; if (write(STD...
C
Chapter-8/fork.c
messense/APUE-Learning
mit
855
33
codeparrot/github-code
876e6609f49c08cc0e56ddea4813ce4ada7e995f6d3b80ec9288fd005d64e65b
const PREFIX = '_' function rename (type) { return PREFIX + type } export default { on: function () { const args = arguments if (typeof args[0] === 'string' && typeof args[1] === 'function') { const type = rename(args[0]) this[type] = this[type] || [] this[type].push(args[1]) } else ...
JavaScript
src/event.js
Jias/natty-fetch
mit
1,064
45
codeparrot/github-code
228085604490e7c1db1cd1095e6a69baabc194cf01c7680513429acb85375006
use alloc::raw_vec::RawVec; use std::ops::{Deref, DerefMut}; use std::{slice, ptr}; use std::intrinsics::assume; pub struct Stack<T> { size: usize, buf: RawVec<T> } impl <T> Deref for Stack<T> { type Target = [T]; fn deref(&self) -> &[T] { unsafe { slice::from_raw_parts(self.as_p...
Rust
old-katas/src/stack_kata/day_7.rs
Alex-Diez/Rust-TDD-Katas
mit
1,573
79
codeparrot/github-code
d6f7e366cb73db5912ae2d2531c97474f588775d099fcbe37a21fb23f87fdb2a
# -*- coding: utf-8-*- import imaplib import email import re from dateutil import parser WORDS = ["EMAIL", "INBOX"] def getSender(email): """ Returns the best-guess sender of an email. Arguments: email -- the email whose sender is desired Returns: Sender of the email. ...
Python
client/modules/Gmail.py
brad999/nikita
mit
3,834
139
codeparrot/github-code
95345468cb5c4584b1c97ce75e08f1fd4c24f593612c11b11cafa767bc6ac8a0
{% extends "./base.html" %} {% load url from future %} {%block javascript%} <script type="text/javascript" src="{{STATIC_URL}}js/incident-support.js"></script> <script type="text/javascript" src="{{STATIC_URL}}js/layer-builder.js"></script> <script type="text/javascript" src="{{STATIC_URL}}js/layer-handler.js"><...
HTML
geoevents/operations/templates/deployment-detail.html
jaycrossler/geo-events
mit
6,193
160
codeparrot/github-code
65346cb53b9518c4589d40f43db749f8557a60f38fcad190650b810297ad3325
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WebApiContrib.Caching { public class EntityTagKey { private readonly string _resourceUri; private readonly IEnumerable<string> _headerValues; private readonly string _toString; private readonly string _routePatte...
C#
src/WebApiContrib/Caching/EntityTagKey.cs
abhishekbhalani/WebAPIContrib
mit
1,931
76
codeparrot/github-code
451bbb927dcd7c4f4464299b663629495b6ea4714cffa330ae046bbf6d041e62
/* Search in Rotated Sorted ArrayMar 3 '122782 / 7248 Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target value to search. If found in the array return its index, otherwise return -1. You may assume no duplicate exists i...
C++
LeetCode/Answers/Leetcode-cpp-solution/search && sort/33_Search in Rotated Sorted Array.cpp
quantumlaser/code2016
mit
2,193
87
codeparrot/github-code
756c5ed0e9b54353c7010587db3cf0f1e9a9b0b7ef7355df7df23ac14c84cb62
package joshie.enchiridion.gui.book.features; import joshie.enchiridion.api.EnchiridionAPI; import joshie.enchiridion.api.book.IFeatureProvider; import joshie.enchiridion.gui.book.GuiSimpleEditor; import joshie.enchiridion.gui.book.GuiSimpleEditorColor; import joshie.enchiridion.util.IColorable; public class FeatureB...
Java
src/main/java/joshie/enchiridion/gui/book/features/FeatureBox.java
joshiejack/Enchiridion
mit
2,288
82
codeparrot/github-code
2409c7d90b406d36604a8b10451a8588d79f1ab5dc748bc46371b77f16f53bce
<?php namespace Component\HtmlBlock { use Core\Util; use Core\Exception\WException; use \DOMDocument as DOMDocument; class Alert { private $dom_document; private $dom_element; private $model; private $container_class; private $container_style; public fu...
PHP
src/Component/HtmlBlock/Alert.php
williamborba/willer-html-block
mit
5,527
180
codeparrot/github-code
4ddfd28c6aa38b9e98b1e0079c82cbb8cfba1538f10fd62479e90de86295b51f
using System.Collections.Generic; using System.Text; namespace Fluttert.Utils.Graphs { /// <summary> /// Directed graph /// </summary> public class DirectedGraph : IGraph { public DirectedGraph(int vertices) { this.vertices = vertices; edges = 0; ...
C#
src/Utils/Graphs/DirectedGraph.cs
fluttert/.Net-Utils
mit
3,054
96
codeparrot/github-code