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
7fcc6ad3ffdb8822cff1219444c6c79567116acb77900cb8c9a937781a437367
#include <vector> #include <list> #include <map> #include <set> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmath> #include <cstd...
C++
polkovnikov.ph/BoxLoader.cpp
tctrain/topcoder
mit
4,784
210
codeparrot/github-code
d1a3feaff9d76efedf9a9167e5fa6c33b839971675cb081fbbd72b61d4d18175
using System; using System.Collections.Generic; using System.Runtime.Serialization; using Core2D.UI.Zoom.Input; using Draw2D.ViewModels.Shapes; using Spatial; namespace Draw2D.ViewModels.Bounds { [DataContract(IsReference = true)] public class ConicBounds : ViewModelBase, IBounds { public IPointSh...
C#
src/Draw2D/ViewModels/Bounds/ConicBounds.cs
wieslawsoltes/Draw2D
mit
2,460
83
codeparrot/github-code
ea23794f8b9f4aa32cee81660e26c3ed46202fab26a573e86aa8d175905fe86a
package org.springframework.samples.imagedb.standalone; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.Iterator; import java.util.List; import org.springframework.context.ApplicationContext; import org.springframework.context.support.FileSystemXmlApplicationContext; import org.spri...
Java
samples/imagedb/src/org/springframework/samples/imagedb/standalone/StandaloneImageTool.java
dachengxi/spring1.1.1_source
mit
2,309
66
codeparrot/github-code
d02b6b517af53caf60352d67c07fa7fb5fb18b5d3ea5a019557c37a8e5bafd7e
<?php /** * <%= pluginName %> plugin for Craft CMS * * <%= pluginDescription %> * <% if ((typeof codeComments !== 'undefined') && (codeComments)){ -%> * --snip-- * Craft plugins are very much like little applications in and of themselves. We’ve made it as simple as we can, * but the training wheels are off. A li...
PHP
app/templates/api_version_2_5/_PluginWithTwigAndSettings.php
nystudio107/generator-craftplugin
mit
7,277
263
codeparrot/github-code
74be0a313b0cf9d94a6dc4124067ae3290a4745ded34ed4a6e2590fe0b4a2279
package com.github.kennedyoliveira.asteriskjava.khomp.enums; import com.github.kennedyoliveira.asteriskjava.khomp.manager.action.KGSMPresentationAction; /** * Possible number presentation status. * * @author kennedy * @see KGSMPresentationAction */ public enum KGSMPresentation { /** * The number won't be s...
Java
src/main/java/com/github/kennedyoliveira/asteriskjava/khomp/enums/KGSMPresentation.java
kennedyoliveira/asterisk-java-khomp
mit
670
33
codeparrot/github-code
118f2251e18e6bcdfa0642fb7b2b21b92e95f9d249d17ba6f6787ce8a422c4ab
// The MIT License (MIT) // // Copyright (c) 2015 Rasmus Mikkelsen // https://github.com/rasmus/EventFlow // // 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...
C#
Source/EventFlow/ReadStores/ReadModelStore.cs
liemqv/EventFlow
mit
2,287
57
codeparrot/github-code
3409f1676dc505f0ff2444b87f56f0bca18d2957519e96a31b7e154dc0a9e218
<?php namespace ByteSoftware\NgrokClientApi; use GuzzleHttp\Client; class NgrokClient { /** @var GuzzleHttp\Client; **/ private $client; public function __construct() { $this->client = new Client([ 'base_uri' => config('ngrokclient.host'), 'http_errors' => false, ...
PHP
src/NgrokClient.php
Byte-Software/NgrokClientApi
mit
1,157
53
codeparrot/github-code
751363f9111deb6b63a66bb3be2e2a58d7a0cf2ff11020fb7b7b774aaa802815
import { debugFor } from "shared/debug"; import { ChannelCount } from "shared/metadata"; import { CROSSFADE_MAX_DURATION } from "shared/preferences"; import WebAssemblyWrapper, { moduleEvents } from "shared/wasm/WebAssemblyWrapper"; const dbg = debugFor("Crossfader"); interface Params { channelCount: ChannelCount;...
TypeScript
shared/src/worker/Crossfader.ts
petkaantonov/HTML-Music-Player
mit
4,071
128
codeparrot/github-code
1f629cade813a81c33340dd22ec4bd258dc925fb9e5be52ba5af1e40e242c563
import numpy as np import infrastructure.intake as intake import infrastructure.log as log import core.topology as topology import core.satisfaction as satisfaction def run(graph, img): graph = topology.simplify_junctures(graph) log.hsvOrGreyImage(img, points=(node for node in graph.nodes() if graph...
Python
ddp/pipeline/hv_lines.py
cdglabs/tableVision
mit
831
39
codeparrot/github-code
41e5bf06757317afc52830fba9e7cb9973b1674f659d1e9f7b2846603994eed5
<?php /* * @Name : Zit Setting * @Author : 吉光片羽 * @Support : jgpy.cn * @Create : 2019-12-25 20:10:23 * @Update : 2020-02-19 13:18:48 */ require '../../../zb_system/function/c_system_base.php'; require '../../../zb_system/function/c_system_admin.php'; $zbp->Load(); $action = 'root'; if (!$zbp->CheckRi...
PHP
zb_users/theme/Zit/main.php
zblogcn/zblogphp
mit
8,736
205
codeparrot/github-code
ca3ed8d0f2cc2b86bbbdec340c712f19ad562a37143d420e735f3587ad9ebd99
using EFConfigurationFramework.Documentacion; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; namespace EFConfigurationFramework { /// <summary> /// Clase base de configuraciones. /// </summary> public class Configu...
C#
EFConfigurationFramework/Configuracion.cs
wocar/EFConfigurationFramework
mit
1,315
49
codeparrot/github-code
d4d8b97e0a6e6348e66a7ff2938c8ff6acb0cf5afc60feb76de8ff9722dc386c
var test = require('tape'), shuv = require('../'), _ = shuv._; $ = shuv.$; test('placeholder', function(t){ t.plan(4); function foo(){ t.equal(arguments.length, 3); t.equal(arguments[0], 4); t.equal(arguments[1], 1); t.equal(arguments[2], 2); } var shuvved ...
JavaScript
test/index.js
KoryNunn/shuv
mit
1,992
118
codeparrot/github-code
e39f327fceab5fcc02e70f98c3acd07b9248f0c118f0cb233c922635127213fc
#include <bits/stdc++.h> int n, q, answer; std::map<std::string, char> map; void dfs(int h, const std::string &s) { if (h == n + 1) { std::string tmp = s; while (tmp.length() > 1) { if (map.find(tmp.substr(0, 2)) != map.end()) { std::string t = tmp.substr(0, 2); tmp.erase(0, 2); tmp = map[t] + tmp...
C++
Codeforces-Code/IndiaHacks Finals 2016/B.cpp
PrayStarJirachi/Exercise-Code
mit
690
40
codeparrot/github-code
557b2dd32edc868e1537019992490aedb7c6b897ce67bcb9953f1857c30593d4
from django.forms.utils import ErrorDict from django.utils.html import format_html from djng.forms.angular_base import NgFormBaseMixin, SafeTuple class NgModelFormMixin(NgFormBaseMixin): """ Add this NgModelFormMixin to every class derived from ``forms.Form``, if that custom ``Form`` shall be managed thro...
Python
djng/forms/angular_model.py
jrief/django-angular
mit
4,211
86
codeparrot/github-code
a961083f987f43c493dce0d10ff6e1e85b53fccb8ca1a215521704d5a609a455
module Ci module API module Helpers BUILD_TOKEN_HEADER = "HTTP_BUILD_TOKEN" BUILD_TOKEN_PARAM = :token UPDATE_RUNNER_EVERY = 10 * 60 def authenticate_runners! forbidden! unless runner_registration_token_valid? end def authenticate_runner! forbidden! unless cur...
Ruby
lib/ci/api/helpers.rb
openwide-java/gitlabhq
mit
2,535
85
codeparrot/github-code
116de2786c3fce8200dd0218a351627ecb43f0e967cb67d0efdcd2a4d4177178
var app = angular.module("videoService", []); /** * Video Service Provider */ app.factory('$videoService', function($http, config, $authenticationService) { // Query cache var cache = { full_count: 0, pagination: { offset: 0, limit: config.limit }, fil...
JavaScript
public/creator/js/services/videoService.js
sitcomlab/IVE
mit
8,315
254
codeparrot/github-code
8d1a6890695e790d795de8f51505e861750f0b9a6f76fa4222829f7c9b68e2fd
package net.collaud.fablab.api.service.impl; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Optional; import net.collaud.fablab.api.dao.MachineTypeRepository; import net.collaud.fablab.api.data.MachineTypeEO; import net.collaud.fablab.api.data.PriceMachineEO; import net.c...
Java
src/main/java/net/collaud/fablab/api/service/impl/MachineTypeServiceImpl.java
fabienvuilleumier/fb
mit
2,585
84
codeparrot/github-code
5f4512d894ad02e533d6822d7a3870bc5d61ecd726003df45faab2c720b82332
class FamiliesController < ApplicationController before_filter :check_client_ip_address before_filter :check_librarian load_and_authorize_resource def index @families = Family.all # output if params[:output_pdf] data = Family.output_familylist_pdf(@families) send_data data.generate, :f...
Ruby
app/controllers/families_controller.rb
MiraitSystems/enju_trunk
mit
5,100
181
codeparrot/github-code
1fb0855450ccda00e76d17afa387031a0d2aa884f96ae5960598a319e0eecbd3
package crdt.counters; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.EnumSet; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import static com.google.common.base.Preconditions.checkState; import static java.u...
Java
src/main/java/crdt/counters/GState.java
ajermakovics/crdts
mit
2,320
89
codeparrot/github-code
cd5b47f22bc09871ab2e8bbc58ea37aeed9c9c3cad6e11ca856a94b4e3fa7778
#include "DetectionROI.h" namespace detectionroi_general_callback { std::shared_ptr<overload_resolution> overload; NAN_METHOD(callback) { if (overload == nullptr) { throw std::runtime_error("detectionroi_general_callback is empty"); } return overload->execute("detectionroi", info); } } Nan::Pe...
C++
src/opencv/objdetect/DetectionROI.cc
drorgl/node-alvision
mit
2,550
65
codeparrot/github-code
d740a47d4dea356da1627b84c8145b72dda31479737141a73f66818fffa2c1d3
import { parsers } from "@domojs/protocol-parser"; import { Type, messages as Protocol } from "."; /* Copyright 2011-2019, RFXCOM ALL RIGHTS RESERVED. The RFXtrx protocol is owned by RFXCOM, and is protected under Netherlands Copyright Laws and Treaties and shall be subject to the exclusive jurisdiction of the Nethe...
TypeScript
packages/rfx-parsers/src/protocol/fan.ts
npenin/domojs
mit
5,777
247
codeparrot/github-code
5635cc9fe7bd71de2d729cd0ed7f0e08f18faaffe8faadeaa98afd6eee43d822
// // EqualizerWindow.cs // // Author: // Aaron Bockover <abockover@novell.com> // Alexander Hixon <hixon.alexander@mediati.org> // // Copyright (C) 2006-2008 Novell, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the /...
C#
src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerWindow.cs
eeejay/banshee
mit
6,846
187
codeparrot/github-code
fb483bdf966a6f3b50f7f81b0ae8c6e72f6c9aa03b68e855cabe6387c29cd8f8
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>random: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
HTML
clean/Linux-x86_64-4.11.2-2.0.7/released/8.11.2/random/8.5.0.html
coq-bench/coq-bench.github.io
mit
8,216
190
codeparrot/github-code
91eeac5bb953249462fca90de4ab8f33021dc17ab62c407347c8c78e1bc32f1b
const Botkit = require('botkit') let _bots = {} const _trackBot = bot => { _bots[bot.config.token] = bot } module.exports = { configure: (port, clientId, clientSecret, config, onInstallation) => { let controller = Botkit.slackbot(config).configureSlackApp({ clientId: clientId, clientSecret: client...
JavaScript
lib/app.js
viethle126/lunchbot
mit
1,398
50
codeparrot/github-code
225a5e031fea87fe3c31ab16c4482ae319ed5d3105404ef6ad24e191ae23b79c
module Locomotive module Steam module Liquid module Drops class MetafieldsNamespace < Base delegate :first, :last, :each, :each_with_index, :empty?, :any?, :size, to: :labels_and_values alias :count :size alias :length :size def liquid_method_missing(...
Ruby
lib/locomotive/steam/liquid/drops/metafields.rb
locomotivecms/steam
mit
2,922
107
codeparrot/github-code
bf06260819c7406ed64441292bc51c0b41e8632e445a96d22e90ec331d4badea
using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using Abp.Application.Features; using Abp.Collections.Extensions; using Abp.Configuration.Startup; using Abp.Dependency; using Abp.MultiTenancy; using Abp.Runtime.Session; using Abp.Extensions; namespace Abp.Authorization { /...
C#
src/frame/Abp/Authorization/PermissionManager.cs
liuxx001/BodeAbp
mit
3,607
94
codeparrot/github-code
e27edb3652a85b01155781e7205e948299dd17b3ef0153fbcb7dc67fc0856b33
<!--TODO: po wciśnięciu "Oblicz", kalkulator zbiera wartości z pul z klasą "input-data" i kolejno mnoży każdą wartość przez wartość "data-value" następnie zapisuje każdą wartość do tablicy i sumuje jej wartości --> <!-- scratch wtb --> <a href="#" class="btn link-track vid-clickJS" data-video="https://www.youtube.com...
HTML
src/d.html
malikowy/boro-lp
mit
4,585
138
codeparrot/github-code
e125120873558e8b016a46d7c89af15ba9dc746239f10686707a0d64293d4569
var linz = require('../'), async = require('async'); module.exports = function () { return function (req, res, next) { req.linz.overview = req.linz.overview || {}; const { parseDisabledProperties } = linz.api.formtools.actions; // get doc req.linz.model.getObject(req.params.id, ...
JavaScript
middleware/recordOverview.js
linzjs/linz
mit
2,802
109
codeparrot/github-code
4a4eb4a2b02c9170ad4371fbad5b5861003c10599c2346224c4a82cedc6a245b
# ruby compare_week.rb <newer_week> <older_week> # ruby compare_week.rb <start_new_week>-<end_new_week> <start_old_week>-<end_old_week> # ruby compare_week.rb FILE <file_new> <file_old> WEEK = ARGV[0].to_s COMPARE = ARGV[1].to_s @new_file = nil @old_file = nil week = nil compare = nil if WEEK.downcase == "file" @...
Ruby
compare_week.rb
JacisNonsense/frc_2017_statistics
mit
2,061
62
codeparrot/github-code
6ac87690522029ce5c41e60bd65cf06592e856da72f2987c7bc2274dc9920987
import "reflect-metadata"; import { JsonSchemaDefinition } from "../utils/index"; import { ValidateIfFunc, VALIDATION_DEFINIIONITEM_KEY, VALIDATION_PROPERTYPATH_SEPRATOR, VALIDATION_VALIDATEIF_METADATA_KEY, ValidationContext, VALIDATOR_METADATA_KEY } from "./index"; import { ValidationDefinition } fr...
TypeScript
src/validation/Validation.ts
nowcando/nowjs-core
mit
7,253
178
codeparrot/github-code
8b5ce21f9969a1649fa70d0e2b212c9e29cb061fd9434c165fc4c16c6a692db2
<?php namespace Sgpatil\Orientdb; use Illuminate\Database\ConnectionResolverInterface; class ConnectionResolver implements ConnectionResolverInterface { /** * All of the registered connections. * * @var array */ protected $connections = array(); /** * The default connection name. * * @var string ...
PHP
src/Sgpatil/Orientdb/ConnectionResolver.php
sgpatil/orientdb
mit
1,666
93
codeparrot/github-code
58bbb8b4ef6040ef7485f01580b7b35a81a78bb4b3f1594b66345662ec1a24f1
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014 Joey Krug and Jack Peterson // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "core.h" #include "util...
C++
src/core.cpp
AugurProject/sidecoin
mit
8,070
289
codeparrot/github-code
bb0fbdc78c897da643c980eeca46c95843a84372c2b902d2d9839ac8e1ddfe02
<?php namespace OpenTracing\Wikia\Propagator; use OpenTracing; use OpenTracing\SplitBinaryCarrier; use OpenTracing\Exception\EmptyCarrierException; use OpenTracing\Exception\CorruptedCarrierException; use OpenTracing\Exception\InvalidCarrierException; use OpenTracing\Wikia\Span; class SplitBinaryPropagator extends P...
PHP
src/OpenTracing/Wikia/Propagator/SplitBinaryPropagator.php
Wikia/opentracing-wikiatracer-php
mit
4,504
163
codeparrot/github-code
6126294cf55f511e00042770a5f1a8659dc54a428b4247a1180454b4ab354a09
import React, { Component } from 'react'; import expect from 'expect'; import { mount } from 'enzyme'; import TextInput from '../../app/components/textinput/TextInput'; describe('TextInput', () => { let wrapper; let callback; beforeEach(() => { callback = jest.fn(); wrapper = mount(<TextInput value='va...
JavaScript
__tests__/components/TextInput.test.js
renjithgr/bootbar
mit
1,032
36
codeparrot/github-code
9cfd24bdfed8421b65d8f526de3ff32fae8e0506e3dc5fee2296cd85bf2da9ee
module Handlers class Actor include PoroPlus include Behavior::HandlesCommands def summon message.response = subject.summon_for(message.sender_nick, message.is_sudo?) end def talk if subject message.response = "#{subject.proper_name} says, \"#{subject.speak}\"" else ...
Ruby
alice/handlers/actor.rb
CoralineAda/alice
mit
756
34
codeparrot/github-code
e6c11f54d2e7e310a0d6916fc3dd5f41b420182f4c7c282dab19c94945b9b32f
package ge.edu.freeuni.sdp.arkanoid.model.geometry; public class Direction { // Note there is no Direction.NONE public static final Direction LEFT = new Direction(-1, 0); public static final Direction RIGHT = new Direction(1, 0); public static final Direction NONE = new Direction(0, 0); private st...
Java
src/main/java/ge/edu/freeuni/sdp/arkanoid/model/geometry/Direction.java
freeuni-sdp/arkanoid-16
mit
905
30
codeparrot/github-code
776947000af1b4466e37706e1bba26af5c0e1d80c5eaa79bfe56ecf082bae26d
// Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Copyright (c) 2013 doriancoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_NETBASE_H #define BI...
C
src/netbase.h
doriancoin/doriancoin-v3
mit
6,175
154
codeparrot/github-code
a159bc523336bec7c59a63906629b99a29be4ff16b58ba585a3043923010fd03
/* * nghttp2 - HTTP/2 C Library * * Copyright (c) 2013 Tatsuhiro Tsujikawa * * 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 ri...
C
lib/nghttp2_hd_huffman.c
thinred/nghttp2
mit
7,397
229
codeparrot/github-code
d3b59bc3b1fea8ca4ab87a5c96e13148f2ca3fdfe8a201ca14ff43d2da3da1b6
/* * Copyright (C) 2012-2013 Gil Mendes * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, pub...
C
3rdparty/LAOS/source/disk.c
gil0mendes/Infinity-OS
mit
6,990
227
codeparrot/github-code
338cef1d9aab3c2c151cae08dfd149628bce2a9e5e4d6365816b7f406ecc9459
#include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #include <unistd.h> #include <arpa/inet.h> #include "common.h" #define IPADDRESS "127.0.0.1" int main(int argc, char *argv[]) { int n; int connfd; char buffer[MAXLINE]; struct sockadd...
C
c/epoll/tcp/epoll-client.c
Akagi201/learning-c
mit
850
41
codeparrot/github-code
96a1fcd95b59e6baedb54fdcbcc3be80bab69fff2132a2bfae9f16c6f5e100d0
// // ListStoreFilter.cs // // Author: // Vsevolod Kukol <sevo@sevo.org> // // Copyright (c) 2014 Vsevolod Kukol // // 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 restricti...
C#
Xwt/Xwt/ListStoreFilter.cs
sevoku/xwt
mit
7,669
281
codeparrot/github-code
0b04242119f2e442535f7eaf103c50c5c7fc471133c5bcead95d1b64cf62dcd0
using System; using System.Collections.Generic; using System.IO; using System.Linq; using MetaWeblogSharp; namespace SyncPost { class Program { static void Main(string[] args) { var password = getPassword(); if (string.IsNullOrEmpty(password)) { ...
C#
SyncPost/Program.cs
fresky/SyncPost
mit
3,997
115
codeparrot/github-code
388afad3acfc23179a69d8a11617b7f814f8101235050816d5987c762c01de4d
package org.ksoap2.serialization; import java.io.*; import org.kobjects.base64.*; import org.ksoap2.*; import org.ksoap2.transport.mock.*; import org.xmlpull.v1.*; import junit.framework.*; public class MarshalBase64Test extends TestCase { private static final String TEST_STRING = "A very quick test string 134...
Java
ksoap2-base/src/test/java/org/ksoap2/serialization/MarshalBase64Test.java
karlmdavis/ksoap2-android
mit
2,031
52
codeparrot/github-code
a956c354465a82fe88ba08dd5ca47542365b7bdd4f9c2fd9ed98cfa385342d92
package lfs import ( "fmt" "net/http" "net/url" "os" "path" "regexp" "strconv" "strings" "sync" "github.com/github/git-lfs/git" ) type Configuration struct { CurrentRemote string gitConfig map[string]string remotes []string httpClient *http.Client redirecti...
GO
lfs/config.go
ChaseFlorell/git-lfs
mit
4,331
217
codeparrot/github-code
ddde8c6deb1c4b606021a7d3d06715d5de8f0344ab8b6e3fc3a7ec06060c4379
package org.iguanatool.search.evolve.mutation; import org.iguanatool.search.randomnumbergenerator.RandomNumberGenerator; import org.iguanatool.search.solution.NumericalSolution; import org.iguanatool.search.solution.NumericalSolutionType; /** * User: phil * Date: 01-Apr-2006 * Time: 14:08:59 */ public ...
Java
src/main/java/org/iguanatool/search/evolve/mutation/MuhlenbeinMutation.java
iguanatool/iguana
mit
1,377
41
codeparrot/github-code
a4eb33373c97f4a4899257a6260ae18bd97fa47fd41099e1b32e6740b149b9a2
package spire package laws import java.math.BigInteger import spire.math.extras.{FixedPoint, FixedScale} import spire.algebra._ import spire.algebra.free._ import spire.math._ import spire.math.interval.Bound import org.scalacheck.Arbitrary object arb { implicit val ubyte: Arbitrary[UByte] = Arbitrary(gen.ub...
Scala
laws/src/main/scala/spire/laws/arb.scala
adampingel/spire
mit
2,411
94
codeparrot/github-code
4e34e95a40b4fdbf477ae1501121218695181add629414208c83c62f586069f1
package com.superiorcraft.realism; import java.util.ArrayList; import org.bukkit.Material; import org.bukkit.inventory.ItemStack; public class BlockBreakRule { public static ArrayList<BlockBreakRule> rules = new ArrayList<BlockBreakRule>(); private Material material; private ToolPower level; ...
Java
SuperiorCraft/src/com/superiorcraft/realism/BlockBreakRule.java
GigaGamma/SuperiorCraft
mit
705
37
codeparrot/github-code
a8f42c926c865ac0d3e514ab5cceb7727157c8cee975b765d134f36426baa004
var ko = ko || {}; var mapManager = mapManager || {}; /** * The module loads methods for sorting the markers. * @param {object} self TheatreMapViewModel object without this module. * @param {object} ko Knockout object to provide framework methods. * @param {object} mapManager Object with map re...
JavaScript
src/scripts/sort.js
AndreiCommunication/toronto-theatre-map
mit
2,920
77
codeparrot/github-code
0df07e9f90910b25823770d65744718d1913983b33e214241ca169f1e1d4665d
<?php /** * * * PHP version 5 * * @package * @author Andrey Filippov <afi@i-loto.ru> */ namespace Solo\Logger\Parsers; use Solo\Logger\LogRecord; class ShortExceptionParser extends BaseParser { /** * Замена макросов в шаблоне лога на значения * * @return LogRecord */ public function parse() { i...
PHP
src/Parsers/ShortExceptionParser.php
solo-framework/solo-logger
mit
541
33
codeparrot/github-code
129ffae4680ae950e29abb38ab3cc139192740e2bedb9985b567d62ae5783d9e
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> ...
HTML
Reports/so/sooft.framework.service.4.1.1/Sooft.Framework.Service-net40.html
kuhlenh/port-to-core
mit
34,540
801
codeparrot/github-code
093d189111bf8d4ae03c13f4a57857c3edb25f2fc8d833f00b57af9eacfecfd1
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mathcomp-zify: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.m...
HTML
clean/Linux-x86_64-4.08.1-2.0.5/extra-dev/dev/mathcomp-zify/1.0.0+1.12+8.13.html
coq-bench/coq-bench.github.io
mit
6,979
170
codeparrot/github-code
623efeaf7862be08c044766589fec130e88c45b6f1b248b60cfb7e792e92af5d
<?php namespace PhpNFe\NFe\Tools; class EvCCXmlRetorno { /** * @var */ protected $versao; /** * @var */ protected $signedMsg; /** * @var */ protected $retEvento; public function __construct($versao, $signedMsg, $retEvento) { $this->versao = $vers...
PHP
src/Tools/EvCCXmlRetorno.php
leandrommoliveira/nfe
mit
918
41
codeparrot/github-code
e2214e84d4e0f95e5bb35aa15cc429e47a1b9023c4da382b33c935148e0d4083
""" A micro tk app with a list driven by the model. """ import logging from Tkinter import * from ttk import Treeview import hotlist class MVCList(Treeview): def __init__(self, parent, model): Treeview.__init__( self, parent, columns=["COL0", "COL1"]...
Python
step02/tkl.py
petrblahos/modellerkit
mit
3,894
135
codeparrot/github-code
4617f1d39251017501cf64b3c77655eaf836d3f6a14a124e263649f21c9aaecc
#include "event_loop_base.h" #include <sys/epoll.h> #include <stdio.h> #include <pthread.h> namespace mevent { int EventLoopBase::Create() { return epoll_create(512); } int EventLoopBase::Add(int evfd, int fd, int mask, void *data) { struct epoll_event ev; ev.events = 0; if (mask & MEVENT_IN) { ...
C++
event_loop_base_epoll.cpp
looyao/mevent
mit
1,907
88
codeparrot/github-code
3a049f32901dcc61560f29f6fa4dd80fc887f1c58405dfd4e1820eb8039e30b2
<!doctype html> <title>CodeMirror: Clojure mode</title> <meta charset="utf-8"/> <link rel=stylesheet href="../../doc/docs.css"> <link rel="stylesheet" href="../../lib/codemirror.css"> <script src="../../lib/codemirror.js"></script> <script src="clojure.js"></script> <style>.CodeMirror {background: #f8f8f8;}</style> <...
HTML
DataSink-UI/js/plugins/codemirror/mode/clojure/index.html
dhrproject/mydatasink
mit
2,533
91
codeparrot/github-code
1adf408d6bf87742cf70831cc607ea2cbd301456307e19c33d3b5654090db9d1
<?php namespace App\Policies; use App\User; use App\Project; use Illuminate\Auth\Access\HandlesAuthorization; class ProjectPolicy { use HandlesAuthorization; /** * Determine whether the user can view the project. * * @param \App\User $user * @param \App\Project $project * @retur...
PHP
app/Policies/ProjectPolicy.php
achegedus/CityServe
mit
1,190
60
codeparrot/github-code
49a045e6cf1579de68aa70012deef051b4ba6d24ab211acee08e0f1b25a7bc34
import bodyParser from 'body-parser' class RobQL { constructor(errorHandler) { this.methods = {}; this.errorHandler = errorHandler || ((exception) => { console.log('RobQL Error:', exception); return { code: 500, reason: exception.toString() }; }); } define(method, handler) { this.met...
JavaScript
src/express.js
lazzrek/robql
mit
1,063
48
codeparrot/github-code
63801e64248f481374255380abf5a876da2bdcf8948a25b6319c0ab424995f27
<!DOCTYPE html> <html> <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="Sci blog jekyll theme"> <meta name="author" content="AIR RAYA Group"> <link href='...
HTML
web/2021/12/25/307.html
xiazemin/MyBlog
mit
15,739
396
codeparrot/github-code
4f3aa7b36530a6109b774b8b24f4cd539b0a8451485ae6acbf2bf520e8e8af1f
module Pocketsphinx class Decoder require 'delegate' include API::CallHelpers class Hypothesis < SimpleDelegator attr_accessor :path_score attr_accessor :posterior_prob def initialize(string, path_score, posterior_prob = nil) @path_score = path_score @posterior_prob = ...
Ruby
lib/pocketsphinx/decoder.rb
altV/pocketsphinx-ruby
mit
7,406
231
codeparrot/github-code
08272e477562f78916bfd83d14813a2a5ec4e89d9f12febeb4d85122ed49f98f
/*global URL */ 'use strict'; var React = require('react'); var ReactDOM = require('react-dom') var request = require('superagent-bluebird-promise'); var isFunction = function (fn) { var getType = {}; return fn && getType.toString.call(fn) === '[object Function]'; }; function formatMaxSize(size){ size=size.toSt...
JavaScript
index.js
zhcalvin/react-qiniu
mit
5,515
178
codeparrot/github-code
25e2a6cd3242e52afbe63f97b03abc1b32cd15e5a0aad62b87322a94c4af1789
(function (root, factory) { if (typeof define === 'function' && define.amd) { define(['me-tools', 'me-lock-view', 'me-show-transition', 'me-trap-focus'], factory); } else if (typeof exports === 'object') { var meTools = require('me-tools'), meLockView = require('me-lock-view'), meShowTrans...
JavaScript
src/index.js
meibegger/me-dialog
mit
19,375
722
codeparrot/github-code
2a6c3bed4b71ef3062a6a3a73b21f132e799c23d9e2422df00f266429007841d
package edu.fcse.alphaalgorithm.tools; import java.util.*; /** * A wrapper for the footprint matrix of an event log. Relations between events * are represented by the {@code edu.fcse.alphaalgorithm.RelationType} enum. For * footprint[a][b] the result can be: # = events a and b are not connected > = * event a prec...
Java
src/main/java/edu/fcse/alphaalgorithm/tools/Footprint.java
delix/AlphaAlgorithm
mit
6,555
158
codeparrot/github-code
ea578b5da4238e70d635a6f515c876d81b67b1b10023b162691a82303deae663
/** * Copyright (C) 2013 KO GmbH <copyright@kogmbh.com> * * @licstart * This file is part of WebODF. * * WebODF is free software: you can redistribute it and/or modify it * under the terms of the GNU Affero General Public License (GNU AGPL) * as published by the Free Software Foundation, either version 3 of * ...
JavaScript
assets/webodf/webodf/tools/zipdir.js
brandon-bailey/osdms
mit
3,523
105
codeparrot/github-code
da04aff3facc460127f22ef97ea5444b12dbdf6ab4c9f1045122736a6b9ebfb9
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>W30974_text</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;"> ...
HTML
ocr_extracted/W30974_text/page17.html
datamade/elpc_bakken
mit
4,242
65
codeparrot/github-code
41c26e7fcfed5d2dbdd346773fd5cdfa2fd70ff29cfd0236b5db117fc69a5794
package net.meisen.general.sbconfigurator.factories; import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory.InitializingBean; /** * Reference to another bean. Can be used i.e. to create synonyms or beans which * don't have any identifier can be referenced by an identifier usi...
Java
src/net/meisen/general/sbconfigurator/factories/BeanReference.java
pmeisen/gen-sbconfigurator
mit
3,158
106
codeparrot/github-code
bbac22058dbc8274f9346b98a65a9b66edf5ea523db14bdf2fe6ff61dc52d5c7
var assert = require('assert'); var dummyjson = require('../index'); dummyjson.seed = 'helloworld'; describe('dummyjson', function() { describe('parse', function() { it('should throw an error if not given a string to parse', function() { assert.throws( function() { dummyjson.parse(); ...
JavaScript
test/dummyjson.spec.js
webroo/dummy-json
mit
4,130
121
codeparrot/github-code
5b4f7c23e975d6d55d6c633d89ffd49fe35c3e336f98a11c3e67be50e21ee90a
using System; using ZKWeb.Localize; using ZKWeb.MVVMPlugins.MVVM.Common.Base.src.Domain.Filters.Interfaces; using ZKWeb.MVVMPlugins.MVVM.Common.MultiTenant.src.Domain.Services; using ZKWeb.MVVMPlugins.MVVM.Common.Organization.src.Components.ExtraConfigKeys; using ZKWeb.MVVMPlugins.MVVM.Common.Organization.src.Dom...
C#
src/ZKWeb.MVVMPlugins/MVVM.Common.Organization/src/Domain/Filters/PreventModifySuperAdminFilter.cs
zkweb-framework/ZKWeb.MVVMDemo
mit
2,249
53
codeparrot/github-code
34ec6e7b04644721b6d036fd8c971ec81e51fda94c7112196df151e112bbcfa2
require_relative 'shell_commands.rb' require_relative 'shared_ssh' require_relative 'infrastructure_errors' class PrivateMachineFacade < InfrastructureFacade include SharedSSH include ShellBasedInfrastructure attr_reader :ssh_sessions # prefix for all created and managed VMs VM_NAME_PREFIX = 'scalarm_' ...
Ruby
app/models/infrastructure_facades/private_machine_facade.rb
Scalarm/scalarm_experiment_manager
mit
12,890
388
codeparrot/github-code
65acfe56c488a9929b7149d35949ef179d4172580628b0a9f83f945a6b648697
(function($) { $.event.special.destroyed = { remove: function(o) { if (o.handler) { o.handler(); } } }; })(jQuery); (function($) { $.fn.center = function() { this.css("position", "absolute"); this.css("top", Math.max(0, (($(window).height() - $(this).outerHeight()) / 2) + ...
JavaScript
public/autojs/auto.all.js
timothyerwin/auto.js
mit
45,488
1,788
codeparrot/github-code
db6b2b73b1c5c511416cdb312e059fda4193805a9ec065cfa4cc0d57290cc5c8
@section('css') @parent <style type="text/css"> #editor { width: 100%; min-height: 460px; } </style> @endsection <div class="row"> <div class="col-md-9"> <div class="box box-primary"> <div class="box-header with-border"> <i class="fa fa-edit"></i> <h3 class="box-title"> 页面编辑</h3...
PHP
resources/views/admin/page/fields.blade.php
kapeter/DataCMS
mit
4,015
114
codeparrot/github-code
41f4f1df28102fab12e8e8957833ad5bb7ce93043df5b5382a58a5b9f5ef01b9
package com.jtanks.view.arena; import java.awt.Color; import com.jtanks.util.Point; import com.jtanks.view.gui.JTCanvas; import com.jtanks.view.gui.JTGraphics; import com.jtanks.view.gui.JTImage; public class DoubleBuffer implements Renderer { private final JTImage image; private final JTGraphics offscreen; ...
Java
src/com/jtanks/view/arena/DoubleBuffer.java
timfremote/jtanks
mit
1,619
51
codeparrot/github-code
aecf4e55b07d59003c9b86e750aea096173310a2eb61fd1ae8ab8db073d5d647
# Copyright (C) 2020 The Electrum developers # Distributed under the MIT software license, see the accompanying # file LICENCE or http://www.opensource.org/licenses/mit-license.php import time from datetime import datetime from typing import Optional, Any from PyQt5.QtCore import Qt, QDateTime from PyQt5.QtGui import...
Python
electrum_ltc/gui/qt/locktimeedit.py
vialectrum/vialectrum
mit
5,781
174
codeparrot/github-code
d59ca3bcc1fb2f883897ac601623131f1da38d84fa48a8ff84da0ff9fccbcd34
'use strict'; const path = require('path'); const http = require('http'); const ws = require('local-web-server'); const shutdown = require('http-shutdown'); let server, config; // Pull requests not handled as in case of Karma const local = <% if ( cloudBrowsers ) { %>typeof process.env.CI === 'undefined' || process....
JavaScript
generators/app/templates/wdio.conf.js
niksy/generator-paleta
mit
2,849
117
codeparrot/github-code
8c290b2ebf497b40a266276c474a3b5f0a597d01de260c350c59959d59e27363
/* The MIT License (MIT) Copyright (c) 2013 Julian Xhokaxhiu 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 ...
JavaScript
js/app.js
julianxhokaxhiu/spotify-playlist-extractor
mit
3,614
89
codeparrot/github-code
c8c02d91b77db80982b351e9dfa1dcbd66fdf83820a16f693323c712974ec704
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ar" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About W2Coin</source> <translation>عن W2Coin</translation> </message> ...
TypeScript
src/qt/locale/bitcoin_ar.ts
W2Coin/W2Coin-Src-Linux
mit
97,439
2,917
codeparrot/github-code
73466c8685082d77f80324708b62c6c80ff0e1d7fa9130d9a4ab01de57f33233
var equal = require('assert').equal, puts = require('util').puts, Client = require('../lib/client').Client; exports.tests = { 'should override default sendRequest object with one passed in': function(finished, prefix) { var client = new Client({ identifier: 'client_identifier', start: false, sendRequest...
JavaScript
test/client-test.js
attachmentsme/Queuebert
mit
2,556
88
codeparrot/github-code
71ea5a2bd3fc476c29a5bdfc8c5a90a11184333906e3b8fbb3ee878863f69a0e
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head> <!-- Tests for the OpenGL ES 2.0 HTML Canvas context Copyright (C) 2009 Ilmari Heikkinen <ilmari.heikkinen@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation...
HTML
functions/drawElementsBadArgs.html
kig/canvas3d-tests
mit
10,138
224
codeparrot/github-code
3c4b6ae973ae097142bf26f6145464ca74c3a2631f1f129ddac8ca998bc903f6
<?php namespace Fortifi\FortifiApi\Affiliate\Responses; use Fortifi\FortifiApi\Affiliate\Responses\Foundation\AffiliateFoundationResponse; use Fortifi\FortifiApi\Auth\Responses\AuthUserResponse; use Fortifi\FortifiApi\Contact\Responses\EmailResponse; use Fortifi\FortifiApi\Contact\Responses\PhoneResponse; use Fortifi\...
PHP
api/Affiliate/Responses/AffiliateResponse.php
fortifi/sdk
mit
1,421
67
codeparrot/github-code
2f00f73eaf5f83e0b8b186ac6e85adc9cad736ee4335f124d90d0d677b3cb762
///<reference path="../parser.ts" /> ///<reference path="./irenderer.ts" /> ///<reference path="rendererProvider.ts" /> ///<reference path="../Infrastructure/ObjectModelValueProvider.ts" /> ///<reference path="../Infrastructure/ValueTypeProvider.ts" /> ///<reference path="../Infrastructure/Locals.ts" /> ///<refer...
TypeScript
src/Parrot.Javascript/Renderers/foreachRenderer.ts
ParrotFx/Parrot.Javascript
mit
1,840
46
codeparrot/github-code
e408acfae5417266463bae9b328bdd8a63b6d37be7690b79eb2e706634483079
(function () { 'use strict'; angular .module('app') .constant('Constants', Constants()) .constant('Endpoints', Endpoints()) .constant('Ranks', Ranks()); function Constants() { let constants = {}; constants.AUTHORITIES = { ROLE_USER: { ...
JavaScript
landing/app.constants.js
royalrangers-ck/rr-web-app
mit
3,837
113
codeparrot/github-code
dfd8a3afa2d5774693a6f6daa84c891ba473285b7d369bb603bbfbdc2dea128f
'use strict'; let express = require('express'); let router = express.Router(); let wboath = require('../../lib').wboath; let _ = require('lodash'); let redirect_uri = ''; router.get('/', function(req, res, next) { let url = wboath.GetAuthorizatioCode({ state: wboath.state(), redirect_uri: redirect_uri, // dis...
JavaScript
test/routes/weibo.js
WMTcore/oath_node
mit
1,147
50
codeparrot/github-code
98ac3b450f614ca70dadb1d1214f8ef08a17ea41885b5071fd29e863f2d13133
# Locking mechanism to ensure no two compilations occur simultaneously # in the same compilation directory (which can cause crashes). import atexit import os import socket # only used for gethostname() import time import logging from contextlib import contextmanager import numpy as np from theano import config fro...
Python
libs/Theano/theano/gof/compilelock.py
nke001/attention-lvcsr
mit
14,977
392
codeparrot/github-code
6ead90b2afc10469626dd8cf6936c59c7de695286f657483ecef879dab088fad
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>equations: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.c...
HTML
clean/Linux-x86_64-4.13.1-2.0.10/released/8.13.2/equations/1.2.1+8.11.html
coq-bench/coq-bench.github.io
mit
7,476
181
codeparrot/github-code
a9b9844a71505b66153159f67b997a27d4dcee3e6fb0f0d854d60bc0090cf1b9
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>multiplier: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min....
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.12.0/multiplier/8.7.0.html
coq-bench/coq-bench.github.io
mit
6,689
162
codeparrot/github-code
84ecc9a806cef5e78f4474e8151bb903c8ab6a53bc0731426c048baa2a8f0752
using System.Collections; using System.ComponentModel; namespace SharpBrowser.BrowserTabStrip { public abstract class CollectionWithEvents : CollectionBase { private int _suspendCount; [Browsable(false)] public bool IsSuspended => _suspendCount > 0; [Browsable(false)] public event CollectionClear Clearing...
C#
src/BrowserTabStrip/Data/CollectionWithEvents.cs
sharpbrowser/SharpBrowser
mit
1,767
81
codeparrot/github-code
a5d5534a87a53266d924570fa638ce50512bf69e4840789a76408000c926cc4e
var _; //globals describe("About Applying What We Have Learnt", function() { var products; beforeEach(function () { products = [ { name: "Sonoma", ingredients: ["artichoke", "sundried tomatoes", "mushrooms"], containsNuts: false }, { name: "Pizza Primavera", ingredients: ["roma", "sundried toma...
JavaScript
koans/AboutApplyingWhatWeHaveLearnt.js
CTFigueroa/Javascript_Koans
mit
3,835
122
codeparrot/github-code
0a6efe38c6e539538218aaf0f2b6282f28012f201b1c2331f050e5fc8d8d72e2
import { join } from 'path'; import { SeedConfig } from './seed.config'; // import { ExtendPackages } from './seed.config.interfaces'; /** * This class extends the basic seed configuration, allowing for project specific overrides. A few examples can be found * below. */ export class ProjectConfig extends SeedConfi...
TypeScript
tools/config/project.config.ts
nickaranz/robinhood-ui
mit
3,195
90
codeparrot/github-code
abf6b7ffebdcea0df40ee5f957e9c3d49aa1204a65c21faddfa18b8e7cee7e5e
<html> <head> <title>Swipe Reddit</title> <link rel="shortcut icon" href="//www.redditstatic.com/favicon.ico" type="image/x-icon"> <script src="//code.jquery.com/jquery-1.10.2.min.js"></script> <script src="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script> ...
HTML
index.html
howken/swipereddit
mit
5,986
209
codeparrot/github-code
b469b6a66d3edcd00e65457332b8ac11615586f7d15e82095060889d8d10f35e
import os import sys import time print(f"running {sys.argv[0]}") import cellpy from cellpy import cellreader, log from cellpy.parameters import prms # -------- defining overall path-names etc ---------- current_file_path = os.path.dirname(os.path.realpath(__file__)) relative_test_data_dir = "../testdata" test_data_d...
Python
dev_utils/helpers/performance.py
jepegit/cellpy
mit
2,592
94
codeparrot/github-code
ed26fc19759d9dd458bbff7464e5c919331a246c230b26ae03a7326c11c647b4
// ----------------------------------------------------------------------- // <copyright file="MainWindow.xaml.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // ----------------------------------------------------------------------- namespace FaceTrackingBas...
C#
Kinect SDK/v1.8/FaceTrackingBasics-WPF/MainWindow.xaml.cs
sakapon/Samples-2014
mit
5,495
129
codeparrot/github-code
bc9688db8737b405d763a84ed4b309e232d005d111ac9c54d3e77098a5bca8c8
import { MongoObservable } from 'meteor-rxjs'; import { Meteor } from 'meteor/meteor'; import { UploadFS } from 'meteor/jalik:ufs'; import { Thumb, Image } from "../models/image.model"; export const Images = new MongoObservable.Collection<Image>('images'); export const Thumbs = new MongoObservable.Collection<Thumb>('t...
TypeScript
both/collections/images.collection.ts
LiudasRepkovas/baigiamasisnemokami
mit
1,367
56
codeparrot/github-code
24d8f181893d16810c0f106af0140195cb0174d4fb2b54d694a4449499d48fa1
# encoding: utf-8 """ Objects related to mouse click and hover actions on a shape or text. """ from __future__ import ( absolute_import, division, print_function, unicode_literals ) from .enum.action import PP_ACTION from .opc.constants import RELATIONSHIP_TYPE as RT from .shapes import Subshape from .util impor...
Python
lib/python2.7/site-packages/pptx/action.py
neerajvashistha/pa-dude
mit
7,551
225
codeparrot/github-code
a55c7fda1c1a62c1fde61a6d30353c143a4c89706c226d6b24a1a15ad499372e
/* Various fractal shenanigans By Altan Haan */ #include <iostream> #include <fstream> #include <cmath> #include <ctime> struct Vector { long double x; long double y; }; struct Pixel { bool inSet; unsigned int iteration; }; struct Color { unsigned char r; unsigned char g; unsig...
C++
Code/mandelbrot.cpp
altanh/fractals
mit
8,239
338
codeparrot/github-code
a50ede87518751de88a0e131a3408172744a67accffe87b3308a9370d5729b89
<p>=======</p> <h1>vsnodeghost</h1> <p>This is a VS Solution for the Ghost Blogging Platform running in Visual Studio (2013) using Node.js tools.</p> <p>=======</p> <h1><a href="https://github.com/TryGhost/Ghost">Ghost</a> <a href="https://travis-ci.org/TryGhost/Ghost"><img src="https://travis-ci.org/TryGhost/Ghost...
HTML
README.html
brandanmajeske/vsnodeghost
mit
7,616
110
codeparrot/github-code
99f7c2677a606bf21ce6635bf33fa0209bec15f31a3a81c9d03d1e69d0c72794
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strnstr.c :+: :+: :+: ...
C
libft/ft_strnstr.c
R4meau/ft_select
mit
1,414
42
codeparrot/github-code
27a2deafd83cc6cdff23055fc1a195e20f21866700328fb475ebeb8a361018a4
Ship = function (){ this.init(); /*var obj = new Object(); obj.setvertices(new Float32Array([7.5, 0, 0, 20, 15, 20])); obj.setcolor(new Array(255,255,255 )); obj.setnumItems(3); var child = new Object(); child.setvertices(new Float32Array([7.5, 3, 3, 15, 12, 15, 3, 17, 2, 20, 13, 20, 3, 17, 1...
JavaScript
js/custom/Ship.js
42foobar42/AsteroidsTouch
mit
3,935
137
codeparrot/github-code
eb0eafa88569ec18270956484f755644ea241a0c21d2c6c64319aad812fc6512
package com.board.gd.domain.user; import lombok.*; import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.jpa.domain.support.AuditingEntityListener; import javax.persistence.*; import java.util.Date; /** * Created by gd.go...
Java
board/src/main/java/com/board/gd/domain/user/UserRole.java
godong9/spring-board
mit
1,208
52
codeparrot/github-code
39b08e9355bbff68a5055f086210ad8cb9b18f75646604e0f5eef52940d3e9a8
\documentclass[12pt]{extarticle} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{float} \usepackage{array} \usepackage{makecell} %line breaks inside table cells \usepackage{changepage} %temp adjust margins \usepackage[table]{xcolor} %color tables \usepackage{outlines} \usepackage{setspace} \usepackage{mul...
TeX
documentation/conceptual_design_review/codr.tex
MRSD2018/GroundsBot
mit
45,451
801
codeparrot/github-code
80df60ba5dd423c579728ce83aaa4a43072eb1d4b5f07a5106e935ccbf98fa43
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define("loop-yield", [], factory); else if(typeof exports === 'object') exports["loop-yield"] = factory(); e...
JavaScript
lib/loop-yield.js
bharatpatil/loop-yield
mit
3,594
127
codeparrot/github-code
9e541a15545da3eae27fb5d631bd563159a7d6457b85a3a1e4c04a7c5b68d5dd
<?php require_once('appconfig.php'); class Fblib { private $facebook; public function __construct() { $this->facebook = new Facebook\Facebook([ 'app_id' => appconfig::getAppId(), 'app_secret' => appconfig::getAppSecret(), 'default_graph_version' => 'v2.8' ]); if (!empty($_SESSION['faceboo...
PHP
application/libraries/Fblib.php
GasanovShamil/fbdev
mit
2,913
108
codeparrot/github-code