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 |
|---|---|---|---|---|---|---|---|---|
3d67f8be19a595c2c628d7097a92881d41f47add20648ff301b6ac929b1dacda | // Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// 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, co... | C# | WPFDesign.Designer/Services/ClickOrDragMouseGesture.cs | iodes/WPFDesign | mit | 2,613 | 67 | codeparrot/github-code |
bca440f1ea5d4120fe26a19057524da4d655c3b28e040c7bd91bbe1465a6683d | using System.Collections.Immutable;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using MoreLinq;
namespace WarHub.ArmouryModel.Source.CodeGeneration
{
internal abstract class CoreChildBase
{
protected CoreChildBase(
... | C# | src/WarHub.ArmouryModel.Source.CodeGeneration/CoreChildBase.cs | WarHub/wham | mit | 2,519 | 77 | codeparrot/github-code |
cdd116db9a0cef8932dd137fcb422bad37cae95d57f204a2ab320e9f06b908bf | class Solution {
public:
bool search(vector<int>& nums, int target) {
int l = 0, r = nums.size() - 1;
if(nums.empty()) return false;
while(l != r && nums[l] == nums[r]) l++;
while(l < r) {
int mid = (l + r) >> 1;
if(nums[mid] == target) return true;
... | C++ | LeetCode/81.Search_in_Rotated_Sorted_Array_II.cpp | w181496/OJ | mit | 875 | 33 | codeparrot/github-code |
4e1a6ed9f423ceea0fabc8d8eca1bad4850671c510b1c4e8582d689c826af600 | "use strict";
const removeDiacritics = require('diacritics').remove;
const request = require('request');
//const pSegCases = require('../test/promiseSwitchCase.js');
var utils = {
/**
* Resolve all promises in Object via for ... in loop
* @param {object} obj - The object containing function properties => Swi... | JavaScript | lib/utils.js | W3stside/glitch | mit | 3,112 | 101 | codeparrot/github-code |
bc6e4dd660b7d463b9b9fc13819a80be8bc006402bfb23a9f28121772d124cf1 | var my = require('my');
var maxHeight = 300, maxWidth = 300;
exports.view = function(data) {
console.log("view: m.js");
console.log(data);
var topic = data.topic;
return(
my.page({title: 'Hello World', scripts:["http://code.jquery.com/jquery-latest.js"]},
/*my.div({id: 'myDiv', style: {height: '800... | JavaScript | whydJS/app/views/public/m.js | greyvugrin/openwhyd | mit | 2,229 | 93 | codeparrot/github-code |
2500fb49836cd2dabb9731c561cd8e833428509ff77bafa8808de8f1721a2f03 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>smpl: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | HTML | clean/Linux-x86_64-4.13.1-2.0.10/released/8.13.2/smpl/8.12.0.1.html | coq-bench/coq-bench.github.io | mit | 7,334 | 171 | codeparrot/github-code |
810a9f78845677772cac5d8927a4c068c3dbc070f14245a0ec48ca1beb8196f6 | /*! normalize.css v3.0.0 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-family: sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100... | CSS | sass/style.css | dhabersack/remarkable-server | mit | 10,304 | 676 | codeparrot/github-code |
4bd0ce4f57c32df5229e11cc6e2ff05bbcca8c247cd923f8c40f5a08030be894 | <?php
namespace Handler\Admin\Article\Ad;
if (!defined('IN_PX'))
exit;
use Handler\Admin\AbstractCommon;
use Admin\Helper;
use Tools\Auxi;
use Tools\MsgHelper;
/**
* 读取
*/
class Read extends AbstractCommon {
public function processRequest(Array & $context) {
$this->_pushSetting(... | PHP | core/Handler/Admin/Article/Ad/Read.handler.php | MiaoZhua/mzworld-php | mit | 3,127 | 89 | codeparrot/github-code |
09c8ea5f902bb2e66ed80d3633d07badf4e24333ca4a136042cd55288b6209fa | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>semantics: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.8.1/semantics/8.11.1.html | coq-bench/coq-bench.github.io | mit | 7,829 | 188 | codeparrot/github-code |
4026af99986cacb59fc678395ee142c039ec8e3a8b7a08ee292a6d585bed0fd8 | import React, { Component } from 'react'
import { connect } from 'react-redux'
import { setSearchTerm } from './actionCreators'
import { Link } from 'react-router'
class Header extends Component {
constructor (props) {
super(props)
this.handleSearchTermChange = this.handleSearchTermChange.bind(this)
}
h... | JavaScript | js/Header.js | joordas/react-fem | mit | 1,191 | 56 | codeparrot/github-code |
9b1b306b054acc0f6ef3cf6d710bf0a79ba0667fc16cb705d7d1fc6daa9e78f5 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Threading;
using Microsoft.Xna.Framework;
namespace Gearset.Components.Profiler {
public class Profiler : Gear {
/// <summary>The maximum number of discrete heira... | C# | Gearset/Components/Profiler/Profiler.cs | bartwe/Gearset | mit | 19,768 | 482 | codeparrot/github-code |
57abab1d5c516daf59bff31dded62900b364957914c68e25b90ca559c823b6e7 | package ch.heigvd.amt.mvcdemo.rest.resources;
import ch.heigvd.amt.mvcdemo.model.entities.Sector;
import ch.heigvd.amt.mvcdemo.rest.dto.SectorDTO;
import ch.heigvd.amt.mvcdemo.services.dao.BusinessDomainEntityNotFoundException;
import ch.heigvd.amt.mvcdemo.services.dao.SectorsDAOLocal;
import java.net.URI;
import java... | Java | MVCDemo/src/main/java/ch/heigvd/amt/mvcdemo/rest/resources/SectorsResource.java | SoftEng-HEIGVD/Teaching-HEIGVD-AMT-Example-MVC | mit | 3,061 | 114 | codeparrot/github-code |
3df75d098808de8ca48c83a6ec6f5f1cd8cf446fcb1b8e22037c53ff67b376e1 | using System;
using System.Diagnostics;
using Pgno = System.UInt32;
using PTRMAP = Contoso.Core.MemPage.PTRMAP;
using Contoso.Threading;
namespace Contoso.Core
{
public partial class BtShared
{
internal RC allocateBtreePage(ref MemPage ppPage, ref Pgno pPgno, Pgno nearby, byte exact)
... | C# | src/Structs.Data.Btree/Core+Btree/BtShared+Alloc.cs | Grimace1975/gpustructs | mit | 18,928 | 366 | codeparrot/github-code |
7aefb17049ef82887a2d25f22d12a1ad87ced4d55864ee128ee14037c9199df9 | package cz.augi.gsonscala
import java.util.Optional
import java.util.concurrent.TimeUnit
import com.google.gson.{Gson, GsonBuilder}
import org.junit.runner.RunWith
import org.scalatest.{FlatSpec, Matchers}
import org.scalatest.junit.JUnitRunner
import scala.concurrent.duration.Duration
class AsMillis extends UnitSp... | Scala | src/test/scala/cz/augi/gsonscala/UnitSpec.scala | augi/gson-scala | mit | 2,859 | 86 | codeparrot/github-code |
dd80949d22c1f202c408f6aeca65a45cdebd3185492d5c6a447726640eb5af26 | # frozen_string_literal: true
require 'cucumber/core/test/timer'
module Cucumber
module Core
module Test
class Runner
attr_reader :event_bus, :running_test_case, :running_test_step
private :event_bus, :running_test_case, :running_test_step
def initialize(event_bus)
@event... | Ruby | lib/cucumber/core/test/runner.rb | kamenlitchev/cucumber-ruby-core | mit | 4,031 | 151 | codeparrot/github-code |
62c2f0e304f28abb890a6d04b0ef5f1d7afaf3641929b36133e57db1ee6c7af2 | var answers = [];
var validate = () => {
$("#afev-answer-1").animate(
{ backgroundColor: "green"}
);
var good = true;
if (answers.indexOf(1) === -1) {
good = false;
}
if (answers.indexOf(2) !== -1) {
$("#afev-answer-2").animate(
{ backgroundColor: "red"}
... | JavaScript | afev/scripts/question-4-1.js | SvenFrankson/SvenFrankson.github.io | mit | 1,257 | 50 | codeparrot/github-code |
9dc996880ae58e0a17b24b7ac78219cdb17181ed7e524105aab454c82ec6c6a6 | #!/usr/bin/python
import glob
import os
import shutil
import subprocess
import sys
import yaml
def create_role(role):
ret = subprocess.check_output(
'ansible-galaxy init {}'.format(role).split())
if not ret.strip().endswith('created successfully'):
raise Exception('could not create role "{}"... | Python | app_builder/app_builder_image/concat_roles.py | waltermoreira/dockeransible | mit | 3,259 | 127 | codeparrot/github-code |
5a2ba6b5db7a9dfbbe17c3d0be9db2d6e2f1bb990cd4325a1ae23ed82c346b2c | import {Component, DynamicComponentLoader, ElementRef, Injector}
from 'angular2/core';
import DynamicComponent from './dynamic-component';
import Hello from './hello';
@Component({
selector: 'load-as-root-component',
directives: [
Hello
],
template: `
<div class="wrapper">
<h3>LoadAsRoot Componen... | TypeScript | example-apps/kitchen-sink-example/source/components/dynamic-controls/load-as-root-component.ts | vanessayuenn/batarangle | mit | 812 | 31 | codeparrot/github-code |
9e2f07b7661032a513122354b305e796ed209bea72fd8a61dac20a7dcd34e965 | /*
* 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 eu.diversify.ffbpg.evolution.platforms;
import eu.diversify.ffbpg.Application;
import eu.diversify.ffbpg.BPGraph;
import eu.d... | Java | src/main/java/eu/diversify/ffbpg/evolution/platforms/DropOneRandomService.java | ffleurey/FFBPG | mit | 1,234 | 44 | codeparrot/github-code |
0750bf33062dea842c902f01fa15612ccacfed00d4eefac7f8f5665d08145fc1 | <?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace ApiPlatform\Doctrine\Odm\Filter;
use ApiPlat... | PHP | src/Doctrine/Odm/Filter/AbstractFilter.php | api-platform/core | mit | 3,449 | 114 | codeparrot/github-code |
f07f4ff1cc50235b320a49f897f7c43c6903af9dba5bbbe321b9b34caf6b71f2 | using Microsoft.Xna.Framework;
using NutEngine.Physics.Shapes;
namespace NutEngine.Physics
{
public static partial class Collider
{
public static bool Collide(IBody<Circle> a, IBody<Circle> b, out IntersectionArea intersection)
{
// Probably here should be the sector collisions che... | C# | MadCat/NutEngine/Physics/Collider/CirclevsCircle.cs | EasyPeasyLemonSqueezy/MadCat | mit | 1,836 | 54 | codeparrot/github-code |
68e75f5fb6fde43f8a9f7e1a013278980216838c9000392003c8e66d41783e9c | package org.swcraft.javase.collections.map;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;
import org.junit.Test;
public class MapImplementationsTest {
@Test
public void testHashMap() throws Exception {
Map<String, Integer> m... | Java | java-se-tutorial/src/test/java/org/swcraft/javase/collections/map/MapImplementationsTest.java | nukesz/swcraft | mit | 1,700 | 80 | codeparrot/github-code |
f37591f45f0eea25eef1ba76f957272b6c78fb6cc7bc77d73d91eff50b8ceeb4 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ceres: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.6.1/ceres/0.2.0.html | coq-bench/coq-bench.github.io | mit | 6,849 | 168 | codeparrot/github-code |
dd1f30ab617253a15d110dd023240d6280c043617b2e210f46fc6a87a04a8766 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Make use of synaptic as backend."""
# Copyright (C) 2008-2010 Sebastian Heinlein <devel@glatzor.de>
# Copyright (C) 2005-2007 Canonical
#
# Licensed under the GNU General Public License Version 2
#
# This program is free software; you can redistribute it and/or modify
# ... | Python | venv/lib/python2.7/dist-packages/sessioninstaller/backends/synaptic.py | yasoob/PythonRSSReader | mit | 3,567 | 97 | codeparrot/github-code |
ddf320048bf60d30c355fd752a6aba1419acc529d770a610e34752557b11ede4 | <?php
// Based on https://github.com/Wixel/GUMP
// DataValidationClass
if (!defined ("_DATAVALIDATION_CLASS_") ) {
define("_DATAVALIDATION_CLASS_", TRUE);
Class DataValidation {
var $field=null;
var $typeError = 'field';
var $errorMsg='';
var $error=false;
var $errorFi... | PHP | src/class/DataValidation.php | CloudFramework-io/appengine-php-core | mit | 19,552 | 425 | codeparrot/github-code |
701396785cb69593dcc6fc6bad8e0e9bfb64088c9646d777b91bfc9d0435c411 | <?php
/*
* This file is part of the overtrue/laravel-pinyin.
*
* (c) overtrue <i@overtrue.me>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
use Illuminate\Support\Facades\Log;
use Overtrue\Pinyin\Pinyin;
if (!function_exists('pinyin')) {
... | PHP | src/helpers.php | overtrue/laravel-pinyin | mit | 2,405 | 101 | codeparrot/github-code |
59acb6befc6844a3315a6811cf214b6a9751f0b24e33e154ff934e46f12ae335 | 'use strict';
module.exports = function(localeA, localeB, options) {
options = options || {};
if (typeof localeA !== 'object' || typeof localeB !== 'object') {
throw new Error('s18n: `localeA` and `localeB` must be objects.');
}
var localeAMissing = {};
var localeBMissing = {};
var unmodifiedStrings =... | JavaScript | lib/compareLocales.js | bitjson/s18n | mit | 1,256 | 56 | codeparrot/github-code |
76e78392a57dfeab2ad6e7a1a7b694a2fa6bf131da193ba25cff5b7c4d866127 | //basic physics entity
//This entity extends the joncom base entity and is responsible for
//collision categories
//property inheritance
//default settings/hooks
//It also defines the ObjectWorld and RenderWorld objects "soma" and "animus" (or whatever distinct names you can think of)
//The soma cannot call animus func... | JavaScript | lib/game/entities/physEnt.js | standardgaussian/Titania | mit | 12,058 | 351 | codeparrot/github-code |
d4a7aa8e9201293b5e8f940576bec12622727b8f2d2009f98c318fae5869ec5b | module Krikri::Enrichments
##
# Splits a string given in `lat' or `long' in an edm:Place object and
# assigns `lat' and `long' with the split values.
#
# @example
#
# Where val is a DPLA::MAP::Place,
# and val.lat == '40.7127,74.0059',
# assign val.lat = '40.7127' and val.long = '74.0059'
#
... | Ruby | lib/krikri/enrichments/split_coordinates.rb | dpla/KriKri | mit | 2,449 | 81 | codeparrot/github-code |
9dc03bb453f943ec3fbced65be50d036e58f13e808bcaa30dfffb8178793af34 |
package code.template;
/**
*
* @author
*/
public class QueueArray {
int QUEUE_SIZE;
int front;
int back;
Integer[] queueArray;
public QueueArray(int size) {
queueArray = new Integer[size];
QUEUE_SIZE = size;
}
public void equeue(int putInBackAr... | Java | Practical4_Stack&Queue/src/code/template/QueueArray.java | BenSaud-CS/Collage | mit | 1,484 | 80 | codeparrot/github-code |
16aa46ee4a2d3f6d868f5f46387a58afe637cb56bccca6085fa8e57e0f69254d | package org.fakekoji.xmlrpc.server.expensiveobjectscache;
import org.fakekoji.xmlrpc.server.xmlrpcrequestparams.XmlRpcRequestParams;
import java.io.BufferedWriter;
import java.io.IOException;
import java.lang.reflect.Array;
import java.lang.reflect.InvocationTargetException;
import java.net.URL;
import java.util.Arra... | Java | koji-scm-lib/src/main/java/org/fakekoji/xmlrpc/server/expensiveobjectscache/SingleUrlResponseCache.java | judovana/jenkins-scm-koji-plugin | mit | 9,352 | 237 | codeparrot/github-code |
ea80560db94414a0571b02e099db48a23c0208b88398ddd5846187e50a202298 | #!/usr/bin/env bash
# This script sets up an openaps environment by defining the required devices,
# reports, and aliases, and optionally enabling it in cron,
# plus editing other user-entered configuration settings.
# Released under MIT license. See the accompanying LICENSE.txt file for
# full terms and conditions
#
... | Shell | bin/oref0-setup.sh | PieterGit/oref0 | mit | 66,039 | 1,429 | codeparrot/github-code |
c52da92303f955f24d54d5d656348150cf9dda6da4e6d3ca15ed6a24d38a8af2 | <?php
namespace app\models;
use Yii;
use yii\base\Model;
/**
* LoginForm is the model behind the login form.
*
* @property User|null $user This property is read-only.
*
*/
class AdminLogin extends Model
{
public $username;
public $password;
public $rememberMe = true;
private $_user = false;
... | PHP | YiiBasic/models/AdminLogin.php | Chotainghe/chotainghe | mit | 1,953 | 82 | codeparrot/github-code |
f7dc681231dbb5c27b000c666dffd060a7c55ecec597631ba890a88fcba4c7cb | module Wice
# a matrix for all declared columns
class TableColumnMatrix < Hash #:nodoc:
# a structure to hold generates Arels for all column filters
attr_reader :generated_conditions
# init a matrix of all columns
def initialize #:nodoc:
super
@generated_conditions = []
@by_tab... | Ruby | lib/wice/table_column_matrix.rb | leikind/wice_grid | mit | 1,898 | 65 | codeparrot/github-code |
2de687b59db273dc1ae19225136018338b5ef87526397355ff0fd76b2be878c0 | using Avalonia.Media;
using Avalonia.Platform;
using Avalonia.Utilities;
using Avalonia.VisualTree;
namespace Avalonia.Rendering
{
public class RenderLayer
{
private readonly IDrawingContextImpl _drawingContext;
public RenderLayer(
IDrawingContextImpl drawingContext,
S... | C# | src/Avalonia.Visuals/Rendering/RenderLayer.cs | jkoritzinsky/Perspex | mit | 1,454 | 48 | codeparrot/github-code |
c8c619df4fe684e8630970226bb2b4bddcbacd8f7641c3e58e1af53d1a29caf4 | /**
* @license Copyright (c) 2012, Viet Trinh All Rights Reserved.
* Available via MIT license.
*/
/**
* An authorizeation interceptor used to determine if the user can access the given resource.
*/
define([ 'framework/controller/interceptor/i_interceptor',
'framework/core/utils/clazz',
'framework/core/def... | JavaScript | lib/private/static/scripts/framework/controller/interceptor/authorization_interceptor.js | DragonDTG/vex | mit | 2,004 | 60 | codeparrot/github-code |
6d3bc0ec6f58dbf93031abcdc1e02ec4f55541862c17d7ac4080828781efb98a | var pkg = require('./package.json'),
gulp = require('gulp'),
gutil = require('gulp-util'),
coffee = require('gulp-coffee'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
livereload = require('gulp-livereload'),
rename = require('gulp-rename'),
coffeelint = require('gulp-coffeelint'),
jade =... | JavaScript | gulpfile.js | nullzion/nullstrap | mit | 2,280 | 75 | codeparrot/github-code |
d1f7c0e612852b6947c66632d69b7bddd7173923ee5fcaada5ccacc18cbb2d39 | /* Copyright (C) 2011-2014 Mattias Ekendahl. Used under MIT license, see full details at https://github.com/developedbyme/dbm/blob/master/LICENSE.txt */
/**
* Base object for objects that are using properites to flow updates through the application.
*/
dbm.registerClass("dbm.core.FlowBaseObject", "dbm.core.BaseObject... | JavaScript | javascripts/dbm/classes/dbm/core/FlowBaseObject.js | developedbyme/dbm | mit | 7,899 | 219 | codeparrot/github-code |
9063b3a5ded79191d398358586bce9d68cb08e9a40ff0021648279dcfe24a3f9 | import itertools
import os.path
import sys
import time
from . import core
from . import file_io
from . import geometry
from . import stringconv
from . import version
#
# Functions
#
def save_output(profileli, opt):
""" Save a summary of results of evaluated profiles
"""
def m(x, pixelwidth):
retu... | Python | synapse/main.py | maxdl/Synapse.py | mit | 24,280 | 504 | codeparrot/github-code |
28fb1bd3159c3605570992eb8a7d1d4010b64f7ab55a02b6d965fb3faf46d6bc | <?php
namespace HackAveiro\Web2Badge\Util;
class StringCleaner
{
static function removeAccents($string)
{
$unwanted_array = array('Š'=>'S', 'š'=>'s', 'Ž'=>'Z', 'ž'=>'z', 'À'=>'A',
'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A',
'Æ... | PHP | src/HackAveiro/Web2Badge/Util/StringCleaner.php | HackAveiro/web2badge-server | mit | 1,677 | 41 | codeparrot/github-code |
e8ca02aa070de56d0b91fdf8e58b244c5e56d27e8fc03d7eac8015992e56d4e1 | --this = SceneNode()
LineModel = {}
function LineModel.new(inParentNode, inColor, size)
--inParentNode = SceneNode()
local self = {}
local mesh = NodeMesh()
local color = inColor
local points = {}
local w = size and size or 0.075
function self.setVisible(visible)
mesh:setVisible(visible)
end
... | Lua | Lua/MapEditor/Tools/Models/lineModel.lua | andeandr100/Crumbled-World | mit | 3,797 | 133 | codeparrot/github-code |
ebf8c939a54fef8cd0bb0dea3a4d91f2214f949466591632043f34f27e83d945 | //This C# code file was released under the Ms-PL license
//http://www.opensource.org/licenses/ms-pl.html
//This script was originally intended for use with Microsoft Dynamics AX
//and maintained and distributed as a project on CodePlex
//http://dynamicsaxadmin.codeplex.com
using System;
using System.Collections.Gener... | C# | CodeCrib.AX.Manage/CodeCrib.AX.Manage/ModelStore.cs | jorisdg/dynamicsaxadmin | mit | 18,084 | 445 | codeparrot/github-code |
18c15b144adfdae6182fc382f60e42058273167215be4541aa2a43ab9054704b | (function(exports) {
function changeSky(location) {
var sky = document.getElementById("image-360");
sky.setAttribute('src', location);
}
function addMonolith() {
var box = document.createElement('a-box');
document.querySelector('a-scene').appendChild(box);
box.setAttribute('id', 'monolith');... | JavaScript | public/js/interface.js | nazwhale/spaceship | mit | 1,629 | 65 | codeparrot/github-code |
2890c86e7dcc128738af3f546664cb7e486c69bfab0c49ad7cb7e62a1dc86c66 | function injectScript(file, node) {
var th = document.getElementsByTagName(node)[0];
var s = document.createElement('script');
s.setAttribute('type', 'text/javascript');
s.setAttribute('src', file);
th.appendChild(s);
}
function injectStyle(file, node) {
var th = document.getElementsByTagName(no... | JavaScript | js/inject.js | SchedulesPlus/SchedulesPlus | mit | 1,296 | 35 | codeparrot/github-code |
04875988c559cb0ac2f3659c3c9a88834ec4e9d0f5c6745f23b1fb74fb7e9677 | class CommentPolicy < ApplicationPolicy
attr_reader :user, :comment
def initialize(user, comment)
@user = user
@comment = comment
end
def index?
true
end
def show?
comment.project.user_id == @user.id
end
def create?
show?
end
def new?
create?
end
def update?
sho... | Ruby | app/policies/comment_policy.rb | abratashov/TManager | mit | 572 | 50 | codeparrot/github-code |
bcb2d907f02f6e847f1ba0d91fad1ae69f2fc660b3c41ce66ba450bad644aaff | #!/usr/bin/perl -w
#
# refactor_csp.pl
#
# Refactor for CSP v2
# 実行時引数のディレクトリ内の全てのHTMLファイルに対して、
# HTMLソース内部のタグ<script>を外部jsファイル読み込み形式に変更する
# 生成されるファイルの命名規則は Chrome Dev Editor に従い、以下のようにした
#
# index.html -> index.html.pre_csp (初回のみ生成されるコピーファイル)
# index.html
# index.html.0.js, index.html.1.... | Perl | refactor_csp.pl | daiz713/RefactorForCSP | mit | 3,368 | 139 | codeparrot/github-code |
9ac9f267aa67506ebd1babece900f8e46a9e9e5b4356fe3971f9ea28ee234b25 | // Get User's Coordinate from their Browser
window.onload = function() {
// HTML5/W3C Geolocation
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(UserLocation);
}
// Default to Washington, DC
else
NearestCity(38.8951, -77.0367);
}
// Callback function for asynchronous call to HT... | JavaScript | data.js | Jugendhackt/Post-It | mit | 56,418 | 771 | codeparrot/github-code |
868e229b11c2f41470854c4e2da59989e22f2bf450a99cb93794ae91e0aaf7fb | //
// UIButton+CZAddition.h
//
// Created by 刘凡 on 16/5/17.
// Copyright © 2016年 itcast. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIButton (CZAddition)
/**
创建文本按钮
@param title 标题文字
@param fontSize 字体大小
@param normalColor 默认颜色
@param highlightedColor 高亮颜色
@return U... | C | WeiboSwift/Classes/Utils/Additions/UIButton+CZAddition.h | 6ag/WeiboSwift-mvvm | mit | 1,247 | 49 | codeparrot/github-code |
3d0020a9699b1dfcc5ad41ea76bab1e93464810ad32f286118ca8068f1addbbd | using System;
using System.Text;
using System.Web;
using System.Web.Http.Description;
namespace ProCultura.Web.Api.Areas.HelpPage
{
public static class ApiDescriptionExtensions
{
/// <summary>
/// Generates an URI-friendly ID for the <see cref="ApiDescription"/>. E.g. "Get-Values-id_name" inste... | C# | ProCultura.Web.Api/Areas/HelpPage/ApiDescriptionExtensions.cs | jcespinoza/ProCulturaBackend | mit | 1,490 | 39 | codeparrot/github-code |
69377ea60bdc8272c3d6e2edb2127ebc4efe95ce3a5c9064a1ea95a49814c00b | import os
import re
import subprocess
from six.moves.urllib.parse import urlparse, quote_plus
from subprocess import CalledProcessError, PIPE, STDOUT
from conans.client.tools.env import no_op, environment_append
from conans.client.tools.files import chdir
from conans.errors import ConanException
from conans.util.file... | Python | conans/client/tools/scm.py | luckielordie/conan | mit | 5,881 | 150 | codeparrot/github-code |
f135effa34f9dba8cfed24b4e3a55dcaf28dc7aed8654dc7696fe6b1bfd3cbe1 | --[[
#######################################
#######################################
###########Erstellt von Dawi###########
##########github.com/yourdawi##########
##############yourdawi.de##############
#######################################
#######################################
]]
addEventHandler("onPlayerChangeN... | Lua | server/register_login.lua | yourdawi/accountsystem | mit | 6,001 | 167 | codeparrot/github-code |
11e92c719baf651e92b33fe891786090879dfc3fef1bdf0b3cf3e619ab892d0b | /**
* DeepDetect
* Copyright (c) 2014-2016 Emmanuel Benazera
* Author: Emmanuel Benazera <beniz@droidnik.fr>
*
* This file is part of deepdetect.
*
* deepdetect is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Softw... | C | shared/docker/templates/deepdetect/src/generators/net_caffe.h | roscopecoltran/scraper | mit | 5,518 | 195 | codeparrot/github-code |
776f8ef7dac02094728ebadb0ee3148b569bb8797d528c8f5c2135769fe0da58 | 'use strict';
var msb = require('msb');
var app = exports;
app.config = require('./lib/config');
app.start = function(cb) {
if (app.config.channelMonitorEnabled) msb.channelMonitorAgent.start();
var RouterWrapper = require('./lib/routerWrapper').RouterWrapper;
app.router = new RouterWrapper();
app.router.lo... | JavaScript | app.js | tcdl/msb-http2bus | mit | 848 | 35 | codeparrot/github-code |
22347df2c5218669bcb006a2fbf84d7032430d6822f199cf3f6d524b56fc1ae1 |
$(document).ready(function () {
console.log("ready!");
$("#subs").click(function () {
var name = $('#name').val();
var email = $('#email').val();
if (name != '' && email != '') {
$('#subs_err').html('');
var subs = {name: name, email: email};
var url... | JavaScript | assets/js/custom.js | sirromas/george | mit | 2,063 | 61 | codeparrot/github-code |
8c49418c1f8126cd452b63786095d3250c7b2d035b8ce946d263c38a8ee91c91 | ### import ####################################################################
import pycmds.project.classes as pc
import pycmds.hardware.hardware as hw
import pathlib
import appdirs
import toml
import yaqc
### driver ####################################################################
class Driver(hw.Driver):
... | Python | pycmds/hardware/spectrometers.py | wright-group/PyCMDS | mit | 2,840 | 94 | codeparrot/github-code |
f1dec916ea7a51053e76d33a5442dd1008006c32096a6655dcc2db3950782acb | /* global createNS */
/* exported filtersFactory */
var filtersFactory = (function () {
var ob = {};
ob.createFilter = createFilter;
ob.createAlphaToLuminanceFilter = createAlphaToLuminanceFilter;
function createFilter(filId, skipCoordinates) {
var fil = createNS('filter');
fil.setAttribute('id', filI... | JavaScript | player/js/utils/filters.js | bodymovin/bodymovin | mit | 954 | 32 | codeparrot/github-code |
f9061a946175afce769379632f170dc3c579bfa9bad7c9ff52d7325b4507a3b4 | u"""
Fixer for Python 3 function parameter syntax
This fixer is rather sensitive to incorrect py3k syntax.
"""
# Note: "relevant" parameters are parameters following the first STAR in the list.
from lib2to3 import fixer_base
from lib2to3.fixer_util import token, String, Newline, Comma, Name
from libfuturize.fixer_uti... | Python | src/lib/libpasteurize/fixes/fix_kwargs.py | thonkify/thonkify | mit | 6,066 | 153 | codeparrot/github-code |
14b3d853bd71e3fd12bfa2872d693dba6136417ba0adbf12ebcd0404a34c1e5b | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__int_rand_square_09.c
Label Definition File: CWE190_Integer_Overflow__int.label.xml
Template File: sources-sinks-09.tmpl.c
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: rand Set data to result of rand(), which may be zero
... | C | samples/Juliet/testcases/CWE190_Integer_Overflow/s04/CWE190_Integer_Overflow__int_rand_square_09.c | maurer/tiamat | mit | 4,957 | 187 | codeparrot/github-code |
8d3d13b7d5d1d00d57539ebfc535714216df1fea64024b35ecc2f6a6b5e5be93 | 'use strict';
angular.module('myApp.post', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/new-post', {
templateUrl: 'posts/new-post.html',
controller: 'PostCtrl'
});
}])
.controller('PostCtrl', ['$scope', '$firebaseArray', 'CommonProp', '$location', function($scope, $f... | JavaScript | app/posts/posts.js | hnquang112/angular-seeder | mit | 977 | 39 | codeparrot/github-code |
d3ebd558a6e5ab12ebd3167d3505b56a45eb554251e21a7ac33372e669fde444 | /*
* This file is part of Jiffy, licensed under the MIT License (MIT).
*
* Copyright (c) OreCruncher
*
* 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 wi... | Java | src/main/java/org/blockartistry/world/ChunkCache.java | OreCruncher/Jiffy | mit | 8,333 | 254 | codeparrot/github-code |
55f6e839db4853ed8435ac764296c5e22d30c7e39f21a21c43f63ded3c64b515 | // console_log.cpp
//
#include "monik/log/console_log.h"
#include "monik/log/log_thread.h"
namespace monik { namespace log {
class console_log::data_type : public log_thread {
public:
explicit data_type(buf_size_t);
private:
static void write(const message_with_severity & s) {
std::cout << s.m_message... | C++ | monik/log/console_log.cpp | Totopolis/monik.cpp | mit | 1,861 | 81 | codeparrot/github-code |
cbea066853f0cf1ee512d50a80eb7acaf26707718496ad2b54529c6e26cb6ee6 | package org.sdmlib.openbank.util;
import org.sdmlib.models.pattern.PatternObject;
import org.sdmlib.openbank.FeeValue;
import org.sdmlib.openbank.TransactionTypeEnum;
import org.sdmlib.models.pattern.AttributeConstraint;
import org.sdmlib.models.pattern.Pattern;
import java.math.BigInteger;
import org.sdmlib.openbank.... | Java | open-bank/src/main/java/org/sdmlib/openbank/util/FeeValuePO.java | SWE443-TeamRed/open-bank | mit | 4,269 | 180 | codeparrot/github-code |
583e48856eabd980015913af9d96c336ae1cf4ea6f08244c609e9df3866b0f5c | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GeneralLevel : Level
{
public float completeLevelWaitTimeInSecs = 2;
private bool completeLevelTriggered;
private IEnumerator CompleteLevel()
{
yield return new WaitF... | C# | Assets/Scripts/GeneralLevel.cs | p4dd9/ngj17_spirit | mit | 1,010 | 40 | codeparrot/github-code |
2fc260a315a62985159e27d94a25fe3f6e612baec98ca475d02f8d6f45255950 | <?php
/* AcmeDemoBundle:Secured:helloadmin.html.twig */
class __TwigTemplate_3423e47098ba90b7664f14d13a3832e1 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->blocks = array(
'title' => array($this, 'block_title'),
... | PHP | app/cache/dev/twig/34/23/e47098ba90b7664f14d13a3832e1.php | pepesan/Ejemplo-Symfony2 | mit | 1,472 | 54 | codeparrot/github-code |
8010336c5ea571b37c9907e916873739de0e2556308275ca06c9ed215058ba23 | package tw.showang.apiabstractionframework.example.api;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import tw.showang.apiabstractionframework.example.api.base.ApiTestBase;
import tw.showang.apiabstractionframework.example.api.base.ExampleApiBase.ApiErrorListen... | Java | example/src/test/java/tw/showang/apiabstractionframework/example/api/GitHubUserApiTest.java | showang/ApiAbstractionFramework | mit | 915 | 33 | codeparrot/github-code |
f48640129ecfd4a43adfe9bc53315083f4d63d7a86155afb4ef091d6b75a23e5 | <?php
/* SensioDistributionBundle::Configurator/final.html.twig */
class __TwigTemplate_1d6d06e92ecd114d845ffc58222524b8 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTemplate("SensioDistributionBundle::C... | PHP | app/cache/dev/twig/1d/6d/06e92ecd114d845ffc58222524b8.php | evgeny-s/symfony | mit | 3,462 | 110 | codeparrot/github-code |
d40d0550a4931eee9e314a6dd581ae6662711c33207f593ebb6ceb30e365c16f | /*=========================================================================================
File Name: symbols.js
Description: Flot symbols chart
----------------------------------------------------------------------------------------
Item Name: Stack - Responsive Admin Theme
Version: 1.1
Author... | JavaScript | areleo/app-assets/js/scripts/charts/flot/line/symbols.js | areleogitdev/areleofinish | mit | 1,770 | 58 | codeparrot/github-code |
bf78fc20d5d641a08922585a03f4bbcae688a4ea23764ea17d11719dc280271f | #include <mimosa/options/options.hh>
#include "options.hh"
namespace hefur
{
const uint32_t & MAX_PEERS = *mo::addOption<uint32_t>(
"", "max-peers", "the maximum number of peers per torrent",
30000);
const uint32_t & MAX_TORRENT_SIZE = *mo::addOption<uint32_t>(
"", "max-torrent-size", "the maximum to... | C++ | hefur/options.cc | UIKit0/hefur | mit | 3,505 | 87 | codeparrot/github-code |
ed2cb0a7f675a22551057ceb294e5b8acd450582b59db3dc0ba85fe6f9f25752 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Microsoft.Owin.Security.Cookies;
using Microsoft.Owin.Security.OpenIdConnect;
using Microsoft.Owin.Security;
namespace SQLDashboard.Controllers
{
public class AccountController : Controller
{
... | C# | SQLDashboard/Controllers/AccountController.cs | MindFlavor/SQLDashboard | mit | 1,428 | 45 | codeparrot/github-code |
05b4e98b2b350f676a89f0dd9102380626da750bee123c5aa48fd79b708deb6b | class User < ActiveRecord::Base
tango_user
simple_roles
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable,
:token_authenticatable, :confirmable, :lockable,
:timeoutable
# Setup accessible (or protected) attributes for your model
... | Ruby | app/models/user.rb | Portalcake/gaming-base-core | mit | 1,076 | 41 | codeparrot/github-code |
018047e5fc2252982fee86db05bbdc2a55bb7ddc4562a5f78a258867e31217cb | using System;
using System.IO;
using System.Collections.Generic;
using UnityEngine;
namespace KspCraftOrganizer
{
public class SettingsService
{
private static readonly float PLUGIN_READ_TIME_THRESHOLD = 30;
private float lastPluginSettingsReadingTime;
private IKspAl ksp = IKspAlProvider.instance;
private F... | C# | KspCraftOrganizerPlugin/services/SettingsService.cs | grzegrzk/ksp-craft-organizer | mit | 2,372 | 64 | codeparrot/github-code |
eb582a9683c4126165bc880adf42755b16e81fdd0e0dff43d1ece62180ebbe12 | /**
* Heldesks' code (Zendesk, etc..)
*/
App.helpdesk = {
init: function () {
// fetch template content from the extension
if (window.location.hostname.indexOf('zendesk.com') !== -1) {
App.helpdesk.zendesk.init();
}
},
zendesk: {
init: function () {
... | JavaScript | src/content/js/helpdesk.js | haveal/gorgias-chrome | mit | 6,435 | 141 | codeparrot/github-code |
1641f638f988b2e35fa09992366ad9a41cfd388aa4d72bdaf51b03dfcf138a62 | /**
* @file tiledb_list.cc
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2016 MIT and Intel 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... | C++ | examples/src/tiledb_ls.cc | Intel-HLS/TileDB | mit | 2,958 | 94 | codeparrot/github-code |
4dbaa912085e469def4f238617fa83a2bae4f599743dee38267aa2b0f81cb820 | /**
* Author: thegoldenmule
* Date: 3/17/13
*/
(function (global) {
"use strict";
var colorShaderVS = {
name: "color-shader-vs",
type: "x-shader/x-vertex",
body:
"precision highp float;" +
"uniform mat4 uProjectionMatrix;" +
"uniform mat4 uModelV... | JavaScript | js/boX/DefaultShaders.js | thegoldenmule/boX | mit | 6,653 | 246 | codeparrot/github-code |
4a571b78543740c220966fbafe689aea5f905297b96808e8b2fc6fc6cafe624d | package main
import (
"log"
"net/http"
"github.com/sirupsen/logrus"
"github.com/stripe/smokescreen/cmd"
"github.com/stripe/smokescreen/pkg/smokescreen"
)
// This default implementation of RoleFromRequest uses the CommonName of the
// client's certificate. If no certificate is provided, the AllowMissingRole
// ... | GO | main.go | stripe/smokescreen | mit | 1,378 | 46 | codeparrot/github-code |
51deebaba228a8cf95f6190afa5752c5695bdfe9c8411e1d25132a554728376d | /**
* This method start authentication workflow.
* It should be called by application which require authentication.
*
* Author: Yuriy Movchan Date: 11/06/2013
*/
var uuid = require('uuid');
var async = require('async');
var oxutil = require('../util/util.js');
var state = require('../shared/state.js');
var push =... | JavaScript | server/lib/authenticate/authenticate.js | GluuFederation/oxPush | mit | 2,809 | 78 | codeparrot/github-code |
6d346457c030b551315914aeee2cf6154c50dbb0c6693ebacb7e7ca2c1f6e397 | const { yellow, cyan, gray } = require('chalk');
const EslintCLI = require('eslint').CLIEngine;
const eslintConfig = require('../config/eslint/eslintConfig');
const runESLint = ({ fix = false, paths }) =>
new Promise((resolve, reject) => {
console.log(cyan(`${fix ? 'Fixing' : 'Checking'} code with ESLint`));
... | JavaScript | lib/runESLint.js | seek-oss/sku | mit | 1,886 | 65 | codeparrot/github-code |
aa29bbbbd3cc2b247a79fc1d822f6f1ee585846ead1e291edc9461230565d1ac | /**
* Copyright MaDgIK Group 2010 - 2015.
*/
package madgik.exareme.master.queryProcessor.decomposer.query.visitors;
import com.foundationdb.sql.StandardException;
import com.foundationdb.sql.parser.FromSubquery;
import com.foundationdb.sql.parser.SelectNode;
import com.foundationdb.sql.parser.Visitable;
import madg... | Java | Exareme-Docker/src/exareme/exareme-master/src/main/java/madgik/exareme/master/queryProcessor/decomposer/query/visitors/SelectVisitor.java | madgik/exareme | mit | 1,601 | 50 | codeparrot/github-code |
c60fc28fb5ba5a02dabf8b17976fd0ccdbaa5eebbbdd1fafa8b3a3dc201c6326 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Class: AudioSprite · Phaser CE</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/default.css">
<link type="text/css" rel="styles... | HTML | docs/Phaser.AudioSprite.html | Acaki/WWW_project | mit | 45,359 | 2,077 | codeparrot/github-code |
06048cffec63ceec810388a44e9272e23a5f303a0831741b8fc054163d92b09a | /**
* @license
* Copyright Google Inc. 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
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... | JavaScript | packages/common/locales/global/nl-SR.js | mhevery/angular | mit | 2,454 | 76 | codeparrot/github-code |
fc01940395b539cd813d8175834720fced6b966b4b8bce55d43dca637965c552 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_wchar_t_malloc_22a.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml
Template File: sources-sinks-22a.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management ... | C++ | samples/Juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s04/CWE762_Mismatched_Memory_Management_Routines__delete_wchar_t_malloc_22a.cpp | maurer/tiamat | mit | 3,767 | 132 | codeparrot/github-code |
2e414bc72dd71c18408af7cfd4ea39a9bd3597535c7cf2a15ef68cdf28b5b2f3 | using System;
using System.Linq;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Security.Cryptography;
using System.Text;
using System.IO;
using System.Xml.Serialization;
namespace SVX
{
public static class Utils
{
public static string ToUrlSafeBase64String(byte[] data)
{
... | C# | SVX/Utils.cs | cs0317/SVAuth | mit | 3,413 | 103 | codeparrot/github-code |
380812d2bdafaf39197fa0d73ba03a2d2538f27e537bdc9eb29403cec607e876 | /*****************************************************************************
The following code is derived, directly or indirectly, from the SystemC
source code Copyright (c) 1996-2010 by all Contributors.
All Rights reserved.
The contents of this file are subject to the restrictions and limitations
... | C++ | metamorphosys/tonka/models/SystemC/systemc-2.3.0/examples/sysc/2.3/sc_rvd/main.cpp | pombredanne/metamorphosys-desktop | mit | 4,256 | 155 | codeparrot/github-code |
e65be144578467171ab11d7679c64be1d9efb663ae4924370b975729ef097f43 | \hypertarget{classtesting_1_1internal_1_1_return_null_action}{}\section{testing\+:\+:internal\+:\+:Return\+Null\+Action Class Reference}
\label{classtesting_1_1internal_1_1_return_null_action}\index{testing\+::internal\+::\+Return\+Null\+Action@{testing\+::internal\+::\+Return\+Null\+Action}}
{\ttfamily \#include $<$... | TeX | docs/latex/classtesting_1_1internal_1_1_return_null_action.tex | bhargavipatel/808X_VO | mit | 2,131 | 38 | codeparrot/github-code |
683ede1ca433c98b2420479810d158f745d79d69bb1aa8964bdfbc37434ef329 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
using System.Windows.Media.Imaging;
using GitHub.Extensions;
using GitHub.Helpers;
using ReactiveUI;
namespace GitHub.Models
{
public class AutoCompleteSuggestion
{
readonly string prefix;
readonly s... | C# | src/GitHub.Exports.Reactive/Models/AutoCompleteSuggestion.cs | github/VisualStudio | mit | 3,665 | 99 | codeparrot/github-code |
d36f35ae8cf6dd96931b7bcf8c0f79847e3150bcd08d1c52e0bc715c4f1082ec | using System;
using System.Diagnostics;
#pragma warning disable 1591
// ReSharper disable UnusedMember.Global
// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable IntroduceOptionalParameters.Global
// ReSharper disable MemberCanBeProtected.Global
/... | C# | src/Noterium.Core/Properties/Annotations.cs | ekblom/noterium | mit | 38,616 | 1,101 | codeparrot/github-code |
cd1d2ff513dc73a0d3ae59328eb493e08bf806426f5d608d895b5b12f6e5686e | import { formatDistance, formatToLocaleString, defaultEnvironment, Environment } from './formatDate'
import { subDays } from 'date-fns'
import { ja, enUS } from 'date-fns/locale'
// memo(otofune): This requires that process.env.TZ equals to 'UTC'. (;;)
const jaEnvironment: Environment = { getLocale: () => ja }
const ... | TypeScript | client/util/formatDate.test.ts | crowi/crowi | mit | 2,821 | 86 | codeparrot/github-code |
5b6f4abdc61379e188f07da41b426db79e7aa13111a722b947c4bc8caefbe41a | var gulp = require('gulp'),
plumber = require('gulp-plumber'),
browserify = require('gulp-browserify'),
concat = require('gulp-concat'),
gulpif = require('gulp-if'),
uglify = require('gulp-uglify'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish'),
sequence = require(... | JavaScript | gulpfile.js | Daniel1984/60fps | mit | 2,819 | 114 | codeparrot/github-code |
1a33faa5b5eb99e6758d5992fdc5d6787efdaab643ee92b32820760c5b1d27c2 | var gulp = require('gulp');
var sass = require('gulp-sass');
var browserSync = require('browser-sync');
var useref = require('gulp-useref');
var uglify = require('gulp-uglify');
var gulpIf = require('gulp-if');
var cssnano = require('gulp-cssnano');
var imagemin = require('gulp-imagemin');
var cache = require('gulp-cac... | JavaScript | gulpfile.js | martinrajdl/faunafilm | mit | 2,512 | 92 | codeparrot/github-code |
88c5fe76e8055e7609209ae726fbd3868a939961d0eac4b8e5c2bdb2e1c5fc1d | import 'reflect-metadata';
import { SchemaObject, XParameterObject } from '@ts-stack/openapi-spec';
import { Parameters } from './parameters';
import { Column } from '../decorators/column';
describe('Parameters', () => {
describe('without data model', () => {
it('required path with someName', () => {
cons... | TypeScript | packages/openapi/src/utils/parameters.spec.ts | restify-ts/core | mit | 4,225 | 113 | codeparrot/github-code |
96ea432c6d7c6d42ab4ac25c6ab36707ae02860349ca6d6e8f78407ebc4f415d | var Tile = function (type, x, y) {
this.type = type;
this.tint = 0;
this.hover = false;
this.isAllowed = undefined;
this.isAllowedForBeat = undefined;
this.x = x;
this.y = y;
this.graphic = new fabric.Rect({
left: Tile.size * x,
top: Tile.size * y,
fill: type === Tile.TileType.NONPLAYABLE ?... | JavaScript | public/js/tile.js | misko321/draughts | mit | 3,185 | 127 | codeparrot/github-code |
e09d6d5a63587ac2e85a74c3d2ea295102748ce8dd1500ef8e120702ef2ad604 | //*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of the BCGControlBar Library
// Copyright (C) 1998-2000 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms a... | C | src/external_lib/BCG/BCGControlBar/BCGMDIChildWnd.h | segafan/wme1_jankavan_tlc_edition-repo | mit | 2,385 | 80 | codeparrot/github-code |
29697977f7655ec2e85bbf5dde01d690a603ea9829b4fa49d8010e5884cec4b1 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>tait: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | HTML | clean/Linux-x86_64-4.06.1-2.0.5/released/8.14.1/tait/8.7.0.html | coq-bench/coq-bench.github.io | mit | 7,570 | 179 | codeparrot/github-code |
336e404b4745e12f45e25d215ce7dfaaf449b89b2d411d859b657f04bd7d28ca | /*
* Books.cpp
* Author: suyashd95
*/
#include "Books.h"
#include <iostream>
#include <cstring>
using namespace std;
Books::Books() {
stock = new int[size];
price = new float[size];
author = new const char*[size];
publisher = new const char*[size];
title = new const char*[size];
populateData();
}
void B... | C++ | Programming Exercises/Chapter 6 - Constructors and Destructors/Question 3/src/Books.cpp | SuyashD95/cplusplus-prog-exercises | mit | 2,512 | 124 | codeparrot/github-code |
af60c96ef8be0a990a0ef9811d61e920eec62bd6fb11a4436e65c5f593a7d369 | using Castle.Core.Logging;
using Bivi.Infrastructure.Constant;
using Bivi.Infrastructure.Services.Depots;
using Bivi.Infrastructure.Services.Encryption;
using Bivi.BackOffice.Web.Controllers.ActionResults;
using Bivi.BackOffice.Web.Controllers.Filters;
using Bivi.BackOffice.Web.Controllers.Helpers;
using Bivi.B... | C# | Bivi/src/Bivi.BackOffice/Bivi.BackOffice.Web.Controllers/Controllers/Administration/LienExterneController.cs | apo-j/Projects_Working | mit | 4,919 | 132 | codeparrot/github-code |
7f48dbd98598d718348d17933d0165f7a82b1353919d50c18932f72a5d2ad462 | /*
* 2007-2016 [PagSeguro Internet Ltda.]
*
* NOTICE OF LICENSE
*
* 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 requir... | Java | pagseguro-api/src/main/java/br/com/uol/pagseguro/api/preapproval/search/PreApprovalSummaryXML.java | girinoboy/lojacasamento | mit | 3,550 | 162 | codeparrot/github-code |
665cff61e878b1297fb67d8b30780ce9e9fbb759014713faf0c690280dac8fd1 | using System;
using Amazon.DynamoDBv2.DataModel;
using AspNetCore.Identity.DynamoDB.Converters;
namespace AspNetCore.Identity.DynamoDB.Models
{
public abstract class DynamoUserContactRecord : IEquatable<DynamoUserEmail>
{
protected DynamoUserContactRecord() {}
protected DynamoUserContactRecord(string value) : ... | C# | src/AspNetCore.Identity.DynamoDB/Models/DynamoUserContactRecord.cs | miltador/AspNetCore.Identity.DynamoDB | mit | 1,097 | 54 | codeparrot/github-code |
8afdede67c74ced9b62b206d52a5c10b2789c075845c0e7b5da9f422ff43622f | define( 'type.Integer', {
// class configuration
alias : 'int integer',
extend : __lib__.type.Number,
// public properties
precision : 0,
// public methods
valid : function( v ) {
return this.parent( v, true ) && Math.floor( v ) === v;
},
// internal methods
init : function() {
var... | JavaScript | src/type/Integer.js | agreco/expurg8 | mit | 765 | 31 | codeparrot/github-code |
d40c59a3f76d5d19f4a8b7bcc5cb88817c1a29f763dde1c275671a22900d5401 | package ua.com.fielden.platform.entity_centre.review;
import java.util.Date;
import ua.com.fielden.platform.domaintree.testing.EntityWithStringKeyType;
import ua.com.fielden.platform.entity.AbstractEntity;
import ua.com.fielden.platform.entity.DynamicEntityKey;
import ua.com.fielden.platform.entity.annotation.Composi... | Java | platform-pojo-bl/src/test/java/ua/com/fielden/platform/entity_centre/review/EvenSlaverDomainEntity.java | fieldenms/tg | mit | 2,107 | 78 | codeparrot/github-code |
670f35a6b607225fbd878d6519810153253dc3666f0dcb3b06ffc30dc0f293f5 | <html>
<head>
<title>Howdy!</title>
<style>
* {
margin: 0;
padding: 0;
}
html {
min-height:100%;
}
#container {
width: 960px;
margin: 0 auto;
... | HTML | projects/product-project/.notes/layout-test-solution.html | j3rr3n/j3rr3n.github.io | mit | 10,403 | 121 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.