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/sakshamtaneja21/Bca-III/blob/master/C++ Lab/file-19.cpp
Github Open Source
Open Source
MIT
null
Bca-III
sakshamtaneja21
C++
Code
199
489
//Multiple Inheritance #include <iostream> #include <conio.h> using namespace std; class A{ protected: int a; public: void get_a(){ cout << "Enter A: "; cin >> a; } }; class B{ protected: int b; public: void get_b(){ cout << "Enter B: "; cin >> b; } }; class C : public A, public B{ public: ...
4,851
https://github.com/yuri-sagalovich/nextcaller-ruby-api/blob/master/examples/platform_get_user.rb
Github Open Source
Open Source
MIT
2,017
nextcaller-ruby-api
yuri-sagalovich
Ruby
Code
105
404
require 'nextcaller_client' api_username = 'XXXXX' api_password = 'XXXXX' sandbox = false account_id = 'user12345' client = NextcallerClient::NextCallerPlatformClient.new(api_username, api_password, sandbox) begin response_content = client.get_platform_account(account_id) puts response_content.class # Response i...
7,834
https://github.com/jbalam5/RegistryTime/blob/master/ModelLayer/EmployeeML.cs
Github Open Source
Open Source
MIT
2,019
RegistryTime
jbalam5
C#
Code
362
689
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ModelLayer { public class EmployeeML { public class DataBase { public const string Id = "id"; public const string Rfc = "rfc"; publi...
53,632
https://github.com/collinwright/nixpkgs/blob/master/pkgs/os-specific/linux/kernel/mptcp-config.nix
Github Open Source
Open Source
MIT
2,022
nixpkgs
collinwright
null
Spoken
85
270
{ lib }: with lib.kernel; { # DRM_AMDGPU = yes; IPV6 = yes; MPTCP = yes; IP_MULTIPLE_TABLES = yes; # Enable advanced path-managers... MPTCP_PM_ADVANCED = yes; MPTCP_FULLMESH = yes; MPTCP_NDIFFPORTS = yes; # ... but use none by default. # The default i...
51,317
https://github.com/dotnet-shashlik/shashlik/blob/master/src/Shashlik.EfCore/EfCoreExtensions.cs
Github Open Source
Open Source
MIT
2,021
shashlik
dotnet-shashlik
C#
Code
1,091
4,719
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Shashlik.Utils.Extensions; using System.Linq.Expressions; using System.Threading.Tasks; using Shashlik.Kernel; using Microsoft.Extensions.DependencyModel; using Microsoft.Extensions.De...
16,875
https://github.com/4Science/DSpace/blob/master/dspace-api/src/main/java/org/dspace/storage/rdbms/migration/V5_7_2017_05_05__DS_3431_Add_Policies_for_BasicWorkflow.java
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, MPL-1.0, W3C, GPL-1.0-or-later, LicenseRef-scancode-unicode, LGPL-2.1-or-later, LGPL-2.0-or-later, CDDL-1.0, MIT, Apache-2.0, JSON, EPL-1.0, LicenseRef-scancode-public-domain, LicenseRef-scancode-unicode-icu-58
2,023
DSpace
4Science
Java
Code
216
565
/** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ package org.dspace.storage.rdbms.migration; import org.dspace.storage.rdbms.DatabaseUtils; import org....
47,947
https://github.com/code-rover/flutter_admin_backend/blob/master/src/main/java/com/cry/flutter/admin/service/impl/DictServiceImpl.java
Github Open Source
Open Source
MIT
2,021
flutter_admin_backend
code-rover
Java
Code
44
214
package com.cry.flutter.admin.service.impl; import com.cry.flutter.admin.entity.Dict; import com.cry.flutter.admin.mapper.DictMapper; import com.cry.flutter.admin.service.IDictService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Service; /** * <p> * 服务实...
36,084
https://github.com/Eric-Arellano/rust/blob/master/src/test/ui/error-codes/E0433.rs
Github Open Source
Open Source
ECL-2.0, Apache-2.0, MIT-0, MIT
2,022
rust
Eric-Arellano
Rust
Code
12
26
fn main () { let map = NonExistingMap::new(); //~ ERROR E0433 }
47,568
https://github.com/coinmasterlisting/crabada.py/blob/master/src/tests/testConfig.py
Github Open Source
Open Source
MIT
2,022
crabada.py
coinmasterlisting
Python
Code
25
66
from src.common.config import users from pprint import pprint # VARS # TEST FUNCTIONS def testConfig() -> None: pprint(">>> USERS & TEAMS") pprint(users) # EXECUTE testConfig()
37,302
https://github.com/Samsung/Castanets/blob/master/third_party/android_29_sdk/public/sources/android-29/com/android/setupwizardlib/view/IntrinsicSizeFrameLayout.java
Github Open Source
Open Source
BSD-3-Clause, Apache-2.0, LGPL-2.0-or-later, GPL-1.0-or-later, MIT
2,021
Castanets
Samsung
Java
Code
394
1,004
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
30,154
https://github.com/iridium-browser/iridium-browser/blob/master/third_party/perfetto/ui/src/frontend/topbar.ts
Github Open Source
Open Source
BSD-3-Clause, Apache-2.0, LGPL-2.0-or-later, MIT, GPL-1.0-or-later, LicenseRef-scancode-unknown-license-reference
2,023
iridium-browser
iridium-browser
TypeScript
Code
779
2,355
// Copyright (C) 2018 The Android Open Source Project // // 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 applic...
47,764
https://github.com/clarat-org/clarat/blob/master/test/helpers/application_helper_test.rb
Github Open Source
Open Source
MIT
2,019
clarat
clarat-org
Ruby
Code
171
718
# frozen_string_literal: true require_relative '../test_helper' class ApplicationHelperTest < ActionView::TestCase include ApplicationHelper describe '#default_canonical_url' do before do @request = MiniTest::Mock.new expects(:request).returns(@request) end it 'replaces the non-default f...
26,725
https://github.com/novelrt/NovelRT/blob/master/scripts/novelrt-build.linux.Dockerfile
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-proprietary-license, BSD-3-Clause, LGPL-2.1-only, LicenseRef-scancode-other-permissive, MIT, LicenseRef-scancode-unknown-license-reference
2,023
NovelRT
novelrt
Dockerfile
Code
143
690
FROM mcr.microsoft.com/dotnet/sdk:6.0-focal RUN apt update \ && apt install -y \ gnupg \ dirmngr \ && curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg \ && curl -fsSL https://apt.kitware.com/keys/ki...
22,533
https://github.com/yunpian/yunpian-stargate/blob/master/yunpian-stargate-core/src/main/java/com/yunpian/stargate/serialize/SerializeStargateClientEncode.java
Github Open Source
Open Source
MIT
2,019
yunpian-stargate
yunpian
Java
Code
101
410
package com.yunpian.stargate.serialize; import com.yunpian.stargate.core.context.ProducerContext; import com.yunpian.stargate.core.process.IStargateClientEncod; import com.yunpian.stargate.core.vo.StargateMessage; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; impo...
1,982
https://github.com/ajaysaini725/composer/blob/master/tests/algorithms/test_blurpool_algorithm.py
Github Open Source
Open Source
Apache-2.0
null
composer
ajaysaini725
Python
Code
357
1,632
# Copyright 2021 MosaicML. All Rights Reserved. """ Test the blurpool algorithm. Primitives are tested in test_blurpool.py """ import itertools from typing import List from unittest.mock import MagicMock import pytest import torch from composer.algorithms import BlurPool, BlurPoolHparams from composer.algorithms.blu...
50,698
https://github.com/DiamondYZ/gap_vue/blob/master/src/styles/index.scss
Github Open Source
Open Source
MIT
2,021
gap_vue
DiamondYZ
SCSS
Code
2,194
8,772
@import './variables.scss'; @import './mixin.scss'; @import './transition.scss'; @import './element-ui.scss'; @import './sidebar.scss'; @import './btn.scss'; body { height: 100%; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-family: Helvetic...
17,188
https://github.com/TheMrKochan/PackTracker/blob/master/PackHistorian/View/PackNameConverter.cs
Github Open Source
Open Source
MIT
2,021
PackTracker
TheMrKochan
C#
Code
3,978
13,606
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; using HearthDb.Enums; using Hearthstone_Deck_Tracker; namespace PackTracker.View { class PackNameConverter : IValueConverter { static Config _...
37,264
https://github.com/gojekfarm/ziggurat-go/blob/master/logger.go
Github Open Source
Open Source
Apache-2.0
2,022
ziggurat-go
gojekfarm
Go
Code
39
116
package ziggurat // StructuredLogger defines an interface for structured logging type StructuredLogger interface { Info(message string, kvs ...map[string]interface{}) Debug(message string, kvs ...map[string]interface{}) Warn(message string, kvs ...map[string]interface{}) Error(message string, err error, kvs ...map...
53,494
https://github.com/flutter-fast-kit/fk_logs/blob/master/lib/fk_logs/loggy/src/printers/loggy_printer.dart
Github Open Source
Open Source
MIT
2,022
fk_logs
flutter-fast-kit
Dart
Code
26
52
part of loggy; /// Printer used to show logs, this can be easily swapped or replaced abstract class LogPrinter { const LogPrinter(); void onLog(LogRecord record); }
30,447
https://github.com/crdschurch/crds-signin-checkin/blob/master/front_end/src/assets/scss/main.scss
Github Open Source
Open Source
BSD-2-Clause
2,021
crds-signin-checkin
crdschurch
SCSS
Code
32
161
@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); @import '_variables.scss'; @import '_bootstrap.scss'; @import '_utilities.scss'; @import '_icons.scss'; // @import '_cards.scss'; @import '_guest.scss'; @import '_header.scss'; @import '_modal.scss'; @import '_admin.scss'; // @import '_room.scss';...
6,291
https://github.com/282857484/SNIMS_iOS_client/blob/master/Qiaokeren_IOS/ChatDemo-UI2.0/ChatDemo-UI2.0/qiaokeren/personalInfo/Model/getUserCredit_S.m
Github Open Source
Open Source
Apache-2.0
2,016
SNIMS_iOS_client
282857484
Objective-C
Code
80
414
// // getUserCredit_S.m // ChatDemo-UI2.0 // // Created by 杨珺舟 on 15-7-21. // Copyright (c) 2015年 杨珺舟. All rights reserved. // #import "getUserCredit_S.h" #import "JZ_agreement_s.h" @implementation getUserCredit_S @synthesize p; @synthesize UserID; @synthesize UploadTime; @synthesize Mark; @synthesize Content; @...
23,846
https://github.com/menuxx/hercules/blob/master/wxnotify/wx_msg_route.js
Github Open Source
Open Source
Apache-2.0
2,017
hercules
menuxx
JavaScript
Code
37
130
/** * 微信消息路由 routingKey * InfoType=component_verify_ticket * MsgType=event&Event=weapp_audit_success * usage: * WXMsgRouter('MsgType=event&Event=weapp_audit_success', function (msg, req, resp) { * * }) */ const qs = require('querystring') const WXMsgRoute = function (routingKey, callback) { var opts =...
51,247
https://github.com/dads-software-brotherhood/sekc/blob/master/src/main/webapp/bower_components/goJs/extensionsTS/OrthogonalLinkReshapingTool.ts
Github Open Source
Open Source
Apache-2.0, DOC
2,017
sekc
dads-software-brotherhood
TypeScript
Code
777
2,060
"use strict" /* * Copyright (C) 1998-2017 by Northwoods Software Corporation. All Rights Reserved. */ import * as go from "../release/go"; // A custom Tool for dragging a segment of an orthogonal link. /** * This OrthogonalLinkReshapingTool class allows for a Link's path to be modified by the user * via the draggin...
9,220
https://github.com/xiangfly11/MyDailyProject/blob/master/MyDaily/VideoViewController.m
Github Open Source
Open Source
MIT
2,017
MyDailyProject
xiangfly11
Objective-C
Code
466
1,801
// // VideoViewController.m // MyDaily // // Created by 李嘉翔 on 16/7/18. // Copyright © 2016年 Jiaxiang Li. All rights reserved. // #import "VideoViewController.h" #import "CustomVideoTableCell.h" #import "VideoModel.h" #import <AVFoundation/AVFoundation.h> #import <AVKit/AVKit.h> @interface VideoViewController ()<...
3,686
https://github.com/krzpiesiewicz/play-squeryl-twirl-forms/blob/master/build.sbt
Github Open Source
Open Source
MIT
null
play-squeryl-twirl-forms
krzpiesiewicz
Scala
Code
231
814
name := """play-and-squeryl""" organization := "com.example" version := "1.0-SNAPSHOT" lazy val root = (project in file(".")).enablePlugins(PlayScala) scalaVersion := "2.12.6" routesGenerator := play.routes.compiler.InjectedRoutesGenerator // for functional programming: libraryDependencies += "org.scalaz" %% "scal...
49,571
https://github.com/belchushka/MenuControll/blob/master/database/seeders/DatabaseSeeder.php
Github Open Source
Open Source
MIT
null
MenuControll
belchushka
PHP
Code
58
271
<?php namespace Database\Seeders; use App\Models\Day; use App\Models\User; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\Hash; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { User::create...
39,456
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/百度网盘-8.6.0(越狱应用)_headers/CUMenuForBaiDuView.h
Github Open Source
Open Source
MIT
2,018
Just_a_dumper
i-gaven
Objective-C
Code
81
351
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import <UIKit/UIView.h> @class UIImageView, UILabel, UINavigationController; @interface CUMenuForBaiDuView : UIView { UINavigati...
20,531
https://github.com/goodhacker/virus_total_api_for_apks/blob/master/vt_api.py
Github Open Source
Open Source
MIT
2,014
virus_total_api_for_apks
goodhacker
Python
Code
218
743
#!/usr/bin/python # -*- coding: utf-8 -*- import requests import json import time class vtapi(): def __init__(self, verbose=False): self.verbose = verbose self.api = "79cfe4a9acf92f308311b7d877ed4b27f286c493c955d701f51094dfb7e54dbd" #replace by your publick api key self.baseurl =...
33,502
https://github.com/GNOME/gnome-user-docs/blob/master/system-admin-guide/ko/ko.po
Github Open Source
Open Source
CC-BY-3.0
2,023
gnome-user-docs
GNOME
Gettext Catalog
Code
20,000
72,966
# Korean translation of the GNOME system admin guide # Copyright (C) 2018 gnome-user-docs's authors # This file is distributed under the same license as the gnome-user-docs package. # Jaeun_Cho <ckr971028@gmail.com>, 2018. # Seong-ho Cho <shcho@gnome.org>, 2019, 2021, 2023. # msgid "" msgstr "" "Project-Id-Version: gno...
51,952
https://github.com/Underpin-WP/underpin/blob/master/lib/Enums/Rest.php
Github Open Source
Open Source
MIT
2,023
underpin
Underpin-WP
PHP
Code
24
55
<?php namespace Underpin\Enums; enum Rest: string { case Get = 'GET'; case Post = 'POST'; case Put = 'PUT'; case Delete = 'DELETE'; }
49,738
https://github.com/dqhplhzz2008/Study-notes/blob/master/C-plus-plus/cpp_exercise/Chapter15/Exercise1/use_tvfm.cpp
Github Open Source
Open Source
MIT
2,020
Study-notes
dqhplhzz2008
C++
Code
67
254
//use_tvfm.cpp -- use_tv.cpp modified to test tvfm.h #include <iostream> #include "tvfm.h" // only change to use_tv.cpp int main() { using std::cout; Tv s27; cout << "Initial settings for 27\" TV:\n"; s27.settings(); s27.onoff(); s27.chanup(); cout << "\nAdjusted settings for 27\" TV:\n";...
12,499
https://github.com/renol767/CMS-CodeIgniter/blob/master/article/application/controllers/Users.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,021
CMS-CodeIgniter
renol767
PHP
Code
298
1,600
<?php class Users extends CI_Controller{ public function register(){ if (!$this->session->userdata('logged_in')){ redirect('users/login'); } $data['title'] = 'Sign Up'; $this->form_validation->set_rules('name', 'Name', 'required'); $this->form_validation->set_rules('username', 'Username', 'requir...
25,761
https://github.com/ariesetiadi00/ci4-login/blob/master/app/Views/admin/index.php
Github Open Source
Open Source
MIT
2,020
ci4-login
ariesetiadi00
PHP
Code
352
1,580
<?= $this->extend('layout/template_main'); ?> <?= $this->section('content'); ?> <!-- <h1>Dashboard</h1> --> <table class="table"> <tr> <th> <i class="fas fa-money-check-alt"></i> Harga (Rp) </th> <th> <i class="fas fa-users"></i> Jumlah Memb...
44,813
https://github.com/kazunetakeda25/press-play-ionic-vue/blob/master/src/views/signup/privacy.vue
Github Open Source
Open Source
Apache-2.0
2,020
press-play-ionic-vue
kazunetakeda25
Vue
Code
131
649
<template> <form class="ion-page" @submit.prevent="saveSettings"> <ion-content color="transparent" fullscreen> <ion-grid class="align-content-center"> <ion-row class="ion-justify-content-center ion-align-items-center"> <ion-col size="12" size-md="6" size-lg="4"> <aspect-ratio ...
17,634
https://github.com/IntegralTeam/comakery-eos-vesting/blob/master/cmkryvesting_tests/vesting_2y_fired_2y_base_test.cpp
Github Open Source
Open Source
MIT
null
comakery-eos-vesting
IntegralTeam
C++
Code
125
1,136
#include "common.hpp" BOOST_AUTO_TEST_SUITE(eosdt_exchang_tests) BOOST_AUTO_TEST_CASE(vesting_2y_fired_2y_base_test) try { TESTER chain; if (!test_necessary(chain, "vesting_2y_fired_2y_base_test")) { return; } PRINT_LABEL(chain, "started"); contract_set(chai...
28,560
https://github.com/Garethp/php-ews/blob/master/src/API/Type/IsLessThanOrEqualToType.php
Github Open Source
Open Source
2,022
php-ews
Garethp
PHP
Code
21
69
<?php namespace garethp\ews\API\Type; /** * Class representing IsLessThanOrEqualToType * * * XSD Type: IsLessThanOrEqualToType */ class IsLessThanOrEqualToType extends TwoOperandExpressionType { }
19,118
https://github.com/mDNSService/go-airplay/blob/master/vendor/github.com/gongo/text-parameters/encode.go
Github Open Source
Open Source
MIT
null
go-airplay
mDNSService
Go
Code
149
518
package parameters import ( "io" "reflect" "strconv" ) type Encoder struct { writer io.Writer } func NewEncoder(w io.Writer) *Encoder { return &Encoder{ writer: w, } } func (e *Encoder) Encode(v interface{}) error { rv := reflect.ValueOf(v) if rv.Kind() != reflect.Ptr || rv.Elem().Kind() != reflect.Struc...
35,534
https://github.com/jbmarcos/Python-Curso-em-video-Mundo-1-2-3-/blob/master/ex070 # loja baratão tratando dados while True if break .py
Github Open Source
Open Source
MIT
2,021
Python-Curso-em-video-Mundo-1-2-3-
jbmarcos
Python
Code
166
367
# loja baratão tratando dados while True if break total = mil = menor = quant = 0 barato = '' print(' ') print('~~~~~~~~~~~~~~~~~~~~ LOJA SUPER BARATÃO ~~~~~~~~~~~~~~~~~~~~') while True: print(' ') nome = str(input('Qual o nome do produto? ')) preco = int(input('Qual o preço do produto? R$ ')) quan...
46,647
https://github.com/sedazehrayetmis/LaravelDersKayit/blob/master/routes/web.php
Github Open Source
Open Source
MIT
null
LaravelDersKayit
sedazehrayetmis
PHP
Code
50
299
<?php use Illuminate\Support\Facades\Route; use App\Http\Controllers\PostsController; use App\Http\Controllers\DersController; Route::get('/', function () { return view('welcome'); }); //Route::get('/posts', [PostsController::class, 'index']); //Route::post('/posts', [PostsController::class, 'store']); //Route:...
44,309
https://github.com/loopme/android-united-sdk/blob/master/loopme-sdk/src/main/java/com/loopme/video360/strategy/interactive/AbsInteractiveStrategy.java
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,023
android-united-sdk
loopme
Java
Code
35
150
package com.loopme.video360.strategy.interactive; import com.loopme.video360.MD360Director; import com.loopme.video360.strategy.IModeStrategy; import java.util.List; public abstract class AbsInteractiveStrategy implements IModeStrategy, IInteractiveMode { private List<MD360Director> mDirectorList; public Ab...
45,787
https://github.com/segfaultmagnet/squirtlebot/blob/master/slackbot/actionhandler/actionhandler.py
Github Open Source
Open Source
Beerware
2,017
squirtlebot
segfaultmagnet
Python
Code
588
1,519
""" Defines the specific behavior of a bot. This class can be used to search text for specific keywords or regular expressions, returning a Keyword indicating the type of response to be given. It also provides definitions for those responses and a method for executing them on behalf of the bot. """ __author__ = 'M...
24,135
https://github.com/lnf-web/lnf/blob/master/wp-content/plugins/lnf-plugin-pack/lnf-event-registration/plugin.php
Github Open Source
Open Source
MIT
null
lnf
lnf-web
PHP
Code
15
120
<?php define('LNF_EVENT_API', 'https://lnf.umich.edu/data/registration/api'); require_once('class.php'); $lnf_event_registration = new LnfEventRegistration(); add_action('wp_enqueue_scripts', array($lnf_event_registration, 'enqueue_scripts')); add_shortcode('lnf_event_registration', array($lnf_event_registration, 're...
2,670
https://github.com/dungang/GeeTask/blob/master/aliyunlog/models/ProjectSearch.php
Github Open Source
Open Source
BSD-3-Clause
null
GeeTask
dungang
PHP
Code
59
234
<?php namespace app\aliyunlog\models; use app\aliyunlog\components\DataSearch; class ProjectSearch extends DataSearch { /** * 日志api请求的响应结果 * * @var \Aliyun_Log_Models_ListProjectResponse */ protected $response; public function init(){ $this->key = 'projectName'; } ...
40,736
https://github.com/shinesolutions/swagger-aem/blob/master/clients/scala-akka/generated/src/main/scala/org/openapitools/client/api/CustomApi.scala
Github Open Source
Open Source
Apache-2.0
2,021
swagger-aem
shinesolutions
Scala
Code
222
875
/** * Adobe Experience Manager (AEM) API * Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API * * The version of the OpenAPI document: 3.5.0-pre.0 * Contact: opensource@shinesolutions.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * ...
48,323
https://github.com/tqrg-bot/mongo-php-driver-legacy/blob/master/types/db_ref.h
Github Open Source
Open Source
PHP-3.01, Apache-2.0
2,021
mongo-php-driver-legacy
tqrg-bot
C
Code
244
552
/** * Copyright 2009-2014 MongoDB, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
49,288
https://github.com/rexc159/StellarisDK/blob/master/src/StellarisDK/FileClasses/Tradition.java
Github Open Source
Open Source
MIT
2,020
StellarisDK
rexc159
Java
Code
83
246
package StellarisDK.FileClasses; import StellarisDK.FileClasses.Helper.DataEntry; import StellarisDK.GUI.TraditionUI; public class Tradition extends GenericData { private boolean ap; public Tradition(boolean ap) { super(); if (ap) { this.type = new DataEntry("tradition", 1011); ...
26,768
https://github.com/kenzaburo/nanoGo/blob/master/accountManage_test.go
Github Open Source
Open Source
MIT
2,018
nanoGo
kenzaburo
Go
Code
353
1,052
package nanoGo_test import ( "fmt" "testing" "time" ) const wallet = "2E221DE7A48B6730F1E083464F732075CF68E02355245DF2E019FFA716D02977" const nanodeRepresentative = "xrb_1nanode8ngaakzbck8smq6ru9bethqwyehomf79sae1k7xd47dkidjqzffeg" func TestAccountAddRemove(t *testing.T) { newAccount, err := client.AccountCreat...
5,562
https://github.com/proglang/dts-generate-results/blob/master/results/4_extract-code/code/pigpio/pigpio_17.js
Github Open Source
Open Source
MIT
2,021
dts-generate-results
proglang
JavaScript
Code
30
111
const Gpio = require('pigpio').Gpio; const led = new Gpio(17, {mode: Gpio.OUTPUT}); const button = new Gpio(4, { mode: Gpio.INPUT, pullUpDown: Gpio.PUD_DOWN, edge: Gpio.EITHER_EDGE }); button.on('interrupt', (level) => { led.digitalWrite(level); });
29,163
https://github.com/nbdy/adocs/blob/master/app/src/main/java/io/eberlein/adocs/objects/events/EventSearchFoundItem.java
Github Open Source
Open Source
MIT
2,020
adocs
nbdy
Java
Code
26
89
package io.eberlein.adocs.objects.events; import io.eberlein.adocs.objects.Item; public class EventSearchFoundItem { private Item item; public EventSearchFoundItem(Item item){ this.item = item; } public Item getItem() { return item; } }
44,816
https://github.com/kli-nlpr/FaceDetection-ConvNet-3D/blob/master/mshadow/mshadow/extension/take_grad.h
Github Open Source
Open Source
Apache-2.0
2,021
FaceDetection-ConvNet-3D
kli-nlpr
C
Code
363
1,170
/*! * Copyright (c) 2015 by Contributors * \file take_grad.h * \brief * \author Bing Xu */ #ifndef MSHADOW_EXTENSION_TAKE_GRAD_H_ #define MSHADOW_EXTENSION_TAKE_GRAD_H_ #include "../extension.h" namespace mshadow { namespace expr { /*! \brief Calculate embedding gradient * \tparam IndexExp type of index expres...
22,950
https://github.com/JetBrains/intellij-community/blob/master/plugins/performanceTesting/src/com/jetbrains/performancePlugin/commands/FreezeUICommand.kt
Github Open Source
Open Source
Apache-2.0
2,023
intellij-community
JetBrains
Kotlin
Code
92
292
package com.jetbrains.performancePlugin.commands import com.intellij.openapi.application.EDT import com.intellij.openapi.ui.playback.PlaybackContext import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import org.jetbrains.annotations.NonNls /** * The `FreezeUICommand` class represents a comma...
25,744
https://github.com/mugurlu0/MugurluApp/blob/master/MugurluApp/routes/web.php
Github Open Source
Open Source
MIT
2,021
MugurluApp
mugurlu0
PHP
Code
123
560
<?php use App\Models\User; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Route; use App\Http\Controllers\CartController; use App\Http\Controllers\PageController; use Symfony\Component\Console\Input\Input; use App\Http\Controllers\ProductsController; use App\Http\Controllers\DashboardController; ...
33,816
https://github.com/EnesAltinisik/Inter/blob/master/InternshipER/Site.Mobile.Master.designer.cs
Github Open Source
Open Source
MIT
null
Inter
EnesAltinisik
C#
Code
392
1,039
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //-----------------------------------------...
53,764
https://github.com/wangteng6680/SoSwiftHelper/blob/master/Example/SoSwiftHelper/Capture/SwiftCapture.swift
Github Open Source
Open Source
MIT
null
SoSwiftHelper
wangteng6680
Swift
Code
239
844
// // SwiftCapture.swift // NIOSwiftHelper_Example // // Created by Teng Wang 王腾 on 2020/7/2. // Copyright © 2020 CocoaPods. All rights reserved. // import UIKit import AVFoundation import AudioToolbox import VideoToolbox enum CaptureStyple { case video case audio case all } class SwiftCapture: NSObject { v...
41,792
https://github.com/lizp08780/springboot/blob/master/springboot-thymeleaf/src/main/java/com/lizp/springboot/controller/system/RoleController.java
Github Open Source
Open Source
Apache-2.0
2,019
springboot
lizp08780
Java
Code
70
341
package com.lizp.springboot.controller.system; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.sp...
25,822
https://github.com/iqbmo04/mockiavelli/blob/master/src/controllers/PlaywrightController.ts
Github Open Source
Open Source
MIT
2,021
mockiavelli
iqbmo04
TypeScript
Code
298
846
import { BrowserController, BrowserRequest, BrowserRequestHandler, BrowserRequestType, ResponseData, } from './BrowserController'; import { getOrigin, tryJsonParse } from '../utils'; import { parse } from 'url'; export class PlaywrightController implements BrowserController { constructor( ...
31,365
https://github.com/LaloBerro/CleanCore/blob/master/Editor/Unity Extension Editor/Custom Windows/CleanCodeCreator.cs
Github Open Source
Open Source
MIT
null
CleanCore
LaloBerro
C#
Code
635
1,725
using UnityEngine; using UnityEditor; using System.IO; using System.Threading.Tasks; namespace CleanCore.EditorExtensions.Windows { public class CleanCodeCreator : EditorWindow { private string _scriptsFolderPath; private string _folderName; private string _sceneName; [MenuItem...
4,970
https://github.com/wojtex/whip6-pub/blob/master/nesc/whip6/platforms/boards/cc26xxbased/cc2650dk/scif_pwrtest/PlatformSCIFPwrtestPub.nc
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause-Clear, Intel, BSD-3-Clause
2,017
whip6-pub
wojtex
null
Spoken
58
141
/* * whip6: Warsaw High-performance IPv6. * * Copyright (c) 2012-2017 Szymon Acedanski * All rights reserved. * * This file is distributed under the terms in the attached LICENSE * files. */ configuration PlatformSCIFPwrtestPub { provides interface OnOffSwitch; } implementation { components new Ha...
40,483
https://github.com/Sentimentron/PRJ9081/blob/master/semeval-submission/src/main/java/uk/ac/warwick/dcs/SemEval/io/SemEvalTaskAWriter.java
Github Open Source
Open Source
MIT
2,014
PRJ9081
Sentimentron
Java
Code
152
677
package uk.ac.warwick.dcs.SemEval.io; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.List; import uk.ac.warwick.dcs.SemEval.models.AnnotationType; import uk.ac.warwick.dcs.SemEval.models.Tweet; import uk.ac.warwick.dcs.SemEval.models....
17,888
https://github.com/orgtom78/originate-client/blob/master/src/admin/views/supplier/AdminNewSupplierView/FormModel/formInitialValues.js
Github Open Source
Open Source
MIT
null
originate-client
orgtom78
JavaScript
Code
187
1,224
import NewSupplierFormModel from "./NewSupplierFormModel"; const { formField: { identityId, supplier_logo, supplier_name, supplier_type, supplier_date_of_incorporation, supplier_address_city, supplier_address_street, supplier_address_postalcode, supplier_country, supplier_indus...
52,510
https://github.com/MCMatters/todo/blob/master/database/seeds/TasksSeeder.php
Github Open Source
Open Source
MIT
2,019
todo
MCMatters
PHP
Code
32
94
<?php declare(strict_types = 1); use App\Models\Task; use Illuminate\Database\Seeder; /** * Class TasksSeeder */ class TasksSeeder extends Seeder { /** * @return void */ public function run(): void { factory(Task::class, 200)->create(); } }
46,348
https://github.com/LeonardAukea/lakeFS/blob/master/pkg/graveler/ref/commit_generation_priority_queue.go
Github Open Source
Open Source
Apache-2.0
2,021
lakeFS
LeonardAukea
Go
Code
117
384
package ref import ( "github.com/treeverse/lakefs/pkg/graveler" ) // CommitsGenerationPriorityQueue implements heap.Interface such that the commit with the greatest Generation value is // at the root of the heap. type CommitsGenerationPriorityQueue []*graveler.CommitRecord func NewCommitsGenerationPriorityQueue() C...
32,263
https://github.com/inloco/Semantic-UI-React/blob/master/docs/src/examples/modules/Popup/States/index.js
Github Open Source
Open Source
MIT
2,023
Semantic-UI-React
inloco
JavaScript
Code
56
184
import React from 'react' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' const PopupStatesExamples = () => ( <ExampleSection title='States'> <ComponentExample title='Disabled' description='A...
35,995
https://github.com/themakshter/app/blob/master/src/app/components/OnboardingChecklist/report-item.tsx
Github Open Source
Open Source
MIT
null
app
themakshter
TypeScript
Code
99
251
import * as React from 'react'; import {OnboardingChecklistItem} from './item'; import {hasOrgGeneratedReport, IHasOrgGeneratedReport} from 'apollo/modules/organisation'; interface IProps { data?: IHasOrgGeneratedReport; index: number; minimal?: boolean; // defaults to false } const Inner = (p: IProps) => { c...
3,710
https://github.com/aminya/rocket/blob/master/packages/cli/index.cjs
Github Open Source
Open Source
MIT
2,021
rocket
aminya
JavaScript
Code
27
114
const { setComputedConfig, getComputedConfig } = require('./src/public/computedConfig.cjs'); const { generateEleventyComputed } = require('./src/public/generateEleventyComputed.cjs'); const { createSocialImage } = require('./src/public/createSocialImage.cjs'); module.exports = { setComputedConfig, getComputedConfi...
24,315
https://github.com/piccolo-orm/piccolo/blob/master/tests/example_apps/mega/tables.py
Github Open Source
Open Source
MIT
2,023
piccolo
piccolo-orm
Python
Code
231
749
""" This is a useful table when we want to test all possible column types. """ from piccolo.columns.column_types import ( JSON, JSONB, UUID, BigInt, Boolean, Bytea, Date, DoublePrecision, ForeignKey, Integer, Interval, Numeric, Real, SmallInt, Text, Times...
33,515
https://github.com/benjaminhuanghuang/math_clone/blob/master/app/__init__.py
Github Open Source
Open Source
MIT
2,016
math_clone
benjaminhuanghuang
Python
Code
230
868
from flask import Flask from flask_bootstrap import Bootstrap from flask_moment import Moment from flask_pymongo import PyMongo from flask_login import LoginManager from config import config bootstrap = Bootstrap() moment = Moment() mongo = PyMongo() login_manager = LoginManager() login_manager.login_view = '/' def...
48,272
https://github.com/yanggs07/yii2-curl/blob/master/BrowserCurl.php
Github Open Source
Open Source
MIT
2,019
yii2-curl
yanggs07
PHP
Code
137
603
<?php namespace lspbupt\curl; /** * Class BrowserCurl * 这个Curl主要设计用来更好的模拟浏览器的行为, 可以供简单爬虫使用 * 支持 加载浏览器Cookie文件 和 保存 * * @package lspbupt\curl */ class BrowserCurl extends CurlHttp { /* 直接从File里加载cookie */ public $cookieFile = ''; /* * NOTE 这个不能和cookieFile同时使用, cookieFile适用于比 cookie适用于临时性、一次Sess...
33,845
https://github.com/MyanmarEITI/meiti-data/blob/master/tools/licenses/javascripts/datepicker-master/src/config/ConfigCallbacks.js
Github Open Source
Open Source
CC-BY-3.0
2,020
meiti-data
MyanmarEITI
JavaScript
Code
23
75
class ConfigCallbacks { constructor() { this.onSelect = null; this.onOpen = null; this.onClose = null; this.onChangeView = null; Object.seal(this); } } export default ConfigCallbacks;
38,464
https://github.com/service-boiler/prf/blob/master/resources/views/part/create_tender.blade.php
Github Open Source
Open Source
Unlicense
null
prf
service-boiler
PHP
Code
201
1,150
<div class="mb-2 list-group-item p-1 product-{{$product->id}}" data-id="{{$product->id}}"> <div class="row"> <div class="col-xl-12 col-sm-12"> <dl class="dl-horizontal mt-2"> <dt class="col-12">@lang('site::product.name') (@lang('site::product.sku'))</dt> <dd clas...
49,504
https://github.com/fakegit/scraper/blob/master/src/wire-clean.js
Github Open Source
Open Source
MIT
2,023
scraper
fakegit
JavaScript
Code
553
2,133
const { Duplex } = require('stream'); const crypto = require('crypto'); const BitField = require('bitfield'); const bencode = require('bencode'); const BT_RESERVED = Buffer.from([0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x01]); const BT_PROTOCOL = Buffer.from('BitTorrent protocol'); const PIECE_LENGTH = Math.pow(2, 1...
45,492
https://github.com/MD-V/ProductOwnerSimGame/blob/master/Models/Users/UserClaim.cs
Github Open Source
Open Source
MIT
null
ProductOwnerSimGame
MD-V
C#
Code
15
52
using System; using Microsoft.AspNetCore.Identity; namespace ProductOwnerSimGame.Models.Users { public class UserClaim : IdentityUserClaim<Guid> { } }
9,811
https://github.com/lth08091998/main/blob/master/src/test/java/seedu/address/model/ModelObjectTest/StaffTest.java
Github Open Source
Open Source
MIT
null
main
lth08091998
Java
Code
164
619
package seedu.address.model.ModelObjectTest; import org.junit.jupiter.api.Test; import seedu.address.model.modelStaff.Staff; import seedu.address.model.person.*; import seedu.address.model.tag.Tag; import java.util.HashSet; import java.util.Set; import static org.junit.jupiter.api.Assertions.assertEquals; import sta...
19,537
https://github.com/Godwyne/E-Bank/blob/master/Project/connection.php
Github Open Source
Open Source
Apache-2.0
null
E-Bank
Godwyne
PHP
Code
37
100
<?php $server = "localhost"; $username = "root"; $password = ""; $db = "account"; $conn = new mysqli ($server, $username, $password, $db); // mysql_query("SELECT * FROM `user`"); // Check connection if ($conn->connect_error) { echo "Connection failed"; } ?>
1,500
https://github.com/CoXlabInc/Nol.A-MSP430F5438A-Example/blob/master/LoRaWAN/main.cpp
Github Open Source
Open Source
MIT
null
Nol.A-MSP430F5438A-Example
CoXlabInc
C++
Code
486
1,987
#include <cox.h> #include <algorithm> #include <LoRaMacKR920.hpp> #include "SX1276Wiring.hpp" #define INTERVAL_SEND 5000 #define OVER_THE_AIR_ACTIVATION 1 #define BLINK_TX 0 #if (OVER_THE_AIR_ACTIVATION == 1) static const uint8_t devEui[] = "\x00\x11\x22\x33\x44\x55\x66\x77"; static const uint8_t appEui[] = "\x00\x00...
16,444
https://github.com/miking-lang/miking/blob/master/stdlib/ext/math-ext.mc
Github Open Source
Open Source
MIT
2,023
miking
miking-lang
null
Spoken
364
670
let maxf: Float -> Float -> Float = lam r. lam l. if gtf r l then r else l let absf: Float -> Float = lam f. maxf f (negf f) let eqfApprox = lam epsilon. lam r. lam l. if leqf (absf (subf r l)) epsilon then true else false utest 1. with 1.01 using eqfApprox 0.011 utest negf 1.0 with negf 1.009 using eqfApprox 0.01...
19,297
https://github.com/mblayman/social/blob/master/.env.example
Github Open Source
Open Source
MIT
2,021
social
mblayman
Shell
Code
8
119
CSRF_COOKIE_SECURE=off DEBUG=on GUNICORN_CMD_ARGS="--reload" PYTHONUNBUFFERED=1 SECRET_KEY="-8dd#per$l_1e!^+$fwjac_2u5n5qil@ns*go6(3qrf^z1zj*!" SECURE_HSTS_SECONDS=0 SECURE_SSL_REDIRECT=off SESSION_COOKIE_SECURE=off
16,906
https://github.com/ghsecuritylab/bcwifi/blob/master/release/src/router/libiconv/libcharset/tools/darwin-7.5
Github Open Source
Open Source
FSFAP
2,020
bcwifi
ghsecuritylab
null
Spoken
677
3,957
locale name locale charmap nl_langinfo(CODESET) locale_charset() C <error> US-ASCII UTF-8 af_ZA <error> UTF-8 af_ZA.ISO8859-1 <error> ISO8859-1 UTF-8 af_ZA.ISO8859-15 <error> ...
15,778
https://github.com/alexBraidwood/MarkdownControl/blob/master/src/MarkdownParser/MarkdownParser.cs
Github Open Source
Open Source
Apache-2.0
null
MarkdownControl
alexBraidwood
C#
Code
39
119
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using MarkdownParser.Native; namespace MarkdownParser { public class MarkdownParser { public static string MarkdownToString(string text, MarkdownExtension extensions, MarkdownFormat outputFormat) ...
20,976
https://github.com/Tekh-ops/ezEngine/blob/master/Data/UnitTests/GameEngineTest/TypeScript/Scripts/TestLifetime.ts
Github Open Source
Open Source
MIT
2,022
ezEngine
Tekh-ops
TypeScript
Code
206
1,072
import ez = require("TypeScript/ez") import EZ_TEST = require("./TestFramework") export class TestLifetime extends ez.TypescriptComponent { /* BEGIN AUTO-GENERATED: VARIABLES */ /* END AUTO-GENERATED: VARIABLES */ constructor() { super() } static RegisterMessageHandlers() { ez.Ty...
16,380
https://github.com/zhyjor/HappyLeetCode/blob/master/hand/publish-eventsbus.js
Github Open Source
Open Source
MIT
2,023
HappyLeetCode
zhyjor
JavaScript
Code
118
413
class Publish { constructor() { this.observers = []; } add(observer) { this.observers.push(observer); } remove(observer) { this.observers.forEach((item, i) => { if (item === observer) { this.observers.splice(i, 1); } }); } notify() { this.observers.forEach(observer ...
49,084
https://github.com/pmalek-sumo/sumologic-otel-collector/blob/master/pkg/extension/sumologicextension/credentials.go
Github Open Source
Open Source
Apache-2.0
null
sumologic-otel-collector
pmalek-sumo
Go
Code
653
1,843
// Copyright The OpenTelemetry 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 law or ag...
17,809
https://github.com/tfogal/visdebug/blob/master/testprograms/allocs.c
Github Open Source
Open Source
MIT
2,018
visdebug
tfogal
C
Code
61
171
/* Distributed under the MIT license. See the LICENSE file. * Copyright (c) 2014--2016 Thomas Fogal */ #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { if(argc != 2) { fprintf(stderr, "need # of iterations!\n"); return EXIT_FAILURE; } const size_t n = atoi(argv[1]); void* p; ...
22,174
https://github.com/umccullough/fdupes/blob/master/debian/patches/60_bts544568_fix_memleaks.dpatch
Github Open Source
Open Source
MIT
2,017
fdupes
umccullough
Shell
Code
91
365
#! /bin/sh /usr/share/dpatch/dpatch-run ## 60_bts544568_fix_memleaks.dpatch by jbdenis <jeanbaptiste.denis@gmail.com> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix memory leaks in main() @DPATCH@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exc...
30,897
https://github.com/xingchaoet/webChat/blob/master/webroot/apps/Helpers/functions.php
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,017
webChat
xingchaoet
PHP
Code
66
275
<?php /** * Created by PhpStorm. * User: zhouzeqiang * Date: 2017/10/13 * Time: 上午10:18 */ /** * @desc 记录调试日志到log/debug.log文件 * @author Jec * @date 2017-10-16 * @param string */ function debugLog($msg){ if(is_array($msg)){ $msg = json_encode($msg); } $filename = WEBPATH . '/logs/debug.log...
17,306
https://github.com/aug0stus/mscthr/blob/master/mscthr/plugins.py
Github Open Source
Open Source
MIT
null
mscthr
aug0stus
Python
Code
38
189
""" Copyright (C) 2018 August Feng <au.fengster@gmail.com> """ from . import rudiments, utils def generate_251(key, quality="major"): if quality == "minor": progression = [rudiments.Chord(key+rudiments.Interval("M2"),"m7b5"), rudiments.Chord(key+rudiments.Interval("P5"),"7"), rudiments.Chord(key, "min7")] elif q...
4,764
https://github.com/Sid2697/Code-Chef/blob/master/AMR15A.py
Github Open Source
Open Source
MIT
2,021
Code-Chef
Sid2697
Python
Code
28
105
t=int(input('')) while True: e,o=0,0 arr = list(map(int, input().split())) for num in arr: if num%2 == 0: e+=1 else: o+=1 if e>o: print('READY FOR BATTLE') else: print('NOT READY') break
8,298
https://github.com/kuaiph/imooc_php_api/blob/master/application/controllers/Wxpay.php
Github Open Source
Open Source
Apache-2.0
2,018
imooc_php_api
kuaiph
PHP
Code
122
557
<?php /** * @name WxpayController * @author Joe * @desc 微信支付 */ $qrcodeLibPath = dirname(__FILE__).'/../library/ThirdParty/WxPay/lib/phpqrcode/'; include_once($qrcodeLibPath.'phpqrcode.php'); class WxpayController extends Yaf_Controller_Abstract{ public function indexAction(){ } //生成订单 public...
42,829
https://github.com/Gosha/SwagGen/blob/master/generated/Sources/Models/Customer.swift
Github Open Source
Open Source
MIT
null
SwagGen
Gosha
Swift
Code
136
334
// // Generated by SwagGen // https://github.com/yonaskolb/SwagGen // import Foundation public class Customer: APIModel { public var id: String public var events: [CustomerEvent] public init(id: String, events: [CustomerEvent]) { self.id = id self.events = events } public requi...
43,496
https://github.com/Profilan/eekintranet/blob/master/module/ProLdap/src/ProLdap/Stdlib/Hydrator/LdapObjectStrategy.php
Github Open Source
Open Source
BSD-3-Clause
null
eekintranet
Profilan
PHP
Code
59
212
<?php namespace ProLdap\Stdlib\Hydrator; use Zend\Stdlib\Hydrator\Strategy\StrategyInterface; class LdapObjectStrategy implements StrategyInterface { /** * {@inheritDoc} * @see \Zend\Stdlib\Hydrator\Strategy\StrategyInterface::extract() */ public function extract($value) { if ($val...
20,797
https://github.com/PrimoDev23/Roslynator/blob/master/src/CommandLine/TypeComparer.cs
Github Open Source
Open Source
Apache-2.0
2,022
Roslynator
PrimoDev23
C#
Code
380
1,018
// Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections; using System.Collections.Generic; namespace Roslynator.CommandLine { internal abstract class TypeComparer : IComp...
11,056
https://github.com/magicboylinw/hydrogen-android-sdk/blob/master/sdk/src/main/java/com/minapp/android/sdk/alipay/AlipaySdkResult.java
Github Open Source
Open Source
Apache-2.0
null
hydrogen-android-sdk
magicboylinw
Java
Code
817
3,165
package com.minapp.android.sdk.alipay; import android.os.Parcel; import android.os.Parcelable; import com.google.gson.JsonSyntaxException; import com.google.gson.annotations.SerializedName; import com.minapp.android.sdk.Global; import java.util.Map; /** * {@link com.alipay.sdk.app.PayTask#payV2(String, boolean)} 返回...
51,383
https://github.com/david618/rttest/blob/master/src/main/java/com/esri/rttest/send/HttpThread.java
Github Open Source
Open Source
Apache-2.0
2,022
rttest
david618
Java
Code
488
1,602
/* * (C) Copyright 2017 David Jennings * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
42,909
https://github.com/eyewinz/share-my-desk/blob/master/tests/mocks/mockUserModel.js
Github Open Source
Open Source
MIT
null
share-my-desk
eyewinz
JavaScript
Code
31
71
"use strict"; /** * Barebones mock user model */ const userModel = () => ({ save: (cb) => cb() }); userModel.findOne = function(searchObject, cb) { cb(null, null); }; module.exports = userModel;
18,813
https://github.com/hcse/chrome-extension-wallet/blob/master/src/utils/encrypter.test.ts
Github Open Source
Open Source
MIT
2,022
chrome-extension-wallet
hcse
TypeScript
Code
198
803
import * as workerMessagingMocks from 'workers/utils/__mocks__/workerMessaging.mock' import encryptWorkerMock from 'workers/__mocks__/EncryptWorker.mock' import decryptWorkerMock from 'workers/__mocks__/DecryptWorker.mock' import reEncryptWorkerMock from 'workers/__mocks__/ReEncryptWorker.mock' import * as encrypter f...
38,103
https://github.com/BertKleewein/azure-iot-sdk-node/blob/master/ts-e2e/src/device_methods.tests.ts
Github Open Source
Open Source
MIT
null
azure-iot-sdk-node
BertKleewein
TypeScript
Code
317
980
import { Client as DeviceClient, ConnectionString as DeviceConnectionString } from 'azure-iot-device'; import { Mqtt as DeviceMqtt, MqttWs as DeviceMqttWs } from 'azure-iot-device-mqtt'; import { Amqp as DeviceAmqp, AmqpWs as DeviceAmqpWs } from 'azure-iot-device-amqp'; import { Client as ServiceClient, ConnectionS...
22,775
https://github.com/diastowo29/php-isc/blob/master/resources/views/all-employee.blade.php
Github Open Source
Open Source
MIT, CC-BY-3.0
2,019
php-isc
diastowo29
Blade
Code
247
1,460
<!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <title>All Employee - Indocool Solusi Cemerlang</title> <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' /> <link rel="stylesheet" href="dashboard...
43,398
https://github.com/dreamcmi/esp-idf/blob/master/components/esp_hw_support/rtc_module.c
Github Open Source
Open Source
Apache-2.0
2,019
esp-idf
dreamcmi
C
Code
274
1,487
/* * SPDX-FileCopyrightText: 2016-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include <stdlib.h> #include <ctype.h> #include "sdkconfig.h" #include "esp_types.h" #include "esp_log.h" #include "soc/rtc_periph.h" #include "soc/syscon_periph.h" #include "soc/rtc.h" #include "s...
123
https://github.com/rizalarfani/mentah_hmvc/blob/master/application/views/admin/Kamus_view_datatable.php
Github Open Source
Open Source
MIT
null
mentah_hmvc
rizalarfani
PHP
Code
224
1,620
<!-- DataTables --> <link href="<?php echo base_url()?>assets/adminto/assets/plugins/datatables/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" /> <link href="<?php echo base_url()?>assets/adminto/assets/plugins/datatables/buttons.bootstrap4.min.css" rel="stylesheet" type="text/css" /> ...
20,144
https://github.com/SchuckBeta/netcai/blob/master/netcai/netcai-buyer/src/main/java/com/netcai/buyer/vo/OrderItemVo.java
Github Open Source
Open Source
Apache-2.0
2,021
netcai
SchuckBeta
Java
Code
124
449
package com.netcai.buyer.vo; import java.io.Serializable; import java.util.Date; import java.util.List; import com.netcai.buyer.entity.OrderItem; /** * 接收传来的购物车信息,生成订单; * @author administrator * */ public class OrderItemVo implements Serializable{ private static final long serialVersionUID = 3416003870467304498...
9,702