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/edne/hear/blob/master/hear/__init__.py | Github Open Source | Open Source | MIT | 2,021 | hear | edne | Python | Code | 195 | 843 | import numpy as np
__all__ = ["hear"]
def hear(callback, channels=2, body=None,
jack_client="Hear",
rate=44100, frames_per_buffer=1024):
def default_body():
from time import sleep
try:
while True:
sleep(0.1)
except KeyboardInterrupt:
... | 27,486 |
https://github.com/gburd/mod_pubsub/blob/master/kn_tools/perftool/masterparms.c | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference, BSD-2-Clause | 2,004 | mod_pubsub | gburd | C | Code | 706 | 2,077 | /**
* Copyright 2001-2004 KnowNow, Inc. All rights reserved.
*
* @KNOWNOW_LICENSE_START@
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyrigh... | 50,169 |
https://github.com/zhyifei/Macad3D/blob/master/Source/Macad.Occt/Extensions/V3d_Ex.cpp | Github Open Source | Open Source | MIT | 2,022 | Macad3D | zhyifei | C++ | Code | 13 | 107 | #include "OcctPCH.h"
#include "..\Generated\V3d.h"
#include "..\Generated\Graphic3d.h"
Macad::Occt::Graphic3d_RenderingParams^ Macad::Occt::V3d_View::ChangeRenderingParams()
{
return gcnew Macad::Occt::Graphic3d_RenderingParams(NativeInstance->ChangeRenderingParams());
} | 47,319 |
https://github.com/proxypoke/goblahg/blob/master/post.go | Github Open Source | Open Source | WTFPL | 2,012 | goblahg | proxypoke | Go | Code | 195 | 611 | // Copywrong 2012 slowpoke <proxypoke at lavabit dot com>
// Repository: https://github.com/proxypoke/goblahg
//
// This program is free software under the terms of the
// Do What The Fuck You Want To Public License v2,
// which can be found in a file called COPYING included
// with this program or at http://sam.zoy.or... | 12,687 |
https://github.com/parajulibhawani/map-game/blob/master/js/map.js | Github Open Source | Open Source | Unlicense | null | map-game | parajulibhawani | JavaScript | Code | 116 | 408 | // var map;
// function initMap() {
// var myLatLng = {lat: 37.0902, lng: -95.7129};
// map = new google.maps.Map(document.getElementById('map'), {
// center: {lat: 37.0902, lng: -95.7129},
// zoom: 5
// });
// }
// initMap.Prototype.getConcerts = function(thisLat, thisLon){
// $.get('http://api.bandsin... | 26,590 |
https://github.com/acecilia/rules_spm/blob/master/test/spm_common_tests.bzl | Github Open Source | Open Source | Apache-2.0 | 2,021 | rules_spm | acecilia | Starlark | Code | 50 | 372 | load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest")
load("//spm/internal:spm_common.bzl", "spm_common")
def _create_clang_hdrs_key_test(ctx):
env = unittest.begin(ctx)
result = spm_common.create_clang_hdrs_key("foo-kit", "FooKit")
asserts.equals(env, "foo-kit/FooKit", result)
return unitte... | 46,958 |
https://github.com/Ariaputrapamungkas/sistem-penyewaan-alat-outdoor-master/blob/master/app/Barang.php | Github Open Source | Open Source | MIT | null | sistem-penyewaan-alat-outdoor-master | Ariaputrapamungkas | PHP | Code | 40 | 170 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Barang extends Model
{
protected $table = 'barangs';
protected $fillable = ['kategori_id','nama_alat','gambar','stock','harga','keterangan'];
public function kategori()
{
return $this->belongsTo('App\Kategori');
}
pu... | 7,822 |
https://github.com/andersonlucasg3/JSColumnTableSwift/blob/master/ColumnTableView/ColumnsTableViewCell.swift | Github Open Source | Open Source | MIT | 2,017 | JSColumnTableSwift | andersonlucasg3 | Swift | Code | 162 | 612 | //
// ColumnTableViewCell.swift
// ColumnTableView
//
// Created by Jorge Luis on 03/08/17.
// Copyright © 2017 Jorge Luis. All rights reserved.
//
import UIKit
public protocol ColumnsViewProtocol: class {
func hideColumns(_ columns: [Int])
func showColumns(_ columns: [Int])
}
open class ColumnsTableView... | 31,114 |
https://github.com/JoschaP/redux-log-slow-reducers/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,019 | redux-log-slow-reducers | JoschaP | Ignore List | Code | 8 | 27 | # build artefacts
lib/
# npm
node_modules/
npm-debug.log
| 14,685 |
https://github.com/hmcts/finrem-case-orchestration-service/blob/master/src/main/java/uk/gov/hmcts/reform/finrem/caseorchestration/mapper/AssignCaseAccessRequestMapper.java | Github Open Source | Open Source | MIT | 2,023 | finrem-case-orchestration-service | hmcts | Java | Code | 52 | 349 | package uk.gov.hmcts.reform.finrem.caseorchestration.mapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import uk.gov.hmcts.reform.ccd.client.model.CaseDetails;
import uk.gov.hmcts.reform.finrem.caseorchestration.model.AssignCaseAccessRequest... | 29,136 |
https://github.com/jiang51/monda/blob/master/vendor/nette/tester/tests/CodeCoverage/CloverXMLGenerator.phpt | Github Open Source | Open Source | BSD-3-Clause | null | monda | jiang51 | PHP | Code | 57 | 290 | <?php
use Tester\Assert;
use Tester\CodeCoverage;
require __DIR__ . '/../bootstrap.php';
require __DIR__ . '/../../src/CodeCoverage/PhpParser.php';
require __DIR__ . '/../../src/CodeCoverage/Generators/AbstractGenerator.php';
require __DIR__ . '/../../src/CodeCoverage/Generators/CloverXMLGenerator.php';
$coveredFil... | 54,043 |
https://github.com/villdimova/SoftUni-JavaScriptAdvanced/blob/master/Arrays/addAndRemoveElements.js | Github Open Source | Open Source | MIT | null | SoftUni-JavaScriptAdvanced | villdimova | JavaScript | Code | 24 | 109 | function solve(input){
let output=[];
let count=1;
input.forEach(command=>{
if(command==='add'){
output.push(count);
}else{
output.pop();
}
count++;
})
output.length===0 ? console.log('Empty') : console.log(output.join("\n"));
}
solve(['remove',
'remove',
'remove']
) | 22,407 |
https://github.com/CyRa89/dwp2021agodic/blob/master/myapp/src/book/book.service.ts | Github Open Source | Open Source | MIT | 2,021 | dwp2021agodic | CyRa89 | TypeScript | Code | 204 | 572 | import { Injectable, NotFoundException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { CreateBookDto } from './dto/create-book.dto';
import { UpdateBookDto } from './dto/update-book.dto';
import { Book } from './entities/book.entity';
@Injecta... | 23,534 |
https://github.com/royerlab/cytoself/blob/master/cytoself/components/blocks/fc_block.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | cytoself | royerlab | Python | Code | 198 | 582 | from collections.abc import Iterable
from tensorflow.compat.v1.keras.layers import (
Input,
Dense,
Flatten,
Concatenate,
Dropout,
)
from tensorflow.compat.v1.keras.models import Model
def fc_block(
in_shape,
num_layers,
n_units,
n_clss,
activation="relu",
last_act="softmax"... | 20,910 |
https://github.com/sudeshana/carbon-governance/blob/master/components/governance/org.wso2.carbon.governance.wsdltool.ui/src/main/java/org/wso2/carbon/governance/wsdltool/ui/utils/GetWSDLToolUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | carbon-governance | sudeshana | Java | Code | 261 | 670 | /*
* Copyright (c) 2006, WSO2 Inc. (http://www.wso2.org) 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
*
* ... | 9,916 |
https://github.com/nikitadyumin/tetris/blob/master/src/app/input/KeyboardController.js | Github Open Source | Open Source | MIT | 2,015 | tetris | nikitadyumin | JavaScript | Code | 62 | 226 | /**
* Created by Никита on 25.05.2015.
*
* @exports KeyboardController
*/
define(function(require) {
var Wreqr = require('backbone.wreqr');
var globalBus = Wreqr.radio.channel('global');
var mapping = {
32: 'rotate',
37: 'left',
39: 'right',
40: 'drop',
80: 'pau... | 3,416 |
https://github.com/imwalson/cnode-vue/blob/master/src/assets/css/mixin/index.less | Github Open Source | Open Source | MIT | 2,019 | cnode-vue | imwalson | Less | Code | 9 | 45 |
@import "./text.less";
.box-shadow(@shadow) {
-webkit-box-shadow: @shadow;
box-shadow: @shadow;
}
| 35,941 |
https://github.com/smercatoris/ratelimit/blob/master/src/server/server_impl.go | Github Open Source | Open Source | Apache-2.0 | null | ratelimit | smercatoris | Go | Code | 772 | 3,065 | package server
import (
"bytes"
"expvar"
"fmt"
"io"
"net/http"
"net/http/pprof"
"path/filepath"
"sort"
"sync"
"os"
"os/signal"
"syscall"
"net"
"github.com/coocood/freecache"
pb "github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v3"
"github.com/envoyproxy/ratelimit/src/limiter"
"github.... | 45,481 |
https://github.com/frobben/lecoffeeride/blob/master/public/wp-content/themes/counter-backup/templates/climbs.php | Github Open Source | Open Source | MIT | null | lecoffeeride | frobben | PHP | Code | 124 | 432 | <?php
/**
* The template for displaying full width pages
*
* Template Name: Climbs
*
*
*/
get_header();
$args = array(
'post_type'=> 'climb',
'nopaging' => true,
'meta_key' => 'distance',
'orderby' => 'meta_value',
'order' => 'ASC'
);
?>
<div id="p... | 5,985 |
https://github.com/lchli/ListItemAsyncDataLoader/blob/master/LoaderLibrary/app/src/main/java/com/lchli/loaderlibrary/okhttpWraper/OkHttpFileTransportUtils.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | ListItemAsyncDataLoader | lchli | Java | Code | 749 | 2,510 | package com.lchli.loaderlibrary.okhttpWraper;
import android.os.Looper;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Iterator;
import java.util.Map;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Interceptor;
import okhttp3.MediaType;
import okhttp3... | 42,577 |
https://github.com/joel2010/vaahcms/blob/master/VueUI/vaahnuxt/buefy/pages/formcontrol/rate.vue | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | vaahcms | joel2010 | Vue | Code | 48 | 267 | <template>
<div>
<TopMenu></TopMenu>
<PageHeader></PageHeader>
<div class="container" >
<section class="main-content columns">
<aside class="column is-2 section">
<SideMenu></SideMenu>
</aside>
<div class="container column is-10">
<div class="main-content">
... | 41,052 |
https://github.com/kamu-data/kamu-cli/blob/master/kamu-core/src/infra/workspace_layout.rs | Github Open Source | Open Source | Apache-2.0 | 2,022 | kamu-cli | kamu-data | Rust | Code | 177 | 530 | // Copyright Kamu Data, Inc. and contributors. All rights reserved.
//
// Use of this software is governed by the Business Source License
// included in the LICENSE file.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by th... | 37,092 |
https://github.com/cclark-00/amplitudejs/blob/master/src/events/repeat.js | Github Open Source | Open Source | MIT | 2,022 | amplitudejs | cclark-00 | JavaScript | Code | 281 | 689 | /**
* Imports the config module
* @module config
*/
import config from "../config.js";
/**
* Imports the repeater utility module.
* @module utilities/Repeater
*/
import Repeater from "../utilities/repeater.js";
/**
* Imports the visual repeat elements module
* @module visual/RepeatElements
*/
import RepeatEl... | 42,103 |
https://github.com/lesam/influxdb/blob/master/source/bucket.go | Github Open Source | Open Source | MIT | 2,021 | influxdb | lesam | Go | Code | 107 | 355 | package source
import (
"fmt"
platform "github.com/influxdata/influxdb/v2"
"github.com/influxdata/influxdb/v2/http"
"github.com/influxdata/influxdb/v2/http/influxdb"
"github.com/influxdata/influxdb/v2/tenant"
)
// NewBucketService creates a bucket service from a source.
func NewBucketService(s *platform.Source)... | 12,123 |
https://github.com/swans01/wadul/blob/master/app/m_postingan.php | Github Open Source | Open Source | MIT | null | wadul | swans01 | PHP | Code | 88 | 382 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class m_postingan extends Model
{
public function insertPostingan($request){
$user_id = auth()->user()->id;
$post = new m_postingan();
$post->postingan = $request['postingan'];
$post->user_id = $user_id;
$post->... | 14,430 |
https://github.com/deforay/recency-web/blob/master/module/Application/src/Application/Model/GlobalConfigTable.php | Github Open Source | Open Source | BSD-3-Clause | 2,022 | recency-web | deforay | PHP | Code | 1,357 | 5,564 | <?php
namespace Application\Model;
use Zend\Db\Sql\Sql;
use Zend\Db\Sql\Expression;
use Zend\Session\Container;
use Zend\Db\Adapter\Adapter;
use Zend\Config\Writer\PhpArray;
use Application\Service\CommonService;
use Zend\Db\TableGateway\AbstractTableGateway;
class GlobalConfigTable extends AbstractTableGateway {
... | 9,075 |
https://github.com/darkhipo/ParFor/blob/master/BUILD/examples/Kaleidoscope/Chapter3/CMakeFiles/Kaleidoscope-Ch3.dir/build.make | Github Open Source | Open Source | NCSA | 2,011 | ParFor | darkhipo | Makefile | Code | 383 | 2,799 | # CMAKE generated file: DO NOT EDIT!
# Generated by "MinGW Makefiles" Generator, CMake Version 2.8
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canoncical targets will work.
.SUFFIXES:
# Remove some rules from gmake th... | 30,800 |
https://github.com/tvolkert/co19/blob/master/LayoutTests/fast/dom/Document/title-property-set-multiple-times_t01.dart | Github Open Source | Open Source | BSD-3-Clause | null | co19 | tvolkert | Dart | Code | 150 | 478 | /*
* Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
*/
/**
* @description Test for http://bugs.webkit.org/show_bug.cgi?id=11692
* If the title has bee... | 23,772 |
https://github.com/JarvixHsj/dhh/blob/master/Data/dev_dhh-01-12.sql | Github Open Source | Open Source | Apache-2.0 | null | dhh | JarvixHsj | SQL | Code | 833 | 2,619 | /*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50617
Source Host : localhost:3306
Source Database : dev_dhh
Target Server Type : MYSQL
Target Server Version : 50617
File Encoding : 65001
Date: 2016-01-12 18:54:23
*/
SET FOREIGN_KEY_CHECKS=0;
-- -... | 14,631 |
https://github.com/Jackymancs4/homebrew-tap/blob/master/patches/sherlock.patch | Github Open Source | Open Source | MIT | null | homebrew-tap | Jackymancs4 | null | Spoken | 45 | 147 | diff --git a/sherlock b/sherlock
new file mode 100755
index 0000000..545743e
--- /dev/null
+++ b/sherlock
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [ -f "$(brew --prefix sherlock)"/libexec/bin/activate ]; then
+ source "$(brew --prefix sherlock)"/libexec/bin/activate
+ python3 "$(brew --prefix sherlock)"/sherlock.py $@
... | 14,671 |
https://github.com/rodrigoAMF7/Notebook---Maratonas/blob/master/Contests/GEOLIP - 2/g.cpp | Github Open Source | Open Source | MIT | 2,019 | Notebook---Maratonas | rodrigoAMF7 | C++ | Code | 119 | 369 | #include <bits/stdc++.h>
using namespace std;
int main(){
int n;
scanf("%d", &n);
while(n--){
int h, m, p;
scanf("%d %d %d", &h, &m, &p);
if(p){
if(h < 10 && m < 10){
printf("0%d:0%d - A porta abriu!\n", h, m);
}else if(h < 10){
... | 13,237 |
https://github.com/tuxsudo/react-starter/blob/master/src/app/actions/__tests__/system.spec.js | Github Open Source | Open Source | MIT | 2,017 | react-starter | tuxsudo | JavaScript | Code | 69 | 370 | import {
RECEIVE_HTTP_RESPONSE_CODE,
RECEIVE_HTTP_RESPONSE_CODE_RESET,
RECEIVE_APPLICATION_ERROR_RESET,
RECEIVE_APPLICATION_ERROR,
RECEIVE_APPLICATION_ERROR_REMOVAL
} from '../../reducers/system.js';
import {
setHttpResponseCode,
resetHttpResponseCode,
resetApplicationErrors,
addApplication... | 2,994 |
https://github.com/fila43/leapp/blob/master/leapp/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | leapp | fila43 | Python | Code | 11 | 45 | from leapp.utils.workarounds import apply_workarounds
VERSION = "0.10.0"
FULL_VERSION = VERSION
apply_workarounds()
| 27,315 |
https://github.com/AbhiswasPatil/ols/blob/master/balancer/util.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | ols | AbhiswasPatil | Go | Code | 248 | 704 | package balancer
import (
"log"
"net/url"
"strconv"
"github.com/disel-espol/olscheduler/balancer/worker"
)
func createWorkerURLSlice(jsonSlice []string) []url.URL {
workersLength := len(jsonSlice)
workerUrls := make([]url.URL, workersLength)
for i, urlString := range jsonSlice {
workerUrl, err := url.Parse... | 31,107 |
https://github.com/FenySoft/Siaqodb/blob/master/LicenseActivation4/sla4/SilvLicActivator.cs | Github Open Source | Open Source | MIT | 2,022 | Siaqodb | FenySoft | C# | Code | 59 | 242 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
namespace sla4
{
public class SilvLicActivator
{
public static string GetLicenseKey(string customerCode)
{
string hostname=Environment.MachineName;
W... | 50,549 |
https://github.com/ThornJuice/Samples/blob/master/wan/src/main/java/com/hzy/wan/App.java | Github Open Source | Open Source | Apache-2.0 | null | Samples | ThornJuice | Java | Code | 49 | 213 | package com.hzy.wan;
import android.content.Context;
import com.hzy.wan.util.LaunchRecord;
import com.ju.baselibrary.base.BaseApp;
import com.squareup.leakcanary.LeakCanary;
import com.tencent.mmkv.MMKV;
public class App extends BaseApp {
@Override
public void onCreate() {
super.onCreate();
L... | 39,751 |
https://github.com/zahidsajeeb/university_management_system/blob/master/resources/views/admin/student/edit.blade.php | Github Open Source | Open Source | MIT | null | university_management_system | zahidsajeeb | PHP | Code | 639 | 2,968 | @extends('admin.layouts.app')
@section('content')
<section id="content" class="table-layout animated fadeIn">
<div class="tray tray-center">
<div class="admin-form theme-primary mw1000 center-block" style="padding-bottom: 175px;">
<div class="panel heading-border">
... | 25,698 |
https://github.com/diffblue/cbmc/blob/master/src/util/sharing_node.h | Github Open Source | Open Source | BSD-2-Clause, LicenseRef-scancode-unknown-license-reference, BSD-4-Clause | 2,023 | cbmc | diffblue | C++ | Code | 851 | 3,459 | /*******************************************************************\
Module: Sharing node
Author: Daniel Poetzl
\*******************************************************************/
/// \file
/// Sharing node
#ifndef CPROVER_UTIL_SHARING_NODE_H
#define CPROVER_UTIL_SHARING_NODE_H
#ifdef SN_DEBUG
#include <iostre... | 16,427 |
https://github.com/thestick613/dogpile.cache/blob/master/dogpile/cache/backends/mongodb.py | Github Open Source | Open Source | BSD-2-Clause, LicenseRef-scancode-warranty-disclaimer | 2,022 | dogpile.cache | thestick613 | Python | Code | 601 | 2,191 | """
MongoDB Backend
------------------
Provides backends for talking to `MongoDB <https://mongodb.com>`_.
"""
from __future__ import absolute_import
from ..api import CacheBackend
from ..api import NO_VALUE
from ...util.compat import pickle
from datetime import datetime, timedelta
import time
pymongo = None
bson =... | 16,515 |
https://github.com/kyubisation/angular-server-side-configuration/blob/master/projects/angular-server-side-configuration/ng-env/src/public_api.spec.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | angular-server-side-configuration | kyubisation | TypeScript | Code | 37 | 100 | describe('ng-env', () => {
it('should read NG_ENV', async () => {
const ngEnv = { test: 'expected' };
(globalThis as any).NG_ENV = ngEnv;
const { NG_ENV } = await import('./public_api');
expect(NG_ENV).toEqual(ngEnv);
delete (globalThis as any).NG_ENV;
});
});
| 37,656 |
https://github.com/givery-technology/AttackOnSukeshni-backend/blob/master/routes/organizations.js | Github Open Source | Open Source | MIT | null | AttackOnSukeshni-backend | givery-technology | JavaScript | Code | 259 | 1,156 | 'use strict';
const
express = require('express'),
router = express.Router(),
knex = require('../helpers/knex');
router.use(require('../middlewares/auth'));
router.get('/', function(req, res, next) {
let
offset = req.body.offset || 0,
limit = req.body.limit || 20;
knex
.select('id', 'name', 'i... | 29,313 |
https://github.com/quantshah/pennylane-forest/blob/master/tests/test_qpu.py | Github Open Source | Open Source | BSD-3-Clause | 2,019 | pennylane-forest | quantshah | Python | Code | 114 | 437 | """
Unit tests for the QPU device.
"""
import logging
import pytest
import pennylane as qml
from conftest import BaseTest
log = logging.getLogger(__name__)
class TestQPUIntegration(BaseTest):
"""Test the wavefunction simulator works correctly from the PennyLane frontend."""
# pylint: disable=no-self-use... | 31,169 |
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/o/ontouchstart/fsharpworkshop/Dockerfile | Github Open Source | Open Source | MIT | 2,018 | dockerfiles-1 | jsdelivrbot | Dockerfile | Code | 29 | 113 | FROM ontouchstart/fsharp
COPY . fsharpworkshop
RUN cd fsharpworkshop/Completed/Module1 && bash runtests.sh
RUN cd fsharpworkshop/Completed/Module2 && bash runtests.sh
RUN cd fsharpworkshop/Completed/Module3 && bash runtests.sh
RUN cd fsharpworkshop/Completed/Module4 && bash runtests.sh
| 52,775 |
https://github.com/YannG75/laravel-basket/blob/master/resources/views/partials/head.blade.php | Github Open Source | Open Source | MIT | null | laravel-basket | YannG75 | PHP | Code | 38 | 221 | <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel E-commerce</title>
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
... | 652 |
https://github.com/Limbika/ShowcaseView/blob/master/src/com/github/amlcurran/showcaseview/ShowcaseBox.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | ShowcaseView | Limbika | Java | Code | 719 | 1,919 | package com.github.amlcurran.showcaseview;
import java.util.ArrayList;
import android.app.Activity;
import android.view.View;
import android.view.View.OnClickListener;
/**
* Box of ShowCaseViews.
*/
public class ShowcaseBox {
public static final int TOUCH_ALL = 1;
public static final int TOUCH_TARGET = 2... | 29,073 |
https://github.com/ballerina-platform/module-ballerina-kubernetes/blob/master/kubernetes-extension-test/src/test/java/org/ballerinax/kubernetes/test/OpenShiftRouteTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | module-ballerina-kubernetes | ballerina-platform | Java | Code | 471 | 1,914 | /*
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... | 9,235 |
https://github.com/mwellck/shella-client/blob/master/client/modules/en/WRU.py | Github Open Source | Open Source | MIT | 2,017 | shella-client | mwellck | Python | Code | 34 | 105 | # -*- coding: utf-8-*-
import re
WORDS = ["WHO", "ARE", "YOU"]
def isValid(text):
return bool(re.search(r'\b(who are you)\b', text, re.IGNORECASE))
def handle(text, mic, profile):
response = "I'm Shella, a voice-controlled assistant created by Malo."
mic.say(response)
| 30,497 |
https://github.com/TangYiXin-smile/aitao/blob/master/public/a/js/login.js | Github Open Source | Open Source | MIT | 2,017 | aitao | TangYiXin-smile | JavaScript | Code | 48 | 263 | $(function(){
$('#loginBtn').on('click',function(){
var username = $("#username").val();
var password = $("#password").val();
if(!username || $.trim(username)=="" ){
alert('请填写用户名');
return;
}
if(!password || $.trim(password)==""){
alert('请填写密码');
return;
}
$.ajax({
url:'/employee/employee... | 24,212 |
https://github.com/adrian-mezei/angular-nest-template/blob/master/frontend/.prettierignore | Github Open Source | Open Source | MIT | 2,021 | angular-nest-template | adrian-mezei | Ignore List | Code | 4 | 15 | package-lock.json
node_modules
coverage
dist | 9,103 |
https://github.com/rahul-thumma/Feedback-System/blob/master/GDP_Frontend/GDP_AJS/app/view2/ListofPresentations.js | Github Open Source | Open Source | MIT | 2,017 | Feedback-System | rahul-thumma | JavaScript | Code | 1,060 | 4,701 | /**
* Created by S522626 on 11/29/2015.
*/
var arrayList = [];
$(document).ready(function () {
var trigger = $('.hamburger'),
overlay = $('.overlay'),
isClosed = false;
trigger.removeClass('is-closed');
trigger.addClass('is-open');
$('#wrapper').toggleClass('toggled');
trigger.c... | 2,270 |
https://github.com/BaggaShivanshu2/hybris-bookstore-tutorial/blob/master/hybris/bin/ext-commerce/xyformsservices/src/de/hybris/platform/xyformsservices/attribute/ProductAllYFormDefinitions.java | Github Open Source | Open Source | MIT | 2,020 | hybris-bookstore-tutorial | BaggaShivanshu2 | Java | Code | 183 | 587 | /*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* li... | 24,891 |
https://github.com/Arvita/tif_exhibition_2021/blob/master/app/Http/Controllers/Admin/AdminController.php | Github Open Source | Open Source | MIT | null | tif_exhibition_2021 | Arvita | PHP | Code | 60 | 228 | <?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Product;
use App\Models\User;
class AdminController extends Controller
{
public function index()
{
// dd(Product::where('platform', 'like', 'Desktop%')->count());
$data... | 46,195 |
https://github.com/unison-code/uni-instr-sel/blob/master/testing/regression/mips32/gsm.add.gsm_asl.s.1 | Github Open Source | Open Source | BSD-3-Clause | 2,021 | uni-instr-sel | unison-code | null | Spoken | 215 | 693 | 85 0:
1 [%15.copy.2] <- "ADDiu %15.copy.2, $0, 15" <- []
1 [%0.copy.1.copy.1] <- "MOV %0.copy.1.copy.1, r0" <- [%0.copy.1]
1 [] <- "BGT $%n, $%15.copy.2, gsm_asr.exit" <- [%n, %15.copy.2]
42 2:
0 [%3] <- "SLTI $%3, $%n, -15" <- [%n]
1 [] <- "BNE $0, $%3, 4" <- [%3]
21 8:
1 [] <- "BLT... | 22,376 |
https://github.com/AYCHAIN/BipsWeb/blob/master/public/static/less/application/functions_select.less | Github Open Source | Open Source | Apache-2.0 | 2,018 | BipsWeb | AYCHAIN | Less | Code | 85 | 352 | #function-select2 {
position: absolute;
top: 5px;
left: 20px;
.select2-container {
text-transform: uppercase;
border: 2px solid @green;
.select2-choice {
text-align: center;
background-image: none;
color: @green;
border: none;
.select2-arrow {
color: inherit;
width: 44px;
... | 7,535 |
https://github.com/nurkiewicz/scio/blob/master/scio-spanner/src/test/scala/com/spotify/scio/spanner/SpannerIOTest.scala | Github Open Source | Open Source | Apache-2.0 | null | scio | nurkiewicz | Scala | Code | 237 | 736 | /*
* Copyright 2018 Spotify AB.
*
* 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 ... | 36,124 |
https://github.com/Kevincoooool/esp-idf/blob/master/components/esp_lcd/test/test_lvgl_port.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | esp-idf | Kevincoooool | C | Code | 13 | 69 | #include "esp_lcd_panel_ops.h"
#include "lvgl.h"
void test_lvgl_task_loop(esp_lcd_panel_handle_t panel_handle, int h_res, int v_res, lv_disp_t **disp);
| 43,684 |
https://github.com/marinofelipe/graphql-properties-server/blob/master/server.js | Github Open Source | Open Source | MIT | 2,019 | graphql-properties-server | marinofelipe | JavaScript | Code | 180 | 433 | const { ApolloServer, gql } = require('apollo-server');
var propertyList = require('./mock.js').propertyList;
// The GraphQL schema
const typeDefs = gql`
# property type and query
type PropertyListType {
properties: [PropertyType]
}
type PropertyType {
"Information about an available property."
... | 42,311 |
https://github.com/xiaojieonly/Ehviewer_CN_SXJ/blob/master/app/src/main/java/com/hippo/util/ExceptionUtils.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer, MIT, OFL-1.1, LicenseRef-scancode-unknown-license-reference, IJG, Zlib, EPL-1.0, Libpng, BSD-3-Clause | 2,023 | Ehviewer_CN_SXJ | xiaojieonly | Java | Code | 319 | 905 | /*
* Copyright 2016 Hippo Seven
*
* 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 ... | 4,059 |
https://github.com/P79N6A/smfyun/blob/master/application/views/weixin/kmi/admin/items.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | smfyun | P79N6A | PHP | Code | 183 | 1,111 | <!-- 发送管理 -->
<style type="text/css">
.change{
padding-left: 12px;
}
</style>
<section class="content-header">
<h1>
商品设置
</h1>
<ol class="breadcrumb">
<li><a href=" "><i class="fa fa-dashboard"></i> 首页</a ></li>
<li class="active">商品设置</li>
</ol>
</section>
<section class="content">... | 46,778 |
https://github.com/sasindroid/MyPlay/blob/master/app/src/main/java/com/sasi/giffgaffplay/TabFragment3.java | Github Open Source | Open Source | MIT | null | MyPlay | sasindroid | Java | Code | 595 | 2,145 | package com.sasi.giffgaffplay;
import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support... | 32,637 |
https://github.com/Midnighter/metanetx-assets/blob/master/src/metanetx_assets/model/identifiers_org_namespace_model.py | Github Open Source | Open Source | Apache-2.0 | null | metanetx-assets | Midnighter | Python | Code | 163 | 374 | # Copyright (c) 2019, Moritz E. Beber.
#
# 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 or agreed to i... | 1,100 |
https://github.com/hyubs/ncovph/blob/master/functions/src/graphql/dataSources/DataDropWeeklyReport/index.ts | Github Open Source | Open Source | ISC | 2,021 | ncovph | hyubs | TypeScript | Code | 7 | 26 | import DataDropWeeklyReport from './DataDropWeeklyReport';
export default DataDropWeeklyReport;
| 25,380 |
https://github.com/admin-dashboards/free-dashboard-one-bootstrap/blob/master/src/pages/typography.hbs | Github Open Source | Open Source | MTLL | 2,021 | free-dashboard-one-bootstrap | admin-dashboards | null | Spoken | 203 | 891 | {{#extend "layout" title="Light Blue Bootstrap Dashboard - Typography"}}
{{#content "sidebar"}}
{{> sidebar active="core_typography"}}
{{/content}}
{{#content "content" mode="replace"}}
<ol class="breadcrumb">
<li class="breadcrumb-item">Typography</li>
</ol>
<div c... | 45,582 |
https://github.com/redone551/RecyclerViewItemAnimators-master/blob/master/app/src/main/java/it/gmariotti/recyclerview/itemanimator/demo/AnimationGridActivityMyPhoto.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | RecyclerViewItemAnimators-master | redone551 | Java | Code | 483 | 2,267 | package it.gmariotti.recyclerview.itemanimator.demo;
import android.animation.Animator;
import android.app.ProgressDialog;
import android.content.ContentResolver;
import android.database.Cursor;
import android.graphics.Color;
import android.os.AsyncTask;
import android.os.Bundle;
import android.provider.MediaStore;
im... | 15,367 |
https://github.com/JasmineZhen218/P-WL/blob/master/data/NCI109/1097.gml | Github Open Source | Open Source | MIT | 2,021 | P-WL | JasmineZhen218 | null | Spoken | 633 | 1,539 | graph [
directed 0
node [
id 29072
label "1"
]
node [
id 29073
label "1"
]
node [
id 29074
label "1"
]
node [
id 29075
label "1"
]
node [
id 29107
label "3"
]
node [
id 29071
label "1"
]
node [
id 29076
label "1"
]
node [
id 290... | 22,399 |
https://github.com/SammyEnigma/forms-ui/blob/master/src/FormsUI/Extensions/Extension.cs | Github Open Source | Open Source | MIT | 2,022 | forms-ui | SammyEnigma | C# | Code | 884 | 2,191 | using System;
using System.Reflection;
using System.Drawing;
using System.Collections.Generic;
namespace FormsUI.Extensions
{
/// <summary>
/// Represents the base class for all of the extensions.
/// </summary>
public abstract class Extension : IResource
{
#region Private Fields
... | 18,023 |
https://github.com/StandBy-Network/imetyou/blob/master/client/imetyou_flutter/lib/imetyou/bean/application_settings.dart | Github Open Source | Open Source | MIT | 2,021 | imetyou | StandBy-Network | Dart | Code | 24 | 118 | import 'package:json_annotation/json_annotation.dart';
part 'application_settings.g.dart';
@JsonSerializable()
class ApplicationSetting{
ApplicationSetting();
@JsonKey(name: "name")
String name;
factory ApplicationSetting.fromJson(Map<String, dynamic> json) => _$ApplicationSettingFromJson(json);
Map<S... | 41,211 |
https://github.com/int128/gradle-ssh-plugin/blob/master/gradle-ssh-plugin/core/src/test/groovy/org/hidetake/gradle/ssh/plugin/SshPluginSpec.groovy | Github Open Source | Open Source | Apache-2.0 | 2,022 | gradle-ssh-plugin | int128 | Groovy | Code | 638 | 2,247 | package org.hidetake.gradle.ssh.plugin
import org.gradle.testfixtures.ProjectBuilder
import org.hidetake.groovy.ssh.connection.AllowAnyHosts
import org.hidetake.groovy.ssh.core.Proxy
import org.hidetake.groovy.ssh.core.Remote
import org.hidetake.groovy.ssh.core.settings.CompositeSettings
import org.hidetake.groovy.ssh... | 31,765 |
https://github.com/deansong1/Project2-po/blob/master/poserver/app.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | Project2-po | deansong1 | JavaScript | Code | 86 | 571 | //vue_server_00/app.js node程序
//1:加载第三方模块
//web服务器
const express = require("express");
//mysql驱动
const mysql = require("mysql");
//跨域
const cors = require("cors");
//session
const session = require("express-session");
const index=require("./routes/index");
const details=require("./routes/details");
const logins=requir... | 32,796 |
https://github.com/afiskon/hurmadb/blob/master/src/PersistentStorage.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,021 | hurmadb | afiskon | C++ | Code | 405 | 1,104 | /* vim: set ai et ts=4 sw=4: */
#include "defer.h"
#include "rapidjson/document.h"
#include "rapidjson/stringbuffer.h"
#include <PersistentStorage.h>
#include <rapidjson/writer.h>
#include <stdexcept>
#include <string>
using namespace rapidjson;
using namespace rocksdb;
/**
* @brief PersistentStorage constructor.
... | 45,269 |
https://github.com/EightMinuteYouth/ff_annotation_route/blob/master/lib/src/route_info.dart | Github Open Source | Open Source | MIT | 2,021 | ff_annotation_route | EightMinuteYouth | Dart | Code | 1,075 | 3,579 | import 'dart:convert';
//import 'dart:mirrors';
// ignore_for_file: implementation_imports
import 'package:analyzer/dart/ast/ast.dart';
import 'package:analyzer/dart/ast/syntactic_entity.dart';
import 'package:analyzer/src/dart/ast/ast.dart';
import 'package:ff_annotation_route/src/arg/args.dart';
import 'package:ff_a... | 21,485 |
https://github.com/testerum/testerum/blob/master/web/web-frontend/src/app/functionalities/resources/editors/http/mock/stub/model/response/http-mock-proxy-response.model.ts | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-public-domain | 2,023 | testerum | testerum | TypeScript | Code | 80 | 290 | import {JsonUtil} from "../../../../../../../../utils/json.util";
import {Serializable} from "../../../../../../../../model/infrastructure/serializable.model";
import {StringUtils} from "../../../../../../../../utils/string-utils.util";
export class HttpMockProxyResponse implements Serializable<HttpMockProxyResponse>{... | 26,994 |
https://github.com/thijstriemstra/PCF8574_library/blob/master/resources/Article/GCode/01-First2Passes.nc | Github Open Source | Open Source | MIT | 2,022 | PCF8574_library | thijstriemstra | null | Spoken | 20,000 | 79,327 | (G-CODE GENERATED BY FLATCAM v8.991 - www.flatcam.org - Version Date: 2019/12/27) (Name: 01-First2Passes) (Type: G-code from Geometry) (Units: MM) (Created on Wednesday, 12 February 2020 at 10:15) (TOOL DIAMETER: 0.55 mm) (Feedrate: 120.0 mm/min) (Feedrate_Z: 60.0 mm/min) (Feedrate rapids 1500.0 mm/min) (Z_Cut: -0.07 m... | 49,191 |
https://github.com/LaibaMemon/Learn-to-code/blob/master/Python/LengthOfStrings.py | Github Open Source | Open Source | MIT | null | Learn-to-code | LaibaMemon | Python | Code | 25 | 58 | fruit='banana'
x=len(fruit)
print(x) #although these are 5 if we counts from 0 but the length we have is 6
fruit='Apple'
for letter in fruit:
print(letter)
| 22,303 |
https://github.com/Parth308/space-app/blob/master/app/src/androidTest/java/sk/kasper/space/di/MockRemoteApi.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | space-app | Parth308 | Kotlin | Code | 57 | 232 | package sk.kasper.space.di
import kotlinx.coroutines.CompletableDeferred
import sk.kasper.space.api.RemoteApi
import sk.kasper.space.api.entity.RemoteLaunch
import sk.kasper.space.api.entity.RemoteLaunchesResponse
import javax.inject.Inject
/**
* Dovoluje nastavit odpoved az potom, ako sa zaregistruje klient na lis... | 43,408 |
https://github.com/mbrukman/spinnaker-clouddriver/blob/master/kato/kato-cf/src/main/groovy/com/netflix/spinnaker/kato/cf/deploy/validators/StandardCfAttributeValidator.groovy | Github Open Source | Open Source | Apache-2.0 | null | spinnaker-clouddriver | mbrukman | Groovy | Code | 1,065 | 2,248 | /*
* Copyright 2015 Netflix, Inc.
*
* 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... | 8,794 |
https://github.com/aleksandrBushuev2000/json-schema-test/blob/master/src/Type/Primitive/Double/DoubleRangeDecorator.php | Github Open Source | Open Source | MIT | null | json-schema-test | aleksandrBushuev2000 | PHP | Code | 53 | 230 | <?php
namespace AleksandrBushuev\Schema\Type\Primitive\Double;
use AleksandrBushuev\Schema\CheckResult;
use AleksandrBushuev\Schema\Type\Primitive\NumericRangeDecorator;
use AleksandrBushuev\Schema\Visitor\IVisitor;
abstract class DoubleRangeDecorator extends NumericRangeDecorator implements IDoubleType
{
publ... | 18,078 |
https://github.com/pombredanne/docradle/blob/master/checkfile_test.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | docradle | pombredanne | Go | Code | 640 | 2,803 | package docradle
import (
"io/ioutil"
"os"
"path/filepath"
"strings"
"testing"
"github.com/stretchr/testify/assert"
)
func cleanDir(dir string) error {
d, err := os.Open(dir)
if err != nil {
return err
}
defer d.Close()
names, err := d.Readdirnames(-1)
if err != nil {
return err
}
for _, name := ra... | 52,337 |
https://github.com/Farizal97/penggajian_jurnal/blob/master/manager/gaji.php | Github Open Source | Open Source | Unlicense | null | penggajian_jurnal | Farizal97 | PHP | Code | 549 | 2,498 | <?php
$pagedesc = "Data Gaji";
include("sess_check.php");
include("../conf/format_tanggal.php");
include("../conf/format_rupiah.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, in... | 53,246 |
https://github.com/gongotar/large_graph_pathfinder/blob/master/src/graphics/DeleteVertexMenuItem.java | Github Open Source | Open Source | Apache-2.0 | null | large_graph_pathfinder | gongotar | Java | Code | 263 | 863 | /*
* DeleteVertexMenuItem.java
*
* Created on March 21, 2007, 2:03 PM; Updated May 29, 2007
*
* Copyright March 21, 2007 Grotto Networking
*
*/
package graphics;
import edu.uci.ics.jung.visualization.VisualizationViewer;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util... | 53,096 |
https://github.com/elcorto/pwtools/blob/master/test/test_num.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | pwtools | elcorto | Python | Code | 203 | 699 | from itertools import product
import numpy as np
from pwtools import num
rand = np.random.rand
def test_round_mult():
assert num.round_up_next_multiple(144,8) == 144
assert num.round_up_next_multiple(145,8) == 152
def test_euler_matrix():
# http://mathworld.wolfram.com/EulerAngles.html
# 0 degree... | 54,140 |
https://github.com/aout/MBContactPicker/blob/master/MBContactPicker/ContactCollectionViewContactCell.h | Github Open Source | Open Source | MIT | 2,014 | MBContactPicker | aout | Objective-C | Code | 45 | 155 | //
// ContactCollectionViewCell.h
// MBContactPicker
//
// Created by Matt Bowman on 11/20/13.
// Copyright (c) 2013 Citrrus, LLC. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Contact.h"
@interface ContactCollectionViewContactCell : UICollectionViewCell
@property (nonatomic, strong) Contact* contact;... | 48,812 |
https://github.com/fever324/MH4UDatabase/blob/master/MH4UDatabase/BaseViewController.h | Github Open Source | Open Source | MIT | 2,015 | MH4UDatabase | fever324 | Objective-C | Code | 39 | 145 | //
// BaseViewController.h
// MH4UDatabase
//
// Created by Neil Shetty on 4/15/15.
// Copyright (c) 2015 GuthuDesigns. All rights reserved.
//
#import "MMDrawerController.h"
#import "ArmorSetDetailViewController.h"
@interface BaseViewController : MMDrawerController <UINavigationControllerDelegate>
@property (st... | 2,625 |
https://github.com/BHickey94/familylight/blob/master/state.cpp | Github Open Source | Open Source | MIT | null | familylight | BHickey94 | C++ | Code | 5 | 14 | #include "state.h"
enum State state; | 10,670 |
https://github.com/Zen-Rahul/blog/blob/master/20150114-javaee-jersey_server/src/test/java/com/damienfremont/blog/PersonService2Test.java | Github Open Source | Open Source | MIT | 2,021 | blog | Zen-Rahul | Java | Code | 135 | 514 | package com.damienfremont.blog;
import static com.jayway.restassured.RestAssured.expect;
import static org.hamcrest.Matchers.notNullValue;
import javax.servlet.ServletException;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
/**
* Les tests pourront s'executer au choix vers un se... | 26,209 |
https://github.com/nakedible/vpnease-l2tp/blob/master/usplash/usplash-0.4-dapper_backport.diff | Github Open Source | Open Source | WTFPL | 2,017 | vpnease-l2tp | nakedible | null | Spoken | 81 | 335 | diff -ru usplash-0.4.orig/debian/control usplash-0.4/debian/control
--- usplash-0.4.orig/debian/control 2007-02-10 10:10:31.000000000 +0200
+++ usplash-0.4/debian/control 2007-02-21 09:48:58.000000000 +0200
@@ -23,7 +23,7 @@
Package: libusplash-dev
Architecture: any
-Depends: ${shlibs:Depends}, libusplash0 (= ${sou... | 948 |
https://github.com/eManPrague/frui.ts/blob/master/packages/generator/src/openapi/templates/repositoryAction.hbs | Github Open Source | Open Source | MIT | 2,022 | frui.ts | eManPrague | null | Spoken | 115 | 553 | {{#*inline "get"}}
return this.callApi(api => api.path(`{{{path}}}`)
{{~#if isResponseArray~}}
.getEntities({{responseType}}{{#if action.queryParam}}, query{{/if}})
{{~else~}}
.getEntity({{responseType}}{{#if action.queryParam}}, query{{/if}})
{{~/if~}}
);
{{/inline}}
{{#*inline "post"}}
// TODO {{actio... | 2,693 |
https://github.com/sjb8100/lego-game-and-Unity-like-engine/blob/master/MyEngine/myengine/UnityEngine based/MonoBehaviour.cs | Github Open Source | Open Source | Unlicense | 2,017 | lego-game-and-Unity-like-engine | sjb8100 | C# | Code | 73 | 229 | using System;
using System.Collections.Generic;
using System.Text;
namespace MyEngine
{
public abstract class MonoBehaviour : Component
{
public int updatePerFrame = 1;
public virtual void Start()
{
//Debug.Info(this.GetType());
}
public virtual void Update(... | 46,672 |
https://github.com/carlpaton/RedisAdministrator/blob/master/WebApp/Controllers/DeleteByScoreController.cs | Github Open Source | Open Source | MIT | null | RedisAdministrator | carlpaton | C# | Code | 316 | 1,118 | using Microsoft.AspNetCore.Mvc;
using RedisRepository.Interfaces;
using StackExchange.Redis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebApp.Models;
namespace WebApp.Controllers
{
public class DeleteByScoreController : Controller
{
private readonly IR... | 36,182 |
https://github.com/baka44/yiiboard/blob/master/views/site/post.php | Github Open Source | Open Source | BSD-3-Clause | null | yiiboard | baka44 | PHP | Code | 166 | 791 | <?php
use yii\helpers\Html;
use yii\helpers\Url;
use app\models\Users;
$this->title = Html::Encode($result['post']['subject']).'|Post';
$this->params['breadcrumbs'][] = ['label' => $result['category']['name'], 'url' => [ 'site/category', 'categoryId' => $result['category']['id'] ] ];
$this->params['breadcrumbs'][] = ... | 39,858 |
https://github.com/nguyennhatminh-mgr/nest-rest-api/blob/master/src/items/items.service.ts | Github Open Source | Open Source | MIT | null | nest-rest-api | nguyennhatminh-mgr | TypeScript | Code | 45 | 153 | import { Injectable } from '@nestjs/common';
import {Model} from 'mongoose';
import {InjectModel} from '@nestjs/mongoose';
import {Item} from './interfaces/item.interface';
@Injectable()
export class ItemsService {
constructor(@InjectModel('Item') private readonly itemModel: Model<Item>){}
async findAll(): Pr... | 49,529 |
https://github.com/prestigeprog/it-quiz/blob/master/src/main/java/ru/project/quiz/controller/admin/RoleController.java | Github Open Source | Open Source | MIT | null | it-quiz | prestigeprog | Java | Code | 106 | 502 | package ru.project.quiz.controller.admin;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam... | 14,400 |
https://github.com/eerimoq/monolinux-example-project/blob/master/3pp/linux/tools/testing/selftests/bpf/progs/test_btf_nokv.c | Github Open Source | Open Source | MIT, Linux-syscall-note, GPL-2.0-only | 2,020 | monolinux-example-project | eerimoq | C | Code | 112 | 408 | /* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2018 Facebook */
#include <linux/bpf.h>
#include "bpf_helpers.h"
int _version SEC("version") = 1;
struct ipv_counts {
unsigned int v4;
unsigned int v6;
};
struct bpf_map_def SEC("maps") btf_map = {
.type = BPF_MAP_TYPE_ARRAY,
.key_size = sizeof(int),
.valu... | 40,143 |
https://github.com/flitzmo-hso/Leitsteuerung_Panel/blob/master/node_modules/@patternfly/react-tokens/dist/esm/c_tabs__item_m_current__link_BackgroundColor.js | Github Open Source | Open Source | MIT | 2,021 | Leitsteuerung_Panel | flitzmo-hso | JavaScript | Code | 15 | 105 | export const c_tabs__item_m_current__link_BackgroundColor = {
"name": "--pf-c-tabs__item--m-current__link--BackgroundColor",
"value": "#f0f0f0",
"var": "var(--pf-c-tabs__item--m-current__link--BackgroundColor)"
};
export default c_tabs__item_m_current__link_BackgroundColor; | 20,994 |
https://github.com/Pompeu/core/blob/master/packages/core-graphql/lib/defs/root.js | Github Open Source | Open Source | MIT | 2,018 | core | Pompeu | JavaScript | Code | 51 | 152 | 'use strict';
module.exports = `
type Query {
block(id: String): Block
blocks(limit: Limit, offset: Offset, orderBy: OrderByInput, filter: BlockFilter): [Block]
transaction(id: String): Transaction
transactions(limit: Limit, orderBy: OrderByInput, filter: TransactionFilter): [Transaction]
wallet(... | 33,509 |
https://github.com/mikewerz/zen-framework/blob/master/src/main/java/com/mikewerzen/zen/zenframework/logging/utils/LoggingUtils.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | zen-framework | mikewerz | Java | Code | 249 | 649 | /* Copyright 2019, Michael Werzen
*
* 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... | 11,363 |
https://github.com/DevSnicket/Eunice/blob/master/dependency-and-structure/stackAndYamlTesting/callTestForSymmetrical/index.js | Github Open Source | Open Source | MIT | 2,019 | Eunice | DevSnicket | JavaScript | Code | 355 | 1,100 | /* Eunice
Copyright (c) 2019 Graham Dyson.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in... | 10,423 |
https://github.com/dugersurenit/Java-Fundamentals-SoftUni-Repo/blob/master/AssociativeArrays/src/MoreExercise_5_DragonArmy.java | Github Open Source | Open Source | MIT | 2,020 | Java-Fundamentals-SoftUni-Repo | dugersurenit | Java | Code | 229 | 816 | import java.util.*;
public class MoreExercise_5_DragonArmy {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int dragonsCount = Integer.parseInt(scan.nextLine());
Map<String, Map<String, List<Integer>>> dragonsRecords = new LinkedHashMap<>();
for (... | 48,661 |
https://github.com/utwente-fmt/vercors-web/blob/master/views/example/_form.php | Github Open Source | Open Source | BSD-3-Clause | null | vercors-web | utwente-fmt | PHP | Code | 134 | 565 | <?php
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\Example */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="example-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'backendid')->dropDownLi... | 8,919 |
https://github.com/soleo/zeroclickinfo-spice/blob/master/share/spice/magic_the_gathering/footer.handlebars | Github Open Source | Open Source | Apache-2.0 | 2,020 | zeroclickinfo-spice | soleo | null | Spoken | 13 | 71 | <div class="pull-left">
<span class="magic-types">{{types}}</span>
</div>
{{#if rarity}}
<div class="pull-right">
<span class="tile__time">{{rarity}}</span>
</div>
{{/if}}
| 34,170 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.