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/machour/db-elasticsearch/blob/master/tests/data/ar/OrderItemWithNullFK.php
Github Open Source
Open Source
BSD-3-Clause
2,019
db-elasticsearch
machour
PHP
Code
14
44
<?php namespace yii\elasticsearch\tests\data\ar; /** * Class OrderItem */ class OrderItemWithNullFK extends OrderItem { }
25,485
https://github.com/eternalStudent/barebone-ui/blob/master/basic/memory.cpp
Github Open Source
Open Source
Unlicense
null
barebone-ui
eternalStudent
C++
Code
55
209
#include "win32memory.cpp" #define OsHeapAllocate Win32HeapAllocate #define OsHeapFree Win32HeapFree #include "arena.cpp" #include "fixedsize.cpp" Arena CreateArena(int64 capacity) { void* buffer = OsHeapAllocate(capacity); Arena arena; ArenaInit(&arena, buffer, capacity); return arena; } FixedSize Create...
19,541
https://github.com/California26/OnlyTwo/blob/master/GoldRush/GoldRush/Module/Mine/Controller/GRPersonSettingViewController.h
Github Open Source
Open Source
MIT
2,017
OnlyTwo
California26
Objective-C
Code
34
118
// // GRPersonSettingViewController.h // GoldRush // // Created by Jack on 2016/12/31. // Copyright © 2016年 Jack. All rights reserved. // #import <UIKit/UIKit.h> @interface GRPersonSettingViewController : UIViewController ///返回选中的头像图片 @property (nonatomic, copy) void(^settingBack)(UIImage *image); @end
24,244
https://github.com/vincentchalamon/sfCmsPlugin/blob/master/lib/model/doctrine/PluginArticle.class.php
Github Open Source
Open Source
MIT
null
sfCmsPlugin
vincentchalamon
PHP
Code
218
718
<?php /** * PluginArticle * * This class has been auto-generated by the Doctrine ORM Framework * * @package ##PACKAGE## * @subpackage ##SUBPACKAGE## * @author ##NAME## <##EMAIL##> * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ */ abstract class PluginArticle extends BaseArticle...
22,198
https://github.com/risinghero/CSSharp-OrangeData-official/blob/master/OrangedataRequest/Enums/PaymentSubjectTypeEnum.cs
Github Open Source
Open Source
MIT
2,021
CSSharp-OrangeData-official
risinghero
C#
Code
169
586
namespace OrangedataRequest.Enums { /// <summary> /// Предмет расчета /// </summary> public enum PaymentSubjectTypeEnum { /// <summary> /// Товар /// </summary> Product = 1, /// <summary> /// Подакцизный товар /// </summary> ...
30,331
https://github.com/tim760255458/wuanlife_movie/blob/master/src/views/layout/Navbar/NavUser/index.vue
Github Open Source
Open Source
MIT
null
wuanlife_movie
tim760255458
Vue
Code
192
833
<template> <div class="nav-user"> <div class="nav-user-logined"> <router-link v-if="isLogined" to="/find" tag="span" class="nav-user-find">发现影视</router-link> <div> <span v-if="!isLogined" @click="gotoAuth">登录&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注册</span> <span v-if="isLogined" @click="show()"...
21,470
https://github.com/asandeep/premailer/blob/master/premailer/__init__.py
Github Open Source
Open Source
BSD-3-Clause
null
premailer
asandeep
Python
Code
15
45
from __future__ import absolute_import, unicode_literals from .premailer import Premailer, transform # noqa __version__ = "3.5.0"
36,202
https://github.com/goodplayer/fastcgi-plus/blob/master/fcgi/io.go
Github Open Source
Open Source
Apache-2.0
null
fastcgi-plus
goodplayer
Go
Code
27
73
package fcgi import "io" func readToEOF(r io.Reader) { b := make([]byte, 1024) for { _, err := r.Read(b) if err == io.EOF { return } } }
23,453
https://github.com/Craiel/UnityEssentials/blob/master/Core/Tests/GrammarTests.cs
Github Open Source
Open Source
MIT
2,021
UnityEssentials
Craiel
C#
Code
79
307
namespace Craiel.UnityEssentials.Tests { using System.Collections.Generic; using NUnit.Framework; using Runtime.Grammar.Grammars; using Runtime.Grammar.Parsers; using Runtime.Grammar.Tokenize; public static class GrammarTests { private const string TestCommandLine = " -v -b -mno -s ...
33,109
https://github.com/codexiogeek/Library-Management-System-GKCEM2018/blob/master/user/check_issued_book.php
Github Open Source
Open Source
MIT
2,021
Library-Management-System-GKCEM2018
codexiogeek
PHP
Code
86
528
<div class="table-responsive"> <table class="table" border="1"> <tr style="background:#337ab7;color:#FFFFFF"> <th>Booking Id</th> <th>Book Name</th> <th>Booking Date</th> <th style="color:red">Submission Date</th> <th>Submit Book</th> </tr> <?php $r="select * from booked_books where user_id='".$_SES...
9,797
https://github.com/nathanredblur/amphtml/blob/master/extensions/amp-consent/0.1/consent-info.js
Github Open Source
Open Source
Apache-2.0
null
amphtml
nathanredblur
JavaScript
Code
940
2,577
/** * Copyright 2018 The AMP HTML Authors. 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 require...
33,271
https://github.com/JoseFlores25/phase-0-pac-3-intro-to-functions-lab/blob/master/index.js
Github Open Source
Open Source
LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference
2,021
phase-0-pac-3-intro-to-functions-lab
JoseFlores25
JavaScript
Code
74
236
function shout(string) { return string.toUpperCase(); } function whisper(string) { return string.toLowerCase(); } function logShout(shout) { console.log(shout.toUpperCase()); } function logWhisper(hello) { console.log(hello.toLowerCase()); } function sayHiToGrandma(abuela) { var cantUnswer = "I can't hear...
2,223
https://github.com/mirek190/x86-android-5.0/blob/master/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/test/testit
Github Open Source
Open Source
NCSA, MIT
2,015
x86-android-5.0
mirek190
Shell
Code
546
1,540
#!/bin/bash # //===--------------------------- testit ---------------------------------===// # // # // The LLVM Compiler Infrastructure # // # // This file is distributed under the University of Illinois Open Source # // License. See LICENSE.TXT for details. # // # //===-----------------------------...
25,517
https://github.com/lovemyself0/defender/blob/master/InitSystem.sh
Github Open Source
Open Source
BSD-3-Clause
null
defender
lovemyself0
Shell
Code
17
54
#!/bin/sh chown apache.apache console/runtime -R chown apache.apache system/runtime -R chown apache.apache web/upload -R chown apache.apache web/assets -R
50,521
https://github.com/cquiroz/ocs/blob/master/bundle/edu.gemini.ags/src/test/scala/edu/gemini/ags/gems/mascot/MascotTest.scala
Github Open Source
Open Source
BSD-3-Clause
2,020
ocs
cquiroz
Scala
Code
893
4,089
package edu.gemini.ags.gems.mascot import edu.gemini.spModel.core._ import org.junit.Test import org.junit.Assert._ import java.util.Date /** * Test cases for Scala port of the Yorick based Mascot sources. */ class MascotTest { // nomad.dat for ngc1275 //#...aclient 130.79.129.161 1660 nomad1 -c 03 19 48.2341 ...
5,123
https://github.com/totothink/tingyun_rpm/blob/master/lib/ting_yun/agent/agent.rb
Github Open Source
Open Source
MIT
null
tingyun_rpm
totothink
Ruby
Code
367
1,276
# encoding: utf-8 # This file is distributed under Ting Yun's license terms. require 'ting_yun/logger/agent_logger' require 'ting_yun/agent/class_methods' require 'ting_yun/agent/instance_methods' require 'ting_yun/ting_yun_service' require 'ting_yun/frameworks' require 'ting_yun/agent/event/event_listener' require 'ti...
50,033
https://github.com/janestreet/ocaml_intrinsics/blob/master/test/test_clz.ml
Github Open Source
Open Source
MIT
2,023
ocaml_intrinsics
janestreet
OCaml
Code
565
1,796
[%%import "config.h"] open Base open Stdio let test ~op ~op_name ~to_string x = printf "%s %s = %d\n" op_name (to_string x) (op x) let%expect_test "clz int64" = let open Int64 in let numbers = [ 0L (* Int.num_bits *) ; 1L (* Int.num_bits - 1 *) ; 7L (* Int.num_bits - 3 *) ; max_value ; min_v...
26,261
https://github.com/DragonSSS/curated-list-of-top-75-leetcode-questions/blob/master/leetcode/src/main/java/leetcode/string/WordSubsets.java
Github Open Source
Open Source
MIT
2,021
curated-list-of-top-75-leetcode-questions
DragonSSS
Java
Code
112
306
package leetcode.string; import java.util.ArrayList; import java.util.List; public class WordSubsets { public List<String> wordSubsets(String[] A, String[] B) { int[] count = new int[26], temp = new int[26]; List<String> res = new ArrayList<>(); for(String s : B) { temp = coun...
16,833
https://github.com/andremarianiello/buf/blob/master/internal/buf/bufbuild/builder_test.go
Github Open Source
Open Source
Apache-2.0
2,020
buf
andremarianiello
Go
Code
860
3,874
// Copyright 2020 Buf Technologies Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
45,000
https://github.com/gitter-badger/react-rainbow/blob/master/src/components/CarouselCard/indicators/indicator.js
Github Open Source
Open Source
MIT
null
react-rainbow
gitter-badger
JavaScript
Code
180
662
/* eslint-disable no-script-url */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import AssistiveText from '../../AssistiveText'; function getAssistiveText(header) { if (typeof header === 'string') { return `${header} Tab`; } retu...
8,580
https://github.com/gballet/verkle-block-explorer/blob/master/utils.rb
Github Open Source
Open Source
BSD-3-Clause
2,022
verkle-block-explorer
gballet
Ruby
Code
45
149
def from_hex(hex) [hex].pack("H*")[1..] end def to_hex(ary, noheader=false) return 'nil' if ary.nil? ary.reduce(noheader ? '' : '0x') { |s, b| s + format('%02x', b) } end def le_bytes(ary) be_bytes ary.reverse end def be_bytes(ary) ary.reduce(0) do |a, b| a *= 256 a += b a end end
22,017
https://github.com/joao/lapso/blob/master/Makefile
Github Open Source
Open Source
MIT
2,018
lapso
joao
Makefile
Code
17
56
run: ruby app.rb gem_install: gem install mini_magick macos_install: brew install imagemagick brew install ffpmeg gem install mini_magick
296
https://github.com/frknayk/MathVisual/blob/master/setup.py
Github Open Source
Open Source
MIT
null
MathVisual
frknayk
Python
Code
17
68
from setuptools import setup setup( name='MathVisual', version='0.1', description='Perform mathematical expressions from images directly', author='Furkan Ayik', author_email='furkanayik@outlook.com' )
46,950
https://github.com/aeonhack/archive/blob/master/sources/AreonFlash/Main.Designer.vb
Github Open Source
Open Source
Unlicense
2,021
archive
aeonhack
Visual Basic
Code
897
4,520
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Partial Class Main Inherits System.Windows.Forms.Form 'Form overrides dispose to clean up the component list. <System.Diagnostics.DebuggerNonUserCode()> _ Protected Overrides Sub Dispose(ByVal disposing As Boolean) Try ...
4,699
https://github.com/aravipati12/captum/blob/master/tests/attr/helpers/test_config.py
Github Open Source
Open Source
BSD-3-Clause
2,019
captum
aravipati12
Python
Code
2,927
12,692
#!/usr/bin/env python3 import torch from captum.attr._core.deep_lift import DeepLift, DeepLiftShap from captum.attr._core.feature_ablation import FeatureAblation from captum.attr._core.feature_permutation import FeaturePermutation from captum.attr._core.gradient_shap import GradientShap from captum.attr._core.guided_...
36,989
https://github.com/hanyuwang1993/client-python/blob/master/grafeas/models/spdx_document_occurrence.py
Github Open Source
Open Source
Apache-2.0
null
client-python
hanyuwang1993
Python
Code
855
2,709
# coding: utf-8 """ grafeas.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1beta1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import...
36,019
https://github.com/calinrada/tripod-php/blob/master/src/mongo/delegates/MongoTripodTables.class.php
Github Open Source
Open Source
MIT
2,014
tripod-php
calinrada
PHP
Code
2,006
6,950
<?php require_once TRIPOD_DIR . 'mongo/MongoTripodConstants.php'; require_once TRIPOD_DIR . 'mongo/base/MongoTripodBase.class.php'; class MongoTripodTables extends MongoTripodBase implements SplObserver { /** * Modifier config - list of allowed functions and their attributes that can be passed through in tab...
18,727
https://github.com/alexchungcdc/curve-js/blob/master/src/factory/factory-api.ts
Github Open Source
Open Source
MIT
null
curve-js
alexchungcdc
TypeScript
Code
753
3,462
import axios from 'axios'; import { Contract, ethers } from "ethers"; import { Contract as MulticallContract } from "ethcall"; import { DictInterface, PoolDataInterface, ICurve, IPoolDataFromApi, REFERENCE_ASSET } from "../interfaces"; import factoryGaugeABI from "../constants/abis/json/gauge_factory.json"; import fact...
5,720
https://github.com/RapidRiverSoftware/rrsoft-react-framework/blob/master/src/components/JsonObjectDisplay/JsonObjectDisplay.js
Github Open Source
Open Source
Apache-2.0
null
rrsoft-react-framework
RapidRiverSoftware
JavaScript
Code
89
274
import React from 'react' import styled from 'styled-components' import map from 'lodash/map' const JsonObjectDisplay = ({ info }) => { return ( <KeyValueTable> <tbody> { map(info, (v,k) => ( <tr key={k}> <td className="key">{k}</td> <td className="value">{ty...
40,933
https://github.com/willm/node-7digital-api/blob/master/test/build-test.js
Github Open Source
Open Source
0BSD
null
node-7digital-api
willm
JavaScript
Code
660
2,483
'use strict'; var _ = require('lodash'); var assert = require('chai').assert; var Api = require('../lib/api').Api; var withEnv = require('./util').withEnv; function createSchema() { return _.cloneDeep({ "host": "api.example.com", "prefix": "1.0", "resources": { "Test": { "resource": "testresource",...
48,769
https://github.com/SmAshikur/Job-Portal/blob/master/resources/js/components/FavoriteComponent.vue
Github Open Source
Open Source
MIT
null
Job-Portal
SmAshikur
Vue
Code
56
264
<template> <div> <button v-if="show" @click="unsave()" class="btn btn-dark"> Unsave </button> <button v-else @click="save()" class="btn btn-success"> save </button> </div> </template> <script> export default { props:['jobid','Fav'], mounted() { this.show = thi...
44,870
https://github.com/jinwoo/bsc-testsuite/blob/master/bsc.lib/rwire/PulseTest.bsv
Github Open Source
Open Source
BSD-3-Clause
null
bsc-testsuite
jinwoo
Bluespec
Code
41
147
import Vector::*; (* synthesize *) module sysPulseTest(Empty); Reg#(Bool) a <- mkReg(False); PulseWire b <- mkPulseWire; Vector#(2, Bool) x = replicate(?); x[0] = a; x[1] = b; rule pulse(!a); b.send; endrule rule test; $display("a: %0b b: %0b", x[0], x[1]); $finish(0); endrule en...
27,212
https://github.com/thibaudio/ld47/blob/master/Assets/Scripts/ObjectPool/ObjectPool.cs
Github Open Source
Open Source
CC0-1.0
null
ld47
thibaudio
C#
Code
105
354
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObjectPool { private List<GameObject> _pool; private int _index; private GameObject _prefab; private Transform _parentTransform; public ObjectPool(Transform parentTransform, GameObject prefab, int preallocS...
33,123
https://github.com/1891er/koa3-wechat/blob/master/src/jssdk.js
Github Open Source
Open Source
MIT
2,019
koa3-wechat
1891er
JavaScript
Code
256
810
import _debug from 'debug'; const debug = _debug('app:wechat:jssdk'); import Base from './base'; import crypto from 'crypto'; export default class Jssdk extends Base { constructor(opts = {}) { super(opts); } async getSignPackage(url) { var jsApiTicket = await this._getJsApiTicket(); debug('jsApiTick...
32,899
https://github.com/ontop/ontop/blob/master/db/rdb/src/main/java/it/unibz/inf/ontop/generation/normalization/impl/AbstractTypingNullsDialectExtraNormalizer.java
Github Open Source
Open Source
CC-BY-4.0, Apache-2.0
2,023
ontop
ontop
Java
Code
143
754
package it.unibz.inf.ontop.generation.normalization.impl; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import it.unibz.inf.ontop.generation.normalization.DialectExtraNormalizer; import it.unibz.inf.ontop.injection.CoreSingletons; import it.unibz.inf.ontop.iq.IQTree; imp...
37,542
https://github.com/hjp7310/easy-pia/blob/master/backend/iot/iot/urls.py
Github Open Source
Open Source
MIT
null
easy-pia
hjp7310
Python
Code
131
446
"""iot URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
43,542
https://github.com/davesag/mock-signin-with-slack/blob/master/src/api/framework/handleLogin.js
Github Open Source
Open Source
MIT
2,020
mock-signin-with-slack
davesag
JavaScript
Code
144
451
const HttpError = require('node-http-error') const { v4 } = require('uuid') const ERRORS = require('src/errors') const { CLIENT_ID, REDIRECT_URI } = require('src/utils/config') const makeUser = require('src/helpers/makeUser') const { usersById, usersByToken, tokensByCode } = require('src/utils/store') const handleLog...
23,200
https://github.com/DigiClass/ProsopoCogito/blob/master/app/controllers/api/TaskAPIController.scala
Github Open Source
Open Source
Apache-2.0
null
ProsopoCogito
DigiClass
Scala
Code
257
884
package controllers.api import akka.actor.ActorSystem import controllers.{ BaseAuthController, HasPrettyPrintJSON } import java.util.UUID import javax.inject.{ Inject, Singleton } import models.document.{ DocumentInfo, DocumentService } import models.task.{ TaskType, TaskService, TaskRecordAggregate } import models.us...
5,247
https://github.com/forestvpn/swift-api-v2/blob/master/ForestVPNAPIClient/Classes/Models/PlayStorePurchaseVerificationRequest.swift
Github Open Source
Open Source
MIT
null
swift-api-v2
forestvpn
Swift
Code
111
316
// // PlayStorePurchaseVerificationRequest.swift // // Generated by openapi-generator // https://openapi-generator.tech // import Foundation #if canImport(AnyCodable) import AnyCodable #endif public struct PlayStorePurchaseVerificationRequest: Codable, Hashable { /** The inapp product SKU (for example, 'com.some...
22,906
https://github.com/juninhorosa/L2MYTHRAS_FIXED/blob/master/java/l2f/commons/compiler/MemoryJavaFileManager.java
Github Open Source
Open Source
MIT
2,020
L2MYTHRAS_FIXED
juninhorosa
Java
Code
79
312
package l2f.commons.compiler; import javax.tools.FileObject; import javax.tools.ForwardingJavaFileManager; import javax.tools.JavaFileObject; import javax.tools.JavaFileObject.Kind; import javax.tools.StandardJavaFileManager; import java.io.IOException; import java.net.URI; public class MemoryJavaFileManager extends...
13,364
https://github.com/Sywooch/imuzik/blob/master/frontend/models/VtMessages.php
Github Open Source
Open Source
BSD-3-Clause
null
imuzik
Sywooch
PHP
Code
187
629
<?php namespace frontend\models; use Yii; use yii\web\IdentityInterface; class VtMessages extends \common\models\VtMessagesBase { public $captcha; /** * @inheritdoc */ public function rules() { return [ [['title', 'body', 'email'], 'required'], [['body'], 'stri...
32,731
https://github.com/ShinjiKatoA16/aoj-itp/blob/master/itp1_11a.py
Github Open Source
Open Source
MIT
null
aoj-itp
ShinjiKatoA16
Python
Code
119
422
#!/usr/bin/python3 # -*- coding: utf-8 -*- def rotate_n(p): temp = p['top'] p['top'] = p['south'] p['south'] = p['bot'] p['bot'] = p['north'] p['north'] = temp def rotate_s(p): temp = p['top'] p['top'] = p['north'] p['north'] = p['bot'] p['bot'] = p['south'] p['south'] = temp ...
7,096
https://github.com/paolokoelio/REMSENS/blob/master/src/serv2/JsonForGraph.py
Github Open Source
Open Source
CC-BY-3.0
2,016
REMSENS
paolokoelio
Python
Code
140
491
''' Created on 14/ott/2015 @author: koelio ''' from server.models import Client import json from django.utils.dateformat import format class JsonForGraph(object): ''' A class to load data from DB and write it in a json file to be rendered with Javascript for data display. ''' def __init__(self): ...
13,867
https://github.com/daniuEvan/davinci-master/blob/master/webapp/app/containers/Widget/components/Workbench/ConfigSections/ScorecardSection.tsx
Github Open Source
Open Source
Apache-2.0
2,022
davinci-master
daniuEvan
TypeScript
Code
628
3,307
import * as React from 'react' import { Row, Col, Input, Checkbox, Select } from 'antd' const Option = Select.Option import ColorPicker from 'components/ColorPicker' import { PIVOT_CHART_FONT_FAMILIES, PIVOT_CHART_LINE_STYLES, PIVOT_CHART_FONT_SIZES, CHART_LABEL_POSITIONS, CHART_PIE_LABEL_POSITIONS, CHART_F...
22,980
https://github.com/paulkre/hocus/blob/master/src/entities/session/index.ts
Github Open Source
Open Source
MIT
null
hocus
paulkre
TypeScript
Code
172
525
import { customAlphabet } from "nanoid"; import { Project } from "../project"; import { dateToID } from "./date"; export { dateIDToDate } from "./date"; export type SessionProps = { project: Project; start: Date; end: Date; tags?: string[]; notes?: string; localID?: string; }; export type Session = Sessi...
20,170
https://github.com/giraffe/jrate/blob/master/gcc/libjava/javax/swing/plaf/basic/BasicRadioButtonUI.java
Github Open Source
Open Source
Xnet, Linux-OpenIB, X11
2,021
jrate
giraffe
Java
Code
238
887
package javax.swing.plaf.basic; import javax.swing.*; import javax.swing.plaf.*; import java.awt.*; public class BasicRadioButtonUI extends BasicToggleButtonUI { int large_circle_width = 20; int circle_width = large_circle_width - 8; // FIXME: sun == ? public static ComponentUI createUI(final JComponent c...
43,491
https://github.com/yousseffatihi/T-land-space/blob/master/WorkSpace-Web/models/Post.php
Github Open Source
Open Source
Unlicense
null
T-land-space
yousseffatihi
PHP
Code
232
707
<?php class Post{ /* Member variables */ private $idPost; private $title; private $text; private $image; private $datePost; private $file; private $admin; public function __construct( $idPost, $title, $text, $image, $datePost, $file, $admin){ $this->idPost = $idPost; $this->...
6,768
https://github.com/terotests/numbot/blob/master/tests/stats.test.ts
Github Open Source
Open Source
MIT
2,022
numbot
terotests
TypeScript
Code
493
1,491
import { expect } from "chai"; import { parser, stats } from "../src/index"; import { exampleRules } from "../src/parsers"; import { StatsResult } from "../src/stats"; var babar = require("babar"); const toBabar = (list: [Date, number][], options: any) => babar( list.map(([key, value], idx) => [idx, value]), ...
39,487
https://github.com/mitre/couchbase-enterprise-srg-baseline/blob/master/controls/V-58069.rb
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,021
couchbase-enterprise-srg-baseline
mitre
Ruby
Code
373
736
# encoding: UTF-8 control "V-58069" do title "Couchbase must be able to generate audit records when unsuccessful attempts to retrieve privileges/permissions occur." desc "Under some circumstances, it may be useful to monitor who/what is reading privilege/permission/role information. Therefore, it must be poss...
25,662
https://github.com/artemv01/ngx-storefront/blob/master/src/app/pages/shop/shop.component.ts
Github Open Source
Open Source
MIT
2,021
ngx-storefront
artemv01
TypeScript
Code
511
1,756
import { Observable, Subject } from 'rxjs'; import { debounceTime, tap } from 'rxjs/operators'; import { animate, query, style, transition, trigger, } from '@angular/animations'; import { Component, OnDestroy, OnInit } from '@angular/core'; import { NavigationStart, RouteConfigLoadEnd, RouteConfigLoadS...
49,270
https://github.com/domenic/test262/blob/master/external/contributions/Google/sputnik_conformance_modified/07_Lexical_Conventions/7.8_Literals/7.8.3_Numeric_Literals/S7.8.3_A1.2_T3.js
Github Open Source
Open Source
BSD-3-Clause
2,021
test262
domenic
JavaScript
Code
153
468
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S7.8.3_A1.2_T3; * @section: 7.8.3; * @assertion: DecimalLiteral :: DecimalIntegerLiteral ExponentPart; * @description: ExponentPart :: e -DecimalDigits; */ //CHECK#0 i...
16,565
https://github.com/zust-hh/Blue-Gull-IT-Curriculum-Assessment-System/blob/master/app/web/component/head.vue
Github Open Source
Open Source
MIT
null
Blue-Gull-IT-Curriculum-Assessment-System
zust-hh
Vue
Code
53
278
<template> <ul class="layui-nav" lay-filter=""> <li> <img src="../asset/images/logo.jpg" alt="alt" id="logo"> </li> <el-dropdown style="float:right;margin-top:-45px;cursor:pointer;"> <span class="el-dropdown-link" id="user-head"> <img src="../asset/images/head.png" alt="head"> </...
4,445
https://github.com/nustjs/nust-theme-default/blob/master/pages/notes/fragment/_num.vue
Github Open Source
Open Source
MIT
2,017
nust-theme-default
nustjs
Vue
Code
67
238
<template> <div class="nust-fragment"> <template v-for="item in items"> <post-mini :post="item"></post-mini> </template> </div> </template> <style lang="stylus" scoped> </style> <script> import axios from '~plugins/axios' import PostMini from '~components/post/Mini.vue' export default { layout: 'f...
44,879
https://github.com/jpalvesl/doom-fire-algorithm/blob/master/playground/pythonic-doom-fire/pythonic-doom-fire/doom_fire.py
Github Open Source
Open Source
MIT
2,022
doom-fire-algorithm
jpalvesl
Python
Code
310
1,042
from abc import ABC, abstractmethod from color_palette import ColorPalette from functools import reduce from random import randint class DoomFire(ABC): def __init__(self, width, height, pixel_size = 4, decay_rate = 2, \ windforce = 1, fire_source_inc = (4, 6), \ fire_source_enabled = True, ...
42,323
https://github.com/tdzevad/Koschier-meet/blob/master/app/features/config/index.js
Github Open Source
Open Source
Apache-2.0
null
Koschier-meet
tdzevad
JavaScript
Code
119
346
export default { /** * The URL with extra information about the app / service. */ aboutURL: 'https://www.koschier.at/unternehmen/', /** * The URL to the source code repository. */ sourceURL: 'https://github.com/tdzevad/Koschier-meet', /** * Application name. */ a...
2,148
https://github.com/TkachAleksander/ssucontent/blob/master/resources/views/home.blade.php
Github Open Source
Open Source
MIT
2,017
ssucontent
TkachAleksander
Blade
Code
143
808
{{--@extends('layouts.app')--}} @section('content') <div class="container"> <div class="row"> <div class="col-sm-12 "> <div class="row"> @if (Auth::guest()) <div class="row"> <div class="col-sm-offset-1 co...
1,344
https://github.com/itsnotyoutoday/MST/blob/master/Assets/MasterServerToolkit/Tools/UI/Scripts/Generic/BmAutoEnabler.cs
Github Open Source
Open Source
MIT
null
MST
itsnotyoutoday
C#
Code
83
186
using System.Collections.Generic; using UnityEngine; namespace MasterServerToolkit.Utils { /// <summary> /// A script that enables all of the objects within the list. /// Useful for enabling objects that you don't want enabled in the editor /// </summary> public class BmAutoEnabler : MonoB...
5,904
https://github.com/higtrollers/Sciensoft.Hateoas/blob/master/samples/Sciensoft.Hateoas.ProductApiSample/src/Sciensoft.Samples.Products.Api.Application/Logging/ProductOrchestratorLogger.cs
Github Open Source
Open Source
Apache-2.0
2,020
Sciensoft.Hateoas
higtrollers
C#
Code
290
987
using Sciensoft.Samples.Products.AspNetCore.Logging; using Sciensoft.Samples.Products.AspNetCore.Providers; using System; namespace Sciensoft.Samples.Products.Api.Application.Logging { public class ProductOrchestratorLogger : IProductOrchestratorLogger { readonly ICoreLogger _logger; readonly ...
24,029
https://github.com/asanetargoss/Nutrition/blob/master/src/main/java/ca/wescook/nutrition/events/EventPlayerAttachCapability.java
Github Open Source
Open Source
MIT
2,017
Nutrition
asanetargoss
Java
Code
61
263
package ca.wescook.nutrition.events; import ca.wescook.nutrition.Nutrition; import ca.wescook.nutrition.capabilities.CapProvider; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.ResourceLocation; import net.minecraftforge.event.AttachCapabilitiesEvent; imp...
2,823
https://github.com/zulwasaya/zulsearch/blob/master/rails/ruby/1.9.1/gems/kv-0.0.5/spec/kv/unparser_spec.rb
Github Open Source
Open Source
MIT
2,013
zulsearch
zulwasaya
Ruby
Code
27
83
require 'spec_helper' describe KV::Unparser do let(:unparser) { KV::Unparser.new } it "converts a hash into a string" do unparser.handle({"a" => 1, "foo" => "bar"}).should eq("a=1 foo=bar") end end
22,849
https://github.com/fAtliNg/invest/blob/master/src/pages/index.js
Github Open Source
Open Source
MIT
2,022
invest
fAtliNg
JavaScript
Code
269
994
import Head from 'next/head'; import { resolve } from '../business/calculator' import { Box, Button, Container, Grid, } from '@mui/material'; import { DashboardLayout } from '../components/dashboard-layout'; import { CalcForm } from '../components/calc/calc-form'; import { useState, useEffect } from 'react'; im...
36,081
https://github.com/unbug4120/directadmin-api/blob/master/config/directadmin.php
Github Open Source
Open Source
MIT
2,021
directadmin-api
unbug4120
PHP
Code
19
98
<?php return [ 'hostname' => env('DIRECTADMIN_HOSTNAME'), 'port' => env('DIRECTADMIN_PORT'), 'username' => env('DIRECTADMIN_USERNAME'), 'password' => env('DIRECTADMIN_PASSWORD'), 'serverIp' => env('DIRECTADMIN_SERVERIP'), ];
30,478
https://github.com/GravitywellUK/packages/blob/master/packages/shared/string-manipulation/__fixtures__/title-case.fixture.ts
Github Open Source
Open Source
MIT
2,020
packages
GravitywellUK
TypeScript
Code
112
210
export const titleCaseFixtures = { phrase: { hello: "hello", helloUpper: "Hello", helloUpperLower: "heLLo", sentence: "double-check you are well and that there is a single dog with an apple", stopWords: "be careful, you are a be to be person and you can jump high.", irish: "hello my name is jo...
26,692
https://github.com/jimmyca15/windows-admin-center-sdk/blob/master/solution-example/packages/@msft-sme/shell/dist/angular/controls/wizard/index.d.ts
Github Open Source
Open Source
MIT, LicenseRef-scancode-generic-cla
2,018
windows-admin-center-sdk
jimmyca15
TypeScript
Code
23
59
export { WizardComponent, WizardFooterComponent } from './wizard.component'; export { WizardModule } from './wizard.module'; export { WizardStepComponent } from './wizard-step.component'; export * from './models';
48,023
https://github.com/softwareforsapiens/magento2-locations/blob/master/Controller/Adminhtml/Stores/Stores.php
Github Open Source
Open Source
MIT
null
magento2-locations
softwareforsapiens
PHP
Code
141
427
<?php namespace SFS\Locations\Controller\Adminhtml\Stores; use Magento\Backend\App\Action; use Magento\Backend\App\Action\Context; use Magento\Framework\Registry; use Magento\Framework\View\Result\PageFactory; use SFS\Locations\Model\StoreFactory; class Stores extends Action { /** * Core registry * ...
19,702
https://github.com/scsewell/UnityFramework/blob/master/Scripts/Settings/Types/StringSetting.cs
Github Open Source
Open Source
Unlicense
2,020
UnityFramework
scsewell
C#
Code
93
268
using UnityEngine; namespace Framework.Settings { [CreateAssetMenu(fileName = "New String Setting", menuName = "Framework/Settings/String", order = 5)] public class StringSetting : Setting<string> { /// <inheritdoc/> public override string[] DisplayValues => new string[0]; /// <in...
39,627
https://github.com/sutianbiao/fast-bbs/blob/master/application/admin/lang/zh-cn/bbs/report/thread.php
Github Open Source
Open Source
Apache-2.0
2,021
fast-bbs
sutianbiao
PHP
Code
94
468
<?php return [ 'User_id' => '举报用户', 'Type' => '类型', 'Type 1' => '主题', 'Type 2' => '帖子', 'Value_id' => '关联id', 'Value_user_id' => '被举报人', 'Describe' => '描述', 'Status' => '状态', 'Status 0' => '忽略', 'Status 1' => '正常', 'Createtime' => '创建时间', 'Updatetim...
44,727
https://github.com/clairechingching/ScaffCC/blob/master/clang/test/SemaTemplate/instantiate-overload-candidates.cpp
Github Open Source
Open Source
BSD-2-Clause
2,019
ScaffCC
clairechingching
C++
Code
115
231
// RUN: %clang_cc1 -fsyntax-only -verify %s // This is the function actually selected during overload resolution, and the // only one defined. template <typename T> void f(T*, int) {} template <typename T> struct S; template <typename T> struct S_ : S<T> { typedef int type; }; // expected-note{{in instantiation}} tem...
27,403
https://github.com/zealoussnow/chromium/blob/master/chrome/browser/focus_ring_browsertest_mac.mm
Github Open Source
Open Source
BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause
2,022
chromium
zealoussnow
Objective-C++
Code
44
104
// Copyright 2020 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 "chrome/browser/focus_ring_browsertest_mac.h" bool MacOSVersionSupportsDarkMode() { if (@available(macOS 10.14, *)) return true; return ...
13,639
https://github.com/Marco-FI-SEI/key-for-min-value-online-web-ft-090919/blob/master/key_for_min.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,020
key-for-min-value-online-web-ft-090919
Marco-FI-SEI
Ruby
Code
35
91
def key_for_min_value(name_hash) lowest_value = 1 / 0.0 lowest_key = "" name_hash.each do |key, value| if value <= lowest_value lowest_value = value lowest_key = key end end return lowest_key == "" ? nil : lowest_key end
47,933
https://github.com/proplants/plantbook/blob/master/internal/api/repo/pg_gardens.go
Github Open Source
Open Source
MIT
2,021
plantbook
proplants
Go
Code
322
948
package repo import ( "context" "github.com/jackc/pgx/v4" "github.com/proplants/plantbook/internal/api/models" "github.com/pkg/errors" ) // StoreGarden inserts new garden to public.gardens. func (pg *PG) StoreGarden(ctx context.Context, garden *models.Garden) (*models.Garden, error) { const query string = `INS...
2,332
https://github.com/ginarcbaktiyanesa/saladinaja/blob/master/application/models/Model_rekening.php
Github Open Source
Open Source
MIT
null
saladinaja
ginarcbaktiyanesa
PHP
Code
13
43
<?php class model_rekening extends CI_Model{ public function tampilrekening() { return $this->db->get('rekening'); } }
16,441
https://github.com/cnlisea/fuiousdk/blob/master/h5pay.go
Github Open Source
Open Source
Apache-2.0
null
fuiousdk
cnlisea
Go
Code
246
1,290
package fuiousdk import ( "bytes" "strconv" ) type H5PayRequest struct { Version string `json:"version"` // 版本号 MchntCd string `json:"mchnt_cd"` // 商户号 RandomStr string `json:"random_str"` // 随机字符串 OrderType string `json:"order_type"` ...
18,939
https://github.com/dagster-io/dagster/blob/master/js_modules/dagster-ui/packages/ui-core/src/hooks/__tests__/useQueryPersistedState.test.tsx
Github Open Source
Open Source
Apache-2.0
2,023
dagster
dagster-io
TSX
Code
1,001
3,753
import {render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import * as React from 'react'; import {MemoryRouter, Route} from 'react-router-dom'; import {useQueryPersistedState} from '../useQueryPersistedState'; const Test: React.FC<{options: Parameters<typeof ...
25,571
https://github.com/YouLucky87/Tengine/blob/master/src/lib/dev_allocator.c
Github Open Source
Open Source
Apache-2.0
2,020
Tengine
YouLucky87
C
Code
262
674
/* * 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 ma...
2,319
https://github.com/alex-pro27/nest-test-app/blob/master/src/auth/jwt.strategy.ts
Github Open Source
Open Source
MIT
null
nest-test-app
alex-pro27
TypeScript
Code
99
265
import { ExtractJwt, Strategy } from 'passport-jwt' import { PassportStrategy } from '@nestjs/passport' import { Injectable, UnauthorizedException } from '@nestjs/common' import { ACCESS_TOKEN_SECRET } from '../environments' import { getRepository } from 'typeorm'; import { UserEntity } from '../modules/users/user.enti...
6,024
https://github.com/BigETI/ElectrodZMultiplayer/blob/master/ElectrodZMultiplayer/Server/Interfaces/IBans.cs
Github Open Source
Open Source
MIT
2,021
ElectrodZMultiplayer
BigETI
C#
Code
267
749
using System.Collections.Generic; using System.IO; /// <summary> /// ElectrodZ multiplayer server namespace /// </summary> namespace ElectrodZMultiplayer.Server { /// <summary> /// An interface that represents a set of bans /// </summary> public interface IBans { /// <summary> /// ...
39,995
https://github.com/OneOfaKindGeek/mycode/blob/master/finalprog.py
Github Open Source
Open Source
Apache-2.0
null
mycode
OneOfaKindGeek
Python
Code
2,113
3,800
#!/usr/bin/env python3 answer = input(" Art thee ready for thy quest?! (Yea/Nay): ") while True: if answer.lower().strip() == "yea": while True: answer = input("You're on a quest for the holy grail! You are King Arthur out to prove you are the greatest monarch.\n" "You m...
46,652
https://github.com/smahajan07/walker_turtlebot/blob/master/include/walker_turtlebot/walker.hpp
Github Open Source
Open Source
MIT
null
walker_turtlebot
smahajan07
C++
Code
358
734
/**MIT License Copyright (c) 2018 Sarthak Mahajan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
1,582
https://github.com/ycarowr/Tools/blob/master/DialogSystem/Scripts/DialogSubComponent.cs
Github Open Source
Open Source
MIT
2,021
Tools
ycarowr
C#
Code
44
108
namespace Tools.DialogSystem { public partial class DialogSystem { /// <summary> /// Base dialog component. /// </summary> abstract class DialogSubComponent { protected DialogSubComponent(IDialogSystem system) => DialogSystem = system; /// <s...
25,663
https://github.com/FOSSAware/Ginger/blob/master/Ginger/GingerCoreCommon/UIElement/ElementLocator.cs
Github Open Source
Open Source
Apache-2.0
null
Ginger
FOSSAware
C#
Code
360
979
#region License /* Copyright © 2014-2022 European Support Limited Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
2,007
https://github.com/brocklj/super-productivity/blob/master/src/app/ui/validation/max.directive.ts
Github Open Source
Open Source
MIT
2,021
super-productivity
brocklj
TypeScript
Code
139
421
import { Directive, forwardRef, Input, OnChanges, OnInit, SimpleChanges, } from '@angular/core'; import { AbstractControl, NG_VALIDATORS, Validator, ValidatorFn } from '@angular/forms'; import { maxValidator } from './max.validator'; const MAX_VALIDATOR: any = { provide: NG_VALIDATORS, useExisting: fo...
18,635
https://github.com/andrubor/keras-galaxies/blob/master/test weight import.ipynb
Github Open Source
Open Source
BSD-3-Clause
2,017
keras-galaxies
andrubor
Jupyter Notebook
Code
498
2,117
{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "cuda_available starts with True \n", "cuda_available True \n" ] }, { "name": "stderr",...
42,174
https://github.com/awmcclain/CEF.swift/blob/master/CEF.swift/Handlers/Interop.g/CEFCookieVisitor+Interop.g.swift
Github Open Source
Open Source
BSD-3-Clause
2,022
CEF.swift
awmcclain
Swift
Code
51
215
// // CEFCookieVisitor+Interop.g.swift // CEF.swift // // This file was generated automatically from cef_cookie.h. // import Foundation extension cef_cookie_visitor_t: CEFObject {} typealias CEFCookieVisitorMarshaller = CEFMarshaller<CEFCookieVisitor, cef_cookie_visitor_t> extension CEFCookieVisitor { func t...
14,466
https://github.com/b-watch/supergroup.mixin.one/blob/master/web/src/pages/Members.vue
Github Open Source
Open Source
Apache-2.0
2,022
supergroup.mixin.one
b-watch
Vue
Code
436
1,703
<template> <loading :loading="maskLoading" :fullscreen="true"> <div class="members-page"> <nav-bar :title="$t('members.title')" :hasTopRight="false" :hasBack="true"></nav-bar> <van-cell> <van-field placeholder="Search" left-icon="search" @change="searchEnter" ...
7,569
https://github.com/mergermarket/tg-eventstore/blob/master/filesystem/src/main/java/com/timgroup/eventstore/filesystem/FilteringStreamReader.java
Github Open Source
Open Source
BSD-2-Clause
null
tg-eventstore
mergermarket
Java
Code
143
617
package com.timgroup.eventstore.filesystem; import com.timgroup.eventstore.api.EventReader; import com.timgroup.eventstore.api.EventStreamReader; import com.timgroup.eventstore.api.NoSuchStreamException; import com.timgroup.eventstore.api.ResolvedEvent; import com.timgroup.eventstore.api.StreamId; import javax.annota...
45,631
https://github.com/JuHeart/specklepy/blob/master/specklepy/reduction/flat.py
Github Open Source
Open Source
MIT
2,021
specklepy
JuHeart
Python
Code
614
2,038
from datetime import datetime from IPython import embed import numpy as np import os from tqdm import trange from astropy.io import fits from astropy.table import Table from astropy.stats import sigma_clip from specklepy.exceptions import SpecklepyTypeError, SpecklepyValueError from specklepy.io.masterfile import Mas...
41,892
https://github.com/akartik80/8thSemProject/blob/master/parseBhk.py
Github Open Source
Open Source
MIT
null
8thSemProject
akartik80
Python
Code
62
171
import csv file = csv.reader(open("/home/okutech/Desktop/kartik.csv", "r"), delimiter=",") for line in file: bhkString = line[2] largest = 0 if bhkString == 'bhk': print 'bhk' continue for character in bhkString: if character.isdigit() and int(character) > largest: largest = int(characte...
16,829
https://github.com/prochor666/goat-ui/blob/master/src/composables/auto-login.js
Github Open Source
Open Source
MIT
null
goat-ui
prochor666
JavaScript
Code
111
340
import axios from 'axios'; export const autoLogin = async (apiUrl) => { const checkRequiredRole = function (role, meta) { return meta.requiredRoles.includes(role); }; const loginInfo = { logged: false, profile: { id: 0, username: '', role: 'n...
14,883
https://github.com/kupl/npex/blob/master/common/src/main/java/npex/common/NPEInfo.java
Github Open Source
Open Source
MIT
2,022
npex
kupl
Java
Code
637
1,922
/** * The MIT License * * Copyright (c) 2020 Software Analysis Laboratory, Korea University * * 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 lim...
42,606
https://github.com/marcelloceschia/foundation/blob/master/foundation/src/commonMain/kotlin/net/ntworld/foundation/test/internal/QueryBusCallFakeBuilderImpl.kt
Github Open Source
Open Source
MIT
2,021
foundation
marcelloceschia
Kotlin
Code
142
618
package net.ntworld.foundation.test.internal import net.ntworld.foundation.cqrs.Query import net.ntworld.foundation.cqrs.QueryResult import net.ntworld.foundation.mocking.InvokeData import net.ntworld.foundation.mocking.internal.CallFakeBuilderImpl import net.ntworld.foundation.test.QueryBusCallFakeBuilder internal c...
48,330
https://github.com/mihaip/mscape/blob/master/software/extras/Iconographer Support/Testing/Spiffy Apps III/Excel.r
Github Open Source
Open Source
Apache-2.0
null
mscape
mihaip
R
Code
20,000
58,785
/* Resource fork of software/extras/Iconographer Support/Testing/Spiffy Apps III/Excel */ resource 'icns' (-16455, "Item Icon") { { /* array elementArray: 14 elements */ /* [1] */ 'ICN#', $"000F 8000 00BF C000 00FF E000 00FF C000" $"10FF C080 10FF C3C0 007F C0C0 00BF 0040" $"08FE 0060 4FFF 0060 7FFE 0FC0 7FF4 0800" $"0...
47,973
https://github.com/kashyapchhabria/xoportal/blob/master/xo_reporting_portal/app/com/xo/web/models/dao/RolePermissionDAOImpl.java
Github Open Source
Open Source
Apache-2.0
2,016
xoportal
kashyapchhabria
Java
Code
79
381
package com.xo.web.models.dao; import java.util.Collection; import org.hibernate.Query; import com.xo.web.core.XODAOException; import com.xo.web.models.system.RolePermission; @SuppressWarnings("unchecked") public class RolePermissionDAOImpl extends GenericDAOImpl<RolePermission, Integer> implements RolePermissionD...
28,123
https://github.com/warmchang/turms/blob/master/turms-service/src/main/java/im/turms/service/domain/group/repository/GroupMemberRepository.java
Github Open Source
Open Source
Apache-2.0
null
turms
warmchang
Java
Code
560
2,502
/* * Copyright (C) 2019 The Turms Project * https://github.com/turms-im/turms * * 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 * *...
6,533
https://github.com/design-awareness/design-signatures-app/blob/master/src/util/dotTimeline.ts
Github Open Source
Open Source
BSD-3-Clause
null
design-signatures-app
design-awareness
TypeScript
Code
1,112
3,293
/* * Copyright (c) 2021-2022, Design Awareness Contributors. * SPDX-License-Identifier: BSD-3-Clause */ import type { AsyncActivityData } from "design-awareness-data-types"; import type { DesignModel, AsyncProject } from "../data/schema"; import { colorScheme } from "./colorScheme"; import { MONTH_NAME } from "./da...
15,046
https://github.com/marcusoftnet/vb-gerlin-next-tailwind/blob/master/lib/queries.js
Github Open Source
Open Source
MIT
null
vb-gerlin-next-tailwind
marcusoftnet
JavaScript
Code
178
630
import firebase from 'firebase'; import { db } from '../firebase'; import { generateSearchTermArray } from './searchTermsGenerator'; const DatabaseCollections = { MATERIALS: 'materials', USERS: 'users', COUNTERS: 'counters', }; export const searchMusic = async (searchString) => { if (searchString.length === 0...
2,120
https://github.com/anu1097/react-bootstrap-table2/blob/master/packages/react-bootstrap-table2/test/sort/symbol.test.js
Github Open Source
Open Source
MIT
null
react-bootstrap-table2
anu1097
JavaScript
Code
44
165
import React from 'react'; import { shallow } from 'enzyme'; import SortSymbol from '../../src/sort/symbol'; describe('SortSymbol', () => { let wrapper; beforeEach(() => { wrapper = shallow( <SortSymbol />); }); it('should render sort symbol correctly', () => { expect(wrapper.length).toBe(1); ...
31,631
https://github.com/natomist/wpvue/blob/master/uikit/icons/svg-settings.vue
Github Open Source
Open Source
MIT
null
wpvue
natomist
Vue
Code
67
276
<template><svg class="uk-icon" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <ellipse fill="none" stroke="#000" cx="6.11" cy="3.55" rx="2.11" ry="2.15" /> <ellipse fill="none" stroke="#000" cx="6.11" cy="15.55" rx="2.11" ry="2.15" /> <circle fill="none" stroke="#000" cx="13.15" cy="9.55" r="2.15" ...
5,435
https://github.com/Cricle/Anf-team/blob/master/Platforms/Anf.ResourceFetcher/Fetchers/IRootFetcher.cs
Github Open Source
Open Source
BSD-3-Clause
null
Anf-team
Cricle
C#
Code
43
201
using Anf.ChannelModel.Mongo; using System.Threading.Tasks; namespace Anf.ResourceFetcher.Fetchers { public interface IRootSingleFetcher : ISingleResourceFetcher { Task<WithPageChapter> FetchChapterAsync(string url, string entityUrl); Task<AnfComicEntityTruck> FetchEntityAsync(string url); ...
49,397
https://github.com/PawanKolhe/mini-page-builder/blob/master/src/components/ElementItem/ElementItem.tsx
Github Open Source
Open Source
MIT
null
mini-page-builder
PawanKolhe
TypeScript
Code
86
272
import React from 'react'; import { InlineIcon } from '@iconify/react-with-api'; import styles from './elementItem.module.scss'; type Props = { name: string; dragging: boolean; className?: string; isShadowElement?: boolean; }; const ElementItem: React.FC<Props> = ({ name, dragging = false, className = '', isS...
8,932