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/coolryze/LeetCode/blob/master/Python/implement-strstr.py
Github Open Source
Open Source
MIT
2,018
LeetCode
coolryze
Python
Code
66
190
class Solution: def strStr1(self, haystack, needle): """ :type haystack: str :type needle: str :rtype: int """ hLen = len(haystack) nLen = len(needle) if nLen == 0: return 0 if hLen < nLen: return -1 fo...
34,838
https://github.com/UtkarshVerma/hugo/blob/master/hugolib/config.go
Github Open Source
Open Source
Apache-2.0
2,021
hugo
UtkarshVerma
Go
Code
1,599
4,873
// Copyright 2019 The Hugo 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 required by applicable ...
35,269
https://github.com/script-heads/StageUI/blob/master/packages/docs/src/pages/Components/Layout/Drop/stickCursor.raw.tsx
Github Open Source
Open Source
MIT
2,022
StageUI
script-heads
TypeScript
Code
31
77
import { Block, Drop } from '@stage-ui/core' import React from 'react' export default () => { return ( <Drop stickCursor> <Block decoration="minorShadow" children="Let me go!" p=".5rem 1rem" /> </Drop> ) }
25,628
https://github.com/novuso/NovusoCommonBundle/blob/master/src/Http/Resolver/ResponderResolver.php
Github Open Source
Open Source
MIT
null
NovusoCommonBundle
novuso
PHP
Code
77
193
<?php namespace Novuso\Common\Bundle\Http\Resolver; use LogicException; use Novuso\Common\Bundle\Http\Responder; /** * ResponderResolver resolves an action class to a responder * * @copyright Copyright (c) 2015, Novuso. <http://novuso.com> * @license http://opensource.org/licenses/MIT The MIT License * @autho...
5,794
https://github.com/nguyer/aws-sdk-js-v3/blob/master/clients/browser/client-route-53-browser/model/shapes/UpdateHealthCheckInput.ts
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,020
aws-sdk-js-v3
nguyer
TypeScript
Code
180
559
import { _ChildHealthCheckList } from "./_ChildHealthCheckList"; import { _HealthCheckRegionList } from "./_HealthCheckRegionList"; import { _AlarmIdentifier } from "./_AlarmIdentifier"; import { _ResettableElementNameList } from "./_ResettableElementNameList"; import { Structure as _Structure_ } from "@aws-sdk/types";...
32,137
https://github.com/biagioni/allnet/blob/master/src/lib/stream.c
Github Open Source
Open Source
MIT
2,023
allnet
biagioni
C
Code
1,333
3,429
/* stream.c: cryptography for data streams */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <inttypes.h> #include "stream.h" #include "crypt_sel.h" #include "util.h" #include "sha.h" #include "wp_aes.h" /* allnet_stream_init allocates and initializes state for encrypting and...
19,465
https://github.com/rpatil524/datasource/blob/master/datasource-fileparsers/src/main/java/edu/ucdenver/ccp/datasource/fileparsers/rgd/RgdAnnotationFileIdResolver.java
Github Open Source
Open Source
BSD-3-Clause
2,019
datasource
rpatil524
Java
Code
575
1,802
package edu.ucdenver.ccp.datasource.fileparsers.rgd; /* * #%L * Colorado Computational Pharmacology's common module * %% * Copyright (C) 2012 - 2015 Regents of the University of Colorado * %% * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the fol...
34,222
https://github.com/am1tanaka/RollerBallBolt/blob/master/Assets/RollerBallBolt/Scripts/NetworkSceneManager.cs
Github Open Source
Open Source
MIT
2,019
RollerBallBolt
am1tanaka
C#
Code
134
516
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace RollerBallBolt { public struct OBJECT_RECORD { public int id; public Vector3 position; } public class NetworkSceneManager : MonoBehaviour { public static NetworkSceneManager Instance ...
44,330
https://github.com/PySCeS/pysces/blob/master/pysces/kraken/controllers/kraken_continuation.py
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-proprietary-license, GPL-1.0-or-later, LicenseRef-scancode-unknown-license-reference
2,023
pysces
PySCeS
Python
Code
553
2,380
import os os.chdir('c:/mypysces/kraken') ## os.chdir('/home/bgoli/mypysces/kraken') from pysces.kraken.Kraken import * ## from Kraken import * # build controller blob = getBasicController() Model_File = '2006_isola2.psc' Model_Dir = 'c:\\mypysces\\pscmodels\\isola06' ## Model_Dir = '/home/bgoli/mypysces/pscmodels/i...
8,512
https://github.com/hilmak01/modular-laravel-frame/blob/master/resources/sass/admin.scss
Github Open Source
Open Source
MIT
null
modular-laravel-frame
hilmak01
SCSS
Code
22
120
// Fonts & Icons @import url('https://fonts.googleapis.com/css?family=Nunito'); @import url('https://fonts.googleapis.com/icon?family=Material+Icons'); @import url('https://use.fontawesome.com/releases/v5.3.1/css/all.css'); // Variables @import 'variables'; // Bootstrap @import '~bootstrap/scss/bootstrap'; // Theme @im...
52,476
https://github.com/boguenon/amplix/blob/master/webapp/launcher/custom/custom.map.esri.worker.js
Github Open Source
Open Source
MIT
2,023
amplix
boguenon
JavaScript
Code
3,378
13,262
/** * @module custom/map/esri/worker * @desc esri data visualization renderer * */ /** * create chart instance * @memberof module:custom/map/esri/worker * @public * @instance * @name map_initialize */ IG$.cVis.esri.prototype.map_initialize = function(chartview, container, callback) { var me = this, esri ...
49,634
https://github.com/andriisoldatenko/fan/blob/master/codewars/duplicate_count/duplicate_count_suite_test.go
Github Open Source
Open Source
MIT
2,022
fan
andriisoldatenko
Go
Code
19
86
package main_test import ( "testing" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) func TestDuplicateCount(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "DuplicateCount Suite") }
22,693
https://github.com/rikulo/couchclient/blob/master/test/listBucketNamesOP_test.dart
Github Open Source
Open Source
Apache-2.0
2,016
couchclient
rikulo
Dart
Code
93
314
//Copyright (C) 2013 Potix Corporation. All Rights Reserved. //History: Wed, Mar 06, 2013 09:47:04 PM // Author: henrichen import 'dart:async'; import 'package:unittest/unittest.dart'; import 'package:memcached_client/memcached_client.dart'; import 'package:couchclient/couchclient.dart'; import 'CouchbaseTestUtil.dar...
43,847
https://github.com/silenceleewq/NJProject/blob/master/NJProject/NJProject/FunctionGroup/QRCodeScan/NJQRCodeScanShadowLayer.m
Github Open Source
Open Source
MIT
2,020
NJProject
silenceleewq
Objective-C
Code
140
565
// // NJQRCodeScanShadowLayer.m // NJProject // // Created by lirenqiang on 12/09/2017. // Copyright © 2017 Ninja. All rights reserved. // #import "NJQRCodeScanShadowLayer.h" @implementation NJQRCodeScanShadowLayer - (instancetype)initWithFrame:(CGRect)frame { self = [super init]; if (self) { // _...
43,841
https://github.com/JuliaMV/UUI/blob/master/draft-rte/src/common/Toolbar/buttons/LinkButton.tsx
Github Open Source
Open Source
MIT
null
UUI
JuliaMV
TypeScript
Code
311
1,071
import { EditorState, Modifier, SelectionState, ContentState } from 'draft-js'; import EditorUtils from 'draft-js-plugins-utils'; import { IconButton } from '@epam/loveship'; import * as React from 'react'; import { UuiContexts, uuiContextTypes, prependHttp } from '@epam/uui'; import * as linkIcon from '../../../icons/...
17,903
https://github.com/mc639/Flirtjar/blob/master/FlirtjarMobile/public_html/dev/product-detail.php
Github Open Source
Open Source
MIT
2,019
Flirtjar
mc639
PHP
Code
3,470
17,020
<?php /*----------File Information----------*/ #Project : Hashtag #File Created By : Avani Trivedi #File Created Date : 18 Jan 2016 #File Edited By : #File Edited Date : /*----------File Information----------*/ include ("includes/connection.php"); include("includes/encrypt.php"); $obj = new myclass(); ses...
20,699
https://github.com/xeops/GearmanBundle/blob/master/Driver/Gearman/Job.php
Github Open Source
Open Source
MIT
null
GearmanBundle
xeops
PHP
Code
199
419
<?php /** * Gearman Bundle for Symfony2 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Feel free to edit as you please, and have fun. * * @author Marc Morera <yuhu@mmoreram.com> */ namespace Mmoreram\GearmanBundle\Driver\Gear...
9,611
https://github.com/leapmotion-examples/SpaceLeap/blob/master/Assets/Scripts/Panels/Instructions/ReplacementPanelActionSet.cs
Github Open Source
Open Source
Apache-2.0
2,015
SpaceLeap
leapmotion-examples
C#
Code
120
398
using UnityEngine; using UnityEngine.Networking; using System.Collections; public class ReplacementPanelActionSet : PanelActionSetBase { public const string REPLACEMENT_CODE = "#"; private string _instructionBase; private string[] _variantReplacements; public ReplacementPanelActionSet() { } pub...
3,929
https://github.com/ScalablyTyped/Distribution/blob/master/m/mapbox/src/main/scala/typings/mapbox/mod/global/L/mapbox/ControlOptions.scala
Github Open Source
Open Source
MIT
2,023
Distribution
ScalablyTyped
Scala
Code
86
293
package typings.mapbox.mod.global.L.mapbox import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} ////////////////////////////////////////////////////////////////////// //////////////////////////////// CONTROLS ...
48,756
https://github.com/limingth/meteor-weuse/blob/master/client/subscribe.js
Github Open Source
Open Source
MIT
2,015
meteor-weuse
limingth
JavaScript
Code
151
637
Deps.autorun(function(){ if (Session.equals('mapLoaded', 'dom')) { initGMaps(); } if (Session.equals('mapLoaded', 'yes')) { map.addMarkers(Meteor.users.find().fetch()); } }); // Select Geohash if possible Deps.autorun(function(){ var gh = Session.get('selectedGeohash'); if (typeof map !== 'undefi...
14,497
https://github.com/ashokcse/openstack-bill/blob/master/stack/glance/glance/tests/unit/test_config.py
Github Open Source
Open Source
Apache-2.0
2,012
openstack-bill
ashokcse
Python
Code
275
685
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack, LLC # 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/...
47,927
https://github.com/joaomoreno/vscode-abaplint/blob/master/server/src/setup.ts
Github Open Source
Open Source
MIT
2,021
vscode-abaplint
joaomoreno
TypeScript
Code
210
634
import {URI} from "vscode-uri"; import {IFolder} from "./handler"; import {FileOperations} from "./file_operations"; import * as LServer from "vscode-languageserver"; import * as abaplint from "@abaplint/core"; import * as path from "path"; export class Setup { private readonly connection: LServer.Connection; pub...
22,094
https://github.com/brecert/haptic/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,021
haptic
brecert
Ignore List
Code
4
16
node_modules publish *.map .vscode
31,446
https://github.com/bukshev/Boozter/blob/master/Boozter/Pods/Typhoon/Source/ios/Storyboard/TyphoonComponentFactory+Storyboard.h
Github Open Source
Open Source
Unlicense, MIT
2,019
Boozter
bukshev
C
Code
64
194
//////////////////////////////////////////////////////////////////////////////// // // TYPHOON FRAMEWORK // Copyright 2015, Typhoon Framework Contributors // All Rights Reserved. // // NOTICE: The authors permit you to use, modify, and distribute this file // in accordance with the terms of the license agreement a...
42,726
https://github.com/BanditFly/groundsdk-android/blob/master/arsdkengine/src/main/java/com/parrot/drone/groundsdk/arsdkengine/blackbox/data/Event.java
Github Open Source
Open Source
2,019
groundsdk-android
BanditFly
Java
Code
1,145
2,510
/* * Copyright (C) 2019 Parrot Drones SAS * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of cond...
24,824
https://github.com/nawazmujawar/academic-administration/blob/master/src/routes/admin.js
Github Open Source
Open Source
MIT
null
academic-administration
nawazmujawar
JavaScript
Code
45
180
const express = require('express'); const router = express.Router(); //Middlwares const authCheck = require('../middlewares/authCheck'); const adminController = require('../controllers/admin'); //Load dashboard router.get('/dashboard', authCheck.redirectToSignInAdmin, adminController.getAdminDashboard); //API for b...
24,378
https://github.com/praharthanan/contact/blob/master/public/js/admin.js
Github Open Source
Open Source
MIT
null
contact
praharthanan
JavaScript
Code
21
95
(function() { $('.ui-component-tooltip').tooltip(); $('.ui-action-delete').on('click', function() { return confirm('Delete this record?'); }); })(jQuery); $(function() { $('li a[href="' + window.location.href + '"]').parent().addClass('active'); });
16,709
https://github.com/christophervistal24/sdssu-preenroll-2/blob/master/app/Http/Controllers/Admin/StudentController.php
Github Open Source
Open Source
MIT
null
sdssu-preenroll-2
christophervistal24
PHP
Code
365
1,318
<?php namespace App\Http\Controllers\Admin; use App\Course; use App\Http\Controllers\Controller; use App\Http\Requests\StoreNewStudent; use App\Role; use App\Student; use App\StudentParent; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class StudentController extends Controller { ...
43,472
https://github.com/gbif/portal-web/blob/master/src/test/java/org/gbif/portal/action/dataset/NodeContactOrderTest.java
Github Open Source
Open Source
Apache-2.0
2,017
portal-web
gbif
Java
Code
125
617
package org.gbif.portal.action.dataset; import org.gbif.api.model.registry.Contact; import org.gbif.api.vocabulary.ContactType; import org.gbif.portal.action.node.NodeAction; import java.util.Collections; import java.util.List; import com.google.common.collect.Lists; import org.junit.Test; import static org.junit.A...
41,808
https://github.com/hugtechio/jest-aws-simple-mock/blob/master/src/mocks_v2/mockQLDB.ts
Github Open Source
Open Source
MIT
2,022
jest-aws-simple-mock
hugtechio
TypeScript
Code
982
3,562
/** * @description mocks_v2:mockQLDB.ts module is mocks for AWS-SDK V2 * * This mock module has generated from mock_generator. * Generator Version: {v0.1.0} * Author: hugtechio */ import {attachMock} from './common' export const mockQLDB = { cancelJournalKinesisStream: (result:any, mock?: jest.SpyInstance): jest.S...
1,547
https://github.com/websemantics/example-module/blob/master/src/{{module_name}}ModuleSeeder.php
Github Open Source
Open Source
MIT
2,021
example-module
websemantics
PHP
Code
34
127
<?php namespace {{vendor_name}}\\{{module_name}}Module; use Anomaly\Streams\Platform\Database\Seeder\Seeder; class {{module_name}}ModuleSeeder extends Seeder { protected $seeders = []; /** * Seed the localization module. */ public function run() { foreach ($this->seeders as $seeder) ...
2,009
https://github.com/Sebastiancadc/Microsites/blob/master/app/Http/Controllers/NoticiasController.php
Github Open Source
Open Source
MIT
2,021
Microsites
Sebastiancadc
PHP
Code
390
1,659
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Noticia; use App\User; use App\Category; use App\Helpers\Helpers; use App\Http\Requests\NoticiaRequest; use App\Presentaciones; use Carbon\Carbon; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Str; use Illuminate\Support\Facades\...
1,933
https://github.com/Lucasnl/Rits/blob/master/web/app/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-date.php
Github Open Source
Open Source
MIT
null
Rits
Lucasnl
PHP
Code
279
914
<?php namespace ElementorPro\Modules\DynamicTags\Pods\Tags; use Elementor\Controls_Manager; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } class Pods_Date extends Pods_Base { public function get_name() { return 'pods-date'; } public function get_title() { return __( 'Pods', 'elementor...
26,197
https://github.com/naveenspace7/four-in-a-row/blob/master/inc/game.hpp
Github Open Source
Open Source
MIT
2,020
four-in-a-row
naveenspace7
C++
Code
73
307
#pragma once #include <SFML/Audio.hpp> #include <SFML/Graphics/RenderWindow.hpp> #include <SFML/Window/Keyboard.hpp> #include "board.hpp" #include "coin.hpp" #include <unordered_set> namespace game { class Game: public sf::RenderWindow { private: static const int GAME_FRAME_WIDTH = 800, GAME_FRAME_HEIGHT = 700; ...
47,057
https://github.com/allancolibao/encoding-system/blob/master/public/js/openwindow.js
Github Open Source
Open Source
MIT
null
encoding-system
allancolibao
JavaScript
Code
36
166
$('.open-window').click(function (event) { event.preventDefault(); $.ajax({ url: $(this).data('path'), success: function (response) { $('#get-record').html(response); $('#open-record').modal('show'); } }); return false; }); $('.open-count').click(function...
29,419
https://github.com/arnoutaertgeerts/DistrictHeating/blob/master/DistrictHeating/Production/PolynomialProduction.mo
Github Open Source
Open Source
Apache-2.0
2,015
DistrictHeating
arnoutaertgeerts
Modelica
Code
65
365
within DistrictHeating.Production; model PolynomialProduction "Production model based on a polynomial function derived from performance data" //Extensions extends DistrictHeating.Production.BaseClasses.PartialHeater( QNomRef=data.QNomRef, etaRef=data.etaRef, TMax=data.TMax, TMin=data.TMin, mo...
5,261
https://github.com/GoatGirl98/online-judge/blob/master/NowCoder/CodingInterviews/main.h
Github Open Source
Open Source
MIT
2,021
online-judge
GoatGirl98
C++
Code
76
231
#pragma once #include <bits/stdc++.h> using namespace std; struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(nullptr) {} }; struct RandomListNode { int label; RandomListNode *next, *random; RandomListNode(int x) : label(x), next(nullptr), random(nullptr) {} }; struct ...
30,321
https://github.com/keshav11/algorithm-implementations/blob/master/src/DynamicProgramming/Fibonacci.java
Github Open Source
Open Source
MIT
null
algorithm-implementations
keshav11
Java
Code
64
267
package DynamicProgramming; public class Fibonacci { int getNthFib(int n) { int a = 0, b = 1, c = 1; for (int i = 2; i <= n; i++) { c = a+b; a = b; b = c; } return b; } public static void main(String[] args) { Fibonacci fib = ne...
7,378
https://github.com/18779883952/AAChartKit/blob/master/AAChartKitDemo/ChartsDemo/AlgorithmVC.h
Github Open Source
Open Source
MIT
2,019
AAChartKit
18779883952
Objective-C
Code
31
104
// // AlgorithmVC.h // AAChartKitDemo // // Created by AnAn on 2019/6/3. // Copyright © 2019 Danny boy. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface AlgorithmVC : UIViewController @end NS_ASSUME_NONNULL_END
36,583
https://github.com/qaz734913414/Typecho-Theme-RAW/blob/master/post.php
Github Open Source
Open Source
MIT
2,018
Typecho-Theme-RAW
qaz734913414
PHP
Code
217
1,099
<?php /** * post.php * * 主题文章页面模板 * * @author 熊猫小A | AlanDecode * @version 0.1 * */ ?> <?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> <?php if(Utils::isPJAX()):?> <title><?php $this->archiveTitle(array( 'category' => _t('分类 %s 下的文章'), 'search' => _t('包含关键字...
52,302
https://github.com/ezachrisen/protoc-gen-firestore/blob/master/firestore/firestore.pb.go
Github Open Source
Open Source
MIT
null
protoc-gen-firestore
ezachrisen
Go
Code
576
2,535
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.15.7 // source: firestore/firestore.proto package firestore import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" descriptorp...
16,428
https://github.com/clarametto/Delani-Studio/blob/master/js/script.js
Github Open Source
Open Source
MIT
2,021
Delani-Studio
clarametto
JavaScript
Code
203
742
// WHAT WE DO $(document).ready(function(){ $(".Design").click(function(){ $("#design").toggle(2000); $("#text").toggle(2000); }); $(".Development").click(function(){ $("#development").toggle(2000); $("#dev").toggle(2000); }); $(".Product").click(function(){ ...
19,709
https://github.com/albariko97/Iteraciones/blob/master/java-server-master/src/tm/RotondAndesTM.java
Github Open Source
Open Source
MIT
2,017
Iteraciones
albariko97
Java
Code
4,288
17,750
/**------------------------------------------------------------------- * $Id$ * Universidad de los Andes (Bogotá - Colombia) * Departamento de Ingeniería de Sistemas y Computación * * Materia: Sistemas Transaccionales * Ejercicio: VideoAndes * Autor: Juan Felipe García - jf.garcia268@uniandes.edu.co * ---------...
5,743
https://github.com/bedla/spring-security/blob/master/messaging/src/test/java/org/springframework/security/messaging/access/intercept/ChannelSecurityInterceptorTests.java
Github Open Source
Open Source
Apache-2.0
2,017
spring-security
bedla
Java
Code
381
1,498
/* * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
1,788
https://github.com/josephglanville/roaring-rs/blob/master/src/bitmap/inherent.rs
Github Open Source
Open Source
Apache-2.0, MIT, LicenseRef-scancode-unknown-license-reference
2,019
roaring-rs
josephglanville
Rust
Code
784
2,246
use crate::RoaringBitmap; use super::util; use super::container::Container; use std::ops::Range; impl RoaringBitmap { /// Creates an empty `RoaringBitmap`. /// /// # Examples /// /// ```rust /// use roaring::RoaringBitmap; /// let mut rb = RoaringBitmap::new(); /// ``` pub fn new()...
40,344
https://github.com/ResonantGeoData/RD-OASIS/blob/master/django-rgd-workflow/rgd_workflow/models/__init__.py
Github Open Source
Open Source
Apache-2.0
2,022
RD-OASIS
ResonantGeoData
Python
Code
6
12
from .workflow import * # noqa
17,814
https://github.com/vishalbelsare/samcnet/blob/master/.gitmodules
Github Open Source
Open Source
MIT
2,015
samcnet
vishalbelsare
Git Config
Code
8
42
[submodule "deps/libdai"] path = deps/libdai url = git://github.com/binarybana/libDAI.git
6,728
https://github.com/adamjdeacon/RNMImport/blob/master/man/getFileinfo.Rd
Github Open Source
Open Source
2,018
RNMImport
adamjdeacon
R
Code
246
629
\name{MiscExtractors} \alias{getFileinfo} \alias{getControlStatements} \alias{getControltext} \alias{getReporttext} \alias{getNmVersion} \alias{getSimInfo} \title{Various miscellaneous "getter"/extractor functions} \description{\code{getFileinfo} gets information about the report and control files, \code{getControl...
40,658
https://github.com/Rikearon/brain-web-react-native-challenge/blob/master/services/Notifier/index.js
Github Open Source
Open Source
MIT
2,020
brain-web-react-native-challenge
Rikearon
JavaScript
Code
15
35
export { default as Notifier } from './Notifier'; export { NotificationContext, useNotificationService, } from './NotificationContext';
48,687
https://github.com/Tastyep/SFML-GameCore-2D/blob/master/cmake/ExternalHana.cmake
Github Open Source
Open Source
MIT
null
SFML-GameCore-2D
Tastyep
CMake
Code
93
457
message(STATUS "[Hana] Configuring external project") include(ExternalProject) set(HANA_DIR ${HANA_DIR}) set(HANA_TARGET hana) set(HANA_ROOT_DIR ${PROJECT_SOURCE_DIR}/${LIB_DIR}/${HANA_DIR}) set(HANA_SOURCE_DIR ${HANA_ROOT_DIR}/src/${HANA_TARGET}/Hana) # Configure external project ExternalProject_Add( ${HANA_TARGE...
53,529
https://github.com/DarkWyvren/IoTBay/blob/master/labs/src/java/controller/ProductEditController.java
Github Open Source
Open Source
MIT
null
IoTBay
DarkWyvren
Java
Code
328
1,279
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package controller; import java.io.IOException; import java.sql.Connection; import java.sql.SQLException; import java.util.ArrayList; ...
39,128
https://github.com/heloisaldanha/FIC_IMD_Studies/blob/master/Web/SITURBB/src/main/java/br/ufrn/imd/controllers/CadastrarMotoristaMBean.java
Github Open Source
Open Source
MIT
2,020
FIC_IMD_Studies
heloisaldanha
Java
Code
142
529
package br.ufrn.imd.controllers; /** * Controller para cadastro dos motoristas de ônibus * @author heloisasaldanha */ import java.util.ArrayList; import java.util.List; import javax.faces.application.FacesMessage; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; import javax.faces.conte...
33,638
https://github.com/MdBayzidAman/Laravel-ajax-chat/blob/master/resources/views/register/forget/forgetVerify.blade.php
Github Open Source
Open Source
MIT
2,021
Laravel-ajax-chat
MdBayzidAman
PHP
Code
284
1,228
@extends('layout.master') @section('title','Forget') @section('head') @endsection() @section('style') .main-section{ width: 450px; margin: auto; margin-top:8%; padding: 40px 25px; padding-bottom: 50px; box-shadow: 0px 0px 10px 1px #e4e4e4; } .logo-section img{ width: 40px; height: 40px; bor...
17,827
https://github.com/eVoloshchak/simple-blog/blob/master/src/Components/CommentsContainer.js
Github Open Source
Open Source
MIT
null
simple-blog
eVoloshchak
JavaScript
Code
89
269
import React from "react"; import { FaCheck } from "react-icons/fa"; import CommentsItem from "./CommentsItem"; import "./CommentsContainer.css"; import RoundButton from "./RoundButton"; const CommentsContainer = ({ post, commentInput, onCommentInputChange, onSendCommentPressed }) => { const { comments } = p...
21,333
https://github.com/ai4reason/mm-atp-benchmark/blob/master/mmsetthf_v1/measfn.p
Github Open Source
Open Source
CC0-1.0
2,023
mm-atp-benchmark
ai4reason
OpenEdge ABL
Code
371
1,152
thf(cwi_tp,type,(cwi : ($o > ($o > $o)))). thf(cwcel_tp,type,(cwcel : (($i > $o) > (($i > $o) > $o)))). thf(ccfv_tp,type,(ccfv : (($i > $o) > (($i > $o) > ($i > $o))))). thf(ccmeas_tp,type,(ccmeas : ($i > $o))). thf(cwfn_tp,type,(cwfn : (($i > $o) > (($i > $o) > $o)))). thf(cwf_tp,type,(cwf : (($i > $o) > (($i > $o) > ...
5,616
https://github.com/astraldragon/kitsu-web/blob/master/app/templates/components/explore/category-sidebar/category-modal.hbs
Github Open Source
Open Source
Apache-2.0
2,020
kitsu-web
astraldragon
null
Spoken
41
258
{{#bootstrap/bs-modal id=modalId onClose=onClose as |modal|}} {{#modal.header}} <h6 class="text-xs-center text-uppercase m-b-0">{{t "explore.modal.header"}}</h6> {{/modal.header}} {{#modal.body}} {{#if getCategoriesTask.isRunning}} {{#each (repeat 6) as |_|}} {{#skeleton-container class="cat...
9,529
https://github.com/sebprovencher/praized/blob/master/movabletype/praized-community/php/function.mtpraizedsearchquery.php
Github Open Source
Open Source
Apache-2.0
2,009
praized
sebprovencher
PHP
Code
25
105
<?php function smarty_function_mtpraizedsearchquery($args, &$ctx) { $content = $ctx->stash("praized_querystring"); if(is_array($content)) { $q = $content["q"]; return (! is_null($q) ) ? PraizedCore::_tempColinize($q): ""; } return ""; } ?>
6,889
https://github.com/qiniu/python-sdk/blob/master/qiniu/http/middleware/__init__.py
Github Open Source
Open Source
MIT
2,023
python-sdk
qiniu
Python
Code
21
77
from .base import Middleware, compose_middleware from .ua import UserAgentMiddleware from .retry_domains import RetryDomainsMiddleware __all__ = [ 'Middleware', 'compose_middleware', 'UserAgentMiddleware', 'RetryDomainsMiddleware' ]
7,119
https://github.com/blckclov3r/mvvm_time-trainee-tracker/blob/master/app/src/main/java/com/example/datetimerecord/fragment/student/StudentDetailFragment.java
Github Open Source
Open Source
MIT
2,019
mvvm_time-trainee-tracker
blckclov3r
Java
Code
284
1,168
package com.example.datetimerecord.fragment.student; import android.content.Context; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.TextView; import com.example.datetimer...
34,773
https://github.com/kylepls/mcspring/blob/master/mcspring-api/mcspring-subcommands/src/main/java/in/kyle/mcspring/subcommands/PluginCommand.java
Github Open Source
Open Source
MIT
2,021
mcspring
kylepls
Java
Code
651
1,881
package in.kyle.mcspring.subcommands; import in.kyle.mcspring.command.SimpleMethodInjection; import org.bukkit.command.CommandSender; import java.util.List; public class PluginCommand extends PluginCommandBase { public PluginCommand(SimpleMethodInjection injection, CommandSender sender,...
34,060
https://github.com/WhereHouseGM/Banchango_server/blob/master/src/main/java/com/banchango/common/exception/UnAuthorizedException.java
Github Open Source
Open Source
Apache-2.0
2,021
Banchango_server
WhereHouseGM
Java
Code
27
123
package com.banchango.common.exception; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(HttpStatus.UNAUTHORIZED) public class UnAuthorizedException extends ApiException { public UnAuthorizedException(String message) { super(message...
905
https://github.com/aog5/python-docs-samples/blob/master/data-science-onramp/vertex-ai/modules/trainer/tfkeras_model/task.py
Github Open Source
Open Source
Apache-2.0
2,022
python-docs-samples
aog5
Python
Code
440
1,600
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
13,692
https://github.com/webstar1987923/mycampaignsio/blob/master/vendor/voku/httpful/src/Httpful/Exception/ConnectionErrorException.php
Github Open Source
Open Source
MIT
2,018
mycampaignsio
webstar1987923
PHP
Code
174
549
<?php namespace Httpful\Exception; /** * Class ConnectionErrorException * * @package Httpful\Exception */ class ConnectionErrorException extends \Exception { /** * @var null|resource */ public $curl_object = null; /** * @var int */ private $curlErrorNumber; /** * @var string */ pri...
46,555
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/r/react-inspector/src/main/scala/typingsSlinky/reactInspector/mod/ObjectValueProps.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
101
375
package typingsSlinky.reactInspector.mod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait ObjectValueProps extends StObject { /** * The object to descr...
33,475
https://github.com/pagaia/taggo/blob/master/client/src/components/Home.js
Github Open Source
Open Source
MIT
null
taggo
pagaia
JavaScript
Code
172
469
import { makeStyles, Toolbar, Typography } from "@material-ui/core"; import Grid from "@material-ui/core/Grid"; import React, { useEffect } from "react"; import { useParams } from "react-router-dom"; import AddBookmark from "./AddBookmark"; import BookmarkList from "./Bookmark"; import ScrollTop from "./ScrollTop"; imp...
19,896
https://github.com/3llomi/Emoji/blob/master/emoji/src/main/java/com/vanniktech/emoji/EmojiPopupBase.java
Github Open Source
Open Source
Apache-2.0
null
Emoji
3llomi
Java
Code
15
45
package com.vanniktech.emoji; public interface EmojiPopupBase { void start(); void show(); void dismiss(); void stop(); }
45,538
https://github.com/agrippa/aparapi-swat/blob/master/com.amd.aparapi/src/java/com/amd/aparapi/internal/model/FullMethodSignature.java
Github Open Source
Open Source
BSD-3-Clause
2,016
aparapi-swat
agrippa
Java
Code
282
784
package com.amd.aparapi.internal.model; import java.util.List; import java.util.LinkedList; /* * Does not support nested type parameters. */ public class FullMethodSignature { final TypeSignature returnType; final List<TypeSignature> paramTypes = new LinkedList<TypeSignature>(); public FullMethodSignat...
6,232
https://github.com/Lucasmg37/anime-tv-api/blob/master/app/readable/smali/name/ratson/cordova/admob/rewardvideo/RewardVideoListener.smali
Github Open Source
Open Source
MIT
2,020
anime-tv-api
Lucasmg37
Smali
Code
639
4,500
.class Lname/ratson/cordova/admob/rewardvideo/RewardVideoListener; .super Ljava/lang/Object; .source "RewardVideoListener.java" # interfaces .implements Lcom/google/android/gms/ads/reward/RewardedVideoAdListener; # instance fields .field private final executor:Lname/ratson/cordova/admob/rewardvideo/RewardVideoExecut...
53,148
https://github.com/mmichailidis/AmqpRunner/blob/master/src/main/java/gr/mmichaildis/amqprunner/broker/AMQPBinding.java
Github Open Source
Open Source
Apache-2.0
2,019
AmqpRunner
mmichailidis
Java
Code
175
352
/* * Copyright 2019 the original author or authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
34,145
https://github.com/GSA/sam-design-system/blob/master/libs/documentation/src/lib/components/landing/list/demos/basic/basic-list.component.ts
Github Open Source
Open Source
CC0-1.0
2,021
sam-design-system
GSA
TypeScript
Code
88
215
import { Component } from '@angular/core'; @Component({ templateUrl: './basic-list.component.html', selector: `docs-basic-list-demo`, }) export class BasicListComponent { list = { title: 'Lorem ipsum dolor sit amet', intro: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque pretium h...
43,313
https://github.com/treethought/alexa_skills/blob/master/audio/playlist_demo/playlist.py
Github Open Source
Open Source
MIT
2,016
alexa_skills
treethought
Python
Code
583
2,176
import logging from flask import Flask, json, render_template from flask_ask import Ask, request, session, question, statement, context, audio, current_stream, logger import collections from pprint import pprint from werkzeug.local import LocalProxy app = Flask(__name__) ask = Ask(app, "/") logging.getLogger('flask...
43,131
https://github.com/agungprabawa/saas_elearning_cat/blob/master/resources/views/pages/srv_admin/payment/history.blade.php
Github Open Source
Open Source
MIT
2,021
saas_elearning_cat
agungprabawa
PHP
Code
786
4,024
@extends('layouts.srv_admin.master') @section('css') <!--begin::Page Custom Styles(used by this page) --> <link href="{{ asset('/') }}admin_res/css/pages/invoices/invoice-2.css" rel="stylesheet" type="text/css" /> <!--end::Page Custom Styles --> <!--begin::Page Vendors Styles(used by this page) --> <link ...
14,453
https://github.com/SebastianStehle/squidex/blob/master/src/Squidex/app/shared/services/app-clients.service.ts
Github Open Source
Open Source
MIT
2,017
squidex
SebastianStehle
TypeScript
Code
342
1,116
/* * Squidex Headless CMS * * @license * Copyright (c) Sebastian Stehle. All rights reserved */ import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import 'framework/angular/http-extensions'; import { ApiUrlConfig, ...
232
https://github.com/darktable/Git-for-Unity/blob/master/com.unity.editor.tasks/Editor/Base/TaskAffinity.cs
Github Open Source
Open Source
MIT
2,022
Git-for-Unity
darktable
C#
Code
180
364
namespace Unity.Editor.Tasks { /// <summary> /// Thread affinity of a task. /// </summary> public enum TaskAffinity { /// <summary> /// Tasks with this affinity will only run when there are no Exclusive affinity tasks running. /// <see cref="ITask.Then" /> task handlers run with this affinity by default //...
7,948
https://github.com/synuwxy/service-mesh-hub/blob/master/services/common/compute-target/k8s/errutils/err_signaler_test.go
Github Open Source
Open Source
Apache-2.0
null
service-mesh-hub
synuwxy
Go
Code
81
300
package errutils import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/rotisserie/eris" ) var _ = Describe("err signaler", func() { var ( errSignaler *errorSignaler ) BeforeEach(func() { errSignaler = &errorSignaler{ errSignal: make(chan struct{}), } }) It("will set an error", ...
12,265
https://github.com/kainonly/lumen-amqp/blob/master/api/api_grpc.pb.go
Github Open Source
Open Source
MIT
2,020
lumen-amqp
kainonly
Go
Code
1,391
4,413
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. package ssh import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" ) // This is a compile-time assertion to ensure that thi...
8,710
https://github.com/fabiogalante/refactoring-c-sharp/blob/master/4SimplifyingConditional/07. Refactoring Session/RefactoringSession_SimplifyConditional.cs
Github Open Source
Open Source
MIT
2,020
refactoring-c-sharp
fabiogalante
C#
Code
140
409
using System.Collections.Generic; namespace SimplifyingConditional { public class LoginMessage { public string Message { get; set; } public bool LoginStatus { get; set; } public LoginMessage(string message, bool status) { Message = message; LoginStatus ...
28,669
https://github.com/BitBagCommerce/SyliusVueStorefrontPlugin/blob/master/src/Sylius/Transformer/SyliusTaxCategory/TaxRatesTransformer.php
Github Open Source
Open Source
MIT
2,023
SyliusVueStorefrontPlugin
BitBagCommerce
PHP
Code
127
416
<?php /* * This file has been created by developers from BitBag. * Feel free to contact us once you face any issues or want to start * another great project. * You can find more information about us on https://bitbag.io and write us * an email on hello@bitbag.io. */ declare(strict_types=1); namespace BitBag\Sy...
40,627
https://github.com/eric-erki/ERP-CMR-DMS/blob/master/ViennaAdvantageWeb/ModelLibrary/ModelAD/X_AD_Attribute.cs
Github Open Source
Open Source
Apache-2.0
2,022
ERP-CMR-DMS
eric-erki
C#
Code
1,855
4,417
namespace VAdvantage.Model { /** Generated Model - DO NOT CHANGE */ using System; using System.Text; using VAdvantage.DataBase; using VAdvantage.Common; using VAdvantage.Classes; using VAdvantage.Process; using VAdvantage.Model; using VAdvantage.Utility; using System.Data; /** Generated Model for AD_Attribute * @aut...
16,213
https://github.com/DenisPolulyakh/NEZNAYKA/blob/master/src/app/pages/DictionaryList/container.ts
Github Open Source
Open Source
MIT
2,017
NEZNAYKA
DenisPolulyakh
TypeScript
Code
24
73
import {Component, OnInit} from '@angular/core'; @Component({ selector: 'production-container', templateUrl: './index.html', }) export class ProductionContainer implements OnInit { constructor() { } ngOnInit() { } }
24,804
https://github.com/mikosz/caramel-poly/blob/master/benchmark/dyno/storage/dispatch.single.cpp
Github Open Source
Open Source
MIT
2,018
caramel-poly
mikosz
C++
Code
102
485
// Copyright Louis Dionne 2017 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #include "model.hpp" #include "caramel-poly/Poly.hpp" #include <benchmark/benchmark.h> #include <cstddef> #include <type_traits> #include <ut...
16,267
https://github.com/jonneyless/yii2-helper-extend/blob/master/Boostrap.php
Github Open Source
Open Source
MIT
null
yii2-helper-extend
jonneyless
PHP
Code
29
135
<?php namespace qooapp; defined('UPLOAD_FOLDER') or define('UPLOAD_FOLDER', 'upload'); defined('THUMB_FOLDER') or define('THUMB_FOLDER', 'thumb'); defined('BUFFER_FOLDER') or define('BUFFER_FOLDER', 'buffer'); defined('STATIC_SUB_DOMAIN') or define('STATIC_SUB_DOMAIN', 'static'); class Boostrap { public static...
42,537
https://github.com/davidbetz/cloudarchive/blob/master/CloudArchive/Configuration/Area.cs
Github Open Source
Open Source
MIT
2,017
cloudarchive
davidbetz
C#
Code
77
191
using System.Collections.Generic; using System.Diagnostics; using YamlDotNet.Serialization; namespace CloudArchive.Configuration { [DebuggerDisplay("{Name}")] public class Area { public Area() { FileTypes = new List<FileType>(); } [YamlIgnore] public St...
5,926
https://github.com/Kelvin-K/react-typescript-boilerplate/blob/master/src/pages/contactPage.tsx
Github Open Source
Open Source
MIT
null
react-typescript-boilerplate
Kelvin-K
TypeScript
Code
104
311
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import IAppState from '../interfaces/IAppState'; interface StateProps { } class DispatchProps { } export class ContactPageComponent extends Component<StateProps & DispatchProps, any> { comp...
23,839
https://github.com/alyip98/main/blob/master/src/main/java/seedu/address/logic/parser/MarkCommandParser.java
Github Open Source
Open Source
MIT
null
main
alyip98
Java
Code
394
1,248
package seedu.address.logic.parser; import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.address.logic.parser.CliSyntax.PREFIX_MARK; import static seedu.address.model.mark.Mark.DEFAULT_NAME; import java.util.ArrayList; import java.util.Arrays; import java.util.function...
12,965
https://github.com/opengauss-mirror/openGauss-server/blob/master/src/include/access/redo_common.h
Github Open Source
Open Source
LicenseRef-scancode-mulanpsl-2.0-en, LicenseRef-scancode-unknown-license-reference, PostgreSQL, BSD-3-Clause, LGPL-2.0-or-later, LicenseRef-scancode-unicode, LicenseRef-scancode-warranty-disclaimer, curl, GPL-1.0-or-later, LGPL-2.1-or-later, LGPL-2.1-only, CC-BY-4.0, LicenseRef-scancode-protobuf, OpenSSL, LicenseRef-sc...
2,023
openGauss-server
opengauss-mirror
C
Code
127
386
/* * redo_common.h * * Utilities for replaying WAL records. * * openGauss transaction log manager utility routines * * Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd. * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of Cal...
44,421
https://github.com/mahmoudelshenawy/simple-invoice-system/blob/master/app/Http/Controllers/InvoiceController.php
Github Open Source
Open Source
MIT
null
simple-invoice-system
mahmoudelshenawy
PHP
Code
599
2,537
<?php namespace App\Http\Controllers; use App\Client; use App\Exports\InvoicesExport; use App\Invoice; use App\User; use Illuminate\Http\Request; use App\Service; use App\Product; use App\Http\Requests\InvoiceRequest; use App\InvoiceAttachments; use App\InvoiceDetails; use App\Notifications\NewInvoiceAdded; use App\N...
35,325
https://github.com/danielkalen/rollup-plugin-commonjs/blob/master/test/function/inline/multiply.js
Github Open Source
Open Source
MIT
2,022
rollup-plugin-commonjs
danielkalen
JavaScript
Code
13
22
module.exports = function ( a, b ) { return a * b; };
34,107
https://github.com/drmattsuu/AvatarLegendsVTT/blob/master/test/example.test.ts
Github Open Source
Open Source
MIT
null
AvatarLegendsVTT
drmattsuu
TypeScript
Code
20
46
describe('An example test', () => { it('will always succeed', () => { expect(true).toBeTruthy(); }); }); // Add real tests here.
50,838
https://github.com/hmcts/ia-case-api/blob/master/src/test/java/uk/gov/hmcts/reform/iacaseapi/domain/entities/MakeAnApplicationTest.java
Github Open Source
Open Source
MIT
2,023
ia-case-api
hmcts
Java
Code
198
806
package uk.gov.hmcts.reform.iacaseapi.domain.entities; import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.jupiter.api.Assertions.assertEquals; import java.util.Collections; import java.util.List; import org.junit.jupiter.api.Test; import uk.gov.hmcts.reform.iacaseapi.domain.enti...
47,401
https://github.com/madeso/euphoria/blob/master/libs/core/src/core/canvaslogic.h
Github Open Source
Open Source
MIT
2,021
euphoria
madeso
C
Code
56
199
#pragma once #include "core/vec2.h" #include "core/range.h" namespace euphoria::core { struct CanvasLogic { // canvas view Vec2f scroll = Vec2f {0, 0}; float scale = 1; // "config" Range<float> scale_range = make_range(0.1f, 15.0f); void pan(const Vec2...
18,529
https://github.com/cmstar/go-conv/blob/master/conv_primitive.go
Github Open Source
Open Source
MIT
2,021
go-conv
cmstar
Go
Code
1,207
3,610
package conv import ( "fmt" "math" "reflect" "strconv" ) // Implements conversions between booleans, strings and numbers. var primitive primitiveConv type primitiveConv struct{} func (c primitiveConv) toPrimitive(v interface{}, dstKind reflect.Kind) (interface{}, error) { switch dstKind { case reflect.Bool: ...
36,815
https://github.com/busarovalex/accounting/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,019
accounting
busarovalex
Ignore List
Code
4
24
/test_data/ /target/ **/*.rs.bk config.yml
13,714
https://github.com/EnMasseProject/enmasse/blob/master/api-model/src/main/java/io/enmasse/admin/model/v1/ConsoleServiceSpec.java
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, CDDL-1.0, GPL-2.0-only, Apache-2.0
2,022
enmasse
EnMasseProject
Java
Code
272
978
/* * Copyright 2019, EnMasse authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.enmasse.admin.model.v1; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import io.fabric8.kubernete...
52,625
https://github.com/sinjoywong/tencentcloud-sdk-cpp/blob/master/cme/src/v20191029/model/VodPullInputInfo.cpp
Github Open Source
Open Source
Apache-2.0
null
tencentcloud-sdk-cpp
sinjoywong
C++
Code
293
1,121
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
35,497
https://github.com/felipepoliveira/lore-framework/blob/master/lore/persistence/Query.php
Github Open Source
Open Source
MIT
2,018
lore-framework
felipepoliveira
PHP
Code
480
1,112
<?php namespace lore\persistence; require_once "QueryFilter.php"; /** * Linked based class to make queries in repository. * This is a abstraction and must be implemented in the Repository implementation works * Class Query * @see Repository * @package lore\persistence */ abstract class Query { //The fetch m...
5,073
https://github.com/nextools/metarepo/blob/master/packages/refun/src/redux-state-factory.ts
Github Open Source
Open Source
MIT
2,021
metarepo
nextools
TypeScript
Code
149
461
import { useContext, useRef, useEffect, useState } from 'react' import type { Context } from 'react' import type { Store } from 'redux' import { EMPTY_OBJECT, EMPTY_ARRAY, NOOP } from 'tsfn' import type { TExtend } from 'tsfn' import { shallowEqualByKeys } from './utils' export const ReduxStateFactory = <S>(context: C...
19,595
https://github.com/DrSensor/webassembly-loader/blob/master/src/transform.ts
Github Open Source
Open Source
MIT
2,020
webassembly-loader
DrSensor
TypeScript
Code
203
571
import { WebAssemblyLoaderExportType, WebAssemblyLoaderOptions } from './options'; import wrap from './wrapper'; export type ModuleType = 'cjs' | 'esm'; interface TransformModuleOptions extends Required<WebAssemblyLoaderOptions> { errorHandler?: (message: string) => void | never; module?: ModuleType; } //#re...
22,717
https://github.com/toanvo/netcorekit/blob/master/samples/TodoApi/Infrastructure/Gateways/UserGateway.cs
Github Open Source
Open Source
MIT
2,018
netcorekit
toanvo
C#
Code
47
202
using System; using System.Threading.Tasks; using NetCoreKit.Samples.TodoAPI.Domain; using NetCoreKit.Samples.TodoAPI.Dtos; using NetCoreKit.Utils.Attributes; using Task = System.Threading.Tasks.Task; namespace NetCoreKit.Samples.TodoAPI.Infrastructure.Gateways { [AutoScanAwareness] public class UserGateway : IUse...
542
https://github.com/LiShenglin/LoveFreshBeen/blob/master/爱鲜蜂/baseFramework/Classes/Other/CHGlobeConst.m
Github Open Source
Open Source
Apache-2.0
2,016
LoveFreshBeen
LiShenglin
Objective-C
Code
137
597
// // CHGlobeConst.m // baseFramework // // Created by chenangel on 16/5/27. // Copyright © 2016年 chuhan. All rights reserved. // #import "CHGlobeConst.h" @implementation CHGlobeConst #pragma mark - 需要根据类型切换的key NSString* CHAPPName; NSString* CHAPPURLScheme; NSString* CHMapApiKey; NSString* CHUmengKey; NSString* ...
2,972