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
ad0c5bbe7b8e93b969112d6d8b396f49ec3c488c378299789655251b2a238c48
// This file is provided under The MIT License as part of Steamworks.NET. // Copyright (c) 2013-2019 Riley Labrecque // Please see the included LICENSE.txt for additional information. // This file is automatically generated. // Changes to this file will be reverted when you update Steamworks.NET #if UNITY_ANDROID || ...
C#
Plugins/Steamworks.NET/types/SteamHTTP/HTTPRequestHandle.cs
Gert-Jan/Steamworks.NET
mit
1,954
66
codeparrot/github-code
e086f07cde1ddb3763051caf57b864e5b6cc0012b2dab288f7c4e6235fcb10a3
/* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ const _ = require("underscore") const path = require("path") const jade = require("jade") const fs = require("fs") const mo...
JavaScript
src/desktop/apps/editorial_features/test/components/venice_2017/templates.test.js
joeyAghion/force
mit
2,842
95
codeparrot/github-code
c1aaec48e36dc8081c8696b4cfab6218282071c4cc2f998d3e60a284869c1e68
package net.fortytwo.smsn.brain.model; import net.fortytwo.smsn.SemanticSynchrony; import net.fortytwo.smsn.brain.BrainTestBase; import net.fortytwo.smsn.brain.model.entities.Atom; import net.fortytwo.smsn.brain.model.pg.PGAtom; import org.junit.Test; import java.io.IOException; import java.util.Collection; import s...
Java
brain/src/test/java/net/fortytwo/smsn/brain/model/GetAtomsByAcronymTest.java
joshsh/extendo
mit
2,472
63
codeparrot/github-code
f4a4df176ee6fccf7b9c9b31b1ca39b4022bd210aa15a36928f14db5102e8a79
------------------------------------------------------------------------------- -- Importing modules ------------------------------------------------------------------------------- local IndicesEndpoint = require "elasticsearch.endpoints.Indices.IndicesEndpoint" --------------------------------------------------------...
Lua
src/elasticsearch/endpoints/Indices/GetWarmer.lua
DhavalKapil/elasticsearch-lua
mit
2,230
65
codeparrot/github-code
37efa828f23d345de17d397b2313f20411d7b26f35c860edb777a2df6a0c2224
#region Copyright // // DotNetNuke® - https://www.dnnsoftware.com // Copyright (c) 2002-2018 // by DotNetNuke Corporation // // 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 restri...
C#
Dnn.AdminExperience/Extensions/Content/Dnn.PersonaBar.Extensions/Components/Roles/RolesController.cs
RichardHowells/Dnn.Platform
mit
9,816
216
codeparrot/github-code
f19019e095d5baaacde3d9d57f24351418ae7c8765eae0f30d86cf76e31fb6d1
using System; using System.IO; using GroupDocs.Conversion.FileTypes; using GroupDocs.Conversion.Options.Convert; using GroupDocs.Conversion.Options.Load; namespace GroupDocs.Conversion.Examples.CSharp.BasicUsage { /// <summary> /// This example demonstrates how to convert PST file into HTML format. /// For...
C#
Examples/GroupDocs.Conversion.Examples.CSharp/BasicUsage/ConvertToHtml/ConvertPstToHtml.cs
groupdocs-conversion/GroupDocs.Conversion-for-.NET
mit
1,751
39
codeparrot/github-code
090a74e75d1b3af24e356d0a0825c8fe07e5a769a10a2ccadb6760b4bf5c000a
# encoding: utf-8 require "mongoid/relations/accessors" require "mongoid/relations/auto_save" require "mongoid/relations/cascading" require "mongoid/relations/constraint" require "mongoid/relations/cyclic" require "mongoid/relations/proxy" require "mongoid/relations/bindings" require "mongoid/relations/builders" requir...
Ruby
lib/mongoid/relations.rb
techwhizbang/mongoid
mit
3,017
106
codeparrot/github-code
38b8a2f6786ab4220a10a962a7c6e7cf30327206e28e357187b829b8d277a427
#!/bin/bash FN="MeSH.Hsa.eg.db_1.15.0.tar.gz" URLS=( "https://bioconductor.org/packages/3.12/data/annotation/src/contrib/MeSH.Hsa.eg.db_1.15.0.tar.gz" "https://bioarchive.galaxyproject.org/MeSH.Hsa.eg.db_1.15.0.tar.gz" "https://depot.galaxyproject.org/software/bioconductor-mesh.hsa.eg.db/bioconductor-mesh.hsa.eg....
Shell
recipes/bioconductor-mesh.hsa.eg.db/post-link.sh
bebatut/bioconda-recipes
mit
1,322
47
codeparrot/github-code
2c7d5c0dd343a3b936b7f82e82765a633cf181d53439d60c39b16a0726cf34ae
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package threads; import java.awt.BorderLayout; import java.awt.Container; import java.awt.Graphics; import java.awt.Graphics2D; import...
Java
NetBeansProjects/practice/src/threads/Bounce.java
devopsmwas/javapractice
mit
4,470
179
codeparrot/github-code
5ad60b51a84d007cb25db32eef35994dbd1f39870b1c2f57fa8e05736a65354f
import React, { Component, PropTypes } from 'react'; import DatePicker from 'material-ui/lib/date-picker/date-picker'; import * as layouts from '../../store/db_layouts.js'; function fmtDate( dt ) { return dt.toLocaleDateString(); } const CompFormDate = (props) => { const f = props.field; const curr_dat...
JavaScript
src/components/form/CompFormDate.js
yabadabu/react-playground
mit
1,011
40
codeparrot/github-code
a54f8c6d28cd708dfe0705b9fedb6e5bff3f0fc56afbe70ce584933c27300193
/* RequireJS 2.2.0 Copyright jQuery Foundation and other contributors. Released under MIT license, http://github.com/requirejs/requirejs/LICENSE */ var requirejs, require, define; (function(ga) { function ka(b, c, d, g) { return g || "" } function K(b) { return "[object Function]" === Q.call...
JavaScript
source/mas/js/libs/require-min.js
rlaj/tmc
mit
33,384
879
codeparrot/github-code
429edcfb9b0d548f9812f967e5ffc0e9b32382ed51b733bfc8d6429d7c9ec25f
# @author Avtandil Kikabidze # @copyright Copyright (c) 2008-2015, Avtandil Kikabidze aka LONGMAN (akalongman@gmail.com) # @link http://longman.me # @license The MIT License (MIT) import os import sys import sublime import sublime_plugin st_version = 2 if sublime.version() == '...
Python
Data/Packages/CodeFormatter/CodeFormatter.py
crlang/sublime-text---front-end-config
mit
6,068
205
codeparrot/github-code
c7f646d0c9988754c6f6760d14a853d22ff4b2e0be5e01a9974a2abcba638cb7
<?php namespace Apptrc\Providers; use Illuminate\Support\Facades\Event; use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; class EventServiceProvider extends ServiceProvider { /** * The event listener mappings for the application. * * @var array */ protected $listen ...
PHP
app/Providers/EventServiceProvider.php
Autapomorph/apptrc
mit
677
36
codeparrot/github-code
f0e7072cae12724202c2bf399fe064b4641e94a158d3f42768fca0e847af86f2
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xam...
C#
Demos/Reference Demos/Animations_Expressions/Animate_Current_By_Value/App.xaml.cs
Microsoft/composition
mit
4,224
109
codeparrot/github-code
57b365b8a4948a92dd3233ff9a3344802d7b6445af1b603fe58f47b77453bb6f
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2015-2018 Baldur Karlsson * Copyright (c) 2014 Crytek * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (t...
C++
renderdoc/driver/d3d11/d3d11_renderstate.cpp
cgmb/renderdoc
mit
50,139
1,553
codeparrot/github-code
6523b81be28190efb002406daf9b7419fed3bab0d38c986ccc3d6aaa77dbbd6e
# -*- coding:utf-8 -*- """ # Author: Pegasus Wang (pegasuswang@qq.com, http://ningning.today) # Created Time : Fri Feb 20 21:38:57 2015 # File Name: wechatService.py # Description: # :copyright: (c) 2015 by Pegasus Wang. # :license: MIT, see LICENSE for more details. """ import json import time import urllib import ...
Python
wechat/wechatService.py
PegasusWang/WeiPython
mit
4,274
127
codeparrot/github-code
31ed2b107c92439fa5c0153f2bff7f1ae1c3b89283e19d8011e5ee8a5a0e56bc
<?php /** * @author @jenschude <jens.schulze@commercetools.de> */ namespace Commercetools\Core\Model\CartDiscount; use Commercetools\Core\Model\Common\MoneyCollection; /** * @package Commercetools\Core\Model\CartDiscount * @ramlTestIgnoreFields('money') * @method string getType() * @method RelativeCartDiscount...
PHP
src/Core/Model/CartDiscount/RelativeCartDiscountValue.php
sphereio/sphere-php-sdk
mit
1,473
58
codeparrot/github-code
b0a4161c0fe214d94b7a55b300d65a618de0960a058a31be6baa7dcf6a48883e
module MembersHelper # Returns a `<action>_<source>_member` association, e.g.: # - admin_project_member, update_project_member, destroy_project_member # - admin_group_member, update_group_member, destroy_group_member def action_member_permission(action, member) "#{action}_#{member.type.underscore}".to_sym ...
Ruby
app/helpers/members_helper.rb
Soullivaneuh/gitlabhq
mit
1,601
46
codeparrot/github-code
e06cb1be2b03bc0121c6c656d969c98115c51472b705a414643703745bb24d14
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */ package com.microsoft.azure.management.containerregistry.implementation; import com.microsoft.azure.management.apigeneration.LangDefinition; import com...
Java
azure-mgmt-containerregistry/src/main/java/com/microsoft/azure/management/containerregistry/implementation/WebhookEventInfoImpl.java
martinsawicki/azure-sdk-for-java
mit
1,154
33
codeparrot/github-code
2edabac5da9bb6c99af5092b99c33758edf8f5defa397dc1a48e80f8f5c5971d
/*global console: false, creatis_carpenterStorage_replaceContentFromStorage: false */ $(function () { function initDesktop() { $("#accordion").accordion({ collapsible: true, active: localStorage.selectedCarpenter ? false : true, }); // Kontaktseite Suche $...
JavaScript
MAIN/Default.WebUI/App_Themes/default/js/jquery-ui.searchflyout.js
BROCKHAUS-AG/contentmonkee
mit
5,086
158
codeparrot/github-code
e92dbe1252a9e999857f402243b3db151ae9d641d1e550276832b4296b30b502
/* * This file is part of Prism, licensed under the MIT License (MIT). * * Copyright (c) 2015 Helion3 http://helion3.com/ * * 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 rest...
Java
src/main/java/com/helion3/prism/util/BlockUtil.java
Stonebound/Prism
mit
6,277
148
codeparrot/github-code
b5b5df427a2ad7c7c22a6663fe8d9962afd6d3f2e795f6e1283fa5c035f53774
namespace Sitecore.Salesforce.Configuration { using Sitecore.Salesforce.Caching; using Sitecore.Salesforce.Diagnostics; public class SalesforceCacheConfiguration : SalesforceConfigurationEntry, ISalesforceCacheConfiguration { public UserCache Users { get; set; } public RoleCache Roles { get; set; } ...
C#
source/Sitecore.Salesforce/Configuration/SalesforceCacheConfiguration.cs
islaytitans/sitecore-salesforce-connect
mit
1,209
55
codeparrot/github-code
ba9d0d5babd36b34e32fee431f5f38e486fc614cb92612778a0445ba4b1df7e5
// Copyright (c) 2012, Event Store LLP // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // Redistributions of source code must retain the above copyright notice, // this list of condit...
JavaScript
src/Sample/Inventory.Server/EventStore/Prelude/1Prelude.js
Narvalex/Eventing
mit
8,497
271
codeparrot/github-code
16c329d928da48f54118176a9b0bc11898eefe0f95919818132a9a45698f77bd
'use strict'; var R6MStatsOpData = (function(R6MLangTerms, undefined) { var WARNING_THRESHOLD = 20, opStats = { attackers: [], defenders: [], sortInfo: { field: null, rank: null, isDescending: null } }; var getAveragesTotals = function getAveragesTotals(opRo...
JavaScript
dev/js/stats/stats.operators.data.js
capajon/r6maps
mit
6,671
199
codeparrot/github-code
7437417b624dcdd0e1f0cbd7f4a55559730ff957af92e1efd7ecddec1e1ec096
/* * File: clht_lb.h * Author: Vasileios Trigonakis <vasileios.trigonakis@epfl.ch> * Description: lock-based cache-line hash table with no resizing * clht_lb.h is part of ASCYLIB * * The MIT License (MIT) * * Copyright (c) 2014 Vasileios Trigonakis <vasileios.trigonakis@epfl.ch> * Distr...
C
include/clht_lb.h
LPD-EPFL/CLHT
mit
5,276
204
codeparrot/github-code
eb54de68a28a6390b78fd3b84e237660b1677ec22a3eb223264990f676af0d1f
var React = require('react'); var Router = require('react-router'); var whenKeys = require('when/keys'); var EventEmitter = require('events').EventEmitter; var { Route, DefaultRoute, RouteHandler, Link } = Router; var API = 'http://addressbook-api.herokuapp.com'; var loadingEvents = new EventEmitter(); function getJS...
JavaScript
examples/async-data/app.js
winkler1/react-router
mit
3,295
139
codeparrot/github-code
1b3361801a760a4a034afdb18dab3b7cd96744f6d8fcf9e04365d7b082327a5a
<?php /** * This file is part of the Bruery Platform. * * (c) Viktore Zara <viktore.zara@gmail.com> * (c) Mell Zamora <mellzamora@outlook.com> * * Copyright (c) 2017. For the full copyright and license information, please view the LICENSE file that was distributed with this source code. */ namespace Bruery\Ent...
PHP
src/bundles/EntityAuditBundle/EventListener/LogRevisionsListener.php
bruery/platform
mit
8,931
272
codeparrot/github-code
fb5e84987aba797f315d4143a5abf93b9d16eb46332fa3afa65071b2424d6327
using System; using System.Runtime.InteropServices; using OpenTK.Graphics.OpenGL; namespace Gwen.Renderer.OpenTK { public class OpenTKGL10 : OpenTKBase { [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct Vertex { public short x, y; public float u, v; public byte r, g, b, a; } private...
C#
Gwen.Renderer.OpenTK/Renderer/OpenTKGL10.cs
kpalosaa/gwen-net-ex
mit
6,582
249
codeparrot/github-code
70dc8d25a3df9121660973ffe987c446a1c5a88bff16bd838da70bd0bb2c4b04
package com.rohos.logon1; /* * Copyright 2014 Tesline-Service SRL. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); */ import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.util.Log; import android.view....
Java
Android/RohosLogonKey/src/main/java/com/rohos/logon1/HelpActivity.java
AlexShilon/RohosLogonMobile
mit
1,571
61
codeparrot/github-code
c1569416cf3997a0f9ad03af305f86f47fb763700a808c51fea21c132882ad62
// -*- Mode: C++; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*- #define YBUTIL_SOURCE #include "util/string_type.h" #if defined(YB_USE_WX) #include <wx/strconv.h> #elif defined(YB_USE_QT) #include <QTextCodec> #endif #include <cstring> #include <locale> #include <stdexcept> namespace Yb { static size_t...
C++
src/util/string_type.cpp
kamaroly/yb-orm
mit
7,838
264
codeparrot/github-code
b52cdfb32a2ce4fd62d56876573b47e50306358cd569e2b61bf77056d59e7804
# -- coding: utf-8 =begin $ cat foo.rb require "rubygems" require "kyototycoon" KyotoTycoon::Stream.run($stdin) do |line| ... do some stuff .. end $ ktremotemgr slave -uw | ruby foo.rb =end class KyotoTycoon module Stream def self.run(io=$stdin, &block) io.each_line{|line| line = Line.new(*lin...
Ruby
lib/kyototycoon/stream.rb
genki/kyototycoon-ruby
mit
1,445
75
codeparrot/github-code
ea99004194ae712722564b61abaa9a5d2c3aa585e4feb7efa34db10a1c145903
import falcor from 'falcor'; import _ from 'lodash'; import * as db from 'lib/db'; import { has } from 'lib/utilities'; const $ref = falcor.Model.ref; export default [ { // get featured article route: "issues['byNumber'][{integers:issueNumbers}]['featured']", get: pathSet => new Promise(resolve =...
JavaScript
src/lib/falcor/routes/issues/by-number.js
thegazelle-ad/gazelle-server
mit
12,136
362
codeparrot/github-code
d6fec6b0af7c347bf4967de10607f19d3e2d56e4bf44c2ca0b1e755e2f8650d1
<?php namespace Kemer\UPnP\Server\MediaServer; use SoapVar; use SoapParam; use SimpleXmlElement; use Kemer\MediaLibrary\LibraryInterface; class ContentDirectory { /** * Media library * * @var LibraryInterface */ protected $library; /** * ContentDirectory server constructor *...
PHP
src/Kemer/UPnP/Server/MediaServer/ContentDirectory.php
gallna/UPnPServer
mit
2,014
121
codeparrot/github-code
6cab13b78f49f40de3bfead60cb4097a744ebc1d778072257b2d4877db3443fb
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Graphics; using osu.Framework.Graphics.Colour; using osu.Framework.Graphics.Containers...
C#
osu.Game/Overlays/Toolbar/Toolbar.cs
UselessToucan/osu
mit
7,039
200
codeparrot/github-code
2fa8d405bc31345061050d71bfa7f8c06038c813f248da89bba81cc6e2a0299e
package org.spongycastle.openssl.jcajce; import java.io.IOException; import java.io.OutputStream; import java.security.AlgorithmParameterGenerator; import java.security.AlgorithmParameters; import java.security.GeneralSecurityException; import java.security.Provider; import java.security.SecureRandom; import javax.cr...
Java
pkix/src/main/java/org/spongycastle/openssl/jcajce/JceOpenSSLPKCS8EncryptorBuilder.java
open-keychain/spongycastle
mit
6,994
210
codeparrot/github-code
e59c298122d46a13b8cc461cd769f5c1ec0df7184e8efb29ec27c3d0e6011a30
def linear_search(lst,size,value): i = 0 while i < size: if lst[i] == value: return i i = i + 1 return -1 def main(): lst = [-31, 0, 1, 2, 2, 4, 65, 83, 99, 782] size = len(lst) original_list = "" value = int(input("\nInput a value to search for: ")) print...
Python
Searches/linear_search.py
EverythingAbout/Python
mit
775
31
codeparrot/github-code
604dd0c800422119f1ec84aeb0b7a612cef7072ea25ac293e5518683fc21ee63
// This file is part of the VroomJs library. // // Author: // Federico Di Gregorio <fog@initd.org> // // Copyright (c) 2013 // // 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 ...
C#
Sandbox/Sandbox.cs
fogzot/vroomjs
mit
1,907
54
codeparrot/github-code
f8aa9169efc010296f03ca74511729ed87d1f58303292e67ecd1a25fe863cd65
# Analyze Color of Object import os import cv2 import numpy as np from . import print_image from . import plot_image from . import fatal_error from . import plot_colorbar def _pseudocolored_image(device, histogram, bins, img, mask, background, channel, filename, resolution, analysis_images, ...
Python
plantcv/analyze_color.py
AntonSax/plantcv
mit
11,048
271
codeparrot/github-code
d424e83b40065c32737ee1352081c5d306373027c300a060ba0e42968cbf0af6
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Sylius\Behat\Context\Ui\Admin; use Behat\Behat\Context\Context; u...
PHP
src/Sylius/Behat/Context/Ui/Admin/ManagingPromotionCouponsContext.php
torinaki/Sylius
mit
13,087
419
codeparrot/github-code
9af16df6d10b401e92a173bcf9a36602ae7f4ba412bd456e117a2e38b42e9599
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2020 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ...
C
src/Modules/Legacy/Fields/InterfaceWithTetGenImpl.h
jessdtate/SCIRun
mit
2,860
80
codeparrot/github-code
8c08d7c023b9cf8b416398551d62c8aa190335766bbe663a3ce2a917483f7600
<?php if(empty($_POST)) { //F5 Refresh Check $redirect = admin_url('admin.php?page=duplicator&tab=new1'); echo "<script>window.location.href = '{$redirect}'</script>"; exit; } global $wp_version; $Package = new DUP_Package(); if(isset($_POST['package-hash'])) { // If someone is trying to pass t...
PHP
wp-content/plugins/duplicator/views/packages/main/new2.scan.php
PatrickJamesHoban/patrickjameshoban
mit
37,112
761
codeparrot/github-code
cb5c88f2973d195b7827efa9bb1579fc5276d96a938d813a8cf6b222c7fa8ed6
--- title: Adam Koford summary: Writer, cartoonist categories: - cartoonist - windows - writer --- ### Who are you, and what do you do? My name's Adam Koford. I'm a writer in the video game industry by day and a freelance cartoonist by pretty much all the other times. I've been freelancing for magazines, greeting car...
Markdown
posts/2020-07-24-adam.koford.markdown
waferbaby/usesthis
mit
3,080
34
codeparrot/github-code
49fd1e6b5f9453b03e3ddc014e09c9e2663b0b8cfa0ee5b629a36eba4e6b2829
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsUI { public partial class Form1 : Form { public Form1() { InitializeComponent(); Csla.Applic...
C#
Samples/NET/cs/SimpleNTier/WindowsUI/Form1.cs
BrettJaner/csla
mit
745
36
codeparrot/github-code
12e7dcf5de07d6174ca44dcbec82d04badf4c90da1c7a567e55fbc9e606e61e8
/* Magic Mirror * Log * * This logger is very simple, but needs to be extended. * This system can eventually be used to push the log messages to an external target. * * By Michael Teeuw https://michaelteeuw.nl * MIT Licensed. */ (function (root, factory) { if (typeof exports === "object") { if (process.env.J...
JavaScript
js/logger.js
Tyvonne/MagicMirror
mit
2,418
80
codeparrot/github-code
2dd803a6c0f11a47b5004eacfa028676d9ccc48f8882c2ad5aa46cda0cc80a7d
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK_b_ContractorsAddInfo_ID_C]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1) ALTER TABLE [dbo].[b_ContractorsAddInfo] DROP CONSTRAINT FK_b_ContractorsAddInfo_ID_C GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK_b_Contra...
SQL
test/resources/source/b_Contractors.TAB.sql
ashumkin/mssql-script
mit
3,443
74
codeparrot/github-code
9646b66ee260db658cd309cb4f0334781c9894594736dd19f78d811782fff6e7
// // Created by Konstantin Kukin on 26/12/16. // #ifndef TGBOT_INPUTLOCATIONMESSAGECONTENT_H #define TGBOT_INPUTLOCATIONMESSAGECONTENT_H #include <memory> namespace TgBot { /** * Represents the content of a location message to be sent as the result of an inline query. * @ingroup types */ class InputLocationMessage...
C
include/tgbot/types/InputLocationMessageContent.h
brenoarosa/tg_assistant
mit
747
39
codeparrot/github-code
ca2e2cb5ae9457498821f9c9d3416f9bcecbb74cfeda7f35c0368c7ddd18b360
<div class="visual-editor-manage-theme"> <div class="tabbable-line"> <ul class="nav nav-tabs"> <li class="active"><a href="#tabManageTheme-ThemeList" data-toggle="tab">{{ "ThemeList" | trans }}</a></li> <li><a href="#tabManageTheme-AutoBackupThemes" data-toggle="tab">{{ "AutoBackupThemes" | trans }}</a></...
HTML
src/ZKWeb.Plugins/Theme.VisualEditor/templates/theme.visualeditor/manage_theme.html
zkweb-framework/ZKWeb.Plugins
mit
2,924
65
codeparrot/github-code
f0473b8c0e52653aa2fb5955aa808042e74abf08effa165a464be3c56b579ba2
using System; using System.Diagnostics; namespace Palaso.Reporting { public class ConsoleErrorReporter:IErrorReporter { private enum Severity { Fatal, NonFatal } public void ReportFatalException(Exception error) { WriteExceptionToConsole(error, null, Severity.Fatal); } public ErrorResult N...
C#
Palaso/Reporting/ConsoleErrorReporter.cs
phillip-hopper/libpalaso
mit
5,227
177
codeparrot/github-code
56ce047a1f570c93f417c738b9aaa6aa0eb34f1b5ac76a1536e09ace7964f924
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {FormsModule, ReactiveFo...
TypeScript
src/dev-app/select/select-demo-module.ts
jelbourn/material2
mit
1,215
40
codeparrot/github-code
21a7cad1f8307459d34c749ab0826f477acf488935e540e193c419d91942e06a
''' Created on Jan 18, 2010 @author: Paul ''' from SQLEng import SQLEng class PduSender(object): ''' classdocs This class is designed for Gammu-smsd Inserting a record into MySQL Gammu-smsd will send the record Using command line will cause smsd stop for a while ''' def ...
Python
src/GammuSender.py
lubao/UjU_Windows
mit
1,013
41
codeparrot/github-code
ac10ccd7d8bacab1c30d9e12234ef4d2096ee964afe6635ecce971ddc7f6ba15
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S12.10_A1.4_T4; * @section: 12.10; * @assertion: The with statement adds a computed object to the front of the * scope chain of the current execution context; * @descrip...
JavaScript
sputnik/12_Statement/12.10_The_with_Statement/S12.10_A1.4_T4.js
rustoscript/js.rs
mit
3,319
139
codeparrot/github-code
16e0cdbe3c1be9bc79029ee4b33b695933cface0b59a569248663d84127c3bc5
package domain; import java.io.Serializable; import java.sql.Timestamp; /** * 全体系统消息 * Created by sibyl.sun on 16/2/22. */ public class Msg implements Serializable { private static final long serialVersionUID = 1L; private long msgId;//消息id private String msgTitle; //消息标题 private String msgContent;...
Java
app/domain/Msg.java
howenkakao/style-web
mit
2,298
106
codeparrot/github-code
43c3161a93c00658ddfa4a07e82a9b2d4c10c847521a17642facd9385c86227b
/////////////////////////////////////////////////////////////////////////////// // // File : $Id: _rb.cpp 27 2006-05-20 19:31:15Z mbabuskov $ // Subject : IBPP, internal RB class implementation // /////////////////////////////////////////////////////////////////////////////// // // (C) Copyright 2000-2006 T.I.P. Gro...
C++
ibpp/_rb.cpp
cyborgve/FBExport
mit
4,364
204
codeparrot/github-code
d3402f7c0b709c9846acf0675e406e0c55939b8628d6e17f84527c700b4652e3
package main import ( "compress/gzip" "fmt" "io/ioutil" "os" ) func main() { fpath := "test.tar.gz" if err := toGzip("Hello World!", fpath); err != nil { panic(err) } if tb, err := toBytes(fpath); err != nil { panic(err) } else { fmt.Println(fpath, ":", string(tb)) // test.tar.gz : Hello World! } o...
GO
doc/go_os_io/code/16_gzip.go
mmoya/learn
mit
1,116
64
codeparrot/github-code
32c832788be38ba23a1ed39ad451d3ba9c839320234df5836a85d04e4f0a0b47
import * as gulp from 'gulp'; import * as gulpLoadPlugins from 'gulp-load-plugins'; import { join } from 'path'; import Config from '../../config'; import { makeTsProject, TemplateLocalsBuilder } from '../../utils'; const plugins = <any>gulpLoadPlugins(); const INLINE_OPTIONS = { base: Config.TMP_DIR, target: 'e...
TypeScript
tools/tasks/seed/build.js.prod.ts
yujsasoftlime/angular-v5-workshop
mit
1,390
53
codeparrot/github-code
243690aedae428d8bed91d775cd13361c5c5538aec20046b012510370918d6f2
--- layout: default title: Homepage --- {% for post in paginator.posts %} <div class="page-content"> <div class="post-heading"> <a href="{{ post.url }}">{{ post.title }}</a> </div> {% include article_info_bar.md cur_page=post %} <div class="post-entry"> {{ post.content || split:'<!--mo...
HTML
index.html
HackerMi/hackermi.github.com
mit
2,241
75
codeparrot/github-code
15b0f22259645282dab280f3825d3062bc5d2f5245106efed2b1881d12b476a0
// Windows Template Library - WTL version 8.1 // Copyright (C) Microsoft Corporation. All rights reserved. // // This file is a part of the Windows Template Library. // The use and distribution terms for this software are covered by the // Common Public License 1.0 (http://opensource.org/licenses/cpl1.0.php) // which c...
C
WTL81/include/atlmisc.h
yurikus/tp-pluggable-proto
mit
85,307
3,818
codeparrot/github-code
a0d953a1bf52ed05608c35a8ceb28f23067c2ba3273bfc78eb1080054ddadfef
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #ifndef GLOBALSTATE_H #define GLOBALSTATE_H #ifdef _WIN32 #pragma once #endif typedef enum { GLOBAL_OFF = 0, ...
C
dlls/globalstate.h
sswires/ham-and-jam
mit
2,206
76
codeparrot/github-code
3b7fc8e3aa39552ec004a0de25e56c26019b3023c305f871a62d32ea738808ac
// Copyright (c) 2010-2014 SharpDX - Alexandre Mutel // // 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, modi...
C#
Source/Toolkit/SharpDX.Toolkit.Graphics/EffectConstantBuffer.cs
VirusFree/SharpDX
mit
6,093
162
codeparrot/github-code
f868d3512aad4166831eba74d68ed83f083521eb963e9071b9a4be0bbbab79fa
describe('ngThrottleSpec', function() { var $animate, body, $rootElement, $throttle, $timeout; beforeEach(module('material.services.throttle', 'material.animations')); beforeEach(inject(function(_$throttle_, _$timeout_, _$animate_, _$rootElement_, $document ){ $throttle = _$throttle_; $timeout = _$time...
JavaScript
src/services/throttle/throttle.spec.js
Hotell/ng-material-demo
mit
11,313
443
codeparrot/github-code
c072f27cf15984ce45fc38ea367c837b55b90ea452298273f22df52381a34e9e
//Libraries const React = require("react"); const _ = require("lodash"); const DataActions = require("../actions/data_actions"); const DataStore = require("../stores/data_store"); const FilterStore = require("../stores/filter_store"); const ColumnsStore = require("../stores/columns_store"); //Mixins const...
JavaScript
src/vanilla_components/searchfilter.js
djforth/walkabout-jobs-search
mit
3,083
119
codeparrot/github-code
25a96e0fc5c12ab8c98522572f6bf2ab088ffb121ce2d0e2716788b1b1673573
# # The MIT License # # Copyright (c) 2010 Samuel R. Baskinger # # 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...
Ruby
lib/sclust/util/word.rb
basking2/sclust
mit
1,753
54
codeparrot/github-code
cdc81034486225994ffbd427bdbcb5c61d367882b7cf48f887a09aa3a5a0ab05
class Api::V1::ProblemsController < ApplicationController skip_before_action :verify_authenticity_token respond_to :json, :xml rescue_from ActiveRecord::RecordNotFound do head :not_found end expose(:err) { Err.find(params[:id]) } expose(:problem) { err.problem } expose(:selected_problems) { Problem....
Ruby
app/controllers/api/v1/problems_controller.rb
cph/errbit
mit
3,489
114
codeparrot/github-code
16904b835095928fa0f9375717458d2558613e5362fc1f6d2fb046d1ebaed4fb
#include "substdio.h" #include "subfd.h" #include "stralloc.h" #include "dns.h" #include "dnsdoe.h" #include "ip.h" #include "ipalloc.h" #include "exit.h" stralloc sa = {0}; ipalloc ia = {0}; void main(argc,argv) int argc; char **argv; { if (!argv[1]) _exit(100); if (!stralloc_copys(&sa,argv[1])) { substdio_puts...
C
qmail/qmail/dnsfq.c
NikolaMandic/containers
mit
628
33
codeparrot/github-code
141e87d9bd65bc56c8f6b668c38e9ffee013b034cac4dceb72ae9d0e6a0aae69
/* State * @class * @classdesc This class reprensent an automata state, a sub-type of a generic Node */ k.data.State = (function(_super) { 'use strict'; /* jshint latedef:false */ k.utils.obj.inherit(state, _super); /* * Constructor Automata State * * @constructor * @param {[ItemRule]} options.items Arra...
JavaScript
src/data/state.js
Mictian/kappa
mit
8,200
238
codeparrot/github-code
88e3be1a351912b04fd523f1b6979c0694ea7f15ce8f568c3fb21cb5aa97e139
#include "pch.h" #include "CertCommands.h" #include "Console.h" #include "ProcessHost.h" #include<vector> #include "TerminalHelper.h" using namespace std; void CertsCommand::ProcessCommand(IConsole *pConsole, ParsedCommandLine *pCmdLine) { if (pCmdLine->GetArgs().size()<2) pConsole->WriteLine("SYNTAX: certs storen...
C++
WPTelnetDLib/CertCommands.cpp
FurballTheGreat/WPTelnetD
mit
1,852
73
codeparrot/github-code
051e5eb11d1b3ee1c36e6fd139f391759558b330f3f3ea598e4fc82a737ad4a3
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; using Eurofurence.App.Domain.Model.Fragments; namespace Eurofurence.App.Domain.Model.Knowledge { [DataContract] public class KnowledgeEntryRecord : EntityBase { [Require...
C#
src/Eurofurence.App.Domain.Model/Knowledge/KnowledgeEntryRecord.cs
Pinselohrkater/ef_app-backend-dotnet_core
mit
786
34
codeparrot/github-code
91da7550cccaa77dd3bdc3d87c17677a1f6f6e60ea59033946f5f2503269650b
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function (mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define....
JavaScript
utility/js/mode/dylan/dylan.js
Kipsora/KitJudge
mit
12,442
345
codeparrot/github-code
7f6b70ef9da2b6abfe4a0cd0a36a6ba5f046d434823f2585aff2374f6adfc07b
/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- Copyright (c) 2006-2018, assimp team All rights reserved. Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following condition...
C++
shared/assimp/code/StepExporter.cpp
MadManRises/Madgine
mit
16,941
374
codeparrot/github-code
0babf4c84d79ff0bd19f831a6f0b2d64d49a31115aab42d3266a6b5dc8ff93c5
/** * Created by joonkukang on 2014. 1. 16.. */ var math = require('./utils').math; let optimize = module.exports; optimize.hillclimb = function(options){ var domain = options['domain']; var costf = options['costf']; var i; var vec = []; for(i=0 ; i<domain.length ; i++) vec.push(math.ran...
JavaScript
06/generative_path/machine_learning-master/machine_learning-master/lib/optimize.js
pulipulichen/blog-pulipuli-info-data-2017
mit
4,797
170
codeparrot/github-code
b49a5c2959305b95d3c2a0cd137739403e49f9233f527c8794cc432fdd84d01b
package rres.knetminer.datasource.server; import static uk.ac.ebi.utils.exceptions.ExceptionUtils.getSignificantMessage; import java.io.IOException; import java.io.InputStream; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Arrays; import java.util.Collections; i...
Java
server-base/src/main/java/rres/knetminer/datasource/server/KnetminerServer.java
AjitPS/KnetMiner
mit
15,807
427
codeparrot/github-code
5f456cec02659a4743a84a6b654d745173a8fe919fb25943d223452fd82dd4c8
/* AdMobAdsListener.java Copyright 2015 AppFeel. All rights reserved. http://www.appfeel.com AdMobAds Cordova Plugin (com.admob.google) 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 wi...
Java
src/android/AdMobAdsAdListener.java
QuantumRand/admob-google-cordova
mit
4,742
135
codeparrot/github-code
6e7ee9455186bcfd6235aecc24b9c6c412438fd174a485c99e3cf4ee83cf1b9d
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qwebinspector...
HTML
QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/qwebinspector-members.html
stephaneAG/PengPod700
mit
53,611
556
codeparrot/github-code
7f1b8bcaf6347b5f6643d90e63992fdaefed6e0dd49aa8d83fc4a1000508899d
/***************************************************************************** * This file is part of the Prolog Development Tool (PDT) * * Author: Andreas Becker, Ilshat Aliev * WWW: http://sewiki.iai.uni-bonn.de/research/pdt/start * Mail: pdt@lists.iai.uni-bonn.de * Copyright (C): 2013, CS Dept. III, Universit...
Java
prolog/logicmoo/pdt_server/pdt.graphicalviews/src/org/cs3/pdt/graphicalviews/internal/ui/PredicatesListDialog.java
TeamSPoon/logicmoo_base
mit
2,350
77
codeparrot/github-code
83fef7fe0c8729a4432f3f5813ac4572314d06fc90648cb5e61cef6af5401d44
<?php /* * @version 0.1 (auto-set) */ global $filter_name; global $clear_codeeditor; if ($this->filter_name) { $out['FILTER_SET'] = $this->filter_name; } if ($filter_name) { $this->filter_name = $filter_name; } if ($clear_codeeditor) { $this->clear_codeeditor = $clear_codeeditor; } $sections = array(...
PHP
modules/settings/settings_search.inc.php
sergejey/majordomo
mit
17,008
507
codeparrot/github-code
e7305c87bd8509c5326734ef95360fc2fad04dea94ad916a37c51ef939427f19
System.register(['@angular/core', '@angular/router', '../user/user.service', './login.service', '../shared/alert/dtalert.component', '../shared/spinner/dtspinner.component'], function(exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; var __decorate = (this && this.__decorat...
JavaScript
app/login/login.component.js
alphaCoder/DollarTracker.Web
mit
4,925
95
codeparrot/github-code
40a0e8069ea908e43277b51426ace1c0ffb93f2875f37d1d5537a698cbaa01fd
{% extends "index.html" %} {% load i18n %} {% load static %} {% block title %}FragDenStaat - Portal für Informationsfreiheit und Transparenz{% endblock %} {% block index_content_row %} {% include "snippets/homepage_how.html" %} {% endblock %} {% block index_requests_row %} <div class="row"> <div class="col-md-6...
HTML
fragdenstaat_at/theme/templates/index.html
fin/fragdenstaat.at
mit
1,717
63
codeparrot/github-code
239b27532de9cfb48aa7411cbc2fa763c7986fc9daf1eee23d65ebec6842b510
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Earth Addresser</title> <link rel="stylesheet" type="text/css" href="../Help.css"> </head> <body> <div id="main"> <h1>Earth Addresser</h1> <p> Putting your addresses on the map. </p> <p> Love <a href="http://earth.google.com/">Google Ea...
HTML
Resources/en.lproj/readme.html
earthlingsoft/Earth-Addresser
mit
11,596
306
codeparrot/github-code
fee22b73707c36a39f74fc1fd73cc9def5b82bb63f894d9f472881cdfd680f12
#include "DSGM.h" inline void DSGM_UnlockBackgroundPalette(u8 screen) { switch(screen) { case DSGM_TOP: vramSetBankE(VRAM_E_LCD); break; case DSGM_BOTTOM: vramSetBankH(VRAM_H_LCD); break; } } inline void DSGM_LockBackgroundPalette(u8 screen) { switch(screen) { case DSGM_TOP: vramSetBankE(V...
C
source/DSGM_background.c
CTurt/dsgmLib
mit
7,985
322
codeparrot/github-code
900f9eb026c59988feb4703b0987a538a83154998d1340b029a4df96eae24174
class AddDeviseToUsers < ActiveRecord::Migration def self.up change_table(:users) do |t| ## Database authenticatable t.string :encrypted_password, null: false, default: "" ## Recoverable t.string :reset_password_token t.datetime :reset_password_sent_at ## Rememberable ...
Ruby
db/migrate/20150411175700_add_devise_to_users.rb
marceloboeira/spread_blood
mit
1,517
45
codeparrot/github-code
dd2f1e585f1ca946ec06619c7d69c64d60e1d08186634c922b76f33060f1d1b0
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Collections.Immutable; using System.ComponentModel.Composition; usin...
C#
src/EditorFeatures/CSharpTest/Formatting/CodeCleanupTests.cs
abock/roslyn
mit
8,571
327
codeparrot/github-code
f010c9bb2a4af19f33c0fefe40c80442d05cef26372f361f37d5484d3f5c66c9
package rule import ( "encoding/json" "fmt" "github.com/influxdata/flux/ast" "github.com/influxdata/influxdb/v2" "github.com/influxdata/influxdb/v2/notification/endpoint" "github.com/influxdata/influxdb/v2/notification/flux" ) // PagerDuty is the rule config of pagerduty notification. type PagerDuty struct { ...
GO
notification/rule/pagerduty.go
nooproblem/influxdb
mit
6,445
201
codeparrot/github-code
fbb51cc0c2b43bf73e14830ce0a796119b90f066dacd6cd11c2af5e051bc7fe8
/* * Copyright 2004-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
C
Boss2D/addon/openssl-1.1.1a_for_boss/crypto/evp/e_old.c
koobonil/Boss2D
mit
2,545
114
codeparrot/github-code
c4b13a99cb4c42f5b6375e8f7b146172924c55f221a86af8c9623677ff0621c7
/* * Date: September 1st 2014 * Author: Adil Imroz * Twitter handle: @adilimroz * Organization: Moolya Software Testing Pvt Ltd * License Type: MIT */ package utils; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.net.URL; import java.util.ArrayList; import java.util.List...
Java
orangeHRM/src/utils/ReportParseGoogleUpdate.java
YagneshShah/SeleniumLearnExploreContribute
mit
9,210
236
codeparrot/github-code
42945642cf49b3016e67ebc90acc4fc008063b10cc35626500e04c5315bf09eb
/* u8x8_message.c Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
C
Source/framework/main/u8g2/sys/arm/stm32l031x6/eval_board/u8x8/u8x8_message.c
WiseLabCMU/gridballast
mit
4,577
153
codeparrot/github-code
9f96d0ee5c5026b5069c8b352d4058bbb6936315dd9ef1f156d9fbbe32a2b98c
// // This is example code from Chapter 25.7 "Drill" of // "Programming -- Principles and Practice Using C++" by Bjarne Stroustrup // #include <iostream> using namespace std; //------------------------------------------------------------------------------ int main() { // for int { int v = 1; ...
C++
code_snippets/Chapter25/chapter.25.7.cpp
bewuethr/stroustrup_ppp
mit
681
37
codeparrot/github-code
db2d8a556df3f652006fb3e0b05321f187f94dcc690e601575405b3ce0fad175
--TEST-- Test for inserting and retrieving encrypted data of money types --DESCRIPTION-- No PDO::PARAM_ tpe specified when binding parameters --SKIPIF-- <?php require('skipif_mid-refactor.inc'); ?> --FILE-- <?php require_once("MsCommon_mid-refactor.inc"); require_once("AEData.inc"); $dataTypes = array("smallmoney", "mo...
PHP
test/functional/pdo_sqlsrv/pdo_ae_insert_money.phpt
Azure/msphpsql
mit
2,406
72
codeparrot/github-code
bc9e9e3a166534b393b144a368bc9556d583b82f22688623dc1ebac4b3190112
define(['../lib/circle', '../lib/aura', './collision', '../lib/vector', '../lib/dictionary'],function(Circle, Aura, collision, Vector, Dictionary){ var Particle = function(world, options) { var options = options || {} Circle.call(this, options); //TODO: implement singleton for the world this.world = world;...
JavaScript
game/particle.js
dayllanmaza/particles
mit
2,363
90
codeparrot/github-code
33341c7d7cfc66f5a87ba38f51d4aefdbdc8f868c81de6c4e7abdd18ade8d67a
/* Copyright 2013-2015 ASIAL CORPORATION 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 law or agreed to in writing, so...
JavaScript
www/lib/onsenui/core-src/elements/ons-splitter/push-animator.js
nocommon/ecbook_app
mit
2,549
104
codeparrot/github-code
d6c4ab958ca68e8c5cfebc71d689def202a69f0bab3dc6540576232543adc924
#! /usr/bin/env ruby # # check-es-query # # DESCRIPTION: # This plugin checks an ElasticSearch query. # # OUTPUT: # plain text # # PLATFORMS: # Linux # # DEPENDENCIES: # gem: sensu-plugin # gem: elasticsearch # gem: aws_es_transport # # USAGE: # This example checks that the count of special_type logs ma...
Ruby
bin/check-es-query-count.rb
majormoses/sensu-plugins-elasticsearch
mit
8,958
270
codeparrot/github-code
88af9fc20d55807d7ac9d649fbfa2c77c0c7ddad9b11946c09a7cde68ad3630e
import {test} from '../qunit'; import {localeModule} from '../qunit-locale'; import moment from '../../moment'; localeModule('hu'); test('parse', function (assert) { var tests = 'január jan_február feb_március márc_április ápr_május máj_június jún_július júl_augusztus aug_szeptember szept_október okt_november nov_...
JavaScript
src/test/locale/hu.js
Oire/moment
mit
13,417
225
codeparrot/github-code
a351b91ff51d89217e5ec821caa298bd2a786d08d184a6ca524fb451ebf55611
#!/usr/bin/env python import sys,os import textwrap def print_header(): print textwrap.dedent("""\ ##fileformat=VCFv4.1 ##phasing=none ##INDIVIDUAL=TRUTH ##SAMPLE=<ID=TRUTH,Individual="TRUTH",Description="bamsurgeon spike-in"> ##INFO=<ID=CIPOS,Number=2,Type=Integer,Description="Confidence inte...
Python
scripts/makevcf.py
MischaLundberg/bamsurgeon
mit
2,120
47
codeparrot/github-code
c73bd2dc262cd9099cdf986f34ac61e40fc40e371dfdb9fbaea8312086773949
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>restful_form Element</title> <meta http-equiv="Content-Type" content=...
HTML
doc/html/elements/restful_form.html
stuart-thackray/nitrogen_core
mit
8,118
254
codeparrot/github-code
dc6cd762a6b63379ce5329bb77da2f8aca560eddf07e4531f9ffa0db7c008a5b
package lfs import ( "bufio" "fmt" "strconv" "strings" "github.com/git-lfs/git-lfs/errors" "github.com/git-lfs/git-lfs/git" ) // Status represents the status of a file that appears in the output of `git // diff-index`. // // More information about each of its valid instances can be found: // https://git-scm.co...
GO
lfs/diff_index_scanner.go
github/git-lfs
mit
6,132
210
codeparrot/github-code
90ae9b0c69d3fec61d8e778e2ca1d3539f0c01e1280ca04656009e17402003f2
#!/usr/bin/python # -- Content-Encoding: UTF-8 -- """ Utility methods, for compatibility between Python version :author: Thomas Calmant :copyright: Copyright 2017, Thomas Calmant :license: Apache License 2.0 :version: 0.3.1 .. Copyright 2017 Thomas Calmant Licensed under the Apache License, Version 2.0 (the...
Python
src/service_api/python/jsonrpclib/jsonrpclib/utils.py
CloudI/CloudI
mit
3,412
150
codeparrot/github-code
3f2e5713d742bf8cd2ffe73ce951d8ba99768572044fb0c7d75b3a7adcdd4142
(function () { $(function () { var _userService = abp.services.app.user; var _$modal = $('#UserCreateModal'); var _$form = _$modal.find('form'); _$form.validate({ rules: { Password: "required", ConfirmPassword: { equa...
JavaScript
src/ImproveX.Web/Views/Users/Index.js
zchhaenngg/IWI
mit
2,947
92
codeparrot/github-code
323814a6b2f08a1a05c5165838e1cb1e42cd4a5fb04619bfc6ad4c514a64a4fb
from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * import camera import time class Display(object): # Inheritrance convinience functions def init(self): pass def close(self): pass def mouse(self, mouseButton, buttonState, x, y): pass def mouseMotion(self, x, y, dx, dy): pass def pa...
Python
src/display.py
Alex4913/PyOpenGL-Boilerplate
mit
3,803
130
codeparrot/github-code
3ba192b9fcd7d351b671f7ea6bc293f1498b527f23af89ce294df21e18576790
package automortar.sample.rest; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import javax.inject.Inject; import autodagger.AutoExpose; import automortar.sample.app.App; import automortar.sample.app.DaggerScope; import retrofit.RestAdapter; import retrofit.converter.GsonConverter; /** * Created ...
Java
sample/src/main/java/automortar/sample/rest/RestClient.java
lukaspili/Auto-Mortar
mit
909
39
codeparrot/github-code
ca0f3bf7a5d5009d1c30b671c58ece6667430ed8b809904e247522e091a52734
#include "platform/i_platform.h" #include "core/map/map_element.h" namespace map { MapElement::~MapElement() { } MapElement::MapElement( int32_t Id ) : mIdentifier( 0 ) , mId( Id ) , mSpawnedActorGUID( -1 ) { SetNextUID(); } void MapElement::SetNextUID() { static int32_t NextUID = 0; mUID =...
C++
src/core/map/map_element.cpp
ishtoo/Reaping2
mit
1,638
93
codeparrot/github-code
6519ee63e6192c4bb5972164c61311ad3b6863d1a76d816330a767b433b98c43
/* * Copyright 2005 Joe Walker * * 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 law or agreed to i...
Java
metaworks-dwr/core/impl/main/java/org/directwebremoting/export/Data.java
TheOpenCloudEngine/metaworks
mit
5,172
140
codeparrot/github-code