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/78182648/blibli-go/blob/master/app/admin/main/search/service/log_test.go
Github Open Source
Open Source
MIT
2,022
blibli-go
78182648
Go
Code
189
693
package service import ( "context" "testing" "go-common/app/admin/main/search/model" . "github.com/smartystreets/goconvey/convey" ) func Test_LogAudit(t *testing.T) { var ( err error c = context.Background() p = &model.LogParams{ Bsp: &model.BasicSearchParams{ AppID: "log_audit", }, } p...
7,805
https://github.com/brantwills/CleanArchitecture/blob/master/CleanArchitecture.Application/Customers/Queries/GetCustomerDetail/GetCustomerDetailQueryHandler.cs
Github Open Source
Open Source
MIT
2,018
CleanArchitecture
brantwills
C#
Code
45
182
using CleanArchitecture.Domain.Entities; using CleanArchitecture.Domain.Interfaces; using MediatR; using System.Threading; using System.Threading.Tasks; namespace CleanArchitecture.Application.Customers.Queries.GetCustomerDetail { public class GetCustomerDetailQueryHandler : IRequestHandler<GetCustomerDetailQuery...
50,247
https://github.com/vidal-community/jax-rs-linker/blob/master/jax-rs-linker-processor/src/test/java/fr/vidal/oss/jax_rs_linker/parser/ParameterVisitorTest.java
Github Open Source
Open Source
MIT
2,022
jax-rs-linker
vidal-community
Java
Code
126
587
package fr.vidal.oss.jax_rs_linker.parser; import com.google.testing.compile.CompilationRule; import fr.vidal.oss.jax_rs_linker.model.PathParameter; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import javax.lang.model.element.Element; import javax.lang.model.element.TypeElement; import javax...
26,941
https://github.com/daniel-perry/rt/blob/master/reference_implementation/cs6620-prog6/Time.h
Github Open Source
Open Source
MIT
null
rt
daniel-perry
C
Code
23
67
#ifndef Time_h #define Time_h class Time { public: static double currentSeconds(); private: Time(); Time(const Time&); Time& operator=(const Time&); static void initialize(); }; #endif
46,498
https://github.com/alim-firejack/Firejack-Platform/blob/master/platform/src/main/webapp/js/net/firejack/platform/core/component/tinymce/plugins/imagemanager/langs/en_dlg.js
Github Open Source
Open Source
Apache-2.0
2,014
Firejack-Platform
alim-firejack
JavaScript
Code
5
52
tinyMCE.addI18n('en.photo_dlg',{title:'Add Photo Attachment'});tinyMCE.addI18n('en.video_dlg',{title:'Add Video Attachment'});
6,029
https://github.com/maco2035/console/blob/master/assets/js/graphql/apiKeys.js
Github Open Source
Open Source
Apache-2.0
2,022
console
maco2035
JavaScript
Code
25
68
import { gql } from '@apollo/client'; export const ALL_API_KEYS = gql` query ApiKeysQuery { apiKeys { id name role inserted_at user active } } `
19,440
https://github.com/gar1t/ChicagoML/blob/master/Makefile
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,020
ChicagoML
gar1t
Makefile
Code
15
42
build: bundle exec jekyll build serve: bundle exec jekyll serve clean: rm -rf _site .sass-cache
23,003
https://github.com/z88dk/z88dk/blob/master/libsrc/target/cpc/cpcrslib/cpc_rsx.asm
Github Open Source
Open Source
ClArtistic
2,023
z88dk
z88dk
Assembly
Code
253
743
; ; Amstrad CPC library ; Call a RSX/Bar command ; ; int cpc_rsx(char *cmd, ...) ; ; It accepts the command name (it will be adapted "on the fly"), ; and a list of pointers to variables. ; ; $Id: cpc_rsx.asm,v 1.5 2017-01-02 19:59:39 aralbrec Exp $ ; SECTION code_clib ...
1,004
https://github.com/Sashakoleso/zero-sahsa/blob/master/src/sass/styles.scss
Github Open Source
Open Source
MIT
null
zero-sahsa
Sashakoleso
SCSS
Code
23
120
/* Import partials below */ @import './normalize.scss'; @import './helpers/fonts.scss'; @import './helpers/variables.scss'; @import './components/header.scss'; @import './components/section_1.scss'; @import './components/section_2.scss'; @import './components/section_3.scss'; @import './components/section_4.scss'; @...
2,953
https://github.com/kimihan/soma/blob/master/application/controllers/app_gerencial/geral.php
Github Open Source
Open Source
MIT
null
soma
kimihan
PHP
Code
76
270
<?php require_once(APPPATH.'libraries/MY_Controller.php'); class Geral extends MY_Controller { /** * Método construtor da classe * * @access public */ function __construct() { parent::__construct(); } function consulta_cep($cep) { //criando o recurso cURL ...
6,479
https://github.com/chinayou25/Ray/blob/master/Ray.Core/Message/MessageTypeMapper.cs
Github Open Source
Open Source
Apache-2.0
2,018
Ray
chinayou25
C#
Code
84
287
using System; using System.Collections.Generic; using System.Linq; namespace Ray.Core.Message { public static class MessageTypeMapper { static MessageTypeMapper() { var assemblyList = AppDomain.CurrentDomain.GetAssemblies().Where(a => !a.IsDynamic); var eventType = type...
34,374
https://github.com/muxanick/scala-native-java-stubs/blob/master/javax/swing/text/JTextComponent.scala
Github Open Source
Open Source
MIT
null
scala-native-java-stubs
muxanick
Scala
Code
3,913
7,486
package javax.swing.text import java.awt.{Color, Component, Component.AccessibleAWTComponent, ComponentOrientation, Container, Container.AccessibleAWTContainer, Dimension, Insets, Point, Rectangle} import java.awt.event.{InputMethodEvent, InputMethodListener, MouseEvent} import java.awt.im.InputMethodRequests import j...
47,174
https://github.com/liupeng110/letv/blob/master/src/main/java/com/letv/core/bean/HomeBlock.java
Github Open Source
Open Source
Apache-2.0
2,017
letv
liupeng110
Java
Code
300
981
package com.letv.core.bean; import android.util.Log; import com.letv.core.bean.channel.ChannelNavigation; import com.letv.core.bean.channel.RedField; import com.letv.core.utils.BaseTypeUtils; import com.letv.datastatistics.util.DataConstant.StaticticsVersion2Constatnt.StaticticsName; import java.util.ArrayList; publi...
8,767
https://github.com/zwcloud/ZWCloud.DwriteCairo/blob/master/DwriteCairo/DirectWriteCairoTextRenderer/DirectWriteCairoTextRenderer.cs
Github Open Source
Open Source
Apache-2.0
null
ZWCloud.DwriteCairo
zwcloud
C#
Code
129
564
using System; using System.Diagnostics; using System.Runtime.InteropServices; namespace ZWCloud.DWriteCairo { [ComImport] [Guid("ef8a8135-5cc6-45fe-8825-c5a0724eb819")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] internal interface IDWriteTextRenderer { } internal class DirectWriteCairo...
28,135
https://github.com/farzadz/addressbook/blob/master/src/main/java/com/farzadz/addressbook/config/SwaggerUIConfig.java
Github Open Source
Open Source
MIT
null
addressbook
farzadz
Java
Code
26
128
package com.farzadz.addressbook.config; import static com.farzadz.addressbook.config.RestEndpointConfig.SWAGGER_BASE_PATH; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class SwaggerUIConfig { @RequestMapping(value = {SWAGGER_BA...
19,348
https://github.com/fe6/icon/blob/master/packages/vue/src/icons/byted-headwear.tsx
Github Open Source
Open Source
MIT
2,022
icon
fe6
TSX
Code
89
415
/** @format */ import { ISvgIconProps, IconWrapper } from '../runtime'; export const BytedHeadwear = IconWrapper( 'byted-headwear', false, (props: ISvgIconProps) => ( <svg width={props.size} height={props.size} viewBox="0 0 48 48" fill="none"> <path d="M12.4167 43C10.095 40.0682 8 35.7788 8 31...
6,610
https://github.com/JLY2015/obkv-table-client-java/blob/master/src/test/java/com/alipay/oceanbase/rpc/protocol/payload/impl/column/ObGeneratedColumnTest.java
Github Open Source
Open Source
MulanPSL-1.0
2,022
obkv-table-client-java
JLY2015
Java
Code
183
601
/*- * #%L * OBKV Table Client Framework * %% * Copyright (C) 2021 OceanBase * %% * OBKV Table Client Framework is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * http://license.coscl.org.c...
32,279
https://github.com/lokesh-coder/lesyjs/blob/master/packages/misc/pilot-ui/src/app/modules/query/pipes/name-pipe.ts
Github Open Source
Open Source
MIT
2,021
lesyjs
lokesh-coder
TypeScript
Code
38
117
import { Pipe, PipeTransform } from "@angular/core"; @Pipe({ name: "title" }) export class TitlePipe implements PipeTransform { transform(text: string): string { const result = text .replace(/([A-Z])/g, " $1") .replace(/-/g, " ") .toLowerCase(); return result.charAt(0).toUpperCase() + resul...
10,581
https://github.com/azerodeveloper/AzeroMobile/blob/master/app/build.gradle
Github Open Source
Open Source
Apache-2.0
2,021
AzeroMobile
azerodeveloper
Gradle
Code
296
2,160
apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' apply from: 'version.gradle' android { compileSdkVersion 28 defaultConfig { applicationId appinfo.appId minSdkVersion 21 targetSdkVersion 28 ...
6,410
https://github.com/plummera/CodeIgnite-Form/blob/master/application/views/templates/header.php
Github Open Source
Open Source
MIT
null
CodeIgnite-Form
plummera
PHP
Code
90
594
<html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="CodeIgniter GtechNY PHP"> <meta name="author" content="Anthony T. Plummer"> <link rel="icon" href="....
43,843
https://github.com/AhsanulQalbi/product-url-generator/blob/master/server/validation/admin-cms/role.validation.js
Github Open Source
Open Source
Apache-2.0
2,021
product-url-generator
AhsanulQalbi
JavaScript
Code
155
524
import db from '../../../config/sequelize'; const { Role } = db; const { check } = require('express-validator'); const Sequelize = require('sequelize'); const validate = (method) => { switch (method) { case 'create': { return [ check('name').not().isEmpty() .withMessage((va...
22,798
https://github.com/elasticio/dun-and-bradstreet-component/blob/master/src/main/generated-java/com/dnb/services/firmorgaphics/Assessment.java
Github Open Source
Open Source
Apache-2.0
null
dun-and-bradstreet-component
elasticio
Java
Code
513
1,695
package com.dnb.services.firmorgaphics; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for Assessment comp...
37,300
https://github.com/rainforestapp/rturk/blob/master/spec/operations/assign_qualification_spec.rb
Github Open Source
Open Source
MIT
2,015
rturk
rainforestapp
Ruby
Code
81
364
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper')) describe RTurk::AssignQualification do before(:all) do aws = YAML.load(File.open(File.join(SPEC_ROOT, 'mturk.yml'))) RTurk.setup(aws['AWSAccessKeyId'], aws['AWSAccessKey'], :sandbox => true) faker('assign_qualification', :op...
50,879
https://github.com/jstanly047/sltbkiosks/blob/master/sltbkiosksadminapp/src/main/java/com/kiosks/sltbkiosksadmin/sltbkiosksadminapp/SLTBAdminDetailsService.java
Github Open Source
Open Source
Apache-2.0
null
sltbkiosks
jstanly047
Java
Code
98
585
package com.kiosks.sltbkiosksadmin.sltbkiosksadminapp; import com.sltb.kioskslib.library.model.Admin; import com.kiosks.sltbkiosksadmin.sltbkiosksadminapp.repo.AccountRepo; import com.kiosks.sltbkiosksadmin.sltbkiosksadminapp.repo.AdminRepo; import com.kiosks.sltbkiosksadmin.sltbkiosksadminapp.repo.PassengerRepo; impo...
9,445
https://github.com/GamendeMier/BrawlCrate/blob/master/docs/search/enumvalues_10.js
Github Open Source
Open Source
MIT
null
BrawlCrate
GamendeMier
JavaScript
Code
7
300
var searchData= [ ['quad_32411',['Quad',['../class_brawl_lib_1_1_platform_1_1_win32_1_1_direct_sound.html#a935c291df2accbd8f61a30349a1eaa6dae9017664588010860a92ceb5f8fcb824',1,'BrawlLib::Platform::Win32::DirectSound']]], ['quads_32412',['Quads',['../namespace_brawl_lib_1_1_wii_1_1_models.html#ab175ebe1c9a8c2871641e...
31,910
https://github.com/sGooze/br-engine-gl/blob/master/src/brd_texture_list.cpp
Github Open Source
Open Source
MIT
2,016
br-engine-gl
sGooze
C++
Code
80
237
#include "inc/brd_texture.h" BRD_TextureList::find_leaf(const char* path){ if (!strcmp(path, tex_path)) return this; // Check if searched path is leftmost or rightmost in relation to tex_path if (left != NULL) return left->find_leaf(path); if (right != NULL) return right->find_l...
29,691
https://github.com/sunqm/pyscf/blob/master/pyscf/pbc/grad/test/test_kuhf.py
Github Open Source
Open Source
Apache-2.0
2,023
pyscf
sunqm
Python
Code
228
785
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
26,661
https://github.com/ertan2002/CMS/blob/master/Kooboo.CMS/Kooboo.CMS.Sites/Globalization/SiteLabel.cs
Github Open Source
Open Source
BSD-3-Clause
2,019
CMS
ertan2002
C#
Code
464
1,456
#region License // // Copyright (c) 2013, Kooboo team // // Licensed under the BSD License // See the file LICENSE.txt for details. // #endregion using System; using System.Linq; using System.Collections.Generic; using Kooboo.CMS.Sites.Models; using Kooboo.CMS.Sites.View; using Kooboo.Globalization; using Kooboo.CM...
30,818
https://github.com/mattiasliljenzin/load-testing-simulator/blob/master/test/simulation.tests/Interceptors/ChangeHostInterceptorTest.cs
Github Open Source
Open Source
MIT
2,017
load-testing-simulator
mattiasliljenzin
C#
Code
66
264
using System; using System.Collections.Generic; using System.Net.Http; using System.Reflection; using System.Threading.Tasks; using Microsoft.Extensions.Configuration; using NSubstitute; using RequestSimulation.Executing.Interceptors; using Shouldly; using Xunit; namespace simulation.tests.Interceptors { public cl...
5,152
https://github.com/mido008/Sparmaxi/blob/master/modules/mod_sj_vm_categories/tmpl/default_theme4.php
Github Open Source
Open Source
BSD-3-Clause
null
Sparmaxi
mido008
PHP
Code
351
1,394
<?php /** * @package SJ Categories for VirtueMart * @version 2.2.0 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL * @copyright (c) 2014 YouTech Company. All Rights Reserved. * @author YouTech Company http://www.smartaddons.com * */ defined('_JEXEC') or die; $big_image_config = array( 'type' => ...
39,013
https://github.com/CarlosSchneiderZup/orange-talents-09-template-ecommerce/blob/master/Mercado-Livre/src/main/java/br/com/zupproject/Mercado/Livre/actuator/HealthCheck.java
Github Open Source
Open Source
Apache-2.0
null
orange-talents-09-template-ecommerce
CarlosSchneiderZup
Java
Code
48
210
package br.com.zupproject.Mercado.Livre.actuator; import java.util.HashMap; import java.util.Map; import org.springframework.boot.actuate.health.Health; import org.springframework.boot.actuate.health.HealthIndicator; import org.springframework.stereotype.Component; import static org.springframework.boot.actuate.heal...
6,900
https://github.com/collenirwin/Codewars-Solutions/blob/master/Solutions/TypeScript/Regexp Basics - is it a digit(8 kyu).ts
Github Open Source
Open Source
MIT
null
Codewars-Solutions
collenirwin
TypeScript
Code
8
25
String.prototype.digit = function(): boolean { return /^\d$/.test(this); };
30,683
https://github.com/NLeSC/Platinum/blob/master/ptk-vbrowser-vrs/src/main/java/nl/esciencecenter/vbrowser/vrs/event/VRSEvent.java
Github Open Source
Open Source
Apache-2.0
null
Platinum
NLeSC
Java
Code
534
1,435
/* * Copyright 2012-2014 Netherlands eScience Center. * * 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 the following location: * * http://www.apache.org/licenses/LICENSE-2.0 * * U...
32,020
https://github.com/rubycouzcedric/afpa/blob/master/view/ajax/model/regions.php
Github Open Source
Open Source
MIT
null
afpa
rubycouzcedric
PHP
Code
82
232
<?php /** * Description of regions * * @author ced27 */ class regions extends connectionRegion { public $reg_id = ''; public $reg_v_nom = ''; public $reg_nb_dep = ''; /** * Construction de la connexion à la BDD */ public function __construct() { parent::__construct(); ...
13,748
https://github.com/p2svn9x/gem_tool/blob/master/ToolAdmin/application/controllers/admin/Confignew.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,019
gem_tool
p2svn9x
PHP
Code
302
1,240
<?php Class Confignew extends MY_Controller { function __construct() { parent::__construct(); // $this->load->model('gameconfig_model'); $this->load->model('logadmin_model'); } function index() { $this->data['temp'] = 'admin/config/index'; $this->load->view...
26,314
https://github.com/russelljjarvis/pub-illing2019-nnetworks/blob/master/scripts/LIF_integrator_benchmarks/comparison_balancednet.jl
Github Open Source
Open Source
MIT
2,021
pub-illing2019-nnetworks
russelljjarvis
Julia
Code
367
1,770
dt = .01 t_end = 1e3 # ms in_current = 2. ns_of_neurons = 10 .^ [1,2,3,4] V_REST = -65. # * b2.mV V_RESET = -65. # * b2.mV FIRING_THRESHOLD = -50. # * b2.mV MEMBRANE_RESISTANCE = 10. # * b2.Mohm MEMBRANE_TIME_SCALE = 10. # * b2.ms ABSOLUTE_REFRACTORY_PERIOD = 0. # * b2.ms ############################################...
21,240
https://github.com/Gravios/MTA/blob/master/MTAFeature.m
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
MTA
Gravios
MATLAB
Code
140
360
classdef MTAFeature %MTAFeature(lable,expression,ifsave) - container for behavioral state information % %key - string: keyboard character associated with state % %label - string: name describing state (e.g. 'rear' or 'walk') % %expression - string: matlab expression defining the feature; % %ifsave - logical: save featu...
3,122
https://github.com/Sebastp/inspook/blob/master/client/src/graphql/get-collections.js
Github Open Source
Open Source
MIT
null
inspook
Sebastp
JavaScript
Code
30
87
import gql from 'graphql-tag' export const getCollections = gql` query getCollections($pageSize: Int, $page: Int) { getCollections(pageSize: $pageSize, page: $page) { uid title desc cover color tags booksCount } } `
14,660
https://github.com/omar-adel/Android-Kotlin-MVI-CleanArchitecture/blob/master/app/src/main/java/com/mi/mvi/koin/AuthModule.kt
Github Open Source
Open Source
MIT
2,020
Android-Kotlin-MVI-CleanArchitecture
omar-adel
Kotlin
Code
106
576
package com.mi.mvi.koin import com.mi.mvi.cache.source.AccountCacheDataSourceImpl import com.mi.mvi.cache.source.AuthCacheDataSourceImpl import com.mi.mvi.data.datasource.cache.AccountCacheDataSource import com.mi.mvi.data.datasource.cache.AuthCacheDataSource import com.mi.mvi.data.datasource.remote.AuthRemoteDataSour...
1,525
https://github.com/atree-GitHub/competitive-library/blob/master/lib/utility/neighbor.hpp
Github Open Source
Open Source
CC0-1.0
2,022
competitive-library
atree-GitHub
C++
Code
97
238
#pragma once #include <cassert> #include <utility> #include <vector> template<class F> std::vector<std::pair<std::size_t, std::size_t>> neighbor(size_t x, size_t y, int dir, const F& ok) { using namespace std; assert(dir == 4 or dir == 8); const int dx[8] = { 0, 0, -1, 1, -1, -1, 1, 1 }; const int dy[...
12,734
https://github.com/feralresearch/dscore/blob/master/DSSyphon/DSSyphonSource.m
Github Open Source
Open Source
MIT
2,016
dscore
feralresearch
Objective-C
Code
101
423
// // DSSyphonSource.m // Confess // // Created by Andrew on 11/21/15. // Copyright © 2015 Digital Scenographic. All rights reserved. // #import <Foundation/Foundation.h> #import "DSSyphonSource.h" #import <Syphon/Syphon.h> @implementation DSSyphonSource - (id)init{ if (self = [super init]){ name=@""...
22,812
https://github.com/ganqiyin/xms/blob/master/Libraries/Dependency/Xms.Dependency/IDependencyBatchBuilder.cs
Github Open Source
Open Source
MIT
2,021
xms
ganqiyin
C#
Code
35
107
using System; namespace Xms.Dependency { public interface IDependencyBatchBuilder { DependencyBatchBuilder Append(int dependentComponentType, Guid dependentObjectId, int requiredComponentType, params Guid[] requiredObjectId); DependencyBatchBuilder Append(string dependentComponentName, Guid d...
613
https://github.com/BBVA/hancock-dlt-adapter/blob/master/src/domain/ethereum/smartContract/__tests__/common.spec.ts
Github Open Source
Open Source
Apache-2.0
2,019
hancock-dlt-adapter
BBVA
TypeScript
Code
744
3,000
import 'jest'; import * as request from 'request-promise-native'; import * as db from '../../../../db/ethereum'; import { hancockDbError, hancockDefaultError } from '../../../../models/error'; import { ContractAbi, IEthereumContractDbModel, IEthereumSmartContractInvokeModel, IEthereumSmartContractRawTxResponse...
12,084
https://github.com/gustavkarlsson/krate/blob/master/samples/android/src/main/java/se/gustavkarlsson/krate/samples/android/gui/fragments/editnote/EditNoteViewModel.kt
Github Open Source
Open Source
MIT
2,021
krate
gustavkarlsson
Kotlin
Code
37
226
package se.gustavkarlsson.krate.samples.android.gui.fragments.editnote import se.gustavkarlsson.krate.samples.android.krate.NoteStore import se.gustavkarlsson.krate.samples.android.krate.SetEditingNoteContent import se.gustavkarlsson.krate.samples.android.krate.SetEditingNoteTitle class EditNoteViewModel(private val ...
1,735
https://github.com/GordonLesti/SlidingWindowFilter-evaluator/blob/master/src/main/java/swf/operator/Add.java
Github Open Source
Open Source
MIT
2,021
SlidingWindowFilter-evaluator
GordonLesti
Java
Code
13
33
package swf.operator; public interface Add<T> { public T add(T obj1, T obj2); }
48,460
https://github.com/OnePlc/oneplace-xi-core/blob/master/module/Lottery/src/V1/Rpc/Tickets/TicketsControllerFactory.php
Github Open Source
Open Source
BSD-3-Clause
null
oneplace-xi-core
OnePlc
PHP
Code
15
64
<?php namespace Lottery\V1\Rpc\Tickets; class TicketsControllerFactory { public function __invoke($controllers) { return new TicketsController($controllers->get('faucetdev')); } }
32,344
https://github.com/RobinLaw-manman/annoying-algorithm/blob/master/src/main/java/study/piepie/algorithm/sort/QuickSort.java
Github Open Source
Open Source
Apache-2.0
null
annoying-algorithm
RobinLaw-manman
Java
Code
301
1,041
package study.piepie.algorithm.sort; /** * @author Robin * @date 2021-05-09 14:52 **/ public class QuickSort { // 指针j从右到左扫描比pivot小的 // 指针i从左到右扫描比pivot大的 // 交换两个人位置 // 这样保证了[j,right]的一定大于pivot // [left,i]的一定小于pivot // 所以结束循环一定是要么j左移超过了i, 要么是i右移超过了j // 无论是哪种情况j一定停留在一个小于pivot的数字上 ...
34,692
https://github.com/naroate/MyFragmentRepo/blob/master/ZMiLaucher_withAnimationEffects/src/com/ljp/laucher/additem/AddItemAdapter.java
Github Open Source
Open Source
Apache-2.0
2,017
MyFragmentRepo
naroate
Java
Code
219
869
package com.ljp.laucher.additem; import java.util.List; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.ListView; import android.widget.TextView; impo...
3,880
https://github.com/gabrielmtzcarrillo/MySteelportEmulator/blob/master/SaintsRowAPI/Models/Channel.cs
Github Open Source
Open Source
MIT
2,022
MySteelportEmulator
gabrielmtzcarrillo
C#
Code
91
217
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SaintsRowAPI.Models { public class Channel { public int ID { get; set; } public Game Game { get; set; } public ChannelOwner Owner { get; set; } public s...
48,153
https://github.com/oddek/8-bit-Computer/blob/master/src/computer/Computer8Bit.srcs/sources_1/new/HexToSseg.vhd
Github Open Source
Open Source
MIT
2,022
8-bit-Computer
oddek
VHDL
Code
210
530
library IEEE; use IEEE.STD_LOGIC_1164.ALL; entity HexToSseg is Port ( hex : in STD_LOGIC_VECTOR (3 downto 0); seg : out STD_LOGIC_VECTOR (7 downto 0)); end HexToSseg; architecture Behavioral of HexToSseg is begin seg(7) <= '1'; process(hex) begin case hex is when...
24,915
https://github.com/nonbeyond/code-401-whiteboard-challenges/blob/master/whiteboard-challenge-07/__test__/solution.test.js
Github Open Source
Open Source
MIT
2,018
code-401-whiteboard-challenges
nonbeyond
JavaScript
Code
124
317
'use strict'; const str8 = {value: 42, next:{ value: 9000, next: {value: 13, next: null}}}; const cir = {value: 42, next: {value: 9000, next: {value: 13, next: null}}}; const solution = require('../lib/solution.js'); describe('checkLink Tests',() => { describe('Object Error', () => { test('should return erro...
35,415
https://github.com/OctoAwesome/octoawesome/blob/master/OctoAwesome/OctoAwesome.Basics/SimulationComponents/ComponentContainerInteractionComponent.cs
Github Open Source
Open Source
MIT
2,023
octoawesome
OctoAwesome
C#
Code
149
420
using engenious; using OctoAwesome.Components; using OctoAwesome.EntityComponents; using OctoAwesome.Services; namespace OctoAwesome.Basics.SimulationComponents { /// <summary> /// Component for simulation with block interactions with entities. /// </summary> public class ComponentContainerInteractio...
40,375
https://github.com/bitflight-devops/github-action-jira-issues-fixversion-manager/blob/master/src/Jira.ts
Github Open Source
Open Source
MIT
null
github-action-jira-issues-fixversion-manager
bitflight-devops
TypeScript
Code
593
1,967
import * as core from '@actions/core' import {Version2Client} from 'jira.js' import {IssueBean, PageBeanVersion} from 'jira.js/out/version2/models' import { CreateVersion, EditIssue, GetEditIssueMeta, GetIssue, GetProject, GetProjectVersionsPaginated } from 'jira.js/out/version2/parameters' import {FixVers...
11,459
https://github.com/CodaFi/swift-compiler-crashes/blob/master/unique-crash-locations/swift_sildeserializer_getbbfordefinition_swift_silfunction_unsigned_int_287.swift
Github Open Source
Open Source
MIT
2,015
swift-compiler-crashes
CodaFi
Swift
Code
1
25
../crashes-duplicates/22559-swift-modulefile-loadallconformances.swift
44,353
https://github.com/kkarczewski/strona_o_domowym_winie/blob/master/app/js/myscripts.js
Github Open Source
Open Source
MIT
null
strona_o_domowym_winie
kkarczewski
JavaScript
Code
37
134
var update = function () { var date = moment(new Date()); datetime.html(date.format('DD.MM.YYYY, HH:mm:ss')); }; $(document).ready(function(){ datetime = $('#datetime') update(); setInterval(update, 1000); }); //var log = new Log(Log.DEBUG, Log.consoleLogger); var log = Log4js.getLogger('MyLogger'); log.set...
36,812
https://github.com/CMSgov/managed-care-review/blob/master/services/app-web/src/routeHelpers/index.ts
Github Open Source
Open Source
CC0-1.0
null
managed-care-review
CMSgov
TypeScript
Code
18
44
export { getRelativePath } from './getRelativePath' export { getRouteName } from './getRouteName' export { isWildcardPath } from './isWildcardPath'
28,515
https://github.com/CaelestisZ/HeraQ/blob/master/scripts/replace_dir.sh
Github Open Source
Open Source
MIT
null
HeraQ
CaelestisZ
Shell
Code
63
172
#!/bin/sh # Support selinux version # replace_directory dst src DST="$1/$2" SRC="$1/$3" if [ "x${DST}" == "x${SRC}" ] then #echo "${DST} and ${SRC} is same" exit 0 else if [ -d ${SRC} ] then if [ -L ${DST} ] || [ -d ${DST} ] then rm -rf ${DST} fi ln -s $(basename ${SRC}) ${DST} else ...
41,954
https://github.com/rbieniek/BGP4J/blob/master/lib/netty-bgp4/src/main/java/org/bgp4j/netty/fsm/InternalFSMChannelManager.java
Github Open Source
Open Source
Apache-2.0, MIT
2,015
BGP4J
rbieniek
Java
Code
372
1,228
/** * Copyright 2012 Rainer Bieniek (Rainer.Bieniek@web.de) * * 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 requir...
41,103
https://github.com/simon-ritchie/pconst/blob/master/build/lib/pconst/__init__.py
Github Open Source
Open Source
MIT
2,022
pconst
simon-ritchie
Python
Code
10
23
# coding: UTF-8 from pconst.const import Const const = Const()
45,038
https://github.com/kalekundert/ligrna/blob/master/analysis/tests/01_test_sequence.py
Github Open Source
Open Source
MIT
2,020
ligrna
kalekundert
Python
Code
753
2,626
#!/usr/bin/env python import pytest from sgrna_sensor import * def test_domain_class(): domain = Domain('Alice', 'ACTG') assert domain.name == 'Alice' assert domain.seq == 'ACTG' assert domain.dna == 'ACTG' assert domain.rna == 'ACUG' assert domain.indices == range(4) assert domain.mass('...
29,528
https://github.com/luanx/stat/blob/master/stat-web/src/main/java/com/wantdo/stat/web/account/ProfileController.java
Github Open Source
Open Source
Apache-2.0
null
stat
luanx
Java
Code
180
822
package com.wantdo.stat.web.account; import com.wantdo.stat.entity.account.User; import com.wantdo.stat.service.account.ShiroDbRealm.ShiroUser; import com.wantdo.stat.service.account.UserService; import org.apache.shiro.SecurityUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springfram...
45,644
https://github.com/tewtal/alttp_sm_combo_randomizer_rom/blob/master/src/sm/randomizer/seed_display.asm
Github Open Source
Open Source
MIT
2,023
alttp_sm_combo_randomizer_rom
tewtal
Assembly
Code
379
1,521
org $c2ecbb base $82ecbb jsr seed_display org $c2f800 base $82f800 seed_display: pha phx php rep #$30 lda.l $420000 and #$003f asl asl asl tay ldx #$0000 - lda WordTable, y and #$00ff asl phx tax lda CharTable, x plx sta $7fc052, x inx inx...
48,566
https://github.com/IMRZ/tw-db/blob/master/dist/generated/threekingdoms/collections/EffectBonusValueUnitAttributeJunctions.d.ts
Github Open Source
Open Source
MIT
2,021
tw-db
IMRZ
TypeScript
Code
72
193
import { CollectionCache, CollectionKey } from "../../../common"; import { Effects } from "./Effects"; import { CampaignBonusValueIdsUnitAttributes } from "./CampaignBonusValueIdsUnitAttributes"; import { UnitAttributes } from "./UnitAttributes"; export declare namespace EffectBonusValueUnitAttributeJunctions { con...
35,754
https://github.com/ananasGit/materialui-daterange-picker/blob/master/.eslintrc.js
Github Open Source
Open Source
MIT
null
materialui-daterange-picker
ananasGit
JavaScript
Code
74
405
module.exports = { root: true, parser: "@typescript-eslint/parser", parserOptions: { tsconfigRootDir: __dirname, project: ["./tsconfig.json"], }, plugins: ["@typescript-eslint", "react", "simple-import-sort"], extends: [ "eslint:recommended", "plugin:import/errors", "plugin:import/warni...
36,278
https://github.com/p-org/PSharp/blob/master/Tests/TestingServices.Tests/Machines/Transitions/GotoStateMultipleInActionFailTest.cs
Github Open Source
Open Source
MIT
2,022
PSharp
p-org
C#
Code
333
1,081
// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // --------------------------------------------------------...
49,702
https://github.com/svetlyak40wt/cl-pgpass/blob/master/pgpass.asd
Github Open Source
Open Source
BSD-3-Clause
2,016
cl-pgpass
svetlyak40wt
Common Lisp
Code
89
363
#| This file is a part of pgpass project. Copyright (c) 2016 Alexander Artemenko (svetlyak.40wt@gmail.com) |# #| Author: Alexander Artemenko (svetlyak.40wt@gmail.com) |# (in-package :cl-user) (defpackage pgpass-asd (:use :cl :asdf)) (in-package :pgpass-asd) (defsystem pgpass :version "0.4.0" :author "Al...
9,291
https://github.com/zhouxiexuan/pDeep3/blob/master/pDeep/tf_ops.py
Github Open Source
Open Source
Apache-2.0
2,021
pDeep3
zhouxiexuan
Python
Code
315
1,106
import numpy as np import tensorflow as tf def count_parameters(): total_parameters = 0 for variable in tf.trainable_variables(): # shape is an array of tf.Dimension shape = variable.get_shape() print(variable.name) print(shape) # print(len(shape)) variable_param...
31,198
https://github.com/link4rkv/e-commerce-frontend-framework/blob/master/node_modules/reakit/ts/use.d.ts
Github Open Source
Open Source
MIT
2,019
e-commerce-frontend-framework
link4rkv
TypeScript
Code
7
14
import use from "reuse"; export default use;
21,436
https://github.com/ScalablyTyped/Distribution/blob/master/e/ecmarkup/src/main/scala/typings/ecmarkup/libFormatterHeaderMod.scala
Github Open Source
Open Source
MIT
2,023
Distribution
ScalablyTyped
Scala
Code
61
321
package typings.ecmarkup import typings.ecmarkup.anon.`5` import typings.ecmarkup.libFormatterLineBuilderMod.LineBuilder import typings.ecmarkup.libHeaderParserMod.ParsedHeaderOrFailure import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImpo...
26,388
https://github.com/preachermanx/sensu-client-go/blob/master/vendor/github.com/upfluence/sensu-go/sensu/transport/rabbitmq/rabbitmq.go
Github Open Source
Open Source
MIT
2,021
sensu-client-go
preachermanx
Go
Code
868
2,771
package rabbitmq import ( "errors" "fmt" "math/rand" "strconv" "time" "github.com/streadway/amqp" "github.com/upfluence/goutils/log" ) // AMQPChannel is an interface over amqp.Channel type AMQPChannel interface { Consume(string, string, bool, bool, bool, bool, amqp.Table) (<-chan amqp.Delivery, error) Excha...
48,037
https://github.com/KishkinJ10/graphicsfuzz/blob/master/generator/src/test/java/com/graphicsfuzz/generator/semanticschanging/Expr2ArgMutationFinderTest.java
Github Open Source
Open Source
Apache-2.0
2,022
graphicsfuzz
KishkinJ10
Java
Code
206
498
/* * Copyright 2019 The GraphicsFuzz Project Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
28,512
https://github.com/TeamSPoon/CYC_JRTL_with_CommonLisp_OLD/blob/master/platform/main/KBAPI-1.0.0-Preview-SNAPSHOT-src/com/cyc/kb/Sentence.java
Github Open Source
Open Source
Apache-2.0
2,020
CYC_JRTL_with_CommonLisp_OLD
TeamSPoon
Java
Code
66
170
package com.cyc.kb; import java.util.List; import com.cyc.kb.exception.KBApiException; public interface Sentence extends KBObject { /** * NOT PART OF KB API 1.0 */ public Assertion assertIn(Context ctx) throws KBApiException; /** * NOT PART OF KB API 1.0 */ public List<Object> getArguments(); ...
627
https://github.com/Chemchu/ERPBack/blob/master/src/apollo/schema/tpv/tpvResolver.js
Github Open Source
Open Source
MIT
null
ERPBack
Chemchu
JavaScript
Code
724
2,286
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
14,919
https://github.com/suyanhanx/hpr/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,018
hpr
suyanhanx
Ignore List
Code
10
55
/doc/ /lib/ /bin/ /deps/ /.shards/ /logs/ /repositories/ /config/hpr*.json docker-compose.dev.yml hpr
14,018
https://github.com/apache/cassandra/blob/master/src/java/org/apache/cassandra/auth/PasswordAuthenticator.java
Github Open Source
Open Source
Apache-2.0, MIT, CC0-1.0, BSD-3-Clause, LicenseRef-scancode-public-domain
2,023
cassandra
apache
Java
Code
1,295
3,421
/* * 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 ...
191
https://github.com/GoncaloBMN/Insuchain-Front-End/blob/master/src/app/pages/peer-info/peer-info.component.ts
Github Open Source
Open Source
MIT
null
Insuchain-Front-End
GoncaloBMN
TypeScript
Code
113
392
import { Component, OnInit, OnDestroy } from '@angular/core'; import { BlockchainService } from 'src/app/services/blockchain.service'; import { ActivatedRoute } from '@angular/router' @Component({ selector: 'app-peer-info', templateUrl: './peer-info.component.html', styleUrls: ['./peer-info.component.scss'] }) e...
21,195
https://github.com/tkw1536/UVoteJ/blob/master/src/Frontend/Run/http/routes.js
Github Open Source
Open Source
MIT
2,015
UVoteJ
tkw1536
JavaScript
Code
251
1,019
var bodyParser = require('body-parser') express = require("express"); module.exports = function(state, logger, next){ //support the post forms state.app.use(bodyParser.json()); state.app.use(bodyParser.urlencoded({extended: false })); // GET /lib state.app.use("/lib/client/protocol.js", f...
39,892
https://github.com/EIDSS/EIDSS-Legacy/blob/master/EIDSS v6/eidss.model/Schema/VetCase.model.cs
Github Open Source
Open Source
BSD-2-Clause
2,017
EIDSS-Legacy
EIDSS
C#
Code
19,886
84,640
#pragma warning disable 0472 using System; using System.Text; using System.IO; using System.Collections; using System.ComponentModel; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Xml.Serialization; using BLToolkit.Aspects; using BLToolkit.DataAccess; using BLT...
13,028
https://github.com/mmather11/ModTek/blob/master/ModTek/ModTek.cs
Github Open Source
Open Source
Unlicense, LicenseRef-scancode-public-domain
2,018
ModTek
mmather11
C#
Code
1,466
4,888
using BattleTech; using BattleTechModLoader; using Harmony; using JetBrains.Annotations; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text.RegularExpressions; using BattleTech.Data; using Unit...
2,884
https://github.com/rajeshyogeshwar/exchange_calendars/blob/master/tests/test_xbse_calendar.py
Github Open Source
Open Source
Apache-2.0
null
exchange_calendars
rajeshyogeshwar
Python
Code
327
1,033
import pytest from exchange_calendars.exchange_calendar_xbse import XBSEExchangeCalendar from .test_exchange_calendar import ExchangeCalendarTestBaseNew class TestXBSECalendar(ExchangeCalendarTestBaseNew): @pytest.fixture(scope="class") def calendar_cls(self): yield XBSEExchangeCalendar @pytest....
7,315
https://github.com/rcanasv/astrolibc/blob/master/src/structure.h
Github Open Source
Open Source
MIT
null
astrolibc
rcanasv
C
Code
237
681
/* * \file structure.h * \brief header file containing stuff related to structures in simulations * e.g. Haloes, Subhaloes, Galaxies, Streams, etc ... * */ #ifndef STRUCTURE_H #define STRUCTURE_H #include "base.h" #include "particle.h" #include "typedef.h" #include "format.h" #include "stf.h" void Struc...
30,717
https://github.com/gugang/element/blob/master/packages/tabs/src/tabs.vue
Github Open Source
Open Source
MIT
null
element
gugang
Vue
Code
274
998
<script> import ElTab from './tab'; module.exports = { name: 'el-tabs', components: { ElTab }, props: { type: String, tabPosition: String, activeName: String, closable: false, tabWidth: 0 }, data() { return { tabs: [], children: n...
28,854
https://github.com/jeremiedecock/pyai/blob/master/ailib/optimize/minimizers/saes.py
Github Open Source
Open Source
MIT
2,019
pyai
jeremiedecock
Python
Code
845
2,376
# -*- coding: utf-8 -*- # Copyright (c) 2013,2014,2015,2016,2017 Jeremie DECOCK (http://www.jdhp.org) # 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 ...
27,400
https://github.com/aqiu95/cellsociety/blob/master/src/UI/GraphManager.java
Github Open Source
Open Source
MIT
null
cellsociety
aqiu95
Java
Code
165
624
package UI; import javafx.scene.Scene; import javafx.scene.chart.LineChart; import javafx.scene.chart.NumberAxis; import javafx.scene.chart.XYChart; import javafx.stage.Stage; import java.util.ArrayList; /** * This class manages the graphing of the UI. * * @author Allen Qiu (asq3) */ public class GraphManager { ...
38,958
https://github.com/Gintasp/university-advisor/blob/master/Models/JSON/FacultyDataModel.cs
Github Open Source
Open Source
MIT
null
university-advisor
Gintasp
C#
Code
18
41
namespace Advisor.Models.JSON { public class FacultyDataModel : BasicModel { public int UniversityId { get; set; } } }
29,440
https://github.com/zhuyifan1996/arctic-captions/blob/master/vgg_net.py
Github Open Source
Open Source
BSD-3-Clause
2,016
arctic-captions
zhuyifan1996
Python
Code
543
1,899
# VGG-16, 16-layer model from the paper: # "Very Deep Convolutional Networks for Large-Scale Image Recognition" # Original source: https://gist.github.com/ksimonyan/211839e770f7b538e2d8 # License: see http://www.robots.ox.ac.uk/~vgg/research/very_deep/ # Download pretrained weights from: # https://s3.amazonaws.com/la...
9,237
https://github.com/cloudfoundry/bosh-agent/blob/master/platform/net/mac_address_detector.go
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,023
bosh-agent
cloudfoundry
Go
Code
388
1,223
package net import ( "encoding/json" gonet "net" "path" "strings" bosherr "github.com/cloudfoundry/bosh-utils/errors" boshsys "github.com/cloudfoundry/bosh-utils/system" ) //go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . MACAddressDetector type MACAddressDetector interface { DetectMacAddresses...
17,252
https://github.com/vashistaarav1611/Arcade/blob/master/puzzle/source/Drawer.js
Github Open Source
Open Source
MIT
2,022
Arcade
vashistaarav1611
JavaScript
Code
430
1,315
/** * Drawer Manager */ class Drawer { /** * The Drawer constructor * @param {Metrics} metrics * @param {Instance} instance */ constructor(metrics, instance) { this.instance = instance; this.list = new List(instance.getDrawerPieces()); this.element ...
2,547
https://github.com/yaroslavya/entity-space/blob/master/packages/libs/core/src/lib/criteria/criterion/set/not-in-set.fn.ts
Github Open Source
Open Source
MIT
2,021
entity-space
yaroslavya
TypeScript
Code
83
298
import { NotInNumberSetCriterion } from "./not-in-number-set-criterion"; import { NotInStringSetCriterion } from "./not-in-string-set-criterion"; function firstValueIsString(set: Iterable<unknown>): set is Iterable<string> { return typeof set[Symbol.iterator]().next().value === "string"; } function firstValueIsNu...
36,564
https://github.com/17500mph/CAP/blob/master/contrib/Timelord/timelord.h
Github Open Source
Open Source
LicenseRef-scancode-public-domain, LicenseRef-scancode-other-permissive
2,015
CAP
17500mph
C
Code
77
199
/* * timelord - UNIX Macintosh time server daemon * * 22/05/89 djh@munnari.oz * * Copyright (c) 1990, the University of Melbourne * */ /* general junk */ #define ZONE "*" /* NBP Zone */ #define MACSERVER "TimeLord" /* NBP Name */ #define TIME_OFFSET 0x7c25b080 /* Mac Time 00:00:00 GMT Jan 1, 1970 */ #defi...
23,524
https://github.com/NzBernadine/Blockly4RPA/blob/master/scripts/blocks/file_blocks.js
Github Open Source
Open Source
Apache-2.0
2,022
Blockly4RPA
NzBernadine
JavaScript
Code
155
892
Blockly.Blocks['open_file'] = { init: function() { this.appendValueInput("FILE_NAME") .setCheck("String") .appendField("open file "); this.appendDummyInput() .appendField("to") .appendField(new Blockly.FieldDropdown([["read","r"], ["write","w"], ["creation","x"], ["append","a"]...
50,968
https://github.com/devCrossNet/chaptr/blob/master/src/app/app/mutations.ts
Github Open Source
Open Source
MIT
2,020
chaptr
devCrossNet
TypeScript
Code
63
206
import { IAppState } from './state'; export interface IAppMutations { CHANGE_LOCALE(state: IAppState, locale: string): void; SET_COOKIE_CONSENT_VERSION(state: IAppState, version: string): void; CHANGE_MENU_POSITION(state: IAppState): void; } export const AppMutations: IAppMutations = { CHANGE_LOCALE: (state...
29,870
https://github.com/InternetLojas/new_ecograph/blob/master/resources/views/layouts/includes/boxes/forms/form_basket.blade.php
Github Open Source
Open Source
MIT
null
new_ecograph
InternetLojas
PHP
Code
32
150
{!! Form::open(array( 'method' => 'post', 'name'=>'basket', 'id'=>'basket', 'role' => 'Form')) !!} <div class="form-group text"> @foreach($post_inputs as $key=>$valor) <input id="{{$key}}" type="hidden" value="{{$valor}}" name="{{$key}}" class="form-control"> ...
5,366
https://github.com/rajankaneria/escapecity/blob/master/application/views/home.php
Github Open Source
Open Source
MIT
null
escapecity
rajankaneria
PHP
Code
1,303
5,556
<!--=========================== main slider ========================--> <div id="mainSlider" class="carousel carousel-slider center z-depth-1" data-indicators="true"> <!--=======================slider for North India tours=======================--> <div class="carousel-item white-text" href="<?php echo base_u...
4,810
https://github.com/xiaolong99999/supermallto/blob/master/src/components/content/mainTabbar/MainTabBar.vue
Github Open Source
Open Source
MIT
null
supermallto
xiaolong99999
Vue
Code
95
621
<template> <tab-bar> <tab-bar-item path="/home"> <template v-slot:item-icon> <img src="../assets/img/tabbar/首页.svg"> </template> <template v-slot:item-icon-active> <img src="../assets/img/tabbar/首页_active.svg"> </template> <template v-slot:item-text> <div>首页</...
35,275
https://github.com/NurbekGithub/react-boilerplate/blob/master/app/lib/MaterialTable/index.js
Github Open Source
Open Source
MIT
null
react-boilerplate
NurbekGithub
JavaScript
Code
88
248
import React, { useContext } from "react"; import MuiRemoteTable from "./MuiRemoteTable"; import { TableContext, registerTable } from "../../globalContexts/TableContext"; function MuiTable({ query = {}, remote = true, ...rest }) { const initialState = { // controlled selectedRows: [], isAllSelected: fals...
37,403
https://github.com/DennyLindberg/Plant-Generator/blob/master/source/core/utilities.cpp
Github Open Source
Open Source
MIT
2,022
Plant-Generator
DennyLindberg
C++
Code
103
341
#include "utilities.h" #include <fstream> std::string TimeString(double time) { int seconds = int(time); int minutes = seconds / 60; int hours = minutes / 60; double decimals = time - double(seconds); return std::to_string(hours) + "h " + std::to_string(minutes % 60) + "m " + std::to_string(seconds % 60) + "." +...
8,918
https://github.com/bellmit/low-code/blob/master/nodeModules/nti-formula-helper/src/packages/FormulaHelp/components/formulaPanel.vue
Github Open Source
Open Source
MIT
2,021
low-code
bellmit
Vue
Code
215
986
<template> <div class="full-panel"> <div class="full-panel_head">公式</div> <topTool @filter="handleInputFilter" /> <el-collapse accordion class="with-padding full-panel_body" style="padding: 0;"> <el-collapse-item v-for="item in list" :key="item.name" :name="item.name" >...
45,646
https://github.com/samuellundin/Agiletasks/blob/master/client/src/app/manage-projects/manage-navbar/manage-navbar.component.ts
Github Open Source
Open Source
MIT
null
Agiletasks
samuellundin
TypeScript
Code
28
103
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-manage-navbar', templateUrl: './manage-navbar.component.html', styleUrls: ['./manage-navbar.component.css'] }) export class ManageNavbarComponent implements OnInit { constructor() { } ngOnInit() { } }
1,485
https://github.com/jademperor/api-proxier/blob/master/cmd/proxier.go
Github Open Source
Open Source
MIT
2,019
api-proxier
jademperor
Go
Code
120
399
package main import ( "flag" "log" "os" "github.com/jademperor/api-proxier/internal/engine" "github.com/jademperor/api-proxier/internal/logger" "github.com/jademperor/common/pkg/utils" ) var ( addr = flag.String("addr", ":9000", "http server listen on") logpath = flag.String("logpath", "./logs", "log ...
28,812