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/adilkangerey/prowide-iso20022/blob/master/model-auth-types/src/generated/java/com/prowidesoftware/swift/model/mx/dic/SecurityCommodity2Choice.java
Github Open Source
Open Source
Apache-2.0
2,021
prowide-iso20022
adilkangerey
Java
Code
214
697
package com.prowidesoftware.swift.model.mx.dic; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang...
12,929
https://github.com/macminix/MacMinix/blob/master/include/stdio.h
Github Open Source
Open Source
BSD-3-Clause
2,022
MacMinix
macminix
C
Code
583
1,985
/* The <stdio.h> header is used by the I/O routines. */ #ifndef _STDIO_H #define _STDIO_H #ifdef NULL #undef NULL #endif #define BUFSIZ 1024 #define NFILES 20 #define NULL 0 #define EOF (-1) #define CMASK 0377 #define READMODE 1 #define WRITEMODE 2 #define UNBUFF 4 #define _EOF 8 ...
47,804
https://github.com/mhmdio/mhmd.io/blob/master/src/components/Nav.js
Github Open Source
Open Source
MIT
null
mhmd.io
mhmdio
JavaScript
Code
82
284
// Nav.js import React from "react" import styled from "styled-components" import Switch from "../components/switch" const Nav = () => ( <nav> <Wrapper> <a href="/">Home</a> | <a href="/blog">Blog</a> |{" "} <a href="/about">About</a> | <a href="/podcasts">Podcasts</a> |{" "} <a href="/workshop...
52,591
https://github.com/szendezsombor/thesis/blob/master/Codes/backend/controllers/item-type.controller.js
Github Open Source
Open Source
Apache-2.0
null
thesis
szendezsombor
JavaScript
Code
161
650
const ItemType = require('../models/item-type.model'); exports.getAllItemType = (req, res) => { ItemType.getAllItemType().then(itemTypes => { res.status(200).send(itemTypes); }).catch(error => { res.status(301).send({ message: error.message }); }); } exports.getItemType...
43,200
https://github.com/doc22940/style/blob/master/packages/theme-eisbaer/guide/Copyable/CodeRenderer/index.js
Github Open Source
Open Source
MIT
2,020
style
doc22940
JavaScript
Code
103
342
import 'prismjs/themes/prism-dark.css'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import React from 'react'; import Refractor from 'react-refractor'; import { component } from './styles.scss'; import copy from 'copy-to-clipboard'; import ejs from 'refractor/lang/ejs'; import { faCopy } from '@f...
8,966
https://github.com/erdomke/AngleParse/blob/master/src/BracketPipe/Parser/Html/Tokens/HtmlEndTag.cs
Github Open Source
Open Source
MIT
2,022
AngleParse
erdomke
C#
Code
71
212
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace BracketPipe { public sealed class HtmlEndTag : HtmlTagNode { #region Properties public override HtmlTokenType Type { get { return HtmlTokenType.EndTag; } } #endregion #region ctor public HtmlEnd...
20,514
https://github.com/KaraJoker/TestDemo/blob/master/test_common/src/main/java/com/highto/pub/common/jsonrpc/JsonRpcResponseVO.java
Github Open Source
Open Source
Apache-2.0
2,019
TestDemo
KaraJoker
Java
Code
80
237
package com.highto.pub.common.jsonrpc; public class JsonRpcResponseVO { private String id = ""; private String jsonrpc = "2.0"; private Object result; public JsonRpcResponseVO() { } public String getId() { return id; } public void setId(String id) { this.id = id; } public JsonRpcResponseVO(Object ...
54,203
https://github.com/unbounce/raml-tester/blob/master/src/test/resources/guru/nidi/ramltester/include.raml
Github Open Source
Open Source
Apache-2.0
2,022
raml-tester
unbounce
null
Spoken
44
172
#%RAML 0.8 --- title: include baseUri: http://nidi.guru/raml/v1 version: v1 resourceTypes: - myCollection: get: queryParameters: <<param>>: responses: 200: body: application/json: schema: !include string.json example:...
34,692
https://github.com/kuporific/rare-generic-features/blob/master/src/test/java/com/implementsblog/gencon/sample/example4/Example4.java
Github Open Source
Open Source
MIT
null
rare-generic-features
kuporific
Java
Code
47
124
package com.implementsblog.gencon.sample.example4; import java.io.Serializable; import java.util.Collection; import java.util.function.Function; public class Example4<C extends Collection & Function<C, String>> { public <T extends String & Serializable> void method1(T t) { } public <T extends String> void met...
38,727
https://github.com/vistone/rest3d/blob/master/server/src/sendfile.js
Github Open Source
Open Source
MIT
2,014
rest3d
vistone
JavaScript
Code
64
246
'use strict'; var sendFile = function(req,res,p) { var send = require('send'); var http = require('http'); function error(err) { res.statusCode = err.status; res.end(http.STATUS_CODES[err.status]); console.log('send error'); console.log(err); console.log('******') } ...
49,335
https://github.com/heroking/openwebrtc-examples/blob/master/android/WebView/mklink.sh
Github Open Source
Open Source
BSD-2-Clause
2,015
openwebrtc-examples
heroking
Shell
Code
8
69
ln -s ~/cerbero/dist/android_armv7/lib/jni/openwebrtc_bridge.jar app/libs/ ln -s ~/cerbero/dist/android_armv7/lib/jni/openwebrtc.jar app/libs/
5,075
https://github.com/layonsonofre/Fluffy/blob/master/db/procedures/getServicoAgendado.sql
Github Open Source
Open Source
MIT
2,016
Fluffy
layonsonofre
SQL
Code
81
314
CREATE DEFINER=`root`@`localhost` PROCEDURE `getServicoAgendado`( IN id INT, IN servico_contratado_id INT, IN data_inicio DATETIME, IN data_fim DATETIME ) BEGIN SELECT sa.id, s.nome, sa.data_hora, sp.preco, a.nome, sa.servico_contratado_id, sa.recorrente, sa.executado, sa.pago, sa.observacao, sa.dat...
29,138
https://github.com/blanet/sourcegraph/blob/master/client/web/src/integration/insights/fixtures/runtime-insights.ts
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference
2,022
sourcegraph
blanet
TypeScript
Code
637
2,099
import { BulkSearchCommits, BulkSearchFields, GetInsightPreviewResult, SearchResultsStatsResult, } from '../../../graphql-operations' /** * All just in time insights on the fronted since we don't have pre-calculated data for them in * the code insights database tables work through our Search API gql ...
12,771
https://github.com/guillep/pharo/blob/master/src/Nautilus.package/Nautilus.class/instance/showInstance..st
Github Open Source
Open Source
MIT
2,017
pharo
guillep
null
Spoken
14
38
accessing showInstance: aBoolean showInstance := aBoolean. self announcer announce: ( NautilusShowInstanceChanged boolean: aBoolean )
35,438
https://github.com/cl520hujj/MVPHabit/blob/master/MVPHabit/src/main/java/com/itzxx/helperlibrary/utils/keyboard/callback/IkeyBoardCallback.java
Github Open Source
Open Source
Apache-2.0
2,019
MVPHabit
cl520hujj
Java
Code
44
159
package com.itzxx.helperlibrary.utils.keyboard.callback; /** * ProjectName: helperHabit * Author: xxzhang * CreateAt: 2019-1-31 15:58 * Description: 用于接收键盘事件的回调 * Copyright © itzxx Inc. All Rights Reserved */ public interface IkeyBoardCallback { /** * 当键盘显示时回调 */ public void onKeyBoardShow...
48,853
https://github.com/ati-ozgur/stackoverflowQuestions/blob/master/R/dynamicDataFrame1.R
Github Open Source
Open Source
MIT
2,017
stackoverflowQuestions
ati-ozgur
R
Code
10
46
master<-c("bob","ed","frank") d<-seq(1:10) for (i in 1:length(master)){ assign(master[i], d ) }
36,812
https://github.com/jomalley2112/controller_scaffolding/blob/master/lib/generators/assets/stylesheets/controller_scaffolding.css.scss
Github Open Source
Open Source
MIT
null
controller_scaffolding
jomalley2112
SCSS
Code
397
1,487
$gray-lighter: lighten(#000, 80%); $gray-light: lighten(#000, 46.7%); $table-bg-color: white; $border-color: #CBE6E6; $link-color: #704942; $light-neutral-color: #DFD7BE; $darker-neutral-color: #AEA78F; /*Mixins*/ @mixin tblbasic { width: 850px; background-color: $table-bg-color; border-radius: 5px; border: s...
43,568
https://github.com/hashcube/js.io/blob/master/compilers/jsio_compile/compiler.js
Github Open Source
Open Source
MIT
2,019
js.io
hashcube
JavaScript
Code
962
2,570
import jsio.util.path as path; var JSIO = 'jsio'; var J; var supportedEnvs = { node: true, browser: true }; var _interface = null; exports.start = function(/*optional*/ args, opts) { if (opts && opts['interface']) { _interface = opts['interface']; delete opts['interface']; } else { if (!J) { J = jsio....
1,640
https://github.com/FingerLeakers/unstoppable-demo-browser/blob/master/src/browserui/views/browser/BrowserView/components/ErrorPage/index.tsx
Github Open Source
Open Source
MIT
2,022
unstoppable-demo-browser
FingerLeakers
TypeScript
Code
66
165
import { observer } from 'mobx-react-lite'; import * as React from 'react'; import { BrowserSession } from '~/browserui/models/browser-session'; import { NotFoundContainer } from '~/browserui/views/browser/BrowserView/components/ErrorPage/style'; let currentSession: BrowserSession = null; export const ErrorPage = obs...
23,156
https://github.com/GsDevKit/GsDevKit_home/blob/master/shared/repos/todeClient/GsDevKit-CommandLine.package/GsDevKitStoneInfo.class/instance/fromSton..st
Github Open Source
Open Source
MIT
2,023
GsDevKit_home
GsDevKit
null
Spoken
44
93
ston fromSton: stonReader stonReader parseMapDo: [ :instVarName :value | [ self instVarNamed: instVarName put: value ] on: Error do: [ :ignored | "If the instance variable for a TodeClient is missing ... it is for a good reason ... keep on truckin'" ] ]
12,043
https://github.com/speedy4all/patterns-membership/blob/master/test/api_spec.js
Github Open Source
Open Source
Apache-2.0
null
patterns-membership
speedy4all
JavaScript
Code
78
317
const db = require('secondthought'); const Membership = require('../index'); const assert = require('assert'); describe('Main API', function(){ var memb = {}; before(function(done){ memb = new Membership('membership'); db.connect({db: 'membership'}, function(err, db){ db.users.destr...
10,798
https://github.com/nxy006/java-algorithm/blob/master/oj-leetcode-algorithm/src/main/java/com/nxy006/project/algorithm/leetcode/p0143/reorder_list/Solution.java
Github Open Source
Open Source
MIT
null
java-algorithm
nxy006
Java
Code
236
775
package com.nxy006.project.algorithm.leetcode.p0143.reorder_list; import com.nxy006.project.alogtithm.utils.CaseAssertUtils; import com.nxy006.project.alogtithm.utils.StructConvertUtils; import com.nxy006.project.alogtithm.utils.struct.ListNode; /** * 常规解法 * 将原链表分为前后两个部分,并将后半部分反转,再逐个拼接即可 * 时间复杂度:O(n),空间复杂度:O(1) *...
52,159
https://github.com/mrhenry/mr-util/blob/master/src/index.ts
Github Open Source
Open Source
MIT
null
mr-util
mrhenry
TypeScript
Code
8
15
export * from './url'; export * from './console';
27,846
https://github.com/cfeitong/HuaWeiCodeCraft2018/blob/master/ecs/allocation.cpp
Github Open Source
Open Source
MIT
null
HuaWeiCodeCraft2018
cfeitong
C++
Code
630
1,860
// // Created by 陈斐童 on 27/03/2018. // #include "allocation.h" #include <iostream> #include <cmath> #include <random> int Allocator::count(int phy_id, const string &flavor) { int id = phy_id - 1; if (this->result.find(id) == this->result.end()) return 0; auto &t = this->result[id]; return t[flavor]; ...
680
https://github.com/Mounika1705/ecommerce/blob/master/src/header/header.test.js
Github Open Source
Open Source
MIT
null
ecommerce
Mounika1705
JavaScript
Code
67
192
import React from 'react'; import Header from '../header/header'; import { shallow } from '../enzyme'; let component; describe('<Header/>', () => { beforeEach(() => { component = shallow(<Header/>); }); it('render Header component correctly', () => { expect(component.exists()).toBe(true); }); it(...
22,399
https://github.com/KotrynaPapartyna/eshopLaravel/blob/master/resources/views/pdf_shop_template.blade.php
Github Open Source
Open Source
MIT
null
eshopLaravel
KotrynaPapartyna
PHP
Code
57
254
<style> h1 { color: blue; } table, th, td { border: 1px solid black; } </style> {{--vaizdas kaip atrodys ir ka sugeneruos pdf faila lenteleje --}} <h1>SHOPS</h1> <table> <tr> <th>ID</th> <th>Shop Title</th> <th>Shop Description</th> <th>Sho...
9,757
https://github.com/brick/postcode/blob/master/tests/Formatter/AIFormatterTest.php
Github Open Source
Open Source
MIT
2,023
postcode
brick
PHP
Code
72
265
<?php declare(strict_types=1); namespace Brick\Postcode\Tests\Formatter; use Brick\Postcode\CountryPostcodeFormatter; use Brick\Postcode\Formatter\AIFormatter; use Brick\Postcode\Tests\CountryPostcodeFormatterTest; /** * Unit tests for the AI postcode formatter. */ class AIFormatterTest extends CountryPostcodeFor...
9,133
https://github.com/streamich/reaction/blob/master/src/Components/Publishing/Layouts/VideoLayout.tsx
Github Open Source
Open Source
MIT
null
reaction
streamich
TypeScript
Code
414
1,377
import React, { Component } from "react" import { Col } from 'react-styled-flexboxgrid' import styled from "styled-components" import Events from "../../../Utils/Events" import { track } from "../../../Utils/track" import { media } from "../../Helpers" import { getEditorialHref } from "../Constants" import { Fonts } fr...
43,679
https://github.com/moderngl/moderngl/blob/master/examples/transform_feedback_gen_buffer.py
Github Open Source
Open Source
MIT
2,023
moderngl
moderngl
Python
Code
149
424
""" Generates buffer data on the gpu using transform feedback. We use an empty VertexArray running it vertices times outputting data to the buffer. More fancy calculations can of course be done. This example just shows the concept. """ import struct from ported._example import Example class GenerateData(Example): ...
41,118
https://github.com/movamo/react-native-admob/blob/master/ios/GADTSearchTemplateView.h
Github Open Source
Open Source
BSD-2-Clause
null
react-native-admob
movamo
C
Code
18
52
#import "GADTTemplateView.h" /// A small template, perfect for UITableViewCells or other row views. @interface GADTSearchTemplateView : GADTTemplateView @end
20,434
https://github.com/douglasramos/processorARM/blob/master/src/writeBufferUC.vhd
Github Open Source
Open Source
MIT
null
processorARM
douglasramos
VHDL
Code
224
575
-- PCS3422 - Organizacao e Arquitetura de Computadores II -- ARM -- -- Description: -- Write Buffer (Unidade de controle) library ieee; use ieee.numeric_bit.all; -- importa os types do projeto use types.all; entity WBControl is port ( -- I/O relacionados ao stage IF clk : in bit; queue ...
49,884
https://github.com/GagikAbovyan/serv/blob/master/newpojrct/node_modules/igniteui-angular-core/ES2015/DecoderFallbackException.js
Github Open Source
Open Source
MS-PL, MIT
2,019
serv
GagikAbovyan
JavaScript
Code
160
451
// // DecoderFallbackException.cs // // Author: // Atsushi Enomoto <atsushi@ximian.com> // import { ArgumentException } from "./ArgumentException"; import { markType } from "./type"; export class DecoderFallbackException extends ArgumentException { constructor(a, ..._rest) { a = (a == void 0) ? 0 : a; ...
33,891
https://github.com/iqkhilji/iqkhilji.github.io/blob/master/region-3.php
Github Open Source
Open Source
Apache-2.0
null
iqkhilji.github.io
iqkhilji
PHP
Code
421
1,857
<?php include 'main.php';?> <?php include 'inc/dbcon.php';?> <!DOCTYPE HTML> <html> <head> <link rel="stylesheet" type="text/css" href="inc/css/structure.css"> <link rel="stylesheet" type="text/css" href="inc/css/mystyles.css"> </head> <body> <section class="HomeKisii"> <img src="img/23.jpg" alt="Mountain View" style="...
3,239
https://github.com/dianping/cat/blob/master/cat-home/src/main/webapp/assets/js/editor/ext-settings_menu.js
Github Open Source
Open Source
MIT, Apache-2.0, LGPL-2.1-or-later, BSD-3-Clause, GPL-2.0-only, LicenseRef-scancode-unknown-license-reference
2,023
cat
dianping
JavaScript
Code
1,609
6,475
define("ace/ext/menu_tools/element_generator",["require","exports","module"], function(require, exports, module) { 'use strict'; module.exports.createOption = function createOption (obj) { var attribute; var el = document.createElement('option'); for(attribute in obj) { if(obj.hasOwnProperty(attribu...
54,604
https://github.com/andreshp/GeneticQAP/blob/master/results/paper/sko100e/GADEGD/new-random/ps=64/2.sol
Github Open Source
Open Source
MIT
2,017
GeneticQAP
andreshp
Gerber Image
Code
138
193
Time (s): 100.03363490104675 Number of evaluations: 2384181 Number of iterations: 1308 Number of local search applications: 0 Number of greedy solutions: 10219 Number of reemplacements in GADEGD: 50121 The solution has objective value 151680 . The permutation is: [64 65 58 31 99 76 66 23 40 85 15 16 47 17 43 72 80 35 5...
43,632
https://github.com/mnagel/csvplot/blob/master/regex2db.py
Github Open Source
Open Source
Unlicense, MIT
2,021
csvplot
mnagel
Python
Code
248
858
#! /usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import argparse import logging import re import sqlite3 import sys def read_arguments(args): parser = argparse.ArgumentParser() parser.add_argument('--dbfile', required=True, type=str) parser.add_argument('--truncate', ...
47,210
https://github.com/sx5486510/cloudflare-ddns-sync/blob/master/tests/test-convert-crontime.js
Github Open Source
Open Source
ISC
2,018
cloudflare-ddns-sync
sx5486510
JavaScript
Code
466
1,208
'use strict'; const chai = require('chai'); const expect = chai.expect; const ctConverter = require('../lib/crontime-converter'); describe ('Convert Interval to CronTime', () => { describe ('ByInterval', () => { it ('[0, 1, 2] should return "0 1 2 * * *"', () => { const result = ctConverter.convertInterv...
8,003
https://github.com/teamgeistnrw/teamgeistnrw.github.io/blob/master/.gitmodules
Github Open Source
Open Source
MIT
2,020
teamgeistnrw.github.io
teamgeistnrw
Git Config
Code
8
39
[submodule "themes/dimension"] path = themes/dimension url = "https://github.com/your-identity/hugo-theme-dimension/"
19,124
https://github.com/TrendingTechnology/youtrack-mobile/blob/master/src/components/wiki/markdown-view-chunks.js
Github Open Source
Open Source
Apache-2.0
2,021
youtrack-mobile
TrendingTechnology
JavaScript
Code
379
1,202
/* @flow */ import React, {useCallback, useEffect, useState} from 'react'; import {stringToTokens, tokensToAST} from 'react-native-markdown-display'; import apiHelper from '../../components/api/api__helper'; import getMarkdownRules from './markdown-view-rules'; import MarkdownAST from '../../components/wiki/markdown...
34,835
https://github.com/ProSayJ/springbootstudy/blob/master/event/src/main/java/com/prosayj/springboot/event/eventcore/event/EventContainer.java
Github Open Source
Open Source
Apache-2.0
2,021
springbootstudy
ProSayJ
Java
Code
167
585
package com.prosayj.springboot.event.eventcore.event; import org.slf4j.Logger; /** * @description 事件容器 * @author yangjian * @Date 16:23 2018/9/20 * @param null * @since 1.0.0 */ import org.slf4j.LoggerFactory; import java.util.*; public class EventContainer { private Logger logger = LoggerFactory.getLogge...
21,475
https://github.com/jupyterlab/jupyterlab/blob/master/packages/lsp/test/positioning.spec.ts
Github Open Source
Open Source
BSD-3-Clause, MIT
2,023
jupyterlab
jupyterlab
TypeScript
Code
267
768
/* * Copyright (c) Jupyter Development Team. * Distributed under the terms of the Modified BSD License. */ import { offsetAtPosition, positionAtOffset } from '@jupyterlab/lsp'; describe('positionAtOffset', () => { it('works with single line', () => { let position = positionAtOffset(0, ['']); expect(posit...
42,136
https://github.com/erykpiast/cyclejs-mock/blob/master/src/inject-testing-utils.js
Github Open Source
Open Source
MIT
2,015
cyclejs-mock
erykpiast
JavaScript
Code
538
1,462
import { Rx } from 'cyclejs'; import 'cyclejs/node_modules/rx/dist/rx.virtualtime'; // this call extends Rx above with VirtualTime class and HAS TO be included BEFORE rx.testing import 'cyclejs/node_modules/rx/dist/rx.testing'; import createElement from 'cyclejs/node_modules/virtual-dom/create-element'; import getPa...
13,122
https://github.com/Summer-Cattle/Cattle-Addons-Tencent/blob/master/cattle-addons-wechat-starter/src/main/java/com/gitlab/summercattle/addons/wechat/miniprogram/service/MiniProgramServiceImpl.java
Github Open Source
Open Source
Apache-2.0
null
Cattle-Addons-Tencent
Summer-Cattle
Java
Code
812
3,610
/* * Copyright (C) 2018 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 app...
3,483
https://github.com/phpitcast1/framework/blob/master/ci/application/controllers/Msg.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,018
framework
phpitcast1
PHP
Code
76
410
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Msg extends CI_Controller { //添加 public function add() { #1.判断是否post提交 if (IS_POST) { #2.接受数据 $postData['uname'] = $this->input->post('uname'); $postData['content'] = $this->input->post('content'); $postData['created_at'] =...
26,168
https://github.com/hbo/soma/blob/master/internal/rest/repository__check_config.go
Github Open Source
Open Source
BSD-2-Clause
null
soma
hbo
Go
Code
475
1,820
/*- * Copyright (c) 2016-2017, Jörg Pernfuß * * Use of this source code is governed by a 2-clause BSD license * that can be found in the LICENSE file. */ package rest // import "github.com/mjolnir42/soma/internal/rest" import ( "fmt" "net/http" "github.com/mjolnir42/soma/internal/msg" "github.com/mjolnir42/...
48,256
https://github.com/kellerkompanie/kellerkompanie-mods/blob/master/addons/punch/functions/fnc_wakeHead.sqf
Github Open Source
Open Source
MIT
2,019
kellerkompanie-mods
kellerkompanie
SQF
Code
35
139
#include "script_component.hpp" if (!GVAR(enabled)) exitWith {false}; params ["_player", "_target"]; [_player, _target] spawn { params ["_player", "_target"]; _player playActionNow "PutDown"; sleep 0.5; [_target, QGVAR(InhaleSound)] remoteExec ["say3D", 0, false]; sleep 4; ["ace_medical_...
46,827
https://github.com/hueniverse/penseur/blob/master/lib/criteria.js
Github Open Source
Open Source
BSD-3-Clause
2,018
penseur
hueniverse
JavaScript
Code
652
2,122
'use strict'; const Hoek = require('hoek'); const RethinkDB = require('rethinkdb'); const Geo = require('./geo'); const Special = require('./special'); const internals = {}; exports.select = function (criteria, table, options = {}) { if (criteria === null) { return table.raw; } // Optimize s...
29,869
https://github.com/GEOS-ESM/GMAO_Shared/blob/master/pnagpack/examples/psp/grid.f
Github Open Source
Open Source
NASA-1.3, ECL-2.0, Apache-2.0
2,020
GMAO_Shared
GEOS-ESM
null
Spoken
1,546
4,675
c filename: grid3d.f c c An example of using PSPARSLIB to find extreme eigenvalues of c 3-D Lapalacian operator. c program grid3d implicit none include 'simphb.h' include 'mpif.h' c .. Parameters .. integer memsize parameter (memsize=2000000) dou...
13,592
https://github.com/quangkr/portfolio-backend/blob/master/src/api/article-category/routes/article-category.js
Github Open Source
Open Source
MIT
null
portfolio-backend
quangkr
JavaScript
Code
16
59
'use strict'; /** * article-category router. */ const { createCoreRouter } = require('@strapi/strapi').factories; module.exports = createCoreRouter('api::article-category.article-category');
45,687
https://github.com/gisdevelope/GPSPlatform/blob/master/src/JT808.Protocol.Test/MessageBody/JT808_0x0200Test.cs
Github Open Source
Open Source
MIT
2,018
GPSPlatform
gisdevelope
C#
Code
641
3,100
using JT808.Protocol.MessageBody; using JT808.Protocol.MessageBody.JT808LocationAttach; using System; using System.Collections.Generic; using System.Text; using Xunit; using JT808.Protocol.Extensions; using JT808.Protocol.Test.JT808LocationAttach; using System.IO; using JT808.Protocol.JT808Formatters; using JT808.Prot...
14,002
https://github.com/niaid/netsparker-cloud-js/blob/master/dist/api/rolesApi.d.ts
Github Open Source
Open Source
MIT
null
netsparker-cloud-js
niaid
TypeScript
Code
354
946
/** * Netsparker Enterprise API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tec...
11,139
https://github.com/foca-js/foca/blob/master/src/utils/deepEqual.ts
Github Open Source
Open Source
MIT
2,022
foca
foca-js
TypeScript
Code
145
345
import { OBJECT } from './isType'; export const deepEqual = (a: any, b: any): boolean => { if (a === b) return true; if (a && b && typeof a == OBJECT && typeof b == OBJECT) { if (a.constructor !== b.constructor) return false; let i: number; let len: number; let key: string; if (Array.isArray...
6,836
https://github.com/yuxiaohuang/research/blob/master/gwu/accepted/flairs_2020/arc/result/others/tic-tac-toe/decision_tree_fig/DecisionTreeClassifier/7/tic-tac-toe.dot
Github Open Source
Open Source
MIT
2,022
research
yuxiaohuang
Graphviz (DOT)
Code
2,243
5,703
digraph Tree { node [shape=box] ; 0 [label="middle-middle-square_o <= 0.5\ngini = 0.5\nsamples = 1128\nvalue = [564, 564]"] ; 1 [label="top-left-square_o <= 0.5\ngini = 0.456\nsamples = 664\nvalue = [234, 430]"] ; 0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ; 2 [label="bottom-right-square_o <= 0.5\ngini...
30,993
https://github.com/alrawi90/ruby-objects-has-many-lab-re-coded-000/blob/master/lib/author.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,016
ruby-objects-has-many-lab-re-coded-000
alrawi90
Ruby
Code
32
145
class Author attr_accessor :name ,:posts @@post_count=0 def initialize(name) @name=name @posts=[] end def add_post(post) post.author=self @posts.push(post) @@post_count +=1 end def add_post_by_title(post_title) post=Post.new(post_title) post.author=self @posts.push(post) @@post_count +=1 end def s...
20,895
https://github.com/JonathanUhler/Minecraft-Assembler/blob/master/src/src/main/MCasm.java
Github Open Source
Open Source
MIT
2,020
Minecraft-Assembler
JonathanUhler
Java
Code
330
837
// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= // MCasm.java // MC-Assembler // // Created by Jonathan Uhler on 6/2/21 // +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= package main; import javacli.annotat...
48,809
https://github.com/RadicalZephyr/relm/blob/master/relm-examples/examples/7gui/7_cells/src/gui/cell.rs
Github Open Source
Open Source
MIT
2,022
relm
RadicalZephyr
Rust
Code
343
1,038
use crate::gui::popup_menu::{PopupMenu, PopupMenuMsg}; use crate::gui::spreadsheet::SpreadsheetMsg; use crate::model::CellRef; use gdk::EventButton; use gtk::prelude::*; use relm::{Component, Relm, StreamHandle, Widget}; use relm_derive::{widget, Msg}; #[derive(Msg)] pub enum CellMsg { /// The cell has been click...
36,995
https://github.com/infernojs/eslint-plugin-inferno/blob/master/lib/util/isDestructuredFromPragmaImport.js
Github Open Source
Open Source
MIT
2,023
eslint-plugin-inferno
infernojs
JavaScript
Code
245
721
'use strict'; const pragmaUtil = require('./pragma'); const variableUtil = require('./variable'); /** * Check if variable is destructured from pragma import * * @param {string} variable The variable name to check * @param {Context} context eslint context * @returns {Boolean} True if createElement is destructured...
3,747
https://github.com/ehuss/subup/blob/master/src/lib.rs
Github Open Source
Open Source
MIT
2,022
subup
ehuss
Rust
Code
9
16
pub mod cli; pub mod log; pub mod runner;
1,913
https://github.com/nikolaposa/version/blob/master/src/Version.php
Github Open Source
Open Source
MIT
2,022
version
nikolaposa
PHP
Code
692
2,236
<?php declare(strict_types=1); namespace Version; use JsonSerializable; use Version\Assert\VersionAssert; use Version\Extension\Build; use Version\Exception\InvalidVersionString; use Version\Comparison\Comparator; use Version\Comparison\SemverComparator; use Version\Comparison\Constraint\Constraint; use Version\Exte...
23,210
https://github.com/pilotx45/sl4a/blob/master/perl/src/t/mro/inconsistent_c3.t
Github Open Source
Open Source
LicenseRef-scancode-other-copyleft, LicenseRef-scancode-warranty-disclaimer, GPL-1.0-or-later, LicenseRef-scancode-generic-exception, LicenseRef-scancode-proprietary-license, Artistic-2.0, LicenseRef-scancode-unknown-license-reference, Artistic-1.0-Perl, Apache-2.0
2,022
sl4a
pilotx45
Perl
Code
121
325
#!./perl use strict; use warnings; BEGIN { unless (-d 'blib') { chdir 't' if -d 't'; @INC = '../lib'; } } require q(./test.pl); plan(tests => 1); require mro; =pod This example is take from: http://www.python.org/2.3/mro.html "Serious order disagreement" # From Guido class O: pass class X(...
1,600
https://github.com/RuningLEE/psychic-train/blob/master/jiabasha/Class/Controller/My/MyOrderViewController.m
Github Open Source
Open Source
MIT
2,017
psychic-train
RuningLEE
Objective-C
Code
535
2,887
// // MyOrderViewController.m // jiabasha // // Created by zhangzt on 2017/1/5. // Copyright © 2017年 hunbohui. All rights reserved. // #import "MyOrderViewController.h" #import "MyOrderTableViewCell.h" #import "MyOrderDetailViewController.h" #import "EvlauateOrderViewController.h" #import "OrderUploadViewControlle...
24,249
https://github.com/Ma27/nix-zsh-completions/blob/master/nix-zsh-completions.plugin.zsh
Github Open Source
Open Source
2,021
nix-zsh-completions
Ma27
Shell
Code
101
400
# Nix Install alias ni='nix-env -iA' # Nix Search alias ns='nix-env -qaP' function prompt_nix_shell_precmd { if [[ -n ${IN_NIX_SHELL} && ${IN_NIX_SHELL} != "0" || ${IN_NIX_RUN} && ${IN_NIX_RUN} != "0" ]]; then if [[ -n ${IN_WHICH_NIX_SHELL} ]] then NIX_SHELL_NAME=": ${IN_WHICH_NIX_SHELL}" fi if [[...
22,892
https://github.com/TP1-DEV/ThibaudPayen_5_26042021/blob/master/frontend/src/tests/common.test.js
Github Open Source
Open Source
MIT
null
ThibaudPayen_5_26042021
TP1-DEV
JavaScript
Code
572
2,032
import * as commonFn from '../js/common.js' import {Cart} from '../js/cart.js' describe('numberWithSpaces', () => { test('it should add a blank space every 3 digits', () => { const number = 123456 expect(commonFn.numberWithSpaces(number)).toEqual('123 456') }) }) describe('formatPrice', () => { test('it ...
10,360
https://github.com/Q3333/Ask_and_Wiki/blob/master/Ask_Wiki/static/Ask_Wiki/js/index.js
Github Open Source
Open Source
MIT
null
Ask_and_Wiki
Q3333
JavaScript
Code
11
66
$(document).ready(function() { $('#search-btn').click(function(e){ // $('#loading').show() // $('.mainlogo').css('width','80%'); $('.mainlogo').attr("src", godouble_img); }); })
17,172
https://github.com/d2funlife/ipli/blob/master/src/IpLi.Web/Services/BackgroundSourceScanner.cs
Github Open Source
Open Source
MIT
null
ipli
d2funlife
C#
Code
97
406
using System; using System.Threading; using System.Threading.Tasks; using IpLi.Core.Contracts; using Microsoft.Extensions.Hosting; namespace IpLi.Web.Services { public class BackgroundSourceScanner : IHostedService { private readonly ISourceScanner _sourceScanner; private volatile Boolean _isT...
29,588
https://github.com/FabaoUfop/sisdemocracia/blob/master/resources/views/layout/app.blade.php
Github Open Source
Open Source
MIT
null
sisdemocracia
FabaoUfop
PHP
Code
33
114
@include('layout.header') @include('layout.sidebar') <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> @yield('title_page') <!-- Main content --> <section class="content"> <!-- Your Page Content Here --> @yield('content_page') ...
41,723
https://github.com/gumtreehill/TheIdServer/blob/master/src/BlazorApp/Aguacongas.TheIdServer.BlazorApp.Components/SortableHeader.razor.cs
Github Open Source
Open Source
Apache-2.0
2,022
TheIdServer
gumtreehill
C#
Code
125
432
// Project: Aguafrommars/TheIdServer // Copyright (c) 2021 @Olivier Lefebvre using Aguacongas.TheIdServer.BlazorApp.Services; using Microsoft.AspNetCore.Components; using System; using System.Threading.Tasks; namespace Aguacongas.TheIdServer.BlazorApp.Components { public partial class SortableHeader : IDisposable...
27,205
https://github.com/as472780551/MachineLearning/blob/master/preProcess.py
Github Open Source
Open Source
Apache-2.0
2,019
MachineLearning
as472780551
Python
Code
154
379
import numpy as np ''' Function: Normalization Description: Normalize input data. For vector x, the normalization process is given by normalization(x) = (x - min(x))/(max(x) - min(x)) Input: data dataType: ndarray description: input data Output: normdata dataType: ndarray description: outpu...
30,603
https://github.com/guillermocastro/DBM-DB/blob/master/dbmdb/dbm/Tables/TableUsage.sql
Github Open Source
Open Source
MIT
null
DBM-DB
guillermocastro
SQL
Code
66
231
CREATE TABLE [dbm].[TableUsage] ( [Id] INT NOT NULL IDENTITY(1,1), CONSTRAINT [PK.TableUsage.Id] PRIMARY KEY CLUSTERED ([Id]), [InstanceId] NVARCHAR(128) NOT NULL, CONSTRAINT [FK.TableUsage.InstanceId] FOREIGN KEY ([InstanceId]) REFERENCES [dbm].[Instance] ([InstanceId]) ON DELETE CASCADE ON UPDATE CASCADE, [DBNa...
36,085
https://github.com/mazur33k/aurelia-kendoui-bridge/blob/master/sample/src/samples/sample-runner.js
Github Open Source
Open Source
MIT
2,021
aurelia-kendoui-bridge
mazur33k
JavaScript
Code
458
1,460
import {inject, bindable} from 'aurelia-framework'; import {TemplatingEngine, ViewResources} from 'aurelia-templating'; import {activationStrategy} from 'aurelia-router'; import {EventAggregator} from 'aurelia-event-aggregator'; import {TaskQueue} from 'aurelia-framework'; import {HttpClient} from 'aurelia-http-client'...
47,870
https://github.com/RoMe0s/tasks/blob/master/app/Models/User.php
Github Open Source
Open Source
MIT
null
tasks
RoMe0s
PHP
Code
123
420
<?php namespace App\Models; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use Spatie\Permission\Traits\HasRoles; class User extends Authenticatable { use Notifiable; use HasRoles; /** * The attributes that are mass assignable. * * @var ar...
3,962
https://github.com/rholang/archive-old/blob/master/packages/editor/editor-core/dist/esm/plugins/status/actions.js
Github Open Source
Open Source
Apache-2.0
2,020
archive-old
rholang
JavaScript
Code
386
1,210
import { __assign } from "tslib"; import { Fragment } from 'prosemirror-model'; import { NodeSelection, Selection, } from 'prosemirror-state'; import { uuid } from '@atlaskit/adf-schema'; import { pluginKey } from './plugin'; import { withAnalytics, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, } from '../anal...
4,091
https://github.com/jsjaskaran/demoupworktest/blob/master/factorial.cc
Github Open Source
Open Source
MIT
null
demoupworktest
jsjaskaran
C++
Code
80
240
// factorial.cc // access v8 engine #include <node.h> // main algo double factorial(double n){ if(n == 0) return 1; return n * factorial(n - 1); } void factorial(const v8::FunctionCallbackInfo<v8::Value>& info){ // get first argument with double precision double n = info[0]->NumberValue(); // calculate result...
47,550
https://github.com/asmtal/terraform-serverless-elastictranscoding/blob/master/modules/iam/role/main.tf
Github Open Source
Open Source
Apache-2.0
2,017
terraform-serverless-elastictranscoding
asmtal
HCL
Code
86
445
resource "aws_iam_role_policy" "my_elastictranscoder_iam_role_policy" { name = "${var.product}_${var.environment}_${var.elastictranscoder_pipeline_name}" role = "${aws_iam_role.my_elastictranscoder_iam_role.id}" policy = <<EOF { "Version": "2008-10-17", "Statement": [{ "Effect": "Allow", "Actio...
20,802
https://github.com/RodrigoCR/anzu/blob/master/board/comments/finders.go
Github Open Source
Open Source
Apache-2.0
2,019
anzu
RodrigoCR
Go
Code
277
1,072
package comments import ( "errors" "github.com/tryanzu/core/core/common" "github.com/tryanzu/core/core/content" mgo "gopkg.in/mgo.v2" "gopkg.in/mgo.v2/bson" ) var CommentNotFound = errors.New("Comment has not been found by given criteria.") func FetchCount(d Deps, query common.Query) (c int, err error) { c, e...
25,417
https://github.com/erni93/HeroeTeclado/blob/master/juego/script/main.js
Github Open Source
Open Source
MIT
2,017
HeroeTeclado
erni93
JavaScript
Code
28
158
var app = new ENGINE.Application({ width: 632, height: 660, oncreate: function() { this.assets.addSprites("sprites.png", this.sprites.fetch('buttons')); this.assets.addImage("bg.jpg"); this.assets.addImage("logo.png"); this.assets.addAudio("cancion.mp3"); console.log(this) }, onready: function() { ...
23,900
https://github.com/dasoe/ofxPiMapper/blob/master/example_remote-server/src/TCPServer.h
Github Open Source
Open Source
MIT
2,022
ofxPiMapper
dasoe
C
Code
38
149
#pragma once #include "ofMain.h" #include "ofxNetwork.h" #include "ofxJSONElement.h" class TCPServer { public: static shared_ptr<TCPServer> instance(); void setup(int port); void update(); void draw(); void send(int clientID, std::string message); private: TCPServer(); static shared_ptr<TCPServer> _instan...
49,729
https://github.com/letsgetrandy/specter/blob/master/src/chrome/content/webpage.js
Github Open Source
Open Source
MIT
2,016
specter
letsgetrandy
JavaScript
Code
81
205
/* * 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/. */ var browser = null; window.addEventListener("load", function(event) { browser = document.getElementById('we...
29,373
https://github.com/bazarbashe/Tor-Onion-Service-On-Heroku/blob/master/node_modules/sphp/example/websocket_client.php
Github Open Source
Open Source
MIT
2,021
Tor-Onion-Service-On-Heroku
bazarbashe
PHP
Code
868
2,694
<?php /*----------------------------------------------------------------------------*\ Websocket client By Paragi 2013, Simon Riget MIT license. This is a demonstration of a websocket clinet. Please add propper errorhandling and such, if you use it for anythin else. If you find flaws in it, please tell m...
341
https://github.com/loresjoberg/stock-api-libphp/blob/master/test/src/Api/Client/LicenseFactoryTest.php
Github Open Source
Open Source
Apache-2.0
2,021
stock-api-libphp
loresjoberg
PHP
Code
1,455
6,975
<?php /** * Copyright 2017 Adobe Systems Incorporated. All rights reserved. * This file is licensed 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/licenses/LICENSE-2.0 *...
14,833
https://github.com/matematikaadit/website-haskell-id/blob/master/provider/lectures/11-applicative2.lhs
Github Open Source
Open Source
BSD-3-Clause
2,020
website-haskell-id
matematikaadit
null
Spoken
1,373
3,390
*Applicative functor*, Bagian II ================================ Bacaan tambahan: * [*Applicative Functor*](http://learnyouahaskell.com/functors-applicative-functors-and-monoids#applicative-functors) di *Learn You a Haskell* * [*The Typeclassopedia*](http://www.haskell.org/haskellwiki/Typeclassopedia) Mari kita...
16,606
https://github.com/projectxorg/libtorrent-go/blob/master/upload_plugin.cxx
Github Open Source
Open Source
BSD-3-Clause
2,021
libtorrent-go
projectxorg
C++
Code
215
939
#include "libtorrent/config.hpp" #include "libtorrent/peer_connection.hpp" #include "libtorrent/bt_peer_connection.hpp" #include "libtorrent/peer_connection_handle.hpp" #include "libtorrent/bencode.hpp" #include "libtorrent/torrent.hpp" #include "libtorrent/torrent_handle.hpp" #include "libtorrent/extensions.hpp" #inc...
53,053
https://github.com/sophiemoustard/alenvi-webapp2/blob/master/src/modules/client/mixins/menuItemsMixin.js
Github Open Source
Open Source
MIT
null
alenvi-webapp2
sophiemoustard
JavaScript
Code
916
2,490
import { mapState } from 'vuex'; import get from 'lodash/get'; import pick from 'lodash/pick'; import { CLIENT_ADMIN, AUXILIARY, PLANNING_REFERENT, AUXILIARY_ROLES, COACH_ROLES, HELPER, } from '@data/constants'; import { defineAbilitiesFor } from '@helpers/ability'; export const menuItemsMixin = { data (...
23,945
https://github.com/zwq-qianyu/python-learning-projects/blob/master/第四章:Python网络爬虫基础(下)/jiepai_spider/baidu_jiepai.py
Github Open Source
Open Source
MIT
2,018
python-learning-projects
zwq-qianyu
Python
Code
199
1,680
#爬取百度“街拍”图片 import requests import re def getPic(m): headers = { 'Accept': 'text/plain, */*; q=0.01', #'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7', 'Connection': 'keep-alive', 'Cookie': 'BDqhfp=%E8%A1%97%E6%8B%8D%26%260-1...
37,520
https://github.com/macsux/route-service-auth-buildpack/blob/master/src/PivotalRouteServiceAuthIngressBuildpack/IProcessor.cs
Github Open Source
Open Source
MIT
2,020
route-service-auth-buildpack
macsux
C#
Code
11
39
namespace Pivotal.RouteService.Auth.Ingress.Buildpack { public interface IProcessor { void Execute(); } }
22,666
https://github.com/natebcube/gamejolt/blob/master/src/widget-package/store/index.ts
Github Open Source
Open Source
MIT
2,021
gamejolt
natebcube
TypeScript
Code
511
1,769
import { parse } from 'querystring'; import { VuexAction, VuexModule, VuexMutation, VuexStore } from '../../utils/vuex'; import { Api } from '../../_common/api/api.service'; import { Game } from '../../_common/game/game.model'; import { GamePackageCardModel } from '../../_common/game/package/card/card.model'; import { ...
36,299
https://github.com/bonomali/graysql/blob/master/test/unit/extensions/load-from-dir/index.js
Github Open Source
Open Source
MIT
2,021
graysql
bonomali
JavaScript
Code
125
417
'use strict'; const path = require('path'); const expect = require('chai').expect; const GraphQLUtils = require('graphql/utilities'); const DB = require('../../../support/db'); const TestSchema = require('../../../support/test-schema'); const TestUser = require('../../../support/test-schema-dir/types/user'); module...
47,673
https://github.com/SMH-MRD/SwaySensorA/blob/master/include/pylon/pylon/_VideoWriterParams.h
Github Open Source
Open Source
MIT
null
SwaySensorA
SMH-MRD
C
Code
758
2,471
//----------------------------------------------------------------------------- // Basler pylon SDK // Copyright (c) 2018-2019 Basler AG // http://www.baslerweb.com //----------------------------------------------------------------------------- /*! \file \brief Interface to video writer parameters. */ //----------...
40,969
https://github.com/HBM/java-scan/blob/master/devscan/src/test/java/com/hbm/devices/scan/announce/LRUCacheTest.java
Github Open Source
Open Source
MIT
2,019
java-scan
HBM
Java
Code
333
762
/* * Java Scan, a library for scanning and configuring HBM devices. * * The MIT License (MIT) * * Copyright (C) Hottinger Baldwin Messtechnik GmbH * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal i...
13,969
https://github.com/chaabni/Tweetin/blob/master/Tweetin/src/io/github/mthli/Tweetin/Fragment/SettingFragment.java
Github Open Source
Open Source
Apache-2.0
2,014
Tweetin
chaabni
Java
Code
257
1,527
package io.github.mthli.Tweetin.Fragment; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.*; import com.devspark.progressfragment.ProgressFragment; import io.github...
37,527
https://github.com/DaveWoodman/morendo/blob/master/src/main/org/jamocha/rete/functions/list/CreateSetFunction.java
Github Open Source
Open Source
Apache-2.0
null
morendo
DaveWoodman
Java
Code
195
672
package org.jamocha.rete.functions.list; import java.io.Serializable; import java.util.HashSet; import java.util.Set; import org.jamocha.rete.BoundParam; import org.jamocha.rete.Constants; import org.jamocha.rete.DefaultReturnValue; import org.jamocha.rete.DefaultReturnVector; import org.jamocha.rete.Function; import...
45,087
https://github.com/zoomlacms/web026/blob/master/Source-Code-蔬香美园便捷的一键下单线上买菜微信公众号平台/Manage/Design/Ask/AskAdd.aspx
Github Open Source
Open Source
Apache-2.0
2,020
web026
zoomlacms
null
Spoken
103
701
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AskAdd.aspx.cs" Inherits="ZoomLaCMS.Manage.Design.Ask.AskAdd" MasterPageFile="~/Manage/I/Index.Master" %> <%@ Register Src="~/Manage/I/ASCX/SFileUp.ascx" TagPrefix="ZL" TagName="SFileUp" %> <asp:Content runat="server" ContentPlaceHolderID="head"> <script src="/...
17,102
https://github.com/er1c/fm-http/blob/master/src/main/scala/fm/http/server/ErrorRequestHandler.scala
Github Open Source
Open Source
Apache-2.0
2,018
fm-http
er1c
Scala
Code
225
465
/* * Copyright 2020 Frugal Mechanic (http://frugalmechanic.com) * * 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...
2,406
https://github.com/EvanLiu2968/spring-boot-crud/blob/master/src/main/java/com/crud/cloud/evanliu2968/util/MapHelper.java
Github Open Source
Open Source
MIT
2,019
spring-boot-crud
EvanLiu2968
Java
Code
603
1,858
/******************************************************************************* * Copyright (c) 2014-2-26 @author <a href="mailto:iffiff1@gmail.com">Tyler Chen</a>. * All rights reserved. * * Contributors: * <a href="mailto:iffiff1@gmail.com">Tyler Chen</a> - initial API and implementation ******************...
21,146
https://github.com/ThisIsYourBuddy/React-Native-Chat/blob/master/node_modules/react-native-web/dist/cjs/exports/ART/index.js
Github Open Source
Open Source
MIT
2,018
React-Native-Chat
ThisIsYourBuddy
JavaScript
Code
34
96
'use strict'; exports.__esModule = true; var _reactArt = require('react-art'); var _reactArt2 = _interopRequireDefault(_reactArt); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = _reactArt2.default; module.exports = exports['default'];
25,585
https://github.com/andrew-git/openfl/blob/master/lib/openfl/display3D/textures/index.js
Github Open Source
Open Source
MIT
2,021
openfl
andrew-git
JavaScript
Code
12
62
module.exports = { CubeTexture: require("./CubeTexture").default, RectangleTexture: require("./RectangleTexture").default, Texture: require("./Texture").default, TextureBase: require("./TextureBase").default, }
31,963
https://github.com/andresilva1997/alohaAndes/blob/master/isis2304-tutorial-arquitectura/src/vos/Usuario.java
Github Open Source
Open Source
MIT
null
alohaAndes
andresilva1997
Java
Code
204
588
package vos; import org.codehaus.jackson.annotate.*; public class Usuario { //////////////////////////////////////////// ////////////////ATRIBUTOS/////////////////// //////////////////////////////////////////// /** * Codigo uniandes del usuario */ @JsonProperty(value = "codigoUniandes") private Long codigoU...
6,966
https://github.com/mevouc/imodeljs/blob/master/core/ecschema-locaters/test/StubSchemaXmlFileLocater.test.ts
Github Open Source
Open Source
MIT
2,021
imodeljs
mevouc
TypeScript
Code
861
3,288
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
57
https://github.com/kimisan/emerald-rs/blob/master/src/serialize.rs
Github Open Source
Open Source
Apache-2.0
2,017
emerald-rs
kimisan
Rust
Code
169
754
//! # Serialize RPC parameters in JSON use jsonrpc_core::Params; use serde::ser::{Serialize, Serializer}; use std::sync::Arc; use std::sync::atomic::{AtomicUsize, Ordering}; static NONE: Params = Params::None; lazy_static! { static ref REQ_ID: Arc<AtomicUsize> = Arc::new(AtomicUsize::new(1)); } impl<'a> Serial...
45,140
https://github.com/foxgrover/marvin/blob/master/tests/llm_tests/bots/test_ai_functions.py
Github Open Source
Open Source
Apache-2.0
2,023
marvin
foxgrover
Python
Code
1,014
2,940
from typing import Optional import marvin import pydantic import pytest from marvin import ai_fn from marvin.utilities.tests import assert_llm class TestAIFunctions: def test_rng(self): @ai_fn def rng() -> float: """generate a random number between 0 and 1""" x = rng() ...
29,850