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/danielkcz/tsimportsorter/blob/master/src/test/suite/examples/sort/2nd-sort.result.ts
Github Open Source
Open Source
MIT
2,020
tsimportsorter
danielkcz
TypeScript
Code
23
42
import { A, Z, } from 'a'; // comment import { B } from 'a'; // comment export { A, B, Z }
42,403
https://github.com/kyelin/ClanLib/blob/master/Sources/CSSLayout/PropertyParsers/Background/css_parser_background.cpp
Github Open Source
Open Source
Zlib
2,014
ClanLib
kyelin
C++
Code
1,696
7,052
/* ** ClanLib SDK ** Copyright (c) 1997-2013 The ClanLib Team ** ** This software is provided 'as-is', without any express or implied ** warranty. In no event will the authors be held liable for any damages ** arising from the use of this software. ** ** Permission is granted to anyone to use this software for a...
52,535
https://github.com/leeboardtools/mimon/blob/master/src/util/StringTree.test.js
Github Open Source
Open Source
MIT
2,020
mimon
leeboardtools
JavaScript
Code
492
3,344
import { StringTree } from './StringTree'; test('StringTree', () => { let result; const tree = new StringTree(); expect(tree.size).toEqual(0); expect(tree.get('abc')).toBeUndefined(); expect(tree.has('abc')).toBeFalsy(); expect(Array.from(tree.keys())).toEqual([]); expect(Array.from(tree.v...
38,857
https://github.com/failedname/versalles/blob/master/static/js/reportes/report_remision.js
Github Open Source
Open Source
MIT
2,018
versalles
failedname
JavaScript
Code
394
1,401
document.addEventListener('DOMContentLoaded',()=>{ $('#rangeend').calendar({ type: 'date', startCalendar: $('#rangestart'), formatter: { date: function (date, settings) { if (!date) return ''; var day = date.getDate(); var month = date.getMonth() + 1; var year = date.getFullYear(); ...
30,195
https://github.com/manulera/KymoAnalyzer/blob/master/MakeKymographs/imageCenterOfMass.m
Github Open Source
Open Source
MIT
2,022
KymoAnalyzer
manulera
MATLAB
Code
33
118
function [xcentre,ycentre] = imageCenterOfMass(img) img(isnan(img))=0; [x, y] = meshgrid(1:size(img, 2), 1:size(img, 1)); weightedx = x .* img; weightedy = y .* img; xcentre = sum(weightedx(:)) / sum(img(:)); ycentre = sum(weightedy(:)) / sum(img(:)); end
8,153
https://github.com/cameronmwall/multicloudhub-operator/blob/master/pkg/foundation/webhook.go
Github Open Source
Open Source
Apache-2.0
null
multicloudhub-operator
cameronmwall
Go
Code
251
1,388
// Copyright (c) 2020 Red Hat, Inc. // Copyright Contributors to the Open Cluster Management project package foundation import ( operatorsv1 "github.com/open-cluster-management/multiclusterhub-operator/pkg/apis/operator/v1" "github.com/open-cluster-management/multiclusterhub-operator/pkg/utils" appsv1 "k8s.io/api...
14,912
https://github.com/primait/synchub/blob/master/main.go
Github Open Source
Open Source
MIT
null
synchub
primait
Go
Code
179
721
package main import ( "log" "os" "time" "github.com/briandowns/spinner" "github.com/urfave/cli/v2" ) var sp *spinner.Spinner func main() { sp = spinner.New(spinner.CharSets[70], 100*time.Millisecond) app := cli.NewApp() app.Name = "synchub" app.Usage = "keep github in sync!" app.Commands = commands() ap...
27,736
https://github.com/MohammadRehan00/Project-Book-Management/blob/master/src/models/userModel.js
Github Open Source
Open Source
MIT
null
Project-Book-Management
MohammadRehan00
JavaScript
Code
82
225
const mongoose = require("mongoose") const validate = require("../validation/validator") const userSchema = new mongoose.Schema({ title: { type: String, required: true, enum: ["Mr", "Mrs", "Miss"] ,trim:true}, name: { type: String, required: true,trim:true }, phone: { type: String, required: true, uniqu...
6,034
https://github.com/wbulot/geometryTD_3D/blob/master/geometryTD_3D/assets/towers/tower.gd
Github Open Source
Open Source
MIT
2,019
geometryTD_3D
wbulot
GDScript
Code
535
1,806
extends KinematicBody var id = 0 onready var tower = get_node(".") #We need to init dir and targetdir because character will rotate as soon as it is live, following dir direction #So these variable can't be null or 0. We init them as same value than init facing direction onready var targetDir = (transform.origin + t...
872
https://github.com/mjeanson/popt/blob/master/po/it.po
Github Open Source
Open Source
X11
2,020
popt
mjeanson
Gettext Catalog
Code
366
1,304
# ITALIAN TRANSLATION OF POPT-1.14 # This file is put in the public domain. # # Sandro Bonazzola <sandro.bonazzola@gmail.com>, 2007 # Vincenzo Campanella <vinz65@gmail.com>, 2008. msgid "" msgstr "" "Project-Id-Version: popt-1.14\n" "Report-Msgid-Bugs-To: <rpm-maint@lists.rpm.org>\n" "POT-Creation-Date: 2020-06-23 13:2...
7,803
https://github.com/shade-12/digital-systems-design/blob/master/midterm3/task1/reverse.sv
Github Open Source
Open Source
MIT
null
digital-systems-design
shade-12
null
Spoken
35
82
module reverse( input logic clk, input logic rst_n, input logic [7:0] din, input logic din_valid, output logic [7:0] dout, input logic rdy, output logic ena ); parameter N = 4; // your code here endmodule
6,746
https://github.com/zhoulipeng/cppwork/blob/master/initialization/struct_init.c
Github Open Source
Open Source
Apache-2.0
null
cppwork
zhoulipeng
C
Code
55
206
#include <stdio.h> struct abc{ int a; int b; int c; }; int main(int argc, char *argv[]) { struct abc st = { 0 }; char *p = &st; printf("%hhx", *p); printf("%hhx", *++p); printf("%hhx", *++p); printf("%hhx", *++p); printf("%hhx", *++p); printf("%hhx", *++p); printf("%hhx...
44,911
https://github.com/rmsaab/open-code/blob/master/winterwell.nlp/test/com/winterwell/nlp/io/pos/PosTagByFastTagTest.java
Github Open Source
Open Source
MIT
2,017
open-code
rmsaab
Java
Code
160
547
package com.winterwell.nlp.io.pos; import java.util.List; import org.junit.Test; import com.winterwell.nlp.io.Tkn; import com.winterwell.nlp.io.WordAndPunctuationTokeniser; public class PosTagByFastTagTest { @Test public void testSimple() { WordAndPunctuationTokeniser base = new WordAndPunctuationTokeniser( ...
26,839
https://github.com/kothiyayogesh11/jaitrtagems/blob/master/application/front/views/customer_home.php
Github Open Source
Open Source
MIT
null
jaitrtagems
kothiyayogesh11
PHP
Code
371
1,904
<?php $assets["header_assets"] = '<link rel="stylesheet" type="text/css" href="'.base_url('assets/plugins/fancybox-master/dist/jquery.fancybox.min.css').'"> <link rel="stylesheet" type="text/css" href="'.base_url('assets/plugins/fancybox-master/src/css/core.css').'"> <link rel="stylesheet" type="text/css" href="'.base...
19,390
https://github.com/Chedberg84/react-redux-skeleton/blob/master/src/app/appActions.js
Github Open Source
Open Source
MIT
2,017
react-redux-skeleton
Chedberg84
JavaScript
Code
10
22
const appActions = { actionConstants: {}, }; export default appActions;
29,559
https://github.com/charlotte-alvelita/City-Block/blob/master/City Block/Building Two/Assets/Editor.meta
Github Open Source
Open Source
CC-BY-3.0, CC-BY-4.0
2,015
City-Block
charlotte-alvelita
Unity3D Asset
Code
14
69
fileFormatVersion: 2 guid: 83e1ab52e08264a06afdb537b52e3f47 folderAsset: yes timeCreated: 1443546006 licenseType: Free DefaultImporter: userData: assetBundleName: assetBundleVariant:
13,210
https://github.com/guilhermejccavalcanti/gitminer/blob/master/src/test/java/net/wagstrom/research/github/GithubTest.java
Github Open Source
Open Source
Apache-2.0
2,021
gitminer
guilhermejccavalcanti
Java
Code
68
184
package net.wagstrom.research.github; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; public class GithubTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public GithubTest(String testName) { ...
17,735
https://github.com/dev-mish-mash/assignment-test/blob/master/code/entrypoint/index.js
Github Open Source
Open Source
MIT
2,021
assignment-test
dev-mish-mash
JavaScript
Code
21
62
function initialize() { // 처음 스크립트 로딩이 다 끝난 다음 일어날 일들을 처리합니다. } export default () => window.onload = initialize;
37,110
https://github.com/lxe/io.coffee/blob/master/deps/v8/test/mjsunit/regress/regress-crbug-351320.coffee
Github Open Source
Open Source
Artistic-2.0
null
io.coffee
lxe
CoffeeScript
Code
10
28
narcissus error: missing operand in line 20 at position: OptimizeFunctionOnNextCall(crash);
9,766
https://github.com/headius/jo/blob/master/lib/jo.rb
Github Open Source
Open Source
MIT
2,013
jo
headius
Ruby
Code
6
45
require "jo/version" require "jo-#{Jo::VERSION}.jar" com.headius.jo.JoLibrary.new.load(JRuby.runtime, false)
27,036
https://github.com/manu-MD/API_transports/blob/master/src/shared/types/types.service.ts
Github Open Source
Open Source
MIT
2,021
API_transports
manu-MD
TypeScript
Code
68
201
import { Injectable, Type } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { Types } from './types.entity'; @Injectable() export class TypesService { constructor( @InjectRepository(Types) private readonly typesRepository: Repo...
36,698
https://github.com/Miovision/aws-sdk-ruby/blob/master/aws-sdk-resources/spec/services/ec2/resource_spec.rb
Github Open Source
Open Source
Apache-2.0
2,020
aws-sdk-ruby
Miovision
Ruby
Code
98
468
require 'spec_helper' module Aws module EC2 describe Resource do let(:client) { Client.new(stub_responses:true) } let(:ec2) { Resource.new(client: client) } describe '#create_tags' do it 'returns a batch of created tags, the product of ids and tags' do tags = ec2.create_ta...
39,483
https://github.com/mauricevancooten/react/blob/master/contact-form-smtp/src/components/contact.js
Github Open Source
Open Source
MIT
2,018
react
mauricevancooten
JavaScript
Code
156
646
import React, {Component} from 'react' import axios from 'axios' class Contact extends Component { constructor() { super() this.handleSubmit = this.handleSubmit.bind(this) this.nameChanged = this.nameChanged.bind(this) this.emailChanged = this.emailChanged.bind(this) this.messageChanged = this.me...
4,850
https://github.com/scx567888/scx/blob/master/src/main/java/cool/scx/vo/JsonBodyWrapper.java
Github Open Source
Open Source
MIT
2,022
scx
scx567888
Java
Code
53
138
package cool.scx.vo; /** * JsonBody */ public final class JsonBodyWrapper<T> { /** * 消息 */ public final String message; /** * 数据 */ public T data; /** * 构造函数 * * @param message a * @param data a */ public JsonBodyWrapper(String message, T dat...
40,887
https://github.com/ylin6/threejs-nodejs-exporters/blob/master/index.js
Github Open Source
Open Source
MIT
2,021
threejs-nodejs-exporters
ylin6
JavaScript
Code
391
1,303
const THREE = require("three"); const Buffer = global.Buffer; global.self = global; global.window = global; global.THREE = THREE; global.Blob = require("node-blob"); global.FileReader = require("./FileReader"); global.XMLHttpRequest = require("xhr2"); global.atob = require("atob"); global.fflate = require("fflate"); r...
11,377
https://github.com/iShafayet/line-ending-corrector/blob/master/test/main.coffee
Github Open Source
Open Source
MIT
2,017
line-ending-corrector
iShafayet
CoffeeScript
Code
469
2,005
expect = require('chai').expect fs = require 'fs' { LineEndingCorrector } = require './../index.coffee' describe 'LineEndingCorrector', -> describe '.__extractOptions()', -> it 'existance', -> expect(LineEndingCorrector).to.have.property('__extractOptions').that.is.a('function') it 'input-output...
20,785
https://github.com/Integreat/cms-v2/blob/master/integreat_cms/static/src/editor_content.ts
Github Open Source
Open Source
Apache-2.0
2,020
cms-v2
Integreat
TypeScript
Code
52
143
/* * This file contains all resources for tinymce which cannot be passed via the global assets in editor.ts. * This applies for custom plugins and content css for the editor iframe. */ /* Custom tincymce plugins */ import './js/tinymce-plugins/autolink_tel/plugin.js'; import './js/tinymce-plugins/custom_link_input/...
36,005
https://github.com/Ariox41/tmdesc/blob/master/compilation_bench/metabench/metabench.cmake
Github Open Source
Open Source
BSL-1.0
2,022
tmdesc
Ariox41
CMake
Code
614
2,538
# Copyright Victor Smirnov 2021 # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) # # This file is part of the simple compile-time benchmark tools for the tmdesc library. # The original idea is taken from https://github.com/ldi...
19,531
https://github.com/LANDIS-II-Foundation/Core-Model-v5/blob/master/util/Log.cs
Github Open Source
Open Source
Apache-2.0
null
Core-Model-v5
LANDIS-II-Foundation
C#
Code
122
369
using log4net; //using log4net.Config; // Configure log4net using the .config file [assembly: log4net.Config.DOMConfigurator(Watch=true)] namespace Landis { /// <summary> /// Methods related to logging. /// </summary> public static class Log { private static ILog logger; //----------------------------------...
48,425
https://github.com/JustinR-FR/ChatroomReact/blob/master/src/components/Form/IsTyping.js
Github Open Source
Open Source
MIT
null
ChatroomReact
JustinR-FR
JavaScript
Code
49
165
import React from 'react'; import PropTypes from 'prop-types'; const IsTyping = ({ names }) => { return ( <React.Fragment> <p> { names.map(currentName => <em key={currentName}>{currentName},&nbsp;</em>) } {names.length > 1 ? 'are ' : 'is '}typing&nbsp; </p> <sp...
42,890
https://github.com/daveparslow/PerfCascade/blob/master/src/ts/transformers/extract-details-keys.ts
Github Open Source
Open Source
MIT
null
PerfCascade
daveparslow
TypeScript
Code
787
2,647
import { Entry, Header } from 'har-format'; import { getHeader, getHeaders } from '../helpers/har'; import { formatBytes, formatDateLocalized, formatMilliseconds, formatSeconds, MaybeStringOrNumber, parseAndFormat, parseDate, parseNonEmpty, parseNonNegative, parsePositive } from '../helpers/parse'; ...
11,825
https://github.com/jiabailong/spriteLayer/blob/master/yyhlayer_new/src/main/java/com/layer/aiview/IAIView.java
Github Open Source
Open Source
Apache-2.0
2,016
spriteLayer
jiabailong
Java
Code
15
38
package com.layer.aiview; /** * Created by jbl on 2016-04-14. */ public interface IAIView { }
343
https://github.com/condroagung/Bulldoc/blob/master/application/views/menu/beli_obat.php
Github Open Source
Open Source
MIT
null
Bulldoc
condroagung
PHP
Code
268
1,269
<div class="container-fluid"> <nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="<?= base_url('dashboard/index_user');?>" style="color:pinkhot;">Home</a></li> <li class="breadcrumb-item"><a href="#">Beli Obat</a></li> <li class="nav-item" style="margin-left:1500px; ...
32,861
https://github.com/ShenMian000/Herobrine/blob/master/Himconsole/console/command/ClearCommand.h
Github Open Source
Open Source
Apache-2.0
2,020
Herobrine
ShenMian000
C++
Code
38
155
// Copyright 2019 SMS // License(Apache-2.0) #include "../command.h" class ClearCommand : public Command { public: ClearCommand() : Command("Çå¿ÕÃüÁîÐлº³åÇø", "Herobrine", Platform::Common, License::Apache_2_0) { } void excute(Console& c) override { #ifdef OS_WIN system("cls"); #endif #ifdef OS_LINUX ...
21,512
https://github.com/thermasol/mesa3d/blob/master/src/gallium/drivers/virgl/virgl_tgsi.c
Github Open Source
Open Source
MIT
null
mesa3d
thermasol
C
Code
473
1,441
/* * Copyright 2014, 2015 Red Hat. * * 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 * on the rights to use, copy, modify, merge, publi...
36,400
https://github.com/rthalley/dnspython/blob/master/dns/dnssecalgs/rsa.py
Github Open Source
Open Source
ISC, LicenseRef-scancode-warranty-disclaimer
2,023
dnspython
rthalley
Python
Code
286
1,218
import math import struct from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.asymmetric import padding, rsa from dns.dnssecalgs.cryptography import CryptographyPrivateKey, CryptographyPublicKey from dns.dnssectypes import Algo...
4,037
https://github.com/tlyphed/chuffed/blob/master/chuffed/parallel/parallel.h
Github Open Source
Open Source
MIT
2,022
chuffed
tlyphed
C
Code
534
1,538
#ifndef parallel_h #define parallel_h #ifdef PARALLEL #include "mpi.h" #define MAX_SLAVES 128 #define MPI_BUFFER_SIZE 500000000 // Reporting options #define PAR_DEBUG 0 #define FULL_DEBUG 0 #define PROFILING 0 #define MIN_PROF_TIME 0.05 // Special values for job_start_time #define NOT_WORKING 1E100 #define DONT_...
43,961
https://github.com/misfits42/advent_of_code_2017/blob/master/src/day_18.rs
Github Open Source
Open Source
MIT
null
advent_of_code_2017
misfits42
Rust
Code
408
1,633
use super::utils::machines::{SoundComputer, SoundComputerInstruction}; use regex::Regex; #[aoc_generator(day18)] fn generate_input(input: &str) -> Vec<SoundComputerInstruction> { let input = input.trim(); let mut instructions: Vec<SoundComputerInstruction> = vec![]; // Create regexes to match various inst...
52,277
https://github.com/mankenavenkatesh/ibc-rs/blob/master/relayer-cli/src/commands/create/connection.rs
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-warranty-disclaimer
2,021
ibc-rs
mankenavenkatesh
Rust
Code
554
1,809
use core::time::Duration; use abscissa_core::{Command, Options, Runnable}; use ibc::core::ics02_client::client_state::ClientState; use ibc::core::ics24_host::identifier::{ChainId, ClientId}; use ibc::Height; use ibc_relayer::chain::handle::ChainHandle; use ibc_relayer::connection::Connection; use ibc_relayer::foreign...
25,796
https://github.com/CyberFlameGO/noise/blob/master/src/main/java/org/spongepowered/noise/module/combiner/Displace.java
Github Open Source
Open Source
MIT
2,021
noise
CyberFlameGO
Java
Code
1,457
2,846
/* * This file is part of Noise, licensed under the MIT License (MIT). * * Copyright (c) Flow Powered <https://github.com/flow> * Copyright (c) SpongePowered <https://github.com/SpongePowered> * Copyright (c) contributors * * Original libnoise C++ library by Jason Bevins <http://libnoise.sourceforge.net> * jlib...
9,506
https://github.com/FlyingVespa/Capstone-FE/blob/master/src/Redux/products/productTypes.js
Github Open Source
Open Source
MIT
null
Capstone-FE
FlyingVespa
JavaScript
Code
5
24
export const FETCH_ALL_PRODUCTS = "FETCH_ALL_PRODUCTS";
36,923
https://github.com/typst/typst/blob/master/crates/typst/src/eval/module.rs
Github Open Source
Open Source
Apache-2.0, Bitstream-Vera, CC-BY-4.0, OFL-1.1, LicenseRef-scancode-gust-font-1.0, BSD-3-Clause, LicenseRef-scancode-ubuntu-font-1.0, 0BSD, LicenseRef-scancode-free-unknown, LicenseRef-scancode-public-domain, MIT, LicenseRef-scancode-public-domain-disclaimer
2,023
typst
typst
Rust
Code
310
811
use std::fmt::{self, Debug, Formatter}; use std::sync::Arc; use ecow::{eco_format, EcoString}; use super::{Content, Scope, Value}; use crate::diag::StrResult; /// An evaluated module, ready for importing or typesetting. /// /// Values of this type are cheap to clone and hash. #[derive(Clone, Hash)] #[allow(clippy::d...
31,214
https://github.com/discentem/glazier/blob/master/go/helpers/helpers_test.go
Github Open Source
Open Source
Apache-2.0
2,021
glazier
discentem
Go
Code
285
915
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
17,078
https://github.com/simage3d/Suity.Engine.Runtime.V4/blob/master/Source/Suity/Controlling/IController.cs
Github Open Source
Open Source
MIT
null
Suity.Engine.Runtime.V4
simage3d
C#
Code
35
111
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Suity.Controlling { public interface IController { void Start(FunctionContext ctx); void Stop(FunctionContext ctx); void Enter(FunctionContext ctx); void Exit(FunctionContext ctx)...
7,999
https://github.com/alessandrocandolini/dotfiles-public/blob/master/nix/.nixpkgs/darwin-configuration.nix
Github Open Source
Open Source
MIT
2,021
dotfiles-public
alessandrocandolini
null
Spoken
145
460
{ config, pkgs, ... }: { # List packages installed in system profile. To search by name, run: # $ nix-env -qaP | grep wget environment.systemPackages = with pkgs; [ wget htop jq fzf ripgrep git awscli (sbt.override { jre = pkgs.jdk11; }) vim stow ...
9,224
https://github.com/aaliomer/exos/blob/master/bin/gcc/config/mips/abi64.h
Github Open Source
Open Source
BSD-3-Clause
2,018
exos
aaliomer
C
Code
846
3,055
/* Definitions of target machine for GNU compiler. 64 bit ABI support. Copyright (C) 1994, 1995 Free Software Foundation, Inc. This file is part of GNU CC. GNU CC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundati...
38,852
https://github.com/m4rb3n/django-material-admin/blob/master/Dockerfile
Github Open Source
Open Source
MIT
2,021
django-material-admin
m4rb3n
Dockerfile
Code
42
136
FROM python:3.8 MAINTAINER Anton Maistrenko ENV PYTHONUNBUFFERED 1 COPY ./requirements.txt /requirements.txt RUN pip install -r requirements.txt RUN mkdir /app RUN mkdir /app/material WORKDIR /app COPY ./app /app COPY ./material /app/material COPY ./docker /app/docker COPY ./tests /app/test RUN chmod +x /app/dock...
40,961
https://github.com/derekhiggins/ovirt-engine/blob/master/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetoVirtISOsQuery.java
Github Open Source
Open Source
Apache-2.0
2,019
ovirt-engine
derekhiggins
Java
Code
706
2,264
package org.ovirt.engine.core.bll; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FilenameFilter; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.regex.Patt...
18,386
https://github.com/wm-mcs/Web-Gestion-App/blob/master/resources/views/empresa_gestion_paginas/Vue_logica/Componentes/tipo-de-servicios-modal-componente.blade.php
Github Open Source
Open Source
MIT
null
Web-Gestion-App
wm-mcs
PHP
Code
488
2,453
@include('empresa_gestion_paginas.Vue_logica.Componentes.tipoServicioEmpresa.cantidadDeDiasArray') @include('empresa_gestion_paginas.Vue_logica.Componentes.tipoServicioEmpresa.tipoServicioLista') Vue.component('tipo-de-servicios-modal', { components: { 'tipo-servicio-lista': tipoServicioLista }, props:['empresa...
14,135
https://github.com/silentcloud/formily/blob/master/packages/core/src/shared/graph.ts
Github Open Source
Open Source
MIT
null
formily
silentcloud
TypeScript
Code
738
2,703
import { each, reduce, map, isFn, FormPath, FormPathPattern, Subscribable } from '@formily/shared' import { FormGraphNodeRef, FormGraphMatcher, FormGraphEacher, FormGraphProps } from '../types' export class FormGraph<NodeType = any> extends Subscribable<{ type: string payload: FormGraphNodeRe...
1,530
https://github.com/kidzeroll/agenda_app/blob/master/routes/web.php
Github Open Source
Open Source
MIT
null
agenda_app
kidzeroll
PHP
Code
42
268
<?php use App\Http\Controllers\AgendaController; use App\Http\Controllers\AuthController; use App\Http\Controllers\DashboardController; use App\Http\Controllers\PegawaiController; use Illuminate\Support\Facades\Route; Route::get('/', [AuthController::class, 'showFormLogin'])->name('login'); Route::post('/', [AuthCont...
1,947
https://github.com/lzpel/cloudmama/blob/master/app.go
Github Open Source
Open Source
MIT
null
cloudmama
lzpel
Go
Code
220
1,092
package main import ( "bytes" "fmt" "image" _ "image/jpeg" "io" "io/ioutil" "strings" "time" ) func Script(image string) string { now:=time.Now().In(time.Local) day := time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, time.UTC).Unix() / 86400 txt := []string{ image, fmt.Sprintf("時刻は%d時%d分、残りは%d...
10,940
https://github.com/IMU-ICCS/rest-server/blob/master/model/src/main/java/io/github/cloudiator/rest/converter/SparkInterfaceConverter.java
Github Open Source
Open Source
Apache-2.0
null
rest-server
IMU-ICCS
Java
Code
95
586
package io.github.cloudiator.rest.converter; import com.google.common.base.Strings; import de.uniulm.omi.cloudiator.util.TwoWayConverter; import io.github.cloudiator.rest.model.SparkInterface; import org.cloudiator.messages.entities.TaskEntities; import org.cloudiator.messages.entities.TaskEntities.SparkInterface.Buil...
44,663
https://github.com/Tsvetelin98/Solar/blob/master/net.solarnetwork.external.ocpp.client/src/ocpp/v15/cs/HeartbeatRequest.java
Github Open Source
Open Source
Apache-2.0
null
Solar
Tsvetelin98
Java
Code
80
301
package ocpp.v15.cs; import javax.annotation.Generated; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * Defines the Heartbeat.req PDU * * <p>Java class for HeartbeatRequest complex type. * * <p>The following sch...
1,320
https://github.com/kephas-software/kephas/blob/master/src/Kephas.Plugins/Plugins/Transactions/UndoCommandBase.cs
Github Open Source
Open Source
LicenseRef-scancode-free-unknown, MIT
2,023
kephas
kephas-software
C#
Code
463
1,339
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="UndoCommandBase.cs" company="Kephas Software SRL"> // Copyright (c) Kephas Software SRL. All rights reserved. // Licensed under the MIT license. See LICENSE file in the projec...
29,750
https://github.com/Crash129/pmm-agent/blob/master/vendor/github.com/percona/pmm/api/managementpb/json/client/actions/get_action_responses.go
Github Open Source
Open Source
Apache-2.0, AGPL-3.0-only
2,020
pmm-agent
Crash129
Go
Code
787
2,022
// Code generated by go-swagger; DO NOT EDIT. package actions // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "strconv" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" "github.com/go-openapi...
29,801
https://github.com/kevinquinnyo/acmephp/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,016
acmephp
kevinquinnyo
Ignore List
Code
9
78
/build/ /box.json composer.lock vendor/ .php_cs.cache doc/.couscous .subsplit tests/Core/Fixtures/challenges/.well-known/acme-challenge/* !tests/Core/Fixtures/challenges/.well-known/acme-challenge/.gitkeep
2,245
https://github.com/NeLy-EPFL/SeptaCam/blob/master/Code_arduino/stimulation/stimulation.ino
Github Open Source
Open Source
MIT
null
SeptaCam
NeLy-EPFL
null
Spoken
362
1,145
// Constants //------------------------------------------------------------------------------------ const int trigStimulus = 12; const int LED = 44; const int extSigPin = 38; const int buttonPin =40; int buttonState; int readInteger(){ int ret = 0; int done = 0; // False int newDigit = 0; while (!done){ ...
1,688
https://github.com/barry-scott/BarrysEmacs/blob/master/Editor/Include/Common/mlisp.h
Github Open Source
Open Source
Apache-2.0
2,023
BarrysEmacs
barry-scott
C++
Code
2,232
5,738
// Copyright (c) 1982-2010 // Barry A. Scott // Header file for dealing with values returned by mlisp functions #include <em_user.h> // // Classes defined in this header file // class EmacsMacroString; class VariableName; class Binding; class Binding_list; class ExecutionStack; class ProgramNode; clas...
26,949
https://github.com/ishine/bolt/blob/master/model_tools/src/model_data_type_converter.cpp
Github Open Source
Open Source
MIT
2,022
bolt
ishine
C++
Code
1,557
6,111
// Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved. // 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,...
42,470
https://github.com/MineInAbyss/Quill/blob/master/quill/src/main/java/com/aaaaahhhhhhh/bananapuncher714/quill/resourcepack/ResourcePack.java
Github Open Source
Open Source
MIT
2,021
Quill
MineInAbyss
Java
Code
105
354
package com.aaaaahhhhhhh.bananapuncher714.quill.resourcepack; import java.awt.Image; import java.awt.image.BufferedImage; import java.util.HashMap; import java.util.Map; import com.aaaaahhhhhhh.bananapuncher714.quill.resourcepack.font.FontIndex; import com.aaaaahhhhhhh.bananapuncher714.quill.util.JetpImageUtil; publ...
40,439
https://github.com/Ukasz09/Roverondo-web/blob/master/src/app/shared/components/area-graph/area-graph.component.ts
Github Open Source
Open Source
MIT
null
Roverondo-web
Ukasz09
TypeScript
Code
140
373
import { Component, Input, OnInit } from "@angular/core"; import { AreaPlotData } from "@app/core/models"; import { Color, LegendPosition } from "@swimlane/ngx-charts"; @Component({ selector: "app-area-graph", templateUrl: "./area-graph.component.html", styleUrls: ["./area-graph.component.scss"] }) export class ...
5,316
https://github.com/crownemmanuel/drunotes/blob/master/project/drupal/core/modules/aggregator/src/Plugin/aggregator/fetcher/DefaultFetcher.php
Github Open Source
Open Source
MIT
null
drunotes
crownemmanuel
PHP
Code
350
1,187
<?php namespace Drupal\aggregator\Plugin\aggregator\fetcher; use Drupal\aggregator\Plugin\FetcherInterface; use Drupal\aggregator\FeedInterface; use Drupal\Component\Datetime\DateTimePlus; use Drupal\Core\Http\ClientFactory; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use GuzzleHttp\Exception\RequestExcep...
37,244
https://github.com/sahooamit/bigdata/blob/master/gobblin-metrics/src/main/java/gobblin/metrics/reporter/util/FixedSchemaVersionWriter.java
Github Open Source
Open Source
Apache-2.0
2,019
bigdata
sahooamit
Java
Code
146
326
/* * Copyright (C) 2014-2015 LinkedIn Corp. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use * this file except in compliance with the License. You may obtain a copy of the * License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
40,977
https://github.com/Degget1986/verthash-one-click-miner/blob/master/payouts/rvnpayout.go
Github Open Source
Open Source
MIT
null
verthash-one-click-miner
Degget1986
Go
Code
62
179
package payouts var _ Payout = &RVNPayout{} type RVNPayout struct{} func NewRVNPayout() *RVNPayout { return &RVNPayout{} } func (p *RVNPayout) GetID() int { return 8 } func (p *RVNPayout) GetName() string { return "Ravencoin" } func (p *RVNPayout) GetTicker() string { return "RVN" } func (p *RVNPayout) GetPa...
31,358
https://github.com/mguid65/RTC3/blob/master/Real-Time Corruptor/BizHawk_RTC/libmupen64plus/mupen64plus-video-glide64/src/wrapper/filter.cpp
Github Open Source
Open Source
GPL-2.0-only, Glide, GPL-1.0-or-later, MIT, GPL-2.0-or-later, LicenseRef-scancode-other-copyleft
2,018
RTC3
mguid65
C++
Code
2,159
7,137
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Mupen64plus - glide64/wrapper/filter.cpp * * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * * Copyright (C) 2005-2006 Hacktarux * * ...
77
https://github.com/buildit/twig/blob/master/src/app/app.component.spec.ts
Github Open Source
Open Source
Apache-2.0
2,019
twig
buildit
TypeScript
Code
209
746
/* tslint:disable:no-unused-variable */ import { TestBed, async } from '@angular/core/testing'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { APP_BASE_HREF } from '@angular/common'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { ToastrModule, ToastrService } from 'ngx-toa...
36,333
https://github.com/gfis/joeis-lite/blob/master/internal/fischer/mangf/A237202.java
Github Open Source
Open Source
Apache-2.0
2,023
joeis-lite
gfis
Java
Code
176
487
package irvine.oeis.a237; import irvine.math.z.Z; import irvine.math.z.Binomial; import irvine.oeis.triangle.BaseTriangle; /** * A237202 Irregular triangle read by rows: T(n,k) = Sum_{i=0..k} (-1)^i * binomial(5*n+1,i) * binomial(k+5-i,5)^n, 0 &lt;= k &lt;= 5*(n-1). * @author Georg Fischer */ public class A237202 ...
42,659
https://github.com/Sebulka/Website/blob/master/HairDresser/app/view/contact.php
Github Open Source
Open Source
MIT
null
Website
Sebulka
PHP
Code
48
220
<?php echo $data['title']; ?> <div class="container"> <div class="homeLeft"> <h3 class="introContact"><?php echo $data['intro']; ?></h3> <div> <img class="map" src="<?php echo URL; ?>public/graphics/map.jpg"> </div> </div> <div class="homeRight"> <h2>Opnning time...
42,892
https://github.com/caokhang91/Ghost/blob/master/content/themes/Mapache/page.hbs
Github Open Source
Open Source
MIT
null
Ghost
caokhang91
null
Spoken
59
281
{{!-- Layout --}} {{!< default }} {{#contentFor "mapache_class_body"}}is-article is-page is-single-post{{/contentFor}} {{#post}} <article class="post container mx-auto my-8 lg:max-w-1000"> <h1 class="post-title text-4xl md:text-44 mb-5 text-title text-center mx-auto max-w-3xl">{{title}}</h1> {{!-- Featured ...
41,968
https://github.com/whitecolor/cycle-react/blob/master/src/Incorporator.ts
Github Open Source
Open Source
MIT
2,022
cycle-react
whitecolor
TypeScript
Code
191
592
import {PureComponent, createElement} from 'react'; import {Scope} from './scope'; type Props = { targetProps: any; targetRef: any; target: any; scope: Scope; }; type State = { flip: boolean; }; export default class Incorporator extends PureComponent<Props, State> { constructor(props: Props) { super(...
39,063
https://github.com/ylacaute/test-fps/blob/master/src/main/resources/demos/gummy_grug_attack/js/ParticlesManager.js
Github Open Source
Open Source
Apache-2.0
null
test-fps
ylacaute
JavaScript
Code
208
936
ParticlesManager = function(config) { this.particlesSytems = { impact: { config: { particlesNb: 10, particleTexture: config.textures.gunImpactParticle, minSize: 0.08, maxSize: 0.13, minLifeTime: 0.04, maxLifeTime: 0.06, minEmitBox: new BABYLON.Vector3(0, 0, 0), maxEmitBox: new BABY...
47,434
https://github.com/allegro/ralph/blob/master/src/ralph/operations/tests/test_models.py
Github Open Source
Open Source
Apache-2.0
2,023
ralph
allegro
Python
Code
58
245
from django.db import IntegrityError from django.forms import ValidationError from ralph.operations.models import OperationType from ralph.operations.tests.factories import ChangeFactory, FailureFactory from ralph.tests import RalphTestCase class OperationModelsTestCase(RalphTestCase): fixtures = ['operation_typ...
15,126
https://github.com/Wzzzx/chromium-crosswalk/blob/master/net/quic/quic_frame_list.cc
Github Open Source
Open Source
BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause
2,021
chromium-crosswalk
Wzzzx
C++
Code
882
2,665
// Copyright (c) 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/quic/quic_frame_list.h" #include <algorithm> #include "base/logging.h" using std::list; using std::string; namespace net { QuicFram...
13,974
https://github.com/CIBC-Internal/ospray/blob/master/modules/cpu/camera/PanoramicCamera.h
Github Open Source
Open Source
Apache-2.0
2,023
ospray
CIBC-Internal
C++
Code
57
173
// Copyright 2009 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #pragma once #include "camera/Camera.h" // ispc shared #include "PanoramicCameraShared.h" namespace ospray { // Implements a panoramic camera with latitude/longitude mapping struct OSPRAY_SDK_INTERFACE PanoramicCamera : public AddStructS...
10,438
https://github.com/d0scoo1/naga_contracts/blob/master/mainnet/contracts/0x2d02c18904988d2d123A103fCC80634aC44046Df_FeeCustody/contracts/rbn-staking/FeeCustody.sol
Github Open Source
Open Source
MIT
2,023
naga_contracts
d0scoo1
Gerber Image
Code
1,438
4,281
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../interfaces/IFeeDistr...
30,005
https://github.com/dingchaolin/go-demo-2/blob/master/src/lesson6/gyf210/classroom.go
Github Open Source
Open Source
MIT
null
go-demo-2
dingchaolin
Go
Code
706
2,283
package main import ( "bufio" "encoding/json" "errors" "fmt" "io/ioutil" "os" "strconv" "strings" ) var classrooms = make(map[string]ClassRoom) var croom ClassRoom type Student struct { Id int `json:"id"` Name string `json:"name"` } type ClassRoom struct { Name string Students []Student } func...
43,476
https://github.com/vinbigdata-medical/vindr-lab-uploader/blob/master/dbal/es_store.py
Github Open Source
Open Source
MIT
2,021
vindr-lab-uploader
vinbigdata-medical
Python
Code
203
803
import time from dynaconf import settings from connection import es async def check_exist_index(index): if await es.indices.exists(index=index): return True else: await es.indices.create(index=index) async def get_study(study_instance_uid, project_id): """ Check exist study or inst...
5,922
https://github.com/dreajay/jcode-spark/blob/master/src/main/scala/com/jcode/spark/ml/MovieML.scala
Github Open Source
Open Source
Apache-2.0
null
jcode-spark
dreajay
Scala
Code
156
769
package com.jcode.spark.ml import org.apache.spark.SparkConf import org.apache.spark.SparkContext import java.util.Arrays object MovieML { def main(args: Array[String]) = { val master = "local[2]" val conf = new SparkConf().setAppName("Spark ML Test") .setMaster(master) .setJars(List("D:\\stu...
4,527
https://github.com/ThanhKhanAGU/goldenstar/blob/master/app/Http/Controllers/ProductController.php
Github Open Source
Open Source
MIT
null
goldenstar
ThanhKhanAGU
PHP
Code
330
1,462
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use App\Posts; use App\Images; class ProductController extends Controller { public function get_list() { $product = DB::table('posts')->where("type","pr")->get(); $di = DB::table('posts')->wh...
7,219
https://github.com/fashionbrot/mars-validated/blob/master/mars-validated/src/main/java/com/github/fashionbrot/validated/internal/LengthConstraint.java
Github Open Source
Open Source
Apache-2.0
2,023
mars-validated
fashionbrot
Java
Code
64
196
package com.github.fashionbrot.validated.internal; import com.github.fashionbrot.validated.annotation.Length; import com.github.fashionbrot.validated.constraint.ConstraintValidator; public class LengthConstraint implements ConstraintValidator<Length, Object> { @Override public boolean isValid(Length length, Obje...
29,850
https://github.com/muxi166/CommonLib/blob/master/lib-view/src/main/java/com/march/lib/view/LockView.java
Github Open Source
Open Source
MIT
2,016
CommonLib
muxi166
Java
Code
1,491
5,818
package com.march.lib.view; import android.animation.Animator; import android.animation.ValueAnimator; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.support.v4.view.MotionEventCompat; i...
44,662
https://github.com/PureGeShock/CarrotEngine/blob/master/build/CMakePlatform/Linux/CMakeFiles/CarrotEngine.dir/cmake_clean.cmake
Github Open Source
Open Source
MIT
2,021
CarrotEngine
PureGeShock
CMake
Code
17
119
file(REMOVE_RECURSE "../../../bin/Linux/CarrotEngine" "../../../bin/Linux/CarrotEngine.pdb" "CMakeFiles/CarrotEngine.dir/__/__/src/main.cpp.o" ) # Per-language clean rules from dependency scanning. foreach(lang CXX) include(CMakeFiles/CarrotEngine.dir/cmake_clean_${lang}.cmake OPTIONAL) endforeach()
53,166
https://github.com/velsubra/Tamil/blob/master/chol/src/test/java/test/job/JobTest.java
Github Open Source
Open Source
Apache-2.0
2,019
Tamil
velsubra
Java
Code
173
786
package test.job; import my.interest.lang.tamil.generated.types.RootVerbDescription; import my.interest.lang.tamil.impl.job.ExecuteManager; import my.interest.lang.tamil.internal.api.PersistenceInterface; import org.junit.Test; import tamil.lang.TamilFactory; import tamil.lang.api.job.JobContext; import tamil.lang.api...
9,029
https://github.com/Noshuas/Catwalk/blob/master/client/src/components/Connect.js
Github Open Source
Open Source
MIT
2,021
Catwalk
Noshuas
JavaScript
Code
107
509
// const axios = require('axios'); // eslint-disable-next-line import/no-unresolved import axios from 'axios'; const Connect = { getProducts: (count = 5) => axios.get('/api/products', { params: { count, }, }), getProductById: (id) => axios.get(`/api/products/${id}`), getProductStyles: (id) => ...
43,165
https://github.com/raghavnauhria/whatmt/blob/master/pytorch/caffe2/operators/elementwise_add_op_gpu.cc
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-generic-cla, Apache-2.0, BSD-2-Clause, MIT
2,019
whatmt
raghavnauhria
C++
Code
22
153
#include "caffe2/operators/elementwise_add_op.h" #include "caffe2/core/context_gpu.h" namespace caffe2 { REGISTER_CUDA_OPERATOR( Add, BinaryElementwiseOp<NumericTypes, CUDAContext, AddFunctor<CUDAContext>>); REGISTER_CUDA_OPERATOR( AddGradient, BinaryElementwiseGradientOp< NumericTypes, ...
43,551
https://github.com/shanole/moodcloud/blob/master/src/components/landing/About.js
Github Open Source
Open Source
FTL, OML
2,022
moodcloud
shanole
JavaScript
Code
199
692
import React from 'react'; import StyledAbout from './styles/StyledAbout'; import SampleGraph from './SampleGraph'; import SampleTopKeywords from './SampleTopKeywords'; import Carousel from 'react-bootstrap/Carousel' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faSmile } from '@fortawesome...
51,108
https://github.com/apache/jackrabbit-oak/blob/master/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/IndexStatisticsTest.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
jackrabbit-oak
apache
Java
Code
608
2,154
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,918
https://github.com/codyseibert/youtube/blob/master/html5-game-series/3-rotate-object-toward-mouse/index.js
Github Open Source
Open Source
MIT
2,022
youtube
codyseibert
JavaScript
Code
81
257
import Tank from './tank'; const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.canvas.width = window.innerWidth; ctx.canvas.height = window.innerHeight; const state = { mouse: { x: 0, y: 0, }, tank: { x: 200, y: 200, rotation: 0, } }; window.addEven...
3,819
https://github.com/davidbradway/unittestmatlabdemo/blob/master/sortAndSplitEvenAndOddsScriptTest.m
Github Open Source
Open Source
Apache-2.0
2,021
unittestmatlabdemo
davidbradway
MATLAB
Code
56
175
%% Test 1: test with a vector [odds,evens] = sortAndSplitEvenAndOdds([0, 4, 7, 2, 3]); actSolution1 = odds; expSolution1 = [3,7]'; actSolution2 = evens; expSolution2 = [0,2,4]'; assert( prod(actSolution1 == expSolution1) == 1 ) assert( prod(actSolution2 == expSolution2) == 1 ) % Error check the outputs classes = {'n...
11,918
https://github.com/digitalservice4germany/grundsteuer/blob/master/app/audit/auditLog.ts
Github Open Source
Open Source
MIT
2,022
grundsteuer
digitalservice4germany
TypeScript
Code
152
597
import { db } from "~/db.server"; import { encryptData } from "~/audit/crypto"; import invariant from "tiny-invariant"; export enum AuditLogEvent { USER_REGISTERED = "user_registered", FSC_REQUESTED = "fsc_requested", FSC_ACTIVATED = "fsc_activated", FSC_REVOKED = "fsc_revoked", TAX_DECLARATION_SENT = "tax_d...
39,102
https://github.com/LongOddCode/TeamsFx/blob/master/packages/cli/tests/unit/cmds/preview/preview.tests.ts
Github Open Source
Open Source
MIT
null
TeamsFx
LongOddCode
TypeScript
Code
649
1,969
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import * as path from "path"; import mock from "mock-fs"; import { FxError, ok, err, UserError } from "@microsoft/teamsfx-api"; import * as sinon from "sinon"; import Preview from "../../../../src/cmds/preview/preview"; import { expect } from...
34,203
https://github.com/kyriosdata/healthcodec/blob/master/sandbox/src/test/java/com/github/kyriosdata/healthcodec/datatypes/encapsulated/DvParsableTest.java
Github Open Source
Open Source
Apache-2.0
2,020
healthcodec
kyriosdata
Java
Code
75
461
package com.github.kyriosdata.healthcodec.datatypes.encapsulated; import com.github.kyriosdata.healthcodec.RMObject.DvParsable; import com.github.kyriosdata.healthcodec.RMObjectFactory; import com.github.kyriosdata.healthcodec.RMObjectSerializationClient; import com.github.kyriosdata.healthcodec.RMObjectTestHelper; im...
45,277
https://github.com/reesretuta/dropshipping-icons/blob/master/js/duotone/cid-input-component.d.ts
Github Open Source
Open Source
CC-BY-4.0, MIT
null
dropshipping-icons
reesretuta
TypeScript
Code
5
12
export declare const cidInputComponent: string[];
17,162
https://github.com/houcy/ShineLAB/blob/master/js/zh-page.js
Github Open Source
Open Source
MIT
2,018
ShineLAB
houcy
JavaScript
Code
351
1,355
$.extend({ // 分页 page:function (options) { var defaults = { 'visiblePages': 6 // 可见页码(不能小于4) }; var opts =$.extend({}, defaults, options); // console.log(opts); var curPage = opts.curPage; // 创建分页列表 function createPageList(curPage) { ...
2,145
https://github.com/sizuichu/weimi-GZU/blob/master/utils/config.js
Github Open Source
Open Source
MIT
2,019
weimi-GZU
sizuichu
JavaScript
Code
179
1,190
/* * * 微觅贵大微信小程序 * author: jianbo(原版) 似最初基于二次开发 * 开源协议:MIT *开源地址:https://github.com/sizuichu/weimi-GZU.git * Copyright (c) 2018 https://xiaomi.weask.club All rights reserved. * */ //配置域名,域名只修改此处。 //如果wordpress没有安装在网站根目录请加上目录路径,例如:"www.watch-life.net/blog" var DOMAIN = "school.mepuw.cn"; var MINAPPTYPE="1";/...
44,704
https://github.com/scbzyhx/brcc/blob/master/brcc-core/src/main/java/com/baidu/brcc/service/GrayRuleService.java
Github Open Source
Open Source
Apache-2.0
2,021
brcc
scbzyhx
Java
Code
33
177
package com.baidu.brcc.service; import com.baidu.brcc.domain.GrayRule; import com.baidu.brcc.domain.GrayRuleExample; import com.baidu.brcc.domain.User; import com.baidu.brcc.domain.vo.GrayRuleReq; import com.baidu.brcc.service.base.GenericService; import java.util.List; public interface GrayRuleService extends Generi...
29,450
https://github.com/Dijestdesigns/dashboard.braddavidson.com/blob/master/resources/views/stock_values/index.blade.php
Github Open Source
Open Source
MIT
2,021
dashboard.braddavidson.com
Dijestdesigns
Blade
Code
258
1,066
@extends('layouts.app') @section('content') <section class="wrapper site-min-height"> @include('ultimateLogo') @if (session('success')) <div class="alert alert-success" role="alert"> {{ session('success') }} </div> @endif @if (session('error...
27,689
https://github.com/borkin8r/FlyCasual/blob/master/Assets/Scripts/Model/Rules/RulesList/ForceRule.cs
Github Open Source
Open Source
MIT
null
FlyCasual
borkin8r
C#
Code
37
111
using Ship; using UnityEngine; namespace RulesList { public class ForceRule { public void RegenerateForce(GenericShip ship) { if (ship.Force < ship.MaxForce) ship.Force++; } public void AddForceAction(GenericShip ship) { ship.AddAvailableAction...
931
https://github.com/eivindw/slate-plugins-next/blob/master/packages/slate-plugins/src/__tests__/common/utils/createNode/default.spec.ts
Github Open Source
Open Source
MIT
null
slate-plugins-next
eivindw
TypeScript
Code
38
84
import { createNode } from 'common/utils'; import { PARAGRAPH } from 'elements/paragraph'; import { Node } from 'slate'; const output: Node = { type: PARAGRAPH, children: [{ text: '' }] }; it('should be', () => { expect(createNode()).toEqual(output); });
34,408