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
5bc58821292212d76edd29db860ad74aaffed220f9989094681b53a133e57c5c
<html lang="en"> <head> <title>Parameters - STABS</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="STABS"> <meta name="generator" content="makeinfo 4.8"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="Variables.html#Variables" title="Variables"> <...
HTML
toolchain/osx/gcc-arm-none-eabi-6-2017-q1-update/share/doc/gcc-arm-none-eabi/html/stabs/Parameters.html
ChangsoonKim/STM32F7DiscTutor
mit
4,134
92
codeparrot/github-code
26f42d87990f05221c300008d19b072d22bdd9c1742fe4740ca1e148be1963b9
using System; namespace GigHub.Core.Models { /// <summary> /// Domain class. Contains reference to Gig. /// Responsible for creation of a new Gig object in case of /// modification/deletion of already existing gig /// or creation of a new one. /// </summary> public class Notification ...
C#
GigHub/Core/Models/Notification.cs
Dissolving-in-Eternity/GigHub
mit
1,641
53
codeparrot/github-code
42924d8450db720727105fc7452c0ce06573230afb8507f0cf0d81bb87756128
<?php class MediaData extends Data { public $dataFile = 'autocms-media.json'; public function createFile() { if (!file_exists($this->dataLoc . $this->dataFile)) { $this->data = Array(); $this->data['images'] = Array(); $fp = fopen($this->dataLoc . $this->dataFile, '...
PHP
admin/system/classes/media.php
rapidDevGroup/autoCMS
mit
6,337
167
codeparrot/github-code
8e9531406bc43440360c4a3aafedf73e8173782619dfb1767359c667dd87f4fd
<?php /* WebProfilerBundle:Profiler:toolbar_item.html.twig */ class __TwigTemplate_42de00311d8fa5b590482fa9d03b0d8f0984aeae6ed7c1232f3c418494bc63b6 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blo...
PHP
app/cache/dev/twig/42/de/00311d8fa5b590482fa9d03b0d8f0984aeae6ed7c1232f3c418494bc63b6.php
kkuga/sfwebProject
mit
2,352
61
codeparrot/github-code
373babfb58a6e65ee6d285f4600801db474a86ff06c005274afdeaf0ba2adc17
#!/usr/bin/env python ''' Module that update the software and its databases ''' import os import shutil from sys import exit import os.path import tarfile import requests from bs4 import BeautifulSoup from ...base import * from ...sentry import sentry from ...clint import progress class Updater(object): def __i...
Python
lib/bbro/core/update.py
PhantomGhosts/BigBrother
mit
3,968
121
codeparrot/github-code
4414face4613939406af5872a97f2d9aee9fc7299d010de76b60fdd9d7d774fe
<?php namespace Belvedere\Basecamp\Sections; use Belvedere\Basecamp\Models\Question; class Questions extends AbstractSection { /** * Index all the questions. * * @param int $page * @return \Illuminate\Support\Collection */ public function index($page = null) { $url = sp...
PHP
src/Sections/Questions.php
CoopBelvedere/laravel-basecamp-api
mit
953
43
codeparrot/github-code
657bdeda05abc9d0d8b1779c0be8a4b9a9c6d8339942579aca64b96411e9d041
<?php /* * This file is part of the Basecamp Classic API Wrapper for PHP 5.3+ package * * (c) Christian Hoegl <chrigu@sirprize.me> */ namespace Sirprize\Basecamp\Milestone\Entity\Observer; use Sirprize\Basecamp\Milestone\Entity; /** * Abstract class to observe and print state changes of the observed milestone ...
PHP
lib/Sirprize/Basecamp/Milestone/Entity/Observer/Abstrakt.php
sirprize/basecamp
mit
3,539
101
codeparrot/github-code
45e1ac388d7db1afff9a195301b39e3e3555b59933e5394d0c96292dfb6cf014
#include<stdio.h> void swapValue(int arr[], int i, int j) { int t = arr[i]; arr[i] = arr[j]; arr[j] = t; } void bubbleSort(int arr[], int arrLength) { int indexOfLastUnsortedElement = arrLength; int swapped = 0; while (swapped == 0) { swapped = 1; for (int i = 0; i < indexO...
C
live/sortviewer/code/Sort.c
HoanChan/HoanChan.github.io
mit
2,800
116
codeparrot/github-code
96e42008bd6eb0b0513d5ed04e6ec8dce66394ee48d4e983ba71bc389367ebe5
require 'awesome_nested_set/columns' require 'awesome_nested_set/model' module CollectiveIdea #:nodoc: module Acts #:nodoc: module NestedSet #:nodoc: # This acts provides Nested Set functionality. Nested Set is a smart way to implement # an _ordered_ tree, with the added feature that you can select ...
Ruby
lib/awesome_nested_set/awesome_nested_set.rb
tcjuan/awesome_nested_set
mit
6,119
142
codeparrot/github-code
d3d5a7673c070d499781efe5c3714d26ea49f8c00dae135cdc6eeea95b00daa2
package br.pedroso.starwars; import android.app.Application; import br.pedroso.starwars.di.application.ApplicationComponent; import br.pedroso.starwars.di.application.ApplicationModule; import br.pedroso.starwars.di.application.DaggerApplicationComponent; /** * Created by felipe on 02/03/17. */ public class StarWa...
Java
app/src/main/java/br/pedroso/starwars/StarWarsCompanionApplication.java
felipepedroso/StarWarsCompanionApp
mit
855
33
codeparrot/github-code
37add58335748d783a54bc2f9a713949ec66777a911d566ae45ac19162db087b
module Sorcery module Controller module Submodules # # Access Token submodule # # Registers an alternative login source which is used to handle # the user's client requests by checking the validity of the api_access_token. # # It also register two methods to be run after ...
Ruby
lib/sorcery/controller/submodules/access_token.rb
kristianmandrup/sorcery
mit
3,392
97
codeparrot/github-code
7f4dcce735335b6fa484213d4e1227d4fe326d547c49fd185eb38a952fb00a40
#!/usr/bin/python from heapq import heapify, heapreplace class Solution(object): def kthSmallest(self, matrix, k): """ :type matrix: List[List[int]] :type k: int :rtype: int """ if len(matrix) is 1: return matrix[0][0] z = zip(*matrix[1:]) ...
Python
medium/378.py
pisskidney/leetcode
mit
745
33
codeparrot/github-code
1a0f442b1cce0253cbe075531e0544d4e8921fa51cd0c385707435882003ef0d
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; namespace Highway.Data { /// <summary> /// This query is tied to the implementation of EntityFramework /// </summary> public class AdvancedQuery<T> : QueryBase, IQuery<T> { /// <summary> ...
C#
Highway/src/Highway.Data.EntityFramework/QueryObjects/AdvancedQuery.cs
daveh551/Highway.Data
mit
5,834
151
codeparrot/github-code
3ad5caa2f897db3472b6cd8ea9a1eb2b85f980a653af0fd60c6624f25bd39056
import com.github.phf.jb.Bench; import com.github.phf.jb.Bee; /** * Comparing basic operations on integers. The one thing that still seems to be * true these days is that division/modulo is a LOT slower than anything else. */ public final class BasicOps { private static final int COUNT = 1 << 21; public sta...
Java
examples/BasicOps.java
phf/jb
mit
3,780
167
codeparrot/github-code
93fa5ad5679dcd87407e56d6ede01da3a07a9daae78c22b4bbe3674e12c5fef9
/* Copyright (c) 2011 Danish Maritime Authority. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
Java
android/src/main/java/de/wellenvogel/avnav/aislib/messages/message/binary/BroadcastAreaNotice.java
wellenvogel/avnav
mit
1,329
43
codeparrot/github-code
1cd1a48d3f77ef3ceddeb0e8d8774d38ee23c9e76a0f2e973fae71b89276d54a
import json, sys, glob, datetime, math, random, pickle, gzip import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm import chainer from chainer import computational_graph as c from chainer import cuda import chainer.functions as F from chainer import optimizers class AutoEncoder: def __init...
Python
src/chainer1.7/ae/train.py
miyamotok0105/deeplearning-sample
mit
2,598
86
codeparrot/github-code
d63fd4d04798ecaf4991fcb48321d83c7e706d1e0a728a3c09dfa04e3f4d5cae
package org.alltiny.chorus.action; import org.alltiny.chorus.ApplicationProperties; import org.alltiny.chorus.model.SongModel; import org.alltiny.chorus.xml.XMLReader; import javax.swing.*; import javax.swing.filechooser.FileFilter; import java.awt.event.ActionEvent; import java.io.File; import java.io.FileInputStrea...
Java
chorus/src/main/java/org/alltiny/chorus/action/OpenFromFileAction.java
alltiny/alltiny-chorus
mit
2,885
72
codeparrot/github-code
99a0b09cd61b10fa944f16790627280c07feebdaa73baf10bd05c47ff3e04fd9
package net.artsy.app; import android.app.Application; import android.content.Context; import com.appboy.AppboyLifecycleCallbackListener; import com.segment.analytics.android.integrations.adjust.AdjustIntegration; import com.segment.analytics.Analytics; import com.facebook.react.PackageList; import com.facebook.react...
Java
android/app/src/main/java/net/artsy/app/MainApplication.java
artsy/eigen
mit
3,372
98
codeparrot/github-code
65527022b8af2e031572c57f0cf1e47854426ba5b476f194295cfe2c66b31f8f
--- === Quitter === -- -- Quits apps if they have not been used since a specified amount of time. local obj = {} obj.__index = obj -- Metadata obj.name = "Quitter" obj.version = "0.1" obj.author = "Alpha Chen <alpha@kejadlen.dev>" obj.license = "MIT - https://opensource.org/licenses/MIT" obj.logger = hs.logger.new(...
Lua
.hammerspoon/Spoons/Quitter.spoon/init.lua
kejadlen/dotfiles
mit
2,666
115
codeparrot/github-code
6d16839c283acf52074bba73702d5f2822e74954481b3490422e38c9bb9c2226
using System; using System.Collections.Generic; using ALinq; using ALinq.Mapping; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Text; namespace ALinq.SqlClient { internal class SqlBinder { // Fields ...
C#
ALinq/SqlClient/SqlBinder.cs
ansiboy/ALinq
mit
80,340
1,677
codeparrot/github-code
ca2167a14f66436e22683c8f3fdc5dab1f4ad71977379af00078a7f05fe26c81
package com.fang.page import com.fang.FriendModel import com.thoughtworks.binding.{Binding, dom} import org.scalajs.dom.raw.{Event, Node} import com.fang.ImplicitConvert._ import com.fang.ajax.{FriendAPI, UserAPI} import com.fang.data.AjaxResult.{Error, Ok} import com.fang.page.DomUtil.bindInputValue import com.fang.se...
Scala
js/src/main/scala/com/fang/page/FriendPage.scala
TianhaoFang/online-go
mit
7,083
217
codeparrot/github-code
f56e50eaf23dffac1cc5b5390c2a551d73df452d032a926ea9bca5bb658bef08
var Q = require('q'); var uuid = require('uuid'); var crypto = require('../../../../crypto/crypto'); function Connect() { } var connect = new Connect(); module.exports = connect; Connect.prototype.init = function(letter, handler) { console.log(letter); var deferred = Q.defer(); var back_letter = { ...
JavaScript
lib/core/directive/net.connect/client/connect.js
xunull/letter
mit
1,432
62
codeparrot/github-code
66efeefffd48946fa80243b625e084ecaa7e3f893f88ca4d9e6538b531f26bce
/* * Copyright 2012-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
Java
src/test/java/samples/websocket/echo/SampleWebSocketsApplicationTests.java
AndyObtiva/collaborative-word-processor
mit
3,891
115
codeparrot/github-code
d7a4658ad40fef88f5353616182271c2af2e8b848422695f63786f090f2d95e0
'use strict'; const fetchUrl = require('./fetchUrl'); /** * @param {Function} fetch - fetch API compatible function * @param {string} source * @param {Object} [fetchOptions={}] * @returns {Promise.<DefinitionProvider>} */ function urlProviderFactory (fetch, source, fetchOptions = {}) { let urlProvider = so...
JavaScript
src/urlProviderFactory.js
Storyous/features-js
mit
1,632
52
codeparrot/github-code
5179e2cb32af3e3a3c001271b6896bdaabbd90fbbe06d5546f9cd9e0d626b7e7
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.messaging.servicebus.administration.models; import com.azure.core.util.logging.ClientLogger; import com.azure.messaging.servicebus.ServiceBusMessage; import java.util.HashMap; import java.util.Map; /** ...
Java
sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/administration/models/SqlRuleFilter.java
Azure/azure-sdk-for-java
mit
3,660
103
codeparrot/github-code
9dc92c0e0443c628366eadb68ba3b3c79319430df6dde7bea8aa166643ee10ec
<?php namespace Roots\Sage\Extras; add_filter('single_product_large_thumbnail_size', __NAMESPACE__ . '\\pregit_single_product_thumb_size'); function pregit_single_product_thumb_size() { return 'full'; } remove_all_actions('woocommerce_after_single_product_summary'); remove_action('woocommerce_single_product_summa...
PHP
public_html/app/themes/pregit/lib/woocommerce.php
Kilbourne/pregit
mit
3,215
87
codeparrot/github-code
cb92c3f9ca2eb5ab8d8c04ff02d9ce8f72c57aa586c86b97ed9ee381fbabe1ec
<?php namespace Arrilot\BitrixModels\Models; use Arrilot\BitrixModels\Exceptions\ExceptionFromBitrix; use Arrilot\BitrixModels\Queries\BaseQuery; use LogicException; abstract class BitrixModel extends BaseBitrixModel { /** * Bitrix entity object. * * @var object */ public static $bxObject...
PHP
src/Models/BitrixModel.php
arrilot/bitrix-models
mit
6,420
270
codeparrot/github-code
5c6917178ae55b55527da78521f756a38174361cab854b7ba1beaefbfb06f349
// Deployment Framework for BizTalk Tools for Visual Studio // Copyright (C) 2008-Present Thomas F. Abraham. All Rights Reserved. // Licensed under the MIT License. See License.txt in the project root. using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; namespace Deploymen...
C#
src/AddIn.ProjectWizard/DeploymentOptions.cs
BTDF/ToolsForVisualStudio
mit
10,402
213
codeparrot/github-code
c960a065bf06016aa43d118525e3fa4acaa6729bb35fd1a18e6aba8720263e38
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Exploring Deep Learning Methods</title> <meta name="description" content="Initial presentation of literature review"> <meta name="author" content="Andreas Koestler"> <meta name="apple-m...
HTML
index.html
AndreasKostler/presi10042015
mit
16,694
490
codeparrot/github-code
c66e9ea941f66715365b09c7e5f4099d376587b6f23fa0ba79b151ae5d551868
// Copyright 2021 Phyronnaz #include "VoxelExample_FloatingIslandOnion.h" PRAGMA_GENERATED_VOXEL_GRAPH_START using FVoxelGraphSeed = int32; #if VOXEL_GRAPH_GENERATED_VERSION == 1 class FVoxelExample_FloatingIslandOnionInstance : public TVoxelGraphGeneratorInstanceHelper<FVoxelExample_FloatingIslandOnionIns...
C++
Source/VoxelGraph/Private/Examples/VoxelExample_FloatingIslandOnion.cpp
Phyronnaz/MarchingCubes
mit
47,494
1,312
codeparrot/github-code
0b079e9fad27bbb68bb5778e47028298c1a1ecfc210318ada659af6210da1e94
#include "llvm/Pass.h" #include "llvm/IR/Module.h" #include "llvm/IR/IRBuilder.h" #include "llvm/IR/Function.h" #include "llvm/IR/Type.h" #include "llvm/IR/Instruction.h" #include "llvm/Support/raw_ostream.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/Transforms/IPO/PassManagerBuilder.h" #include "llvm/IR/In...
C++
count_bb/countBB/countBB.cpp
scott-walker-llnl/LLVM-SimPoints
mit
3,049
110
codeparrot/github-code
5d824e31a391bebb5cfe854fc820ebaa6708bd0fa79b3ac8d4a14668e656485d
package edu.nyu.cs.cs2580.utils; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.InetSocketAddress; import java.net.URI; import java.util.HashMap; import java.util.List; import java.util.Map; import com.sun.net.httpserver.Authe...
Java
src/edu/nyu/cs/cs2580/utils/FakeHttpExchange.java
owwlo/WebSearchEngine
mit
2,692
126
codeparrot/github-code
52c1425acd4746654b10198dc829e9e13a5874d03eb8b397fc21442ba0c8f305
'use strict'; /** * @ngdoc function * @name yeoprojectApp.controller:MiembrosCtrl * @description * # MiembrosCtrl * Controller of the yeoprojectApp */ angular.module('yeoprojectApp') .controller('MiembrosCtrl', function ($scope,$http,$modal) { $http.get('http://localhost:9000/miembros.json').success(functio...
JavaScript
yeoproject/app/scripts/controllers/miembros.js
superjosan/PrototipoYeoman
mit
1,787
64
codeparrot/github-code
db7470172b221051ce8f77d380703a473b63dac4501730ffa0d1fa64703e8153
package co.simplon.mydiet.model.entity; import java.io.Serializable; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Inheritance; import javax.persistence.InheritanceType; import javax.persistence.Join...
Java
my-diet/src/main/java/co/simplon/mydiet/model/entity/DietComponent.java
turbo-xav/hello-world
mit
1,704
88
codeparrot/github-code
d71c230244d12164a8c3458fe9e02118459ab2ebcb5f64aff80d27c6efbab261
""" This file contains code for working on lists and dictionaries. """ def moreThanOne(dict, key): """ Checks if a key in a dictionary has a value more than one. Arguments: dict -- the dictionary key -- the key Returns: True if the key exists in the dictionary and the value is at least one, otherwise...
Python
utilities/lists.py
ephracis/hermes
mit
1,117
48
codeparrot/github-code
1dd05c1975ad3c892a91ab3027bf37fa1a42e6d51cb7aa491a07a3bd3a4705d2
#include "aligned_storer.h" #include <cstddef> template<typename T> class AB; ///// length and alignment information template <typename TT> class LenAlign { template<typename T> friend class AB; static const std::size_t len; static const std::size_t align; }; template<> class LenAlign<int> { te...
C
3_template/ab.h
ajneu/pimpl_placement_new
mit
1,209
52
codeparrot/github-code
3ab2786dc1353f0b1c7a942f65a47da8b52030a92054bc97bc3ca6863735ead3
\documentclass[12pt, a4paper]{article} \usepackage{amssymb, amsmath} \usepackage[utf8]{inputenc} \usepackage{fullpage} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \usepackage{hyperref} \usepackage{parskip} \usepackage{url} \author{Manuel Haid (1131404) \\ Thomas Mauerhofer (1031957) \\ Matthia...
TeX
docs/projectplan/projectplan.tex
dumfug/timeline
mit
8,007
149
codeparrot/github-code
feeff0aa3cfbd22d31ab2f9165e3fbbdc58cd23d20322bf542b8264f0d171c35
import xs from 'xstream'; import { forall, integer, assert, Options } from 'jsverify'; import { VNode, div, p } from '@cycle/dom'; import { withTime } from 'cyclejs-test-helpers'; const htmlLooksLike = require('html-looks-like'); const toHtml = require('snabbdom-to-html'); import * as moment from 'moment'; import view...
TypeScript
test/controls.test.ts
olpeh/meeting-price-calculator
mit
2,904
107
codeparrot/github-code
cd764eea44175543d6c3f73b29da5971473923e246b36c641b018852d1b3ad76
#include "logger.h" #ifdef _WIN32 #include <Windows.h> #include <Shlobj.h> #endif Logger& Logger::instance() { auto getLogfilename = []() { #ifdef _WIN32 wchar_t logfileDir[MAX_PATH] = {}; SHGetFolderPathW(0, CSIDL_LOCAL_APPDATA | CSIDL_FLAG_CREATE, NULL, SHGFP_TYPE_CURRENT, reinterpret_cast<LPWS...
C++
logger.cpp
averkhaturau/Logger
mit
1,298
47
codeparrot/github-code
6cdb2c022c07d954b536f6202c60503ee731d6fca3cf1505e42c23638f1d9f12
package com.world.repository; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import org.slf4j....
Java
src/main/java/com/world/repository/StreetRepository.java
aurus-nsk/world
mit
4,436
123
codeparrot/github-code
5142cea2c9b24421bd314d7f89c4a42695c1c538417f5c01c0ccdc286904891c
package will.study.thread; import java.util.HashMap; import java.util.Map; import java.util.Random; /** * Created by will on 16/8/29. */ public class ScopeShareData { private static int data = 0; private static Map<Thread, Integer> threadData = new HashMap<Thread, Integer>(); public static void main(S...
Java
Thread/src/main/java/will/study/thread/ScopeShareData.java
WillChen5/Study
mit
1,264
46
codeparrot/github-code
9332c606749cb9ec94efd4bf1b9acae304fd2e57f4d7748baa0838d119aa2a14
(function(DOM, COMPONENT_CLASS) { "use strict"; if ("orientation" in window) return; // skip mobile/tablet browsers // polyfill timeinput for desktop browsers var htmlEl = DOM.find("html"), timeparts = function(str) { str = str.split(":"); if (str.length === 2) { ...
JavaScript
src/better-timeinput-polyfill.js
chemerisuk/better-timeinput-polyfill
mit
4,655
111
codeparrot/github-code
d8146c09b672834b09077f7bc0335c9075bb06630f16d232dcc9011a27c11d22
<!DOCTYPE html> <!-- saved from url=(0071)http://www.lanmaster53.com/2011/05/7-linux-shells-using-built-in-tools/ --> <html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta charset="utf-8"> <title>7 Linux Shells Using Built-in Tools</title> <meta name="author" ...
HTML
misc/info/7 Linux Shells Using Built-in Tools.html
chrisbensch/scripts
mit
14,276
277
codeparrot/github-code
b33c26f70fde500f978df69de2737189e025a6b9aa083027cb6ae69779feabc9
<?php namespace GroupByInc\API\Model; use JMS\Serializer\Annotation as JMS; class PageInfo { /** * @var int * @JMS\Type("integer") */ public $recordStart; /** * @var int * @JMS\Type("integer") */ public $recordEnd; /** * @return int The record offset for this search and navigation sta...
PHP
src/API/Model/PageInfo.php
groupby/api-php
mit
952
56
codeparrot/github-code
e991eaa0424dab0d74dc9e87d9e78d6a82dafa1a797c268587330abbb8c52aa8
/* Copyright (c) 2010-2015 Vanderbilt University * * 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, m...
Java
AmmoCore/src/main/java/edu/vu/isis/ammo/core/distributor/ResponseExecutor.java
isis-ammo/ammo-core
mit
4,142
108
codeparrot/github-code
74952ec7de51d16bd98c92c3194f659ad6feae6e284f80ed5d1ca259c0a0d2c0
package springcourse.exercises.exercise9.controller.config; import com.fasterxml.jackson.databind.ObjectMapper; import com.knappsack.swagger4springweb.controller.ApiDocumentationController; import com.knappsack.swagger4springweb.util.ScalaObjectMapper; import com.wordnik.swagger.model.ApiInfo; import org.springframewo...
Java
exercise/src/main/java/springcourse/exercises/exercise9/controller/config/DocumentationConfig.java
amitt03/spring-course-exercise-9
mit
3,509
81
codeparrot/github-code
2eea7c70353ff57d320f63bc5be586c97274f77be96b2413b8ca62c01aa53d2a
// // yl_token.cpp // // Created by Edmund Kapusniak on 15/03/2014. // Copyright (c) 2014 Edmund Kapusniak. All rights reserved. // #include "yl_token.h" #include <assert.h> #include <unordered_map> #include <unordered_set> #include <stringf.h> #include <symkey.h> std::string yl_token::get_spelling() { ...
C++
ylang/source/parser/yl_token.cpp
edmundmk/ylang
mit
7,073
144
codeparrot/github-code
58f15905544643b3faaf3deb507282cea6f9e9a3f7a21e274721beecc0cdb78e
class CoursemologyFormatter def self.format(text) '<p>' + sanitize(text) + '</p>' end def self.sanitize(text) whitelist = { :elements => %w[ a abbr b bdo blockquote br caption cite code col colgroup dd del dfn div dl dt em figcaption figure h1 h2 h3 h4 h5 h6 hgroup i img ins kbd li ...
Ruby
app/modules/coursemology_formatter.rb
nusedutech/coursemology.org
mit
2,325
65
codeparrot/github-code
6d1fb3af67c98798e677ab3039d5811329d26de95df17606bfc97805d9db321b
#ifndef _ASM_X86_PTRACE_H #define _ASM_X86_PTRACE_H #include <asm/segment.h> #include <asm/page_types.h> #ifndef __ASSEMBLY__ #ifdef __i386__ struct pt_regs { unsigned long bx; unsigned long cx; unsigned long dx; unsigned long si; unsigned long di; unsigned long bp; unsigned long ax; unsigned long ds; unsig...
C
Model/asm/ptrace.h
MontyCarter/chauffeur
mit
7,059
260
codeparrot/github-code
72bbc938af14be6c6899e9a4cc29d9164ba989dc29fe1503df3bd013099249a4
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>hammer: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
HTML
clean/Linux-x86_64-4.03.0-2.0.5/released/8.6/hammer/1.2+8.11.html
coq-bench/coq-bench.github.io
mit
7,364
180
codeparrot/github-code
db7bcd0ebc7bd5df51315d0a0d55abb01c6559c04864e22c3eb544ebe9877485
<?php namespace CodeGen\Functionality; trait Typeable { protected $type; public static $recognizedTypes = array('string', 'array', 'bool', 'boolean', 'int', 'integer', 'float', 'double'); public function setType($type) { if (! is_string($type)) { throw new \InvalidArgumentException("Expecting string, give...
PHP
src/Functionality/Typeable.php
wells5609/CodeGenerator
mit
939
44
codeparrot/github-code
de4765255996c357e08755ec4d987a3dc76d98687bcaab9fd4308d0ac44a0b3f
#include "f2c.h" #include "blaswrap.h" /* Common Block Declarations */ struct { integer infot, nout; logical ok, lerr; } infoc_; #define infoc_1 infoc_ struct { char srnamt[6]; } srnamc_; #define srnamc_1 srnamc_ /* Table of constant values */ static integer c__2 = 2; static integer c_n1 = -1; static...
C
nvxs/CLAPACK/TESTING/LIN/serrvx.c
nagadomi/animeface-2009
mit
32,424
863
codeparrot/github-code
b5c3f64449a7dbc6135bacacb8d029814cd81782be35b34ee215fe3d0cc0099e
var app = require('app'); // Module to control application life. var BrowserWindow = require('browser-window'); // Module to create native browser window. // Report crashes to our server. // require('crash-reporter').start(); // Keep a global reference of the window object, if you don't, the window will // be close...
JavaScript
app/main.js
robinbolton/StreamShell
mit
2,241
68
codeparrot/github-code
0be381eff60c59987a0017373465a0a0f35e6b1c3ae3a0fd7b9b11a8f70fa01d
// Generated on 2015-03-17 using generator-angular 0.11.1 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // Load grunt tasks a...
JavaScript
Gruntfile.js
kokeshii/UrgeZapper
mit
11,066
461
codeparrot/github-code
caa552663e237ccacb08f273c518488c61bd65859a60d6297ea40a0c4c125812
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Drawing; using aibio.Test.Fixtures; using aibio.Units.Sensors; using NUnit.Framework; namespace aibio.Test { [TestFixture] public class SensorTests { ...
C#
aibio.Test/SensorTests.cs
ARMmaster17/Aivolution
mit
1,844
69
codeparrot/github-code
ff21925936bea733fdd6a75e6b49ed2a372ecbe558caf587e6f5ac60a423d392
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head profile="http://www.w3.org/2005/10/profile"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>ACE - Ajax.org Cloud9 Editor</title> <meta name="description" content=""/> <meta name="keyw...
HTML
public/js/ace/index.html
ishandutta2007/test
mit
9,622
133
codeparrot/github-code
0a01981f9e51766eb8a5f5ddc0a0ed8f0a6df2dfd0748728c913a51842095bda
/* * Copyright (C) 2015-2016 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditi...
C++
WebLayoutCore/Source/WebCore/page/WheelEventDeltaFilter.cpp
gubaojian/trylearn
mit
4,073
129
codeparrot/github-code
5b7ffe749b8b26ff39c35714f32d7d0c4aeeb25677caf90be64abe540cf6fea5
/*jslint node: true */ "use strict"; var async = require('async'); var db = require('./db.js'); var constants = require('./constants.js'); var conf = require('./conf.js'); var objectHash = require('./object_hash.js'); var ecdsaSig = require('./signature.js'); var _ = require('lodash'); var storage = require('./storage....
JavaScript
signed_message.js
kakysha/byteballcore
mit
9,071
260
codeparrot/github-code
c6d3aa4ed4360e0756ea2b0c847bce8fedfd2435eff11976888123a9193dc4f7
<?php /** * @author Dennis Castelijns <admin@dhjcastelijns.nl> */ class Database { // Class properties. private static $_instance = null; private $_pdo, $_query, $_error = false, $_results, $_count = 0; // Construct an instance of the PDO connection. private function __construct() { if (Config::setting...
PHP
assets/php/classes/Database.php
tdeleest/konnector
mit
3,886
157
codeparrot/github-code
6ee08266300508244f966999a0d8632b910e61dc831c694f28329595f86e3925
//! HTTP Service Dispatcher use std::{io, net::SocketAddr, str::FromStr, sync::Arc}; use hyper::{ header::{GetAll, HeaderValue}, http::uri::{Authority, Scheme}, upgrade, Body, HeaderMap, Method, Request, Response, StatusCode, Uri, Version, }; use log::{debug, error, trace};...
Rust
crates/shadowsocks-service/src/local/http/dispatcher.rs
shadowsocks/shadowsocks-rust
mit
13,246
388
codeparrot/github-code
0004914ed344ae61a0787ba4a3c3bc40dc324569bc297497f9dc17507515ae7f
require File.expand_path('../boot', __FILE__) require 'rails/all' Bundler.require require "jsboot-rails" module Dummy class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers...
Ruby
test/dummy/config/application.rb
Kajabi/jsboot-rails
mit
2,561
60
codeparrot/github-code
30c4a7c6561bc244d938d6720393bb046473d2c746ec9af1c1b798ed322a8f4f
import { Directive, forwardRef, Attribute, Input } from '@angular/core'; import { Validator, FormControl, AbstractControl, NG_VALIDATORS, NG_ASYNC_VALIDATORS } from '@angular/forms'; import { Observable } from "rxjs"; import { VerifyCodeService } from '../services/verify-code.service'; // 登录服务 @Directive({ select...
TypeScript
src/app/directives/verifyCode-validator.directive.ts
ar-insect/adminForNg2
mit
1,446
40
codeparrot/github-code
d58bb2eb7b688caaa569b3fc1ae8f47001f8ed918ac4a5deada70d752e675418
# ~*~ encoding: utf-8 ~*~ require 'grit' require 'ostruct' require 'shellwords' module Gollum def self.set_git_timeout(time) Grit::Git.git_timeout = time end def self.set_git_max_filesize(size) Grit::Git.git_max_size = size end module Git class Actor attr_accessor :name, :em...
Ruby
lib/grit_adapter/git_layer_grit.rb
gollum/grit_adapter
mit
9,961
421
codeparrot/github-code
d9d1eb4c1c1e271518366620dc41b6c7b677ff8132bab95201bee2213cf03767
Ext.define('Ext.slider.Widget', { extend: 'Ext.Widget', alias: 'widget.sliderwidget', // Required to pull in the styles requires: [ 'Ext.slider.Multi' ], cachedConfig: { vertical: false, cls: Ext.baseCSSPrefix + 'slider', baseCls: Ext.baseCSSPrefix + ...
JavaScript
ext/src/slider/Widget.js
lucas-solutions/work-server
mit
17,103
508
codeparrot/github-code
aa6fd4fec16d1f66d5cd7790131192e8dcf7ff73c482600d082c109f531d8951
#!/usr/bin/env node var util = require('util'), http = require('http'), fs = require('fs'), url = require('url'); var DEFAULT_PORT = 8000; function main(argv) { new HttpServer({ 'GET': createServlet(StaticServlet), 'HEAD': createServlet(StaticServlet) }).start(Number(argv[2]) || DEFAULT_PORT)...
JavaScript
BeagleBoneBlack/servo-beaglebone-black/websocket-client/web-server.js
go-lab/smart-device
mit
6,527
244
codeparrot/github-code
d95459fdc9077a4882f5b143dba1320a2785af8452536c050a13b7de63ce6a65
# -*- coding: utf-8 -*- # desc = 'Color bars' phash = '' def plot(): import matplotlib as mpl from matplotlib import pyplot as pp from matplotlib import style import numpy as np # Make a figure and axes with dimensions as desired. fig, ax = pp.subplots(3) # Set the colormap and norm to co...
Python
test/testfunctions/colorbars.py
dougnd/matplotlib2tikz
mit
2,797
88
codeparrot/github-code
0be38af906aa627590f266b411f661adec860f5cd68c5837841757c9cccde41e
<?php /** * TErrorHandler class file * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.pradosoft.com/ * @copyright Copyright &copy; 2005-2013 PradoSoft * @license http://www.pradosoft.com/license/ * @version $Id: TErrorHandler.php 3245 2013-01-07 20:23:32Z ctrlaltca $ * @package System.Exceptions ...
PHP
protected/lib/Exception/TErrorHandler.php
jajangtea/portalekampus
mit
14,911
436
codeparrot/github-code
e7f93fd0c9aa8030e7831ec7ec116ec1252282876538373eb7abf77c781f0e41
import { domReady, transitionFromClass, transitionToClass, readFileAsText } from '../utils'; import Spinner from './spinner'; import { EventEmitter } from 'events'; export default class MainMenu extends EventEmitter { constructor() { super(); this.allowHide = false; this._spinner = new Spinner()...
JavaScript
src/js/page/ui/main-menu.js
joshlevi/svgomg
mit
3,618
140
codeparrot/github-code
d810fdea8a465437e96324a3f92a03abecfc74f9faaffb332e1ed4ecd5a15fcd
<?xml version="1.0" ?><!DOCTYPE TS><TS language="da" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Bitcoin</source> <translation>Om Bitcoin</translation> </message...
TypeScript
src/qt/locale/bitcoin_da.ts
killerstorm/bitcoin
mit
92,653
2,668
codeparrot/github-code
a072a69bb640d095cea2754db11456dbe7b0e70a39406eb133f155b061fdfdcb
class UsersController < ApplicationController before_action :authenticate_user! def dashboard @user = current_user @items = Item.where(user: @user) @rented_items = RentedItem.where(user: @user) end def edit @user = current_user end def update if current_user.update_attributes(user_par...
Ruby
app/controllers/users_controller.rb
kelleystephens/nacho-swag
mit
630
34
codeparrot/github-code
c650fda65cc3d5abd649cecc8760493690b966b1e627f6820d97da22d958701a
package discord import java.net.URLEncoder import java.nio.charset.StandardCharsets import javax.inject.Singleton import common.ref.MtrConfigRef import com.google.inject.Inject import play.api.inject.ApplicationLifecycle import sx.blah.discord.api.events.EventDispatcher import sx.blah.discord.api.{ClientBuilder, IDis...
Scala
modules/discord/app/discord/DiscordBot.scala
Cobbleopolis/MonsterTruckBot
mit
2,758
74
codeparrot/github-code
57d7c4d20d545977cdae1f483c5eee725a824acfcd2cf6dabe8e225dc57165bf
// MIT License // Copyright (c) 2011-2016 Elisée Maurer, Sparklin Labs, Creative Patterns // Copyright (c) 2016 Thomas Morgner, Rabbit-StewDio Ltd. // 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 ...
C#
src/Steropes.UI/Widgets/KeyBox.cs
RabbitStewDio/Steropes.UI
mit
2,968
102
codeparrot/github-code
654ccf78733866ed480939d9d561938b847fa0b09eb1e0cd82a01303eb1af1a2
using Microsoft.VisualStudio.Shell; using OpenInApp.Command; using OpenInApp.Common.Helpers; using System.Collections.Generic; using System.ComponentModel; using System.Windows.Forms; using OpenInApp.Menu; namespace OpenInVS2017Enterprise.Options.VS2017Enterprise { public class GeneralOptions : DialogPage, IGener...
C#
src/OpenInVS2017Enterprise/Options/GeneralOptions.cs
GregTrevellick/OpenInApp.Launcher
mit
5,791
163
codeparrot/github-code
1a6c4e83f092b8801dd1d7c97474485dabc848ec9e74f62d0cfb2640f34efa50
<?php /* * admin42 * * @package admin42 * @link https://github.com/kiwi-suite/admin42 * @copyright Copyright (c) 2010 - 2017 kiwi suite (https://www.kiwi-suite.com) * @license MIT License * @author kiwi suite <tech@kiwi-suite.com> */ namespace Admin42\TableGateway; use Core42\Db\TableGateway\AbstractTableGat...
PHP
src/TableGateway/LoginHistoryTableGateway.php
raum42/admin42
mit
874
46
codeparrot/github-code
d69b5865defbfdbca99c398937c2c922be0651a2dab3a7668580eee8cbd94c71
using Signum.Entities.Authorization; using Signum.Entities.Basics; using Signum.Entities.DynamicQuery; using Signum.Entities.UserAssets; using System.ComponentModel; using System.Xml.Linq; namespace Signum.Entities.UserQueries; [EntityKind(EntityKind.Main, EntityData.Master)] public class UserQueryEntity : ...
C#
Signum.Entities.Extensions/UserQueries/UserQueryEntity.cs
signumsoftware/framework
mit
20,877
545
codeparrot/github-code
8d66fd6884841e2be43efb11bc24e5273bdfe89e4e1b91ded3ee6e32cd233bc1
#ifndef _COMPUTE_RIGID_TRANSFORM_H_ #define _COMPUTE_RIGID_TRANSFORM_H_ #include <Eigen/Dense> #include <vector> //////////////////////////////////////////////////////////////////////////////////////////////////// /// @fn static bool ComputeRigidTransform(const std::vector<Eigen::Vector3d>& src, const std::vector<Ei...
C
src/ComputeRigidTransform.h
diegomazala/QtKinect
mit
5,443
175
codeparrot/github-code
68b8865908b44fda9e0aaa734e6a053f051a7da938ca6d2510a7712d9661adc8
/*************************************************************************/ /* editor_node.h */ /*************************************************************************/ /* This file is part of: */ /* ...
C
editor/editor_node.h
RebelliousX/Go_Dot
mit
25,753
855
codeparrot/github-code
b540cadda3167c373f56c6452617710efd3b49d59e7112a675c759937ff1eeb3
/* * Node.h * * Created on: Nov 6, 2013 * Author: jasonr */ #ifndef CORE_PARTITION_NODE_H_ #define CORE_PARTITION_NODE_H_ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include <vector> #include <sg/classPointers.h> #include <sg/node.h> #include "autoreg.h" #include "classPointers.h" #include "meshDat...
C
src/core/partitionNode.h
etiam/ov
mit
1,697
66
codeparrot/github-code
57f2dd5e86574dcd2f49ddbb18f43bbe2b7bf8d9b8beb93c3f7035b852868be5
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coqeal: 9 m 21 s 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.10.0/coqeal/1.0.1.html
coq-bench/coq-bench.github.io
mit
23,469
309
codeparrot/github-code
49b2deabe1525d29370aa7a0db7ab600d0e8aa6ef4fb72355e9b05a8c094cfef
var assert = require('assert'), _ = require('underscore'), request = require('request'), config = require('../../config/'), apiHost = 'http://localhost:' + config.port + '/api'; describe('api', function () { describe('users', function () { // assuming that there are // 200+ testing records describ...
JavaScript
node/test/units/api.js
Jayin/SiyuanGroup
mit
1,478
59
codeparrot/github-code
b8bf7b9d4aab3fdd11405a83ffae79602ee4650326b6e6305a53fa8fd5970f4c
// Generated on 2015-04-11 using // generator-webapp 0.5.1 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // If you want to recursively match all subfolders, use: // 'test/spec/**/*.js' module.exports = function (grunt) { // Time how long tasks t...
JavaScript
Gruntfile.js
spaceselfie/spaceselfie
mit
9,376
390
codeparrot/github-code
d5b45dc30b337512c09ec2630e4ad1f7a91ebe4bc51c176d833462f575b0eda1
angular.module('gitphaser').controller('ProfileController', ProfileCtrl); /** * @ngdoc object * @module gitphaser * @name gitphaser.object:ProfileCtrl * @description Exposes GitHub.me profile object or account object to the profile template. * Governs the `/tab/profile` and `others/:username` rout...
JavaScript
www/js/Controllers/profile.js
git-phaser/git-phaser
mit
2,628
83
codeparrot/github-code
b788f887dd3f7d72ba854dc41f36ddff18a1a59bd69ca6a9b9bd486aa10c0faf
if (typeof exports === 'object') { var assert = require('assert'); var alasql = require('..'); } /* Test for issue #379 */ var test = 428; describe('Test ' + test + ' UUID()', function () { before(function () { alasql('CREATE DATABASE test' + test + ';USE test' + test); }); after(function () { alasql('DR...
JavaScript
test/test428.js
agershun/alasql
mit
873
39
codeparrot/github-code
2cd8ea9bdf2c9fea99807b2bbeb5f1174f15083528ba90c2002439fde055564b
''' plans.py ''' from forex_python.converter import CurrencyCodes from .base import Base class Plan(Base): ''' Plan class for making payment plans ''' interval = None name = None amount = None plan_code = None currency = None id = None send_sms = True send_invoices = True ...
Python
python_paystack/objects/plans.py
Chibuzor-IN/python-paystack
mit
1,566
53
codeparrot/github-code
3d51c2858c1ab26c57a1f34d330b8d784cdffb58a3f72a50b0d0ddf51b6e025a
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Loris...
HTML
docs/manual/loris.html
ketchupok/csound.github.io
mit
16,248
298
codeparrot/github-code
c6187322b5a065543a5b3b7ba1f009ac179ee4dd1749245d027469191480a5cc
<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="content-language" content="en" /> <meta name="description" content="actionhero.js" /> <link href='css/actionhero.css' rel='stylesheet' type='text/css'> <link rel="icon" href="favicon.ico"> <ti...
HTML
actionhero/public/chat.html
semiosis/electron-actionhero
mit
5,788
180
codeparrot/github-code
c0431990f94afc2037d131ebaf79c5eaa339de98928af1420a9ee49d3fe99f05
<?php namespace Entity; use Doctrine\Common\Collections\ArrayCollection; use Entity\BaseEntity as Base; /** * Category Model * * @Entity * @table(name="cf_category") * @author vu le hoang(hoangvu171819@gmail.com) */ class Category extends Base{ /** * @ManyToMany(targetEntity="Product", mappedBy="categorie...
PHP
application/models/Entity/Category.php
louisle/bookcolor
mit
815
48
codeparrot/github-code
305b68f228f58809ccd0cb939b7b246fe9d68e8dfece090df5e12d9f64c83481
package com.xeiam.xchange.bitstamp; import com.xeiam.xchange.bitstamp.dto.BitstampException; import com.xeiam.xchange.bitstamp.dto.account.*; import com.xeiam.xchange.bitstamp.dto.trade.BitstampOrder; import com.xeiam.xchange.bitstamp.dto.trade.BitstampUserTransaction; import si.mazi.rescu.ParamsDigest; import si.mazi...
Java
xchange-bitstamp/src/main/java/com/xeiam/xchange/bitstamp/BitstampAuthenticated.java
joansmith/XChange
mit
4,893
100
codeparrot/github-code
1c2e7bd96acfd59137f7b572a10283e495274bcdb9d134a82ccb4c17d57366df
#!/usr/bin/env python # -*- coding: UTF-8 -*- from __future__ import unicode_literals from jcconv import kata2hira, hira2kata from itertools import chain from printable import PrintableDict, PrintableList __by_vowels = PrintableDict(**{ u'ア': u'ワラヤャマハナタサカアァ', u'イ': u'リミヒニちシキイィ', u'ウ': u'ルユュムフヌツスクウゥ', ...
Python
kana.py
Saevon/AnkiHelpers
mit
6,823
292
codeparrot/github-code
f302cddd646934ec9fc02d700980855118f9dbe7f1c3af4a0541ad6a53511128
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <quic/codec/PacketNumberCipher.h> #include <folly/ssl/OpenSSLPtrTypes.h> namespace quic { class Aes128P...
C
quic/fizz/handshake/FizzPacketNumberCipher.h
facebookincubator/mvfst
mit
1,113
53
codeparrot/github-code
1b615c11bc59d1e39461dd3142c58e63beae459664239913ac1fcbde0cf4f6b8
// # Templates // // Figure out which template should be used to render a request // based on the templates which are allowed, and what is available in the theme // TODO: consider where this should live as it deals with channels, singles, and errors var _ = require('lodash'), path = require('path'), config = re...
JavaScript
versions/1.19.0/core/server/controllers/frontend/templates.js
kpsuperplane/personal-website
mit
5,174
169
codeparrot/github-code
db2cbf72a49154bd2069eebd41beb1fd058686ad9d831b9bbba768635d55e496
import loadable from "@loadable/component" import { graphql } from "react-relay" import { AppRouteConfig } from "v2/System/Router/Route" const GalleriesRoute = loadable( () => import(/* webpackChunkName: "partnersBundle" */ "./Routes/GalleriesRoute"), { resolveComponent: component => component.GalleriesRouteFr...
TypeScript
src/v2/Apps/Partners/partnersRoutes.ts
artsy/force
mit
1,231
51
codeparrot/github-code
17a609d9c4e82fd1fdd60ee13df0a48acecc84a6413eba5975e3faaa11fd4e5e
/** * Copyright (c) 2004-2011 QOS.ch * All rights reserved. * * 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...
Java
slf4j-simple/src/test/java/org/slf4j/AutomaticallyNamedLoggerTest.java
adorokhine/slf4j
mit
4,425
141
codeparrot/github-code
d66ec404ef46ee46831f080d9982a0dd00e4a7bd81a3d1726be58e45dbc2e5be
package model; import static org.junit.Assert.*; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.Map; import org.junit.Test; public class DaySleepDurationMapTest { private final String TEST_DATA_LOC...
Java
src/test/java/model/DaySleepDurationMapTest.java
seanhold3n/sleep-analytics
mit
4,061
140
codeparrot/github-code
ddfb9c8fedad2574cd4642fd4ea52509f37e768ac9162cfb4a070bdaf675c24a
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.ai.formrecognizer; import com.azure.ai.formrecognizer.administration.DocumentModelAdministrationClient; import com.azure.ai.formrecognizer.administration.DocumentModelAdministrationClientBuilder; import c...
Java
sdk/formrecognizer/azure-ai-formrecognizer/src/samples/java/com/azure/ai/formrecognizer/Authentication.java
Azure/azure-sdk-for-java
mit
9,042
169
codeparrot/github-code
2a2ce6da8f3cd096fab6bd37e58b987381e2ccdc916a372c333b8e692049f3c8
var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err...
JavaScript
lib/WebInspectorUI/v8/Views/TimelineDataGrid.js
artygus/webkit-webinspector
mit
24,614
572
codeparrot/github-code
4ce0a5539702afdc3caa42c0e126d48762fb119bbbe21419a15accf25d007e21
/******************************************************************************* * Copyright (c) 2000, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
Java
org.eclipse.gef/src/org/eclipse/gef/ui/actions/ZoomOutRetargetAction.java
archimatetool/archi
mit
1,198
36
codeparrot/github-code
de1078ce192a1acf2417b406e1a10946ebc2427cb3778ee4723efca5d8d27559
<?php namespace MyBuilder\Bundle\CronosBundle\Exporter; use MyBuilder\Bundle\CronosBundle\Annotation\Cron as CronAnnotation; use MyBuilder\Cronos\Formatter\Job; class AnnotationLineConfigurator { /** @var Job */ private $line; public function __construct(Job $line) { $this->line = $line; ...
PHP
Exporter/AnnotationLineConfigurator.php
mybuilder/cronos-bundle
mit
1,348
48
codeparrot/github-code
f408e0983e864cbcec910598e945f09bfd169fafb0f8ac927bc457302c4f5459
# = chainbraflo1link.rb # Copyright:: # Copyright (C) 2011 MISHIMA, Hiroyuki <missy at be.to / hmishima at nagasaki-u.ac.jp> # License:: The Ruby licence (Ryby's / GPLv2 dual) # # In the hg18 database, this table is actually separated # into "chr1_*", "chr2_*", etc. This class dynamically # define *::Chr1_*, *::C...
Ruby
lib/bio-ucsc/mm9/chaincanfam2link.rb
misshie/bioruby-ucsc-api
mit
3,124
83
codeparrot/github-code
bef437349ecba3a57a840dd92fd71ed9fa7bb1b67ba67ff7927b9fe3e7e121f2
using UnityEngine; using System.Collections; public class Dog : MonoBehaviour { [SerializeField] private AudioSource audio = null; [SerializeField] private Hands playerHands = null; [SerializeField] private Poop poopPrefab = null; [SerializeField] private Vector3 poopOffset = Vector...
C#
Assets/Scripts/Scenarios/DogRoom/Dog.cs
mentalnote/OldHabitsDieHarder
mit
1,322
55
codeparrot/github-code