identifier stringlengths 42 383 | collection stringclasses 1
value | open_type stringclasses 1
value | license stringlengths 0 1.81k | date float64 1.99k 2.02k ⌀ | title stringlengths 0 100 | creator stringlengths 1 39 | language stringclasses 157
values | language_type stringclasses 2
values | word_count int64 1 20k | token_count int64 4 1.32M | text stringlengths 5 1.53M | __index_level_0__ int64 0 57.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/AndrewKvalheim/Typeset/blob/master/test/spacesSpec.js | Github Open Source | Open Source | CC0-1.0 | null | Typeset | AndrewKvalheim | JavaScript | Code | 122 | 282 | const typeset = require("../src/index");
const expect = require("chai").expect;
function spaces(html) {
return typeset(html, {
enable: ["spaces"],
fragment: true
});
}
describe("Spaces", () => {
it("text without wide spaces symbols should be the same after call the function", () => {
const html = "<... | 35,156 |
https://github.com/zx648383079/PHP-WeChat/blob/master/Module/Legwork/Service/Api/Admin/WaiterController.php | Github Open Source | Open Source | MIT | 2,019 | PHP-WeChat | zx648383079 | PHP | Code | 45 | 167 | <?php
declare(strict_types=1);
namespace Module\Legwork\Service\Api\Admin;
use Module\Legwork\Domain\Repositories\WaiterRepository;
class WaiterController extends Controller {
public function indexAction(string $keywords = '') {
return $this->renderPage(
WaiterRepository::getList($keywords)
... | 14,491 |
https://github.com/Boldeusz/php-basic/blob/master/Php/PHP CanvasJS Chart Samples/chart-types/line.php | Github Open Source | Open Source | BSD-3-Clause | 2,022 | php-basic | Boldeusz | PHP | Code | 200 | 547 | <?php include '../header.php'; ?>
<?php include '../sidebar.php'; ?>
<?php include '../content.php'; ?>
<h1>Line Chart</h1>
<div id="chartContainer"></div>
<?php
$dataPoints = array(
array("x" => 10, "y" => 71),
array("x" => 20, "y" => 55),
array("x" => 30, "y" => 50),
array("x" => 40, "y" => 65),
array("x" =... | 46,748 |
https://github.com/CIDARLAB/mage-editor/blob/master/VectorCommon/src/org/jbei/components/sequenceClasses/RowData.as | Github Open Source | Open Source | BSD-3-Clause | 2,022 | mage-editor | CIDARLAB | null | Spoken | 270 | 758 | package org.jbei.components.sequenceClasses
{
/**
* @author Zinovii Dmytriv
*/
public class RowData
{
private var _sequence:String;
private var _oppositeSequence:String;
private var _start:int;
private var _end:int;
private var _featuresAlignment:Array /* of Array of Feature */;
private var ... | 35,681 |
https://github.com/CyberSys/helisharp/blob/master/HeliSharpLib/Models/Helicopter.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | helisharp | CyberSys | C# | Code | 569 | 1,572 | using System;
using MathNet.Numerics.LinearAlgebra;
using Newtonsoft.Json;
namespace HeliSharp
{
public abstract class Helicopter : ForceAssembly, IHelicopterControls
{
/// Abstract base class for all helicopter types
public JacobianTrimmer Trimmer { get; set; } = new JacobianTrimmer();
... | 8,355 |
https://github.com/ga-vo/scalaf/blob/master/src/scalaf.c | Github Open Source | Open Source | MIT | null | scalaf | ga-vo | C | Code | 5,255 | 13,522 | /*
Código secuencial para la simulación de flujos de lava volcánica
-Sergio Augusto Gélvez Cortés
*/
#include "scalaf.h"
#include "math.h"
#include "string.h"
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <omp.h>
#define NUMBER_OF_TRHEADS 2
// Funció... | 22,674 |
https://github.com/VertaAI/modeldb/blob/master/client/scala/src/main/scala/ai/verta/blobs/dataset/FileMetadata.scala | Github Open Source | Open Source | Apache-2.0 | 2,023 | modeldb | VertaAI | Scala | Code | 168 | 343 | package ai.verta.blobs.dataset
/** Represent a file's metadata stored in Dataset Blob
* @param lastModified last time file was modified
* @param md5 MD5 hash of the file
* @param path path of the file
* @param size size of the file
* @param versionId: (optional) versionId of the file. Only exists for S3 file... | 3,967 |
https://github.com/YB27/GPy/blob/master/GPy/examples/regressionCensored.py | Github Open Source | Open Source | BSD-3-Clause | null | GPy | YB27 | Python | Code | 393 | 1,631 |
''' temporary : Use this to use the forked version of GPy'''
import sys
sys.path.insert(1, '/home/breux/GPy')
import numpy as np
import matplotlib.pyplot as plt
import GPy
'''
Gaussian Processes regression with censored data example using artificial data as in
"Gaussian Process Regression with Censored Data Using Ex... | 16,018 |
https://github.com/danstutzman/sync-log-files-to-db/blob/master/integration-test/aws-s3-cli | Github Open Source | Open Source | MIT | 2,017 | sync-log-files-to-db | danstutzman | Shell | Code | 10 | 63 | #!/bin/bash -ex
AWS_ACCESS_KEY_ID=newAccessKey AWS_SECRET_ACCESS_KEY=newSecretKey \
aws s3 --endpoint-url=http://localhost:8000 --no-verify-ssl "$@"
| 18,445 |
https://github.com/stoLem/GyverLibs/blob/master/GyverBus/examples/softuart-softuart/raw/raw_RX/raw_RX.ino | Github Open Source | Open Source | MIT | 2,022 | GyverLibs | stoLem | null | Spoken | 87 | 259 | // приём сырых данных по однопроводному юарту
// подключаем софт юарт
#include "softUART.h"
softUART<4> UART(1000); // пин 4, скорость 1000
// подключаем GBUS
#include "GBUS.h"
GBUS bus(&UART, 5, 20); // обработчик UART, адрес 5, буфер 20 байт
void setup() {
Serial.begin(9600); // сериал для отладки (вывод в монит... | 24,205 |
https://github.com/devuxd/Reacher/blob/master/UPAnalysis/src/upAnalysis/summary/summaryBuilder/values/TypeConstraint.java | Github Open Source | Open Source | MIT | 2,019 | Reacher | devuxd | Java | Code | 119 | 436 | package upAnalysis.summary.summaryBuilder.values;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.HashSet;
import java.util.Set;
import org.eclipse.jdt.core.IField;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaCore;
public class ... | 43,559 |
https://github.com/oklemencic/psake/blob/master/examples/includes.ps1 | Github Open Source | Open Source | MIT | 2,014 | psake | oklemencic | PowerShell | Code | 33 | 94 | Include .\included.ps1
Task default -Depends IncludedCheck1, CheckX, Clean
Task RunNested2 {
Invoke-psake .\nested\nested2.ps1
}
Task CheckX{
$x
Assert ($x -eq 100) '$x was not 100'
}
Task Clean -Override {
"overidden clean"
} | 44,160 |
https://github.com/hampoelz/Musicadio/blob/master/Musicadio.Shared/Html/Api/Media/NetworkState.cs | Github Open Source | Open Source | MIT | null | Musicadio | hampoelz | C# | Code | 89 | 227 | namespace Musicadio.Shared.Html.Api.Media
{
public enum NetworkState
{
/// <summary>
/// There is no data yet. Also, <see cref="ReadyState" /> is <see cref="ReadyState.HAVE_NOTHING" /> .
/// </summary>
NETWORK_EMPTY = 0,
/// <summary>
/// The <see cref="H... | 38,273 |
https://github.com/Buzzec/universal-resolver/blob/master/uni-resolver-core/src/main/java/uniresolver/result/ResolveResult.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | universal-resolver | Buzzec | Java | Code | 599 | 2,196 | package uniresolver.result;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import foundation.identity.did.DIDDocument;
import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.binary.Hex;... | 24,093 |
https://github.com/will-hart/game-off-2016/blob/master/Assets/Resources/JSON/Buildings.meta | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,016 | game-off-2016 | will-hart | Unity3D Asset | Code | 14 | 70 | fileFormatVersion: 2
guid: bb841102475ca7f47b6eb1c1cbda62b0
folderAsset: yes
timeCreated: 1478381988
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| 45,026 |
https://github.com/cetonek/big-biznis/blob/master/src/main/kotlin/com/github/cetonek/bigbiznis/domain/entity/persisted/BudgetBalance.kt | Github Open Source | Open Source | MIT | null | big-biznis | cetonek | Kotlin | Code | 41 | 196 | package com.github.cetonek.bigbiznis.domain.entity.persisted
import com.github.cetonek.bigbiznis.application.utility.utility.PairConvertable
import com.github.cetonek.bigbiznis.core.jpa.VersionedPersistableEntity
import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.Id
import javax.p... | 126 |
https://github.com/department-of-veterans-affairs/vets-api/blob/master/spec/factories/va0993.rb | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,023 | vets-api | department-of-veterans-affairs | Ruby | Code | 30 | 114 | # frozen_string_literal: true
FactoryBot.define do
factory :va0993, class: 'SavedClaim::EducationBenefits::VA0993', parent: :education_benefits do
form do
{
claimantFullName: {
first: 'Mark',
last: 'Olson'
},
claimantSocialSecurityNumber: '111223333',
pri... | 12,990 |
https://github.com/NikosEfthias/go-multipart-downloader/blob/master/main.go | Github Open Source | Open Source | MIT | 2,019 | go-multipart-downloader | NikosEfthias | Go | Code | 391 | 1,242 | package main
import (
"fmt"
"io"
"log"
"os"
"strconv"
"strings"
"sync"
"net/http"
"github.com/spf13/pflag"
)
var file = pflag.StringP("url", "u", "", "url to download")
var outname = pflag.StringP("outfile", "o", "", "output filename")
var threads = pflag.IntP("threads", "t", 7, "number of threads to use at... | 14,032 |
https://github.com/chrisrabe/project-idin/blob/master/idin-client/src/App/index.jsx | Github Open Source | Open Source | Apache-2.0 | null | project-idin | chrisrabe | null | Spoken | 125 | 369 | import React, { useCallback, useEffect } from 'react';
import { useHistory, useLocation } from 'react-router-dom';
import Router from 'components/common/Router';
import AppDialog from 'components/common/AppDialog';
const App = (props) => {
const {
orgActions, userActions, itemActions, homeActions, appActions, di... | 51,338 |
https://github.com/kevin-brown/drf-link-pagination/blob/master/rest_link_pagination/tests/views/generic.py | Github Open Source | Open Source | MIT | 2,015 | drf-link-pagination | kevin-brown | Python | Code | 23 | 91 | from rest_framework import generics
from rest_link_pagination import mixins
from rest_link_pagination.tests import serializers, views
class PaginatedList(views.FakeQueryset, mixins.LinkPaginationMixin,
generics.ListAPIView):
serializer_class = serializers.TestSerializer
paginate_by = 1
| 7,233 |
https://github.com/agile-lab-dev/wasp/blob/master/consumers-spark/src/main/scala/it/agilelab/bigdata/wasp/consumers/spark/streaming/actor/etl/Protocol.scala | Github Open Source | Open Source | Apache-2.0 | 2,023 | wasp | agile-lab-dev | Scala | Code | 387 | 1,399 | package it.agilelab.bigdata.wasp.consumers.spark.streaming.actor.etl
import it.agilelab.bigdata.wasp.models.StructuredStreamingETLModel
/**
* Trait marking messages as being part of the [[StructuredStreamingETLActor]] protocol.
*/
sealed trait Protocol
object Protocol {
/**
* Message sent from [[it.agilel... | 54,344 |
https://github.com/renatoliveira/monta/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,018 | monta | renatoliveira | Ignore List | Code | 4 | 23 | __pycache__/
build/
dist/
monta.egg-info/
| 44,235 |
https://github.com/medismailben/llvm-project/blob/master/llvm/test/CodeGen/AArch64/arm64-2011-10-18-LdStOptBug.ll | Github Open Source | Open Source | Apache-2.0 | 2,022 | llvm-project | medismailben | LLVM | Code | 144 | 391 | ; RUN: llc < %s -mtriple=arm64-apple-ios | FileCheck %s
; Can't fold the increment by 1<<12 into a post-increment load
; rdar://10301335
@test_data = common global i32 0, align 4
define void @t() nounwind ssp {
; CHECK-LABEL: t:
entry:
br label %for.body
for.body:
; CHECK: for.body
; CHECK: ldr w{{[0-9]+}}, [x{{[... | 52,379 |
https://github.com/HTTPArchive/almanac.httparchive.org/blob/master/sql/2021/javascript/lighthouse_unminified_js_by_3p.sql | Github Open Source | Open Source | Apache-2.0 | 2,023 | almanac.httparchive.org | HTTPArchive | SQL | Code | 113 | 451 | #standardSQL
# Pages with unminified JS by 1P/3P
CREATE TEMPORARY FUNCTION getUnminifiedJsUrls(audit STRING)
RETURNS ARRAY<STRUCT<url STRING, wastedBytes INT64>> LANGUAGE js AS '''
try {
var $ = JSON.parse(audit);
return $.details.items.map(({url, wastedBytes}) => {
return {url, wastedBytes};
});
} catch (e) ... | 2,728 |
https://github.com/SheffieldML/notebook/blob/master/compbio/index.ipynb | Github Open Source | Open Source | BSD-3-Clause | 2,023 | notebook | SheffieldML | Jupyter Notebook | Code | 231 | 784 | {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Notebooks on Computational Biology Data\n",
"\n",
"* [Hierarchical](./Hierarchical.ipynb) James Hensman, Magnus Rattray and Neil Lawrence. Work funded by the [Iterative Project](http://staffwww.dcs.shef.ac.uk/people/N.Lawren... | 7,059 |
https://github.com/unseen-code/tianqi_src/blob/master/src/Package/EffectTargetInfo.cs | Github Open Source | Open Source | MIT | 2,017 | tianqi_src | unseen-code | C# | Code | 274 | 979 | using ProtoBuf;
using System;
using System.ComponentModel;
namespace Package
{
[ProtoContract(Name = "EffectTargetInfo")]
[Serializable]
public class EffectTargetInfo : IExtensible
{
private long _targetId;
private bool _knocked;
private string _hitAction = string.Empty;
private Pos _toPos;
private i... | 42,494 |
https://github.com/cime/CoreSharp/blob/master/CoreSharp.NHibernate.Profiler/LoggerFactory.cs | Github Open Source | Open Source | MIT | 2,021 | CoreSharp | cime | C# | Code | 330 | 896 | //using System;
//using System.Collections.Generic;
//using System.Configuration;
//using System.Linq;
//using NHibernate.AdoNet;
//using NHibernate.Connection;
//using NHibernate.Engine;
//using NHibernate.Event.Default;
//using NHibernate.Glimpse.InternalLoggers;
//using NHibernate.Transaction;
//namespace NHibernat... | 31,371 |
https://github.com/sijie/bookkeeper-twitter/blob/master/hedwig-server/src/main/java/org/apache/hedwig/zookeeper/SafeAsynBKCallback.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | bookkeeper-twitter | sijie | Java | Code | 357 | 868 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 14,548 |
https://github.com/hzshark/newproject/blob/master/db.sql | Github Open Source | Open Source | BSD-2-Clause | null | newproject | hzshark | SQL | Code | 158 | 427 | /*
Navicat MySQL Data Transfer
Source Server : zz_test_5.6-内网
Source Server Version : 50637
Source Host : 192.168.2.66:3306
Source Database : a1
Target Server Type : MYSQL
Target Server Version : 50637
File Encoding : 65001
Date: 2017-12-04 13:45:17
*/
SET FOREIGN_KEY_CHECKS=0;
-... | 3,433 |
https://github.com/Corpus-2021/myfaces/blob/master/impl/src/main/java/org/apache/myfaces/view/facelets/AbstractFaceletCache.java | Github Open Source | Open Source | Apache-2.0 | null | myfaces | Corpus-2021 | Java | Code | 389 | 977 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 7,256 |
https://github.com/jhamlet/jgl/blob/master/lib/sync/resolve.js | Github Open Source | Open Source | JSON | 2,014 | jgl | jhamlet | JavaScript | Code | 127 | 420 | var JGL = require('../'),
pathValueIsRef = require('./path-value-is-ref'),
pathValueIsError = require('./path-value-is-error'),
isRelative = require('./is-relative'),
relative = require('./relative'),
REF_KEY = require('./ref-key');
/**
* @member module:JGL.res... | 19,354 |
https://github.com/kartoza/geocris-inasafe-fba/blob/master/mapserver/.gitignore | Github Open Source | Open Source | MIT | 2,020 | geocris-inasafe-fba | kartoza | Ignore List | Code | 2 | 25 | mapfiles/wms.map/mapfile.map
mapfiles/wms.map/*.png
| 12,973 |
https://github.com/fourlastor/godot-kotlin-jvm/blob/master/kt/godot-library/src/main/kotlin/godot/gen/godot/Navigation2D.kt | Github Open Source | Open Source | MIT | null | godot-kotlin-jvm | fourlastor | Kotlin | Code | 397 | 1,337 | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantModalityModifier",
"UNCHECKED_CAST", "JoinDeclarationAndAssignment", "USELESS_CAST",
"RemoveRedundantQualifierName", "NOTHING_TO_INLINE")
package godot
import godot.annotation.God... | 54,168 |
https://github.com/megatron0000/bmvp/blob/master/src/xyz/baudelaplace/bmvp/framework/exceptions/OutBindingInitializationException.java | Github Open Source | Open Source | MIT | null | bmvp | megatron0000 | Java | Code | 25 | 80 | package xyz.baudelaplace.bmvp.framework.exceptions;
public class OutBindingInitializationException extends Error {
/**
*
*/
private static final long serialVersionUID = 1L;
public OutBindingInitializationException(String reason) {
super(reason);
}
}
| 47,996 |
https://github.com/abdalrahman1990/Project-Manager-backend_auth/blob/master/resources/js/components/PrivateRoute.jsx | Github Open Source | Open Source | MIT | null | Project-Manager-backend_auth | abdalrahman1990 | null | Spoken | 64 | 149 | import React from 'react';
import { Route, Redirect } from 'react-router-dom';
import { GlobalConstants } from '../constants';
function hasAccess(){
let user = JSON.parse(localStorage.getItem(GlobalConstants.USER_KEY));
return user;
}
const PrivateRoute = ({ component: Component, ...rest }) => (
<Route {...rest}... | 49,898 |
https://github.com/luiarthur/STAT131_TA_materials/blob/master/demos/roulette/Makefile | Github Open Source | Open Source | MIT | null | STAT131_TA_materials | luiarthur | Makefile | Code | 5 | 17 | build:
jupyter notebook
all: build
| 50,091 |
https://github.com/Trip-Split-webpt10/Marketing-Pages-Nolu/blob/master/less/navigation.less | Github Open Source | Open Source | MIT | null | Marketing-Pages-Nolu | Trip-Split-webpt10 | Less | Code | 42 | 165 | header {
nav{
display: flex;
justify-content: space-around;
align-items: center;
background-color: @gray;
padding: 2rem 2rem;
a{
text-decoration: none;
color: @teal;
font-size: 2.6rem;
}
a:hover{
... | 44,499 |
https://github.com/XWxiaowei/JavaCode/blob/master/java-source/src/main/com/sun/corba/se/impl/protocol/giopmsgheaders/TargetAddress.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | JavaCode | XWxiaowei | Java | Code | 269 | 1,046 | /*
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.corba.se.impl.protocol.giopmsgheaders;
/**
* com/sun/corba/se/impl/protocol/giopmsghe... | 50,017 |
https://github.com/Dexus/node-compiler/blob/master/lts/test/parallel/test-tls-server-parent-constructor-options.js | Github Open Source | Open Source | MIT | 2,017 | node-compiler | Dexus | JavaScript | Code | 138 | 534 | 'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
// Test that `tls.Server` constructor options are passed to the parent
// constructor.
const assert = require('assert');
const fixtures = require('../common/fixtures');
const tls = require('tls');
const option... | 36,580 |
https://github.com/dotJEM/angular-lessons/blob/master/src/assets/lib/bower/linqjs/test/whereSelectEnumerable.js | Github Open Source | Open Source | MIT | null | angular-lessons | dotJEM | JavaScript | Code | 194 | 1,066 | var module = QUnit.module;
var Enumerable = require('../linq');
require("../extensions/linq.qunit.js")({'Enumerable': Enumerable});
module("WhereSelectEnumerable");
var seq = Enumerable.range(5, 10); // 5-14
var seq2 = Enumerable.range(5, 5); // 5-9
test("where", function () {
seq.where("$%2==0").is(6, 8, 10, 1... | 19,482 |
https://github.com/brianush1/zua/blob/master/tests/execorder.lua | Github Open Source | Open Source | MIT | 2,020 | zua | brianush1 | Lua | Code | 277 | 729 | local assert = assert
local print = print
local table = table
local setmetatable = setmetatable
local MSG = "[ ] FAILED execution order tests"
local t = {}
local function gen(i, j)
t[#t + 1] = i
return j or i
end
gen(gen(1, 3), gen(2))
assert(table.concat(t, ",") == "1,2,3", MSG)
t = {}
gen(gen(1) + gen(2))
asser... | 22,680 |
https://github.com/Alkemic/webrss/blob/master/frontend/js/directives.js | Github Open Source | Open Source | MIT | 2,021 | webrss | Alkemic | JavaScript | Code | 36 | 114 | App.directive("feedSelect", () => ({
transclude: false,
restrict: "E",
scope: {
feeds: "=",
selected: "=ngModel",
updateAction: "=",
deleteAction: "="
},
templateUrl: "feed-select.html",
controller: $scope => {
$scope.doSelect = feed => {
$scop... | 5,164 |
https://github.com/Jeevz10/Jeevan-s-ProManage/blob/master/src/test/java/seedu/address/logic/commands/SelectCommandTest.java | Github Open Source | Open Source | MIT | null | Jeevan-s-ProManage | Jeevz10 | Java | Code | 600 | 2,607 | package seedu.address.logic.commands;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static seedu.address.logic.commands.CommandTestUtil.VALID_DATE;
import static seedu.address.logic.commands.CommandTestUtil.VALID_MONTH;
import... | 14,715 |
https://github.com/CompScienceClub/ruby-information-theory/blob/master/examples/waves.rb | Github Open Source | Open Source | MIT | 2,017 | ruby-information-theory | CompScienceClub | Ruby | Code | 106 | 326 | # Information Theory demo
# Copyright (c) 2016, Colin Shaw
# Distributed under the terms of the MIT License
require 'pp'
require '../src/wave_generator.rb'
require '../src/information_theory.rb'
require '../src/symbols.rb'
puts
puts 'WHITE AND SAWTOOTH WITH SYMBOL DISTRIBUTION'
puts
# White noise
white = Wav... | 34,744 |
https://github.com/w4x/boolangstudio/blob/master/Dependencies/boo/tests/testcases/errors/BCE0141.boo | Github Open Source | Open Source | MS-PL | 2,016 | boolangstudio | w4x | null | Spoken | 38 | 135 | """
BCE0141.boo(6,26): BCE0141: Duplicate parameter name 'dup' in 'Foo.constructor(object, object)'.
BCE0141.boo(9,24): BCE0141: Duplicate parameter name 'dup' in 'BCE0141Module.method(int, string)'.
"""
class Foo:
def constructor(dup, dup):
pass
def method(dup as int, dup as string):
print dup, dup
method(1, ... | 13,199 |
https://github.com/jajonsraviation/smsgw/blob/master/.editorconfig | Github Open Source | Open Source | MIT | 2,016 | smsgw | jajonsraviation | null | Spoken | 31 | 119 | # http://EditorConfig.org
root = true
[*.{js,py,sh,json,coffee}]
charset = utf-8
[*.{py,sh,coffee}]
indent_style = space
indent_size = 4
[*.{js,json,yml}]
indent_style = space
indent_size = 2
[{package.json, Dockerfile}]
indent_style = space
indent_size = 2
| 39,629 |
https://github.com/jsdelivrbot/Telerik_Academy/blob/master/Front-end/Javascript-Fundamentals/test0.js | Github Open Source | Open Source | MIT | null | Telerik_Academy | jsdelivrbot | JavaScript | Code | 66 | 197 | class Product {
constructor(productType, name, price) {
this._productType = productType;
this._name = name;
this._price = price;
}
get productType() {
return this._productType;
}
set productType(x) {
this._productType = x;
}
get name() {
r... | 3,181 |
https://github.com/andraaspar/hang/blob/master/src/hang/wave/IWave.ts | Github Open Source | Open Source | MIT | null | hang | andraaspar | TypeScript | Code | 12 | 29 | module hang.wave {
export interface IWave {
render(time: number): number;
}
} | 55,527 |
https://github.com/sambacha/discoweb3/blob/master/disco/vite.config.js | Github Open Source | Open Source | MIT | 2,021 | discoweb3 | sambacha | JavaScript | Code | 91 | 336 | import path from "path";
import { defineConfig } from "vite";
import reactRefresh from "@vitejs/plugin-react-refresh";
import typescript from "@rollup/plugin-typescript";
const resolvePath = (str) => path.resolve(__dirname, str);
// https://vitejs.dev/config/
export default defineConfig({
plugins: [reactRefresh()],... | 29,106 |
https://github.com/844196/RENGE/blob/master/bin/Makefile | Github Open Source | Open Source | MIT | 2,020 | RENGE | 844196 | Makefile | Code | 63 | 213 | #
# Makefile for renge
#
all: $(TARGET)
$(TARGET): $(TARGET).src
ifeq ($(CMDLINE), 0)
@echo " BUILD $@"
@cat $< | sed -e "s%PREPRE%$(PREFIX)%g; s%_LIBDIR%$(LIBDIR)%g" > $@
@chmod a+x $@
else
cat $< | sed -e "s%PREPRE%$(PREFIX)%g; s%_LIBDIR%$(LIBDIR)%g" > $@
chmod a+x $@
endif
install-bin: $(TARGET)
insta... | 31,757 |
https://github.com/object-kazu/Objective-C_samples/blob/master/gameaccordion/contoller/KSRecordViewController.m | Github Open Source | Open Source | MIT | 2,018 | Objective-C_samples | object-kazu | Objective-C | Code | 311 | 1,066 | //
// KSRecordViewController.m
// GameAccordion
//
// Created by 清水 一征 on 2014/01/29.
// Copyright (c) 2014年 momiji-mac. All rights reserved.
//
#import "KSRecordViewController.h"
#import "KSGlobalConst.h"
#import "KSPageView.h"
@interface KSRecordViewController ()
@property (nonatomic, retain) UIView *page7... | 13,701 |
https://github.com/start621/opencit/blob/master/services/mtwilson-rpc-jdbi/src/main/java/com/intel/mtwilson/v2/rpc/jdbi/MyJdbi.java | Github Open Source | Open Source | BSD-3-Clause | 2,016 | opencit | start621 | Java | Code | 137 | 515 | /*
* Copyright (C) 2013 Intel Corporation
* All rights reserved.
*/
package com.intel.mtwilson.v2.rpc.jdbi;
import com.intel.mtwilson.My;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
... | 6,638 |
https://github.com/whealmedia/lep-server/blob/master/build_server.sh | Github Open Source | Open Source | MIT | 2,015 | lep-server | whealmedia | Shell | Code | 33 | 101 | #! /bin/bash
source './lib/main.sh'
# Prevents Package Configuration requiring input
DEBIAN_FRONTEND=noninteractive
upgrade
install_nginx
install_php
install_php_drivers
configure_php
configure_nginx
echo -e "Your server is set up and running. \n Copy the source code into $HOME/www"
| 12,646 |
https://github.com/singularperturbation/implicit/blob/master/implicit/annoy_als.py | Github Open Source | Open Source | MIT | 2,017 | implicit | singularperturbation | Python | Code | 461 | 1,259 | """ Uses Annoy (https://github.com/spotify/annoy) to quickly retrieve
approximate neighbours from an ALS Matrix factorization model
"""
import itertools
import logging
import numpy
from implicit.als import AlternatingLeastSquares
try:
import annoy
has_annoy = True
except ImportError:
has_annoy = False
... | 20,535 |
https://github.com/mulesoft/docs-connectors/blob/master/email/1.7/modules/ROOT/pages/email-connector-count-messages.adoc | Github Open Source | Open Source | LicenseRef-scancode-generic-cla | 2,023 | docs-connectors | mulesoft | AsciiDoc | Code | 515 | 1,894 | = Count Messages with Email Connector - Mule 4
Anypoint Connector for Email (Email Connector) provides the *Count messages - IMAP* and *Count messages - POP3* operations, which get the total amount of messages in a specified mailbox folder.
== Configure Count Messages - IMAP Operation
The following example shows how... | 19,199 |
https://github.com/VoDongMy/xenforo-laravel5.1/blob/master/upload/library/XenForo/ViewPublic/Page/View.php | Github Open Source | Open Source | MIT | null | xenforo-laravel5.1 | VoDongMy | PHP | Code | 18 | 83 | <?php
class XenForo_ViewPublic_Page_View extends XenForo_ViewPublic_Base
{
public function renderHtml()
{
$this->_params['templateHtml'] = $this->createTemplateObject(
$this->_params['templateTitle'],
$this->_params
);
}
} | 25,389 |
https://github.com/jhonYupanqui/proyectoHFC/blob/master/resources/js/administrador/modulos/multiconsulta/peticiones.js | Github Open Source | Open Source | MIT | null | proyectoHFC | jhonYupanqui | JavaScript | Code | 315 | 1,490 | import filters from '@/globalResources/lists/filters'
import errors from '@/globalResources/errors'
const peticiones = {}
peticiones.searchCountMulticonsulta = function searchCountMulticonsulta(tipo,valor,callBack)
{
//search
//console.log("la data que se enviara sera: ", tipo,valor)
$.ajax({
url:... | 13,888 |
https://github.com/kunsal/taskee/blob/master/app/Http/Controllers/UserController.php | Github Open Source | Open Source | MIT | 2,020 | taskee | kunsal | PHP | Code | 72 | 273 | <?php
namespace App\Http\Controllers;
use Illuminate\Routing\Controller;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Http\Request;
use App\User;
use App\Events\UserCreated;
class UserController extends Controller
{
public function __construct()
{
$this->middleware('guest')-... | 12,706 |
https://github.com/nooysters/customprintapp/blob/master/packages/customproduct/server/routes/customproduct.js | Github Open Source | Open Source | MIT | 2,014 | customprintapp | nooysters | JavaScript | Code | 207 | 869 | 'use strict';
var uploads = require('../controllers/service_uploads');
var inkauth = require('../controllers/filepickerauth');
var types = require('../controllers/product_types');
var options = require('../controllers/product_options');
var products = require('../controllers/products');
// Product authorization help... | 42,749 |
https://github.com/PakSuonvireak/UnseentraPackage/blob/master/resources/views/package/package.blade.php | Github Open Source | Open Source | MIT | null | UnseentraPackage | PakSuonvireak | PHP | Code | 222 | 1,071 | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
@if (session('message'))
<div class="alert alert-success alert-dismissible fade show" role="alert">
{{session('message')}}
... | 35,197 |
https://github.com/jambtc/dali/blob/master/protected/messages/it/js.php | Github Open Source | Open Source | MIT | 2,020 | dali | jambtc | PHP | Code | 451 | 956 | <?php
/**
* Message translations.
*
* This file is automatically generated by 'yiic message' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message (key).
... | 23,463 |
https://github.com/nishitpatel01/Data-Science-Toolbox/blob/master/algorithm/String/1002_Find_Common_Characters.py | Github Open Source | Open Source | MIT | 2,019 | Data-Science-Toolbox | nishitpatel01 | Python | Code | 105 | 232 | class Solution:
def commonChars(self, A: List[str]) -> List[str]:
common = None
for a in A:
count = {}
for c in a:
count[c] = count.get(c, 0) + 1
# cannot use "not common" because empty dictionary is trusy
# if common gets ... | 27,308 |
https://github.com/ColinKennedy/ways/blob/master/tests/documentation/test_common_patterns.py | Github Open Source | Open Source | MIT | 2,020 | ways | ColinKennedy | Python | Code | 618 | 2,368 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Tests for all of the "common_patterns.rst" documentation page.'''
# IMPORT STANDARD LIBRARIES
import textwrap
# IMPORT WAYS LIBRARIES
import ways.api
# IMPORT LOCAL LIBRARIES
from .. import common_test
class AutoFindTestCase(common_test.ContextTestCase):
'''Al... | 20,385 |
https://github.com/martinrossil/puix/blob/master/src/elements/IconElement.ts | Github Open Source | Open Source | MIT | null | puix | martinrossil | TypeScript | Code | 97 | 264 | import IIconElement from '../interfaces/elements/IIconElement';
import PathElement from '../svg/PathElement';
export default class IconElement extends PathElement implements IIconElement {
public constructor() {
super();
this.name = 'IconElement';
this.setSize(24, 24);
this.svg.setA... | 41,387 |
https://github.com/Patrick-Luo-THR/libsbp/blob/master/java/src/com/swiftnav/sbp/navigation/MsgUtcTimeGnss.java | Github Open Source | Open Source | MIT | 2,022 | libsbp | Patrick-Luo-THR | Java | Code | 382 | 974 | /* Copyright (C) 2015-2021 Swift Navigation Inc.
* Contact: https://support.swiftnav.com
*
* This source is subject to the license found in the file 'LICENSE' which must
* be be distributed together with this source. All other rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ... | 36,511 |
https://github.com/markusblasek/lets.go/blob/master/src/models/message.js | Github Open Source | Open Source | MIT | 2,014 | lets.go | markusblasek | JavaScript | Code | 57 | 199 | var mongoose = require('mongoose'),
ObjectId = mongoose.Schema.Types.ObjectId;
var messageSchema = new mongoose.Schema({
senderID:{},
senderAlias:{},
acceptorID:{},
acceptorAlias:{},
subject: {},
content: {},
delFromSender:{type: String, enum: [true, false], default: false},
delFrom... | 7,937 |
https://github.com/hankai17/test/blob/master/c11/day02/5empla_push_insert.cc | Github Open Source | Open Source | MIT | 2,021 | test | hankai17 | C++ | Code | 111 | 357 | #include <vector>
#include <map>
#include <string>
#include <iostream>
using namespace std;
struct Complicated {
int year;
double country;
string name;
Complicated(int a, double b, string c) : year(a), country(b), name(c) {
cout << "is constructed" << endl;
}
Complicated(const Complicated& other) : yea... | 6,242 |
https://github.com/zainmfd/FightFire/blob/master/fightfire_gateway.ino | Github Open Source | Open Source | MIT | 2,021 | FightFire | zainmfd | null | Spoken | 263 | 908 | #include <SPI.h>
#include <LoRa.h>
#include <PubSubClient.h>
#include <WiFi.h>
#define ss 5
#define rst 14
#define dio0 2
const char* mqtt_server = "************"; //mqtt server
const char* ssid = "************";
const char* password = "***********";
WiFiClient espClient;
PubSubClient client(espClient);
long lastMsg ... | 23,615 |
https://github.com/McLeodMoores/starling/blob/master/projects/util/src/main/java/com/opengamma/util/monitor/LoggingOperationTimeReporter.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | starling | McLeodMoores | Java | Code | 89 | 202 | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.util.monitor;
import org.slf4j.Logger;
/**
* An operation time reporter that calls the specified logger.
*/
public class LoggingOperationTimeReporter implem... | 18,842 |
https://github.com/jmgoncalves/shortener/blob/master/frontend/src/App.js | Github Open Source | Open Source | MIT | null | shortener | jmgoncalves | JavaScript | Code | 105 | 456 | import React, { Component } from 'react';
import './App.css';
import UrlTable from './components/UrlTable/UrlTable'
class App extends Component {
constructor(props) {
super(props);
this.state = {
keyList: [],
newUrl: ""
}
this.handleSubmit = this.handleSubmit.bind(this);
this.updateN... | 37,783 |
https://github.com/openshift/openshift-docs/blob/master/modules/ossm-updating-smcp.adoc | Github Open Source | Open Source | Apache-2.0 | 2,023 | openshift-docs | openshift | AsciiDoc | Code | 202 | 469 | // Module included in the following assemblies:
//
// * service_mesh/v1x/customizing-installation-ossm.adoc
// * service_mesh/v2x/customizing-installation-ossm.adoc
:_content-type: PROCEDURE
[id="ossm-control-plane-deploy-cli_{context}"]
= Editing the ServiceMeshControlPlane with the CLI
You can create or edit the `S... | 33,063 |
https://github.com/mewbak/binary-decompilation/blob/master/x86-semantics/tests/gcc.c-torture/job_601_1465/src/pr80501.c | Github Open Source | Open Source | NCSA | 2,019 | binary-decompilation | mewbak | C | Code | 64 | 153 | #include "mini_string.h"
#include "mini_stdlib.h"
/* PR rtl-optimization/80501 */
signed char v = 0;
static signed char
foo (int x, int y)
{
return x << y;
}
__attribute__((noinline, noclone)) int
bar (void)
{
return foo (v >= 0, __CHAR_BIT__ - 1) >= 1;
}
int
main ()
{
if (sizeof (int) > sizeof (char) && bar ... | 39,182 |
https://github.com/496080199/rook/blob/master/tests/block/k8s/integration/k8sBlockStorageIntegration_test.go | Github Open Source | Open Source | Apache-2.0 | 2,017 | rook | 496080199 | Go | Code | 411 | 1,652 | /*
Copyright 2016 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... | 50,447 |
https://github.com/aindros/xwallpaper/blob/master/config.mk | Github Open Source | Open Source | ISC | null | xwallpaper | aindros | Makefile | Code | 73 | 217 | VERSION = 0.0.1
APPNAME = xwallpaper
# Paths
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
INSTALLPATH = ${PREFIX}/${APPNAME}
BINPATH = ${PREFIX}/bin
# Includes and libraries
LIBS = xcb xcb-aux xcb-randr xcb-image pixman-1 libpng libjpeg xpm
INCLUDES != pkg-config --cflags ${LIBS}
LIBRARIES != pkg... | 23,030 |
https://github.com/kevinashworth/octave/blob/master/packages/octave/lib/components/common/DefaultLayout/DefaultFooter.jsx | Github Open Source | Open Source | MIT | null | octave | kevinashworth | null | Spoken | 41 | 151 | import { getSetting } from 'meteor/vulcan:core'
import React from 'react'
const DefaultFooter = () => {
return (
<>
<span><a href={getSetting('homeUrl', '/')}>{getSetting('title', 'Octave')}</a> © 2020 {getSetting('owner', 'SuperSite, LLC')}</span>
<span className='ml-auto'>Powered by <a href={g... | 35,650 |
https://github.com/webgl-fork/rtoy-samples/blob/master/src/rt_shadows.rs | Github Open Source | Open Source | MIT | 2,021 | rtoy-samples | webgl-fork | Rust | Code | 321 | 1,701 | use rendertoy::*;
pub use std::cell::Cell;
pub use std::rc::Rc;
#[derive(Clone, Copy)]
pub struct DirectionalLightState {
pub direction: Vec3,
}
impl DirectionalLightState {
pub fn new(direction: Vec3) -> Self {
Self { direction }
}
}
pub struct RtShadows {
rt_constants_buf: SnoozyRef<Buffer>... | 4,083 |
https://github.com/zhangfang615/Tuberculosis/blob/master/scripts/FileDownload.pbs | Github Open Source | Open Source | Apache-2.0 | 2,017 | Tuberculosis | zhangfang615 | Shell | Code | 19 | 147 | #!/bin/bash
#PBS -N TB_DOWNLOAD_SAMPLES
#PBS -M fza34@sfu.ca
#PBS -l walltime=72:00:00
#PBS -l nodes=1:ppn=8,mem=64gb
cd /global/scratch/zhf615/MALAWI/data/fastq/
python ../../scripts/FileDownload.py /global/scratch/zhf615/MALAWI/input/samples_list_0.txt /global/scratch/zhf615/MALAWI/log_fastq_download
| 25,470 |
https://github.com/jeremylcarter/PartitionCache/blob/master/PartitionCache/ProducerPartitionCache.cs | Github Open Source | Open Source | MIT | 2,014 | PartitionCache | jeremylcarter | C# | Code | 56 | 139 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PartitionCache
{
/// <summary>
/// Producer and matching Partition Cache
/// </summary>
public class ProducerPartitionCache
{
public ProducerPartitionCache(string s... | 56,562 |
https://github.com/Masterlupo/CyclopsCore/blob/master/src/main/java/org/cyclops/cyclopscore/config/extendedconfig/EnchantmentConfig.java | Github Open Source | Open Source | MIT | 2,021 | CyclopsCore | Masterlupo | Java | Code | 119 | 403 | package org.cyclops.cyclopscore.config.extendedconfig;
import net.minecraft.enchantment.Enchantment;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.IForgeRegistry;
import org.cyclops.cyclopscore.config.ConfigurableType;
import org.cyclops.cyclopscore.init.ModBase;
import ja... | 39,720 |
https://github.com/MysoftEOP/log4net.CLog/blob/master/log4net.CLog/Models/LogstashUri.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | log4net.CLog | MysoftEOP | C# | Code | 119 | 463 | using System;
using System.Collections.Specialized;
using log4net.CLog.Utilities;
namespace log4net.CLog.Models
{
public class LogstashUri
{
private readonly StringDictionary _connectionStringParts;
LogstashUri(StringDictionary connectionStringParts)
{
_connectionStringPar... | 29,977 |
https://github.com/GarrettMaury7921/GarousomesWorld/blob/master/java/garousomes_world/GarrettIngot.java | Github Open Source | Open Source | MIT | null | GarousomesWorld | GarrettMaury7921 | Java | Code | 11 | 34 | package garousomes_world;
import net.minecraft.item.Item;
public class GarrettIngot extends Item {
}
| 13,811 |
https://github.com/kmalysiak/raspi-dashboard/blob/master/src/main/java/pl/raspi/dashboard/configurations/RequestLoggingFilterConfig.java | Github Open Source | Open Source | MIT | 2,020 | raspi-dashboard | kmalysiak | Java | Code | 60 | 307 | package pl.raspi.dashboard.configurations;
import org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import o... | 50,173 |
https://github.com/HACKSON9988/DiscordInjections/blob/master/elements/SettingsTabs.jsx | Github Open Source | Open Source | MIT | null | DiscordInjections | HACKSON9988 | null | Spoken | 123 | 412 | const React = require('react')
module.exports = class Tabs extends React.PureComponent {
constructor (props, context) {
super(props, context)
this.state = {
activeTabIndex: this.props.defaultActiveTabIndex || 0
}
this.handleTabClick = this.handleTabClick.bind(this)
}
handleTabClick (tabInd... | 42,911 |
https://github.com/NicholasAzar/python-recommender/blob/master/tests/unit/gapic/v1beta1/test_recommender_client_v1beta1.py | Github Open Source | Open Source | Apache-2.0 | null | python-recommender | NicholasAzar | Python | Code | 1,210 | 4,877 | # -*- coding: utf-8 -*-
#
# Copyright 2020 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 22,750 |
https://github.com/mpatrickaires/design-patterns-learning/blob/master/creational/Prototype/Prototype/After/ShallowCopy/Models/Characters/Mage.cs | Github Open Source | Open Source | MIT | null | design-patterns-learning | mpatrickaires | C# | Code | 66 | 202 | using Prototype.After.ShallowCopy.Models.Attacks;
namespace Prototype.After.ShallowCopy.Models.Characters
{
public class Mage : Character
{
public int Mana { get; set; }
public Mage(int health, int speed, Attack attack, int mana) : base(health, speed, attack)
{
Mana = mana... | 15,930 |
https://github.com/bpark/companion-sentiment-micro/blob/master/Dockerfile | Github Open Source | Open Source | Apache-2.0 | 2,018 | companion-sentiment-micro | bpark | Dockerfile | Code | 30 | 143 | FROM openjdk:8-jre-alpine
ENV JAVA_APP_JAR companion-sentiment-micro-1.0-SNAPSHOT-fat.jar
EXPOSE 5701 54327
COPY target/$JAVA_APP_JAR /app/
RUN chmod 777 /app/
WORKDIR /app/
ENTRYPOINT ["sh", "-c"]
CMD ["exec java -XX:+UnlockDiagnosticVMOptions -XX:NativeMemoryTracking=summary -XX:+PrintNMTStatistics $JAVA_OPTIONS ... | 47,205 |
https://github.com/connorimes/GraphZ/blob/master/inc/Context.hpp | Github Open Source | Open Source | MIT | 2,019 | GraphZ | connorimes | C++ | Code | 204 | 744 | #ifndef CONTEXT_HPP
#define CONTEXT_HPP
#include <stxxl/queue>
#include "GraphProperty.hpp"
#include "OpManager.hpp"
#include "VertexManager.hpp"
#define QUEUE_LEN 10000
class Context {
public:
int nr_thread;
int cur_iter;
stxxl::queue<vertex_id> **even_active_vertices;
stxxl::queue<vertex_id> **od... | 12,422 |
https://github.com/raphaelbertholucci/Musike/blob/master/data/src/test/kotlin/com/bertholucci/data/TrackRepositoryImplTest.kt | Github Open Source | Open Source | Apache-2.0 | null | Musike | raphaelbertholucci | Kotlin | Code | 112 | 488 | package com.bertholucci.data
import com.bertholucci.data.database.MusikeDao
import com.bertholucci.data.mapper.TrackResponseMapper
import com.bertholucci.data.model.MusicMatches
import com.bertholucci.data.model.MusicResponse
import com.bertholucci.data.model.MusicResults
import com.bertholucci.data.model.MusicTracks
... | 50,510 |
https://github.com/aws/eks-distro/blob/master/projects/kubernetes-sigs/metrics-server/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,022 | eks-distro | aws | Makefile | Code | 25 | 221 | BASE_DIRECTORY=$(shell git rev-parse --show-toplevel)
GIT_TAG?=$(shell cat $(RELEASE_BRANCH)/GIT_TAG)
GOLANG_VERSION?=$(shell cat ./$(RELEASE_BRANCH)/GOLANG_VERSION)
REPO=metrics-server
COMPONENT=kubernetes-sigs/$(REPO)
LICENSE_PACKAGE_FILTER=./cmd/metrics-server
BINARY_TARGET=$(OUTPUT_BIN_DIR)/linux-amd64/metrics-s... | 19,759 |
https://github.com/xcoulon/operator-role-linter/blob/master/make/test.mk | Github Open Source | Open Source | Apache-2.0 | null | operator-role-linter | xcoulon | Makefile | Code | 81 | 225 | ############################################################
#
# (local) Tests
#
############################################################
.PHONY: test
## runs the tests without coverage
test:
@echo "running the tests without coverage..."
$(Q)go test ${V_FLAG} -race $(shell go list ./... ) -failfast
###########... | 13,558 |
https://github.com/bboysokol/altv-phone/blob/master/src/components/Phone/elements/Screen.tsx | Github Open Source | Open Source | MIT | 2,021 | altv-phone | bboysokol | TypeScript | Code | 107 | 311 | import { Flex } from '@chakra-ui/layout';
import { keyframes } from '@chakra-ui/system';
import React from 'react';
import { MainButton } from './MainButton';
import { StatusBar } from './StatusBar/StatusBar';
const scaleUp = keyframes`
0% {
opacity: 0.2;
transform: scale(1.05);
}
100% {
... | 28,139 |
https://github.com/kmestry/PROBLEM_SOLVING_HACKERRANK_LEETCODE/blob/master/src/com/leetcode/LengthOfLastWord.java | Github Open Source | Open Source | MIT | null | PROBLEM_SOLVING_HACKERRANK_LEETCODE | kmestry | Java | Code | 73 | 187 | package com.leetcode;
public class LengthOfLastWord {
public int lengthOfLastWord(String s) {
String[] array = s.split(" ");
if (array.length == 0) return 0;
return array[array.length - 1].length();
}
public int lengthOfLastWordOptimized(String inputString) {
// inputSt... | 52,272 |
https://github.com/vishnumad/NBAScores/blob/master/app/src/main/java/io/github/vishnumad/nbascores/remote/entities/RefereeRaw.kt | Github Open Source | Open Source | Apache-2.0 | null | NBAScores | vishnumad | Kotlin | Code | 26 | 93 | package io.github.vishnumad.nbascores.remote.entities
import com.squareup.moshi.Json
data class RefereeRaw(
@field:Json(name = "fn") val firstName: String,
@field:Json(name = "ln") val lastName: String,
@field:Json(name = "num") val number: String
) | 29,079 |
https://github.com/atomicjolt/adhesion/blob/master/db/migrate/20170119212353_remove_teacher_fields_from_assigned_exams.rb | Github Open Source | Open Source | MIT | 2,020 | adhesion | atomicjolt | Ruby | Code | 22 | 100 | class RemoveTeacherFieldsFromAssignedExams < ActiveRecord::Migration
def change
remove_column :assigned_exams, :instructor_id
remove_column :assigned_exams, :instructor_name
add_column :assigned_exams, :message, :string
change_column_default :assigned_exams, :status, "pending"
end
end
| 11,042 |
https://github.com/ZioVio/libprogbase/blob/master/include/progbase/clock.h | Github Open Source | Open Source | MIT | 2,019 | libprogbase | ZioVio | C | Code | 92 | 286 | /** @file
@brief Clock module
*/
#pragma once
//#define _XOPEN_SOURCE 700 // to enable struct timespec and clock_gettime
#define _XOPEN_SOURCE 700
//#define _POSIX_C_SOURCE 200112L
#include <sys/stat.h>
#include <time.h>
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
#incl... | 42,297 |
https://github.com/holzschu/Carnets/blob/master/Library/lib/python3.7/site-packages/networkx/linalg/__init__.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | Carnets | holzschu | Python | Code | 34 | 145 | from networkx.linalg.attrmatrix import *
import networkx.linalg.attrmatrix
from networkx.linalg.spectrum import *
import networkx.linalg.spectrum
from networkx.linalg.graphmatrix import *
import networkx.linalg.graphmatrix
from networkx.linalg.laplacianmatrix import *
import networkx.linalg.laplacianmatrix
from network... | 10,630 |
https://github.com/lswqzhang/dianping-taurus/blob/master/crane-web/src/main/java/com/cip/crane/restlet/utils/JsonUtils.java | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,016 | dianping-taurus | lswqzhang | Java | Code | 310 | 1,075 | package com.cip.crane.restlet.utils;
import java.util.*;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by kirinli on 14-9-30.
*/
public class JsonUtils {
/**
* 将json字符串转换为List集合
*
* @param jsonArrStr
* @return
*/
public static Li... | 45,470 |
https://github.com/sjtrny/MatteKit/blob/master/thirdparty/vlfeat/Makefile.mak | Github Open Source | Open Source | MIT | 2,021 | MatteKit | sjtrny | Makefile | Code | 1,453 | 5,878 | # file: Makefile.mak
# authors: Andrea Vedaldi and Brian Fulkerson
# descrption: Microsoft NMake makefile
# --------------------------------------------------------------------
# Customization
# ------------------------------------------------------------... | 3,246 |
https://github.com/mzainulabedin/mzainulabedin.github.io/blob/master/config/settings.js | Github Open Source | Open Source | MIT | null | mzainulabedin.github.io | mzainulabedin | JavaScript | Code | 14 | 51 | 'use strict';
define(['app'], function (app) {
app.constant('settings', {
'url': 'http://localhost:8062',
'version': 0.1
})
}); | 14,322 |
https://github.com/RalphMao/kaldi-pynnet/blob/master/src/nnet/nnet-blob.h | Github Open Source | Open Source | Apache-2.0 | null | kaldi-pynnet | RalphMao | C | Code | 169 | 688 |
#ifndef NNET_BLOB
#define NNET_BLOB
#include "matrix/kaldi-matrix.h"
#include "matrix/kaldi-vector.h"
#include <vector>
#include <iostream>
namespace kaldi {
namespace nnet1 {
template<typename Real>
class Blob {
public:
Blob(CuMatrix<Real> &M);
Blob(CuVector<Real> &V);
~Blob(){ delete []... | 53,514 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.