answer stringlengths 15 1.25M |
|---|
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Player
*
* @ORM\Table(name="player")
* @ORM\Entity
*/
class Player
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
p... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>buchberger: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>demos: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... |
package pl.iterators.kebs.instances.time
import pl.iterators.kebs.instances.InstanceConverter
import pl.iterators.kebs.instances.time.PeriodString.PeriodFormat
import java.time.Period
trait PeriodString {
implicit val periodFormatter: InstanceConverter[Period, String] =
InstanceConverter[Period, String](_.toStrin... |
<!DOCTYPE html>
<html xmlns="http:
<head>
<meta charset="UTF-8"/>
<title>Stories</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<!--[if IE 7]>
<link rel="stylesheet" href="font-awesome/css/font-awesome-ie7.min.css">
<![endif]--><!--... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>io-evaluate: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... |
FROM donpiekarz/jessie
MAINTAINER DonPiekarz <DonPiekarz@gmail.com>
ADD . /bd_build
RUN /bd_build/prepare.sh && \
/bd_build/system_services.sh && \
/bd_build/utilities.sh && \
/bd_build/cleanup.sh
CMD ["/sbin/my_init"] |
import numpy as np
import tensorflow as tf
import h5py
import time
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import sys
# Functions for initializing neural nets parameters
def <API key>(shape, nameIn):
initial = tf.truncated_normal(shape, stddev=0.1, dtype=tf.float32)
return tf.Variabl... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><API key>: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>elpi: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... |
/**Resources for drone.
* @see game.sprites.enemy.ships.Drone
*/
package game.util.resources.sprites.enemy.craft.drone; |
<div class="highlight"><pre><span class="kn">from</span> <span class="nn">functools</span> <span class="kn">import</span> <span class="n">wraps</span>
<span class="k">def</span> <span class="nf">cached</span><span class="p">(</span><span class="n">func</span><span class="p">):</span>
<span class="n">cache</span> <s... |
// NSString+CDNEncrypt.h
// CDNKitDemo
#import <Foundation/Foundation.h>
@interface NSString (CDNEncrypt)
/**
* 32MD5
*
* @return 32MD5
*/
- (NSString *)md5;
/**
* SHA1
*
* @return SHA1
*/
- (NSString *)sha1;
@end |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>interval: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... |
<div class="container">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>
<th>Applicant Name</th>
<th>Email Id</th>
<th>Phone Number</th>
<th>Action</th... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lemma-overloading: 1 m 40 s </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>finger-tree: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... |
module MusixMatch
module Models
class Lyrics
include Model
<API key> :lyrics_id, :lyrics_body, :lyrics_language, :script_tracking_url, :lyrics_copyright, :track_name, :artist_name, :restricted
end
end
end |
module.exports = require('./src/api'); |
#include <stdio.h>
#include <stdlib.h>
#define M (1024 * 1024)
#define K (1024)
#ifdef PART2
#define TOTAL_ALLOCS 5*M
#else
#define TOTAL_ALLOCS 50*K
#endif
int main()
{
malloc(1);
int i;
int **arr = malloc(TOTAL_ALLOCS * sizeof(int *));
if (arr == NULL)
{
printf("Memory failed to alloca... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>unicoq: 28 s </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="styles... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using System.Xml;
using NUnit.Framework;
using BerkeleyDB;
namespace CsharpAPITest
{
[TestFixture]
public class SecondaryCursorTest : CSharpTestFixture
{
[TestFixture... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace Telerik.Less.UnitTests
{
[TestClass]
public class TestCompiler
{
[TestMethod]
public void TestCssOutPut()
{
string lessFile = Environment.CurrentDirectory + @"\test.less";
string outpu... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="/static/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/layer/skin/default/layer.css">
<style>
body {
width: 80%;
margin: 0 auto;
}
</s... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>menhirlib: 40 s </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="sty... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>random: 1 m 26 s </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="st... |
package assembly;
import java.util.ArrayList;
public class StringHandler {
ArrayList<String> statements;
ArrayList<Register> registers;
public StringHandler(){
statements = new ArrayList<String>();
registers = new ArrayList<Register>();
}
public void addStatement(String statement){
... |
var fs = require('fs');
var mongoose = require('mongoose');
module.exports = function(grunt) {
/**
* Configuration settings for grunt tasks
*/
var Config = Object.freeze({
url: '',
port: '27017'
});
/**
* Task for removing data from database.
* This is the analog to "... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>yalla: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... |
var isObject = require('isobject');
module.exports = function getValue(o, prop, escape) {
if (o == null || !isObject(o)) {
return {};
}
if (prop == null) {
return o;
}
var path;
if (escape === true) {
prop = prop.replace(/\\\./g, '___DOT___');
path = prop.split('.').map(function(seg) {
... |
#!/bin/sh
function lint() {
xmllint --c14n "$1"|xmllint --format -
}
set -o pipefail && xcodebuild -workspace ContentfulPlugin.xcworkspace \
-scheme <API key> 2>/dev/null | xcpretty -c
BUILD="`ls -d $HOME/Library/Developer/Xcode/DerivedData/ContentfulPlugin-*`"
$BUILD/Build/Products/Debug/<API key> \
a3rsszoo... |
(function() {
'use strict';
angular
.module('app.admin')
.run(appRun);
appRun.$inject = ['routerHelper'];
/* @ngInject */
function appRun(routerHelper) {
routerHelper.configureStates(getStates());
}
function getStates() {
return [
{
... |
(function() {
var randomAtoZ, randomWord, randomWordLength, word_history, wordfrequency, returnWord;
randomAtoZ = (function(lookup) {
return function() {
var chance, char, charfreq, prev, random;
random = Math.random() * 100000;
char = void 0;
prev = 0;
... |
import React from 'react';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import RaisedButton from 'material-ui/RaisedButton';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import AppBar from 'material-ui/AppBar';
import {Link} from 'react-router'
import Subh... |
require File.dirname(__FILE__) + '/test_helper'
context "Resque::Plugins::Aps" do
setup do
Resque.redis.flushall
end
# test "needs to infer a queue with enqueue" do
# assert_raises Resque::NoQueueError do
# Resque.enqueue(SomeJob, 20, '/tmp')
# end
# end
test "can create an application" do
... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Sensorless control of 3-phase brushless DC motors: File Index</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxy... |
var FrozenColumns = function FrozenColumns(table) {
this.table = table; //hold Tabulator object
this.leftColumns = [];
this.rightColumns = [];
this.leftMargin = 0;
this.rightMargin = 0;
this.rightPadding = 0;
this.initializationMode = "left";
this.active = false;
this.scrollEndTimer ... |
#include <fstream>
#include <string>
#include "StrTools.h"
#include "IniParser.h"
using namespace std;
IniParser::IniParser(const string &filename, bool mustExist) : filename(filename)
{
dirty = false;
updateCnt = 0;
reload(mustExist);
}
void IniParser::changed()
{
dirty = true;
if (updateCnt == 0) ... |
// FLO<API key>.h
// FishLamp
#import "FishLampCore.h"
#import "FLHttpRequest.h"
#import "FLO<API key>.h"
#import "FLOAuthApp.h"
@interface FLO<API key> : FLHttpRequest {
@private
FLO<API key>* _authData;
FLOAuthApp* _app;
NSURL* _url;
}
- (id) initWithOAuthApp:(FLOAuthApp*) app authData:(FLO<API key>*) d... |
using System.Collections;
namespace Anycmd.Xacml.Interfaces
{
using Runtime;
<summary>
Defines a value that can be used as a function parameter. Containing methods that allows getting a typed
value in order to evaluate the function with typed values.
</summary>
public interface IFunctionParamete... |
export * from './App'
export {default as CompleteLogIn} from './CompleteLogIn'
export * from './Error404'
export * from './EventSelectField'
export * from './<API key>'
export * from './Home'
export * from './LogInForm'
export * from './LookUpRegister'
export * from './MainFooter'
export * from './MainNav'
export * fro... |
using UnityEngine;
using UnityEngine.UI;
using System;
using System.Collections;
public class FoodClicker : MonoBehaviour {
private static float BASE_FOOD_PER_CLICK = 1.0f;
// Singleton Implementation
public FoodClicker instance { get; private set; }
void Awake() {
instance = this;
}
// ... |
# Reddit Retractable Sidebar
If you do a lot of split screen redditing, you'll quickly find that the sidebar can be a nuisance. Well, this script makes that sidebar retractable.
It adds a FAB button to the right-hand side of the screen which allows you to hide or show the sidebar. It will add a cookie remembering the s... |
using System;
using System.Collections;
using System.Collections.Generic;
namespace Janglin.Glassdoor.Api
{
internal class PagedResult<C, I> : Result<C>, IEnumerable<I>
where C : PagedTypedResponse<I>, IEnumerable<I>
where I : class
{
string _Url;
int _PageNumber = 0;
pub... |
angular.module('App', ['LocationBar']); |
// browser.js
// This contains the client-side javascript code for jstdgame.
// The code is split up into a model, view, and controller class, all contained
// within a global parent object, following the MVC paradigm
//This contains all of the data objects for the game
var BrowserModel = function (parent)
{
var m... |
from ..base import AST
CLASS = "statements.skip"
class SkipStatement(AST):
def __init__(self):
super().__init__(CLASS, "skip_statement") |
module.exports = function(grunt) {
'use strict';
var fs = require('fs');
return {
"getImageName": function(cssValue, prefix) {
var urlRegExResult = /[?]*url\([\s\"\']*([\w\-_\/\.\?0-9]+)[\"\'\s]*\)/.exec(cssValue);
var imageName = urlRegExResult && urlRegExResult[1] ? urlRegExResult[1] : undefined;
... |
var request = require('request')
, q = require('q')
;
var NationalRail = function() {
this.baseUrl = 'http://nationalrail.co.uk';
};
NationaRail.prototype.get = function(uri) {
var deferred = q.defer();
this.promise = deferred.promise;
console.log('GET:', {
'url': this.baseUrl + uri
});
... |
<?php
require_once("php/controller/create-db.php");
?>
<html>
<head>
<title>melonJS Template</title>
<link rel="stylesheet" type="text/css" media="screen" href="index.css">
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no... |
class <API key> < ActiveRecord::Migration
def change
add_column :roles, :task_definition_id, :integer
end
end |
<header>
<md-toolbar>
<div class="md-toolbar-tools" layout-align="center end">
<a ng-href="#/stream"><h1> angler</h1></a>
<div flex></div>
<a ng-href="#/search" class="material-icons" layout-margin>search</a>
<a ng-href="#/user/{{currentUser.id}}" class="mater... |
// System.Web.Security.<API key>
// Authors:
// Ben Maurer (bmaurer@users.sourceforge.net)
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// permit persons... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><API key>: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... |
var jsx = require('G:\\jsx-transpiler-tpls');
var fs = require('fs');
var generator = require('./generator.js');
var input = fs.readFileSync('./test.jsx');
var output = generator.generate('test', input);
fs.writeFileSync('./test.js', output); |
# This file is modified from
import json
import sys
from msal_extensions import (<API key>, KeychainPersistence, <API key>,
FilePersistence, PersistedTokenCache, CrossPlatLock)
from msal_extensions.persistence import PersistenceNotFound
from knack.log import get_logger
from azure.cli.core.d... |
import aifc
import sndhdr
import utils
class Aiff:
def __init__(self, filename):
assert sndhdr.what(filename).filetype == 'aiff'
x = aifc.open(filename)
data = x.readframes(x.getnframes())
self.nchannels = x.getnchannels()
self.sampwidth = x.getsampwidth()
self.framer... |
module.exports = [
{
test: /\.jsx$/,
loaders: [
// 'react-hot',
'jsx-loader?insertPragma=React.DOM&harmony']
},
{
test: /\.js$/,
loaders: [
// 'react-hot',
'jsx-loader?harmony']
},
{
test: /\.styl$/,
load... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>pocklington: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... |
## Changelog for autoNumeric
4.6.0
+ Adds a new option `invalidClass`, which default to `an-invalid`, that defines the CSS class name to use when a <API key> element value is invalid
+ Adds a new option value `'invalid'` for the `<API key>` option, that will allow users to enter out-of-bound numbers
+ Fixes #543 Allow ... |
// File: main.cpp
#define STRICT
#include <windows.h>
#include <commctrl.h>
#include <commdlg.h>
#include <basetsd.h>
#include <math.h>
#include <stdio.h>
#include <d3dx9.h>
#include <dxerr9.h>
#include <tchar.h>
#include "DXUtil.h"
#include "D3DEnumeration.h"
#include "D3DSettings.h"
#include "D3DApp.h"
#include "D3DF... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><API key>: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.cpp
Label Definition File: <API key>.strings.label.xml
Template File: sources-sink-72b.tmpl.cpp
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: listen_socket Read data using a listen socket (server side)
* GoodSource: Fixed string
* Sinks: w3... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.cpp
Label Definition File: <API key>.label.xml
Template File: sources-sink-72b.tmpl.cpp
*/
/*
* @description
* CWE: 195 Signed to Unsigned Conversion Error
* BadSource: rand Set data to result of rand(), which may be zero
* GoodSource: Positive integer
* Sink... |
<!DOCTYPE HTML>
<html>
<head>
<title>100</title>
</head>
<body>
<h2>100</h2>
<p>A draw. The next Spiral sees him <em>recovering</em> to four heads and three tails. You have lost any advantage you
may have had, because you have four heads - out of a total of four coins. You grit your teeth, determined to win
... |
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Sitecore.Data;
using Sitecore.Data.Items;
namespace Synthesis.FieldTypes.Adapters
{
<summary>
Version of ItemAxes that returns strongly typed entities. It also moves the Item.GetChildren() and Item.Parent in here, ... |
var sys = require("sys");
var tests = ["json", "hash", "errorthresh", "bitwise", "tofunction", "layers",
"grow"];
for(var i = 0; i < tests.length; i++) {
var test = tests[i];
try {
require("./" + test);
sys.puts("PASS " + test);
}
catch(e) {
var msg = "FAIL " + test + ": " + e;
if... |
<?php
namespace Workflux\Transition;
use Workflux\Param\InputInterface;
use Workflux\Param\OutputInterface;
use Workflux\Param\<API key>;
use Workflux\Param\Settings;
use Workflux\Transition\ConstraintInterface;
use Workflux\Transition\TransitionInterface;
final class Transition implements TransitionInterface
{
/**... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>compcert: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>compcert: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... |
import os
from subprocess import call
from videogrep import videogrep
filename = 'TEST_OUTPUT.mp4'
def test_videogrep():
videogrep.videogrep('test_videos/test.mp4', filename, 'video', 'pos')
files = os.listdir('.')
assert filename in files
def test_cli():
command = 'videogrep_cli.py -i test_videos/test.... |
using System;
using System.Collections.Generic;
using System.Data.Linq;
using System.Data;
using System.Linq;
using System.Reflection;
using System.Dynamic;
using System.Linq.Dynamic;
using Maverick;
using System.Data.SqlClient;
namespace MavEntity
{
public class EntityContext : DataContext
{
public Ent... |
import numpy as np
from .distribution import Distribution
from scipy.stats import multivariate_normal
from scipy.optimize import minimize
class <API key>(Distribution):
"""
Gaussian distribution with fixed covariance matrix. The parameters
vector represents only the mean.
"""
def __init__(self, mu, ... |
angular.module('ActivityController', [])
// inject the Todo service factory into our controller
.controller('mainController', ['$scope','$http','$location','Activities', function($scope, $http, $location, Activities) {
$scope.formData = {};
$scope.activities = {};
$scope.loading = true;
$scope.error... |
class <API key> < ActiveRecord::Migration[4.2]
def change
create_table :<API key> do |t|
t.integer :openstax_uid, null: false
t.string :username, null: false
t.string :access_token
t.string :first_name
t.string :last_name
t.string :full_name
t.string :title
t.... |
package org.firstinspires.ftc.teamcode;
public class VuMarkSettings {
/*
* Gray = true
* Brown = false
*
* Frog = 0 && 1
* Bird = 2 && 3
* Snake = 4 && 5
*/
public static final boolean[][][] layouts = new boolean[][][]
{
// Frog 0
{
... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using PubSubHub.Models;
namespace PubSubHub
{
public class MessageCollection : Collection<IPubSubMessage>
{
public MessageCollection()
{
}
public MessageCol... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>elpi: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... |
var Log = require('saram-core/system/log/index.js');
describe('Log', function() {
it('#Debug', function() {
Log.debug(null, "Debug Log");
});
it('#Info', function() {
Log.info(null, "Info Log");
});
it('#Warning', function() {
Log.warning(null, "Warning Log");
});
it(... |
<!DOCTYPE html>
<html lang="zh">
<head>
<title>carinaDockerShadowSocks</title>
<meta charset="utf-8" />
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<meta name="viewport" content="width=device-width,initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/c... |
;(function() {
'use strict';
const showdown = require('showdown');
module.exports = Extension => class Markdown extends Extension {
_constructor() {
this.parse.context = Extension.SECTION;
}
parse(ctx) {
ctx.content = new showdown.Converter().makeHtml(ctx.section.content);
return ctx... |
# Yet Another Python Apriori Algorithm Implementation
The python implementation of Apriori Algorithm.
Frequently used for association rule mining. e.g. People like coke, also like
lime
## Installation
$ sudo python setup.py install
## Getting started
from yapa.apriori import NaiveApriori
# Instantiate a apr... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hammer-tactics: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.mi... |
from aredis.exceptions import RedisError
from aredis.utils import b, nativestr
def <API key>(response, **options):
if options['store'] or options['store_dist']:
# `store` and `store_diff` cant be combined
# with other command arguments.
return response
if type(response) != list:
... |
using System;
using System.Threading;
namespace Zadanie1
{
public class GraphGnp
{
private readonly int[,] _graph;
private readonly int _size;
private readonly Random _random;
public static int Egdes;
private readonly object _locker = new object();
public GraphGnp... |
#!/bin/bash
if [ $# -lt 1 ] || [ $1 = -l ] && [ $# -lt 2 ]
then
echo error: not enough arguments 1>&2
exit 1
fi
if [ $1 = -l ]
then
find "${@:3}" -type f -exec wc -c {} \; | cut -f1 -d' ' | sort -n | head -$2
else
find "${@:2}" -type f -exec wc -c {} \; | sort -n | head -$1
fi |
#ifndef PACKEDARRAY_H
#define PACKEDARRAY_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
struct _PackedArray
{
uint32_t bitsPerItem;
uint32_t count;
uint32_t padding[2];
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4200)
#endif // #ifdef _MSC_VER
uint32_t buffer[];
#ifdef _MSC_VE... |
require '<API key>/paths'
module Nesta
module ContentFocus
module Theme
def register(name, paths = {})
if paths[:base]
base_path = paths[:base]
view_path = File.expand_path(base_path + '/views')
stylesheet_path = File.expand_path(base_path + '/stylesheets')
ja... |
package io.github.barandc.loginalert;
import java.net.URL;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.HandlerLi... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>shuffle: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
#include <iostream>
#include <seqan/graph_types.h>
#include <seqan/graph_algorithms.h>
using namespace seqan;
int main ()
{
typedef unsigned int TCargo;
typedef Graph<Undirected<TCargo> > TGraph;
typedef VertexDescriptor<TGraph>::Type TVertexDescriptor;
TGraph g;
TVertexDescriptor vertBerlin = addVe... |
const tape = require('tape')
const schedule = require('./schedule')
const fixtures = require('./fixtures/schedule')
tape('peak schedule', (t) => {
const data = fixtures.schedule_templates.peak
const day = schedule(data)
t.equal(day.meta, data.meta, 'meta is the same')
t.equal(day.blocks.length, data.blocks.leng... |
package com.lieve.online.shiro.service;
import com.lieve.online.shiro.entity.Role;
public interface RoleService {
public Role createRole(Role role);
public void deleteRole(Long roleId);
public void <API key>(Long roleId, Long... permissionIds);
public void <API key>(Long roleId, Long... permissionIds);
... |
# <API key>
A javascript solver for [regexcrossword.com](regexcrossword.com)
Latest release only works via completely dumb brute-force until I have more time to experiment. This means that it is *hilariously slow!*
It also doesn't work with hexagonal puzzles yet.
# Quickstart
On any puzzle page, type this into your co... |
/* eslint-disable no-console */
const { <API key> } = require('@cardstack/test-support/env');
const JSONAPIFactory = require('@cardstack/test-support/jsonapi-factory');
const openAPIPatch = [
{
op: "add",
path: "/definitions/node:recipe/properties/attributes/properties/difficulty/enum",
value: ["easy", "m... |
var options = require('config');
var carMileageResolver = require('../../../lib/resolver/vehicle/carMileageResolver');
var chai = require('chai');
var should = chai.should();
var expect = chai.expect;
describe('car mileage resolver test', function () {
it('should return valid mileage value and mileage type', function... |
//Write a method that returns the last digit of given integer as an English word.
using System;
class EnglishDigit
{
static string DigitAsWord(int number)
{
int lastDigit = number % 10;
string digit = null;
switch (lastDigit)
{
case 1: digit = "one"; break;
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mutual-exclusion: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.... |
<?php
namespace goodizer\helpers;
use Yii;
use yii\db\ActiveRecord;
use yii\db\Connection;
/**
* Class DbSyncHelper
* @package goodizer\helpers
*/
class DbSyncHelper
{
const <API key> = 1;
/**
* @var Connection
*/
private $_db;
/**
* @var bool
*/
private $_isConsole;
/**
... |
var vows = require('vows'),
assert = require('assert'),
helper = require("../../data/manyToMany/hashKey"),
patio = require("index"),
comb = require("comb"),
hitch = comb.hitch;
var ret = module.exports = exports = new comb.Promise();
var gender = ["M", "F"];
helper.loadModels().then(function () {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.