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/lab-x/Facial-MoCap/blob/master/Facial-MoCap/Facial-MoCap/JaPOSIT.cpp
Github Open Source
Open Source
Apache-2.0
2,015
Facial-MoCap
lab-x
C++
Code
380
1,089
#include "JaPOSIT.h" JaPOSIT::JaPOSIT() { rv = vector<double>(3); tv = vector<double>(3); rvec = Mat(rv); tvec = Mat(tv); } JaPOSIT::~JaPOSIT() { } void JaPOSIT::init(FaceModel* in) { faceModel = in; op = Mat(*faceModel->getFeatures()); //Reducing to being deviation from mean cv::Scalar m = mean(op); /...
40,546
https://github.com/lpi/codeforces-go/blob/master/main/900-999/934B_test.go
Github Open Source
Open Source
MIT
2,022
codeforces-go
lpi
Go
Code
36
155
package main import ( "github.com/EndlessCheng/codeforces-go/main/testutil" "testing" ) // http://codeforces.com/problemset/problem/934/B // https://codeforces.com/problemset/status/934/problem/B func TestCF934B(t *testing.T) { // just copy from website rawText := ` inputCopy 2 outputCopy 462 inputCopy 6 outputCo...
13,905
https://github.com/petdoan/Titan-Postgresql/blob/master/Titan/ConnectionState.swift
Github Open Source
Open Source
MIT
2,016
Titan-Postgresql
petdoan
Swift
Code
159
451
// // ConnectionState.swift // Titan // // Created by Nghia Tran on 10/11/16. // Copyright © 2016 fe. All rights reserved. // import Foundation import ReSwift import RxSwift struct ConnectionState { /// Connection selected var groupConnections = Variable<[GroupConnectionObj]>([]) var selectedConn...
2,029
https://github.com/HaFred/dana/blob/master/tests/pk/trap-05-request-nn-config-zero-size.c
Github Open Source
Open Source
Apache-2.0
2,022
dana
HaFred
C
Code
46
220
// See LICENSE.BU for license details. #include "tests/libs/src/include/xfiles-user-pk.h" #include "tests/libs/src/include/xfiles-asid-nnid-table.h" int main() { pk_syscall_set_asid(1); ant * ant; asid_nnid_table_create(&ant, 2, 4); attach_garbage(&ant, 1); attach_garbage(&ant, 1); attach_garbage(&ant, 1...
34,123
https://github.com/tnichols217/emscriptenTests/blob/master/Makefile
Github Open Source
Open Source
MIT
2,021
emscriptenTests
tnichols217
Makefile
Code
3
9
all: sh build.sh
35,704
https://github.com/winstonhong/Shibboleth-SAML-IdP-and-SP/blob/master/shibboleth-sp-testapp/build.sh
Github Open Source
Open Source
Apache-2.0
2,023
Shibboleth-SAML-IdP-and-SP
winstonhong
Shell
Code
6
24
#!/bin/bash docker build -t example/shibboleth-sp:latest .
20,633
https://github.com/JeffreyCastellano/corrasable/blob/master/app/assets/stylesheets/base.css.scss
Github Open Source
Open Source
Unlicense
2,014
corrasable
JeffreyCastellano
SCSS
Code
82
268
$unit: 20px; @mixin monospaceFont { font-family: monospace; font-size: 10pt; line-height: 1.25; } * { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } body { margin: 0; padding: 0; background-color: #ccc; @include monospaceFont(); } h1, h2, h3 { ...
17,802
https://github.com/marcosmurcia92/ABM_AngularJs_PHP_persona/blob/master/js/controlGrilla.js
Github Open Source
Open Source
CC0-1.0
2,016
ABM_AngularJs_PHP_persona
marcosmurcia92
JavaScript
Code
134
624
function Borrar(id) { // var id = $("#idParaBorrar").val(); $.ajax({ type: 'DELETE', url: "http://localhost/angular/Angular_PHP_ABM_Persona/ws/personas/" + id, success: function(data, textStatus, jqXHR){ console.log(textStatus); cargar(); }, ...
48,344
https://github.com/sukhik/mood/blob/master/_includes/components/footer.njk
Github Open Source
Open Source
MIT
2,020
mood
sukhik
null
Spoken
12
46
<footer> <small> This project is maintained by <a href="http://sukhi.me">Sukhi Grewal</a>. </small> </footer>
55,494
https://github.com/pwr-pbrwio/PBR20M2/blob/master/projects/checkstyle/src/it/java/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/GenericWhitespaceTest.java
Github Open Source
Open Source
Apache-2.0
2,022
PBR20M2
pwr-pbrwio
Java
Code
562
1,704
//////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code for adherence to a set of rules. // Copyright (C) 2001-2018 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU ...
38,087
https://github.com/VivoKey/plugin-wordpress/blob/master/vivokey-openid.php
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, GPL-3.0-or-later, GPL-3.0-only
2,019
plugin-wordpress
VivoKey
PHP
Code
1,506
4,672
<?php /* Plugin Name: VivoKey OpenID Connect Plugin URI: https://github.com/VivoKey/plugin-wordpress Description: WordPress users can authenticate using the VivoKey OpenID Connect API Version: 1.2 Author: VivoKey Author URI: https://vivokey.com Author Email: amal@vivokey.com License: * This program is free software: y...
52,641
https://github.com/javacommons/strconv2/blob/master/qttest/qttest.pro
Github Open Source
Open Source
LicenseRef-scancode-public-domain, Unlicense, MIT
2,021
strconv2
javacommons
null
Spoken
15
40
QT += testlib TEMPLATE = app TARGET = qttest INCLUDEPATH += $$PWD SOURCES += qttest.cpp
24,626
https://github.com/peter-clemenko/joblint/blob/master/lib/spec.js
Github Open Source
Open Source
MIT
2,015
joblint
peter-clemenko
JavaScript
Code
210
478
'use strict'; var normalizeWord = require('./word').normalizeWord; var splitIntoWords = require('./word').splitIntoWords; module.exports = createSpec; function createSpec (body) { return new Spec(body); } function Spec (body) { this.body = body; this.words = splitIntoWords(body); this._bodyNormalize...
34,843
https://github.com/lvrcek/LongReadClassification/blob/master/setup.sh
Github Open Source
Open Source
MIT
2,020
LongReadClassification
lvrcek
Shell
Code
23
62
#!/bin/bash conda create --name pileograms python=3.8 pip conda install --file requirements.txt cd vendor/raven mkdir build && cd build cmake -DCMAKE_BUILD_TYPE=Release .. && make
25,104
https://github.com/JakobMiksch/vroom/blob/master/src/structures/vroom/solution/summary.h
Github Open Source
Open Source
BSD-2-Clause
null
vroom
JakobMiksch
C
Code
64
189
#ifndef SUMMARY_H #define SUMMARY_H /* This file is part of VROOM. Copyright (c) 2015-2020, Julien Coupey. All rights reserved (see LICENSE). */ #include "structures/vroom/amount.h" #include "structures/vroom/solution/computing_times.h" namespace vroom { struct Summary { Cost cost; const unsigned unassigned;...
13,959
https://github.com/jamesward/pubnub-api/blob/master/php-rackspace/Pubnub.php
Github Open Source
Open Source
MIT
2,012
pubnub-api
jamesward
PHP
Code
654
1,839
<?php /** * PubNub 3.0 Real-time Push Cloud API * * @author Stephen Blum * @package Pubnub */ class Pubnub { private $ORIGIN = 'pubsub.pubnub.com'; private $LIMIT = 1800; private $PUBLISH_KEY = 'demo'; private $SUBSCRIBE_KEY = 'demo'; private $SECRET_KEY = false; privat...
17,411
https://github.com/ericAndrade/IAL-002/blob/master/src/aula2/MaiorEntreTresNumeros.java
Github Open Source
Open Source
MIT
null
IAL-002
ericAndrade
Java
Code
107
354
package aula2; import java.util.Scanner; public class MaiorEntreTresNumeros { public static void main(String ... tresPontos) { Scanner ler = new Scanner(System.in); int primeiroNumero = 0; int segundoNumero = 0; int terceiroNumero = 0; System.out.println("Digite o Primeiro número"); primeiroNumero = ...
50,152
https://github.com/jarrekk/Jalpc-A/blob/master/bower_components/qrcode-generator/as3/src/as3/com/d_project/qrcode/StringUtil.as
Github Open Source
Open Source
MIT
2,020
Jalpc-A
jarrekk
null
Spoken
43
110
package com.d_project.qrcode { import flash.utils.ByteArray; /** * StringUtil * @author Kazuhiko Arase */ internal class StringUtil { public static function getBytes(s : String, encoding : String) : ByteArray { var b : ByteArray = new ByteArray(); ...
42,648
https://github.com/mashroomxl/polyaxon/blob/master/polyaxon/scheduler/tasks/notebooks.py
Github Open Source
Open Source
MIT
2,018
polyaxon
mashroomxl
Python
Code
208
915
import logging from constants.jobs import JobLifeCycle from db.getters.projects import get_valid_project from docker_images.image_info import get_notebook_image_info from polyaxon.celery_api import app as celery_app from polyaxon.settings import SchedulerCeleryTasks from scheduler import dockerizer_scheduler, notebook...
3,795
https://github.com/0xradical/Typer-Instinct/blob/master/src/words_db/words8.ts
Github Open Source
Open Source
MIT
2,015
Typer-Instinct
0xradical
TypeScript
Code
163
747
var WordsDatabase = WordsDatabase || {}; WordsDatabase[8] = [ 'activity', 'actually', 'addition', 'aircraft', 'ambition', 'argument', 'attorney', 'audience', 'boundary', 'building', 'campaign', 'capacity', 'carrying', 'catholic', 'ceremony', 'chairman', 'churches', 'citizens', 'civilize', 'commerce', 'compared', 'compl...
90
https://github.com/nofearnohappy/alps_mm/blob/master/vendor/mediatek/proprietary/operator/OP01/packages/apps/Plugins/src/com/mediatek/settings/plugin/Op01SimManagementExt.java
Github Open Source
Open Source
Apache-2.0
2,019
alps_mm
nofearnohappy
Java
Code
2,400
8,072
package com.mediatek.settings.plugin; import android.app.StatusBarManager; import android.content.ContentResolver; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.IntentFilter; import android.content.res.Resources; import android.database.Co...
51,010
https://github.com/marloncarvalho/android-clean-architecture/blob/master/app/src/main/java/io/marlon/cleanarchitecture/ui/mvp/login/LoginActivity.kt
Github Open Source
Open Source
MIT
null
android-clean-architecture
marloncarvalho
Kotlin
Code
68
313
package io.marlon.cleanarchitecture.ui.mvp.login import android.os.Bundle import android.widget.ProgressBar import dagger.android.support.DaggerAppCompatActivity import io.marlon.cleanarchitecture.R import kotlinx.android.synthetic.main.activity_login.* import org.jetbrains.anko.onClick import org.jetbrains.anko.toast...
2,932
https://github.com/someone235/sgx-lkl/blob/master/src/Makefile
Github Open Source
Open Source
MIT
null
sgx-lkl
someone235
Makefile
Code
365
2,104
include ../config.mak # TODO Don't set (default) arch in Makefile ARCH ?= x86_64 LIB_SGX_LKL_BUILD ?= $(BUILD_DIR) HW_MODE ?= yes sim: HW_MODE = no sim: all srcdir = . musl_srcdir = $(SGX_LKL_MUSL)/src sgxlkl_toolsdir = ../tools CC = gcc CROSS_COMPILE = #TODO: Get rid of realpath dependency, which is not instal...
6,966
https://github.com/PowerOlive/garnet/blob/master/bin/netconnector/netconnector_params.cc
Github Open Source
Open Source
BSD-3-Clause
null
garnet
PowerOlive
C++
Code
427
1,575
// Copyright 2016 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "garnet/bin/netconnector/netconnector_params.h" #include <fuchsia/sys/cpp/fidl.h> #include <rapidjson/document.h> #include "garnet/lib/inet/ip_a...
35,911
https://github.com/59naga/jThree/blob/master/src/Core/Canvas/Canvas.ts
Github Open Source
Open Source
MIT
2,016
jThree
59naga
TypeScript
Code
306
1,015
import GLExtensionResolver from "./GLExtensionResolver"; import Rectangle from "../../Math/Rectangle"; import BasicRenderer from "../Renderers/BasicRenderer"; import JThreeEvent from "../../Base/JThreeEvent"; import CanvasSizeChangedEventArgs from "./CanvasSizeChangedEventArgs"; import Color4 from "../../Math/Color4"; ...
36,220
https://github.com/milenpenev/SoftUni-JS-Advanced/blob/master/05.DOM Manipulations and Events - Exercise/03. Locked-Profile/app.js
Github Open Source
Open Source
MIT
null
SoftUni-JS-Advanced
milenpenev
JavaScript
Code
51
186
function lockedProfile() { Array.from(document.querySelectorAll('.profile button')).forEach(b => b.addEventListener('click', onToggle)); function onToggle(ev) { const profile = ev.target.parentElement; const isActive = profile.querySelector('input[type="radio"][value="unlock"]').checked; ...
35,930
https://github.com/malaythecool/Android-ImageMagick/blob/master/jni/libfftw/rdft/scalar/sources.mk
Github Open Source
Open Source
Apache-2.0
null
Android-ImageMagick
malaythecool
Makefile
Code
22
79
# autoregenerated sources makefile. DO NOT EDIT, EDITS WILL BE OVERWRITTEN sources := hc2c.c hfb.c r2c.c r2r.c LOCAL_SRC_FILES += $(addprefix libfftw-3.3.8/rdft/scalar/, $(sources))
3,967
https://github.com/cubit9/mailserver-admin/blob/master/src/Command/DomainAddCommand.php
Github Open Source
Open Source
MIT
null
mailserver-admin
cubit9
PHP
Code
149
551
<?php declare(strict_types=1); /** * This file is part of the mailserver-admin package. * (c) Jeffrey Boehm <https://github.com/jeboehm/mailserver-admin> * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace App\Command; use App...
16,170
https://github.com/nicholasrobertm/needtobreath/blob/master/src/main/java/mcjty/needtobreathe/blocks/CommonPurifierBlock.java
Github Open Source
Open Source
MIT
2,019
needtobreath
nicholasrobertm
Java
Code
206
936
package mcjty.needtobreathe.blocks; import mcjty.lib.blocks.GenericBlock; import mcjty.lib.gui.GenericGuiContainer; import mcjty.needtobreathe.NeedToBreathe; import mcjty.needtobreathe.setup.GuiProxy; import mcjty.theoneprobe.api.IProbeHitData; import mcjty.theoneprobe.api.IProbeInfo; import mcjty.theoneprobe.api.Prob...
50,121
https://github.com/gharib85/qsim/blob/master/qsim/scripts/sk_gap.py
Github Open Source
Open Source
MIT
2,020
qsim
gharib85
Python
Code
274
1,028
import networkx as nx import itertools import numpy as np from qsim.graph_algorithms.graph import Graph from qsim.evolution.hamiltonian import HamiltonianMaxCut, HamiltonianDriver import scipy.sparse as sparse from qsim.schrodinger_equation import SchrodingerEquation import matplotlib.pyplot as plt def sk_integer(n, v...
32,841
https://github.com/Raytwo/VGAudio/blob/master/src/VGAudio/Containers/Idsp/IdspChannelInfo.cs
Github Open Source
Open Source
MIT
2,022
VGAudio
Raytwo
C#
Code
160
345
using VGAudio.Formats.GcAdpcm; namespace VGAudio.Containers.Idsp { public class IdspChannelInfo : GcAdpcmChannelInfo { internal IdspChannelInfo() { } /// <summary> /// The number of samples in the channel. /// </summary> public int SampleCount { get; set; } ///...
864
https://github.com/deanclow/deanclow/blob/master/module/Wedding/src/Wedding/Service/Rsvp.php
Github Open Source
Open Source
BSD-3-Clause
null
deanclow
deanclow
PHP
Code
115
437
<?php /* * The rsvpservice * @author Dean Clow * @email <dclow@blackjackfarm.com> * @copyright 2015 Dean Clow */ namespace Wedding\Service; use \Application\Service\CommonService; class Rsvp extends CommonService { /** * Constructor * @return void */ public function __construct() ...
55,261
https://github.com/dbw/lwpp/blob/master/include/lwpp/objectinfo.h
Github Open Source
Open Source
BSD-3-Clause
2,020
lwpp
dbw
C
Code
643
1,990
#ifndef LWPP_OBJECTINFO_H #define LWPP_OBJECTINFO_H #include <lwpp/surface.h> namespace lwpp { //! Wrapper for LWObjectInfo //! @ingroup Globals class ObjectInfo : protected GlobalBase<LWObjectInfo> { LWItemID item; public: //! Constructor /*! * @param _item the LWItemID of the item to retrieve inform...
8,118
https://github.com/cecilydowns/travel-goals/blob/master/client/src/reducers/index.js
Github Open Source
Open Source
MIT
2,018
travel-goals
cecilydowns
JavaScript
Code
22
63
import { combineReducers } from 'redux'; import TripReducer from './TripReducer' import UserReducer from './UserReducer' export default combineReducers({ trips: TripReducer, user: UserReducer })
1,694
https://github.com/ezbake/ezbake-common-cpp/blob/master/discovery/src/main/cpp/contrib/zk/src/zookeeper.h
Github Open Source
Open Source
Apache-2.0
2,015
ezbake-common-cpp
ezbake
C++
Code
492
1,510
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
55,569
https://github.com/farmanahmed2007/brillder/blob/master/src/components/terms/Terms.tsx
Github Open Source
Open Source
Apache-2.0
null
brillder
farmanahmed2007
TypeScript
Code
200
717
import React, { Component } from "react"; import { Grid, FormControlLabel, Radio } from "@material-ui/core"; import { connect } from "react-redux"; import axios from "axios"; // @ts-ignore import marked from 'marked'; import './Terms.scss'; import { User } from "model/user"; import { ReduxCombinedState } from "redux/r...
44,328
https://github.com/DarlsyLida/material-components-android-examples/blob/master/Owl/app/src/main/java/com/materialstudies/owl/util/GlideUtils.kt
Github Open Source
Open Source
Apache-2.0
2,022
material-components-android-examples
DarlsyLida
Kotlin
Code
196
513
/* * Copyright 2019 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 ...
46,248
https://github.com/deepuprabhakar/Laravel-eleaning-portal-demo/blob/master/app/MessageSent.php
Github Open Source
Open Source
MIT
null
Laravel-eleaning-portal-demo
deepuprabhakar
PHP
Code
112
400
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Hashids; use Carbon\Carbon; use Nicolaslopezj\Searchable\SearchableTrait; class MessageSent extends Model { protected $table = "messages"; use SearchableTrait; protected $fillable =[ 'to', 'subject', 'message', 'sender', ]; ...
48,428
https://github.com/jovic1987/uuidhex/blob/master/src/UuidHex.php
Github Open Source
Open Source
MIT
null
uuidhex
jovic1987
PHP
Code
158
590
<?php declare(strict_types=1); namespace G4\UuidHex; use G4\UuidHex\Exception\InvalidUuidHexException; use Ramsey\Uuid\Codec\TimestampFirstCombCodec; use Ramsey\Uuid\Generator\CombGenerator; use Ramsey\Uuid\Uuid; use Ramsey\Uuid\UuidFactory; class UuidHex { /** * @var string */ private $value; ...
24,266
https://github.com/n3tr/react-nativeish/blob/master/src/containers/mockToggle/mockToggleContainer.test.js
Github Open Source
Open Source
MIT
2,017
react-nativeish
n3tr
JavaScript
Code
42
123
import {mapStateToProps, propsMapping} from './mockToggleContainer' describe('toggleMock container', () => { it('should map state to props', () => { const state = {devpanel: {mocksEnabled: true}} const mappedState = mapStateToProps(state) expect(mappedState).toEqual({mocksEnabled: true}) }) it('should...
2,727
https://github.com/crispchat/node-crisp-api/blob/master/lib/resources/WebsiteVisitors.js
Github Open Source
Open Source
MIT
2,016
node-crisp-api
crispchat
JavaScript
Code
301
947
/* * node-crisp-api * * Copyright 2022, Crisp IM SAS * Author: Valerian Saliou <valerian@valeriansaliou.name> */ "use strict"; /** * Crisp WebsiteVisitors Resource * @class * @classdesc This is the Crisp Website Visitors Resource */ function WebsiteVisitors(service, crisp) { /** * Count Visitors * ...
22,989
https://github.com/mattk09/elfie-arriba/blob/master/Arriba/Arriba.Communication/Server/Owin/ArribaOwinHost.cs
Github Open Source
Open Source
MIT
2,021
elfie-arriba
mattk09
C#
Code
449
1,288
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Arriba.Server.Owin { using Arriba.Communication; us...
49,157
https://github.com/nodeca/nodeca.forum/blob/master/server/forum/topic/unsubscribe.js
Github Open Source
Open Source
MIT
2,021
nodeca.forum
nodeca
JavaScript
Code
198
698
// Show unsubscribe topic page // 'use strict'; const sanitize_topic = require('nodeca.forum/lib/sanitizers/topic'); const sanitize_section = require('nodeca.forum/lib/sanitizers/section'); module.exports = function (N, apiPath) { N.validate(apiPath, { section_hid: { type: 'integer', required: true }, ...
56,755
https://github.com/jelic98/raf_nlp/blob/master/Makefile
Github Open Source
Open Source
Apache-2.0
2,021
raf_nlp
jelic98
Makefile
Code
56
194
CC = gcc IN = main.c src/nn.c OUT = main.out CFLAGS = -Wall LFLAGS = -lm -lpthread IFLAGS = -I. -I./include export ARG_ACTIONS=TRAIN,SAVE export ARG_TRAIN=/dev/null export ARG_TEST=/dev/null export ARG_STOP=/dev/null .SILENT all: clean build run clean: rm -f $(OUT) build: $(IN) $(CC) -g -rdynamic $(IN) -o $(OUT) ...
559
https://github.com/hyukhur/HHUIImageNamed/blob/master/HHUIImageNamed/HHUIImageNamed.h
Github Open Source
Open Source
MIT
2,018
HHUIImageNamed
hyukhur
C
Code
66
167
// // HHUIImageNamed.h // HHUIImageNamed // // Created by Hyuk Hur on 2018-01-16. // Copyright © 2018 Hyuk Hur. All rights reserved. // @import Foundation; @import UIKit; //! Project version number for HHUIImageNamed. FOUNDATION_EXPORT double HHUIImageNamedVersionNumber; //! Project version string for HHUIImageN...
38,396
https://github.com/njonsson/elastatic/blob/master/test/system/system_test.rb
Github Open Source
Open Source
MIT
2,009
elastatic
njonsson
Ruby
Code
74
322
require 'test/unit' unless private_methods.include?(:require_relative) require File.expand_path("#{File.dirname __FILE__}/../../lib/elastatic/require_relative_extension") end require_relative '../../lib/elastatic/friendly_tests_extension' class SystemTest < Test::Unit::TestCase def setup @here_path = File.e...
10,708
https://github.com/AntonVasilenko00/rs-school-short-track-2021/blob/master/src/01-matrix-elements-sum.js
Github Open Source
Open Source
MIT
2,021
rs-school-short-track-2021
AntonVasilenko00
JavaScript
Code
135
296
/** * Given matrix, a rectangular matrix of integers, * just add up all the values that don't appear below a "0". * * @param {Array<Array>} matrix * @return {Number} * * @example * matrix = [ * [0, 1, 1, 2], * [0, 5, 0, 0], * [2, 0, 3, 3] * ] * * The result should be 9 */ function getMatrixElementsSum...
398
https://github.com/ear-dev/Rocket.Chat.Android/blob/master/app/src/main/java/chat/rocket/android/contacts/adapter/InviteViewHolder.kt
Github Open Source
Open Source
MIT
2,020
Rocket.Chat.Android
ear-dev
Kotlin
Code
19
85
package chat.rocket.android.contacts.adapter import android.view.View import chat.rocket.android.chatrooms.adapter.ViewHolder class InviteViewHolder(itemView: View) : ViewHolder<InviteItemHolder>(itemView) { override fun bindViews(data: InviteItemHolder) { } }
7,044
https://github.com/Divs123/MyRepo/blob/master/node_modules/@ngrx/effects/src/effects-subscription.d.ts
Github Open Source
Open Source
MIT
null
MyRepo
Divs123
TypeScript
Code
55
140
import { OpaqueToken, OnDestroy } from '@angular/core'; import { Action } from '@ngrx/store'; import { Observer } from 'rxjs/Observer'; import { Subscription } from 'rxjs/Subscription'; export declare const effects: OpaqueToken; export declare class EffectsSubscription extends Subscription implements OnDestroy { pr...
23,822
https://github.com/bhavanapamulaparthi/CivicTechExchange/blob/master/common/components/common/integrations/SocialMediaSignupSection.jsx
Github Open Source
Open Source
MIT
null
CivicTechExchange
bhavanapamulaparthi
null
Spoken
212
773
// @flow import React from 'react'; import CurrentUser from "../../utils/CurrentUser.js"; import FacebookSVG from "../../svg/facebook.svg"; import GithubSVG from "../../svg/github.svg"; import GoogleSVG from "../../svg/google.svg"; import LinkedInSVG from "../../svg/linkedin.svg"; import _ from "lodash"; const social...
45,239
https://github.com/a-romero/go-dyndb/blob/master/records/records_test.go
Github Open Source
Open Source
MIT
2,019
go-dyndb
a-romero
Go
Code
105
426
package records import ( "testing" "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute" "github.com/stretchr/testify/assert" ) func TestRecordLookup(t *testing.T) { // VinItem ... type IMEIItem struct { IMEI string `dynamo:"imei"` } var imei string tests := []struct { requestTableName st...
479
https://github.com/ljmotta/kogito-tooling/blob/master/packages/kie-bc-editors/src/GwtEditorWrapperFactory.ts
Github Open Source
Open Source
Apache-2.0
null
kogito-tooling
ljmotta
TypeScript
Code
671
2,455
/* * Copyright 2019 Red Hat, Inc. and/or its affiliates. * * 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 ...
24,054
https://github.com/spirytusz/GsonBooster/blob/master/booster-processor/src/main/java/com/spirytusz/booster/processor/strategy/declare/PrimitiveAdapterDeclareStrategy.kt
Github Open Source
Open Source
MIT
2,021
GsonBooster
spirytusz
Kotlin
Code
32
115
package com.spirytusz.booster.processor.strategy.declare import com.spirytusz.booster.processor.data.type.KType import com.squareup.kotlinpoet.PropertySpec /** * Input: [KType] = Int * * Output: null */ class PrimitiveAdapterDeclareStrategy : IAdapterDeclareStrategy { override fun declare(kType: KType): Prop...
22,908
https://github.com/throneless-tech/prereview/blob/master/integration/src/browser/requesting-a-review.spec.ts
Github Open Source
Open Source
MIT
null
prereview
throneless-tech
TypeScript
Code
104
425
import { expect, test } from './test'; import { screenshot } from './utils'; test.asALoggedInUser('requesting a review', async ({ page, preprint }) => { await page.goto('/reviews'); await page.click(':text("Add Request")'); const dialog = page.locator('[role="dialog"]'); await expect(dialog).toContainText('...
35,009
https://github.com/dkbnull/HelloBill/blob/master/hello-bill-common/src/main/java/cn/wbnull/hellobill/common/util/ServletUtils.java
Github Open Source
Open Source
MIT
null
HelloBill
dkbnull
Java
Code
46
187
package cn.wbnull.hellobill.common.util; import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.ServletRequestAttributes; import javax.servlet.http.HttpServletRequest; /** * Servlet 工具类 * * @author dukunbiao(null) 2020-12-29 * https://github.com/dkbnu...
52,315
https://github.com/AhmadRaid/Mangment_System_Dashboard/blob/master/public/assets/js/addOrder.js
Github Open Source
Open Source
MIT
null
Mangment_System_Dashboard
AhmadRaid
JavaScript
Code
600
2,258
$(document).ready(function () { const tableBody = document.querySelector(".table-body"); const putPrice = () => { $(".footer .price").html($(".price_after_all").attr("value")); } putPrice(); $(document).on("change", event => { let id = event.target.value; if (event.target.ge...
38,179
https://github.com/danforbes/substrate-evm/blob/master/utils/index.js
Github Open Source
Open Source
Unlicense
2,020
substrate-evm
danforbes
JavaScript
Code
82
256
const help = `--erc20-slot <slot> <address>: Calculate the storage slot for an (EVM) address's ERC-20 balance, where <slot> is the storage slot for the ERC-20 balances map. --evm-address <address>: Calculate the EVM address that corresponds to a native Substrate address. --help: Print this message.`; if (process.argv....
39,278
https://github.com/Hadii1/Anonymous_chat/blob/master/lib/views/chats_screen.dart
Github Open Source
Open Source
Apache-2.0
2,021
Anonymous_chat
Hadii1
Dart
Code
527
1,960
import 'dart:convert'; import 'dart:io'; import 'package:anonymous_chat/models/chat_room.dart'; import 'package:anonymous_chat/models/message.dart'; import 'package:anonymous_chat/providers/user_rooms_provider.dart'; import 'package:anonymous_chat/utilities/theme_widget.dart'; import 'package:anonymous_chat/views/room...
9,268
https://github.com/KeksNerower/lenses_calendar/blob/master/lib/components/day/calendar_day.dart
Github Open Source
Open Source
MIT
null
lenses_calendar
KeksNerower
Dart
Code
71
299
import 'package:flutter/material.dart'; import 'package:lenses_calendar/model/date_handler.dart'; import 'day_cell.dart'; import 'wrappers/change_day_wrapper.dart'; import 'wrappers/selected_day_wrapper.dart'; class CalendarDay extends StatelessWidget { final DateHandler dateHandler; final Function onTap; cons...
55,537
https://github.com/beqabeqa473/ru_tts/blob/master/jni/Android.mk
Github Open Source
Open Source
MIT
null
ru_tts
beqabeqa473
Makefile
Code
44
243
LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := ru_tts LOCAL_SRC_FILES := ../text2speech.c ../synth.c \ ../utterance.c ../speechrate_control.c ../time_planner.c \ ../numerics.c ../intonator.c ../transcription.c \ ../male.c ../female.c ../sink.c ../soundproducer.c include $(BUILD_STATIC_LIB...
1,607
https://github.com/Iixianjie/flicker/blob/master/src/docs/form/select/utils.ts
Github Open Source
Open Source
MIT
2,022
flicker
Iixianjie
TypeScript
Code
89
271
import { SelectOptionItem } from 'm78/select'; export const options: SelectOptionItem[] = [ { label: 'vanillaJS', value: 1, prefix: '🍀', }, { label: 'typescript', value: 2, }, { label: 'react', value: 3, }, { label: 'vue', value: 4, }, { label: 'angular', ...
3,410
https://github.com/droplet-js/zxing-dart/blob/master/test/core/qrcode/encoder/matrix_util_test.dart
Github Open Source
Open Source
Apache-2.0
2,021
zxing-dart
droplet-js
Dart
Code
2,164
4,154
/* * Copyright 2008 ZXing 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 agreed ...
29,369
https://github.com/Igho-Godwin/experiments/blob/master/lpg247/public/js/user.js
Github Open Source
Open Source
MIT
2,020
experiments
Igho-Godwin
JavaScript
Code
696
3,696
$( ".add-user" ).click(function() { $('.fa-spin').removeClass('hide'); var formData = new FormData(document.getElementById('createUserForm')); $.ajax({ url: "api/addUser", method: "post", headers: { 'Accept':'application/json', },...
18,690
https://github.com/wealdtech/wealdtech/blob/master/wealdtech-configuration/src/test/java/test/com/wealdtech/configuration/guice/SampleConfigurationModule.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-warranty-disclaimer
2,015
wealdtech
wealdtech
Java
Code
147
360
/* * Copyright 2012 - 2014 Weald Technology Trading Limited * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
53,079
https://github.com/jawhitney/rp-email-heroes-quiz/blob/master/node_modules/ng2-sharebuttons/components/share-buttons/share-buttons.component.d.ts
Github Open Source
Open Source
MIT
null
rp-email-heroes-quiz
jawhitney
TypeScript
Code
138
331
import { OnInit, EventEmitter } from '@angular/core'; import { ShareButton } from "../../helpers/share-buttons.class"; import { ShareProvider } from "../../helpers/share-provider.enum"; export declare class ShareButtonsComponent implements OnInit { /** Share link args */ url: string; title: string; desc...
7,236
https://github.com/KingDragon08/imchat/blob/master/app/Http/Controllers/Common/CommonController.php
Github Open Source
Open Source
MIT
2,019
imchat
KingDragon08
PHP
Code
294
950
<?php namespace App\Http\Controllers\Common; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Services\CommonService; use App\Services\UserService; use Validator; use Exception; class CommonController extends Controller { /** * 获取广告 * @param Request $request [description] ...
2,534
https://github.com/naseemakhtar994/NaraeImagePicker/blob/master/library/src/main/java/pyxis/uzuki/live/naraeimagepicker/event/DetailEvent.kt
Github Open Source
Open Source
Apache-2.0
2,021
NaraeImagePicker
naseemakhtar994
Kotlin
Code
23
67
package pyxis.uzuki.live.naraeimagepicker.event /** * NaraeImagePicker * Class: DetailEvent * Created by Pyxis on 1/6/18. * * Description: */ data class DetailEvent(val path: String)
17,374
https://github.com/Dahaka934/AutoHotkey_4HBot/blob/master/source/fh_bot.cpp
Github Open Source
Open Source
BSD-3-Clause
null
AutoHotkey_4HBot
Dahaka934
C++
Code
2,351
7,683
#include "stdafx.h" #include "fh_bot.h" #define FH_DEV1 #define FH_ASYNC #include "fh_bitmap.h" #include "fh_bitmapqueue.h" #include "fh_utils.h" using namespace ForHonor; using std_clock = std::chrono::high_resolution_clock; enum class Result : uint32_t { NONE = 0, ATK_U = 1, ATK_L = 2, ATK_R = 3,...
34,096
https://github.com/37705109/haproxy-wi/blob/master/app/scripts/install_haproxy.sh
Github Open Source
Open Source
Apache-2.0
2,019
haproxy-wi
37705109
Shell
Code
351
1,410
#!/bin/bash for ARGUMENT in "$@" do KEY=$(echo $ARGUMENT | cut -f1 -d=) VALUE=$(echo $ARGUMENT | cut -f2 -d=) case "$KEY" in PROXY) PROXY=${VALUE} ;; SOCK_PORT) SOCK_PORT=${VALUE} ;; STAT_PORT) STAT_PORT=${VALUE} ;; STAT_FILE) STAT_FIL...
36,120
https://github.com/SE-Stuttgart/xstampp-4.1-naxt/blob/master/naxt-electron/src/naxt-stpa/src/main/services/util/chips/toChipMap.ts
Github Open Source
Open Source
Apache-2.0
2,022
xstampp-4.1-naxt
SE-Stuttgart
TypeScript
Code
442
2,207
import { Id, IdString } from '@src-shared/Interfaces'; import { Hazard, HazardLossLink, HazardSystemConstraintLink, Loss, ProcessModel, ProcessModelProcessVariableLink, ProcessVariable, ProcessVariableResponsibilityLink, Responsibility, ResponsibilitySubSystemConstraintLink, ResponsibilitySystemCo...
35,519
https://github.com/xebecnan/red/blob/master/tests/source/units/function-test.red
Github Open Source
Open Source
BSD-3-Clause, BSL-1.0
2,014
red
xebecnan
null
Spoken
914
2,850
Red [ Title: "Red function test script" Author: "Nenad Rakocevic & Peter W A Wood" File: %function-test.reds Tabs: 4 Rights: "Copyright (C) 2011-2012 Nenad Rakocevic & Peter W A Wood. All rights reserved." License: "BSD-3 - https://github.com/dockimbel/Red/blob/origin/BSD-3-License.txt" ] #include %../.....
10,230
https://github.com/kuc-k/Pomomo/blob/master/bot/src/voice_client/vc_manager.py
Github Open Source
Open Source
MIT
2,021
Pomomo
kuc-k
Python
Code
70
320
from discord import VoiceChannel from configs import user_messages as u_msg from ..session.Session import Session connected_sessions = {} async def connect(session: Session): ctx = session.ctx if ctx.voice_client and get_connected_session(ctx.voice_client.channel): await ctx.send(u_msg.ACTIVE_SESSIO...
38,635
https://github.com/wangyeky3419/Angular/blob/master/ng-zorro源码/src/components/modal/nz-modal.service.ts
Github Open Source
Open Source
MIT
2,018
Angular
wangyeky3419
TypeScript
Code
664
2,286
/* tslint:disable:prefer-method-signature no-string-literal */ import { ApplicationRef, ComponentFactory, ComponentFactoryResolver, ComponentRef, Injectable, ModuleWithComponentFactories, TemplateRef, Type, } from '@angular/core'; import { NzLocaleService } from '../locale/index'; import { NzConfirmComp...
47,140
https://github.com/igorslobodyanyuk/SlothEnterprise/blob/master/SlothEnterprise.ProductApplication/Adapters/SelectInvoiceServiceAdapter.cs
Github Open Source
Open Source
MIT
null
SlothEnterprise
igorslobodyanyuk
C#
Code
72
292
using System; using SlothEnterprise.External.V1; using SlothEnterprise.ProductApplication.Applications; using SlothEnterprise.ProductApplication.Products; namespace SlothEnterprise.ProductApplication.Adapters { public interface ISelectInvoiceServiceAdapter : ISubmissionServiceAdapter { } public class...
18,133
https://github.com/zmf0507/Group-Chat-App/blob/master/chatindex.php
Github Open Source
Open Source
Apache-2.0
2,016
Group-Chat-App
zmf0507
PHP
Code
101
395
<?php include 'db.php'; ?> <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="test.css"> <script> function ajax() { var req = new XMLHttpRequest(); req.onreadystatechange = function() { if(req.readyState == 4 && req.status == 200) { document.getElementByI...
54,530
https://github.com/mhmhse/connecting-to-services/blob/master/test/unit/lib/getSearchType.js
Github Open Source
Open Source
MIT
2,020
connecting-to-services
mhmhse
JavaScript
Code
140
393
const chai = require('chai'); const getSearchType = require('../../../app/lib/getSearchType'); const constants = require('../../../app/lib/constants'); const expect = chai.expect; const noCoordinates = {}; const validCoordinates = { latitude: 0.1, longitude: -0.5 }; describe('get search type', () => { it('should re...
51,090
https://github.com/actboy168/hero-fight/blob/master/ASLib/ASFile.h
Github Open Source
Open Source
MIT
2,021
hero-fight
actboy168
C
Code
91
409
#ifndef INCLUDE_ASFILE_H #define INCLUDE_ASFILE_H #include "ASLib.h" #include "ASIni.h" #include "ASXls.h" typedef enum { ASFILE_TYPE_UNKNOW = 1, ASFILE_TYPE_INI, ASFILE_TYPE_XLS, } ASFILE_TYPE; typedef struct _tag_ASFile { ASHANDLE ptr; ASFILE_TYPE type; } ASFile, *PASFile; //-----------------------...
47,672
https://github.com/mishin/firebug/blob/master/tests/content/css/4543/issue4543.js
Github Open Source
Open Source
BSD-3-Clause
2,013
firebug
mishin
JavaScript
Code
169
544
function runTest() { FBTest.sysout("issue4543.START"); FBTest.openNewTab(basePath + "css/4543/issue4543.html", function(win) { FBTest.openFirebug(); FBTest.selectPanel("html"); FBTest.selectElementInHtmlPanel("element1", function(node) { var panel = FBTest.select...
20,914
https://github.com/cjsq24/base-system-mern-frontend/blob/master/src/views/states/StateForm.jsx
Github Open Source
Open Source
MIT
null
base-system-mern-frontend
cjsq24
null
Spoken
178
709
import { useState } from 'react' import { useSelector } from 'react-redux'; import { CForm, CFormGroup, CRow, CCol, CModal } from '@coreui/react'; import InputT from '../../components/inputs/InputT' import ButtonForm from '../../components/buttons/ButtonForm' import SelectGroup from '../../components/selects/SelectGrou...
20,957
https://github.com/julio9246/hg-poker-api/blob/master/source/database.py
Github Open Source
Open Source
Apache-2.0
null
hg-poker-api
julio9246
Python
Code
36
175
from py_postgresql_wrapper.configuration import Configuration from py_postgresql_wrapper.database import Database import source.commons.environment as environment CONFIGURATION = Configuration( configuration_dict={ 'database': environment.DATABASE_NAME, 'host': environment.DATABASE_HOST, '...
6,615
https://github.com/jac99/Egonn/blob/master/datasets/base_datasets.py
Github Open Source
Open Source
MIT
2,022
Egonn
jac99
Python
Code
514
1,637
# Base dataset classes, inherited by dataset-specific classes import os import pickle from typing import List, Dict import torch import numpy as np from torch.utils.data import Dataset from datasets.kitti.kitti_raw import KittiPointCloudLoader from datasets.mulran.mulran_raw import MulranPointCloudLoader from datasets...
18,604
https://github.com/JackZhouSz/nerf-tex/blob/master/instancer/setup.py
Github Open Source
Open Source
MIT
2,021
nerf-tex
JackZhouSz
Python
Code
41
253
from setuptools import setup, Extension from Cython.Build import cythonize import numpy EMBREE3_INCLUDE_DIR = '/usr/include/embree3' EMBREE3_LIBRARY_DIR = '/usr/lib/embree3' ext = Extension( name='instancer', sources=['instancer.pyx'], include_dirs=[numpy.get_include(), 'submodules/eigen', 'submodules/lib...
34,307
https://github.com/APurejing/demos/blob/master/webpack-example/node_modules/@egjs/axes/declaration/index.umd.d.ts
Github Open Source
Open Source
MIT
null
demos
APurejing
TypeScript
Code
7
16
import Axes from "./Axes"; export default Axes;
10,368
https://github.com/skorulis/beermoney-balances/blob/master/sites/usertesting.js
Github Open Source
Open Source
MIT
2,021
beermoney-balances
skorulis
JavaScript
Code
17
66
var item = $("#ste-payment_status"); if(item.length == 1) { var text = item.clone().children().remove().end().text(); text = text.replace("$",""); saveBalance("usertesting",parseFloat(text)); }
18,535
https://github.com/Syncinus/Hbm-s-Nuclear-Tech-GIT/blob/master/src/main/java/com/hbm/render/item/weapon/ItemRenderFolly.java
Github Open Source
Open Source
Unlicense
null
Hbm-s-Nuclear-Tech-GIT
Syncinus
Java
Code
164
837
package com.hbm.render.item.weapon; import org.lwjgl.opengl.GL11; import com.hbm.items.weapon.GunFolly; import com.hbm.lib.RefStrings; import com.hbm.render.item.TEISRBase; import com.hbm.render.model.ModelFolly; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ItemCameraTransf...
9,489
https://github.com/aneryusui/shiraboot/blob/master/application/index/validate/Hub.php
Github Open Source
Open Source
Apache-2.0
2,020
shiraboot
aneryusui
PHP
Code
59
222
<?php namespace app\index\validate; use think\Validate; class Hub extends Validate { protected $rule = [ 'host' => 'require|min:7', 'port' => 'require', 'time' => 'require', 'mode' => 'require', 'vip' => 'require', ]; protected $message = [ 'host.require' => '请输入ip或url', 'port.require' ...
116
https://github.com/SalesforceLabs/Soundboardforce/blob/master/force-app/main/default/lwc/groupMember/__tests__/groupMember.test.js
Github Open Source
Open Source
BSD-3-Clause
2,022
Soundboardforce
SalesforceLabs
JavaScript
Code
137
463
/* * Copyright (c) 2020, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import { createElement } from "lwc"; import GroupMember from "c/GroupMember"; describe("c-...
5,381
https://github.com/joequant/bitquant-local/blob/master/bitstation/docker-setup.sh
Github Open Source
Open Source
BSD-2-Clause
null
bitquant-local
joequant
Shell
Code
228
1,084
#!/bin/bash echo "ZONE=Asia/Hong_Kong" > /etc/sysconfig/clock export TZ="Asia/Hong_Kong" BACKUP_DISTRIB=http://mirrors.kernel.org/mageia/distrib if grep -q Cauldron /etc/release ; then echo "cauldron" VERSION=cauldron else echo "version 6" VERSION=6 fi # Refresh locale and glibc for missing latin items # needed for...
21,394
https://github.com/tarcisiodelmondes/e-commerce-desafio-hiring-coders-2/blob/master/src/styles/components/headerStyle.ts
Github Open Source
Open Source
MIT
2,021
e-commerce-desafio-hiring-coders-2
tarcisiodelmondes
TypeScript
Code
154
565
import styled from "styled-components"; import { colorLight, colorPrimary, colorPrimaryDark, colorPrimaryLight, } from "../colors"; export const HeaderStyle = styled.header` display: flex; align-items: center; height: 5rem; padding: 1rem; background-color: ${colorLight}; box-shadow: 1px 1px 3px r...
3,975
https://github.com/MishaHnatyshyn/supermarket-self-service-app/blob/master/src/components/PaymentMethodForm.js
Github Open Source
Open Source
Apache-2.0
null
supermarket-self-service-app
MishaHnatyshyn
JavaScript
Code
270
1,222
import React from 'react'; import { StyleSheet, View, Text, TextInput, Image, } from 'react-native'; import PropTypes from 'prop-types'; import { $gray, $lightGray } from '../constants/Colors'; export default function PaymentMethodForm({ cardNumber, setCardNumber, expirationDateYear, setExpirationDateYear, ...
42,080
https://github.com/tscolari/occurro/blob/master/spec/lib/occurro/tasks_spec.rb
Github Open Source
Open Source
MIT
2,014
occurro
tscolari
Ruby
Code
96
458
require 'spec_helper' module Occurro describe Tasks do describe "Counter Updates" do [:daily, :weekly, :monthly].each do |period_type| context "#{period_type}" do before(:each) do Occurro::Tasks.stub(:update_counters).and_return(true) end it "should updat...
5,260
https://github.com/JamesMenetrey/CSharp-6-New-Features/blob/master/04. UsingStatic/UsingExtensionMethodsStaticClass.cs
Github Open Source
Open Source
MIT
2,015
CSharp-6-New-Features
JamesMenetrey
C#
Code
76
159
using System.Collections.Generic; using System.Linq.Enumerable; public class UsingExtensionMethodsStaticClass { public IEnumerable<int> GetOddNumbersBetween(int min, int max) { var range = Range(min, max); // Static method System.Linq.Enumerable.Range var odd = Where(range, i => i % 2 == 1); ...
30,120
https://github.com/Cocowwy/Orange-HNCU/blob/master/orange-wall/src/main/java/cn/cocowwy/orange/orangewall/mapper/TOrangeWallMapper.java
Github Open Source
Open Source
Apache-2.0
2,021
Orange-HNCU
Cocowwy
Java
Code
28
153
package cn.cocowwy.orange.orangewall.mapper; import cn.cocowwy.orange.orangewall.entity.TOrangeWall; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 橙愿墙信息表(TOrangeWall)表数据库访问层 * * @author Cocowwy * @since 2021-04-16 23:58:18 */ @Mapper public interface T...
3,489
https://github.com/neicul01/I-Rob/blob/master/Base/Wifi_configuration.py
Github Open Source
Open Source
MIT
2,021
I-Rob
neicul01
Python
Code
262
681
# todo's : 0. make sure the roboter is off ! # 1.adapt SSID;Passwort;Broker-ip; in line 17 # 2.adapt COM-Port-number in line 29 and 31 ->if you do not now the port-number than: I set 'com_port_known' in line 19 to False # ...
26,143
https://github.com/triettm40/wordpress/blob/master/wordpress/wp-content/plugins/mailpoet/lib/Tasks/Sending.php
Github Open Source
Open Source
Apache-2.0
2,021
wordpress
triettm40
PHP
Code
750
2,895
<?php namespace MailPoet\Tasks; if (!defined('ABSPATH')) exit; use MailPoet\Logging\LoggerFactory; use MailPoet\Models\ScheduledTask; use MailPoet\Models\ScheduledTaskSubscriber; use MailPoet\Models\SendingQueue; use MailPoet\Util\Helpers; use MailPoet\WP\Functions as WPFunctions; use MailPoetVendor\Carbon\Carbon; ...
52,794
https://github.com/chinra02/angular1/blob/master/bower_components/esri-leaflet-clustered-feature-layer/Gruntfile.js
Github Open Source
Open Source
MIT
2,021
angular1
chinra02
JavaScript
Code
229
887
var fs = require('fs'); module.exports = function(grunt) { var browsers = grunt.option('browser') ? grunt.option('browser').split(',') : ['PhantomJS']; var copyright = '/*! <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today(\'yyyy-mm-dd\') %>\n' + '* Copyright (c) <%= grunt.templ...
30,058
https://github.com/LHBlhbL/-Graduation-Project/blob/master/ruoyi-project/src/main/java/com/ruoyi/project/core/NameSelect.java
Github Open Source
Open Source
MIT
null
-Graduation-Project
LHBlhbL
Java
Code
68
213
package com.ruoyi.project.core; import com.ruoyi.project.domain.ProjectDeptUser; import java.io.Serializable; public class NameSelect implements Serializable { private static final long serialVersionUID = 1L; private Long id; private String label; public NameSelect(){ } public Long getId()...
26,070
https://github.com/dandyvica/clf/blob/master/tests/unittest/list_files.log.3
Github Open Source
Open Source
MIT
2,021
clf
dandyvica
null
Spoken
3,616
6,359
1970-01-01 00:00:00: ---- this is an error generated for tests, line number = 001, error id = 29460 1970-01-01 00:00:00: * this is a warning generated for tests, line number = 002, warning id = 21858 1970-01-01 00:00:00: ---- this is an error generated for tests, line number = 003, error id = 77321 1970-01-01 00:00:00:...
14,306
https://github.com/pablodelolmo/eversense-android-app-patched/blob/master/com.senseonics.gen12androidapp/smali/org/bouncycastle/asn1/oiw/OIWObjectIdentifiers.smali
Github Open Source
Open Source
Unlicense
2,019
eversense-android-app-patched
pablodelolmo
Smali
Code
238
2,195
.class public interface abstract Lorg/bouncycastle/asn1/oiw/OIWObjectIdentifiers; .super Ljava/lang/Object; # static fields .field public static final desCBC:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier; .field public static final desCFB:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier; .field public static final desECB:...
30,704
https://github.com/Coornail/pos-cli/blob/master/lib/templates.js
Github Open Source
Open Source
MIT
2,022
pos-cli
Coornail
JavaScript
Code
184
456
const fs = require('fs'), path = require('path'); const mustache = require('mustache'); const logger = require('./logger'); const tags = ['<%=', '=%>']; const allowedTemplateExtentions = ['.css', '.js', '.liquid', '.yml', '.xml', '.json', '.svg', '.graphql', '.html']; /** * This function will replace tags with v...
18,602