text stringlengths 2 1.04M | meta dict |
|---|---|
'use strict'
var bnneg = require('big-rat/neg')
module.exports = neg
function neg(v) {
return v.map(bnneg)
}
| {
"content_hash": "535ac1c60c5eb7252506f4b70987d25a",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 34,
"avg_line_length": 12.666666666666666,
"alnum_prop": 0.6666666666666666,
"repo_name": "oudalab/fajita",
"id": "fa8e6e274681c7b14909ccfe1fb8641f868b5b97",
"size": "114",
... |
package com.navercorp.pinpoint.profiler.instrument.interceptor;
import java.lang.reflect.Modifier;
import com.navercorp.pinpoint.bootstrap.instrument.InstrumentMethod;
import com.navercorp.pinpoint.bootstrap.interceptor.InterceptorInvokerHelper;
import com.navercorp.pinpoint.bootstrap.interceptor.SimpleAroundInterce... | {
"content_hash": "bbf91d37f87c47d838ca2989d5f67f5d",
"timestamp": "",
"source": "github",
"line_count": 86,
"max_line_length": 109,
"avg_line_length": 31.441860465116278,
"alnum_prop": 0.6941568047337278,
"repo_name": "coupang/pinpoint",
"id": "9774e0b5dd0870c3cf8781b1b7a2192b17f2a85a",
"size": "32... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "a7850ba62422e5ed31d6bb028c049760",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "ecb71081f9165890810fefe7d5c302a1aadfaff1",
"size": "176... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "58c72f2454cf6b6f65fb878f7ffd91e0",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "de0a9a2f6d45693521b2b43ccfd9b4c88cdf5faf",
"size": "21... |
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) N... | {
"content_hash": "aeba53d7a335977ea56f293e8c9add9c",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 97,
"avg_line_length": 32.07142857142857,
"alnum_prop": 0.8195991091314031,
"repo_name": "shengpanpan/baisibudejie",
"id": "99926ee891674781276b2a4f333b217f142bca52",
"size... |
html,
body,
.framework7-root {
position: relative;
height: 100%;
width: 100%;
overflow-x: hidden;
}
body {
margin: 0;
padding: 0;
font-size: 14px;
width: 100%;
background: #fff;
overflow: hidden;
-webkit-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
}
.framework7-root {
overflo... | {
"content_hash": "90f7f4c8f2f6bced4ecdb9d56ad4420c",
"timestamp": "",
"source": "github",
"line_count": 18879,
"max_line_length": 604,
"avg_line_length": 32.925790560940726,
"alnum_prop": 0.6941165304067206,
"repo_name": "cdnjs/cdnjs",
"id": "59344ce18938c1e49e04e3f63de21a3f02da9321",
"size": "6218... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http';
// Imports for loading & configuring the in-memory web api
import { InMemoryWebApiModule } from 'angular-in-memory-web-api';
import { ProductData } from './produ... | {
"content_hash": "68973f86ec416fac60ea2257d929b0bd",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 67,
"avg_line_length": 30.676470588235293,
"alnum_prop": 0.7190795781399808,
"repo_name": "DeborahK/Angular-Routing",
"id": "9021e45623742f182348fd937c0752995a2a3fd2",
"siz... |
package armsubscriptions_test
import (
"context"
"testing"
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions... | {
"content_hash": "a9158630a0c85cc6e762cb8e0cc615ba",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 150,
"avg_line_length": 37.15384615384615,
"alnum_prop": 0.7779503105590062,
"repo_name": "Azure/azure-sdk-for-go",
"id": "11eace79347784362814617dceecdff0f7d3a7d1",
"size"... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgaModule } from '../../theme/nga.module';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { DataTableModule, SharedModule, DialogModule, PanelModule, CalendarModule, AutoCompleteModule, InputTe... | {
"content_hash": "d94278442f925a02193ba970c5e29947",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 163,
"avg_line_length": 36.455882352941174,
"alnum_prop": 0.7503025413473174,
"repo_name": "thilina01/kpi-client",
"id": "216aa23fda55a52705193a060e8d7c93a5c56d9c",
"size":... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-character: 13 m 19 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... | {
"content_hash": "8e0e75a65bdf8cd80618816e0bd5dd40",
"timestamp": "",
"source": "github",
"line_count": 183,
"max_line_length": 554,
"avg_line_length": 57.278688524590166,
"alnum_prop": 0.5845258538446861,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "9e7e8e35e67ea2d05a15791aaf62ec64b742f50c",... |
#ifndef EVMS_OPTIONS_H_INCLUDED
#define EVMS_OPTIONS_H_INCLUDED 1
#include <common.h>
/*
* Dear Reader,
*
* Yes, some of the structures look a lot like the ones the SANE
* (Scanner Access Now Easy) folks use for negotiating options
* between a frontend and backend. In fact, some of the structures
* here were ... | {
"content_hash": "d4bae123cb9d099d48104e3ed9be2fd3",
"timestamp": "",
"source": "github",
"line_count": 301,
"max_line_length": 111,
"avg_line_length": 44.119601328903656,
"alnum_prop": 0.516039156626506,
"repo_name": "georghe-crihan/ext2fsx",
"id": "45826a0f0362618470e9ceebb4a65948329d2a8a",
"size... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="60dp"
android:layout_height="60dp"
android:orientation="vertical" >
<ImageView
android:id="@+id/shareImageItem"
android:layout_width="60dp"
androi... | {
"content_hash": "70c47d6d0c5e75f28fe6d2a6bb572f12",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 72,
"avg_line_length": 33.54545454545455,
"alnum_prop": 0.6612466124661247,
"repo_name": "YiNPNG/test",
"id": "67e1e3939bd47e23c4e3d9d0ed63f04812c00086",
"size": "369",
"... |
.nutritionLabel {
border-bottom: 2px solid #333 !important;
margin-bottom: 0;
font-size: 13px;
background: #fff;
line-height: normal;
}
.nutritionLabel .title {
padding-top: 0;
}
.nutritionLabel .name.inline {
padding-top: .4em;
}
.truncate {
text-overflow: ellipsis;
overflow: hidden;
}
.ser... | {
"content_hash": "79d854b730c76291450c861ba7a07de7",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 73,
"avg_line_length": 20.75,
"alnum_prop": 0.6674698795180722,
"repo_name": "nutritionix/nutrition-label",
"id": "0fd5322c34c12ba553078e6c7188b1b1263639b6",
"size": "830",... |
title: Hosted Engine add hosts with Web UI
category: feature
authors: sandrobonazzola
wiki_category: Feature|Hosted Engine add hosts with Web UI
wiki_title: Features/Hosted Engine add hosts with Web UI
wiki_revision_count: 3
wiki_last_updated: 2015-10-06
feature_name: 'Hosted Engine: add hosts with Web UI'
feature_modu... | {
"content_hash": "0f3906b205967faf5e3d1575c95dc225",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 203,
"avg_line_length": 40.15555555555556,
"alnum_prop": 0.7573325954620919,
"repo_name": "jtokar/ovirt-site",
"id": "ea8f5c0a9771b6d0cdd563608b57306098f2d542",
"size": "36... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use App\Logic\User\UserRepository;
use App\Models... | {
"content_hash": "546d021c135005d49c47c2590ad549bb",
"timestamp": "",
"source": "github",
"line_count": 221,
"max_line_length": 123,
"avg_line_length": 28.1131221719457,
"alnum_prop": 0.4703042008691453,
"repo_name": "loveisbluenova/airtable_mysql",
"id": "fe4be5fd6ce44148bdfba9d50f76356926d4464b",
... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txdb.h"
#include "walletdb.h"
#include "bitcoinrpc.h"
#include "net.h"
#... | {
"content_hash": "a42e467c09af633840e51359699a24e1",
"timestamp": "",
"source": "github",
"line_count": 1103,
"max_line_length": 163,
"avg_line_length": 38.97461468721668,
"alnum_prop": 0.5734024983135221,
"repo_name": "DOGEBC/PeercoinDark_PPCD",
"id": "1f55b17404238c6ca47cfdd06881d6404057df87",
"s... |
IonicModule
.controller('$ionicNavView', [
'$scope',
'$element',
'$attrs',
'$compile',
'$controller',
'$ionicNavBarDelegate',
'$ionicNavViewDelegate',
'$ionicHistory',
'$ionicViewSwitcher',
'$ionicConfig',
'$ionicScrollDelegate',
function($scope, $element, $attrs, $compile, $controller, $ionicNavB... | {
"content_hash": "d45063d8ec0faa9466d6305a447570e2",
"timestamp": "",
"source": "github",
"line_count": 431,
"max_line_length": 175,
"avg_line_length": 31.96751740139211,
"alnum_prop": 0.662940920307737,
"repo_name": "eric-stanley/ionic",
"id": "a16386e862a6873806ebb9c51bc44f95cd2d00aa",
"size": "1... |
package promql
import (
"fmt"
"math"
"reflect"
"strings"
"testing"
"time"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/storage/metric"
)
var testExpr = []struct {
input string // The input to be parsed.
expected Expr // The expected expression AST.
fail bool // Whethe... | {
"content_hash": "9361de55bd33935bc879a4ff9ba7dc68",
"timestamp": "",
"source": "github",
"line_count": 1591,
"max_line_length": 322,
"avg_line_length": 25.92583280955374,
"alnum_prop": 0.6046596198603569,
"repo_name": "eliothedeman/prometheus",
"id": "b438d2ec87825a2d31befaed19a76a63a1d9eeb4",
"si... |
/*******************************************************************************
*
* Filename:
* ---------
* mt6583.c
*
* Project:
* --------
* MT6583 Audio Driver Kernel Function
*
* Description:
* ------------
* Audio register
*
* Author:
* -------
* Chipeng Chang
*
*------------------------... | {
"content_hash": "934421de3924473cd7f91a0e550b66a8",
"timestamp": "",
"source": "github",
"line_count": 1092,
"max_line_length": 100,
"avg_line_length": 28.97893772893773,
"alnum_prop": 0.6867435613841049,
"repo_name": "zhengdejin/X1_Code",
"id": "f3e152da4ed57c57c1e5a15ea0d6dcd8899c067b",
"size": ... |
from __future__ import print_function
import os
try:
import requests
except ImportError:
requests = None # NOQA
from nikola.plugin_categories import Command
class CommandBootswatchTheme(Command):
"""Given a swatch name from bootswatch.com and a parent theme, creates a custom theme."""
name = "boot... | {
"content_hash": "e570b6af9313ecce0d6c0645468fc39c",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 97,
"avg_line_length": 32.638888888888886,
"alnum_prop": 0.49957446808510636,
"repo_name": "kotnik/nikola",
"id": "dda6b2836ff6f33ea313c08b66c43eaef787e218",
"size": "3492"... |
import $ from "jquery";
import _ from "underscore";
import BaseView from "./base";
export default BaseView.extend({
id: "",
items: [],
itemContainer: null,
isOffsetParent: true,
idPrefix: "container-",
render: function () {
if (this.options.id) {
this.$el.attr("id", this.idP... | {
"content_hash": "a70180def9a5ff3990cb9ed97782ef87",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 85,
"avg_line_length": 29.844444444444445,
"alnum_prop": 0.4620253164556962,
"repo_name": "plone/mockup",
"id": "90dbc9c5914eb28afa6c2e4b1cc1df5b610f93bf",
"size": "2686",
... |
import HeroCard from "../../../src/artifact/js/HeroCard.js";
QUnit.module("HeroCard");
QUnit.test("HeroCard properties Aragorn (Core)", function(assert)
{
var cardKey = HeroCard.ARAGORN_CORE;
var properties = HeroCard.properties[cardKey];
assert.equal(properties.name, "Aragorn");
assert.equal(properties.k... | {
"content_hash": "1cae825af91a377794b9da0baf242787",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 80,
"avg_line_length": 23.571428571428573,
"alnum_prop": 0.6327272727272727,
"repo_name": "jmthompson2015/lotr-card-game",
"id": "eb8dc59cbf114861a328368e617091e164bdf9f5",
... |
(function() {
require('util').print('Loaded successfully!');
})(); | {
"content_hash": "a5504c1898886090f596725ee00c192b",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 48,
"avg_line_length": 22.666666666666668,
"alnum_prop": 0.6176470588235294,
"repo_name": "csr1010/xmmagik",
"id": "702035d81f4e4dfcc926f8e76278a7766a33b314",
"size": "1202"... |
// 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.
#nullable disable
using System;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeGeneration;
using M... | {
"content_hash": "87e696c1d8728a55b7795c88c1642e45",
"timestamp": "",
"source": "github",
"line_count": 5654,
"max_line_length": 193,
"avg_line_length": 37.47382384152812,
"alnum_prop": 0.694737984774185,
"repo_name": "weltkante/roslyn",
"id": "a90d5d81749468af31b40a879a2be4b29566b398",
"size": "21... |
package org.telegram.api.page.block;
import org.telegram.tl.TLObject;
/**
* @author Ruben Bermudez
* @version 1.0
*/
public abstract class TLAbsPageBlock extends TLObject {
public TLAbsPageBlock() {
super();
}
}
| {
"content_hash": "d9d5d6c813b99a798a871985a7f1921e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 55,
"avg_line_length": 17.923076923076923,
"alnum_prop": 0.6781115879828327,
"repo_name": "rubenlagus/TelegramApi",
"id": "ccaa0a32d214b795dbaff997a399e02e4a995bef",
"size"... |
import {Exception} from "ts-essentials/target/build/main/lib/Exception";
export class ConcurrencyException extends Exception {
constructor(expectedPlayhead: number, actualPlayhead: number) {
super(`Playhead was expected to be '${expectedPlayhead}' but was '${actualPlayhead}'.`);
}
}
| {
"content_hash": "6c1b7c77fafe6dd6f6ab9c4c278c9f92",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 96,
"avg_line_length": 43,
"alnum_prop": 0.7375415282392026,
"repo_name": "martyn82/aphajs",
"id": "2e00ec64264cf1c49106af65cebe6890d07543d5",
"size": "302",
"binary": fal... |
/*global MM, $, _, escape*/
MM.freemindImport = function (xml, start, progress) {
'use strict';
var nodeStyle = function (node, parentStyle) {
var style = {}, attachment, toStr = function (xmlObj) {
return $('<div>').append(xmlObj).html();
};
if (node.attr('BACKGROUND_COLOR')) {
style.style = {backgr... | {
"content_hash": "1b594d4cabcd6654c8f88e0e77977141",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 142,
"avg_line_length": 32.911764705882355,
"alnum_prop": 0.5907059874888293,
"repo_name": "troven/meta4nms",
"id": "94e096cf57b3ac6c238c9e45466ecdefb973fa7b",
"size": "223... |
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QWidget *parent) :
... | {
"content_hash": "3cf6acd14fc6297da8e65856089f84bc",
"timestamp": "",
"source": "github",
"line_count": 179,
"max_line_length": 108,
"avg_line_length": 24.223463687150836,
"alnum_prop": 0.6695110701107011,
"repo_name": "scotcoin/scotcoin",
"id": "8bf10e09f1498066571bb9ef626f276c737a6acf",
"size": "... |
package main
import (
goflag "flag"
"fmt"
"math/rand"
"os"
"runtime"
"time"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
genericapiserver "k8s.io/apiserver/pkg/server"
utilflag "k8s.io/component-base/cli/flag"
"k8s.io/component-base/logs"
"github.com/openshift/library-go/pkg/serviceability"
opensh... | {
"content_hash": "f351830c5ff22a7e820e1fddac74cb35",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 205,
"avg_line_length": 33.81481481481482,
"alnum_prop": 0.7845929171230376,
"repo_name": "anpingli/origin",
"id": "e72a485d1e15fa7b69381787cc8c409e77a103c1",
"size": "2739... |
.ImgGrouponIcon {
background: url("img/grouponIcon.png") no-repeat 0 0;
width: 16px;
height: 16px;
overflow: hidden;
}
.ImgGrouponFeaturedIcon {
background: url("img/groupon_starBg.gif") no-repeat 0 0;
width: 16px;
height: 16px;
overflow: hidden;
}
.groupon_individualCardClass {
font-size: 16px;
font-... | {
"content_hash": "02cb0e11eb7ef8e76bd1720050fc5740",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 57,
"avg_line_length": 22.30188679245283,
"alnum_prop": 0.6802030456852792,
"repo_name": "nico01f/z-pec",
"id": "e053706d9fc7abe83e502e6d45097d16b9fccd33",
"size": "1182",
... |
using System;
using Umbraco.Core.Cache;
using Umbraco.Core.Models.Membership;
using Umbraco.Core.Persistence.Repositories;
using Umbraco.Core.Persistence.Repositories.Implement;
namespace Umbraco.Web.Cache
{
/// <summary>
/// Handles User group cache invalidation/refreshing
/// </summary>
/// <remarks... | {
"content_hash": "0a1622ffaba379fa9c6c70f0ac031b65",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 121,
"avg_line_length": 31.80821917808219,
"alnum_prop": 0.6455641688199828,
"repo_name": "lars-erik/Umbraco-CMS",
"id": "deb49ad624ce9419cb62d451af3e88e5fe5f6b8b",
"size":... |
require 'rails_helper'
describe FormSubmissionData do
let(:klass) { described_class.to_s.underscore.to_sym }
describe 'validations' do
describe 'presence' do
it(:form_submission) { expect(build(klass, form_submission: nil)).not_to be_valid }
end
end
it '#respond_to?' do
expect(build(klass))... | {
"content_hash": "19bd0a74ca4f21bbabfe6abd62f6f113",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 89,
"avg_line_length": 24.2,
"alnum_prop": 0.6942148760330579,
"repo_name": "udongo/udongo",
"id": "b5b6646686439c020a774a49b15ad4db8596a1ca",
"size": "363",
"binary": fa... |
package com.uwetrottmann.tmdb.entities;
import com.uwetrottmann.tmdb.TmdbEntity;
public class Trailer implements TmdbEntity {
private static final long serialVersionUID = -4420680473038571645L;
public String name;
public String size;
public String source;
}
| {
"content_hash": "c11046b84e901adab186c86be58fe1a6",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 71,
"avg_line_length": 20,
"alnum_prop": 0.7678571428571429,
"repo_name": "UweTrottmann/MovieTracker",
"id": "55258e622b440819fd368cca7db3b59a82c21d5c",
"size": "881",
"b... |
package com.example.retrofit.entity.resulte;
/**
* 上传回调结果
* Created by WZG on 2016/10/20.
*/
public class UploadResulte {
/**
* headImgUrl : http://www.izaodao.com/uc/data/avatar/004/81/14/20_avatar_middle.jpg?timestamp=1476943817
*/
private String headImgUrl;
public String getHeadImgUrl()... | {
"content_hash": "4b71b09b0eb2e133c8794930490f86e8",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 109,
"avg_line_length": 19.73913043478261,
"alnum_prop": 0.6585903083700441,
"repo_name": "wzgiceman/RxjavaRetrofitDemo-string-master",
"id": "ed7a80122cdcf203bfb9548f57d3d8d... |
from amino.test.sure_ext import install_assertion_builder, AssBuilder
class SureSpec:
def setup(self) -> None:
install_assertion_builder(AssBuilder) # type: ignore
__all__ = ('SureSpec',)
| {
"content_hash": "d4ea8db761dcfc5e9d09d1c37ae1bacd",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 69,
"avg_line_length": 22.77777777777778,
"alnum_prop": 0.6926829268292682,
"repo_name": "tek/amino",
"id": "9c9eb6b07922a319a1a540fc62ecd16896d3a0f5",
"size": "205",
"bin... |
import httplib as http
import time
from flask import request
from modularodm.exceptions import ValidationError, ValidationValueError
from framework import forms
from framework import status
from framework.auth import cas
from framework.auth import User, get_user
from framework.auth.core import generate_confirm_token
... | {
"content_hash": "b151efa299d3531fe405f3e647bc652f",
"timestamp": "",
"source": "github",
"line_count": 725,
"max_line_length": 120,
"avg_line_length": 37.87172413793103,
"alnum_prop": 0.642313435553775,
"repo_name": "billyhunt/osf.io",
"id": "1dfd1849805aa395581ed0a84652ed65380e37b9",
"size": "274... |
class UploadController < ApplicationController
def new
if current_user
@upload = Upload.new
else
flash[:alert] = "You must be logged in to upload your bookmarks!"
redirect_to :root
end
end
def create
if params[:upload]
@bookmark_html = params[:upload][:upload_file_name].r... | {
"content_hash": "67fe367af81acfddb96e3dca7ba6dfc6",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 94,
"avg_line_length": 22.5,
"alnum_prop": 0.645679012345679,
"repo_name": "larsjx/BookmarkIt-fork",
"id": "e371cee2b04c292097bb033608431725156aefb4",
"size": "810",
"bin... |
namespace content {
// Tracks a single "bucket" of pending handshakes. For frames and dedicated
// workers there is one object per Page. For shared and service workers there is
// one per profile.
class CONTENT_EXPORT WebTransportThrottleContext final
: public base::SupportsUserData::Data {
public:
// Tracks an... | {
"content_hash": "b48f57c1120eb4e9b479bfe3c19ed7f3",
"timestamp": "",
"source": "github",
"line_count": 117,
"max_line_length": 80,
"avg_line_length": 37.162393162393165,
"alnum_prop": 0.735510579576817,
"repo_name": "nwjs/chromium.src",
"id": "6c4e234443f42873d6617ae146cba806fb113e0c",
"size": "49... |
using System.Collections.Generic;
namespace Telligent.Evolution.Extensions.OpenSearch.Model.Specification
{
public class OpenSearchV1_1 : IOpenSearchSpecification
{
public Dictionary<string, string> Get()
{
return new Dictionary<string, string>
{
{"searc... | {
"content_hash": "222cf6d11b54a15687fb5773efc82c94",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 71,
"avg_line_length": 28.523809523809526,
"alnum_prop": 0.48247078464106846,
"repo_name": "Telligent/Microsoft-SharePoint-Connector",
"id": "ad3b8f7f508aec3897a27934f10d6e75... |
/** This is a testfile to be run wit mocha.
* Remember to start your node server before and edit config_for_tests for a proper baseURL.
*
* @author Johannes Konert
* @licence CC BY-SA 4.0
*
*/
"use strict";
var should = require('should');
require('should-http');
var request = require('supertest');
var cfg =... | {
"content_hash": "7c83b7194ce0029369d911687b779a7d",
"timestamp": "",
"source": "github",
"line_count": 267,
"max_line_length": 147,
"avg_line_length": 44.756554307116104,
"alnum_prop": 0.49397489539748957,
"repo_name": "lPhenax/MME2",
"id": "93f8a0f4cee2d21d37bf668be3889ba786737183",
"size": "1195... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "96000e4095687548218b6503823ee1cb",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "7d9706ad856e6f1312c0d065f3e5620b471414a8",
"size": "19... |
class PhotoKeyword < ApplicationRecord
end
| {
"content_hash": "f4a43170418969bb304bd492f4e14b3d",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 38,
"avg_line_length": 21.5,
"alnum_prop": 0.8604651162790697,
"repo_name": "minhquan4080/slack-bot",
"id": "41af7bc36ca11f213d93ae990d4bf02c61d36821",
"size": "280",
"bin... |
class Nginx < Formula
desc "HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server"
homepage "https://nginx.org/"
# Use "mainline" releases only (odd minor version number), not "stable"
# See https://www.nginx.com/blog/nginx-1-12-1-13-released/ for why
url "https://nginx.org/download/nginx-1.15.4.tar.gz... | {
"content_hash": "7b71acb20f78ec1a9f7fffc8b43e1c5a",
"timestamp": "",
"source": "github",
"line_count": 199,
"max_line_length": 109,
"avg_line_length": 30.819095477386934,
"alnum_prop": 0.6187836295450839,
"repo_name": "smessmer/homebrew-core",
"id": "f26ae0d5679d6970a33fb4b558836da0d9d332c8",
"siz... |
#region Copyright
/// <copyright>
/// Copyright (c) 2011 Ramunas Geciauskas, http://geciauskas.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 wi... | {
"content_hash": "cbd323c2fe416fc9ec7dab66a30a06e2",
"timestamp": "",
"source": "github",
"line_count": 195,
"max_line_length": 113,
"avg_line_length": 40.92820512820513,
"alnum_prop": 0.61633880466107,
"repo_name": "JimmySticks2001/autoDig",
"id": "18354c1f5d2d102be34effd887badbd11d6b608c",
"size"... |
body {background-color: #eaeaea;}
.container {
margin: 2pc auto;
width: 550px;
outline: 3px solid brown;
padding: 1pc;
}
.name {
font-weight: bolder;
}
.frames{
clear: both;
margin-top: 5px;
margin-bottom: 5px;
}
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: ... | {
"content_hash": "b2a2abd4f401af103772df632122f34b",
"timestamp": "",
"source": "github",
"line_count": 172,
"max_line_length": 53,
"avg_line_length": 13.13953488372093,
"alnum_prop": 0.6570796460176991,
"repo_name": "wizardwerdna/wizardwerdna.github.io",
"id": "5bf2090ae0916ddf646dad872e695b7cad6ef5... |
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:layout_width="match_parent"
tools:layout_height="wrap_content">
<LinearLayout
and... | {
"content_hash": "cb898fa2755d77761f9261dd69b5ccb4",
"timestamp": "",
"source": "github",
"line_count": 103,
"max_line_length": 77,
"avg_line_length": 43.12621359223301,
"alnum_prop": 0.640252138676272,
"repo_name": "wikimedia/apps-android-wikipedia",
"id": "d481f0a60e6206b5d7fd81fe0a76926ea09a9c43",... |
import time
from openerp.osv import fields, osv
from openerp.tools.translate import _
class hr_timesheet_invoice_factor(osv.osv):
_name = "hr_timesheet_invoice.factor"
_description = "Invoice Rate"
_order = 'factor'
_columns = {
'name': fields.char('Internal Name', required=True, translate=Tru... | {
"content_hash": "e2e869a69b9dce6edea8807eda1042a0",
"timestamp": "",
"source": "github",
"line_count": 353,
"max_line_length": 287,
"avg_line_length": 48.685552407932015,
"alnum_prop": 0.5882695217037123,
"repo_name": "cristianquaglio/odoo",
"id": "cc68c73ff7ebc99b6a2b73eb11d6ba376c7f3e6a",
"size"... |
package com.qtt.app.stock.simulator;
import java.util.Map;
public class ExpressionVariableLookback extends ExpressionBase
{
String mVariableName;
int mIndex;
public ExpressionVariableLookback(String variableName, String indexStr)
{
mVariableName = variableName;
mIndex = Integer.parseInt(indexStr);
... | {
"content_hash": "f49d7d8b4bd0c594a5cfc1c023ed3120",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 73,
"avg_line_length": 22.30188679245283,
"alnum_prop": 0.6353637901861252,
"repo_name": "qtruong/profit",
"id": "deeada3fa1bf12314134103c30c46dd9089bad8a",
"size": "1182",... |
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2015 IRCCloud, Ltd.
~
~ 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
... | {
"content_hash": "a46d890bfe2ce25f8d2761c37cdb9805",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 76,
"avg_line_length": 38.642105263157895,
"alnum_prop": 0.6515935712339962,
"repo_name": "irccloud/android",
"id": "e96bd295c3a410e6e6ff5a6968aaac27a5a7b250",
"size": "367... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_20) on Mon May 02 10:23:15 CEST 2011 -->
<TITLE>
Uses of Class play.vfs.VirtualFile (Play! API)
</TITLE>
<META NAME="date" CONTENT="2011-05-02">
<L... | {
"content_hash": "2d86bcaef562212dd00152159dccb453",
"timestamp": "",
"source": "github",
"line_count": 638,
"max_line_length": 294,
"avg_line_length": 50.58620689655172,
"alnum_prop": 0.6493772076594162,
"repo_name": "lafayette/JBTT",
"id": "478eb2c649f282762464e9862f776f846e2b82f9",
"size": "3227... |
// [WriteFile Name=GODictionaryRenderer_3D, Category=DisplayInformation]
// [Legal]
// Copyright 2016 Esri.
// 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... | {
"content_hash": "3d82fd3186ff294e09fbf918cc33e5ce",
"timestamp": "",
"source": "github",
"line_count": 249,
"max_line_length": 145,
"avg_line_length": 31.180722891566266,
"alnum_prop": 0.7031169500257599,
"repo_name": "Esri/arcgis-runtime-samples-qt",
"id": "7a94ed541995a43dc54b8843a4ca064f1c230c5f"... |
using System.Collections.Generic;
using System.Threading.Tasks;
using YUTPLAT.ViewModel;
namespace YUTPLAT.Services.Interface
{
public interface IPersonaService
{
Task<PersonaViewModel> GetById(string id);
Task<PersonaViewModel> GetByUserName(string userName);
Task<IList<... | {
"content_hash": "f485da372cd1ef7c23e0f2b3c976f881",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 70,
"avg_line_length": 26.391304347826086,
"alnum_prop": 0.6968698517298187,
"repo_name": "ballesta1234/Y-U-T-P-L-A-T",
"id": "85b937217ecf0988ea336b53f7fe83ef6fd5abe9",
"s... |
// -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2012 Massachusetts Institute of Technology. All rights reserved.
/**
* @license
* @fileoverview Procedure yail generators for Blockly, modified for MIT App Inventor.
* @author mckinney@mit.edu (Andrew F. McKinney)
*/
'use strict';
goog.provide('Blockly.Yail.... | {
"content_hash": "04a0b46e9673fb25f8e209a442991db0",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 111,
"avg_line_length": 47.97701149425287,
"alnum_prop": 0.701245807379013,
"repo_name": "cs6510/CS6510-Compiler-John",
"id": "078329b444110a8870a6581e2c0c2d8d0b13dc60",
"s... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dataproc/v1beta2/workflow_templates.proto
package com.google.cloud.dataproc.v1beta2;
/**
*
*
* <pre>
* Specifies workflow execution target.
* Either `managed_cluster` or `cluster_selector` is required.
* </pre>
*
* Protobuf ty... | {
"content_hash": "de58ad1e2bbb451d500f223aa563062a",
"timestamp": "",
"source": "github",
"line_count": 1122,
"max_line_length": 109,
"avg_line_length": 34.09090909090909,
"alnum_prop": 0.6570457516339869,
"repo_name": "vam-google/google-cloud-java",
"id": "926f9f2b63ad728c861a0b54a7b2988a281ae4b1",
... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "21df96d549b71b8a0873707b07d9de4e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "723e03d5efc2a95df087b1eb329b340d877ff896",
"size": "215... |
package stallone.api.discretization;
import stallone.api.doubles.IDoubleArray;
/**
* @author Frank Noe
*/
public interface IDiscretization
{
/**
* Get the cluster index, the datapoint p belongs to.
*
* @param p is the object to assign to a cluster
*
* @return the cluster index.
... | {
"content_hash": "a41516e1dc6c6528a77b0d9aabee8a82",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 80,
"avg_line_length": 20.55263157894737,
"alnum_prop": 0.6312419974391805,
"repo_name": "markovmodel/stallone",
"id": "f0da3382c536c9c2d477a126d4ba1370d7e639ba",
"size": "... |
package com.codepath.apps.simpletweets.models;
import android.text.format.DateUtils;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Locale;
/**
* Created by Dara on 8/6/16.
*/
// Parse the JSON... | {
"content_hash": "aa6f08c01d4dc4745e3c065edcea87d1",
"timestamp": "",
"source": "github",
"line_count": 102,
"max_line_length": 87,
"avg_line_length": 27.107843137254903,
"alnum_prop": 0.5934900542495479,
"repo_name": "daraoke/Simple-Tweets",
"id": "39a50825f0da24b757153c9cd945b80812f6b3e6",
"size"... |
import taktil from 'taktil';
export const daw = {};
taktil.on('init', () => {
daw.transport = host.createTransport();
// ...setup all of your "init time only" bitwig api stuff here
});
| {
"content_hash": "28f26a7d6027cddbf3cacfd8f97573d4",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 66,
"avg_line_length": 24.375,
"alnum_prop": 0.6307692307692307,
"repo_name": "taktiljs/taktil",
"id": "4f794908334f9f70679d2cade7be0623ae085a07",
"size": "195",
"binary":... |
package com.github.jsonj;
import static com.github.jsonj.tools.JsonBuilder.array;
import static com.github.jsonj.tools.JsonBuilder.field;
import static com.github.jsonj.tools.JsonBuilder.fromObject;
import static com.github.jsonj.tools.JsonBuilder.nullValue;
import static com.github.jsonj.tools.JsonBuilder.object;
im... | {
"content_hash": "81c145bf1da315f0554d4fadd5a5eaf9",
"timestamp": "",
"source": "github",
"line_count": 363,
"max_line_length": 142,
"avg_line_length": 43.05234159779614,
"alnum_prop": 0.631750703864858,
"repo_name": "jillesvangurp/jsonj",
"id": "33b691a6e31d7ff9956d1f7f83e02e99b5c5d6ae",
"size": "... |
layout: post
title: Some project notes(3)
category: [tech]
tags: [Django]
---
## Transaction in Django
### atomic
{% highlight python %}
@atomic
def transaction_func():
pass
{% endhighlight %}
We know that a decorator will return a wrapper function/class of the decorated function. In Django, the an instance of At... | {
"content_hash": "cde629140bf311e62fcf9a3720dc2761",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 502,
"avg_line_length": 64.95604395604396,
"alnum_prop": 0.7267805785823042,
"repo_name": "wgundamj44/wgundamj44.github.io__bk",
"id": "fd631435c3c785e26daad99b4d9e92ccbc3764... |
"""Create a snapshot of an iSCSI volume."""
# :license: MIT, see LICENSE for more details.
import SoftLayer
from SoftLayer.CLI import environment
from SoftLayer.CLI import helpers
import click
@click.command()
@click.argument('identifier')
@click.option('--notes', help="An optional note for the snapshot")
@environ... | {
"content_hash": "77815e54df4e4029b4439e5afb3932b2",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 77,
"avg_line_length": 28.19047619047619,
"alnum_prop": 0.7347972972972973,
"repo_name": "briancline/softlayer-python",
"id": "dd23d304c5d3aaff6babfe1c5bffb544445c7f27",
"s... |
/*
* Author: doe300
*
* See the file "LICENSE" for the full license governing this code.
*/
#ifndef VC4C_REGISTER_FIXES_H
#define VC4C_REGISTER_FIXES_H
#include "../helper.h"
#include <functional>
#include <string>
#include <vector>
namespace vc4c
{
struct Configuration;
class Method;
namespace qpu_... | {
"content_hash": "0202f50bfb895eba257e5c8c7b9603ba",
"timestamp": "",
"source": "github",
"line_count": 151,
"max_line_length": 120,
"avg_line_length": 35.152317880794705,
"alnum_prop": 0.5666917859834213,
"repo_name": "doe300/VC4C",
"id": "4949191321989b9bcb7b44897d2f2ace7b6b6ebd",
"size": "5308",... |
/*************************************************************************/
/* menu_button.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | {
"content_hash": "09e158e5be5c42cf03241d8b29d36d6f",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 166,
"avg_line_length": 36.8,
"alnum_prop": 0.5698160535117057,
"repo_name": "rollenrolm/godot",
"id": "725f1ddf1761599f4f2a202c6026f5ade076defd",
"size": "4784",
"binar... |
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
#ifndef QXMLSCHEMA_P_H
#define QXMLSCHEMA_P_H
#include "qabstractmessageha... | {
"content_hash": "4db72260c759369f2ced54f082472492",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 100,
"avg_line_length": 38.02857142857143,
"alnum_prop": 0.6397445529676935,
"repo_name": "stephaneAG/PengPod700",
"id": "8bce046a036084a69c2b05a37f6947312e7a078c",
"size":... |
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("T1... | {
"content_hash": "158492881615440c7626140aa2a3f425",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 39.361111111111114,
"alnum_prop": 0.7459421312632322,
"repo_name": "studware/Ange-Git",
"id": "711e8bad6f96415c90210b74554f6ca0b096526e",
"size": "14... |
package net.sanukin.unilocalnotification;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Inten... | {
"content_hash": "2e3f03505b380943b9cb24a6feb60ea6",
"timestamp": "",
"source": "github",
"line_count": 111,
"max_line_length": 130,
"avg_line_length": 38.351351351351354,
"alnum_prop": 0.6659619450317125,
"repo_name": "sanukin39/UniLocalNotification",
"id": "be41b11f052fa7fa1204428a556299fc131355b4"... |
require 'json'
output = JSON.parse(`terraform output -json`)
bastion_public_name = output["bastion_public_name"]["value"]
single_instances = output
.map do |name, value|
if name =~ /aws_(.*)_private_name$/
{ symbolic_name: $1, private_name: value["value"] }
end
end
.compact
multiple_instances = ... | {
"content_hash": "6e480462d70e2b7e86bf78aa81e981f5",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 97,
"avg_line_length": 26.029411764705884,
"alnum_prop": 0.6694915254237288,
"repo_name": "moio/sumaform",
"id": "c0215be0a37af4278c44e8933e6d78a1d2ccf555",
"size": "1809",... |
import { Colors } from "../resources/colors";
export class ButtonPage {
protected colors = ["default", ...Colors.base];
protected crumbs = [
{ href: "/docs", icon: "mdi mdi-home", label: "Home" },
{ href: "/docs/form", label: "Forms" },
{ href: "/docs/inputs", label: "Inputs" },
{ href: "/docs/li... | {
"content_hash": "60452a3befab2de2e61bfeb5ce654a9e",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 59,
"avg_line_length": 24.741935483870968,
"alnum_prop": 0.5488917861799217,
"repo_name": "adarshpastakia/aurelia-ui-framework",
"id": "34f20df8fbef74b0f4e49eca4f072dc174b039... |
Component to render a small pop-up "tip" once a trigger element is clicked. Clicking the target again should toggle the popover. Clicking outside of the popover will typically close it.
## Usage
Similar to `<Dropdown>`, the `<Popover>` will render its children inside an overlay and the `renderTrigger`-prop renders the... | {
"content_hash": "73fed6357f6e9d2c77e583d5420569db",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 336,
"avg_line_length": 58.65853658536585,
"alnum_prop": 0.7205821205821206,
"repo_name": "folio-org/stripes-components",
"id": "723359a4eac322651ac374096aac9c0df5bba6dc",
... |
package io.github.mayunfei.wbesocket.live;
import io.github.mayunfei.wbesocket.message.ChangePPTMessage;
import io.github.mayunfei.wbesocket.message.DrawClearMessage;
import io.github.mayunfei.wbesocket.message.DrawEllipseMessage;
import io.github.mayunfei.wbesocket.message.DrawEraseMessage;
import io.github.mayunfei.... | {
"content_hash": "6978268964c7ee904842303ba900dc1f",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 63,
"avg_line_length": 21.49019607843137,
"alnum_prop": 0.6843065693430657,
"repo_name": "MaYunFei/TXLiveDemo",
"id": "f5570f2148aaca17d3e9619d2443939525148df2",
"size": "1... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__dest_wchar_t_declare_cat_74b.cpp
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__dest.label.xml
Template File: sources-sink-74b.tmpl.cpp
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Set d... | {
"content_hash": "0f2f4761bb3cc6844430dc0abca7488a",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 121,
"avg_line_length": 28.77777777777778,
"alnum_prop": 0.6326530612244898,
"repo_name": "maurer/tiamat",
"id": "a4a47864aabdd93d7b0bd90571139b18e8cc1523",
"size": "1813",... |
TASSELpy.test.net.maizegenetics.matrixalgebra.Matrix package
============================================================
Submodules
----------
TASSELpy.test.net.maizegenetics.matrixalgebra.Matrix.DoubleMatrixFactoryTest module
-----------------------------------------------------------------------------------
.. au... | {
"content_hash": "2c88cc0a5ce0633a5c3558cc75fd8079",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 92,
"avg_line_length": 32.13157894736842,
"alnum_prop": 0.5806715806715806,
"repo_name": "er432/TASSELpy",
"id": "7c3c210a51cab90d8b25173cf76db14b0493ded7",
"size": "1221",... |
from typing import Union, Callable, Optional
from turbojpeg import TurboJPEG, TJPF_GRAY
import torchvision
import cv2
import os
import numpy as np
import torch
from logging import warning
from os.path import split, join, realpath
local_libturbo_path = None
_turbo_path = realpath(join(split(realpath(__file__))[0],
... | {
"content_hash": "8491dc09211a80a378eea40abe4da441",
"timestamp": "",
"source": "github",
"line_count": 168,
"max_line_length": 82,
"avg_line_length": 35.714285714285715,
"alnum_prop": 0.594,
"repo_name": "yangw1234/BigDL",
"id": "7ea96e3ca9222b7c86ea264fd88cb5fc7d255d39",
"size": "6588",
"binary... |
.leaderboard-creation {
min-width: 300px;
position: relative;
vertical-align: top; }
.leaderboard-creation > *, .leaderboard-creation > * > * {
vertical-align: top; }
.leaderboard-creation .form-row {
margin: 30px 0px; }
.leaderboard-creation .form-row-label {
display: inline-block;
width: 2... | {
"content_hash": "77d9c9eb413f8f201c1b257af2d42025",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 60,
"avg_line_length": 30.06896551724138,
"alnum_prop": 0.643348623853211,
"repo_name": "ActiDoo/gamification-engine",
"id": "05d4d2b594539e6966615c91bd18a4bc86507fbf",
"si... |
import { moduleFor, test } from 'ember-qunit';
moduleFor('controller:new-platform-flexberry-services-lock-list', 'Unit | Controller | new-platform-flexberry-services-lock-list');
test('it exists', function(assert) {
let controller = this.subject();
assert.ok(controller);
});
| {
"content_hash": "2ef68609cc4cb3e395333f44ba8eb12e",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 131,
"avg_line_length": 35.25,
"alnum_prop": 0.7304964539007093,
"repo_name": "Flexberry/ember-flexberry",
"id": "cdf3c0e39398633bab56c7b7759c23fb44c5e1d9",
"size": "282",
... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.11.04 at 10:30:... | {
"content_hash": "435ef09d28f280f4e7114a6f406159d8",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 116,
"avg_line_length": 37.401869158878505,
"alnum_prop": 0.6794102948525738,
"repo_name": "eubrazilcc/leishvl",
"id": "fc1763f5650474661216677ba0b1182c3f7a706a",
"size": ... |
namespace IHM
{
partial class FormReceipe
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param na... | {
"content_hash": "3fd45c3858311c69eeb40d8127ab2f1e",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 131,
"avg_line_length": 41.3,
"alnum_prop": 0.6181252161881702,
"repo_name": "NitriKx/M2DL-ACEE-TPs-CSharp",
"id": "7237335c26e511166c68cfbf81a006f70d6e3207",
"size": "2893... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "31bc28d8530deadad85b33e87117e3de",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "d734620b98c008f461e49b9fd317d75e33fce8ad",
"size": "171... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_02) on Tue Apr 29 11:29:43 CEST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>org.gradle.api.plu... | {
"content_hash": "b8f90a95bc2cb09f2a84379b2d81ea02",
"timestamp": "",
"source": "github",
"line_count": 160,
"max_line_length": 174,
"avg_line_length": 38.2125,
"alnum_prop": 0.6344455348380765,
"repo_name": "Pushjet/Pushjet-Android",
"id": "02ea8b1232835d39d9a1ccac8e46b5c63425cd13",
"size": "6114"... |
<!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.css"... | {
"content_hash": "f4629f1036b9d5422d3299d3b47b042e",
"timestamp": "",
"source": "github",
"line_count": 180,
"max_line_length": 172,
"avg_line_length": 42.605555555555554,
"alnum_prop": 0.5726952666579737,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "01bbb49838a34e00f614207a67252a1fb4d6a85d",... |
using System;
using System.Net.Sockets;
namespace Xorcerer.Wizard.Network
{
public interface IClientFactory
{
IClient Create(TcpClient tcpClient);
void Release(IClient client);
}
}
| {
"content_hash": "4ef817caf2d847df00365decd22cbc90",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 44,
"avg_line_length": 17.583333333333332,
"alnum_prop": 0.6919431279620853,
"repo_name": "Xorcerer/Wizard",
"id": "59615b77bcea27e44f0fff27bffea1054e286f62",
"size": "211"... |
<?php
namespace yii\rest;
use yii\base\InvalidConfigException;
use yii\base\Model;
use yii\web\ForbiddenHttpException;
/**
* ActiveController implements a common set of actions for supporting RESTful access to ActiveRecord.
*
* The class of the ActiveRecord should be specified via [[modelClass]], which must impl... | {
"content_hash": "cff24f37e6ad61ccb955fb327e6f8ecc",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 128,
"avg_line_length": 32.595419847328245,
"alnum_prop": 0.5655737704918032,
"repo_name": "tatia-kom/gde_v_donetske",
"id": "18c64187f32269e146cd849cbb4cc5dff988d894",
"s... |
var $ = require("jquery");
var _ = require("underscore");
var Backbone = require("backbone");
Backbone.$ = $;
var helpers = require("./helpers.js");
var genericCollection = require("./genericCollection.js");
var mediaView = require("./features/cardView.js");
var eventsView = require("./events/cardView.js");
var oppsVi... | {
"content_hash": "d2cb4fbceebb7a96ab3a76c1998f849d",
"timestamp": "",
"source": "github",
"line_count": 113,
"max_line_length": 90,
"avg_line_length": 31.15929203539823,
"alnum_prop": 0.6711161601817666,
"repo_name": "limzykenneth/ualfutures-frontend",
"id": "a2434b887ea8224e7694184a7ad0f01258004453"... |
#include "glyph.h"
#include "hash_map.h"
#include "shared_ptr.h"
#include "types.h"
#include <agge/config.h>
#include <string>
namespace agge
{
class font : noncopyable
{
public:
struct accessor;
typedef shared_ptr<accessor> accessor_ptr;
typedef shared_ptr<font> ptr;
public:
explicit... | {
"content_hash": "0e2dd2b98a807da5e0eadfcad88faf37",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 96,
"avg_line_length": 28.17721518987342,
"alnum_prop": 0.6891284815813118,
"repo_name": "tyoma/agge",
"id": "bb7f91b8f03826d35b635e2aa900de8db24e115b",
"size": "2240",
"... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
</head>
<body>
<script data-main="ie31limit" src="../../libs/require.js" type="text/javascript"></script>
Body need to be green in IE !!!
</body>
</html> | {
"content_hash": "125c18dfbac1a60eddf3cbb6f1b4ad73",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 90,
"avg_line_length": 27.09090909090909,
"alnum_prop": 0.6342281879194631,
"repo_name": "dimaxweb/CSSLoader",
"id": "1e9339602f1820d55229554e3e4f558db6bf4e8e",
"size": "29... |
Yap
===
**Problem:** You want to use Hibernate but can't because your application allows users to create their own tables.
**Solution:** Yap is a runtime (re)configurable orm for Java that doesn't require compiled model classes or static mappings.
Features
--------
Yap supports the following common ORM features:
* ... | {
"content_hash": "37a1e6189af32581aea31bbf91539ec3",
"timestamp": "",
"source": "github",
"line_count": 139,
"max_line_length": 172,
"avg_line_length": 29.611510791366907,
"alnum_prop": 0.7242468415937804,
"repo_name": "mockaroo/yap",
"id": "366b0ce8f9a31001b911be60107c63be505e11d5",
"size": "4116"... |
#ifndef XMLREADER__H
#define XMLREADER__H
#include "libparsifal/parsifal.h"
#include "libparsifal/dtdvalid.h"
enum XMLREADER_TYPES {
XMLREADERTYPE_STARTELEMENT = 1,
XMLREADERTYPE_ENDELEMENT,
XMLREADERTYPE_CHARS,
XMLREADERTYPE_COMMENT,
XMLREADERTYPE_PI
};
union XMLReaderNode_t {
int type;
struc... | {
"content_hash": "8413dfe484b4edb7c21d2d96635ba051",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 83,
"avg_line_length": 25.9873417721519,
"alnum_prop": 0.6697515830491964,
"repo_name": "LiberatorUSA/GUCEF",
"id": "84a0bca3534594ab7db470186cfda05ed3d315f4",
"size": "205... |
package jodd.petite.tst;
public class Loo {
}
| {
"content_hash": "b45b3f6839be1d838c58b5d41c2d6919",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 24,
"avg_line_length": 11.75,
"alnum_prop": 0.723404255319149,
"repo_name": "007slm/jodd",
"id": "5c1687a45511ddb90555f3ad2c323587599a8e3d",
"size": "119",
"binary": false... |
<mat-list>
<mat-list-item>
<div matListItemTitle>Item </div>
<div matListItemLine>1</div>
<div matListItemIcon>icon</div>
<div matListItemAvatar>Avatar</div>
</mat-list-item>
<div matSubheader>Section 1</div>
<a mat-list-item>
<span>Item 2</span>
</a>
<button mat-list-item>Item 3</button... | {
"content_hash": "cbda4cf9368ce41502df6569be8444b7",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 39,
"avg_line_length": 26.428571428571427,
"alnum_prop": 0.6594594594594595,
"repo_name": "crisbeto/material2",
"id": "94401c7e78e2199eca0aa971dbd8103bda0f1b86",
"size": "3... |
<!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">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | {
"content_hash": "77d2b982d3d16b259ec39b2aa05391a4",
"timestamp": "",
"source": "github",
"line_count": 233,
"max_line_length": 437,
"avg_line_length": 52.13304721030043,
"alnum_prop": 0.6842018605416975,
"repo_name": "mike-jumper/incubator-guacamole-website",
"id": "2bb756b0837c66a6b6d2306cf0d55d94c... |
set -o errexit
set -o nounset
set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${KUBE_ROOT}/cluster/kube-env.sh"
source "${KUBE_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh"
MINIONS_FILE=/tmp/minions-$$
trap 'rm -rf "${MINIONS_FILE}"' EXIT
# Make several attempts to deal with slow cluster birth.
atte... | {
"content_hash": "873733bdd0402f05a2ca554933e3d425",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 157,
"avg_line_length": 34,
"alnum_prop": 0.6131221719457014,
"repo_name": "swarren83/kubernetes",
"id": "b27b19ae8c843cfa8ab79222ada465dc64baf77f",
"size": "3315",
"bina... |
set -e
SCRIPT_DIR=$(dirname $0)
ADDED_DIR=${SCRIPT_DIR}/added
# Add custom launch script and dependent scripts/libraries/snippets
cp -p ${ADDED_DIR}/openshift-launch.sh ${JBOSS_HOME}/bin/
mkdir -p ${JBOSS_HOME}/bin/launch
cp -r ${ADDED_DIR}/launch/* ${JBOSS_HOME}/bin/launch
chmod ug+x ${JBOSS_HOME}/bin/openshift-laun... | {
"content_hash": "56437e05390479ff285166e33cf1e510",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 67,
"avg_line_length": 30.80952380952381,
"alnum_prop": 0.7264296754250387,
"repo_name": "bdecoste/cct_module",
"id": "15df3b86c714bd264bfdf871c3884d7f9061c9d5",
"size": "7... |
FROM balenalib/jn30b-nano-ubuntu:eoan-build
ENV GO_VERSION 1.16
RUN mkdir -p /usr/local/go \
&& curl -SLO "https://storage.googleapis.com/golang/go$GO_VERSION.linux-arm64.tar.gz" \
&& echo "3770f7eb22d05e25fbee8fb53c2a4e897da043eb83c69b9a14f8d98562cd8098 go$GO_VERSION.linux-arm64.tar.gz" | sha256sum -c - \
&& tar... | {
"content_hash": "6ec310e787986677754da68845b31082",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 670,
"avg_line_length": 63.54838709677419,
"alnum_prop": 0.7258883248730964,
"repo_name": "nghiant2710/base-images",
"id": "7fe834685702b91a2ed86f183be940e76519d693",
"size... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>graph-theory: Error</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="... | {
"content_hash": "551d688122ed8079784614c515ca1146",
"timestamp": "",
"source": "github",
"line_count": 295,
"max_line_length": 278,
"avg_line_length": 50.623728813559325,
"alnum_prop": 0.6106870229007634,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "20fc26d278516e6cd64e9af58634c9c36248c86c",... |
/* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.... | {
"content_hash": "301bf3ee4dd93bcbad4b65bc80bc8fe4",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 75,
"avg_line_length": 31.714285714285715,
"alnum_prop": 0.5495495495495496,
"repo_name": "JasonGross/graphviz-packaging",
"id": "1c0afdc69ceaa360f064781ad057c2710d722f47",
... |
PHP Stemmer using Porter's algortihm implementation.
| {
"content_hash": "76066d7b25f3f008f85e4c210f43ddb7",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 52,
"avg_line_length": 53,
"alnum_prop": 0.8490566037735849,
"repo_name": "alvk4r/php-stemmer",
"id": "7083bf3cb7301a8310b4d6e9859bc4970ac11347",
"size": "67",
"binary": f... |
'use strict';
var React;
var ReactInstanceMap;
var ReactTestUtils;
var mocks;
var reactComponentExpect;
describe('ReactComponent', function() {
beforeEach(function() {
mocks = require('mocks');
React = require('React').inServerContext(document);
ReactInstanceMap = require('ReactInstanceMap');
Rea... | {
"content_hash": "9b9f9c294dba8c115dcd2abcea7edb7d",
"timestamp": "",
"source": "github",
"line_count": 259,
"max_line_length": 89,
"avg_line_length": 29.324324324324323,
"alnum_prop": 0.5815668202764976,
"repo_name": "bruderstein/server-react",
"id": "7a53677af82a9b9cfcc10456e6f9b56b3a156f6a",
"si... |
<?php
$loader = require dirname(__DIR__) . '/vendor/autoload.php';
/** @var $loader \Composer\Autoload\ClassLoader */
$loader->add('Koriym\FusionCache', __DIR__);
$loader->add('Doctrine\Tests', dirname(__DIR__) . '/vendor/doctrine/cache/tests');
| {
"content_hash": "0369c6d80cc92e383c4b19b4ca42bc2a",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 82,
"avg_line_length": 41.166666666666664,
"alnum_prop": 0.6639676113360324,
"repo_name": "koriym/Koriym.FusionCache",
"id": "7e95f87b066e6d8c501ccbe222c64a5cd79760a2",
"siz... |
namespace arangodb::aql {
struct ModificationExecutorInfos;
class RemoveModifierCompletion {
public:
explicit RemoveModifierCompletion(ModificationExecutorInfos& infos)
: _infos(infos) {}
~RemoveModifierCompletion() = default;
ModifierOperationType accumulate(ModificationExecutorAccumulator& accu,
... | {
"content_hash": "523184a877248c2fe6fbcc231331ee7a",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 73,
"avg_line_length": 30.61904761904762,
"alnum_prop": 0.6905132192846034,
"repo_name": "wiltonlazary/arangodb",
"id": "4e2272306b4eb78c9986eb4e71b3ab6537293f5b",
"size": ... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
Schlechtendalia 4: 18 (2000)
#### Original name
Uncinula crataegi Bunkina
### Remarks
null | {
"content_hash": "b7ceb2b9454650827749b8eecce88554",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 28,
"avg_line_length": 11.846153846153847,
"alnum_prop": 0.7207792207792207,
"repo_name": "mdoering/backbone",
"id": "1307fa236f2a54890066e4ed3086619b338f8cb9",
"size": "22... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.