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 |
|---|---|---|---|---|---|---|---|---|
20685cba68e6a4cd524dbac527190972ab60c4d7c9c273c9fb5ee7f88d634040 | class ConfirmationsController < ApplicationController
before_filter :ensure_ticket_present, only: [:edit, :update, :show]
layout "confirmations"
def index
end
def show
end
def edit
end
def update
@confirmation.save(params)
redirect_to :confirmation, id: @confirmation.token
end
privat... | Ruby | app/controllers/confirmations_controller.rb | geeksoflondon/hamster | mit | 601 | 33 | codeparrot/github-code |
45b267cbf987123205d1aec0faff0ad549cd988b4e3d94823297c7b9b0d6653c | """ Read bam files"""
from __future__ import print_function
# from memory_profiler import profile
import os.path as op
import os
import pysam
from collections import defaultdict
import pybedtools
from mirtop.libs import do
from mirtop.libs.utils import file_exists
import mirtop.libs.logger as mylog
from mirtop.mirna... | Python | mirtop/bam/bam.py | miRTop/mirtop | mit | 15,466 | 419 | codeparrot/github-code |
d093f1bc2374e7dcc11e4bb7537e51335931addaaeb52e0ffda9773403926a2e | //
//
var http = require('http');
var path = require('path');
var jsdom = require('jsdom');
//still need to add authentication to mongodb
var databaseURI = "mongodb://127.0.0.1:27017";
var mongojs = require('mongojs');
var db = mongojs(databaseURI,["test"]);
var acceptedFields = [
"Description",
"Type",
"Related... | JavaScript | test.js | asidhu/mangadb-creator | mit | 3,065 | 136 | codeparrot/github-code |
044f4ec6416db9a3ca3a13c0f4930bf83847232b7cdcb0c49e73afd8f20256cb | using net.r_eg.MvsSln.Projects;
using Xunit;
namespace MvsSlnTest.Projects
{
public class PropertyItemTest
{
[Fact]
public void CtorTest1()
{
var p = new PropertyItem("name", "value", "true");
Assert.Equal("name", p.name);
Assert.Equal("value", p.une... | C# | MvsSlnTest/Projects/PropertyItemTest.cs | 3F/MvsSln | mit | 4,062 | 142 | codeparrot/github-code |
85c1fe09987b1682129ae24a9b69fac35013e9099ca5d0ef60aa63615b4060f2 | /*******************************************************************************
* Copyright (c) 2004 Ferenc Hechler - ferenc_hechler@users.sourceforge.net
*
* This file is part of the Fat Jar Eclipse Plug-In
*
* The Fat Jar Eclipse Plug-In is free software;
* you can redistribute it and/or modify it under the t... | Java | src/net/sf/fjep/fatjar/builder/JarStreamFileSystemSource.java | thahn0720/agui_eclipse_plugin | mit | 2,187 | 67 | codeparrot/github-code |
58b42be3f68cc83e362cd8c79a92af108f8d7d70e2ca605f6ff108e32bcd0e07 | <?php
/**
* elefunds API PHP Library
*
* Copyright (c) 2012 - 2013, elefunds GmbH <hello@elefunds.de>.
* 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 sour... | PHP | copy_this/modules/suabo/lfnds/core/Lfnds/Test/Unit/Model/ReceiverTest.php | suabo/elefunds-OXID | mit | 10,357 | 315 | codeparrot/github-code |
5b056e7f5906c81ec3e85744a3d920e3a74261d93678fb8c58a240a11928e7c7 | /*
本ソースリストは下記からダウンロードしたものです。
2017/11/02 https://learn.adafruit.com/096-mini-color-oled/wiring
2018/11/12 https://github.com/adafruit/Adafruit-GFX-Library
国野 亘
*/
/*
This is the core graphics library for all our displays, providing a common
set of graphics primitives (points, lines, circles, etc.). It needs to be
... | C++ | 2_example/example64_photo_m5/Adafruit_GFX.cpp | bokunimowakaru/esp | mit | 72,333 | 1,966 | codeparrot/github-code |
99e369a71f73600c82eed2d2f5f7626bffac19569401db7770f321bbb60ffb91 | <?php
/*
Unsafe sample
input : get the field userData from the variable $_GET via an object, which store it in a array
SANITIZE : use of preg_replace
construction : interpretation with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
us... | PHP | Injection/CWE_90/unsafe/CWE_90__object-indexArray__func_preg_replace__userByMail-interpretation_simple_quote.php | stivalet/PHP-Vulnerability-test-suite | mit | 1,712 | 72 | codeparrot/github-code |
d8ca459d0bdea95acc731f93ac01a3f1db77dee7b61341455a6bee892e4ed0cc | //
// Copyright (c) Microsoft Corporation.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABL... | C# | Rules/AvoidUsingInvokeExpression.cs | rkeithhill/PSScriptAnalyzer | mit | 3,719 | 107 | codeparrot/github-code |
0dab8c9405ba020ba396e542f37347180f074e7824c8a4f46fa1ad94e882873e | /**
* Copyright © 2016-present Giddy.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
/* eslint-env jest */
import { assignType, getType, mapTo, mapToMany, mapToValues } from '../';
describe('utils', () => {
test('assignType(... | JavaScript | src/utils/__tests__/index.js | giddy/giddy-web | mit | 1,597 | 60 | codeparrot/github-code |
86f7f43ee9f12bf4a1ea630e964bcdbe60f40083843de4f0d62fca9a87bd3dbd | /*
Project: Aquarium Controller
Library: Temperature (a 4.7K resistor is necessary)
Version: 1.0
Author: Rastislav Birka
*/
#include <avr/eeprom.h>
#include <Arduino.h>
#include "AQUA_temp.h"
/*
Public Functions
*/
void AQUA_temp::init(uint8_t dqPin, uint8_t calibrate_points, uint8_t calibrate_address) {
... | C++ | Arduino/AquariumController/AQUA_temp.cpp | rastocs2/AquariumController | mit | 7,188 | 269 | codeparrot/github-code |
f7ca5767c8a88ed7ad411b98f9a1094cd5c9348bfde5dcd488e10dd2fba60d93 | <?php
/**
* @brief 4.0.10 Upgrade Code
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
* @license http://www.invisionpower.com/legal/standards/
* @package IPS Community Suite
* @since 06 Jul 2015
* @version SVN_VE... | PHP | forum/applications/core/setup/upg_100038/upgrade.php | Tresint/worldherb | mit | 2,355 | 96 | codeparrot/github-code |
e90ba13c9a64390f7fb7a586ba160cb3e90aa19a179c4cfbdb861a1557dfe6f3 | import webpack from 'webpack';
import webpackConfig from '../webpack.config.test';
import colors from 'colors';
colors;
process.env.NODE_ENV = 'production';
console.log('Generating minified bundle for production via Webpack. This will take a moment..'.blue);
webpack(webpackConfig).watch({},(err, stats) => {
if (e... | TypeScript | tools/testBuild.watch.ts | aalpgiray/rhl-3-typescript | mit | 868 | 34 | codeparrot/github-code |
c11e94dad5b75cd213dea21de9f71e31c0f6d64621db372af68e382aa0a331d8 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Name: Ion Auth
*
* Version: 2.5.2
*
* Author: Ben Edmunds
* ben.edmunds@gmail.com
* @benedmunds
*
* Added Awesomeness: Phil Sturgeon
*
* Location: http://github.com/benedmunds/CodeIgniter-Ion-Auth
*
* Created: 10.01.2009
*
* ... | PHP | application/config/ion_auth.php | padideIt/wall | mit | 8,450 | 186 | codeparrot/github-code |
142d18e572170ad933a7390394b1545c85d483373c60639862dbd1b1d7def215 | using System.Runtime.CompilerServices;
namespace VSPackage.CPPCheckPlugin
{
public class AtomicBool
{
public AtomicBool()
{
}
[MethodImpl(MethodImplOptions.Synchronized)]
public AtomicBool(bool value)
{
_value = value;
}
[MethodImpl(MethodImplOptions.Synchronized)]
public sta... | C# | CPPCheckPlugin/AtomicBool.cs | VioletGiraffe/cppcheck-vs-addin | mit | 612 | 34 | codeparrot/github-code |
535a3ef21481dbeaaaac4a662ca9fcc90a52d5cf7420dbd1cc3d5aa906ffd171 | // 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 Humanizer;
using osu.Framework.Logging;
using osu.Framework.Platform;
using osu.Game.Online.API;
using osu.Game.Overlays.Notifications;
using System;
using System.C... | C# | osu.Game/Database/DownloadableArchiveModelManager.cs | ZLima12/osu | mit | 6,317 | 144 | codeparrot/github-code |
87b8d65ce35638e835ba717aafd28e1ab5eb9aec9b6861e9d88bbe63e0698918 | <?php
namespace Oro\Bundle\CalendarBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
class RecurrenceStrategyCompilerPass implements CompilerPa... | PHP | src/Oro/Bundle/CalendarBundle/DependencyInjection/Compiler/RecurrenceStrategyCompilerPass.php | trustify/oroplatform | mit | 1,061 | 34 | codeparrot/github-code |
db54d13d3e1db841c7cd7b8aa00bbcf6cb676afbbd07585f9019c41a9c07b563 | # the default 'production' mode, PassThrough mode does nothing but called the yielded block
module TPhases
module Modes
module PassThroughMode
extend ActiveSupport::Concern
module ClassMethods
def read_phase
yield
end
def write_phase
yield
end
... | Ruby | lib/tphases/modes/pass_through_mode.rb | charleseff/tphases | mit | 701 | 33 | codeparrot/github-code |
b229a94f6060fa34a55bb231ddc369b429009f9a133ac88399b74a62b8b94d96 | // ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ===========================... | C# | src/Squidex/Areas/Api/Controllers/Backups/BackupContentController.cs | pushrbx/squidex | mit | 1,811 | 54 | codeparrot/github-code |
c7ddafa34cf4410c03056b308bae59351d07046812e38132971f3f62e8712455 | using System;
using System.Text.Json;
namespace Lib.AspNetCore.Mvc.JqGrid.Core.Json
{
internal class JqGridJsonWriter : IJqGridJsonWriter
{
#region Fields
private readonly Utf8JsonWriter _innerWriter;
private readonly JsonSerializerOptions _innerWriterOptions;
#endregion
... | C# | Lib.AspNetCore.Mvc.JqGrid.Core/Json/JqGridJsonWriter.cs | tpeczek/Lib.AspNetCore.Mvc.JqGrid | mit | 1,583 | 60 | codeparrot/github-code |
a69b8a0e7844473a9034e4370a695579a9e1f26bf707b535f50db416026c26ff | /**
* Created by Administrator on 2016/4/30.
*/
var canvas;
var stage;
var img = new Image;
var sprite;
window.onload = function(){
canvas = document.getElementById("canvas");
stage = new createjs.Stage(canvas);
stage.addEventListener("stagemousedown",clickCanvas);
stage.addEventListener("stagemouse... | JavaScript | 2016/0430-1 canvas/app3.js | wangyongtan/H5 | mit | 1,666 | 70 | codeparrot/github-code |
2c78597d1be6b4304d9c7beb59865a2035acef47079a6d102c11a7705415f89a | !function(){
var isFunction = function(obj){
return typeof obj === "function";
};
var polyfill = {
create:function(proto){
if (arguments.length > 1) {
throw new Error('Object.create implementation only accepts the first parameter.');
}
function F() {}
F.prototype = proto;
return new... | JavaScript | src/script/polyfill/object.js | anuny/fui | mit | 872 | 41 | codeparrot/github-code |
19ed89694066d70838f9662eba91b4b3f24e4f7008325efec849890513241e0c | <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
... | PHP | application/views/view_menu2.php | hendynew/fatncurious | mit | 20,251 | 468 | codeparrot/github-code |
5243e83d81f73e782ebfcff6e508b9b28f1d79b0e9f63c6a0864dffcbb61356e | // StyleDocco documentation user interface elements
// ==================================================================
// Dropdowns and search.
(function() {
'use strict';
/*global searchIndex:false*/
// Helper functions. Using `Array.prototype` to make them work on NodeLists.
var inArray = function(arr, ... | JavaScript | share/docs.ui.js | konitter/styledocco-bootstrap-theme | mit | 1,722 | 66 | codeparrot/github-code |
ce2e343c40bca5cec0fba78b7580a10cc01a825a26e6bae348d0e239c148fbc1 |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014-2018 Francois Beaune, The appleseedhq Organization
//... | C++ | src/appleseed.studio/mainwindow/configurationmanagerwindow.cpp | Biart95/appleseed | mit | 2,726 | 85 | codeparrot/github-code |
4897aba5b4c59005ed790e894920b09c7f3f518ea3da0d30085e0d0329fd6d3f | // Copyright (c) 2017 Himanshu Goel
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#ifndef CARDINAL_SYSDEBUG_H
#define CARDINAL_SYSDEBUG_H
#include <stdint.h>
typedef int (*DebugFunc) ();
typedef struct {
char func_name[240];
DebugFunc func;
} DebugHandler_t;
... | C | modules/inc/SysDebug/debug.h | himanshugoel2797/Cardinal-semicolon | mit | 799 | 39 | codeparrot/github-code |
8cfbc07bafde19f00211e573a57f7c35016e4f9214c45d3172bfe0305c766fe5 | <?php
namespace Admin\Prod\ProductBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\C... | PHP | src/Admin/Prod/ProductBundle/Controller/ProductController.php | radoshordos/shopsymfony | mit | 6,739 | 247 | codeparrot/github-code |
cf845f2dde774c6d9633511dd129d3caa8341ff9e6c69bcbdcef9778443d5d22 | namespace SearchQueryTool.SPAuthenticationClient
{
using System;
using System.Runtime.Serialization;
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Runtime.Serialization.DataContractAttribute(Name = "LoginResult", Namespace = "http://schemas.microsoft.com/sharepoint/soap/")]
[S... | C# | MaxMelcher.QueryLogger/SearchQueryTool/SPAuthenticationClient/AuthenticationClient.cs | MaxMelcher/QueryLogger | mit | 10,777 | 297 | codeparrot/github-code |
5e84df0d092757f63ebd8aa52b94683ab05120d692ef1bea09d2f3744f0d99e6 | package engsoft;
/**
*
* @author Moisés Bernardino
* RG 40.209.255-7
* ensoft57
*
*/
public class ProgressaoFibonacci extends Progressao {
private int valPrev;
private int inicio;
private int next;
ProgressaoFibonacci() {
this.setInicio(0);
this.setNext(1);
inicia();
}... | Java | exercicio/src/main/java/engsoft/ProgressaoFibonacci.java | mbernardino/inf319 | mit | 949 | 62 | codeparrot/github-code |
09f1db900d4d6059d723bb4128e1305f484df32398bd41c63f5eb73525d8912e | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Windows;
using System.Windows.Controls;
using ShaneYu.HotCommander.Commands;
using ShaneYu.HotCommander.Logging;
using ShaneYu.HotCo... | C# | ShaneYu.HotCommander.UI.WPF/Models/CommandBarViewModel.cs | ShaneYu/shaneyu.hotcommander | mit | 10,365 | 319 | codeparrot/github-code |
0d2f0b98ed4402fda52abba885a9c4ff400654303ed25f9c4021403548bc01eb | #!/usr/bin/env node
var RSVP = require('rsvp');
var spawn = require('child_process').spawn;
var chalk = require('chalk');
var packages = require('../lib/packages');
var runInSequence = require('../lib/runInSequence');
function shouldPrint(inputString) {
var skipStrings = [
"*** WARNING: Method userSpaceScaleF... | JavaScript | bin/run-tests.js | 8thcolor/ember.js | mit | 3,768 | 151 | codeparrot/github-code |
c4846e17e57adfb4a08781241d65f40031f6c3876bdfbd907a57f405ca648fa5 | #pragma once
#include "logger.h"
#include "Util.h"
#include "MAPIRules.h"
namespace Zimbra
{
namespace MAPI
{
typedef struct _Folder_Data
{
wstring name;
SBinary sbin;
wstring folderpath;
wstring containerclass;
long zimbraid;
unsigned long itemcount;
} Folder_Data;
typedef struct _Item_Data
{
... | C | ZimbraMigrationTools/src/c/Exchange/MAPIAccessAPI.h | nico01f/z-pec | mit | 6,752 | 267 | codeparrot/github-code |
514e3379ee56a2be84614bcb05785b1b372277ebb48b3c66a64b77d50a9a4959 |
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for leetCode/0206.ts</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../prettify.css" />
<link rel="stylesheet" href="../base.css" />
<link rel="shortcut icon" type="image/x-icon" href="../favicon.png" />
<meta n... | HTML | leetCode/0206.ts.html | sabertazimi/hust-oj | mit | 5,313 | 142 | codeparrot/github-code |
1b8f7c6fbc9502c8ee9e81f05485b3a59cece8b427778e953788f268bcc7940f | <?php
namespace Widgets\Front\Comments;
use Ffcms\Core\App;
use Ffcms\Core\Arch\Widget;
/**
* Class Comments. Add, list comments as widget view
* @package Widgets\Front\Comments
*/
class Comments extends Widget
{
public $name;
public $id;
/**
* Widget initialization. Set current pathway to prope... | PHP | Widgets/Front/Comments/Comments.php | phpffcms/ffcms | mit | 951 | 44 | codeparrot/github-code |
50b823d26a245579b54ae1ae2ff738c26f2455684ffb76db44e47f86069d50f0 | require 'observed/observer'
require 'observed/configurable'
require 'forwardable'
require 'logger'
module Observed
# The DSL to describe Observed's configuration.
# @example
# context = ConfigDSL.new(builder: the_builder)
# context.eval_file observed_conf_file(a.k.a user code describes Observed configuration)
... | Ruby | lib/observed/config_dsl.rb | gree/observed | mit | 2,320 | 72 | codeparrot/github-code |
0ae84df4d1bbc387cba4e4720864923b2cb8c42e52732c3370b0a4dbdb9fa780 | #include <iostream>
#include <limits>
#include <new>
#include <cassert>
#include <adobe/algorithm.hpp>
#include <adobe/forest.hpp>
#include <boost/range.hpp>
template <typename R> // R is a depth adaptor range
void output(const R& f)
{
typedef typename boost::range_iterator<R>::type iterator;
for (iterator f... | C++ | test/forest_smoke/main.cpp | brycelelbach/asl | mit | 3,736 | 117 | codeparrot/github-code |
ecaceefbfb3f3c41160623b5945642b2708f50c8c1491a22efe2723db973cae7 | <?php
/**
* Bu Dosya AnonymFramework'e ait bir dosyadır.
*
* @author vahitserifsaglam <vahit.serif119@gmail.com>
* @see http://gemframework.com
*
*/
namespace Anonym\Components\Filesystem;
use League\Flysystem\Adapter\Local as LocalAdapter;
use League\Flysystem\Rackspace\RackspaceAdapter;
use League\Flysystem\A... | PHP | src/Anonym/Components/Filesystem.php | AnonymPHP/Anonym-Filesystem | mit | 6,541 | 304 | codeparrot/github-code |
004e0d7ed78bc62b644df17df0a2717f986e6474dc707f385e307316c7cf7535 | using System;
using System.Collections.Generic;
using System.Linq;
using Affecto.Authentication.Claims;
namespace ServiceRegister.Tests.Infrastructure
{
public class TestUserContext : IAuthenticatedUserContext
{
public TestUserContext()
{
Permissions = new List<string>(0);
... | C# | Source/ServiceRegister.Tests.Infrastructure/TestUserContext.cs | City-of-Helsinki/palvelutietovaranto | mit | 1,520 | 50 | codeparrot/github-code |
d3b7adcf454aa5992fe6f31bba8150e16fa7b82dcf94c284ebf18dbd27b7cb64 | package it.uspread.android.task;
import java.util.ArrayList;
import java.util.List;
import it.uspread.android.USpreadItApplication;
import it.uspread.android.data.Message;
import it.uspread.android.data.criteria.MessageCriteria;
import it.uspread.android.remote.USpreadItServer;
import it.uspread.android.remote.except... | Java | uSpreadIt/src/main/java/it/uspread/android/task/TaskListSpreadMessages.java | uSpreadIt/uSpreadIt-Android | mit | 2,633 | 63 | codeparrot/github-code |
f0946838282825716d1fc761f7a42abd3044c60e233c6bdb2293880b51d5ee53 | //import necessary library
import java.util.Scanner;
//declare headquarters (gamebrain) class
public class HQ
{
//declare and initialize constants: clear string of many line breaks to clear terminal window, scanner to read user input
public final String c = "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\... | Java | Murk RPG/HQ.java | anuvgupta/compprog | mit | 1,759 | 36 | codeparrot/github-code |
7cd4e4fa10f164f842723b051dada24a2612db179b2fa15152861319f5ad7130 | import { window } from "vscode";
type LogLevel = "DEBUG" | "INFO" | "WARN" | "ERROR" | "NONE";
export class LoggingService {
private outputChannel = window.createOutputChannel("Prettier");
private logLevel: LogLevel = "INFO";
public setOutputLevel(logLevel: LogLevel) {
this.logLevel = logLevel;
}
/**... | TypeScript | src/LoggingService.ts | esbenp/prettier-vscode | mit | 2,962 | 114 | codeparrot/github-code |
073b35533d1e0d72abe04795ef1499e8a4596984290426643875ea6d8c2b861b | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExtendType.OfCollection.Abstraction
{
public class CollectionOfAbstract<TFrom,TTo> : ICollection<TTo>
where TFrom : TTo
{
private readonly ICollection<TFrom> Target;
public CollectionO... | C# | ExtendType.OfCollection/Abstraction/CollectionOfAbstract.cs | ExtendType/OfCollection | mit | 1,125 | 64 | codeparrot/github-code |
f577a6e856c1756115c2c60c8f6be01952574217bfdc79ef243b9b9e09291921 | <!DOCTYPE html>
<html class="theme-next mist use-motion" lang="zh-Hans">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">
<meta http-eq... | HTML | tags/Test/index.html | nash635/nash635.github.io | mit | 27,154 | 1,038 | codeparrot/github-code |
a751015de650cc90f01fc98a589421188b201b788bc282cd9bb0b61d77a15dad | /**
* Valence Chat
*
* Created By: Jeff Avis
*/
var SERVER_PORT = 3434;
var D2L = require('valence'),
express = require('express'),
request = require('superagent'),
sessions = require('client-sessions'),
socketIO = require('socket.io'),
http = require('http'),
config = require('./config.js... | JavaScript | src/server.js | JeffAD2L/Valence-Chat | mit | 15,789 | 586 | codeparrot/github-code |
4e5d7d3aa544f0ff81c4df5311b95c45d3f674bb1d5f19439e59fd92a659181e | #define DEBUG 1
/**
* File : B.cpp
* Author : Kazune Takahashi
* Created : 10/12/2019, 8:01:01 PM
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <string>
#include <complex>
#include <tuple>
#include <queue>
#include <stack>
#include <ma... | C++ | 2019/1012_ABC142/past/B.cpp | kazunetakahashi/atcoder | mit | 3,293 | 164 | codeparrot/github-code |
baefe3f5ce00cd0f82f97e22cab49941149f02a81bb58cedb98b4bed8996bbda | var readlineSync = require('readline-sync');
var util = require('util');
var mainProgram = function () {
var first = readlineSync.question('First?');
first = parseInt(first);
//console.log('typeof first = ' + typeof first);
var second = readlineSync.question('Second?');
second = parseInt(second);
var b... | JavaScript | node/teacher/03_page201/program.js | stlukesdy/yr11sdd2015 | mit | 723 | 41 | codeparrot/github-code |
5a1e2eb9bc0e38cf91ab70b412f24527cf0eaa6b52db97959161babdacfc560f | <?php
namespace PHPBot\OS;
class Factory
{
public static function detectOperatingSystem()
{
return php_uname('s');
}
public static function createFromOSString($os)
{
switch (strtolower($os)) {
case 'windows nt':
return new WindowsNT();
break... | PHP | src/PHPBot/OS/Factory.php | nawarian/PHPBot | mit | 573 | 30 | codeparrot/github-code |
5b77ad70f02b86d103867b057d7c17a1c751fce2df1148325538be216814ae04 | # Reference and ideas from http://pytorch.org/tutorials/beginner/transfer_learning_tutorial.html
from __future__ import print_function
import torch.nn as nn
import torchvision.models as models
import warnings
warnings.filterwarnings("ignore")
##################################################################
## ... | Python | PyTorch_models.py | ivanlai/Kaggle-Planet-Amazon | mit | 5,862 | 204 | codeparrot/github-code |
8bf7c2308b9f56151eb4928212050d6c5fd8cc82da1018b273abb2c9a08fc39c | package studios.slick.acminternal.database;
import com.orm.SugarRecord;
/**
* Created by Darshan on 17/06/15.
*/
public class Newsfeed extends SugarRecord<Newsfeed> {
public String postName;
public String postContent;
public String postImageUrl;
public Newsfeed(String postName, String postContent,... | Java | app/src/main/java/studios/slick/acminternal/database/Newsfeed.java | darshanmehta17/ACMInternal | mit | 680 | 32 | codeparrot/github-code |
240a004fa36321c85c25031d2d6abc3ba0f8846660e2c6571d07d5988a54564a | <?php
namespace HCLabs\Bills\Model;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use HCLabs\Bills\Value\AccountNumber;
use HCLabs\Bills\Value\BillingPeriod;
use HCLabs\Bills\Value\Money;
class Account
{
/** @var int */
private $id;
/** @var Service */
... | PHP | src/HCLabs/Bills/src/Model/Account.php | jrdnhannah/billr | mit | 4,011 | 186 | codeparrot/github-code |
6f65b9b88cc9d31eefb87fbdb853dd5bd7fd80b51b1173827d2c57c8e2e3e327 | {%extends 'base.html'%}
{%block maincontent%}
<div class="hero-spacer well base-hero join-hero">
<h1>
Join the <strong>community</strong>!
<small>
Hack to make a difference.
</small>
</h1>
<p class="hero-punch">
Learn. Create. Connect. Brag. :)
</p>
<p class="hero-desc">
PizzaHackers... | HTML | core/templates/join.html | PizzaHackers/pizzahackers-web | mit | 3,840 | 121 | codeparrot/github-code |
9413de166e1ab9a768aac55f127d6a67c73e78330615a529a3365001b159d93c | <!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class FeatureManagerBase
</title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class FeatureManagerBase
"... | HTML | docs/api/Kephas.Application.FeatureManagerBase.html | quartz-software/kephas | mit | 33,145 | 649 | codeparrot/github-code |
b17acf8dfdd1bb0ad763418e51098f4493fc9bd736ad7c4bc38983b73a9a2c38 | /*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is grant... | C | 02_Library/Include/XMBullet/BulletCollision/CollisionShapes/btConvex2dShape.h | mcodegeeks/OpenKODE-Framework | mit | 2,817 | 81 | codeparrot/github-code |
172c14586bacec6bda9c723216125eb0f44354c10781682606f74ef0bf85608a | #include <benchmark/benchmark.h>
#include <cstring>
#include <type_traits>
#include <utility>
#include <optional>
#include <vector>
#include "robin-hood-set.h"
#include "ska-flathash.h"
inline unsigned bernstein_hash(const char *s)
{
unsigned hashv = 0;
while (*s) hashv = 33*hashv + *s++;
return hashv;
}
... | C++ | cppnow2018/benchmark-tombstone.cc | Quuxplusone/from-scratch | mit | 4,770 | 139 | codeparrot/github-code |
7111e9e3f8bacf9c746591ee4cc920eef613a140123a8a100024ef98546be464 | /*
* ********************************************************************************************************************
* <p/>
* BACKENDLESS.COM CONFIDENTIAL
* <p/>
* ********************************************************************************************************************
* <p/>
* Copyright 20... | Java | src/com/backendless/servercode/extension/PersistenceExtender.java | gwokudasam/Android-SDK | mit | 4,391 | 134 | codeparrot/github-code |
e234f344c34cf660631e0db1fcce358e608bc707dda82559c21203a7b2b935e9 | <?php
/**
* Plugin Name: Example Widget
* Plugin URI: http://example.com/widget
* Description: A widget that serves as an example for developing more advanced widgets.
* Version: 0.1
* Author: Justin Tadlock
* Author URI: http://justintadlock.com
*
* This program is distributed in the hope that it will be usefu... | PHP | lib/vinny-widget.php | vinefreeman/rootscis | mit | 5,116 | 143 | codeparrot/github-code |
543e514a63ce12eaf5091197bf88fab969039d91a26a225e18f1ee5fcf7179fc | const gulp = require('gulp');
const zip = require('gulp-zip');
const rename = require('gulp-rename');
const packageJson = require('../package.json');
const generateAddonXml = require('./generate-addon-xml.js');
const { src, dest, series, parallel } = gulp;
const packageName = `${packageJson.name}-v${packageJson.versi... | JavaScript | tasks/pack.js | scholtzm/arnold | mit | 1,141 | 51 | codeparrot/github-code |
3332ea4993da8273e5111d85c2c801a1aa5b5a0b83f1f4ddb3a21c300fe57324 | {% extends "reserved/_base.html" %}
{% load staticfiles %}
{% load compress %}
{% load text %}
{% block head %}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{% block title %} - {% endblock %}</title>
<meta name="description" content="">
<meta name="vi... | HTML | reserved/templates/reserved/base.html | Strangemother/coffee | mit | 4,208 | 104 | codeparrot/github-code |
8a3cda41f49732ae055bcfc7626dda3d352ec1e72d5a88ff2e8d5d0dadda59a0 | LoansController = BusinessUnitController.extend({
// a place to put your subscriptions
// this.subscribe('items');
// // add the subscription to the waitlist
// this.subscribe('item', this.params._id).wait();
subscriptions: function() {
},
// Subscriptions or other things we want to "wait... | JavaScript | main/app/lib/controllers/loans_controller.js | c2gconsulting/bp-core | mit | 1,900 | 64 | codeparrot/github-code |
519fcca2d8bdae05e20ef74bae95bc848eb846639fa253c6b65e97536aa39e98 | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace DevCamp.API.Models
{
public class Incident
{
[JsonProperty("id")]
public string Id { get; internal set; }
public string Description { get; set; }
public string ... | C# | Shared/API/DevCamp.API/Models/Incident.cs | AzureCAT-GSI/DevCamp | mit | 1,198 | 37 | codeparrot/github-code |
9e95680ffbbf4978bfaa84649148224cad2594ebc307d0ad249f48833cc695f6 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "miner.h"
#include "amount.h"
#include "chain.h"
#include "chainparams.... | C++ | src/miner.cpp | viz-dev/viz | mit | 25,517 | 648 | codeparrot/github-code |
959ac369577a61891a5d2fd81c702da692bb2cb680ac49ca00401cc3297802dd | // Copyright (c) 2009-2012 The Bitcoin Developers
// Copyright (c) 2011-2012 Litecoin Developers
// Copyright (c) 2014 LeaderCoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef __CRYPTER_H__
#define __CRYP... | C | src/crypter.h | LeaderCoin/Leader-Coin | mit | 3,442 | 103 | codeparrot/github-code |
370223d145597da95030509fc80c885a8be23419d91d9307aee62ce0c30da5bb | /**
* @file pcmmix.h
* @brief Interface of the pcm sound
*/
#pragma once
#include <sound/sound.h>
enum {
PMIXFLAG_L = 0x0001,
PMIXFLAG_R = 0x0002,
PMIXFLAG_LOOP = 0x0004
};
typedef struct {
UINT32 playing;
UINT32 enable;
} PMIXHDR;
typedef struct {
SINT16 *sample;
UINT samples;
}... | C | sound/pcmmix.h | AZO234/NP2kai | mit | 825 | 53 | codeparrot/github-code |
bbac5283b45c18480a39a77746988b07e7dba6927f623d03fe53669883050894 | // Copyright © 2016 George Georgiev. All rights reserved.
//
#include "task/git/git_fetch_task.h"
namespace task
{
GitFetchTask::GitFetchTask(const doim::FsDirectorySPtr& directory,
const doim::UrlSPtr& url,
const string checkout)
: Element(directory, url, ch... | C++ | src/task/git/git_fetch_task.cpp | ggeorgiev/dbs | mit | 762 | 39 | codeparrot/github-code |
9b9c8599ceb71f32e82f6649f3b2a3298e54ee00613bbe7ef0cf131ccdf32f7a | package io.youi
import org.scalajs.dom._
import perfolation._
import scala.concurrent.{Future, Promise}
import scala.scalajs.js.Date
object YouIPlatform {
private val Regex = """(.{3}), (.{2}) (.{3}) (.{4}) (.{2}):(.{2}):(.{2}) GMT""".r
private val DayNames = Vector("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat... | Scala | core/js/src/main/scala/io/youi/YouIPlatform.scala | outr/youi | mit | 1,177 | 33 | codeparrot/github-code |
e9d2eca4207d71e826cbbf1f292a7597b2f70c64ea4a05bbd712f514b66e5258 | #!/usr/bin/python
import Proxy_Hours, proxyhours_gather_all_data
try:
from PyQt4 import QtCore, QtGui
qtplatform = "PyQt4"
except:
from PySide import QtCore, QtGui
qtplatform = "PySide"
import os
def which(pgm):
path=os.getenv('PATH')
for p in path.split(os.path.pathsep):
p=os.path.jo... | Python | main.py | timlev/Proxy-Hours | mit | 1,572 | 57 | codeparrot/github-code |
784ec8eaab8b621de7485fce004be6d52c2f98da0cf0442c9f67758265094dbc | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Resource_model extends MY_Model
{
protected $table = 'acl_resources';
protected $rules_table = 'acl_rules';
protected $has_updated_field = true;
public $validation_rules = array(
'id' => array(
'helper' => 'form_hidden'
),
'name... | PHP | application/models/acl/Resource_model.php | ardissoebrata/ci-beam | mit | 3,088 | 130 | codeparrot/github-code |
24ac09c15310fb5930e12857550ca230af94667acb565c79b6bc3b3b0ca1c12a | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>compcert-64: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.5.3/compcert-64/3.7+8.12~coq_platform~open_source.html | coq-bench/coq-bench.github.io | mit | 10,766 | 222 | codeparrot/github-code |
26e48a30e22229de0b2f6be205b38e15200ce5c3f467b8755c95b6299ac15137 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ipc: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... | HTML | clean/Linux-x86_64-4.04.2-2.0.5/released/8.7.1+1/ipc/8.6.0.html | coq-bench/coq-bench.github.io | mit | 7,747 | 185 | codeparrot/github-code |
ce016660749dd49e15ebfc0a49865f1fc8ceb11ffd03b9c05a43f0dccca6ebcd | <html xmlns="http://www.w3.org/1999/xhtml"><head><title>Phing API Documentation</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta><link rel="stylesheet" href="css/jquery-ui.css" type="text/css"></link><link rel="stylesheet" href="css/docblox/jquery-ui-1.8.16.custom.css" type="text/css"></... | HTML | build-libs/phing-2.4.9/docs/api/docs/db_system_io_FileInputStream.html | aparraga/phal | mit | 14,267 | 292 | codeparrot/github-code |
e61214fc920225b65884e223c8e2a323697880ef77f29fdf5ba5487cc9417ba4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DodoNet.Overlay;
namespace DodoNet.Session
{
[Serializable]
public class SessionCheckReply : OverlayReply
{
public bool successVerify = false;
public SessionCheckReply(SessionCheckRequest request)... | C# | DodoNet/Session/SessionCheckReply.cs | blancosj/dodonet | mit | 996 | 38 | codeparrot/github-code |
9f0df8fba3c1f41b2f9459c718546088685691faf1836f081ad1c6b6bef38543 | package org.demis.comics.web;
import org.demis.comics.data.SortParameterElement;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.StringTokenizer;
public class SortParameterParser {
public static List<SortParameterElement> parse(String value) {
if (value ... | Java | comics-blog-web/src/main/java/org/demis/comics/web/SortParameterParser.java | demis27/comics-blog | mit | 1,275 | 37 | codeparrot/github-code |
d0159ae2659ea76642846bcf1fddb8931da7214845e677881aa170b66a397cf0 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace Blender
{
public class BlendTypeRepository
{
public BlendTypeRepository()
{
int capacity = 1024;
m_tables = new Dictionary<string, IBlendType>(capacity);
... | C# | BlendReader/Domain/Type/BlendTypeRepository.cs | oggy83/BlendReader | mit | 1,503 | 79 | codeparrot/github-code |
5d48cc71eb94ab297376bb927a07c7eb852b1af9761c5042bb8f9555bb8bf770 | using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Xml;
using DotLiquid;
using ICSharpCode.AvalonEdit.Highlighting;
namespace TemplateingTool
{
/// <summary>
/// Interaction logic for MainWindow.xaml
... | C# | TemplateingTool/MainWindow.xaml.cs | jogibear9988/templateingtool | mit | 3,161 | 103 | codeparrot/github-code |
f7352ff6b2bcf9a3d159173ce448ea3c485e0ee6bcc7bf043012a2c09aa6ec22 | <?php
namespace Octava\Bundle\StructureBundle\Twig;
use Doctrine\ORM\EntityManager;
use Octava\Bundle\StructureBundle\StructureManager;
/**
* Class StructureExtension
* @package Octava\Bundle\StructureBundle\Twig
*/
class StructureExtension extends \Twig_Extension
{
/**
* @var StructureManager
*/
... | PHP | src/Octava/Bundle/StructureBundle/Twig/StructureExtension.php | octava/cms | mit | 1,841 | 72 | codeparrot/github-code |
733e2eabac54d0629842969f07037a576637de17974c0281e1aee3d6fe2b9e18 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace AsteroidsClone
{
/// <summary>
/// Abstract class that defines a shape
/// </summary>
public abstract class Shape : ICloneable
{
... | C# | AsteroidsClone/AsteroidsClone/AsteroidsClone/Geometry/Shape.cs | Cheeser12/XNAsteroids | mit | 5,731 | 194 | codeparrot/github-code |
19c3daafcd597c4555bb246cb44d1b290535b799ac5f8faa11eee755872cf6fb | package codebreaker.gsl.whatsrooting;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.support.v7.view.ContextThemeWrapper;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.w... | Java | src/main/java/codebreaker/gsl/whatsrooting/RecyclerViewHolders.java | CodeBreaker444/whatsrooting-android-tab_recyclerview | mit | 2,770 | 86 | codeparrot/github-code |
ff2f128c8e69464e1e52ab1072199e9090e5542af19510c8eec9fc0a36da9a6c | <?php
namespace app\duxcms\model;
use app\base\model\BaseModel;
/**
* 安全统计
*/
class SafeModel {
/**
* 获取安全测试结果
*/
public function getList()
{
$safeArray = array();
//数据库弱口令
if(preg_match('/^(?=.*\d)(?=.*[a-zA-Z])(?=.*\W).+$/', config('DB.default.DB_PWD')))... | PHP | app/duxcms/model/SafeModel.php | cyrilzhao/zqzirui | mit | 1,530 | 63 | codeparrot/github-code |
3237192dd34e6c1bea66478e2f263c7fbf423cf0b3dbbaa5913823ffaec395ec | import { Record, List } from 'immutable';
import ShoppingCartItem from 'models/shopping-cart-item';
const Parent = Record({
items: List(),
});
class ShoppingCart extends Parent {
getItems() {
return this.get('items');
}
setItems(items) {
return this.set('items', items);
}
addItem(product, selec... | JavaScript | src/models/shopping-cart.js | JutIgor/Shop-react | mit | 2,081 | 86 | codeparrot/github-code |
b63201c7fddadf2784996e8c7739370dd12936ededa2ea250be064f16974f3a0 | using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BackyLogic;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
namespace TestBacky
{
[TestClass]
public class TestHierarchicalDictionaryClass
{
[TestMethod]
public void ... | C# | TestBacky/TestHierarchicalDictionary.cs | yaronthurm/Backy | mit | 2,498 | 66 | codeparrot/github-code |
5b3e867dd04079325dc3f03d3570c305c74a0a67bc38bfb95af072821ef4e110 | /*
* ********************************************************************************************************************
* <p/>
* BACKENDLESS.COM CONFIDENTIAL
* <p/>
* ********************************************************************************************************************
* <p/>
* Copyright 20... | Java | samples/UserService/userservicedemo/app/src/main/java/com/backendless/examples/userservice/demo/DefaultCallback.java | Backendless/Android-SDK | mit | 1,880 | 53 | codeparrot/github-code |
20ff76670b5ce7c99a2390e76bdf7ca0c89f4cd6e6720f77580d58e2caf25b64 | /*
* ********************************************************************************************************************
* <p/>
* BACKENDLESS.COM CONFIDENTIAL
* <p/>
* ********************************************************************************************************************
* <p/>
* Copyr... | Java | src/com/backendless/geo/BackendlessGeoQuery.java | gwokudasam/Android-SDK | mit | 11,161 | 346 | codeparrot/github-code |
26480f36c40c00511ff6fc99dab50c0e5091d0bae9a10bb7449742ccac1bd9d6 | using System;
using System.Collections.Generic;
using AsyncGenerator.Core.Analyzation;
namespace AsyncGenerator.Core.Extensions
{
public static class AnalyzationResultExtensions
{
public static IEnumerable<INamespaceAnalyzationResult> GetSelfAndDescendantsNamespaces(this INamespaceAnalyzationResult namespaceResul... | C# | Source/AsyncGenerator.Core/Extensions/AnalyzationResultExtensions.cs | maca88/AsyncGenerator | mit | 2,717 | 87 | codeparrot/github-code |
44545502009718669047e37adc9ae8fcdf8ad051fdd24bb5eb7a90c6e3d6f20f | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using Syst... | C# | src/WebJobs.Script/Host/ScriptHost.cs | Azure/azure-webjobs-sdk-script | mit | 37,687 | 895 | codeparrot/github-code |
3fbaf7256a36854a62afcfe7da042c14f3c352bf9fd67ae36f307ef1f196195c | <!DOCTYPE html>
<html id="home" lang="en">
<head>
<title>RTCMultiConnection API Reference / "startRecording"</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"... | HTML | RTCMultiConnection/docs/startRecording/index.html | shobhitmittal/WebRTC-Experiment | mit | 5,989 | 132 | codeparrot/github-code |
d789c9381e1dd7cd4ff95c7ab7c7dd8602a044df1e53fc32de7d2c613127910e | import React from 'react';
import styled from 'styled-components';
import {Link, HomeCard, Video,HomeStadistics} from 'components';
import {Grid, Row, Col} from 'react-flexbox-grid';
import RaisedButton from 'material-ui/RaisedButton';
import {size, palette} from 'styled-theme';
const CarouselPreview = require('react-r... | JavaScript | src/components/organisms/HomeCarousel/index.js | SIB-Colombia/biodiversity_catalogue_v2_frontend | mit | 3,045 | 119 | codeparrot/github-code |
6a7dbe2f6a545aa13632db1994adb16a49cfdf0c9fb727879fc4786c0ac3957b |
/*******************************************************************************************************
* JobObjectWrapper
*
* JobEventHandler.h
*
* http://https://github.com/alonf/JobObjectWrapper
*
* This program is licensed under the MIT License.
*
* Alon Fliess
***************************************... | C | JobManagement/JobEventHandler.h | alonf/JobObjectWrapper | mit | 15,813 | 389 | codeparrot/github-code |
4f56ed097a615e916cee26ae20b93eca5d5d39260b9e28414da712b8a425e072 | /*
***********************************************************************************************************************
*
* Copyright (c) 2014-2022 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... | C | inc/util/palHashMapImpl.h | GPUOpen-Drivers/pal | mit | 8,612 | 251 | codeparrot/github-code |
603ead0d18dd1682e7de92e1946a9ebbe578f1a3aa9c29e4df74799ccd9cace4 | 'use strict';
var chai = require('chai');
var expect = chai.expect;
var fav = {}; fav.type = require('..');
var isInteger = fav.type.isInteger;
describe('fav.type.isInteger', function() {
it('Should return true when value is an integer', function() {
expect(isInteger(0)).to.equal(true);
expect(isInteger(1... | JavaScript | test/is-integer.test.js | sttk/fav-type | mit | 2,616 | 70 | codeparrot/github-code |
7b962c961cc5b967ccf62b533c2ca2db72082735d61dadafc84731c53c2d3017 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class User extends CI_Controller {
function __construct(){
parent:: __construct();
$this->load->model('user_model');
check_auth(); //check is logged in.
}
public function index()
{
//Visible only for Admin
permittedArea();
theme(... | PHP | application/controllers/User.php | vbrainy/sales_template | mit | 6,239 | 246 | codeparrot/github-code |
41c4a042b14933378ebfac25570b9121af8f1b6b09515f6206a4a90936c095a2 |
//LocalKnowledge.js
var localKnowledgeIndexes = [];
var localKnowledgeData = [];
var currentItemsToDisplay = [];
var completelyLoadedCallback;
function initLocalKnowledge(callback)
{
completelyLoadedCallback = callback;
$.getJSON("data/data.json", function(data) {
localKnowledgeIndexes = d... | JavaScript | LocalKnowledge/LocalKnowledge.js | andrew-smith/CoastguardTraining | mit | 4,312 | 167 | codeparrot/github-code |
45ca27c943413cd3b07f1c4b4618323811b22bd1c5c8e3f8e6e571e7d895e17a | package com.kamontat.constant;
import com.kamontat.model.management.FileUtils;
import java.io.File;
/**
* All file extension that might use in this program. <br>
* contain: txt, pdf, xls, xlsx, csv <br>
* and if don't have extension in this enum this will create extension other and return by itself
* you can eas... | Java | src/main/java/com/kamontat/constant/FileExtension.java | kamontat/Github-Request | mit | 1,947 | 74 | codeparrot/github-code |
fe22674722ca46c715d7476fabcc8d107d68474812c5324eca0106d4acff2da6 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="ht... | HTML | lib/assets/images/photon/plugins/elrte/js/plugins/js/js/plugins/prettify/js/plugins/jquery-picklist.min.js.html | user-tony/photon-rails | mit | 15,112 | 197 | codeparrot/github-code |
a69e5754dba267ec92e2e96886e1c7a79b454157ec160a5f163fb559a4adbe63 | package br.com.mpmjadmin.musicasparamissa.controller;
import br.com.mpmjadmin.musicasparamissa.model.DiaLiturgico;
import br.com.mpmjadmin.musicasparamissa.proxy.DiaLiturgicoProxy;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.Initializab... | Java | src/main/java/br/com/mpmjadmin/musicasparamissa/controller/SearchDiaLiturgicoController.java | gustavofoa/mpmjadmin | mit | 2,790 | 109 | codeparrot/github-code |
2bcc3721f28f590fa980319cd304445b50c132ef5414ab0c02587ed1bf43e722 | import { EventDispatcher } from './EventDispatcher.js';
import { Face3 } from './Face3.js';
import { Matrix3 } from '../math/Matrix3.js';
import { Sphere } from '../math/Sphere.js';
import { Box3 } from '../math/Box3.js';
import { Vector3 } from '../math/Vector3.js';
import { Matrix4 } from '../math/Matrix4.js';
import... | JavaScript | src/core/Geometry.js | Amritesh/three.js | mit | 27,911 | 1,447 | codeparrot/github-code |
6ffcc14248e854a47f9924a164cb2317578d4c8d0c5f08f1272fd4d3c5ff2604 | require 'nacre'
module Nacre
class Token
attr_reader :token
def initialize token
if validate token
@token = token
else
fail TokenError
end
self
end
def to_s
@token.to_s
end
def is_valid?
validate @token
end
private
def valid... | Ruby | lib/nacre/token.rb | allolex/nacre-old | mit | 518 | 41 | codeparrot/github-code |
46f1153a164218845162b4c6a8e44fd8df110521ee57fb342e6dac5978ef407f | <HTML><HEAD>
<TITLE>Review for Much Ado About Nothing (1993)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0107616">Much Ado About Nothing (1993)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/Rev... | HTML | data science/machine_learning_for_the_web/chapter_4/movie/2245.html | xianjunzhengbackup/code | mit | 4,038 | 71 | codeparrot/github-code |
a3d57621a0bc749b3711bd193faa8d9c1af869998d0879369843423bdd9773be | # frozen_string_literal: true
module QA
module Page
module MergeRequest
class Show < Page::Base
include Page::Component::Note
view 'app/assets/javascripts/vue_merge_request_widget/components/states/ready_to_merge.vue' do
element :merge_button
element :fast_forward_messa... | Ruby | qa/qa/page/merge_request/show.rb | axilleas/gitlabhq | mit | 4,691 | 166 | codeparrot/github-code |
5f7ffbc0f349d31e65ab454fd747741275fe06873bc008ed8da8447b3b5e42bb | // # Ghost Configuration
// Setup your Ghost install for various environments
// Documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
config = {
// ### Production
// When running Ghost in the wild, use the production environment
// Configure your URL and m... | JavaScript | config.js | huangxiangsai/awsghost | mit | 3,960 | 145 | codeparrot/github-code |
b097bca14a7d9b7ebe3e47639c057ac6d110f83d8e03dfad2d88e1321880f91d | /**
*
* Quicksort.java
*
* Author: Stefan Mendoza
*
* Based on the description provided in CLRS (3rd Edition).
*
*/
import java.util.Arrays;
public class Quicksort {
private static void swap(int[] array, int index1, int index2) {
int temp = array[index1];
array[index1] = array[index2];
array[index2]... | Java | Java/Quicksort.java | AndrewRademacher/Algorithms | mit | 875 | 52 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.