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/pentaho/pentaho-kettle/blob/master/plugins/file-open-save-new/api/src/main/java/org/pentaho/di/plugins/fileopensave/api/providers/EntityType.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
pentaho-kettle
pentaho
Java
Code
403
996
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2023 by Hitachi Vantara : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 ...
49,569
https://github.com/lalainarahajason/regional/blob/master/web/app/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders/src/media/shortcodes/class-wpml-page-builders-media-shortcodes.php
Github Open Source
Open Source
MIT
2,022
regional
lalainarahajason
PHP
Code
509
1,460
<?php class WPML_Page_Builders_Media_Shortcodes { const TYPE_URL = 'media-url'; const TYPE_IDS = 'media-ids'; /** @var WPML_Page_Builders_Media_Translate $media_translate */ private $media_translate; /** @var string $target_lang */ private $target_lang; /** @var string $source_lang */ private $source_lang;...
48,352
https://github.com/BeastNeedsMoreTorque/Distribution/blob/master/v/vso-node-api/src/main/scala/typings/vsoNodeApi/anon/Direct.scala
Github Open Source
Open Source
MIT
2,020
Distribution
BeastNeedsMoreTorque
Scala
Code
70
244
package typings.vsoNodeApi.anon import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation._ trait Direct extends js.Object { var direct: scala.Double var expanded: scala.Double var expandedDown: scala.Double var expandedUp: scala.Double var none: scala.Double } object Direct { ...
37,106
https://github.com/aerisweather/kubejs/blob/master/lib/util/waitUntil.js
Github Open Source
Open Source
MIT
2,020
kubejs
aerisweather
JavaScript
Code
47
142
const _ = require('lodash'); function waitUntil(predicateFn, opts) { opts = _.defaults({}, opts || {}, { pollInterval: 2000 }); return new Promise(done => { const int = setInterval(() => { Promise.resolve(predicateFn()) .then(isDone => { if (isDone) { clearInterval(int); done(); } ...
14,637
https://github.com/mundaym/opentitan/blob/master/hw/ip/keymgr/dv/env/seq_lib/keymgr_direct_to_disabled_vseq.sv
Github Open Source
Open Source
Apache-2.0
null
opentitan
mundaym
null
Spoken
102
469
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Issue operation OpDisable in any state and check it enters StDisabled correctly class keymgr_direct_to_disabled_vseq extends keymgr_random_vseq; `uvm_object_utils(k...
47,847
https://github.com/ansi88/weixin4j/blob/master/weixin4j-base/src/test/java/com/foxinmy/weixin4j/base/test/PayTest.java
Github Open Source
Open Source
Apache-2.0
2,022
weixin4j
ansi88
Java
Code
433
2,252
package com.foxinmy.weixin4j.base.test; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.Calendar; import java.util.Date; import org.junit.Assert; import org.junit.Test; import com.foxinmy.weixin4j.exception.WeixinException; import com.foxinmy.weixin4j.http.w...
25,502
https://github.com/senarvi/theanolm/blob/master/theanolm/training/rmspropnesterovoptimizer.py
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
theanolm
senarvi
Python
Code
442
1,154
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """A module that implements the RMSProp optimizer with Nesterov momentum. """ import numpy import theano.tensor as tensor from theanolm.backend import Parameters from theanolm.training.basicoptimizer import BasicOptimizer class RMSPropNesterovOptimizer(BasicOptimizer): ...
51,562
https://github.com/bingart/WinWaker/blob/master/Source/WinWaker/WinWaker.cpp
Github Open Source
Open Source
Apache-2.0
null
WinWaker
bingart
C++
Code
483
1,339
// WinWaker.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include <string> #include "WinWaker.h" #include "WinWakerDlg.h" #include "WorkLog.h" #include "WorkConfig.h" #include "SplashDlg.h" #include "WorkReg.h" #include <Windows.h> #include <WinSvc.h> #include "Interface.h" #include "...
29,629
https://github.com/sandialabs/sirocco-release/blob/master/deps/idb/src/idb_impl.c
Github Open Source
Open Source
BSD-2-Clause, LicenseRef-scancode-warranty-disclaimer
2,019
sirocco-release
sandialabs
C
Code
1,609
5,440
#include <sys/types.h> #include <limits.h> #include <time.h> #include <sys/time.h> #include <db.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include "idb.h" #include "idb_internal.h" #include "idb_impl_util.h" #include "idb_dbg.h" /* Aesop switching functionalit...
6,228
https://github.com/uccross/awkward-1.0/blob/master/src/cpu-kernels/awkward_ByteMaskedArray_reduce_next_nonlocal_nextshifts_fromshifts_64.cpp
Github Open Source
Open Source
BSD-3-Clause
null
awkward-1.0
uccross
C++
Code
69
300
// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/master/LICENSE #define FILENAME(line) FILENAME_FOR_EXCEPTIONS_C("src/cpu-kernels/awkward_ByteMaskedArray_reduce_next_nonlocal_nextshifts_fromshifts_64.cpp", line) #include "awkward/kernels.h" ERROR awkward_ByteMaskedArray_reduce_next_nonloca...
23,655
https://github.com/xoopscube/xcl/blob/master/html/modules/legacy/admin/menu.php
Github Open Source
Open Source
BSD-2-Clause, GPL-1.0-or-later, BSD-3-Clause, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-free-unknown, GPL-2.0-only
2,021
xcl
xoopscube
PHP
Code
87
1,000
<?php /** * menu.php * @package Legacy * @version 2.3.0 * @author Gigamaster, XCL 2020 PHP7 * @author kilica, 2008/09/25 * @copyright Copyright 2005-2021 XOOPSCube Project * @license https://github.com/xoopscube/xcl/blob/master/GPL_V2.txt * @license https://github.com/xoopscube/xcl/blob/master/BSD...
23,283
https://github.com/PRNDcompany/canvas-object/blob/master/src/graphics/Text.ts
Github Open Source
Open Source
MIT
null
canvas-object
PRNDcompany
TypeScript
Code
187
677
import { DisplayObject, DisplayObjectOptions } from './DisplayObject'; export interface TextOptions extends DisplayObjectOptions { content: string; fontFamily?: string; fontSize?: number; textBaseline?: CanvasTextBaseline; textAlign?: CanvasTextAlign; fontWeight?: string | number; } export class Text exte...
19,877
https://github.com/Kinvey/objective-c/blob/master/PubNub/include/PNFetchChannelsMetadataResult.h
Github Open Source
Open Source
MIT
null
objective-c
Kinvey
C
Code
375
832
#import "PNServiceData.h" #import "PNResult.h" #import "PNChannelMetadata.h" NS_ASSUME_NONNULL_BEGIN #pragma mark Interfaces declaration /** * @brief Object which is used to represent Objects API response for \c fetch \c channel * \c metadata request. * * @author Serhii Mamontov * @version 4.14.0 * @since 4.1...
13,550
https://github.com/microsoft/omnichannel-chat-sdk/blob/master/src/external/aria/common/Utils.js
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, MIT
2,023
omnichannel-chat-sdk
microsoft
JavaScript
Code
1,328
3,272
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Utils.ts * @author Brent Erickson (brericks) and Abhilash Panwar (abpanwar) * @copyright Microsoft 2017 * File containing utility functions. */ var microsoft_bond_primitives_1 = require("../bond/microsoft.bond.primitives"); var Enums_1 ...
18,711
https://github.com/NextConner/springCloudLearning/blob/master/cloud/cloud-gateway/src/main/java/com/example/cloud/gateway/repository/CloudAuthorizedClientRepository.java
Github Open Source
Open Source
Apache-2.0
null
springCloudLearning
NextConner
Java
Code
92
339
//package com.example.cloud.gateway.repository; // //import org.springframework.security.core.Authentication; //import org.springframework.security.oauth2.client.OAuth2AuthorizedClient; //import org.springframework.security.oauth2.client.web.server.ServerOAuth2AuthorizedClientRepository; //import org.springframework.st...
1,429
https://github.com/Samsung/Castanets/blob/master/ios/chrome/browser/feature_engagement/feature_engagement_egtest.mm
Github Open Source
Open Source
BSD-3-Clause
2,021
Castanets
Samsung
Objective-C++
Code
1,864
7,784
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import <EarlGrey/EarlGrey.h> #import <XCTest/XCTest.h> #include "base/bind.h" #include "base/strings/sys_string_conversions.h" #import "base/test/ios/wa...
21,433
https://github.com/stomar/lanyon/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,023
lanyon
stomar
Ignore List
Code
3
18
*.gem demo/.jekyll-cache/ demo/_site/
2,246
https://github.com/seyyedalimirhoseini/File_Market/blob/master/resources/views/Avatar/edit.blade.php
Github Open Source
Open Source
MIT
2,020
File_Market
seyyedalimirhoseini
Blade
Code
257
1,473
@extends('Admin.layout.master') @section('title') صفحه ویرایش پروفایل @endsection @section('content') @include('message') <div class="container-fluid"> <div class="row-fluid"> <div class="span12"> <div class="widget-box"> <div class="widget-title"> <span class="icon"> <...
45,215
https://github.com/LambdaSix/Amaranth/blob/master/Amaranth.Engine/Classes/Processing/Actions/Basic/AttackAction.cs
Github Open Source
Open Source
MIT
2,022
Amaranth
LambdaSix
C#
Code
105
310
using System; using System.Collections.Generic; using System.Text; using Amaranth.Util; namespace Amaranth.Engine { public class AttackAction : Action { public AttackAction(NotNull<Entity> attacker, NotNull<Entity> defender) : base(attacker) { mDefender = defender; ...
37,468
https://github.com/mcpsbot/OurTube/blob/master/src/commands/queue.ts
Github Open Source
Open Source
MIT
2,021
OurTube
mcpsbot
TypeScript
Code
147
563
import { SlashCommandBuilder } from "@discordjs/builders"; import { ApplyOptions } from "@sapphire/decorators"; import { ApplicationCommandRegistry, Command, CommandOptions } from "@sapphire/framework"; import { CommandInteraction, MessageEmbed } from "discord.js"; @ApplyOptions<CommandOptions>({ description: "show t...
31,186
https://github.com/samdiano/book-a-meal-1/blob/master/client/tests/reducers/ui.test.js
Github Open Source
Open Source
MIT
2,021
book-a-meal-1
samdiano
JavaScript
Code
139
392
import reducer from '../../src/reducers/ui'; const state = { modals: { open: false, type: null }, sideNav: { open: false } }; describe('UI Reducers', () => { it('should return initial state', () => { const newState = reducer(undefined, {}); expect(newState).toEqual(state); }); it('...
26,974
https://github.com/aloucks/vki/blob/master/examples/triangle.rs
Github Open Source
Open Source
MIT, Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,022
vki
aloucks
Rust
Code
821
3,489
#[macro_use] extern crate memoffset; use vki::{ AdapterOptions, BindGroupDescriptor, BindGroupEntry, BindGroupLayoutDescriptor, BindGroupLayoutEntry, BindingResource, BindingType, BlendDescriptor, BlendFactor, BlendOperation, BufferDescriptor, BufferUsage, Color, ColorStateDescriptor, ColorWrite, CullMode,...
5,553
https://github.com/MedBenHadid/reactorsbenevolat/blob/master/src/MissionBundle/Form/InvitationType.php
Github Open Source
Open Source
MIT
2,021
reactorsbenevolat
MedBenHadid
PHP
Code
53
236
<?php namespace MissionBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; class InvitationType extends AbstractType { /** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $bui...
40,122
https://github.com/aganeshalingam/webpack/blob/master/dist/shared/plugin-options-for-compiler.d.ts
Github Open Source
Open Source
MIT
null
webpack
aganeshalingam
TypeScript
Code
17
41
import { Compiler } from "webpack"; declare const _default: WeakMap<Compiler, { runtimeId?: string; }>; export default _default;
29,139
https://github.com/sma-it/oefening-observer-2/blob/master/oefening/Program.cs
Github Open Source
Open Source
MIT
null
oefening-observer-2
sma-it
C#
Code
58
181
using System; namespace oefening_1 { class Program { static void Main(string[] args) { NumberKeeper nKeeper = new NumberKeeper(); HexDisplay hexDisplay = new HexDisplay(); BinaryDisplay binaryDisplay = new BinaryDisplay(); var menu = new SMUtils...
35,632
https://github.com/MADWI/AppWIZUT2/blob/master/app/src/main/java/pl/edu/zut/mad/appwizut2/network/ScheduleEdzLoader.java
Github Open Source
Open Source
Apache-2.0
2,016
AppWIZUT2
MADWI
Java
Code
389
1,398
package pl.edu.zut.mad.appwizut2.network; import android.util.Log; import org.json.JSONArray; import org.json.JSONException; import java.io.IOException; import java.io.Serializable; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.GregorianCalendar; imp...
11,589
https://github.com/atanas-georgiev/TelerikAcademy/blob/master/01.CSharp-Part-1/Homework3/Problem13CheckBitAtGivenPosition/CheckBitAtGivenPosition.cs
Github Open Source
Open Source
MIT
null
TelerikAcademy
atanas-georgiev
C#
Code
114
267
//Problem 13. Check a Bit at Given Position //Write a Boolean expression that returns if the bit at position p (counting from 0 , starting from the right) in given integer number n , has value of 1. using System; namespace Problem13CheckBitAtGivenPosition { class CheckBitAtGivenPosition { static ...
48,787
https://github.com/gonnavis/repeater/blob/master/examples/canvas/app/main.js
Github Open Source
Open Source
MIT
2,019
repeater
gonnavis
JavaScript
Code
76
196
// Please `npm run example:canvas` and install parcel before test. import { screenshot, initHelpers } from '../../../index' initHelpers() const draw = () => { const canvas = document.getElementById('canvas') const context = canvas.getContext('2d') const centerX = canvas.width / 2 const centerY = canvas.heigh...
47,337
https://github.com/hash-bang/pdf-dicer/blob/master/examples/export.js
Github Open Source
Open Source
MIT
2,021
pdf-dicer
hash-bang
JavaScript
Code
209
538
#!/usr/bin/env node /** * This is a simple PDF-Dicer export script which takes a directory, scans all PDFs and exports all found files elsewhere * * To run (from the project root directory): * ./examples/export.js */ var async = require('async-chainable'); var Dicer = require('..'); var fs = require('fs'); var fspath ...
25,243
https://github.com/swaplicado/swap-shipping/blob/master/app/Models/Sat/Taxes.php
Github Open Source
Open Source
MIT
null
swap-shipping
swaplicado
PHP
Code
19
58
<?php namespace App\Models\Sat; use Illuminate\Database\Eloquent\Model; class Taxes extends Model { protected $table = 'sat_taxes'; protected $primaryKey = 'id'; }
47,807
https://github.com/omerlevran46/sdk/blob/master/pkg/_fe_analyzer_shared/test/flow_analysis/nullability/data/identical_spoof.dart
Github Open Source
Open Source
BSD-3-Clause
2,022
sdk
omerlevran46
Dart
Code
61
111
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. bool identical(Object? x, Object? y) => false; void test(int? x) { if (identical(x, null)) { x; ...
30,142
https://github.com/garchaaman19/Insta_clone/blob/master/Instagram/Interact/views.py
Github Open Source
Open Source
MIT
null
Insta_clone
garchaaman19
Python
Code
43
180
from django.shortcuts import render from rest_framework import status from rest_framework.response import Response from rest_framework.views import APIView from .serializers import * from .models import * # Create your views here. class CreateUserAPI(APIView): def post(self,request,*args,**kwargs): serial...
35,719
https://github.com/mgbatchelor/dd-trace-java/blob/master/dd-java-agent/instrumentation/hazelcast-3.9/src/test/groovy/test/hazelcast/v39/HazelcastTest.groovy
Github Open Source
Open Source
Apache-2.0
null
dd-trace-java
mgbatchelor
Groovy
Code
564
2,219
package test.hazelcast.v39 import com.hazelcast.core.Message import com.hazelcast.core.MessageListener import com.hazelcast.query.Predicates import datadog.trace.api.DDSpanTypes import datadog.trace.bootstrap.instrumentation.api.Tags import spock.util.concurrent.BlockingVariable import java.util.concurrent.TimeUnit ...
11,334
https://github.com/haint/encointer-wallet-flutter/blob/master/lib/mocks/api/api.dart
Github Open Source
Open Source
Apache-2.0
2,021
encointer-wallet-flutter
haint
Dart
Code
122
432
import 'package:encointer_wallet/mocks/api/apiAssets.dart'; import 'package:encointer_wallet/store/app.dart'; import 'package:encointer_wallet/service/substrateApi/api.dart'; import 'package:encointer_wallet/service/substrateApi/apiAccount.dart'; import 'package:encointer_wallet/mocks/api/apiEncointer.dart'; import 'pa...
21,156
https://github.com/PrateekKumarSingh/PowerShellTraps/blob/master/Basic/Double-quoted-string/.test.ps1
Github Open Source
Open Source
Apache-2.0
2,018
PowerShellTraps
PrateekKumarSingh
PowerShell
Code
26
83
task Test-1.expression { ($r = ./Test-1.expression.ps1) equals $r.Count 4 equals $r[0] '""' equals $r[1] '`"' equals $r[2] '.. " ..' equals $r[3] '.. " ..' }
20,762
https://github.com/tferega/TerraGen/blob/master/legacy/TerrainGeneration/TerrainGeneration/ProgressForm.cs
Github Open Source
Open Source
MIT
null
TerraGen
tferega
C#
Code
330
1,055
using System; using System.Drawing; using TerrainGeneration; namespace System.Windows.Forms { public partial class ProgressForm : Form, IProgressBox { #region Construction / Destruction public ProgressForm() { InitializeComponent(); } public void Show(IWin32Window owner, Rectangle ownerPosition, int ta...
25,112
https://github.com/bopopescu/sentimentally/blob/master/gsutil/boto/tests/autoscale/test_connection.py
Github Open Source
Open Source
Apache-2.0
null
sentimentally
bopopescu
Python
Code
406
952
# Copyright (c) 2011 Reza Lotun http://reza.lotun.name # All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights ...
32,747
https://github.com/bpjamieson/bpjamieson.github.io/blob/master/ponce_lp/js/main.js
Github Open Source
Open Source
MIT
2,017
bpjamieson.github.io
bpjamieson
JavaScript
Code
98
399
$(window).on('scroll', function () { // Step 1: Google $(window).scrollTop(); var distanceScrolled = $(window).scrollTop(); console.log('The distance scrolled is: ' + distanceScrolled); // $('h1').text('Hello!'); $('button').hover(function(){ // Add the moved class to #arrow $('#arrow').toggleClass('moved');...
4,513
https://github.com/bryan-hoang/c-tutoring-examples/blob/master/VariablesAndDataTypes/main.c
Github Open Source
Open Source
MIT
null
c-tutoring-examples
bryan-hoang
C
Code
291
573
#include <stdio.h> int main(int argc, char **argv) { // Variables: "Things that have a name and store a value" // Variable declaration: // "Declaring that a variable called x exists and will hold an integer" // - Variables can be called/named whatever you want // - Convention, camelCase int x;...
45,544
https://github.com/akeia/edisyn/blob/master/edisyn/Midi.java
Github Open Source
Open Source
Apache-2.0
2,017
edisyn
akeia
Java
Code
1,612
4,616
/*** Copyright 2017 by Sean Luke Licensed under the Apache License version 2.0 */ package edisyn; import edisyn.gui.*; import edisyn.synth.*; import javax.sound.midi.*; import java.util.*; import java.awt.*; import javax.swing.*; /**** Static class which contains methods for handling the global MIDI d...
20,031
https://github.com/jose-Abel/GlitchGarden/blob/master/Assets/Sprites/Cactus/Cactus Looping.png.meta
Github Open Source
Open Source
MIT
2,021
GlitchGarden
jose-Abel
Unity3D Asset
Code
4,698
15,666
fileFormatVersion: 2 guid: 84fd48e0bd0edcd40820f6b180981ce2 TextureImporter: internalIDToNameTable: - first: 213: -494203652057596113 second: Cactus Looping_0 - first: 213: -3766043228071613867 second: Cactus Looping_1 - first: 213: -7013789686129661295 second: Cactus Looping_2 -...
4,582
https://github.com/GeoTecINIT/symptoms-mobile-app/blob/master/src/app/views/main/modals/panic-button/panic-button.module.ts
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,023
symptoms-mobile-app
GeoTecINIT
TypeScript
Code
63
238
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { PanicButtonRoutingModule } from "./panic-button-routing.module"; import { NativeScriptCommonModule } from "@nativescript/angular"; import { CommonComponentsModule } from "~/app/views/common/common-components.module"; import { PanicButtonModalComponen...
18,688
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/annotated/pos/P136/P136626.conll
Github Open Source
Open Source
CC0-1.0, LicenseRef-scancode-public-domain
2,022
mtaac_cdli_ur3_corpus
cdli-gh
null
Spoken
137
674
#new_text=P136626 # ID FORM SEGM XPOSTAG HEAD DEPREL MISC o.1.1 1(disz) 1(disz)[one] NU o.1.2 {uruda}szen _ N o.1.3 gi4 gi[repay][-ø] V o.2.1 ki-la2-bi kila[weight]-bi[-ø] N o.2.2 4(u) 4(u)[ten] NU o.2.3 4(disz) 4(disz)[one] NU o.2.4 1/3(disz) 1/3(disz)[one] NU o.2.5 ma-na mana[unit] N o.3.1 e2 e[house] N o.3.2 ku3 kug...
40,118
https://github.com/RickMcAdams/FACC/blob/master/app/player.ts
Github Open Source
Open Source
MIT
null
FACC
RickMcAdams
TypeScript
Code
27
77
export class Player { name: string; team: string; id: number; minutes: number; points: number; rebounds: number; assists: number; steals: number; threes: number; blocks: number; rating: number; }
20,905
https://github.com/pAbogn/cpp_courses/blob/master/07_perfect_forwarding/07_08_forward_in_details/07_08_00_forward_in_details.cpp
Github Open Source
Open Source
MIT
2,021
cpp_courses
pAbogn
C++
Code
59
135
// Template argument is required for the std::forward() function (describe why) // Pass different arguments to the foo() function and describe instantiation and deduction #include <utility> struct A {}; template<typename T> T&& forward(T& t) noexcept { return static_cast<T&&>(t); } template <typename T> T&& foo...
33,928
https://github.com/mozisan/refor/blob/master/src/handlers/form/index.ts
Github Open Source
Open Source
MIT
2,017
refor
mozisan
TypeScript
Code
6
11
export { FormHandler } from './form';
44,738
https://github.com/isha-ra/-RajarshiJanakUniversity/blob/master/resources/views/backend/department/edit.blade.php
Github Open Source
Open Source
MIT
null
-RajarshiJanakUniversity
isha-ra
PHP
Code
72
371
@extends('backend.includes.layout') @section('content') <div class="container "> <div class="row"><h3 class="mx-auto mt-3">Edit Department</h3></div> <div class="container"> <div class="row m-5"> <div class="col-md-8 mx-auto shadow p-5"> <form me...
45,038
https://github.com/commercetools/commercetools-sdk-php-v2/blob/master/examples/symfony-app/docker/nginx/Dockerfile
Github Open Source
Open Source
MIT
2,023
commercetools-sdk-php-v2
commercetools
Dockerfile
Code
20
78
FROM nginx COPY symfony.conf /etc/nginx/conf.d/default.conf RUN echo "upstream php-upstream { server application:9000; }" > /etc/nginx/conf.d/upstream.conf RUN usermod -u 1000 www-data
40,066
https://github.com/jinlongliu/onos/blob/master/incubator/api/src/main/java/org/onosproject/incubator/net/resource/label/LabelResourceProviderRegistry.java
Github Open Source
Open Source
Apache-2.0
null
onos
jinlongliu
Java
Code
25
94
package org.onosproject.incubator.net.resource.label; import com.google.common.annotations.Beta; import org.onosproject.net.provider.ProviderRegistry; /** * Abstraction of an label resource provider registry. */ @Beta public interface LabelResourceProviderRegistry extends ProviderRegistry<LabelResourceProvi...
33,826
https://github.com/abreng/learning-library/blob/master/data-management-library/odi/odi-web-adb/odi-web-adb-additional-source/files/user-setup-parameters.sql
Github Open Source
Open Source
UPL-1.0, LicenseRef-scancode-unknown-license-reference
2,020
learning-library
abreng
SQL
Code
25
91
CREATE USER ODI_PARAMETERS IDENTIFIED BY "NewWelcome501#"; GRANT CREATE SESSION TO ODI_PARAMETERS; ALTER USER ODI_PARAMETERS ACCOUNT UNLOCK; GRANT DWROLE TO ODI_PARAMETERS; GRANT UNLIMITED TABLESPACE TO ODI_PARAMETERS;
16,888
https://github.com/wenwen357951/Hackathon-WarehouseIV/blob/master/Hackathon-WarehouseIV/resources/views/component/join_us/join_us.blade.php
Github Open Source
Open Source
MIT
null
Hackathon-WarehouseIV
wenwen357951
PHP
Code
113
627
<div class="container w-100 vh-100"> <div class="row h-100 justify-content-center align-items-center"> <div class="col-md-3"> <div class="contact-info"> <img src="https://image.ibb.co/kUASdV/contact-image.png" alt="image"/> <h2 class="display-3">加入我們!</h2> ...
17,480
https://github.com/1001b/bionotebook/blob/master/modules/common/src/main/pre-df/magic.scala
Github Open Source
Open Source
Apache-2.0
null
bionotebook
1001b
Scala
Code
8
32
package notebook.front.widgets.magic trait ExtraSamplerImplicits {} trait ExtraMagicImplicits {}
27,863
https://github.com/space-wizards/space-station-14/blob/master/Content.Shared/Procedural/DungeonPath.cs
Github Open Source
Open Source
MIT, CC-BY-NC-SA-3.0, CC-BY-SA-3.0, CC-BY-4.0, LicenseRef-scancode-proprietary-license
2,023
space-station-14
space-wizards
C#
Code
32
77
namespace Content.Shared.Procedural; /// <summary> /// Connects 2 dungeon rooms. /// </summary> public sealed record DungeonPath(string Tile, string Wall, HashSet<Vector2i> Tiles) { public string Tile = Tile; public string Wall = Wall; }
39,521
https://github.com/rozdol/beers.com/blob/master/src/Template/Plugin/CsvMigrations/Element/View/associated.ctp
Github Open Source
Open Source
MIT
null
beers.com
rozdol
PHP
Code
169
578
<?php use Qobo\Utils\ModuleConfig\ConfigType; use Qobo\Utils\ModuleConfig\ModuleConfig; use RolesCapabilities\Access\AccessFactory; $accessFactory = new AccessFactory(); $mc = new ModuleConfig(ConfigType::MODULE(), $this->name); $config = $mc->parse(); $hiddenAssociations = (array)$config->associations->hide_associa...
39,790
https://github.com/Cybernetics354/awesome_notifications/blob/master/ios/Classes/lib/notifications/managers/DisplayedManager.swift
Github Open Source
Open Source
Apache-2.0
null
awesome_notifications
Cybernetics354
Swift
Code
223
719
// // DisplayedManager.swift // awesome_notifications // // Displayed by Rafael Setragni on 15/09/20. // import Foundation public class DisplayedManager { static let shared:SharedManager = SharedManager(tag: Definitions.SHARED_DISPLAYED) static let pendingShared:SharedManager = SharedManager(tag: "Pen...
7,388
https://github.com/dvrico/artsy-history/blob/master/node_modules/traverson-hal/browser/example/traverson-hal-examples.js
Github Open Source
Open Source
MIT
2,022
artsy-history
dvrico
JavaScript
Code
131
537
(function() { /* global TraversonJsonHalAdapter */ 'use strict'; // register HAL adapter in Traverson's media type registry traverson.registerMediaType(TraversonJsonHalAdapter.mediaType, TraversonJsonHalAdapter); // create a new Traverson instance to work with HAL var rootUri = '/'; var api = traver...
3,099
https://github.com/matt-/dhis2-core/blob/master/dhis-2/dhis-web-api-test/src/test/java/org/hisp/dhis/webapi/controller/JobConfigurationControllerTest.java
Github Open Source
Open Source
BSD-3-Clause
null
dhis2-core
matt-
Java
Code
688
2,161
/* * Copyright (c) 2004-2021, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this * list of cond...
35,013
https://github.com/leleTang/wxdemo/blob/master/文档/WX_DEMO_API-master/application/index/controller/API.php
Github Open Source
Open Source
Apache-2.0
2,019
wxdemo
leleTang
PHP
Code
1,060
4,522
<?php /** * Created by PhpStorm. * User: zhangfan2 * Date: 2016/12/2 * Time: 10:19 */ namespace app\index\controller; use think\Db; use \think\Request; use \app\lib\myTools\M_Log; class API { //基础秘钥 private $password = "DsmMdsM"; private $password2='MY1Gdd'; //获取令牌值 public function getToken...
36,348
https://github.com/areffects/masks.fe.market/blob/master/src/styles/theme.ts
Github Open Source
Open Source
Unlicense
null
masks.fe.market
areffects
TypeScript
Code
117
612
import { DefaultTheme, IThemeMedia } from 'styled-components' const themeMedia: IThemeMedia = { smallUp: 'only screen', smallOnly: 'only screen and (max-width: 640px)', mediumUp: 'only screen and (min-width: 641px)', mediumOnly: 'only screen and (min-width: 641px) and (max-width: 1024px)', largeUp: 'only screen...
40,378
https://github.com/pauloscarin1972/2graph/blob/master/src/main/java/br/unicamp/ic/lis/tograph/concretebuilder/neo4j/neo4jrest/Neo4jRestConcreteBuilder.java
Github Open Source
Open Source
MIT
2,017
2graph
pauloscarin1972
Java
Code
1,678
6,022
package br.unicamp.ic.lis.tograph.concretebuilder.neo4j.neo4jrest; import java.net.ConnectException; import java.net.URI; import java.util.Iterator; import java.util.List; import java.util.Vector; import javax.ws.rs.core.MediaType; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json....
25,861
https://github.com/zdchao/php_demo/blob/master/wwwroot/framework/templates_c/new/a9/77/bc/a977bc7d6cf73129dd4cf0594e63ab7d70f78be3.file.head.html.php
Github Open Source
Open Source
Apache-2.0
null
php_demo
zdchao
PHP
Code
735
3,992
<?php /* Smarty version Smarty-3.0.5, created on 2015-12-22 05:14:28 compiled from "/home/ftp/d/dnsdun/wwwroot/wwwroot/domain/view/new/public/head.html" */ ?> <?php /*%%SmartyHeaderCode:136766347856786bb4757dd8-85897845%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodePropert...
21,733
https://github.com/gabriel-lima96/app-406adbc4/blob/master/backend/app/Http/Controllers/ProductHistoryController.php
Github Open Source
Open Source
MIT
null
app-406adbc4
gabriel-lima96
PHP
Code
82
219
<?php namespace App\Http\Controllers; use App\Models\Products; use Illuminate\Http\JsonResponse; class ProductHistoryController extends Controller { public function index(Products $product): JsonResponse { $history = $product->history->map(fn ($item) => $item->only(['quantity_change', 'created_at']))...
45,467
https://github.com/batiste/django-page-cms/blob/master/pages/tests/test_functional.py
Github Open Source
Open Source
BSD-3-Clause
2,023
django-page-cms
batiste
Python
Code
2,587
11,205
# -*- coding: utf-8 -*- """Django page CMS functionnal tests suite module.""" from pages.models import Page, Content, PageAlias from pages.tests.testcase import TestCase import django from django.conf import settings from django.urls import reverse from pages.utils import get_now from pages.phttp import get_request_mo...
46,448
https://github.com/elizaRjb/figmaland-template/blob/master/sass/modules/_testimonials-section.scss
Github Open Source
Open Source
MIT
null
figmaland-template
elizaRjb
SCSS
Code
61
208
.testimonials-section { @include e(content) { max-width: 352px; margin: 60px auto 0; @include mq(md) { max-width: 883px; } } @include e(row) { @include mq(md) { margin: 0 -12px 20px; &:last-child { margin-bottom: 0; } } } @include e(col) { margin...
34,167
https://github.com/Gergely/oscommerce/blob/master/osCommerce/OM/Core/Site/Admin/Application/Categories/pages/batch_move.php
Github Open Source
Open Source
BSD-3-Clause
2,022
oscommerce
Gergely
PHP
Code
191
787
<?php /** * osCommerce Online Merchant * * @copyright Copyright (c) 2011 osCommerce; http://www.oscommerce.com * @license BSD License; http://www.oscommerce.com/bsdlicense.txt */ use osCommerce\OM\Core\HTML; use osCommerce\OM\Core\OSCOM; ?> <script> $(function() { $('#cMoveBatchForm input, #cMoveBatchForm...
28,074
https://github.com/PatryxB/bikeService/blob/master/.history/resources/sass/app_20200501132555.scss
Github Open Source
Open Source
MIT
null
bikeService
PatryxB
SCSS
Code
26
85
html, body{ box-sizing: border-box; margin: 0; padding: 0; } .banner img{ width: 100%; height: 40vh; } h1{ color: red; font-size: 30px; } p{ color: green; }
15,050
https://github.com/KingCastle/joshchmod/blob/master/josh.php
Github Open Source
Open Source
MIT
2,016
joshchmod
KingCastle
PHP
Code
188
555
<?php Game of trunnnnzzzzzzz :| /** * @author : Alireza Josheghani [ Josh ] * @package : JoshChmod * @version : 0.0.1 */ class Josh { var $red; var $no_color; var $green; var $yellow; public function __construct(){ $this->red = "\033[3...
18,628
https://github.com/brianorwhatever/learner-credential-wallet/blob/master/app/navigation/HomeNavigation/HomeNavigation.styles.ts
Github Open Source
Open Source
MIT
2,022
learner-credential-wallet
brianorwhatever
TypeScript
Code
23
64
import { StyleSheet } from 'react-native'; import { theme } from '../../styles'; export default StyleSheet.create({ barStyle: { backgroundColor: theme.color.backgroundSecondary, borderTopWidth: 0, }, });
41,650
https://github.com/jagermesh/bright/blob/master/js/br.dataEditor.js
Github Open Source
Open Source
MIT
null
bright
jagermesh
JavaScript
Code
1,608
6,296
/*! * Bright 2.0 * * Copyright 2012-2019, Sergiy Lavryk (jagermesh@gmail.com) * Dual licensed under the MIT or GPL Version 2 licenses. * http://brightfw.com * */ ;(function($, window) { window.br = window.br || Object.create({}); function BrDataEditor(selector, dataSource, options) { const _this = th...
9,753
https://github.com/MuhammadFadel/Hotel-System-in-PHP/blob/master/phpfile/model.php
Github Open Source
Open Source
Apache-2.0
2,018
Hotel-System-in-PHP
MuhammadFadel
PHP
Code
279
1,200
<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <!-- ************************************************************************* --> <!--[if lt IE 7]> <html lang="en"...
26,687
https://github.com/MrJohnZoidberg/snips-skill-respeaker/blob/master/src/animation.c
Github Open Source
Open Source
MIT
null
snips-skill-respeaker
MrJohnZoidberg
C
Code
721
2,998
#include "animation.h" #include "cAPA102.h" #include "verbose.h" extern SNIPS_RUN_PARA RUN_PARA; /* @brief: Consider that each color has 255 level brightness, * this function remap the origin rgb value to a certain * level of brightness. */ static uint32_t remap_4byte(uint32_t color, uint8_t bright...
16,117
https://github.com/keensap/portal/blob/master/Data/Entities/Entity.cs
Github Open Source
Open Source
Apache-2.0
null
portal
keensap
C#
Code
36
103
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace KeenSap.Portal.Data.Entities { public abstract class Entity : IEntity { [Key] [Column("id", Order = 1)] public long Id { get; set; } public virtual void copy...
12,417
https://github.com/voutilad/groom-gcp/blob/master/udp/subscription-listener.js
Github Open Source
Open Source
0BSD
null
groom-gcp
voutilad
JavaScript
Code
106
320
/* global process */ const {PubSub} = require('@google-cloud/pubsub'); const SUBSCRIPTION = process.env.GROOM_SUBSCRIPTION || 'groom-sub' const PROJECT = process.env.GCP_PROJECT const KEY = process.env.GOOGLE_APPLICATION_CREDENTIALS function listenForMessages( projectId = PROJECT, subscriptionName = SUBSCRIPTION,...
40,920
https://github.com/vansh-tiwari/coding-interview-gym/blob/master/leetcode.com/swift/DS_ALGO_PRAC.playground/Sources/swift/362_Design_Hit_Counter.swift
Github Open Source
Open Source
MIT
2,022
coding-interview-gym
vansh-tiwari
Swift
Code
182
428
import Foundation class HitCounter { var timestampHitMap: [Int: Int] = [:] var timestamps: [Int] = Array() /** Initialize your data structure here. */ init() { } /** Record a hit. @param timestamp - The current timestamp (in seconds granularity). */ func hit(_ ti...
22,226
https://github.com/jerbel/coastSHARK/blob/master/plugin_packaging/execute.sh
Github Open Source
Open Source
Apache-2.0
2,019
coastSHARK
jerbel
Shell
Code
243
657
#!/bin/bash PLUGIN_PATH=$3 REPOSITORY_PATH=$2 NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) # https://stackoverflow.com/questions/24597818/exit-with-error-message-in-bash-oneline function error_exit { echo "$1" >&2 ## Send message to stderr. Exclude >&2 if you don't want it that way...
54,459
https://github.com/CarlosIribarren/Ejemplos-Examples/blob/master/Java/Design pattern/Converter/Pattern-Converter-00-ClaseSimple/src/main/java/com/oiasso/systems/patterns/converter/facades/UserFacade.java
Github Open Source
Open Source
Apache-2.0
null
Ejemplos-Examples
CarlosIribarren
Java
Code
20
83
package com.oiasso.systems.patterns.converter.facades; import com.oiasso.systems.patterns.converter.dtos.UserDTO; /** * UserFacade */ public interface UserFacade { UserDTO findUserByUsername(String username); public void save(UserDTO userDto); }
19,956
https://github.com/KTibow/BangleApps/blob/master/apps/swiperclocklaunch/boot.js
Github Open Source
Open Source
MIT
null
BangleApps
KTibow
JavaScript
Code
75
243
// clock -> launcher (function() { var sui = Bangle.setUI; Bangle.setUI = function(mode, cb) { sui(mode, cb); if (!mode) return; if (!mode.startsWith("clock")) return; Bangle.swipeHandler = dir => { if (dir < 0) Bangle.showLauncher(); }; Bangle.on("swi...
43,924
https://github.com/rajadileepkolli/JCTools/blob/master/jctools-experimental/src/main/java/org/jctools/queues/unpadded/BaseSpscLinkedUnpaddedArrayQueue.java
Github Open Source
Open Source
Apache-2.0
null
JCTools
rajadileepkolli
Java
Code
1,108
3,167
/* * 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 to in writing, software * distributed u...
27,382
https://github.com/Sherchen/AndroidCommons/blob/master/.gitmodules
Github Open Source
Open Source
Apache-2.0
2,017
AndroidCommons
Sherchen
Git Config
Code
16
80
[submodule "BaseRecyclerViewAdapterHelper"] path = BaseRecyclerViewAdapterHelper url = https://github.com/CymChad/BaseRecyclerViewAdapterHelper.git [submodule "KLog"] path = KLog url = https://github.com/Sherchen/KLog.git
37,938
https://github.com/intephom/lc3/blob/master/src/ops.rs
Github Open Source
Open Source
MIT
null
lc3
intephom
Rust
Code
550
1,715
#[derive(Debug)] pub enum Op { Nop, Not { dst: u16, src: u16, }, AddReg { dst: u16, src1: u16, src2: u16, }, AddImm { dst: u16, src: u16, imm: i16, }, AndReg { dst: u16, src1: u16, src2: u16, }, ...
25,273
https://github.com/awarenessxz/java-web-app/blob/master/app-frontend/react-base-app/src/modules/app/redux/app-reducer.ts
Github Open Source
Open Source
Apache-2.0
null
java-web-app
awarenessxz
TypeScript
Code
60
212
import { AppActionTypes, AppStateType, INIT_BASE_APP, SET_IS_ADMIN_USER } from './app-action.types'; const initialState: AppStateType = { isAdminUser: false, isSiteReady: false, }; const appReducer = (state: AppStateType = initialState, action: AppActionTypes): AppStateType => { switch (action.type) { ...
31,946
https://github.com/fhljys/primeng/blob/master/src/app/showcase/app.inputstyleswitch.component.ts
Github Open Source
Open Source
MIT
null
primeng
fhljys
TypeScript
Code
106
451
import {Component, NgModule} from '@angular/core'; import { AppComponent } from './app.component'; import { RadioButton, RadioButtonModule } from 'primeng/radiobutton'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; @Component({ selector: 'app-inputStyleSwitch', t...
40,384
https://github.com/Zhyltix/Form-al/blob/master/src/FormAl/Elements/Textarea.php
Github Open Source
Open Source
Apache-2.0
null
Form-al
Zhyltix
PHP
Code
174
559
<?php namespace FormAl\Elements; use FormAl\Utilities\HtmlBuilder; /** * Class Textarea * * @package FormAl\Elements */ class Textarea extends Input { /** @var int */ public $cols = 50; /** @var int */ public $rows = 12; /** @var bool */ public $fancy = false; /** * @return stri...
21,150
https://github.com/mauriciotogneri/android-utils/blob/master/androidutils/src/main/java/com/mauriciotogneri/androidutils/base/DialogDisplayer.java
Github Open Source
Open Source
MIT
2,022
android-utils
mauriciotogneri
Java
Code
16
63
package com.mauriciotogneri.androidutils.base; import androidx.fragment.app.FragmentManager; public interface DialogDisplayer { String string(int resId, Object... args); FragmentManager fragmentManager(); }
36,350
https://github.com/ricardobaumann/estate_service/blob/master/src/main/java/estate_service/configuration/EstateServiceConfiguration.java
Github Open Source
Open Source
MIT
2,017
estate_service
ricardobaumann
Java
Code
18
56
package estate_service.configuration; import org.springframework.context.annotation.Configuration; /** * Created by ricardobaumann on 09/01/17. */ @Configuration public class EstateServiceConfiguration { }
12,628
https://github.com/keannaanglin/KAnglinCMSI186/blob/master/CMSI-186_Projects/homework04/Clock.java
Github Open Source
Open Source
MIT
null
KAnglinCMSI186
keannaanglin
Java
Code
1,035
2,267
/** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * File name : Clock.java * Purpose : Provides a class defining methods for the ClockSolver class * @author : B.J. Johnson * Date written : 2017-02-28 * Description : This class pro...
17,884
https://github.com/joejag/glasgow-green-map/blob/master/vendor/plugins/ym4r_gm/lib/gm_plugin/control.rb
Github Open Source
Open Source
MIT
2,009
glasgow-green-map
joejag
Ruby
Code
193
521
module Ym4r module GmPlugin #Small map control. Report to the Google Maps API documentation for details. class GSmallMapControl include MappingObject def create "new GSmallMapControl()" end end #Large Map control. Report to the Google Maps API documentation for details. c...
15,763
https://github.com/kmain4/Evolution-A3/blob/master/EVO/fn_support_arty.sqf
Github Open Source
Open Source
MIT
2,021
Evolution-A3
kmain4
SQF
Code
436
1,530
_caller = _this select 0; _pos = _this select 1; _target = _this select 2; _is3D = _this select 3; _ID = _this select 4; _grpSide = side _caller; _arty = _caller; _arty = arty_west; _busy = false; _busy = _arty getVariable ["EVO_support_busy", false]; [player, -6] call bis_fnc_addScore; ["PointsRemoved",["Artillery su...
32,159
https://github.com/ha10id/zoia2/blob/master/src/modules/users/user/activate/index.js
Github Open Source
Open Source
MIT
2,020
zoia2
ha10id
JavaScript
Code
213
693
import axios from 'axios'; import { v4 as uuid } from 'uuid'; import fs from 'fs-extra'; import path from 'path'; import template from './template.marko'; import templates from '../../../../../dist/etc/templates.json'; import i18n from '../../../../shared/marko/utils/i18n-node'; let config = {}; try { config = fs....
33,667
https://github.com/invadelabs/drewwiki/blob/master/mediawiki/BootOptimization.mediawiki
Github Open Source
Open Source
RSA-MD
null
drewwiki
invadelabs
null
Spoken
40
95
Readahead systemd has a built-in readahead implementation is not enabled on upgrades. It should improve bootup speed but your mileage may vary depending on your hardware. To enable it: <syntaxhighlight lang=bash> # systemctl enable systemd-readahead-collect.service # systemctl enable systemd-readahead-replay.service ...
21,060
https://github.com/yoann0000/Teaching-HEIGVD-AMT-2019-Project-One/blob/master/amtdnd/src/test/java/Presentation/QuestServletTest.java
Github Open Source
Open Source
MIT
null
Teaching-HEIGVD-AMT-2019-Project-One
yoann0000
Java
Code
223
1,483
package Presentation; import Model.Adventurer; import Model.Guild; import Model.Party; import Model.Quest; import datastore.exception.DuplicateKeyException; import datastore.exception.KeyNotFoundException; import integration.*; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.juni...
45,672
https://github.com/sgholamian/log-aware-clone-detection/blob/master/LACCPlus/Zookeeper/96_1.java
Github Open Source
Open Source
MIT
null
log-aware-clone-detection
sgholamian
Java
Code
45
184
//,temp,ChrootClientTest.java,31,48,temp,ChrootAsyncTest.java,30,46 //,3 public class xxx { @Override public void setUp() throws Exception { String hp = hostPort; hostPort = hostPort + "/chrootclienttest"; System.out.println(hostPort); super.setUp(); LOG.info("STARTING ...
19,480
https://github.com/maplelearC/NKGMobaBasedOnET/blob/master/Server/Hotfix/NKGMOBA/Box2D/System/B2S_Darius_Q_CRS.cs
Github Open Source
Open Source
MIT
2,022
NKGMobaBasedOnET
maplelearC
C#
Code
181
1,258
//------------------------------------------------------------ // Author: 烟雨迷离半世殇 // Mail: 1778139321@qq.com // Data: 2019/8/14 16:22:55 // Description: 此代码switch case与System部分由工具生成,请勿进行增减操作 //------------------------------------------------------------ using System; using System.Collections.Generic; using ETModel; us...
36,342
https://github.com/ruizinformation/assetManagement/blob/master/gulpfile.js
Github Open Source
Open Source
MIT
null
assetManagement
ruizinformation
JavaScript
Code
280
1,077
/* * @Author: zhangmin * @Date: 2019-09-04 10:55:04 * @LastEditors: zhangmin * @LastEditTime: 2021-06-15 17:35:09 * @Description: 文件说明 */ var gulp = require("gulp"); const { series, src, dest, watch } = gulp; var $ = require("gulp-load-plugins")(); var path = require("path"); var del = require("del"); var distPa...
20,398
https://github.com/wdwnt/roku-app/blob/master/components/SGDEX/Views/OtherNodes/ItemComponents/StandardGridItemComponent/StandardGridItemComponent.brs
Github Open Source
Open Source
MIT
null
roku-app
wdwnt
null
Spoken
279
858
' Copyright (c) 2018 Roku, Inc. All rights reserved. sub Init() m.labelsLayout = m.top.findNode("labelsLayout") m.line1 = m.top.findNode("line1") m.line2 = m.top.findNode("line2") m.poster = m.top.findNode("poster") m.durationBar = m.top.findNode("durationBar") m.durationBar.height = 6 end...
34,391
https://github.com/jsf5077/responsive-portfolio/blob/master/node_modules/angular2/src/compiler/schema/dom_element_schema_registry.d.ts
Github Open Source
Open Source
MIT
2,017
responsive-portfolio
jsf5077
TypeScript
Code
26
81
import { ElementSchemaRegistry } from './element_schema_registry'; export declare class DomElementSchemaRegistry extends ElementSchemaRegistry { private _protoElements; private _getProtoElement(tagName); hasProperty(tagName: string, propName: string): boolean; getMappedPropName(propName: string): string...
18,244
https://github.com/liuxinren456852/snark/blob/master/graphics/applications/view_points/colour_map.cpp
Github Open Source
Open Source
BSD-2-Clause
2,015
snark
liuxinren456852
C++
Code
443
892
#include "./colour_map.h" namespace snark { colour_map::values colour_map::constant( unsigned char r, unsigned char g, unsigned char b ) { values v; //for( unsigned int i = 0; i < 255; ++i ) { v[i][red] = ( i * r ) / 256; v[i][green] = ( i * g ) / 256; v[i][blue] = ( i * b ) / 256; } for( unsigned int i =...
36,395
https://github.com/pindoyono/silap2/blob/master/app/Helpers/helpers.php
Github Open Source
Open Source
MIT
null
silap2
pindoyono
PHP
Code
69
279
<?php function customTanggal($date,$date_format){ return \Carbon\Carbon::createFromFormat('Y-m-d', $date)->format($date_format); } function customImagePath($image_name) { return public_path('folder_kamu/sub_folder_kamu/'.$image_name); } if (! function_exists('masuk')) { function masuk() { ...
6,245
https://github.com/constantinpape/imagej-utils/blob/master/src/main/java/de/embl/cba/bdv/utils/transforms/ConcatenatedTransformAnimator.java
Github Open Source
Open Source
BSD-2-Clause
2,021
imagej-utils
constantinpape
Java
Code
310
589
/*- * #%L * Various Java code for ImageJ * %% * Copyright (C) 2018 - 2021 EMBL * %% * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, ...
5,557
https://github.com/jbatonnet/PInvoke/blob/master/Source/man/man3/unlockpt.3
Github Open Source
Open Source
MIT
null
PInvoke
jbatonnet
null
Spoken
248
590
.\" %%%LICENSE_START(PUBLIC_DOMAIN) .\" This page is in the public domain. - aeb .\" %%%LICENSE_END .\" .TH UNLOCKPT 3 2017-07-13 "" "Linux Programmer's Manual" .SH NAME unlockpt \- unlock a pseudoterminal master/slave pair .SH SYNOPSIS .B #define _XOPEN_SOURCE .br .B #include <stdlib.h> .PP .BI "int unlockpt(int " fd ...
31,719