doc_id stringlengths 16 16 | text stringlengths 200 100k | source_dataset stringclasses 1
value | repo_name stringlengths 5 109 | path stringlengths 3 991 | language stringclasses 17
values | license stringclasses 7
values |
|---|---|---|---|---|---|---|
7a0b2f6360a31103 | 'use strict';
const TYPE = Symbol.for('type');
class Data {
constructor(options) {
// File details
this.filepath = options.filepath;
// Type
this[TYPE] = 'data';
// Data
Object.assign(this, options.data);
}
}
module.exports = Data;
| github-code-clean | mshick/velvet | core/classes/data.js | JavaScript | isc |
edace00116b54651 |
function collectWithWildcard(test) {
test.expect(4);
var api_server = new Test_ApiServer(function handler(request, callback) {
var url = request.url;
switch (url) {
case '/accounts?username=chariz*':
let account = new Model_Account({
username: 'charizard'
});
return void callback(null, [
... | github-code-clean | burninggarden/burninggarden | test/unit/resource/accounts.js | JavaScript | isc |
d445d29220a05375 | /*
* Read and write JSON.
*
* Copyright (c) 2014 Marko Kreen
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "A... | github-code-clean | markokr/libusual | usual/json.c | C | isc |
143ae9abd9390e40 | angular.module('appTesting').service("LoginLocalStorage", function () {
"use strict";
var STORE_NAME = "login";
var setUser = function setUser(user) {
localStorage.setItem(STORE_NAME, JSON.stringify(user));
}
var getUser = function getUser() {
var storedTasks = localStorage.getIte... | github-code-clean | pikachumetal/cursoangular05 | app/loginModule/services/localstorage.js | JavaScript | isc |
0606fb13d0cfca32 | /* Copyright information is at end of file */
#include "xmlrpc_config.h"
#include <stddef.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include "stdargx.h"
#include "xmlrpc-c/base.h"
#include "xmlrpc-c/base_int.h"
#include "xmlrpc-c/string_int.h"
static void
getString(xmlrpc_env *const envP,
... | github-code-clean | arssivka/naomech | xmlrpc-c/src/xmlrpc_build.c | C | isc |
f36b4ab639a638a0 | /* ISC license. */
#include <bearssl.h>
#include <s6-networking/sbearssl.h>
int sbearssl_skey_to (sbearssl_skey const *l, br_skey *k, char *s)
{
switch (l->type)
{
case BR_KEYTYPE_RSA :
sbearssl_rsa_skey_to(&l->data.rsa, &k->data.rsa, s) ;
break ;
case BR_KEYTYPE_EC :
sbearssl_ec_skey_to... | github-code-clean | skarnet/s6-networking | src/sbearssl/sbearssl_skey_to.c | C | isc |
5bef7eb98680cef5 | /*
* The MIT License
* Copyright (c) 2012 Matias Meno <m@tias.me>
*/
@-webkit-keyframes passing-through {
0% {
opacity: 0;
-webkit-transform: translateY(40px);
-moz-transform: translateY(40px);
-ms-transform: translateY(40px);
-o-transform: translateY(40px);
trans... | github-code-clean | sauban/angular-boilerplate | vendor/dropzone/dropzone.css | CSS | isc |
56f9f6b6b2779566 | /* eslint-disable no-console */
const buildData = require('./build_data');
const buildSrc = require('./build_src');
const buildCSS = require('./build_css');
let _currBuild = null;
// if called directly, do the thing.
buildAll();
function buildAll() {
if (_currBuild) return _currBuild;
return _currBuild =
P... | github-code-clean | kartta-labs/iD | build.js | JavaScript | isc |
1aa7ade1842be7ca | //
// RCWorkspaceCache.h
//
// Created by Mark Lilback on 12/12/11.
// Copyright (c) 2011 . All rights reserved.
//
#import "_RCWorkspaceCache.h"
@interface RCWorkspaceCache : _RCWorkspaceCache
//if multiple values are to be set, it best to get properties, set them, and then call setProperties
//each call to setPr... | github-code-clean | wvuRc2/rc2client | source/rc2/model/RCWorkspaceCache.h | C | isc |
5e6349336be63408 | function LetterProps(o, sw, sc, fc, m, p) {
this.o = o;
this.sw = sw;
this.sc = sc;
this.fc = fc;
this.m = m;
this.p = p;
this._mdf = {
o: true,
sw: !!sw,
sc: !!sc,
fc: !!fc,
m: true,
p: true,
};
}
LetterProps.prototype.update = function (o, sw, sc, fc, m, p) {
... | github-code-clean | damienmortini/dlib | node_modules/lottie-web/player/js/utils/text/LetterProps.js | JavaScript | isc |
454c8c5a5cc48376 | /*!
* DASSL solver library description
*/
#include "libinfo.h"
extern void _start()
{
_library_ident("DAE solver library");
_library_task("interfaces to generic IVP solver");
_library_task("operations on data for included solvers");
_library_task("DASSL solver backend");
_library_task("RADAU solver backend")... | github-code-clean | becm/mpt-solver | modules/daesolv/libinfo.c | C | isc |
506b7dea98f21d93 | System.register(["angular2/test_lib", "angular2/src/test_lib/test_bed", "angular2/src/core/annotations_impl/annotations", "angular2/src/core/annotations_impl/view", "angular2/src/core/compiler/dynamic_component_loader", "angular2/src/core/compiler/element_ref", "angular2/src/directives/if", "angular2/src/render/dom/dir... | github-code-clean | denzp/pacman | application/lib/angular2/test/core/compiler/dynamic_component_loader_spec.js | JavaScript | isc |
1ff1ce7033c24289 | ---
name: Dreadnought
type: AV
speed: 15cm
armour: 3+
cc: 4+
ff: 4+
special_rules:
- walker
notes:
|
Armed with either a Missile Launcher and Twin Lascannon, or an Assault Cannon and Power Fist.
weapons:
-
id: missile-launcher
multiplier: 0–1
-
id: twin-lascannon
multiplier: 0–1
-
id: ... | github-code-clean | dsusco/tp.net-armageddon.org | _site/_units/dreadnought.md | Markdown | isc |
11ca64c2f8221823 | /*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2014 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
* permission notice appear in all copies.
... | github-code-clean | DanielAeolusLaude/DPF-NTK | distrho/src/DistrhoPluginLV2export.cpp | C++ | isc |
12b8e5c1beb5abb6 | // The following are instance methods and variables
var Note = Class.create({
initialize: function(id, is_new, raw_body) {
if (Note.debug) {
console.debug("Note#initialize (id=%d)", id)
}
this.id = id
this.is_new = is_new
this.document_observers = [];
// Cache the elements
this.ele... | github-code-clean | rhaphazard/moebooru | lib/assets/javascripts/moe-legacy/notes.js | JavaScript | isc |
339a2e39292a6e31 | # Limit rozbieżności
**Ostrzeżenie! Ustawienie granicy rozbieżności nie powinno być zmieniane.** Zwiększenie granicy rozbieżności może spowodować znaczny spadek wydajności.
Limit rozbieżności określa ilość adresów, które portfel wygeneruje i przeprowadzi prognozy, aby określić wykorzystanie. Domyślnie, limit rozbieżn... | github-code-clean | decred/decrediton | app/i18n/docs/pl/InfoModals/GapLimit.md | Markdown | isc |
823c3aa50264813c | enum asmop {
ASNOP = 0,
ASSTB,
ASSTH,
ASSTW,
ASSTL,
ASSTM,
ASSTS,
ASSTD,
ASLDSB,
ASLDUB,
ASLDSH,
ASLDUH,
ASLDSW,
ASLDUW,
ASLDL,
ASLDS,
ASLDD,
ASADDW,
ASSUBW,
ASMULW,
ASMODW,
ASUMODW,
ASDIVW,
ASUDIVW,
ASSHLW,
ASSHRW,
ASUSHRW,
ASLTW,
ASULTW,
ASGTW,
ASUGTW,
ASLEW,
ASULEW,
ASGEW,
ASUGEW... | github-code-clean | k0gaMSX/scc | cc2/target/qbe/arch.h | C | isc |
746cecccce756b89 | describe('dJSON', function () {
'use strict';
var chai = require('chai');
var expect = chai.expect;
var dJSON = require('../lib/dJSON');
var path = 'x.y["q.{r}"].z';
var obj;
beforeEach(function () {
obj = {
x: {
y: {
'q.{r}': {
z: 635
},
q: {... | github-code-clean | bsander/dJSON | test/dJSON.spec.js | JavaScript | isc |
c683c06046051087 | /*
* 94 shifted lines of 72 ASCII characters.
*/
static const char *characters[] = {
"!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefgh",
"\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghi",
"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`... | github-code-clean | ibara/chargend | chargend.h | C | isc |
44dbc6d790900c2d |
#include <stdarg.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <sys/endian.h>
#include <sysexits.h>
#include <mpg123.h>
#include "audio.h"
#include "mp3.h"
struct mp3 {
mpg123_handle *h;
int fd;
int first;
int rate;
int chann... | github-code-clean | kdhp/play | mp3.c | C | isc |
0988bd3ca1e336e4 | /*
* Copyright 2005-2019 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... | github-code-clean | ibc/MediaSoup | worker/deps/openssl/openssl/crypto/whrlpool/wp_block.c | C | isc |
1c5136f05a2a0648 | /**
* The MIT License Copyright (c) 2015 Teal Cube Games
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modi... | github-code-clean | TealCube/strife | src/main/java/land/face/strife/managers/CombatStatusManager.java | Java | isc |
f9af363d378e1a74 | -- Section: Internal Functions
-- Group: Low-level event handling
\i functions/pgq.batch_event_sql.sql
\i functions/pgq.batch_event_tables.sql
\i functions/pgq.event_retry_raw.sql
\i functions/pgq.find_tick_helper.sql
-- \i functions/pgq.insert_event_raw.sql
\i lowlevel/pgq_lowlevel.sql
-- Group: Ticker
\i functio... | github-code-clean | mpihlak/skytools-dev | sql/pgq/structure/func_internal.sql | SQL | isc |
5b6a19438d2f57d9 | #AtaK
##The Atari 2600 Compiler Kit
AtaK, pronounced attack, is a collection of programs built to aid in the
development of Atari 2600 programs.
##Programs(Planned/Developing):
* AtaR(ah-tar), The **Ata**ri 2600 Assemble**r**
* AtaC(attack), The **Ata**ri 2600 **C** Compiler
##Universal Features:
* Programmed ... | github-code-clean | Gip-Gip/AtaC | README.md | Markdown | isc |
1b76bc7c6af02c83 | /* Copyright (c) 2016, 2021 Dennis Wölfing
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D... | github-code-clean | dennis95/dennix | libc/src/stdio/printf.c | C | isc |
b2683a32c21e588a | from django import forms
from django.core.exceptions import ValidationError
from django.core.validators import validate_slug
from django.db import models
from django.utils import simplejson as json
from django.utils.text import capfirst
from django.utils.translation import ugettext_lazy as _
from philo.forms.fields im... | github-code-clean | ithinksw/philo | philo/models/fields/__init__.py | Python | isc |
5c4e4125b9c4c301 | /*-
* builtin.c
* This file is part of libmetha
*
* Copyright (c) 2008, Emil Romanus <emil.romanus@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear... | github-code-clean | nicholaides/Methanol-Web-Crawler | src/libmetha/builtin.c | C | isc |
e1d64ae74a4a484d | /* Copyright (c) 2019, 2022 Dennis Wölfing
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D... | github-code-clean | dennis95/dennix | libc/src/stdio/__file_write.c | C | isc |
96ca1d963c308253 | <?php
/**
* Time Controller
*
* @package Argentum
* @author Argentum Team
* @copyright (c) 2008 Argentum Team
* @license http://www.argentuminvoice.com/license.txt
*/
class Time_Controller extends Website_Controller {
/**
* Creates a new time block on a ticket
*/
public function add($ticket_id)
{
... | github-code-clean | la5942/argentum-invoice | application/controllers/admin/time.php | PHP | isc |
2d2db5ea80379d6f | var fusepm = require('./fusepm');
module.exports = fixunoproj;
function fixunoproj () {
var fn = fusepm.local_unoproj(".");
fusepm.read_unoproj(fn).then(function (obj) {
var inc = [];
if (obj.Includes) {
var re = /\//;
for (var i=0; i<obj.Includes.length;i++) {
if (obj.Includes[i] === '*') {
inc.... | github-code-clean | bolav/fusepm | lib/fixunoproj.js | JavaScript | isc |
15b11566bf588b84 | <!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
<script src="lib/js/angular.min.js"></script>
<script src="lib/js/angular-route.min.js"></script>
<script src="lib/js/angular-animate.min.js"></script>
<script src="lib/js/angular-aria.min.js"></script>
<scrip... | github-code-clean | abdurrachman-habibi/azure-storage-studio | src/index.html | HTML | isc |
e4667bf697305306 | const defaults = {
base_css: true, // the base dark theme css
inline_youtube: true, // makes youtube videos play inline the chat
collapse_onebox: true, // can collapse
collapse_onebox_default: false, // default option for collapse
pause_youtube_on_collapse: true, // default option for pausing yo... | github-code-clean | rlemon/se-chat-dark-theme-plus | script.js | JavaScript | isc |
27d395650934f63f | 'use strict';
const expect = require('expect.js');
const http = require('http');
const express = require('express');
const linkCheck = require('../');
describe('link-check', function () {
this.timeout(2500);//increase timeout to enable 429 retry tests
let baseUrl;
let laterCustomRetryCounter;
befor... | github-code-clean | tcort/link-check | test/link-check.test.js | JavaScript | isc |
9d7258b6d4f1cc6b | ---
layout: post
title: More Office Interop in PowerShell
---
As part of our team's workflow we create various data files and then generate
tracking issues that we then import into our issue tracking system.
We have a semi-automated process to do this which works fairly well but for
some older issues we had imported ... | github-code-clean | sethjackson/sethjackson.github.io | _posts/2017-11-27-more-office-interop-in-powershell.md | Markdown | isc |
12dca4d72f4660e5 | /* Copyright (c) 2018 Dennis Wölfing
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI... | github-code-clean | dennis95/dennix | kernel/include/dennix/clock.h | C | isc |
e28626a5049e8eb8 | import hashlib
import json
import logging
import os
import subprocess
import sys
import time
from collections import defaultdict
from shutil import copy
from shutil import copyfile
from shutil import copystat
from shutil import copytree
from tempfile import mkdtemp
import boto3
import botocore
import yaml
import sys
... | github-code-clean | nficano/python-lambda | aws_lambda/aws_lambda.py | Python | isc |
f8df832edccbc0b9 | # Copyright (c) 2015, Max Fillinger <max@max-fillinger.net>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND... | github-code-clean | mfil/getebook | getebook/epub.py | Python | isc |
b2d0ee0e998df392 | CREATE TABLE <table-name>_nf (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`request_uri` VARCHAR(255) NOT NULL,
`referrer` VARCHAR(255) DEFAULT '',
`user_agent` VARCHAR(255) DEFAULT '',
`created_at` TIMESTAMP,
PRIMARY KEY (id)
) ENGINE = MyISAM DEFAULT CHARSET=utf8; | github-code-clean | rockettpw/jumplinks | Blueprints/schema-update-v4.sql | SQL | isc |
dfce0590b79509c5 | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | github-code-clean | pscedu/slash2-stable | zfs-fuse/src/lib/libzfs/libzfs_pool.c | C | isc |
9c3fd5ce21822db9 | using System.Collections.Generic;
namespace ConsoleDemo.Visitor.v0
{
public class CommandsManager
{
readonly List<object> items = new List<object>();
// The client class has a structure (a list in this case) of items (commands).
// The client knows how to iterate through the structure... | github-code-clean | iQuarc/Code-Design-Training | DesignPatterns/ConsoleDemo/Visitor/v0/CommandsManager.cs | C# | mit |
123f6e994624c105 | var contenedor = {};
var json = [];
var json_active = [];
var timeout;
var result = {};
$(document).ready(function() {
$('#buscador').keyup(function() {
if (timeout) {
clearTimeout(timeout);
timeout = null;
}
timeout = setTimeout(function() {... | github-code-clean | mpandolfelli/papelera | js/function.js | JavaScript | mit |
7a3e9124017b4cc6 | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license a... | github-code-clean | levfurtado/scoops | vendor/bombayworks/zendframework1/library/Zend/Gdata/YouTube/Extension/Username.php | PHP | mit |
44cd220dbf41a02a | # MondrianRedisSegmentCache
Mondrian ships with an in memory segment cache that is great for standalone deployments of Mondrian, but doesn't
scale out with multiple nodes. An interface is provided for extending Mondrian with a shared Segment Cache and
examples of other implementations are in the links below.
In orde... | github-code-clean | film42/mondrian_redis_segment_cache | README.md | Markdown | mit |
148babe2d84506a9 | module V1
class EventUserSchedulesController < ApplicationController
before_action :set_event_session, only: [:create]
# POST /event_user_schedules
def create
@event_user_schedule = current_user.add_session_to_my_schedule(@event_session)
if @event_user_schedule.save
render json: @e... | github-code-clean | danjohnson3141/rest_api | app/controllers/v1/event_user_schedules_controller.rb | Ruby | mit |
68b56c71f244a461 | package com.jeecg.qywx.core.service;
import com.jeecg.qywx.base.entity.QywxReceivetext;
/**
* 文本处理接口
* @author 付明星
*
*/
public interface TextDealInterfaceService {
/**
* 文本消息处理接口
* @param receiveText 文本消息实体类
*/
void dealTextMessage(QywxReceivetext receiveText);
}
| github-code-clean | xiongmaoshouzha/test | jeecg-p3-biz-qywx/src/main/java/com/jeecg/qywx/core/service/TextDealInterfaceService.java | Java | mit |
db4aeba1ec6cb9db | <?php namespace EugeneTolok\Telegram\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class BuilderTableUpdateEugenetolokTelegramDialogsSteps2 extends Migration
{
public function up()
{
Schema::table('eugenetolok_telegram_dialogs_steps', function($table)
{
$tab... | github-code-clean | eugenetolok/easy-telegram-bot | updates/builder_table_update_eugenetolok_telegram_dialogs_steps_2.php | PHP | mit |
9b5d7f5ce1323ffe | import React from 'react';
import ons from 'onsenui';
import {
Page,
Toolbar,
BackButton,
LazyList,
ListItem
} from 'react-onsenui';
class InfiniteScroll extends React.Component {
renderRow(index) {
return (
<ListItem key={index}>
{'Item ' + (index + 1)}
</ListItem>
);
}
r... | github-code-clean | gnetsys/OnsenUIv2-React-PhoneGap-Starter-Kit | www/components/InfiniteScroll.js | JavaScript | mit |
a11c9f3c6361dead | # docker_runner
Run docker containers on the fly with ansible roles
# running program
Must be run with sudo privlegies
example
"sudo ruby drun.rb"
The program launches a docker container that self-provisions based on the ROLE
The ROLE value in the ruby file is the Ansible role, which will be run on the container
The... | github-code-clean | svartblomma/docker_runner | README.md | Markdown | mit |
7451935b82bcb329 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.datafactory.v2018_06_01;
import com.fasterxml.ja... | github-code-clean | selvasingh/azure-sdk-for-java | sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/GoogleCloudStorageLocation.java | Java | mit |
eaef5e6e8aee3bf3 | <a href="/article/{{post.pk}}">
<div class="search-result post {{post.primary_section}}">
<span class="primary">{{ post.title }}</span>
<div class="metadata">
<span class="date">{{post.published | date:"F j, Y"}}</span>
{% for author in post.creators %}
{% if ... | github-code-clean | BowdoinOrient/bongo | bongo/apps/search/templates/search/post.html | HTML | mit |
4f8cb75a09eeb4aa | $js.module({
prerequisite:[
'/{$jshome}/modules/splice.module.extensions.js'
],
imports:[
{ Inheritance : '/{$jshome}/modules/splice.inheritance.js' },
{'SpliceJS.UI':'../splice.ui.js'},
'splice.controls.pageloader.html'
],
definition:function(){
var scope = this;
var
imports = scope.imports
;
var
Class =... | github-code-clean | jonahgroup/SpliceJS.Modules | src/ui.controls/splice.controls.pageloader.js | JavaScript | mit |
7cce664ae4f0765f | RSpec.describe AuthorizeIf do
let(:controller) {
double(:dummy_controller, controller_name: "dummy", action_name: "index").
extend(AuthorizeIf)
}
describe "#authorize_if" do
context "when object is given" do
it "returns true if truthy object is given" do
expect(controller.authorize_if(t... | github-code-clean | vrybas/authorize_if | spec/authorize_if_spec.rb | Ruby | mit |
c3486ec4579828f5 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("34... | github-code-clean | steliyan/ProjectEuler | 34_FactorialSum/Properties/AssemblyInfo.cs | C# | mit |
0b12d0c79c24b63e | namespace MyColors
{
partial class SimpleToolTip
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <p... | github-code-clean | cborrow/MyColors | SimpleToolTip.Designer.cs | C# | mit |
269f52859317815c | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | github-code-clean | PFC-acl-amg/GamaPFC | GamaPFC/Gama.Atenciones.Wpf/Views/SearchBoxView.xaml.cs | C# | mit |
f401f96f0ca78532 | <?php
namespace Terrific\Composition\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\SerializerBundle\Annotation\ReadOnly;
use JMS\SerializerBundle\Annotation\Type;
use JMS\SerializerBundle\Annotation\Exclude;
use JMS\SerializerBundle\Annotation\Groups;
use JMS\SerializerBundle\Annotation\Accessor;
/**
... | github-code-clean | brunschgi/terrific-io-old | src/Terrific/Composition/Entity/Module.php | PHP | mit |
84ebdc2b49d1c59c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="blog,python,django,developer">
<meta name="author" content="Derek Stegelman">
... | github-code-clean | dstegelman/derek.stegelman.com | public/tags/index.html | HTML | mit |
f0e11f344ccde5a5 | using System;
using System.Collections;
using System.Linq;
using Xunit;
namespace Popsql.Tests
{
public class SqlValuesTests
{
[Fact]
public void Add_WithNullValues_ThrowsArgumentNull()
{
var values = new SqlValues();
Assert.Throws<ArgumentNullException>(() => values.Add(null));
}
[Fact]
public v... | github-code-clean | WouterDemuynck/popsql | src/Popsql.Tests/SqlValuesTests.cs | C# | mit |
725dee61e23b6037 | package se.dsv.waora.deviceinternetinformation;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.widget.TextView;
/**
* <code>ConnectionActivity</code> presents... | github-code-clean | dushantSW/ip-mobile | 7.3.1/DeviceInternetInformation/app/src/main/java/se/dsv/waora/deviceinternetinformation/ConnectionActivity.java | Java | mit |
8be1bd956b244b35 | //
// Constants.h
//
//
#define LANGUAGES_API @"https://api.unfoldingword.org/obs/txt/1/obs-catalog.json"
#define SELECTION_BLUE_COLOR [UIColor colorWithRed:76.0/255.0 green:185.0/255.0 blue:224.0/255.0 alpha:1.0]
#define TEXT_COLOR_NORMAL [UIColor colorWithRed:32.0/255.0 green:27.0/255.0 blue:22.0/255.0 al... | github-code-clean | unfoldingWord-dev/uw-ios | app/UnfoldingWord/UnfoldingWord/Constants.h | C | mit |
d4f7681a5b3e1339 | # Les patrons de conception
## Bibliothèque d'exemples en Java
Ce dossier est un aide mémoire.
Il consiste à répertorier les patrons de conception en Java.
### [La liste des exemples](https://github.com/ewenb/Java_patterns)
* COMPOSITE : Il dispose les objets dans des structures arborescentes
ex1 : Un exemple ba... | github-code-clean | ewenb/Java_patterns | VISITEUR/README.md | Markdown | mit |
bf5b638ed02642cc | .highlight { background-color: black; }
.highlight .hll { background-color: #404040 }
.highlight .c { color: #999999; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .g { color: #d0d0d0 } /* Generic */
.highlight .k { color: #6ab825; font-weight: b... | github-code-clean | fdutey/formol | app/assets/stylesheets/pygments/native.css | CSS | mit |
218510de198a2a34 | ---
author: admin
comments: true
date: 2010-03-26 09:48:35+00:00
layout: post
slug: what-to-do-when-ubuntu-device-mapper-seems-to-be-invincible
title: 'What to do when Ubuntu Device-mapper seems to be invincible! '
categories:
- Instructional
tags:
- 64-bit
- hard drive
- hardware
- linux
- lucid lynx
- Ubuntu
- workst... | github-code-clean | andrewbolster/andrewbolster.github.io | _posts/2010-03-26-what-to-do-when-ubuntu-device-mapper-seems-to-be-invincible.markdown | Markdown | mit |
1adff20cf0a2a508 | 'use babel';
import MapQueries from '../lib/map-queries';
// Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs.
//
// To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit`
// or `fdescribe`). Remove the `f` to unfocus the block.
describe('MapQueries', () => {
let wor... | github-code-clean | shamshoum/map-queries | spec/map-queries-spec.js | JavaScript | mit |
5374327a1bfdb06e | /* MIT License (From https://choosealicense.com/ )
Copyright (c) 2017 Jonathan Burget support@solarfusionsoftware.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includin... | github-code-clean | TigerFusion/TigerEngine | TIGString.c | C | mit |
12034e6e40815884 | package com.github.kwoin.kgate.core.sequencer;
import com.github.kwoin.kgate.core.message.Message;
import com.github.kwoin.kgate.core.session.Session;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Nullable;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import jav... | github-code-clean | Kwoin/KGate | kgate-core/src/main/java/com/github/kwoin/kgate/core/sequencer/AbstractSequencer.java | Java | mit |
d66abf7ed944826c | module Discordrb::Webhooks
# An embed is a multipart-style attachment to a webhook message that can have a variety of different purposes and
# appearances.
class Embed
def initialize(title: nil, description: nil, url: nil, timestamp: nil, colour: nil, color: nil, footer: nil,
image: nil, th... | github-code-clean | Roughsketch/discordrb | lib/discordrb/webhooks/embeds.rb | Ruby | mit |
ce04c639cfb26f48 | var config = require('./config');
var express = require('express');
var superagent = require('superagent');
/**
* Auth Token
*/
var authToken = null;
var expires = 0;
var expires_in = 20160; // 14 days in minutes
/**
* Urls
*/
var OAUTH = 'https://www.arcgis.com/sharing/oauth2/token';
var GEOCODE =
'http://ge... | github-code-clean | Code4Maine/modeify | lib/geocode.js | JavaScript | mit |
a51b0332b8cf7a28 | import Immutable from 'immutable';
import * as ActionType from '../../actions/auth/auth';
const defaultState = Immutable.fromJS({
loggedIn: false,
});
function authReducer(state = defaultState, action) {
const {
loggedIn,
} = action;
switch (action.type) {
case ActionType.VERIFIED_LOGIN:
retu... | github-code-clean | phillydorn/CAProject2 | app/reducers/auth/auth.js | JavaScript | mit |
6e4c10638170539a | [See html formatted version](https://huasofoundries.github.io/google-maps-documentation/MapPanes.html)
MapPanes interface
------------------
google.maps.MapPanes interface
Properties
[floatPane](#MapPanes.floatPane)
**Type:** Element
This pane contains the info window. It is above all map overlays. (Pane 4).
[... | github-code-clean | amenadiel/google-maps-documentation | docs/MapPanes.md | Markdown | mit |
964d177443787790 | package fr.pizzeria.admin.web;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
impo... | github-code-clean | kmokili/formation-dta | pizzeria-admin-app/src/main/java/fr/pizzeria/admin/web/LoginController.java | Java | mit |
df4392b238004026 | import { gql } from '@apollo/client'
import avatarFragment from 'v2/components/AvatarUploader/fragments/avatar'
export default gql`
query AvatarCheck {
me {
...Avatar
}
}
${avatarFragment}
`
| github-code-clean | aredotna/ervell | src/v2/components/AvatarUploader/queries/avatar.ts | TypeScript | mit |
5a294fb07a97bc74 | <html>
<head>
</head>
<body>
<h2>
But Honour Them As They Honour Men
</h2>
Thirdly,
<span class="oldenglish">
for
</span>
<span class="oldenglish">
the
</span>
worship
<span class="oldenglish">
which
</span>
naturally men exhibite
<span class="oldenglish">
to
</span>
Powers... | github-code-clean | charlesreid1/wordswordswords | etymology/html/leviathan103.html | HTML | mit |
b35d09bb68820710 |
var PassThrough = require('stream').PassThrough
describe('Object Streams', function () {
it('should be supported', function (done) {
var app = koala()
app.use(function* (next) {
var body = this.body = new PassThrough({
objectMode: true
})
body.write({
message: 'a'
})... | github-code-clean | francisbrito/koala | test/app/object-streams.js | JavaScript | mit |
66e62a29423b3cd4 | YUI.add("inputex-inplaceedit", function(Y){
var lang = Y.Lang;//, Event = YAHOO.util.Event, Dom = YAHOO.util.Dom, CSS_PREFIX = 'inputEx-InPlaceEdit-';
/**
* Meta field providing in place editing (the editor appears when you click on the formatted value).
* @class inputEx.InPlaceEdit
* @extends inputEx.Field
*... | github-code-clean | piercus/inputex | js/fields/InPlaceEdit.js | JavaScript | mit |
f273c76fd8190bc1 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
////////////////////////////////////////////////////////////////////////////
//
//
// Purpose: This class defines ... | github-code-clean | Dmitry-Me/coreclr | src/mscorlib/src/System/Globalization/StringInfo.cs | C# | mit |
8369e015cadab1ed | package org.anodyneos.xp.tag.core;
import javax.servlet.jsp.el.ELException;
import org.anodyneos.xp.XpException;
import org.anodyneos.xp.XpOutput;
import org.anodyneos.xp.tagext.XpTagSupport;
import org.xml.sax.SAXException;
/**
* @author jvas
*/
public class DebugTag extends XpTagSupport {
public DebugTag() ... | github-code-clean | jvasileff/aos-xp | src.java/org/anodyneos/xp/tag/core/DebugTag.java | Java | mit |
35c1a7166be28b71 | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>File: calculations.rb</title>
<meta http-equiv="Content-... | github-code-clean | ecoulthard/summitsearch | doc/api/files/usr/lib/ruby/gems/1_8/gems/activesupport-3_0_0_beta4/lib/active_support/core_ext/time/calculations_rb.html | HTML | mit |
3020caea39eb88a6 | class SessionsController < ApplicationController
before_filter :authenticate_user, :only => [:home, :profile, :setting]
before_filter :save_login_state, :only => [:login, :login_attempt]
def login
end
def login_attempt
authorized_user = User.authenticate(params[:username_or_email],params[:login_password])
if au... | github-code-clean | app-man/LoginEasy | app/controllers/sessions_controller.rb | Ruby | mit |
faeb1ee33b14617d | import numpy as np
import pandas as pd
from pandas import Series, DataFrame
from scipy.spatial import distance
import matplotlib.pyplot as plt
from sklearn.cluster import DBSCAN
from sklearn import metrics
from sklearn.datasets.samples_generator import make_blobs
from sklearn.preprocessing import StandardScaler
from s... | github-code-clean | banacer/door-wiz | src/identification/Identifier.py | Python | mit |
d99742068c608f60 | <?php
/* TwigBundle:Exception:traces.html.twig */
class __TwigTemplate_034400bfb816a72b7b3da36dd2d8e07ee89621bac614688be25a4e8ff872b3ad extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(... | github-code-clean | JoseGMaestre/Cupon_check | app/cache/dev/twig/9e/9e7ec4c116a05cf87d6dedc6906bdf1b530cafcee29ed870fee22e6360fa5e44.php | PHP | mit |
1735c545f83cb5af | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | github-code-clean | ng2-slavs/Sportsemblr | public/app/pipes/remainingTimePipe.js | JavaScript | mit |
a7ee42bd2884ef47 | /* eslint-disable import/no-extraneous-dependencies,import/no-unresolved */
import React, { useState } from 'react';
import { Form } from 'react-bootstrap';
import { Typeahead } from 'react-bootstrap-typeahead';
/* example-start */
const options = [
'Warsaw',
'Kraków',
'Łódź',
'Wrocław',
'Poznań',
'Gdańsk... | github-code-clean | ericgio/react-bootstrap-typeahead | example/src/examples/FilteringExample.js | JavaScript | mit |
0f38775f2201d853 | {% extends "base.html" %}
{% block content %}
<div class="container">
<form action="" method="POST" enctype="multipart/form-data">
{{ form.hidden_tag() }}
<p>
Descriptive Name:
{{ form.descriptive_name(size = 50) }}
{% for error in form.descriptive_name.errors %}
<span st... | github-code-clean | okyere/excel-data-collection | app/templates/add_tableinfo.html | HTML | mit |
3eeff06f3dd2e846 | require 'test_helper'
class VigenereTest < MiniTest::Test
def setup
super
@cipher = Cryptolalia::Cipher::Vigenere.new
end
def test_encodes
@cipher.plaintext = 'This is a super secret message.'
@cipher.keyword = 'qwerty'
@cipher.encode!
assert_equal "jdmj bq q oygxp iagixr cawjteu", @ci... | github-code-clean | Veraticus/cryptolalia | test/unit/cipher/vigenere_test.rb | Ruby | mit |
2e31c3f064b97a5b | @extends('layouts.app')
@section('content')
<div class="container-fluid">
<div class="row">
<div class="panel panel-default">
<div class="panel-heading" style="padding-bottom: 40px;">PREVIEW
<div class="col-xs-3 pull-right">
<a href="/ssearch">... | github-code-clean | ayoshoks/ncs | resources/views/search/specific_result.blade.php | PHP | mit |
1ac8d3f5147bae2c | using System.Collections.Generic;
using UnityEngine;
using System;
namespace AI
{
public class GreedyAIController : PlayerController
{
enum NextState
{
Wait, Draw, Play
}
private NextState nextState;
Dictionary<DominoController, List<DominoController>> place... | github-code-clean | hahamty/Dominoes | Game/Assets/Scripts/AI/GreedyAIController.cs | C# | mit |
14f06ae06fc09a99 | package com.codenotfound.endpoint;
import java.math.BigInteger;
import org.example.ticketagent.ObjectFactory;
import org.example.ticketagent.TFlightsResponse;
import org.example.ticketagent.TListFlights;
import org.example.ticketagent_wsdl11.TicketAgent;
public class TicketAgentImpl implements TicketAgent {
@Over... | github-code-clean | code-not-found/jaxws-cxf | jaxws-cxf-digital-signature/src/main/java/com/codenotfound/endpoint/TicketAgentImpl.java | Java | mit |
d0ed151717314b05 | /*
The MIT License (MIT)
Copyright (c) 2014 Mehmetali Shaqiri (mehmetalishaqiri@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including with... | github-code-clean | spartanbeg/OpenVPN-Event-Viewer | openvpn.api/openvpn.api/Controllers/UsersController.cs | C# | mit |
90536addc8d5e283 | name 'google_app_engine'
description 'A cookbook to download and install the google app engine SDK on a Linux system.'
version '1.0.0'
maintainer 'Bernd Hoffmann'
maintainer_email 'info@gebeat.com'
license 'MIT'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.... | github-code-clean | GeBeater/gae-cookbook | metadata.rb | Ruby | mit |
08369909654b4abb | TaskManager.module('ContentModule.List', function (List, App, Backbone) {
'use strict';
List.Controller = Marionette.Controller.extend({
initialize: function (options) {
var tasksList = App.request('taskList'),
listView = this.getView(tasksList);
if (options.region) {
this.region = options.region;
... | github-code-clean | vlyahovich/Task-Manager | src/js/modules/content/list/listController.js | JavaScript | mit |
2daac9b6efc8cc6e | namespace SharedWeekends.MVC.Areas.Administration.Controllers
{
using System.Web.Mvc;
using SharedWeekends.Data;
using SharedWeekends.MVC.Controllers;
[Authorize(Roles = "admin")]
public abstract class AdminController : BaseController
{
public AdminController(IWeekendsData data)
... | github-code-clean | kalinalazarova1/SharedWeekends | SharedWeekends.MVC/Areas/Administration/Controllers/AdminController.cs | C# | mit |
d3cf5fcb7cdde4c8 | # VisMod
While the ultimate goal of VisMod is to assist in groundwater flow model visualization,
the current classes support the export of files that can be used in visualization software
such as [http://wci.llnl.gov/codes/visit/].
[;
function MockProject() {
var root = process.cwd();
var pkg = {};
Project.apply(this, [root, pkg]);
}
MockProject.prototype.require = function(file) {
if (file === './server') {
return function() {
return {
listen: functio... | github-code-clean | mattjmorrison/ember-cli-testem | tests/helpers/mock-project.js | JavaScript | mit |
1e5d8445a535fb5c | <!DOCTYPE html>
<html lang="en" ng-app="App">
<head>
<meta charset="UTF-8">
<title>form</title>
<link rel="stylesheet" href="../../js/lib/bootstrap/dist/css/bootstrap.min.css">
<style>
.container {
margin-top: 30px;
}
</style>
</head>
<body ng-controller="MyCtrl">
<div class="container">
... | github-code-clean | GreenMelon/Angular-Notes | app/html/Form/checkbox-001.html | HTML | mit |
eca5e482df73d3af | #[derive(Debug)]
pub struct Rectangle {
length: u32,
width: u32,
}
impl Rectangle {
pub fn can_hold(&self, other: &Rectangle) -> bool {
self.length > other.length && self.width > other.width
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn larger_can_hold_smaller() {
... | github-code-clean | hiseni/trpl | adder/src/lib.rs | Rust | mit |
6adb2efa9d104c46 | 'use strict';
function NavalMap(canvasId, imageMapUrl, imageCompassUrl, config) {
this.canvas = document.getElementById(canvasId);
this.imageMap = new Image();
this.imageCompass = new Image();
this.config = config;
this.itemsLoaded = false;
this.nationsLoaded = false;
this.shopsLoaded = fal... | github-code-clean | Rodrive/na-map | js/map.js | JavaScript | mit |
2a40ba3fd6f4f6c2 | import _curry2 from "./_curry2";
/**
* Accepts an object and build a function expecting a key to create a "pair" with the key
* and its value.
* @private
* @function
* @param {Object} obj
* @returns {Function}
*/
var _keyToPairIn = _curry2(function (obj, key) {
return [key, obj[key]];
});
export default _k... | github-code-clean | ascartabelli/lamb | src/privates/_keyToPairIn.js | JavaScript | mit |
9943179d46a47d72 | //-------------------------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// CHeapPtr for VB
//
//-------------------------------------------------------------------------------------------------
#pragma once
template <typ... | github-code-clean | mind0n/hive | Cache/Libs/net46/vb/language/shared/vbheapptr.h | C | mit |
2d474b8bf6800f76 | 'use strict';
/**
* The basic http module, used to create the server.
*
* @link http://nodejs.org/api/http.html
*/
alchemy.use('http', 'http');
/**
* This module contains utilities for handling and transforming file paths.
* Almost all these methods perform only string transformations.
* The file system is n... | github-code-clean | skerit/alchemy | lib/init/requirements.js | JavaScript | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.