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/th0mas/Gromits/blob/master/firmware/frontend/src/lib/stream/P2PStream.ts | Github Open Source | Open Source | MIT | null | Gromits | th0mas | TypeScript | Code | 537 | 1,775 | /*
P2PStream is the main interface for creating and managing streams.
It uses RTCStream (a simple abstraction over the native WebRTCConnection) to
establish the connections and provides a mechanism for signals to be sent and
received from them using the global application signaller.
If possible, try and avoid touch... | 50,568 |
https://github.com/er3n/moli-server/blob/master/src/auth/constants.ts | Github Open Source | Open Source | MIT | null | moli-server | er3n | TypeScript | Code | 27 | 91 | export const jwtConstants = {
secret: 'secretKey',
};
export const password_salt = '$2a$10$IZAykNrwfKHcpcoVcSQOsO';
export enum Role {
ADMIN = 'ADMIN',
EMPLOYEE = 'EMPLOYEE',
CUSTOMER = 'CUSTOMER',
}
| 13,729 |
https://github.com/anselmobd/fo2/blob/master/src/insumo/migrations/0002_sugestaocompra_create_at.py | Github Open Source | Open Source | MIT | 2,023 | fo2 | anselmobd | Python | Code | 42 | 149 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-11-07 13:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('insumo', '0001_initial'),
]
operations = [
migrations.AddField(
... | 11,151 |
https://github.com/bsse1017kavi/Dissection-of-CodeRep/blob/master/src/results/bugged/Dataset3/14258.txt | Github Open Source | Open Source | Apache-2.0 | 2,019 | Dissection-of-CodeRep | bsse1017kavi | Java | Code | 1,525 | 5,514 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | 12,275 |
https://github.com/zmrbak/WpfNotepad/blob/master/配套代码/WpfNotepad50/WpfNotepad/ViewModels/ViewViewModel.cs | Github Open Source | Open Source | MIT | 2,020 | WpfNotepad | zmrbak | C# | Code | 150 | 477 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using WpfNotepad.Helpers;
using WpfNotepad.Models;
namespace WpfNotepad.ViewModels
{
public class ViewViewModel
{
public ViewViewModel(DocumentModel documentModel)
... | 11,425 |
https://github.com/nguenminhtoan/luanvan/blob/master/web_online/nbproject/autocomplete/__l4_auto_complete__.php | Github Open Source | Open Source | MIT | 2,021 | luanvan | nguenminhtoan | PHP | Code | 20,000 | 30,183 | <?php /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2013 Oracle and/or its affiliates. All rights reserved. * * Oracle and Java are registered trademarks of Oracle and/or its affiliates. * Other names may be trademarks of their respective owners. * * The contents of this file are subject t... | 1,209 |
https://github.com/Paysafecard-DEV/ppl-purchase-sdk-php/blob/master/src/Model/Account.php | Github Open Source | Open Source | MIT | null | ppl-purchase-sdk-php | Paysafecard-DEV | PHP | Code | 385 | 1,074 | <?php
/**
* Purchase API
* @copyright Copyright (c) 2020 Paysafe Pay Later
* @license see LICENSE.TXT
*
* This class is based on the Paysafe Pay Later OpenAPI specification, version 1.0.0.
*/
declare(strict_types=1);
namespace Paysafe\PayLater\Model;
// phpcs:disable ObjectCalisthenics.Metrics.MethodPerClassL... | 26,337 |
https://github.com/Szauka/ts-express-decorators/blob/master/integration/passport-azure-ad/client/src/app/start/start.component.ts | Github Open Source | Open Source | MIT | 2,019 | ts-express-decorators | Szauka | TypeScript | Code | 259 | 1,012 | import {Component, OnInit} from "@angular/core";
import {FormControl, FormGroup} from "@angular/forms";
import {HttpClient} from "@angular/common/http";
import {Ng4LoadingSpinnerService} from "ng4-loading-spinner";
import {ToasterService} from "angular2-toaster";
import {AuthService} from "../services/core/azureAd/Aut... | 40,798 |
https://github.com/bug-assassin/TraktTV/blob/master/app/src/main/java/com/pixis/traktTV/screen_main_old/MainActivity.kt | Github Open Source | Open Source | Apache-2.0 | 2,017 | TraktTV | bug-assassin | Kotlin | Code | 184 | 903 | package com.pixis.traktTV.screen_main_old
/*
import android.content.Intent
import android.os.Bundle
import android.support.design.widget.FloatingActionButton
import android.support.design.widget.Snackbar
import android.support.v4.widget.SwipeRefreshLayout
import android.view.Menu
import android.view.MenuItem
import but... | 35,571 |
https://github.com/FanChael/mvvm/blob/master/librarys/lib_common/src/main/java/com/hl/base_module/util/time/TimeUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | mvvm | FanChael | Java | Code | 76 | 229 | package com.hl.base_module.util.time;
/**
* 时间工具类
*@Author: hl
*@Date: created at 2020/3/27 14:39
*@Description: com.hl.base_module.util
*/
public class TimeUtil {
private static long lastClickTime;
private static final int CLICK_TIME = 800; //快速点击间隔时间
/**
*@Author: hl
*@Date: created at 2020/3/2... | 6,325 |
https://github.com/joshleeb/carbon-notes/blob/master/src/render.rs | Github Open Source | Open Source | MIT | 2,020 | carbon-notes | joshleeb | Rust | Code | 313 | 1,184 | use self::{
code::{CodeBlock, SyntaxHighlighter},
header::HeaderStart,
mathjax::MathjaxPolicy,
note::Note,
stylesheet::Stylesheet,
};
use pulldown_cmark::{html, Event, Parser, Tag};
use std::io;
pub mod code;
pub mod index;
pub mod mathjax;
pub mod note;
pub mod stylesheet;
mod header;
mod templat... | 37,489 |
https://github.com/Auntie233/quasar-sika-design/blob/master/quasar-sika-design-server/sika-code-core/standard-footer/src/main/java/com/sika/code/standard/db/algorithm/datasource/DefaultDataSourceShardingAlgorithm.java | Github Open Source | Open Source | MIT | 2,022 | quasar-sika-design | Auntie233 | Java | Code | 89 | 410 | package com.sika.code.standard.db.algorithm.datasource;
import com.google.common.collect.Maps;
import io.shardingjdbc.core.api.algorithm.sharding.PreciseShardingValue;
import io.shardingjdbc.core.api.algorithm.sharding.standard.PreciseShardingAlgorithm;
import lombok.extern.slf4j.Slf4j;
import java.util.Collection;
i... | 19,284 |
https://github.com/CharcoalStyles/PRG/blob/master/Source/com/charcoalStyles/eti/GenVars.hx | Github Open Source | Open Source | MIT | 2,014 | PRG | CharcoalStyles | Haxe | Code | 68 | 183 | package com.charcoalStyles.eti;
/**
* ...
* @author Aaron
*/
class GenVars
{
public static var rlGridWidth:Int;
public static var rlGridHeight:Int;
public static var caR:Float;
public static var caM:Int;
public static var caT:Int;
public static var caN:Int;
public static var caBorder:Int;
public stat... | 24,801 |
https://github.com/gisvr/hd-address-sign/blob/master/test/mint/repay.test.js | Github Open Source | Open Source | Apache-2.0 | null | hd-address-sign | gisvr | JavaScript | Code | 149 | 844 | let EthContract = require("../../lib/utils/ethContract")
let url = "https://ropsten.infura.io/v3/393758f6317645be8a1ee94a874e12d9"
// mint
let lpCoreAddress = "0xCaec37116D4626CcC378A897B01a0F93f379583E"
let lpAddress = "0xE1B7eb81D06aA3c1DEa15082fa94BA2EBB26DFE7"
let lpAbi = require("./abi/LendingPool.json")
let e... | 39,615 |
https://github.com/Apparence-io/pal-plugin/blob/master/test/services/client/in_app_user/in_app_user_client_service_test.dart | Github Open Source | Open Source | BSD-3-Clause | 2,021 | pal-plugin | Apparence-io | Dart | Code | 583 | 2,846 | import 'dart:io';
import 'package:flutter_test/flutter_test.dart';
import 'package:http/http.dart';
import 'package:mocktail/mocktail.dart';
import 'package:pal/src/database/entity/in_app_user_entity.dart';
import 'package:pal/src/database/hive_client.dart';
import 'package:pal/src/database/repository/in_app_user_repo... | 321 |
https://github.com/RiBoysen/Bookify/blob/master/Bookify/Bookify.App/Bookify.App.Sdk/Implementations/FilesApi.cs | Github Open Source | Open Source | MIT | 2,016 | Bookify | RiBoysen | C# | Code | 87 | 263 | using System.Threading.Tasks;
using Bookify.App.Sdk.Interfaces;
namespace Bookify.App.Sdk.Implementations
{
public class FilesApi : BaseApi, IFilesApi
{
/// <summary>
/// Initializes a new instance of the <see cref="FilesApi"/> class.
/// </summary>
public FilesApi()
... | 11,020 |
https://github.com/sheelprabhakar/cassandra/blob/master/accesslog-client/src/main/java/com/code4copy/websiteaccess/client/service/api/AccessLogService.java | Github Open Source | Open Source | Apache-2.0 | null | cassandra | sheelprabhakar | Java | Code | 16 | 71 | package com.code4copy.websiteaccess.client.service.api;
import com.code4copy.websiteaccess.client.entity.AccessLog;
import java.io.Closeable;
public interface AccessLogService extends Closeable {
void save(AccessLog log);
}
| 1,322 |
https://github.com/gitter-badger/core-7/blob/master/documentation/annotated.js | Github Open Source | Open Source | MIT | 2,015 | core-7 | gitter-badger | JavaScript | Code | 70 | 310 | var annotated =
[
[ "autoloader", "classautoloader.html", "classautoloader" ],
[ "base_controller", "classbase__controller.html", "classbase__controller" ],
[ "base_model", "classbase__model.html", "classbase__model" ],
[ "db_driver", "interfacedb__driver.html", "interfacedb__driver" ],
[ "driver_fa... | 41,448 |
https://github.com/tonistiigi/go-ipfs/blob/master/server/http/http.go | Github Open Source | Open Source | MIT | 2,015 | go-ipfs | tonistiigi | Go | Code | 178 | 753 | // package http implements an http server that serves static content from ipfs
package http
import (
"fmt"
"io"
"net/http"
mux "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/gorilla/mux"
ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
manet "github.com/jbenet/go-... | 3,909 |
https://github.com/xzyxyz/conan/blob/master/conan-agent/src/main/java/com/tal/wangxiao/conan/agent/ConanAgentApplication.java | Github Open Source | Open Source | MIT | 2,021 | conan | xzyxyz | Java | Code | 57 | 351 | package com.tal.wangxiao.conan.agent;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.spri... | 3,293 |
https://github.com/blahami2/MI-PAA-Knapsack-evaluator/blob/master/src/cz/blahami2/mipaa/knapsack/model/algorithm/evolution/KnapsackConfig.java | Github Open Source | Open Source | MIT | 2,016 | MI-PAA-Knapsack-evaluator | blahami2 | Java | Code | 166 | 654 | package cz.blahami2.mipaa.knapsack.model.algorithm.evolution;
import cz.blahami2.mipaa.knapsack.model.Knapsack;
import cz.blahami2.mipaa.knapsack.model.algorithm.SimulatedEvolution;
/**
*
* @author Michael Bláha
*/
public class KnapsackConfig extends cz.blahami2.mipaa.knapsack.model.KnapsackConfig implements Simul... | 16,680 |
https://github.com/enridaga/pprreasoner/blob/master/ppr-evaluation/results-submitted/use-cases.txt.monitor.29.4 | Github Open Source | Open Source | MIT | null | pprreasoner | enridaga | null | Spoken | 838 | 2,872 | #29 #4 - -c 0 -r Prolog -k EVOLVED -d /Users/ed4565/Workspaces/TheWS/ppreasoner/ppr-evaluation/use-cases/DBREC-7 -q http://purl.org/datanode/ex/0.2/DBREC/7#output
75721 19.8 0.2 8199676 27228
75721 116.6 0.3 8200712 45856
75721 148.8 0.7 8210012 120012
75721 238.7 0.8 8207708 126348
75721 179.7 0.8 8207708... | 53,447 |
https://github.com/Henry-YSLin/SortingVisualizer/blob/master/SortingVisualizer/Views/Visualizer/VisualizationRenderer.xaml.cs | Github Open Source | Open Source | MIT | null | SortingVisualizer | Henry-YSLin | C# | Code | 159 | 541 | using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using SortingVisualizer.Visualizer;
namespace SortingVisualizer.Views.Visualizer;
public partial class VisualizationRenderer : UserControl
{
public VisualizationRenderer()
{
InitializeComponent();
}
... | 40,911 |
https://github.com/wilgit/kos/blob/master/src/Wilson/WilsonBundle/Form/EnquiryType.php | Github Open Source | Open Source | MIT | 2,013 | kos | wilgit | PHP | Code | 38 | 174 | <?php
// src/Wilson/WilsonBundle/Form/EnquiryType.php
namespace Wilson\WilsonBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormBuilderInterface;
class EnquiryType extends AbstractType
{
public function buildForm(FormBuilderInterface $bui... | 29,402 |
https://github.com/salsify/zaius/blob/master/src/index.ts | Github Open Source | Open Source | MIT | 2,022 | zaius | salsify | TypeScript | Code | 168 | 387 | import { applyRules, extractRules, memoizeRule, compileRule, Rule, RULES } from './rules';
import { CapturedValues, MatchedValue } from './types';
export { simple, match, sequence, subtree, choice } from './binding-matchers';
export { default as rest } from './rest';
export { Rule } from './rules';
export { Matcher }... | 38,218 |
https://github.com/lalifeier/vvgo/blob/master/app/auth/service/internal/data/ent/user/where.go | Github Open Source | Open Source | MIT | null | vvgo | lalifeier | Go | Code | 1,613 | 4,855 | // Code generated by entc, DO NOT EDIT.
package user
import (
"time"
"entgo.io/ent/dialect/sql"
"github.com/lalifeier/vvgo-mall/app/auth/service/internal/data/ent/predicate"
)
// ID filters vertices based on their ID field.
func ID(id int) predicate.User {
return predicate.User(func(s *sql.Selector) {
s.Where... | 22,376 |
https://github.com/amitness/talks/blob/master/data-science-in-the-cloud/client-side-ml/index.js | Github Open Source | Open Source | MIT | 2,019 | talks | amitness | JavaScript | Code | 227 | 649 | const classifier = knnClassifier.create();
const webcamElement = document.getElementById('webcam');
let net;
async function app(){
console.log( 'Loading mobilenet..')
// Load the model.
net = await mobilenet.load();
console.log('Sucessfully loaded model');
await setupWebcam();
// Reads an image from t... | 24,459 |
https://github.com/Rotron/Pama/blob/master/ui/lobby.gd | Github Open Source | Open Source | Apache-2.0, MIT | 2,017 | Pama | Rotron | GDScript | Code | 440 | 2,819 | extends Control
var colorlist
var lobby_state = 0
const idx_state = {
"idle" :0,#no request, stop processing
"sa_update_ms" :1,#satyr is updating the ms
"ny_get_list" :2#nymph is getting the list
}
var timeout = [0,10]
#nodes
var ny_select#main screen after nymph selection
var ny_srv_list#serverlist co... | 54,583 |
https://github.com/bilalimrani/webstack-internal/blob/master/src/components/Theme/Typography/Typography.tsx | Github Open Source | Open Source | MIT | null | webstack-internal | bilalimrani | TypeScript | Code | 50 | 210 | import { Typography } from '@mui/material';
import styles from './Typography.module.scss';
const TypographyComp = () => {
return (
<>
<Typography variant='h4'>Typography</Typography>
<span><strong>Font:</strong> Averta</span>
<div className={styles.container}>
... | 24,184 |
https://github.com/matthiaskrgr/CF3/blob/master/testsuite/EXP_2/test390.c | Github Open Source | Open Source | MIT | 2,017 | CF3 | matthiaskrgr | C | Code | 8,260 | 25,986 |
/*
CF3
Copyright (c) 2015 ishiura-lab.
Released under the MIT license.
https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md
*/
#include<stdio.h>
#include<stdint.h>
#include<stdlib.h>
#include"test1.h"
int16_t x4 = INT16_MAX;
volatile uint64_t t1 = 928LLU;
int64_t x15 = INT64_MAX;
volatile int8_t x16 = INT8_MAX... | 14,177 |
https://github.com/rushic24/temp-sms-watcher/blob/master/numberGen/smsreceivefree.py | Github Open Source | Open Source | MIT | 2,022 | temp-sms-watcher | rushic24 | Python | Code | 114 | 495 | import os
import json
import time
import random
import requests
from lxml import html
class util:
def getCC(self,country):
filepath = os.path.join(os.path.dirname(__file__),'countryCode.json')
with open(filepath) as jsonFile:
data = json.load(jsonFile)
return data[country]
clas... | 1,472 |
https://github.com/reef-pi/reef-pi/blob/master/front-end/src/redux/actions/info.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | reef-pi | reef-pi | JavaScript | Code | 39 | 102 | import { reduxGet } from '../../utils/ajax'
export const infoLoaded = (info) => {
document.title = info.name
return ({
type: 'INFO_LOADED',
payload: info
})
}
export const fetchInfo = () => {
return (reduxGet({
url: '/api/info',
success: infoLoaded
}))
}
| 41,868 |
https://github.com/thrawn01/logrus-hooks/blob/master/common/common.go | Github Open Source | Open Source | Apache-2.0 | null | logrus-hooks | thrawn01 | Go | Code | 308 | 923 | package common
import (
"encoding/json"
"fmt"
"net/http"
"runtime"
"strings"
"github.com/Sirupsen/logrus"
"github.com/mailgun/holster/stack"
)
func ExpandNested(key string, value interface{}, dest map[string]interface{}) {
if strings.ContainsRune(key, '.') {
parts := strings.SplitN(key, ".", 2)
// This n... | 25,072 |
https://github.com/revol300/revol300.github.io/blob/master/posts.json | Github Open Source | Open Source | MIT | 2,022 | revol300.github.io | revol300 | JavaScript | Code | 61 | 156 | <!-- /posts.json -->
---
---
{% capture json %}
{
"posts": [
{% for post in site.posts %}
{
"title": "{{ post.title }}",
"date": "{{ post.date | date: "%Y-%m-%d"}}",
"categories": {{ post.categories | jsonify }},
"url": "{{ post.url }}"
}
{% unless forloop.last %},{% endunless ... | 35,756 |
https://github.com/bkkoo/flow/blob/master/curaccumpv/src/main/scala/net/shantitree/flow/curaccumpv/model/CurAccumPVLog.scala | Github Open Source | Open Source | Apache-2.0 | 2,014 | flow | bkkoo | Scala | Code | 192 | 782 | package net.shantitree.flow.curaccumpv.model
import java.util.Date
import com.orientechnologies.orient.core.metadata.schema.OClass.INDEX_TYPE._
import com.tinkerpop.blueprints.Vertex
import net.shantitree.flow.sys.lib.{TSysLogVW, TSysLogField}
import net.shantitree.flow.sys.lib.model.{Model, ModelDef, TVertexWrapper,... | 14,679 |
https://github.com/kipmin/WeatherBulletin/blob/master/app/src/main/java/com/kipmin/weatherbulletin/Utility/Utility.java | Github Open Source | Open Source | Apache-2.0 | null | WeatherBulletin | kipmin | Java | Code | 144 | 492 | package com.kipmin.weatherbulletin.Utility;
import android.util.Log;
import com.google.gson.Gson;
import com.kipmin.weatherbulletin.Gson.Weather.Weather;
import org.json.JSONArray;
import org.json.JSONObject;
/**
* Created by yzl91 on 2017/9/18.
*/
public class Utility {
// public static boolean handleCity (... | 13,194 |
https://github.com/RobKohr/foosratings.com/blob/master/public/main.js | Github Open Source | Open Source | MIT | 2,012 | foosratings.com | RobKohr | JavaScript | Code | 120 | 586 | $(document).ready(function(){
var setGame = function(game){
$('#field_game').val(game);
hideThese(['#games', '#form_match', '#about']);
showThese(['#match_types']);
var match_type = $('#field_match_type').val();
if(match_type)
setMatchType(match_type);
};
var setMatchType = function(match_type){... | 31,100 |
https://github.com/84k-org/blog/blob/master/src/server/routes/operations/index.js | Github Open Source | Open Source | MIT | 2,022 | blog | 84k-org | JavaScript | Code | 43 | 138 | import getUnpublish from './get/unpublish'
import getDelete from './get/delete'
import postSubmit from './post/submit'
import postEdit from './post/edit'
import postReject from './post/reject'
import postCreate from './post/create'
import postUpdate from './post/update'
import postDuplicate from './post/duplicate'
exp... | 1,133 |
https://github.com/khaledmostafaismaiel/qurancloud/blob/master/resources/views/layouts/master_layout.blade.php | Github Open Source | Open Source | MIT | null | qurancloud | khaledmostafaismaiel | PHP | Code | 12 | 71 | <!DOCTYPE html>
<html>
@include('layouts/head')
@include('layouts/error_messages')
<div id="master_view" class="master_view">
@yield('content')
</div>
@include('layouts/footer')
</html>
| 19,497 |
https://github.com/seaweediman/tp/blob/master/src/test/java/seedu/address/logic/position/AddPositionCommandTest.java | Github Open Source | Open Source | MIT | null | tp | seaweediman | Java | Code | 663 | 1,972 | package seedu.address.logic.position;
import static java.util.Objects.requireNonNull;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static seedu.address.testutil.Assert.assertThrows;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.function.Predica... | 47,947 |
https://github.com/atweiden/voidpkgs/blob/master/srcpkgs/perl-Business-ISBN-Data/template | Github Open Source | Open Source | Unlicense, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,023 | voidpkgs | atweiden | Shell | Code | 26 | 230 | maintainer="nox"
pkgname="perl-Business-ISBN-Data"
version=20210112.006
revision=1
short_desc="Business::ISBN::Data - data pack for Business::ISBN"
depends="perl"
makedepends="perl"
hostmakedepends="perl"
homepage="https://metacpan.org/release/Business-ISBN-Data/"
license="Artistic-1.0-Perl, GPL-1.0-or-later"
distfiles... | 2,753 |
https://github.com/boundedinfinity/commons/blob/master/pipeline/pipeline_try_test.go | Github Open Source | Open Source | MIT | null | commons | boundedinfinity | Go | Code | 40 | 209 | package pipeline_test
import (
"testing"
"github.com/boundedinfinity/commons/pipeline"
"github.com/boundedinfinity/commons/strings"
"github.com/boundedinfinity/commons/try"
"github.com/stretchr/testify/assert"
)
func Test_Pipeline_Try(t *testing.T) {
step1 := func(s string) try.Try[string] {
return try.Succe... | 48,241 |
https://github.com/aik099/svn-buddy/blob/master/tests/SVNBuddy/Cache/CacheManagerTest.php | Github Open Source | Open Source | BSD-3-Clause | null | svn-buddy | aik099 | PHP | Code | 199 | 904 | <?php
/**
* This file is part of the SVN-Buddy library.
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @copyright Alexander Obuhovich <aik.bold@gmail.com>
* @link https://github.com/console-helpers/svn-buddy
*/
namespace Test... | 29,198 |
https://github.com/ertprs/cursoamais/blob/master/system/templates/cad/fields/sn.php | Github Open Source | Open Source | MIT | 2,019 | cursoamais | ertprs | PHP | Code | 92 | 316 | <?php
$id = preg_replace("/[^0-9a-zA-Z]/", "", $this->id);
?>
<div class="control-group f" id="f<?= $id ?>">
<label class="control-label" for="<?= $this->fieldName ?>"><?= $this->Label; ?></label>
<div class="controls">
<input type="radio"
name="<?= $this->fieldName ?>" style="float: lef... | 34,053 |
https://github.com/cloudinary/CloudinaryDotNet/blob/master/CloudinaryDotNet/Search/SearchFoldersFluent.cs | Github Open Source | Open Source | MIT | 2,023 | CloudinaryDotNet | cloudinary | C# | Code | 166 | 514 | namespace CloudinaryDotNet
{
using System.Threading;
using System.Threading.Tasks;
using CloudinaryDotNet.Actions;
/// <summary>
/// Advanced search provider. Allows you to retrieve information on all the folder in your account with the help of
/// query expressions in a Lucene-like query lang... | 39,693 |
https://github.com/shaderecker/openstack-org/blob/master/summit/code/infrastructure/active_records/events/presentations/PresentationMaterial.php | Github Open Source | Open Source | Apache-2.0 | 2,021 | openstack-org | shaderecker | PHP | Code | 315 | 878 | <?php
/**
* Copyright 2015 OpenStack Foundation
* 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... | 14,201 |
https://github.com/NathanSzu/JavaScript30/blob/master/assets/home.js | Github Open Source | Open Source | Unlicense | null | JavaScript30 | NathanSzu | JavaScript | Code | 65 | 343 | $(document).ready(function () {
// Activate Carousel
$("#JS30").carousel({ interval: false });
// Enable Carousel Indicators
$(".item1").click(function () {
$("#myCarousel").carousel(0);
});
$(".item2").click(function () {
$("#myCarousel").carousel(1);
});
$(".item3").... | 27,729 |
https://github.com/ajaishankar/pg-tusk/blob/master/src/table.ts | Github Open Source | Open Source | BSD-3-Clause | 2,022 | pg-tusk | ajaishankar | TypeScript | Code | 137 | 343 | import * as _ from 'lodash'
import { Columns } from './columns'
import { TableBase } from './base'
import { Join, Joinable, JoinTable } from './join'
export type TableSchema<U> = U extends Table<infer T> ? T : never
export class Table<T extends object> extends TableBase {
readonly columns: Columns<T>
private name... | 10,036 |
https://github.com/DANS-KNAW/dans-dp-lib/blob/master/src/main/java/nl/knaw/dans/common/dataperfect/DefaultSettings.java | Github Open Source | Open Source | Apache-2.0 | null | dans-dp-lib | DANS-KNAW | Java | Code | 140 | 306 | /**
* Copyright (C) 2009-2016 DANS - Data Archiving and Networked Services (info@dans.knaw.nl)
*
* 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/license... | 8,601 |
https://github.com/joaopalmeiro/awesome-package-visual-identity/blob/master/.alexrc.js | Github Open Source | Open Source | CC0-1.0 | 2,020 | awesome-package-visual-identity | joaopalmeiro | JavaScript | Code | 28 | 56 | // Use a "maybe" level of profanity instead of the default "unlikely".
exports.profanitySureness = 1;
// Changing default to catch all instances of gendered language.
exports.noBinary = true;
| 43,654 |
https://github.com/ScalablyTyped/ScalajsReactTyped/blob/master/a/ast-types/src/main/scala/typingsJapgolly/astTypes/buildersMod/TSUnionTypeBuilder.scala | Github Open Source | Open Source | MIT | 2,022 | ScalajsReactTyped | ScalablyTyped | Scala | Code | 33 | 171 | package typingsJapgolly.astTypes.buildersMod
import typingsJapgolly.astTypes.AnonLocTypes
import typingsJapgolly.astTypes.kindsMod.TSTypeKind
import typingsJapgolly.astTypes.namedTypesMod.namedTypes.TSUnionType
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
@js.native
trait T... | 28,055 |
https://github.com/Nomarian/lua-stdlib/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,022 | lua-stdlib | Nomarian | Makefile | Code | 127 | 467 | # General Lua Libraries for Lua 5.1, 5.2 & 5.3
# Copyright (C) 2011-2018 stdlib authors
LDOC = ldoc
LUA = lua
MKDIR = mkdir -p
SED = sed
SPECL = specl
VERSION = git
luadir = lib/std
SOURCES = \
$(luadir)/_base.lua \
$(luadir)/debug.lua \
$(luadir)/init.lua \
$(luadir)/io.lua \
$(luadir)/math.lua \
$(lu... | 55,105 |
https://github.com/AyoBerbagi/ayoberbagi/blob/master/application/views/template/footer.php | Github Open Source | Open Source | MIT | 2,020 | ayoberbagi | AyoBerbagi | PHP | Code | 231 | 1,038 | <footer class="footer" data-background-color="violet">
<div class="container">
<nav>
<ul>
<div class= "row">
<div class= "col-md-3">
<div id="buttons">
<p class="category">Ayo Berbagi
Website yang menyalurkan bantuan kepada oran... | 9,096 |
https://github.com/PaulSprayCQUNI/Don-t-Use/blob/master/TunaInheritance/src/tuna/Tuna.java | Github Open Source | Open Source | MIT | 2,019 | Don-t-Use | PaulSprayCQUNI | Java | Code | 220 | 353 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package tuna;
/**
*
* @author Paul Spray <paul.spray@cqumail.com>
* package Tuna is all about talking about inheritance and is base... | 43,199 |
https://github.com/pvnetto/Kanban-Gaming-Board-React/blob/master/react-ui/src/firebase/dao/firebase-task-dao.js | Github Open Source | Open Source | MIT | null | Kanban-Gaming-Board-React | pvnetto | JavaScript | Code | 469 | 1,445 | import * as firebase from 'firebase';
import TaskStatus from '../../components/utils/types/TaskStatus';
export default class TaskDAO {
constructor(firestoreDB) {
this._firestoreDB = firestoreDB;
}
insertTaskToBoard = async (boardRef, task) => {
const tasksRef = await boardRef
... | 5,975 |
https://github.com/markjolah/Boxxer/blob/master/include/Boxxer/FilterKernels.h | Github Open Source | Open Source | Apache-2.0 | null | Boxxer | markjolah | C | Code | 485 | 1,755 | /** @file FilterKernels.h
* @author Mark J. Olah (mjo\@cs.unm DOT edu)
* @date 2014-2019
* @brief The boxxer::kernels namespace - low-level Gaussian finite-impulse response filters.
*
*/
#ifndef BOXXER_FILTER_KERNELS_H
#define BOXXER_FILTER_KERNELS_H
#include <cstdint>
#include <armadillo>
namespace boxxer {
/*... | 45,372 |
https://github.com/SMillerDev/lunr/blob/master/src/Lunr/Corona/Tests/RequestResultHandlerBaseTest.php | Github Open Source | Open Source | MIT | 2,022 | lunr | SMillerDev | PHP | Code | 118 | 366 | <?php
/**
* This file contains the RequestResultHandlerBaseTest class.
*
* @package Lunr\Corona
* @author Heinz Wiesinger <heinz@m2mobi.com>
* @copyright 2018, M2Mobi BV, Amsterdam, The Netherlands
* @license http://lunr.nl/LICENSE MIT License
*/
namespace Lunr\Corona\Tests;
use Lunr\Halo\PropertyTrait... | 4,607 |
https://github.com/corentin703/Vitesse-Lumiere/blob/master/Assets/Scenes/Levels/Racing.unity | Github Open Source | Open Source | MIT | 2,021 | Vitesse-Lumiere | corentin703 | Unity3D Asset | Code | 20,000 | 85,241 | %YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!29 &1 OcclusionCullingSettings: m_ObjectHideFlags: 0 serializedVersion: 2 m_OcclusionBakeSettings: smallestOccluder: 5 smallestHole: 0.25 backfaceThreshold: 100 m_SceneGUID: 00000000000000000000000000000000 m_OcclusionCullingData: {fileID: 0} --- !u!104 &2 RenderSettings:... | 48,554 |
https://github.com/CASErwin/daily-learning/blob/master/spark23/src/main/scala/core/transformation/basic/SparkAccumulatorsDemo.scala | Github Open Source | Open Source | Apache-2.0 | 2,018 | daily-learning | CASErwin | Scala | Code | 70 | 254 | package core.transformation.basic
import org.apache.spark.{SparkConf, SparkContext}
/**
* Created by yidxue on 2018/4/10
* RDD 元素求和两种方式:累加器和reduce 算子
*/
object SparkAccumulatorsDemo {
def main(args: Array[String]): Unit = {
val sparkConf = new SparkConf().setAppName("spark demo").setMaster("local[*]")
... | 30,359 |
https://github.com/timofeevda/jstressy/blob/master/jstressy-platform/jstressy-impl/jstressy-metrics-micrometer/src/main/kotlin/com/github/timofeevda/jstressy/metrics/micrometer/MicrometerMetricsRegistry.kt | Github Open Source | Open Source | MIT | 2,019 | jstressy | timofeevda | Kotlin | Code | 234 | 1,137 | package com.github.timofeevda.jstressy.metrics.micrometer
import com.github.timofeevda.jstressy.api.metrics.MetricsRegistry
import com.github.timofeevda.jstressy.api.metrics.type.Counter
import com.github.timofeevda.jstressy.api.metrics.type.Gauge
import com.github.timofeevda.jstressy.api.metrics.type.Timer
import io.... | 26,436 |
https://github.com/metwork-framework/mfbase/blob/master/adm/_plugins.preuninstall | Github Open Source | Open Source | BSD-3-Clause | 2,023 | mfbase | metwork-framework | Shell | Code | 200 | 723 | #!/bin/bash
function usage() {
echo "usage: _plugins.postuninstall NAME VERSION RELEASE"
echo "DO NOT USE DIRECTLY ! it's called by plugins.uninstall"
}
if test $# -ne 3; then
usage
exit 1
fi
NAME=${1}
if test "${1}" = "--help"; then
usage
exit 0
fi
PLUGIN_HOME=$(plugins.info --just-home "${... | 38,002 |
https://github.com/embox/embox/blob/master/src/include/drivers/twi.h | Github Open Source | Open Source | BSD-2-Clause | 2,023 | embox | embox | C | Code | 104 | 252 | /**
* @file
* @brief TWI communication for Lego AVR
*
* @date 15.10.10
* @author Anton Kozlov
*/
#ifndef NXT_TWI_H_
#define NXT_TWI_H_
/**
* Send through TWI, should be used to normal communication
*/
extern void twi_send(uint32_t dev_addr, const uint8_t *data, uint32_t count);
/**
* Raw send through TWI, s... | 47,501 |
https://github.com/argshook/generator-headsup/blob/master/generators/app/templates/src/index.js | Github Open Source | Open Source | MIT | 2,018 | generator-headsup | argshook | JavaScript | Code | 1 | 8 | console.log('hai')
| 11,250 |
https://github.com/brettwinters/Cirqus/blob/master/test/d60.Cirqus.Tests/Contracts/Views/Models/ObjectGraph/Root.cs | Github Open Source | Open Source | MIT | null | Cirqus | brettwinters | C# | Code | 13 | 49 | using d60.Cirqus.Aggregates;
namespace d60.Cirqus.Tests.Contracts.Views.Models.ObjectGraph
{
public class Root : AggregateRoot { }
} | 14,032 |
https://github.com/Draww/Rankup3/blob/master/src/main/java/sh/okx/rankup/Rankup.java | Github Open Source | Open Source | MIT | null | Rankup3 | Draww | Java | Code | 1,230 | 4,641 | package sh.okx.rankup;
import lombok.Getter;
import me.clip.placeholderapi.PlaceholderAPI;
import net.milkbowl.vault.economy.Economy;
import net.milkbowl.vault.permission.Permission;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.ConfigurationSection;
import org.bukk... | 14,587 |
https://github.com/candocker/culture/blob/master/app/Models/FigureTitle.php | Github Open Source | Open Source | MIT | null | culture | candocker | PHP | Code | 111 | 368 | <?php
declare(strict_types = 1);
namespace ModuleCulture\Models;
use Illuminate\Database\Eloquent\SoftDeletes;
class FigureTitle extends AbstractModel
{
use SoftDeletes;
protected $table = 'figure_title';
protected $guarded = ['id'];
public function recordTitle($string, $figureCode)
{
$... | 23,864 |
https://github.com/mithom/streamerbuddy/blob/master/components/ConnectionsManager/ConnectionsManager.vue | Github Open Source | Open Source | MIT | 2,019 | streamerbuddy | mithom | Vue | Code | 177 | 703 | <template>
<Modal
name="connectionManager"
width="75%"
height="75%"
>
<div class="overflow-auto h-full p-4">
<CloseButton
class="z-10"
@click.native="$modal.hide('connectionManager')"
/>
<div class="flex flex-col... | 13,653 |
https://github.com/JackDanger/wells_fargo/blob/master/Rakefile | Github Open Source | Open Source | MIT | 2,011 | wells_fargo | JackDanger | Ruby | Code | 45 | 169 | require 'bundler'
Bundler::GemHelper.install_tasks
task :default => :test
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << '.'
test.ruby_opts << '-rubygems'
test.pattern = 'test/*.rb'
test.verbose = true
end
desc "Refresh element definition files from schema.xml"
task :schema_to_ruby ... | 48,806 |
https://github.com/bgoonz/UsefulResourceRepo2.0/blob/master/GIT-USERS/lydia/DefinitelyTyped/types/applicationinsights-js/index.d.ts | Github Open Source | Open Source | MIT | 2,022 | UsefulResourceRepo2.0 | bgoonz | TypeScript | Code | 2,868 | 7,005 | // Type definitions for ApplicationInsights-JS 1.0
// Project: https://github.com/Microsoft/ApplicationInsights-JS
// Definitions by: Kamil Szostak <https://github.com/kamilszostak>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module AI {
enum SeverityLevel {
Verbose = 0,
... | 44,903 |
https://github.com/5GinFIRE/eu.5ginfire.osm3im2java/blob/master/src/main/java/ietf/params/xml/ns/yang/nfvo/mano/types/rev170208/vca/configuration/ConfigMethod.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | eu.5ginfire.osm3im2java | 5GinFIRE | Java | Code | 158 | 429 | package ietf.params.xml.ns.yang.nfvo.mano.types.rev170208.vca.configuration;
import org.opendaylight.yangtools.yang.binding.DataContainer;
import org.opendaylight.yangtools.yang.common.QName;
/**
* Defines the configuration method for the VNF or VDU.
*
* <p>
* This class represents the following YANG schema fragm... | 9,655 |
https://github.com/jaredjstewart/cp-elements/blob/master/src/main/java/org/cp/elements/util/convert/support/IdentifiableConverter.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla | 2,017 | cp-elements | jaredjstewart | Java | Code | 291 | 843 | /*
* Copyright 2016 Author or Authors.
*
* 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 agr... | 33,534 |
https://github.com/NGOANHTU1999/luxury-store/blob/master/resources/views/admin/Email/send_coupon.blade.php | Github Open Source | Open Source | MIT | null | luxury-store | NGOANHTU1999 | PHP | Code | 129 | 546 | <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial;
}
.coupon {
border: 5px dotted #ea4c89;
width: 80%;
border-radius: 15px;
margin: 0 auto;
... | 24,957 |
https://github.com/0x727/metasploit-framework/blob/master/external/source/Scanner/share/LumiSoft.Net/HostEndPoint.cs | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,022 | metasploit-framework | 0x727 | C# | Code | 357 | 1,135 | using System;
using System.Net;
namespace LumiSoft.Net
{
// Token: 0x02000011 RID: 17
public class HostEndPoint
{
// Token: 0x0600003F RID: 63 RVA: 0x00002FC4 File Offset: 0x00001FC4
public HostEndPoint(string host, int port)
{
bool flag = host == null;
if (flag)
{
throw new ArgumentNullExceptio... | 26,164 |
https://github.com/jackpoz/pnpframework/blob/master/src/lib/PnP.Framework.Test/Framework/CanProvisionRules/CanProvisionTests.cs | Github Open Source | Open Source | MIT | 2,022 | pnpframework | jackpoz | C# | Code | 323 | 1,383 | using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PnP.Framework.Provisioning.CanProvisionRules;
using PnP.Framework.Provisioning.ObjectHandlers;
using PnP.Framework.Provisioning.Providers.Xml;
using System;
namespace PnP.Framework.Test.Framework.CanProvi... | 44,368 |
https://github.com/danrday/elm-selectize/blob/master/tests/TestRunner.elm | Github Open Source | Open Source | Apache-2.0 | 2,018 | elm-selectize | danrday | null | Spoken | 28 | 78 | module TestRunner exposing (main)
import Test exposing (concat)
import Test.Runner.Html
import Tests
import ArchitectureTests
main : Test.Runner.Html.TestProgram
main =
[ Tests.suite
, ArchitectureTests.suite
]
|> concat
|> Test.Runner.Html.run
| 20,576 |
https://github.com/basking2/sdsai/blob/master/sdsai-itrex/src/main/java/com/github/basking2/sdsai/itrex/packages/CastingPackage.java | Github Open Source | Open Source | MIT | 2,021 | sdsai | basking2 | Java | Code | 91 | 301 | /**
* Copyright (c) 2016-2021 Sam Baskinger
*/
package com.github.basking2.sdsai.itrex.packages;
import com.github.basking2.sdsai.itrex.functions.FunctionInterface;
import com.github.basking2.sdsai.itrex.util.TypeConversion;
/**
* Using {@link TypeConversion} build type casting functions for import.
*/
public cl... | 24,975 |
https://github.com/Amity-Network/amity/blob/master/contrib/depends/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AddressBook.framework/Versions/A/Headers/ABPersonPickerDelegate.h | Github Open Source | Open Source | MIT | null | amity | Amity-Network | C | Code | 136 | 301 | //
// Copyright (c) 2012 Apple, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@class ABPersonPicker;
@class ABPerson;
OBJC_GC_UNAVAILABLE
@protocol ABPersonPickerDelegate <NSObject>
/*!
* @abstract Provides the ABPerson, property, and ABMultiValue identifier (if any) as chosen by the user.
* @pa... | 4,931 |
https://github.com/jhipster/generator-jhipster/blob/master/generators/spring-controller/prompts.mjs | Github Open Source | Open Source | Apache-2.0 | 2,023 | generator-jhipster | jhipster | JavaScript | Code | 329 | 760 | /**
* Copyright 2013-2023 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | 23,417 |
https://github.com/abhaykeerthy12/pencil-blog-php/blob/master/application/models/Post_model.php | Github Open Source | Open Source | MIT | null | pencil-blog-php | abhaykeerthy12 | PHP | Code | 750 | 3,356 | <?php
class Post_model extends CI_Model
{
public function __construct()
{
// connect the database
$this->load->database();
}
public function num_posts(){
$total_posts= $this->db->get('pencil_db_posts');
return $total_posts->num_rows();
}
public function get... | 41,344 |
https://github.com/willcoatney/hominid/blob/master/app/vendor/css/chosen.styl | Github Open Source | Open Source | MIT | 2,012 | hominid | willcoatney | Stylus | Code | 914 | 3,723 | .chzn-container
font-size: 13px
position: relative
display: inline-block
zoom: 1
*display: inline
.chzn-container .chzn-drop
background: #fff
border: 1px solid #aaa
border-top: 0
position: absolute
top: 29px
left: 0
-webkit-box-shadow: 0 4px 5px rgba(0,0,0,.15)
-moz-box-shadow: 0 4px 5px rgba... | 53,712 |
https://github.com/frankfan007/SpikeSortingPCA_DBSCAN/blob/master/Demos/GerlingIndenter_Demos/Spike_Sort_Demo_GerlingIndenter.m | Github Open Source | Open Source | MIT | 2,019 | SpikeSortingPCA_DBSCAN | frankfan007 | MATLAB | Code | 427 | 1,468 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Skin Nerve Spike Sorting and Data Analysis
% Ben Hoffman
% 08.09.16
%
% With PCA and DBSCAN sorting
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% -------- Set figure title names and dock all figures
dataNa... | 34,204 |
https://github.com/bikram990/LibzipSwift/blob/master/Package.swift | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | LibzipSwift | bikram990 | Swift | Code | 181 | 899 | // swift-tools-version:5.1
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
#if os(macOS)
let excludes = [
// Exclude XZ compression
"src/zip_algorithm_xz.c",
// Exclude non-CommonCrypto encryption
"src/zip_crypto_openssl.c... | 5,032 |
https://github.com/7LPdWcaW/GrowTracker-Android/blob/master/app/src/main/java/me/anon/lib/manager/PlantManager.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | GrowTracker-Android | 7LPdWcaW | Kotlin | Code | 752 | 3,164 | package me.anon.lib.manager
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.AsyncTask
import android.text.TextUtils
import android.widget.Toast
import com.squareup.moshi.JsonDataException
import com.squareup.moshi.Types
import... | 26,728 |
https://github.com/juliens/websocketproxy/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | null | websocketproxy | juliens | Makefile | Code | 19 | 55 | .PHONY: test check
default: check test
test:
GO111MODULE=on go test -v ./...
check:
GO111MODULE=on go mod vendor
golangci-lint run
| 28,026 |
https://github.com/forkkit/viska/blob/master/tests/unit_tests/sip_server/core/mod.rs | Github Open Source | Open Source | MIT | 2,021 | viska | forkkit | Rust | Code | 9 | 17 | pub mod capabilities;
pub mod processor;
pub mod registrar;
| 35,184 |
https://github.com/pocketnetteam/pocketnet.core/blob/master/src/httprpc.h | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | pocketnet.core | pocketnetteam | C++ | Code | 135 | 322 | // Copyright (c) 2015-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef POCKETCOIN_HTTPRPC_H
#define POCKETCOIN_HTTPRPC_H
#include <string>
#include <map>
#include <boost/thread.hpp>
#incl... | 46,433 |
https://github.com/steggema/cmssw/blob/master/FastSimulation/Tracking/interface/HitMaskHelper.h | Github Open Source | Open Source | 2,016 | cmssw | steggema | C++ | Code | 48 | 223 | #ifndef FASTSIMULATION_TRACKING_HITMASKHELPER_H
#define FASTSIMULATION_TRACKING_HITMASKHELPER_H
#include "DataFormats/TrackerRecHit2D/interface/FastTrackerRecHit.h"
#include "vector"
class HitMaskHelper {
public:
HitMaskHelper(const std::vector<bool> * hitMasks) : hitMasks_(hitMasks) { ; }
bool mas... | 48,902 | |
https://github.com/mirounga/mgl/blob/master/src/main/java/com/microsoft/mgl/pairhmm/MicrosoftPairHmm.java | Github Open Source | Open Source | MIT | 2,021 | mgl | mirounga | Java | Code | 355 | 1,316 | package com.microsoft.mgl.pairhmm;
import com.microsoft.mgl.NativeLibraryLoader;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.broadinstitute.gatk.nativebindings.pairhmm.HaplotypeDataHolder;
import org.broadinstitute.gatk.nativebindings.pairhmm.PairHMMNativeArguments;
... | 1,784 |
https://github.com/andrazznidar/ostanizdrav-android-dekompilacija/blob/master/decode/smali/de/rki/coronawarnapp/contactdiary/ui/day/tabs/location/ContactDiaryLocationListViewModel.smali | Github Open Source | Open Source | Apache-2.0 | null | ostanizdrav-android-dekompilacija | andrazznidar | Smali | Code | 396 | 3,840 | .class public final Lde/rki/coronawarnapp/contactdiary/ui/day/tabs/location/ContactDiaryLocationListViewModel;
.super Lde/rki/coronawarnapp/util/viewmodel/CWAViewModel;
.source "ContactDiaryLocationListViewModel.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lde/rki/coron... | 1,926 |
https://github.com/rsagebin/funnel/blob/master/funnel/picDefine/Views+Controllers/BrowseCategoriesViewController.swift | Github Open Source | Open Source | MIT | 2,018 | funnel | rsagebin | Swift | Code | 656 | 2,120 | //
// BrowseCategoriesViewController.swift
// funnel
//
// Created by Alec Osborne on 5/21/18.
// Copyright © 2018 Rodrigo Sagebin. All rights reserved.
//
import UIKit
class BrowseCategoriesViewController: UIViewController {
// MARK: - Properties
var theRefreshControl: UIRefreshControl!
... | 50,561 |
https://github.com/Tasemo/intellij-community/blob/master/python/testSrc/com/jetbrains/python/codeInsight/mlcompletion/PyMlCompletionTestCase.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | intellij-community | Tasemo | Kotlin | Code | 279 | 1,177 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.codeInsight.mlcompletion
import com.intellij.codeInsight.completion.ml.ContextFeatureProvider
import com.intellij.codeInsight.completion.ml.ElementFe... | 32,644 |
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/RT_News_com.rt.mobile.english/smali_classes2/com/yandex/metrica/impl/ob/eq$b.smali | Github Open Source | Open Source | MIT | 2,019 | AndroidPolicyAutomation | Andreas237 | Smali | Code | 80 | 317 | .class public final Lcom/yandex/metrica/impl/ob/eq$b;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/yandex/metrica/impl/ob/eq;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "b"
... | 45,479 |
https://github.com/mairror/mairror-frontend/blob/master/Makefile | Github Open Source | Open Source | MIT | null | mairror-frontend | mairror | Makefile | Code | 192 | 707 | SHELL := /usr/bin/bash
.DEFAULT_GOAL := help
# AutoDoc
# -------------------------------------------------------------------------
.PHONY: help
help: ## This help. Please refer to the Makefile to more insight about the usage of this script.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033... | 16,775 |
https://github.com/stefanrusek/mac-dev-playbook/blob/master/backup-keys.sh | Github Open Source | Open Source | MIT | null | mac-dev-playbook | stefanrusek | Shell | Code | 5 | 34 |
gpg --export-secret-keys 8204EFF8B12558A2 > ~/Dropbox/Private/githubkey.asc | 36,929 |
https://github.com/nais/salsa/blob/master/Makefile | Github Open Source | Open Source | MIT | null | salsa | nais | Makefile | Code | 40 | 114 |
salsa:
go build -o bin/salsa cmd/main.go
test: fmt vet
go test ./... -coverprofile cover.out -short
fmt:
go fmt ./...
vet:
go vet ./...
coverage.out:
go test -race -v -count=1 -covermode=atomic -coverprofile=coverage.out ./... || true
cover-html: coverage.out
go tool cover -html=$<
| 20,502 |
https://github.com/jprante/elasticsearch-devkit/blob/master/elasticsearch-analysis-common/src/main/java/org/elasticsearch/analysis/common/LowerCaseTokenFilterFactory.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | elasticsearch-devkit | jprante | Java | Code | 150 | 521 | package org.elasticsearch.analysis.common;
import org.apache.lucene.analysis.LowerCaseFilter;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.el.GreekLowerCaseFilter;
import org.apache.lucene.analysis.ga.IrishLowerCaseFilter;
import org.apache.lucene.analysis.tr.TurkishLowerCaseFilter;... | 38,168 |
https://github.com/tiobe/pmd/blob/master/pmd-core/src/main/java/net/sourceforge/pmd/cpd/token/TokenFilter.java | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0 | 2,023 | pmd | tiobe | Java | Code | 66 | 147 | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd.token;
import net.sourceforge.pmd.lang.ast.GenericToken;
/**
* Defines filter to be applied to the token stream during CPD analysis
*/
public interface TokenFilter {
/**
* Retrieves the... | 18,076 |
https://github.com/anowarul16/ecommerce/blob/master/app/Http/Controllers/Admin/Setting/SettingController.php | Github Open Source | Open Source | MIT | null | ecommerce | anowarul16 | PHP | Code | 232 | 676 | <?php
namespace App\Http\Controllers\Admin\Setting;
use App\Http\Controllers\Controller;
use App\setting;
use Illuminate\Http\Request;
use DB;
use Carbon\Carbon;
class SettingController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
... | 14,702 |
https://github.com/agausmann/puzzles/blob/master/adventofcode/2020/day11b.rs | Github Open Source | Open Source | Unlicense | 2,019 | puzzles | agausmann | Rust | Code | 205 | 595 | #![feature(str_split_once)]
use std::io::{stdin, Read};
fn main() {
let mut input = String::new();
stdin().read_to_string(&mut input).unwrap();
let mut grid: Vec<Vec<char>> = input.lines().map(|line| line.chars().collect()).collect();
loop {
let mut grid2 = grid.clone();
for i in 0..... | 49,934 |
https://github.com/suifengpiaobo/Schooner-3D/blob/master/Schooner 3D/src/com/supermercerbros/gameengine/objects/AnimatedMeshObject.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | Schooner-3D | suifengpiaobo | Java | Code | 350 | 889 | /*
* Copyright 2012 Dan Mercer
*
* 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 t... | 37,932 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.