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/Resory/RSTableview/blob/master/RSTableviewDemo/RSTableview/UITableView+RSCategory.h
Github Open Source
Open Source
MIT
2,016
RSTableview
Resory
Objective-C
Code
79
337
// // UITableView+RSCategory.h // RSTableviewDemo // // Created by Resory on 15/12/27. // Copyright © 2015年 Resory. All rights reserved. // #import <UIKit/UIKit.h> #import "RSTipsView.h" typedef void(^RSTapTipViewBlock)(id obj); // 点击提示页面回调block @interface UITableView (RSCategory) <RSTipViewProtocal> @pro...
40,449
https://github.com/medsci-tech/PuanpharmShop/blob/master/app/BasicShop/Helper/Facades/Helper.php
Github Open Source
Open Source
MIT
null
PuanpharmShop
medsci-tech
PHP
Code
19
66
<?php namespace App\BasicShop\Helper\Facades; use Illuminate\Support\Facades\Facade; class Helper extends Facade { protected static function getFacadeAccessor() { return 'helper'; } }
30,438
https://github.com/mailisparkinfo/labelizer/blob/master/app/Services/CreateProduct.php
Github Open Source
Open Source
MIT
null
labelizer
mailisparkinfo
PHP
Code
67
340
<?php namespace App\Services; use App\Model\CreatedProduct; use DB; use App\Model\User; use Carbon\Carbon; class CreateProduct { public function SaveProductInfo($request) { DB::beginTransaction(); if ($request->user_id) { $array=[ 'user_id'=>$request->user_id, 'product_...
18,336
https://github.com/frediy/git-checkout-branch/blob/master/lib/gcb.rb
Github Open Source
Open Source
MIT
2,015
git-checkout-branch
frediy
Ruby
Code
85
378
require 'gcb/version' module Gcb def self.root File.expand_path '../..', __FILE__ end class BranchChanger def initialize(git_repository_directory=Dir.pwd) @git_dir = "#{git_repository_directory}/.git" end def change!(branch) if branches.include?(branch) checkout_branch(branc...
43,839
https://github.com/domenic/test262/blob/master/external/contributions/Google/sputnik_conformance_modified/12_Statement/12.4_Expression_Statement/S12.4_A2_T2.js
Github Open Source
Open Source
BSD-3-Clause
2,021
test262
domenic
JavaScript
Code
116
304
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S12.4_A2_T2; * @section: 12.4; * @assertion: The production ExpressionStatement : [lookahead \notin {{, function}] Expression; is evaluated as follows: * 1. Evaluate Express...
9,552
https://github.com/heatd/Onyx/blob/master/kernel/include/onyx/photon.h
Github Open Source
Open Source
MIT
2,022
Onyx
heatd
C
Code
529
2,061
/* * Copyright (c) 2018 Pedro Falcato * This file is part of Onyx, and is released under the terms of the MIT License * check LICENSE at the root directory for more information */ #ifndef _ONYX_PHOTON_H #define _ONYX_PHOTON_H #include <onyx/object.h> #include <onyx/framebuffer.h> #include <onyx/spinlock.h> #include <...
29,984
https://github.com/kareemshocker/REST-API-WITH-PYTHON-PHP-NODEJS-GO-DJANGO-LARAVEL-LUMEN-Examples/blob/master/PHP-OOPS/config/DatabasImport.sql
Github Open Source
Open Source
MIT
2,021
REST-API-WITH-PYTHON-PHP-NODEJS-GO-DJANGO-LARAVEL-LUMEN-Examples
kareemshocker
SQL
Code
142
608
/* Import These Data into your Database*/ /*Table structure for table `books` */ DROP TABLE IF EXISTS `books`; CREATE TABLE `books` ( `book_id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `author_name` varchar(55) DEFAULT NULL, `isbn` int(15) DEFAULT NULL, `release_date` date DEFAUL...
17,666
https://github.com/DPBayes/dca-nips2017/blob/master/probic-decrypt-server/run-scripts/gen-testdata-10.sh
Github Open Source
Open Source
MIT
2,021
dca-nips2017
DPBayes
Shell
Code
26
73
#!/bin/bash ns="100 1000 10000 100000" ds="10 100 1000 10000" for N in $ns do for d in $ds do run-scripts/gen-test-data-matrix-given.sh $d $N 9 --zip done done
46,705
https://github.com/clavery/adm-zip/blob/master/test/utils.test.js
Github Open Source
Open Source
MIT
2,022
adm-zip
clavery
JavaScript
Code
465
1,381
"use strict"; const { expect } = require("chai"); const { crc32, canonical, sanitize } = require("../util/utils"); const pth = require("path"); describe("utils - crc32 function", () => { // tests how crc32 function handles strings as input it("handle strings", () => { const tests = [ // bas...
27,299
https://github.com/linghengqian/dynamic-datasource-samples/blob/master/features-samples/nest-sample/src/main/resources/db/schema.sql
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,022
dynamic-datasource-samples
linghengqian
SQL
Code
52
130
CREATE TABLE IF NOT EXISTS TEACHER ( id BIGINT(20) NOT NULL AUTO_INCREMENT, name VARCHAR(30) NULL DEFAULT NULL, age INT(11) NULL DEFAULT NULL, PRIMARY KEY (id) ); CREATE TABLE IF NOT EXISTS STUDENT ( id BIGINT(20) NOT NULL AUTO_INCREMENT, name VARCHAR(30) NULL DEFAULT NULL, age INT(11...
42,487
https://github.com/yt4687/TVTComment/blob/master/NicoJK/TVTComment/win32filestream.h
Github Open Source
Open Source
MIT
2,022
TVTComment
yt4687
C
Code
35
174
#pragma once #include "win32filebuf.h" #include <ostream> #include <istream> #include <memory> template<typename charT,typename traits=std::char_traits<charT>> class basic_win32filestream:public std::basic_iostream<charT,traits> { public: basic_win32filestream(HANDLE handle, bool close_handle=true); HANDLE gethandl...
25,767
https://github.com/OOberoi/EntityFramework.Docs/blob/master/samples/core/Miscellaneous/Internals/WritingAProvider/EntityFrameworkCore.RelationalProviderStarter/Extensions/MyRelationalProviderServiceCollectionExtensions.cs
Github Open Source
Open Source
Apache-2.0
2,017
EntityFramework.Docs
OOberoi
C#
Code
72
497
using EntityFrameworkCore.RelationalProviderStarter.Infrastructure; using EntityFrameworkCore.RelationalProviderStarter.Metadata; using EntityFrameworkCore.RelationalProviderStarter.Migrations; using EntityFrameworkCore.RelationalProviderStarter.Query.ExpressionTranslators.Internal; using EntityFrameworkCore.Relationa...
11,571
https://github.com/b3kN/illustrious-site/blob/master/src/app/home/x-large/x-large.directive.ts
Github Open Source
Open Source
Apache-2.0
null
illustrious-site
b3kN
TypeScript
Code
31
106
import { Component, Directive, ElementRef, Renderer } from '@angular/core'; @Directive({ selector: '[x-large]' }) export class XLargeDirective { constructor( public element: ElementRef, public renderer: Renderer ) { renderer.setElementStyle(element.nativeElement, 'fontSize', 'x-large'); } }...
28,359
https://github.com/broskoski/ervell/blob/master/apps/feed/routes.coffee
Github Open Source
Open Source
MIT
2,021
ervell
broskoski
CoffeeScript
Code
102
348
_ = require 'underscore' sd = require('sharify').data ExploreBlocks = require '../../collections/explore_blocks' @index = (req, res, next) -> return next() unless req.user res.locals.sd.CURRENT_PATH = "/" res.locals.sd.FEED_TYPE = 'primary' res.render 'feed', path: 'Feed' @notifications = (req, res, next) -> ...
47,024
https://github.com/GraphaQL-Neo4J/spring-data-neo4j/blob/master/spring-data-neo4j/src/test/java/org/springframework/data/neo4j/test/Neo4jTestServerConfiguration.java
Github Open Source
Open Source
Apache-2.0
2,019
spring-data-neo4j
GraphaQL-Neo4J
Java
Code
345
1,129
/* * Copyright 2011-2019 the original 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 ap...
18,264
https://github.com/c57fr/poopa/blob/master/GArtiens/corgto/index.php
Github Open Source
Open Source
BSD-3-Clause
2,019
poopa
c57fr
PHP
Code
75
281
<h1 style = "margin-top: 30px">Accueil Corgto</h1> <hr> <?php require 'User.php'; require 'Address.php'; $json_source = file_get_contents(__DIR__.'/users.json'); $userDB = json_decode($json_source); echo 'Données sources concernant un utilisateur: '; echo '<pre>'; print_r($userDB); echo'</pre>'; $user = new User ...
5,353
https://github.com/EmanateStudios/UCSD_DoorProbabilityGame/blob/master/models/trial.js
Github Open Source
Open Source
MIT
null
UCSD_DoorProbabilityGame
EmanateStudios
JavaScript
Code
45
189
'use strict'; module.exports = (sequelize, DataTypes) => { const trial = sequelize.define('trial', { trialIteration: DataTypes.INTEGER, level: DataTypes.INTEGER, round: DataTypes.INTEGER, score: DataTypes.INTEGER, pReward: DataTypes.FLOAT, xClick: DataTypes.FLOAT, yClick:DataTypes.FLOAT, ...
51,247
https://github.com/juniormelo94/crawlerLaravel/blob/master/routes/web.php
Github Open Source
Open Source
Apache-2.0
null
crawlerLaravel
juniormelo94
PHP
Code
63
196
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
19,534
https://github.com/StefanTeodorescu/blinker/blob/master/challenges/seccon2016_checker/checker.c
Github Open Source
Open Source
BSD-3-Clause
2,019
blinker
StefanTeodorescu
C
Code
160
522
// A reimplementation of 'checker' (pwn300) from SECCON 2016. // A nice write-up: https://bannsecurity.com/index.php/home/10-ctf-writeups/39-seccon-2016-checker #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> char name[128]; char flag[128]; void read_flag(char *file...
12,510
https://github.com/seven332/rhino-android/blob/master/testsrc/tests/src/com/netscape/javascript/qa/drivers/ObservedTask.java
Github Open Source
Open Source
Apache-2.0
2,022
rhino-android
seven332
Java
Code
498
1,211
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package com.netscape.javascript.qa.drivers; import java.io.*; /** * This class is simple utility class that is ...
31,251
https://github.com/Paulalex85/Words-Numbers/blob/master/LettresChiffres/LettresChiffres/PartieRapideScreen.cs
Github Open Source
Open Source
MIT
null
Words-Numbers
Paulalex85
C#
Code
188
745
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework.Graphics; using GameStateManagement; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; using XMLObject; namespace LettresChiffres { class PartieRapideScreen : MenuScreen { ...
29,527
https://github.com/SvitlanaShepitsena/remax16/blob/master/app/scripts/auth/directives/sv-sign-up-form.jade
Github Open Source
Open Source
MIT
null
remax16
SvitlanaShepitsena
null
Spoken
133
770
.card(class='mb') .bgc-grey-200(class='pl+ pr+ pt pb' layout-gt-sm='row' layout-sm="column" layout-align-gt-sm='space-between center' class='pt+ pb+ pl pr') .fs-headline.mb.tc-blue-700 i.mdi.mdi-airballoon.tc-red-600 &nbsp | {{headerTitle|capitalize}} sv-form-social-buttons ...
30,842
https://github.com/mattcat10/Miro/blob/master/Miro.Tests/PushEventProcessingTests.cs
Github Open Source
Open Source
MIT
null
Miro
mattcat10
C#
Code
1,129
4,404
using System; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; using Miro.Tests.Helpers; using MongoDB.Bson; using MongoDB.Driver; using Newtonsoft.Json; using Xunit; using static Miro.Tests.Helpers.WebhookR...
3,639
https://github.com/R13TechNewbie/InventoryPertani/blob/master/app/Controllers/Supplier.php
Github Open Source
Open Source
MIT
null
InventoryPertani
R13TechNewbie
PHP
Code
206
1,055
<?php namespace App\Controllers; use App\Database\Migrations\JenisBahanBaku; use Config\View; use App\Models\BahanBakuMasukModel; use App\Models\BahanBakuModel; use App\Models\JenisBahanBakuModel; use App\Models\PurchaseOrderModel; use CodeIgniter\I18n\Time; class Supplier extends BaseController { protected $bah...
36,599
https://github.com/joseprupi/flatbuffers/blob/master/js/flexbuffers.js
Github Open Source
Open Source
Apache-2.0
2,020
flatbuffers
joseprupi
JavaScript
Code
3,664
11,370
var flexbuffers = {}; flexbuffers.BitWidth = { WIDTH8: 0, WIDTH16: 1, WIDTH32: 2, WIDTH64: 3, }; flexbuffers.BitWidthUtil = {}; flexbuffers.BitWidthUtil.toByteWidth = (bitWidth) => { return 1 << bitWidth; }; flexbuffers.BitWidthUtil.iwidth = (value) => { if (value >= -128 && value <= 127) return 0/*flex...
37,625
https://github.com/qbicsoftware/voronoi-treemap-cli/blob/master/src/main/java/life/qbic/voronoi/algorithms/TreemapCreator.java
Github Open Source
Open Source
MIT
null
voronoi-treemap-cli
qbicsoftware
Java
Code
698
2,381
package life.qbic.voronoi.algorithms; import kn.uni.voronoitreemap.interfaces.data.TreeData; import kn.uni.voronoitreemap.j2d.PolygonSimple; import kn.uni.voronoitreemap.treemap.VoronoiTreemap; import life.qbic.voronoi.io.parser.CSVToRowDataParser; import life.qbic.voronoi.io.parser.PolygonDataParser; import life.qbic...
19,368
https://github.com/lovely-io/lovely.io-stl/blob/master/stl/dnd/src/draggable.coffee
Github Open Source
Open Source
MIT
2,015
lovely.io-stl
lovely-io
CoffeeScript
Code
924
2,568
# # The draggable part of the unit # # Copyright (C) 2011 Nikolay Nemshilov # Draggable = # default options Options: handle: null # a handle element that will start the drag snap: 0 # a number in pixels or [x,y] axis: null # null or 'x' or 'y' o...
11,361
https://github.com/dddExperiments/OpenSynther/blob/master/PhotoSynthParser/include/PhotoSynthParser.h
Github Open Source
Open Source
MIT
2,011
OpenSynther
dddExperiments
C++
Code
350
957
/* Copyright (c) 2010 ASTRE Henri (http://www.visual-experiments.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy...
38,665
https://github.com/muharif/RAVEN/blob/master/tutorial/tutorial2_solutions.m
Github Open Source
Open Source
MIT
2,017
RAVEN
muharif
MATLAB
Code
401
1,615
%This is the solution to tutorial 2. All parameters are set in this file, %rather than changing the Excel sheet %Loads the model model=importExcelModel('smallYeast.xlsx',true); %Sets the upper bound of glucose uptake to 1 and O2 uptake to zero. model=setParam(model,'ub',{'glcIN' 'o2IN'},[1 0]); %Set the objective to...
40,715
https://github.com/vkvenkat/corefx/blob/master/src/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/Factories/ImportDefinitionFactory.DerivedContractBasedImportDefinition.cs
Github Open Source
Open Source
MIT
2,021
corefx
vkvenkat
C#
Code
164
442
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.ComponentModel.Composition.Primitives; namespace System.ComponentMod...
3,630
https://github.com/GuyKachur/brewsandyou/blob/master/imports/ui/CompleteSearchBar.jsx
Github Open Source
Open Source
MIT
2,019
brewsandyou
GuyKachur
null
Spoken
1,534
6,090
import React, { Component } from "react"; import { debounce } from "throttle-debounce"; import Autosuggest from "react-autosuggest"; import { Meteor } from "meteor/meteor"; import BrewMapContainer from "./BrewMapContainer.jsx"; import BreweriesList from "./BreweriesList.jsx"; import PropTypes from "prop-types"; import ...
51,942
https://github.com/apache/netbeans-website/blob/master/netbeans.apache.org/src/content/wiki/DevFaqActionAddAnyFolder.adoc
Github Open Source
Open Source
MIT, Apache-2.0, OFL-1.1
2,023
netbeans-website
apache
AsciiDoc
Code
222
544
// // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (th...
25,153
https://github.com/abelsromero/asciidoctorj/blob/master/asciidoctorj-core/src/test/java/org/asciidoctor/WhenGlobExpressionIsUsedForScanning.java
Github Open Source
Open Source
Apache-2.0
2,023
asciidoctorj
abelsromero
Java
Code
152
869
package org.asciidoctor; import org.asciidoctor.jruby.DirectoryWalker; import org.asciidoctor.jruby.GlobDirectoryWalker; import org.asciidoctor.test.ClasspathResource; import org.asciidoctor.test.extension.AsciidoctorExtension; import org.asciidoctor.test.extension.ClasspathExtension; import org.junit.jupiter.api.Test...
39,998
https://github.com/Dresel/RouteLocalization.AspNetCore/blob/master/src/RouteLocalization.AspNetCore/Selection/FilterRouteSelector.cs
Github Open Source
Open Source
MIT
2,021
RouteLocalization.AspNetCore
Dresel
C#
Code
210
911
namespace RouteLocalization.AspNetCore.Selection { using System; using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Mvc.ApplicationModels; public class FilterRouteSelector : IRouteSelector { public FilterRouteSelector(IRouteSelector routeSelector) { ParentRouteSelector = rout...
32,239
https://github.com/clipo/mataaMorphometrics/blob/master/Figures/Final_Figures/Figure_2_Mataa_Examples.eps
Github Open Source
Open Source
MIT
2,021
mataaMorphometrics
clipo
PostScript
Code
19,561
1,116,331
%!PS-Adobe-3.0 EPSF-3.0 %%Creator: cairo 1.14.0 (http://cairographics.org) %%CreationDate: Wed Mar 25 20:49:53 2015 %%Pages: 1 %%DocumentData: Clean7Bit %%LanguageLevel: 2 %%BoundingBox: 42 508 560 806 %%EndComments %%BeginProlog save 50 dict begin /q { gsave } bind def /Q { grestore } bind def /cm { 6 array astore con...
28,008
https://github.com/liangff2018/lime/blob/master/src/api/system/staticData.js
Github Open Source
Open Source
MIT
null
lime
liangff2018
JavaScript
Code
131
411
import { axios } from '@/utils/request' const api = { base: '/sys/staticData', findPage: '/sys/staticData/findPage', findItemsByName: '/sys/staticData/findStaticDataItemsByName' } export default api export function add (staticData) { return axios({ url: api.base, method: 'post', data: staticData ...
46,110
https://github.com/xiyun-international/xy-vscode-extends/blob/master/template/antd/list/form/search.vue
Github Open Source
Open Source
MIT
2,022
xy-vscode-extends
xiyun-international
Vue
Code
109
654
<template> <a-form class="search" :form="form" @submit="handleSearch"> <a-row :gutter="20"> <a-col v-bind="Layout.searchCol"> <a-form-item label="订单号" v-bind="Layout.searchItem"> <a-input v-decorator="['deliverId']" placeholder="请输入订单号" /> </a-form-item> </a-col> <a-col...
36,524
https://github.com/dzdydx/demo-ip-sniffer/blob/master/ipsniff/wsgi.py
Github Open Source
Open Source
MIT
2,019
demo-ip-sniffer
dzdydx
Python
Code
56
187
""" WSGI config for ipsniff project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from os.path import join, dirname, abspath PROJECT_DIR = dirname(dirname(abspath(__file...
14,711
https://github.com/damirault/azure-sdk-for-c/blob/master/sdk/core/az_core/inc/az_result.h
Github Open Source
Open Source
MIT
null
azure-sdk-for-c
damirault
C
Code
554
1,928
// Copyright (c) Microsoft Corporation. All rights reserved. // SPDX-License-Identifier: MIT /** * @file az_result.h * * @brief az_result and facilities definition * * @note You MUST NOT use any symbols (macros, functions, structures, enums, etc.) * prefixed with an underscore ('_') directly in your application ...
6,388
https://github.com/khandramai/mod-remote-storage/blob/master/src/main/java/org/folio/rs/domain/dto/Contributor.java
Github Open Source
Open Source
Apache-2.0
null
mod-remote-storage
khandramai
Java
Code
18
72
package org.folio.rs.domain.dto; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.Getter; @JsonIgnoreProperties(ignoreUnknown = true) @Getter public class Contributor { private String name; }
633
https://github.com/herbertfj/exampletodo/blob/master/api/lib/Api.class.php
Github Open Source
Open Source
MIT
null
exampletodo
herbertfj
PHP
Code
207
668
<?php abstract class Api { protected $method = ''; protected $endpoint = ''; protected $task = ''; protected $id = array(); protected $content = Null; public function __construct($req) { $this->id = explode('/', rtrim($req, '/')); $this->endpoint = array_shift($this->id); ...
9,696
https://github.com/LaudateCorpus1/bosh-oracle-cpi/blob/master/action/set_vm_metadata.go
Github Open Source
Open Source
Apache-2.0
2,020
bosh-oracle-cpi
LaudateCorpus1
Go
Code
96
281
package action import ( boshlog "github.com/cloudfoundry/bosh-utils/logger" "github.com/oracle/bosh-oracle-cpi/oci/client" ) // VMMetadata contains the BOSH metadata // for a vm instance type VMMetadata map[string]string // SetVMMetadata action handles the set_vm_metadata request type SetVMMetadata struct { conn...
9,896
https://github.com/Talend/apache-camel/blob/master/core/camel-core-languages/src/main/docs/modules/languages/pages/tokenize-language.adoc
Github Open Source
Open Source
Apache-2.0
2,023
apache-camel
Talend
AsciiDoc
Code
184
498
= Tokenize Language :doctitle: Tokenize :shortname: tokenize :artifactid: camel-core-languages :description: Tokenize text payloads using delimiter patterns. :since: 2.0 :supportlevel: Stable :tabs-sync-option: //Manually maintained attributes :camel-spring-boot-name: core :starter-artifactid: camel-core-starter *Sinc...
41,044
https://github.com/dhruv-tech/rivescript-brain/blob/master/node_modules/brain.js/src/utilities/ones-2d.js
Github Open Source
Open Source
MIT
2,021
rivescript-brain
dhruv-tech
JavaScript
Code
32
72
const ones = require('./ones'); module.exports = function ones2D(width, height) { const result = new Array(height); for (let y = 0; y < height; y++) { result[y] = ones(width); } return result; }
23,980
https://github.com/edonet/style/blob/master/script/build.js
Github Open Source
Open Source
MIT
null
style
edonet
JavaScript
Code
109
427
/** ***************************************** * Created by lifx * Created on 2018-10-11 11:19:17 ***************************************** */ 'use strict'; /** ***************************************** * 加载依赖 ***************************************** */ const path = require('path'), merge = require('...
4,514
https://github.com/Pika-Software/gmsv_mongodb/blob/master/src/query.h
Github Open Source
Open Source
MIT
null
gmsv_mongodb
Pika-Software
C
Code
101
410
// WARNING! SHITCODE! #ifndef QUERY_H #define QUERY_H #include "main.h" #include "pointer.h" #include <mutex> #include <condition_variable> #include <queue> #include <functional> class Query { std::function<void(Query*)> m_func; std::mutex m_mtx; std::condition_variable m_cvar; bool m_sync = false; bool m_done...
27,269
https://github.com/cue-sh/cfn-cue/blob/master/aws/uswest2/Connect.cue
Github Open Source
Open Source
Apache-2.0
2,022
cfn-cue
cue-sh
null
Spoken
968
5,449
package uswest2 import ( "github.com/cue-sh/cfn-cue/aws/fn" "strings" ) #Connect: { #ContactFlow: { Type: "AWS::Connect::ContactFlow" Properties: { Content: *(strings.MinRunes(1) & strings.MaxRunes(256000)) | fn.#Fn Description?: *string | fn.#Fn InstanceArn: *(strings.MinRunes(1) & strings.MaxR...
41,642
https://github.com/kudolab/douki_c_programs/blob/master/equ_schroeder2.c
Github Open Source
Open Source
MIT
null
douki_c_programs
kudolab
C
Code
189
689
// gcc equ_schroeder2.c -o equ_schroeder2 /* インパルス応答(*.DDA)を指定したエネルギー割合を元にシュレーダー関数より切り出す equ_schroeder [入力ファイル(.DDA)] [切り出しエネルギー割合] making by Onodera Yuki at 2016/07/01 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <complex.h> #include "FileLib_osx.h" int main(...
33,319
https://github.com/AAI-USZ/FixJS/blob/master/input/100+/after/d7d1a8408cd01b950ae23ae0d26bdc62f98d3ba0_2_19.js
Github Open Source
Open Source
MIT
2,022
FixJS
AAI-USZ
JavaScript
Code
96
277
function(){ test.assertEquals("tic should stay on one child", 1, $(tic).size()); test.assertEquals("tic should stay on first child", "1", $(tic).text()); window.setTimeout(function(){ test.assertEquals("tic should stay on one child", 1, $(tic).size()); test.assertEquals("tic should stay on se...
19,662
https://github.com/keithmacinnis/for-play/blob/master/Pods/StreamChat/Sources/StreamChat/Utils/SystemEnvironment.swift
Github Open Source
Open Source
MIT
2,021
for-play
keithmacinnis
Swift
Code
165
466
// // Copyright © 2021 Stream.io Inc. All rights reserved. // import UIKit enum SystemEnvironment { static let systemName = UIDevice.current.systemName + UIDevice.current.systemVersion static var deviceModelName: String { var systemInfo = utsname() uname(&systemInfo) let machineMi...
973
https://github.com/contentjet/contentjet-api/blob/master/src/authentication/jwt/middleware.ts
Github Open Source
Open Source
MIT
2,018
contentjet-api
contentjet
TypeScript
Code
86
260
import * as Koa from 'koa'; import User from '../../models/User'; import Client from '../../models/Client'; import AuthenticationError from '../../errors/AuthenticationError'; import { verifyAuthToken } from './utils'; export async function requireAuthentication(ctx: Koa.Context, next: () => Promise<any>): Promise<any...
9,468
https://github.com/amitfts/mis/blob/master/src/lang/ro/validation.php
Github Open Source
Open Source
MIT
2,021
mis
amitfts
PHP
Code
212
511
<?php return array( 'required' => "Câmpul este obligatoriu", 'email' => "E-mail-ul este invalid.", 'alpha_dash' => "Câmpul trebuie să conțină doar litere, cifre și cratime.", 'alpha' => "Câmpul trebuie să conțină doar litere.", 'last_name.min' => "Numele de fa...
41,994
https://github.com/frademacher/thesis-lemma-code/blob/master/de.fhdo.lemma.data.avro/src/de/fhdo/lemma/data/avro/ui/to_avro/TransformToAvroHandler.xtend
Github Open Source
Open Source
MIT
2,022
thesis-lemma-code
frademacher
null
Spoken
894
2,657
package de.fhdo.lemma.data.avro.ui.to_avro import org.eclipse.core.commands.AbstractHandler import org.eclipse.core.commands.ExecutionEvent import org.eclipse.core.commands.ExecutionException import org.eclipse.core.resources.IFile import static de.fhdo.lemma.data.avro.Util.* import static de.fhdo.lemma.data.avro.Sha...
24,297
https://github.com/lmignot/sdp-portfolio/blob/master/exercises/week07/src/main/scala/decorator/PizzaDecorator.scala
Github Open Source
Open Source
Unlicense
null
sdp-portfolio
lmignot
Scala
Code
27
66
package decorator /** * @author lmignot */ abstract class PizzaDecorator(p: Pizza) extends Pizza { override def getDesc: String = p.getDesc override def getPrice: Double = p.getPrice }
40,379
https://github.com/silva-nick/hermes/blob/master/tools/hermes-parser/js/hermes-transform/src/transform/TransformContext.js
Github Open Source
Open Source
MIT
2,021
hermes
silva-nick
JavaScript
Code
1,190
3,428
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ import type { Comment, ESNode, Expression, ModuleDeclaration, Statement, TypeAnnot...
2,576
https://github.com/mikebarker/Plethora.NET/blob/master/src/Plethora.Common/ExpressionAide/ExpressionDuplicator.cs
Github Open Source
Open Source
MIT, BSD-3-Clause
2,020
Plethora.NET
mikebarker
C#
Code
2,642
9,230
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; namespace Plethora.ExpressionAide { internal class ExpressionDuplicator { #region Public Methods public T Duplicate<T>(T expr) where T : LambdaExpression ...
37,365
https://github.com/DVS-Lab/istart/blob/master/social_reward_c/data/2222/sub-2222_ses-1_task-socialReward_facesB_events.tsv
Github Open Source
Open Source
2,023
istart
DVS-Lab
TSV
Code
726
3,900
onset duration trial_type rt resp gender 0.7614217000082135 3.005325899925083 decision 2.304984600050375 left B 4.314250899944454 1.000690400134772 loss n/a n/a n/a 11.520254699978977 3.072654000017792 decision 3.068811000091955 left B 15.139901800081134 1.0006430000066757 win n/a n/a n/a 22.21243910002522 3.0041797999...
1,060
https://github.com/eugeneilyin/mdi-norm/blob/master/es/TwoToneSignalWifi2Bar.d.ts
Github Open Source
Open Source
MIT
2,019
mdi-norm
eugeneilyin
TypeScript
Code
8
19
export { default as TwoToneSignalWifi2Bar } from './Icon';
17,146
https://github.com/mrarthurwhite/oo-counting-sentences-online-web-ft-120919/blob/master/lib/count_sentences.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,019
oo-counting-sentences-online-web-ft-120919
mrarthurwhite
Ruby
Code
52
189
require 'pry' class String def sentence? self.end_with?(".") end def question? self.end_with?("?") end def exclamation? self.end_with?("!") end def count_sentences i=0 self.split(/!+|\.|\?/) do |s| #puts s i+=1 end #puts i i end end #puts "test.".sente...
29,746
https://github.com/magnus108/photoPolysemy/blob/master/src/Utils/Mealy.hs
Github Open Source
Open Source
2,020
photoPolysemy
magnus108
Haskell
Code
354
655
{-# LANGUAGE TupleSections #-} module Utils.Mealy where import Data.Maybe newtype Mealy i a = Mealy {runMealy :: i -> (a, Mealy i a)} instance Functor (Mealy i) where fmap f (Mealy mm) = Mealy $ \i -> case mm i of (x, m) -> (f x, fmap f m) instance Applicative (Mealy i) where pure x = let r = Mealy ...
17,391
https://github.com/MEKKANIKKA/dfuse-eosio/blob/master/eosq/src/i18n/en/producer.i18n.ts
Github Open Source
Open Source
Apache-2.0
2,021
dfuse-eosio
MEKKANIKKA
TypeScript
Code
34
101
export default { producer: { title: "Block Producers", list: { empty: "No producers", header: { rank: "#", name: "Name", voteReceived: "Vote Received", blockProducedCount: "Block Prod. Nb", transactionProcessedCount: "Transac. Prod. Nb" } } } }
1,554
https://github.com/arsaela/app-sip/blob/master/app/Views/v_dataPegawaiOPD/cetak.php
Github Open Source
Open Source
MIT
null
app-sip
arsaela
PHP
Code
298
1,409
<html> <head> <title>Cetak Data Pegawai</title> <link rel="stylesheet" type="text/css" href="css/bootstrap.css"> <!-- jQuery --> <script type="text/javascript"src="/assets/adminlte3/plugins/jquery/jquery.min.js"></script> <!-- SweetAlert2 --> <link rel="stylesheet" href="/assets/adminlte3/plugins/sweetaler...
38,598
https://github.com/iotaap/iotaap-os/blob/master/src/mqtt/mqtt_client.cpp
Github Open Source
Open Source
Apache-2.0
2,022
iotaap-os
iotaap
C++
Code
905
2,635
#include "mqtt_client.h" #include "./system/queue.h" #include "./system/definitions.h" #include "./system/system_configuration.h" #include "./fs/sys_cfg.h" #include "./mqtt/mqtt_remoteControl.h" #include "./mqtt/mqtt_subscription.h" #include "./mqtt/mqtt_dataStatus.h" #include "./fs/sys_logs_data.h" #include "./hmi/le...
12,945
https://github.com/Limy569/huaweicloud-sdk-java-v3/blob/master/services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/QosCpuInfo.java
Github Open Source
Open Source
Apache-2.0
2,021
huaweicloud-sdk-java-v3
Limy569
Java
Code
296
1,311
package com.huaweicloud.sdk.meeting.v1.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import com.huaweicloud.sdk.meeting.v1.model.QosDataElement...
23,274
https://github.com/MagicPower2/Power/blob/master/node_modules/tower/packages/tower-support/shared/shared.coffee
Github Open Source
Open Source
MIT
2,016
Power
MagicPower2
CoffeeScript
Code
876
2,614
_ = Tower._ _.extend Tower, nativeExtensions: true env: "development" port: 3000 client: typeof(window) != "undefined" isClient: typeof(window) != "undefined" isServer: typeof(window) == "undefined" root: "/" publicPath: "/" case: ...
46,840
https://github.com/sm-o3/NotepadJW/blob/master/app/src/main/java/pl/bubson/notepadjw/core/Verse.java
Github Open Source
Open Source
Apache-2.0
2,020
NotepadJW
sm-o3
Java
Code
895
3,464
package pl.bubson.notepadjw.core; import android.content.Context; import android.util.Log; import org.jsoup.Jsoup; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; import androidx.annotation.NonNull; import pl.bubson.notepadjw.R...
47,152
https://github.com/EvolutionJobs/b2xtranslator/blob/master/Common/OfficeDrawing/Shapetypes/RibbonDownType.cs
Github Open Source
Open Source
BSD-3-Clause
2,018
b2xtranslator
EvolutionJobs
C#
Code
149
823
using System.Collections.Generic; namespace b2xtranslator.OfficeDrawing.Shapetypes { [OfficeShapeType(53)] public class RibbonDownType : ShapeType { public RibbonDownType() { this.ShapeConcentricFill = false; this.Joins = JoinStyle.miter; this.Path = "m,...
49,691
https://github.com/Aavesh/bumps/blob/master/client/Bumps/Classes/CarDataProvider.h
Github Open Source
Open Source
BSD-3-Clause
2,015
bumps
Aavesh
C
Code
153
574
// // CarDataProvider.h // Bumps // // Created by Jevin Sweval on 4/1/10. // Copyright 2010 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h> #import <stdint.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys...
24,419
https://github.com/lihongxing/jeendon/blob/master/views/eng-home/transaction-record-pagition.php
Github Open Source
Open Source
BSD-3-Clause
null
jeendon
lihongxing
PHP
Code
32
274
<ul> <li>任务号</li> <li>任务描述</li> <li>发布日期</li> <li>任务状态</li> </ul> <?php if(!empty($items)){?> <?php foreach($items as $key => $item){?> <ul> <li><?=$item['task_number']?></li> <li> <div style="margin-top: 10px"><?=$item['task_part_type']?>,<?=$item['ta...
4,288
https://github.com/wonday/react-native-swiper-flatlist/blob/master/example/src/App.js
Github Open Source
Open Source
Apache-2.0
2,019
react-native-swiper-flatlist
wonday
JavaScript
Code
195
661
import React, { PureComponent } from 'react'; import { Text, Dimensions, Image, StyleSheet, View } from 'react-native'; import SwiperFlatList from 'react-native-swiper-flatlist'; import Pagination from './Pagination'; import { fox, cat, background, element, lion } from './images'; export const { width, height } = Dim...
17,062
https://github.com/csuwildcat/did-key.js/blob/master/packages/create-react-app-sanity/src/utils/documentLoader.js
Github Open Source
Open Source
Apache-2.0
2,021
did-key.js
csuwildcat
JavaScript
Code
54
218
import { documentLoaderFactory, contexts, } from '@transmute/jsonld-document-loader'; import { driver } from '@transmute/did-key-ed25519'; const documentLoader = documentLoaderFactory.pluginFactory .build({ contexts: { ...contexts.W3C_Decentralized_Identifiers, ...contexts....
21,687
https://github.com/IngCristobalFlores111/luxRestaurant/blob/master/administrador/js/controllers/ctrlAlmacenes.js
Github Open Source
Open Source
Apache-2.0, MIT
2,019
luxRestaurant
IngCristobalFlores111
JavaScript
Code
304
1,159
function ctrlAlmacenes($scope, $http) { $scope.almacen = { nombre: "" }; $scope.almacenes = []; $scope.almacenAccion = 0; $scope.headerAlmacen = "Nuevo Almacen"; var AlmacenTmp = {}; $http.post("PHP/new/inventario/fetchData.php?accion=obtenerAlmacenes").then(function (resp) { $scope....
37,894
https://github.com/katajakasa/aetherguild3/blob/master/aetherguild/tools/commands/load_old_database.py
Github Open Source
Open Source
MIT
null
aetherguild3
katajakasa
Python
Code
669
3,251
import binascii import arrow from aiomysql.sa import create_engine from dynaconf import settings from passlib.hash import aethery1, aethery2 from sqlalchemy import desc from aetherguild.backend.database.tables import users, user_roles, roles, files, news_items, forum_boards, \ forum_last_reads, \ forum_post_e...
18,067
https://github.com/sprankhub/bank-integration/blob/master/app/code/community/Kinento/Bankintegration/Block/Upload/Edit/Form.php
Github Open Source
Open Source
MIT
2,018
bank-integration
sprankhub
PHP
Code
248
664
<?php /** * Kinento Bank Integration * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR...
3,087
https://github.com/mrkara/ServicesDAO/blob/master/DAO_IdentityService/Controllers/KycController.cs
Github Open Source
Open Source
MIT
2,022
ServicesDAO
mrkara
C#
Code
1,003
3,464
using Helpers.Models.DtoModels.MainDbDto; using Helpers.Models.KYCModels; using Helpers.Models.SharedModels; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using static Helpers.Constants.Enums; namespace...
213
https://github.com/KiraCore/cosmos-sdk/blob/master/types/codec.go
Github Open Source
Open Source
Apache-2.0
2,021
cosmos-sdk
KiraCore
Go
Code
35
154
package types import ( "github.com/KiraCore/cosmos-sdk/codec/types" "github.com/KiraCore/cosmos-sdk/codec" ) // Register the sdk message type func RegisterCodec(cdc *codec.Codec) { cdc.RegisterInterface((*Msg)(nil), nil) cdc.RegisterInterface((*Tx)(nil), nil) } // Register the sdk message type func RegisterInte...
44,449
https://github.com/ItsYoungDaddy/Templar-Cosmetics-Beta/blob/master/src/main/java/tae/cosmetics/gui/util/packet/server/SPacketSpawnPositionModule.java
Github Open Source
Open Source
MIT, BSD-3-Clause
2,022
Templar-Cosmetics-Beta
ItsYoungDaddy
Java
Code
68
277
package tae.cosmetics.gui.util.packet.server; import java.awt.Color; import net.minecraft.network.play.server.SPacketSpawnPosition; import tae.cosmetics.gui.util.packet.AbstractPacketModule; public class SPacketSpawnPositionModule extends AbstractPacketModule { private SPacketSpawnPosition packet; public SPack...
37,290
https://github.com/ardavey/Intermediate-Perl/blob/master/ard/Animal/scripts/mr_ed.pl
Github Open Source
Open Source
Artistic-2.0
2,015
Intermediate-Perl
ardavey
Perl
Code
38
130
#!/usr/bin/perl use strict; use warnings; use lib '../lib'; use Horse; use Sheep; my $tv_horse = Horse->named('Mr. Ed'); $tv_horse->set_name('Mister Ed'); $tv_horse->set_colour('grey'); print $tv_horse->name, ' is ', $tv_horse->colour, "\n"; print Sheep->name, ' coloured ', Sheep->colour, ' goes ', Sheep->sound, "\n...
16,586
https://github.com/mchara01/mobile_malicious_advertising/blob/master/Part 2/base/smali/com/google/android/gms/internal/ads/zzabn.smali
Github Open Source
Open Source
MIT
2,019
mobile_malicious_advertising
mchara01
Smali
Code
121
992
.class public Lcom/google/android/gms/internal/ads/zzabn; .super Lcom/google/android/gms/internal/ads/zzabf; # annotations .annotation runtime Lcom/google/android/gms/internal/ads/zzadh; .end annotation # direct methods .method constructor <init>(Landroid/content/Context;Lcom/google/android/gms/internal/ads/zzaji;L...
25,899
https://github.com/1260323835/threemetersmall2_react_admin/blob/master/src/pages/User/UserList/index.tsx
Github Open Source
Open Source
MIT
null
threemetersmall2_react_admin
1260323835
TypeScript
Code
36
118
/* * @Description: 用户列表-测试组件-可删除 * @Author: 王振 * @Date: 2021-09-28 11:21:26 * @LastEditors: 王振 * @LastEditTime: 2021-09-29 09:33:50 */ import React from 'react'; const UserList = () => { return <div>hello UserList1233</div>; }; export default UserList;
32,399
https://github.com/szapata/Migol/blob/master/app/cache/dev/assetic/config/e/e21fd570aaa953ce76b20946117f81bc.php
Github Open Source
Open Source
MIT
2,011
Migol
szapata
PHP
Code
7
27
<?php // StyleBootstrapFormBundle:Form:fields.html.twig return array ( );
3,631
https://github.com/bartwe/libunibreak/blob/master/src/linebreak.h
Github Open Source
Open Source
Zlib
2,022
libunibreak
bartwe
C
Code
408
921
/* vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: */ /* * Line breaking in a Unicode sequence. Designed to be used in a * generic text renderer. * * Copyright (C) 2008-2020 Wu Yongwei <wuyongwei at gmail dot com> * * This software is provided 'as-is', without any express or implied * warranty. In no...
8,467
https://github.com/geopera/city-geolocation/blob/master/CH/CH-regions.tsv
Github Open Source
Open Source
MIT
2,016
city-geolocation
geopera
TSV
Code
66
359
Aargau 47.3876664 8.2554295 Appenzell Outer Rhodes 47.366481 9.3000916 Basel-Landschaft 47.4418122 7.7644002 Basel-Stadt 47.5674422 7.5975507 Bern 46.9479222 7.4446085 Fribourg 46.8016663 7.1455683 Geneva 46.1983922 6.1422961 Grisons 46.6569871 9.5780257 Jura 47.3444474 7.1430608 Lucerne 47.0500376 8.3089295 ...
30,738
https://github.com/schmuli/atom-karma/blob/master/lib/karma/server.coffee
Github Open Source
Open Source
MIT
null
atom-karma
schmuli
CoffeeScript
Code
78
224
path = require 'path' exports.projectDetails = null exports.start = (project) -> exports.projectDetails = project karma = requireKarma() {major, minor} = parseVersion karma.VERSION if major > 0 || minor >= 13 # API changed in v0.13.0 server = new karma.Server configFile: require.r...
52,791
https://github.com/Gela/arcgis-runtime-samples-qt/blob/master/ArcGISRuntimeSDKQt_CppSamples/EditData/UpdateAttributesFeatureService/UpdateAttributesFeatureService.qml
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,021
arcgis-runtime-samples-qt
Gela
null
Spoken
375
1,032
// [WriteFile Name=UpdateAttributesFeatureService, Category=EditData] // [Legal] // Copyright 2016 Esri. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LI...
17,831
https://github.com/harshagrawal523/OpenMF/blob/master/flask-backend/api/models/extractor.py
Github Open Source
Open Source
Apache-2.0
2,022
OpenMF
harshagrawal523
Python
Code
93
317
""" Class definition of extractor user model. """ # Importing Dependecies from api.models.base_user import BaseUser from api.extansions import db # Model Class Definition class Extractor(BaseUser): __tablename__="extractor" # Property Declaration id = db.Column(db.Integer, unique=True, primary_key=True)...
32,680
https://github.com/elhardoum/CookieScanner/blob/master/vendor/github.com/CovenantSQL/CovenantSQL/utils/timer/timer.go
Github Open Source
Open Source
Apache-2.0
2,022
CookieScanner
elhardoum
Go
Code
281
669
/* * Copyright 2019 The CovenantSQL 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 ...
51,873
https://github.com/laurentj/wikirenderer/blob/master/tests/classicwr_blocksTest.php
Github Open Source
Open Source
MIT
2,018
wikirenderer
laurentj
PHP
Code
86
360
<?php /** * Tests unitaires * * @package wikirenderer * @subpackage tests * @author Laurent Jouanneau * @copyright 2006-2011 Laurent Jouanneau */ class classicwr_blocksTest extends PHPUnit_Framework_TestCase { function getlistblocks() { return array( array('para1',0), array...
34,619
https://github.com/Shivix/toolbox-cpp/blob/master/bench/Util.bm.cpp
Github Open Source
Open Source
Apache-2.0
null
toolbox-cpp
Shivix
C++
Code
553
1,638
// The Reactive C++ Toolbox. // Copyright (C) 2021 Reactive Markets Limited // // 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 // // Unle...
40,260
https://github.com/GustavoCaso/karafka/blob/master/spec/integrations/pro/consumption/long_running_jobs/with_manual_offset_management_endless.rb
Github Open Source
Open Source
LGPL-2.0-or-later, LGPL-3.0-only, LicenseRef-scancode-commercial-license, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-unknown-license-reference
2,022
karafka
GustavoCaso
Ruby
Code
155
403
# frozen_string_literal: true # When using manual offset management and not marking any messages we should end up in an # endless loop with same first message. # Does not make much sense but we test this scenario anyhow setup_karafka do |config| # We set it here that way not too wait too long on stuff config.kafk...
23,548
https://github.com/civicledger/IPRx-Core/blob/master/test/iprx-tests.js
Github Open Source
Open Source
MIT
null
IPRx-Core
civicledger
JavaScript
Code
82
235
import exchangeTests from './exchange/exchange-tests'; import marketplacesTests from './exchange/marketplaces-tests'; import ipOrganisationsTests from './ip-organisations/ip-organisations-tests'; import australianPatentTokenTests from './ip-organisations/australia/patents/patent-token-tests'; import australianPatentReg...
45,479
https://github.com/mualiyu/mautech_consult/blob/master/app/Payment.php
Github Open Source
Open Source
MIT
null
mautech_consult
mualiyu
PHP
Code
80
306
<?php namespace App; use Illuminate\Database\Eloquent\Model; use App\Beneficiary; use App\Tax; use App\Voucher; use App\Mandate; use App\Budget; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany; class Payment extends Model { protected $fillable = [ ...
20,881
https://github.com/knkgun/gitlab-pages/blob/master/test/acceptance/encodings_test.go
Github Open Source
Open Source
MIT
null
gitlab-pages
knkgun
Go
Code
144
671
package acceptance_test import ( "mime" "net/http" "testing" "github.com/stretchr/testify/require" ) func TestMIMETypes(t *testing.T) { RunPagesProcess(t, withListeners([]ListenSpec{httpListener}), ) tests := map[string]struct { file string expectedContentType string }{ "manifest_json...
34,329
https://github.com/MooVC/MooVC/blob/master/src/MooVC/Processing/ProcessorStateChangedAsyncEventArgs.cs
Github Open Source
Open Source
MIT
2,021
MooVC
MooVC
C#
Code
63
223
namespace MooVC.Processing { using System; using System.Runtime.Serialization; using System.Threading; using MooVC.Serialization; [Serializable] public sealed class ProcessorStateChangedAsyncEventArgs : AsyncEventArgs, ISerializable { public ProcessorStateChangedA...
28,702
https://github.com/smtlaissezfaire/ruby-protobuf/blob/master/lib/protobuf/compiler/template/rpc_client.erb
Github Open Source
Open Source
MIT
2,009
ruby-protobuf
smtlaissezfaire
Ruby
Code
56
146
#!/usr/bin/env ruby require 'protobuf/rpc/client' require '<%= required_file %>' # build request request = <%= message_module %>::<%= request %>.new # TODO: setup a request raise StandardError.new('setup a request') # create blunk response response = <%= message_module %>::<%= response %>.new # execute rpc Protobuf:...
50,443
https://github.com/hlzz/dotfiles/blob/master/dev/cmake-3.5.1/Source/cmExtraSublimeTextGenerator.h
Github Open Source
Open Source
BSD-3-Clause
2,019
dotfiles
hlzz
C
Code
307
838
/*============================================================================ CMake - Cross Platform Makefile Generator Copyright 2004-2009 Kitware, Inc. Copyright 2004 Alexander Neundorf (neundorf@kde.org) Distributed under the OSI-approved BSD License (the "License"); see accompanying file Copyright.txt f...
12,693
https://github.com/WolframResearch/MongoLink/blob/master/MongoLink/Documentation/English/ReferencePages/Symbols/MongoCollectionDeleteMany.nb
Github Open Source
Open Source
Apache-2.0
2,021
MongoLink
WolframResearch
Mathematica
Code
3,702
24,540
(*CacheID: 234*) (* Internal cache information: NotebookFileLineBreakTest NotebookFileLineBreakTest NotebookDataPosition[ 0, 0] NotebookDataLength[ 71611, 1661] NotebookOptionsPosition[ 58986, 1395] NotebookOutlinePosition[ 60193, 1429] CellTagsIndexPosition[ 60113, ...
41,966
https://github.com/luizcartolano2/mc920-image-processing/blob/master/proj3/basicImage.py
Github Open Source
Open Source
MIT
2,019
mc920-image-processing
luizcartolano2
Python
Code
237
563
__author__ = "Luiz Cartolano <cartolanoluiz@gmail.com>" __status__ = "production" __version__ = "1.1" __date__ = "12 december 2018" try: import cv2 import numpy as np except ImportError: raise SystemExit def read_image(filename): """ Method to read new images :param filename: The file l...
29,468
https://github.com/willbach/trustmi-mobile/blob/master/src/ui/custom-components/GroupSelector.tsx
Github Open Source
Open Source
Apache-2.0
2,020
trustmi-mobile
willbach
TypeScript
Code
378
1,175
import React from 'react' import { View, Dimensions } from 'react-native' import { Icon, Text, Form, Item, Input, Toast } from 'native-base' import ProfilePic from 'ui/custom-components/ProfilePic' import Group from 'types/Group' import Event from 'types/Event' import Chat from 'types/Chat' import Announcement from 't...
14,139
https://github.com/shrsakai/laravel6-sample/blob/master/app/Http/Resources/TaskCollection.php
Github Open Source
Open Source
MIT
null
laravel6-sample
shrsakai
PHP
Code
46
141
<?php namespace App\Http\Resources; use App\Http\Resources\Traits\ApiResourceTrait; use Illuminate\Http\Resources\Json\ResourceCollection; /** * Class TaskCollection * @package App\Http\Resources */ class TaskCollection extends ResourceCollection { /** * Transform the resource collection into an array. ...
51,691