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/JetBrains/MPS/blob/master/testbench/source_gen/jetbrains/mps/testbench/junit/runners/PushEnvironmentRunnerBuilder.java
Github Open Source
Open Source
LicenseRef-scancode-free-unknown, Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
MPS
JetBrains
Java
Code
453
1,561
package jetbrains.mps.testbench.junit.runners; /*Generated by MPS */ import jetbrains.mps.annotations.GeneratedClass; import org.junit.runners.model.RunnerBuilder; import jetbrains.mps.tool.environment.Environment; import org.junit.internal.builders.AllDefaultPossibilitiesBuilder; import org.junit.runner.Runner; impo...
4,961
https://github.com/Homebrew/homebrew-core/blob/master/Formula/a/apktool.rb
Github Open Source
Open Source
Apache-2.0, GPL-2.0-only, BSD-2-Clause
2,023
homebrew-core
Homebrew
Ruby
Code
94
841
class Apktool < Formula desc "Tool for reverse engineering 3rd party, closed, binary Android apps" homepage "https://github.com/iBotPeaches/Apktool" url "https://github.com/iBotPeaches/Apktool/releases/download/v2.8.1/apktool_2.8.1.jar" sha256 "7b4a8e1703e228d206db29644b71141687d8a111b55b039b08b02dfa443ab0f9" ...
27,075
https://github.com/DiscordStyles/Fluent/blob/master/src/theme/members/_container.scss
Github Open Source
Open Source
MIT
2,022
Fluent
DiscordStyles
SCSS
Code
38
172
#app-mount { .container-2o3qEW, .members-3WRCEx, .members-3WRCEx > div { background: var(--bg-alt); } .membersWrap-3NUR2t { border-left: 1px solid var(--border-mid); min-width: var(--members-width); width: var(--members-width); height: 100%; } .members-3WRCEx { width: 100%; padding: 8px 2px 8px 8p...
10,072
https://github.com/keob/leetcode-go/blob/master/leetcode/solution611/solution_test.go
Github Open Source
Open Source
MIT
null
leetcode-go
keob
Go
Code
60
170
package solution611 import "testing" func TestTriangleNumber(t *testing.T) { tests := []struct { name string nums []int want int }{ {"test 1", []int{2, 2, 3, 4}, 3}, } for _, tt := range tests { tt := tt t.Run(tt.name, func(t *testing.T) { if got := triangleNumber(tt.nums); got != tt.want { t....
23,442
https://github.com/emacslisp/emacs/blob/master/emacs-24.5/lisp/mh-e/mh-show.el
Github Open Source
Open Source
Apache-2.0
null
emacs
emacslisp
null
Spoken
2,981
12,403
;;; mh-show.el --- MH-Show mode ;; Copyright (C) 1993, 1995, 1997, 2000-2015 Free Software Foundation, ;; Inc. ;; Author: Bill Wohler <wohler@newt.com> ;; Maintainer: Bill Wohler <wohler@newt.com> ;; Keywords: mail ;; See: mh-e.el ;; This file is part of GNU Emacs. ;; GNU Emacs is free software: you can redistribut...
12,366
https://github.com/microsoft/accessibility-insights-web/blob/master/src/tests/end-to-end/common/browser.ts
Github Open Source
Open Source
MIT
2,023
accessibility-insights-web
microsoft
TypeScript
Code
999
3,151
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { setTimeout } from 'timers/promises'; import { createDefaultPromiseFactory } from 'common/promises/promise-factory'; import * as Playwright from 'playwright'; import { ChromiumBrowserContext } from 'playwright'; impo...
5,350
https://github.com/CameronRivera/Pursuit-Core-iOS-WeatherApp/blob/master/WeatherApp/WeatherAppTests/WeatherAppTests.swift
Github Open Source
Open Source
MIT
null
Pursuit-Core-iOS-WeatherApp
CameronRivera
Swift
Code
97
269
// // WeatherAppTests.swift // WeatherAppTests // // Created by Cameron Rivera on 1/31/20. // Copyright © 2020 David Rifkin. All rights reserved. // import XCTest @testable import WeatherApp class WeatherAppTests: XCTestCase { func testNetworkHelper(){ // arrange let stringURL = PixAPI.ge...
41,184
https://github.com/anirudh24seven/intellij-elixir/blob/master/src/org/elixir_lang/facet/sdk/PathEditor.kt
Github Open Source
Open Source
Apache-2.0
2,023
intellij-elixir
anirudh24seven
Kotlin
Code
47
397
package org.elixir_lang.facet.sdk import com.intellij.openapi.fileChooser.FileChooserDescriptor import com.intellij.openapi.project.ProjectBundle import com.intellij.openapi.projectRoots.ui.SdkPathEditor import com.intellij.openapi.roots.OrderRootType private val DISPLAY_NAME_BY_ORDER_ROOT_TYPE = mapOf<OrderRootType...
33,154
https://github.com/nesfit/Coffee/blob/master/Barista.Accounting/Handlers/Payment/GetPaymentHandler.cs
Github Open Source
Open Source
MIT
null
Coffee
nesfit
C#
Code
72
263
using System; using System.Threading.Tasks; using AutoMapper; using Barista.Accounting.Dto; using Barista.Accounting.Queries; using Barista.Accounting.Repositories; using Barista.Common; namespace Barista.Accounting.Handlers.Payment { public class GetPaymentHandler : IQueryHandler<GetPayment, PaymentDto> { ...
25,165
https://github.com/mali313/AdventOfCode/blob/master/app/src/main/java/com/mossman/darren/adventofcode/Y2K18/Y2K18_Puzzle.java
Github Open Source
Open Source
MIT
2,018
AdventOfCode
mali313
Java
Code
42
362
package com.mossman.darren.adventofcode.Y2K18; import com.mossman.darren.adventofcode.AOC_Puzzle; public class Y2K18_Puzzle extends AOC_Puzzle { public static void main(String[] args) { System.out.printf("Advent Of Code 2018\n"); Y2K18_1.main(null); Y2K18_2.main(null); Y2K18_3.m...
50,202
https://github.com/Symontoclay/InternalCLI/blob/master/Deployment/Tasks/DirectoriesTasks/CopyAllFromDirectory/CopyAllFromDirectoryTask.cs
Github Open Source
Open Source
MIT
null
InternalCLI
Symontoclay
C#
Code
296
1,290
using CollectionsHelpers.CollectionsHelpers; using CommonUtils.DebugHelpers; using Deployment.Helpers; using Deployment.Tasks.DirectoriesTasks.CopyTargetFiles; using Newtonsoft.Json; using NLog; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threadin...
17,366
https://github.com/5l1v3r1/keylog.io/blob/master/src/app/hostnames-list/hostnames-list.component.ts
Github Open Source
Open Source
MIT
2,018
keylog.io
5l1v3r1
TypeScript
Code
123
385
import { Component, Input, Output, EventEmitter, ViewChild, IterableDiffers, DoCheck } from '@angular/core'; @Component({ selector: 'app-hostnames-list', templateUrl: './hostnames-list.component.html', styleUrls: ['./hostnames-list.component.css'] }) export class HostnamesListComponent implements DoCheck { /...
50,084
https://github.com/hongpx95/Babelfish-Extensions/blob/master/contrib/babelfishpg_tsql/runtime/functions.c
Github Open Source
Open Source
PostgreSQL, Apache-2.0, BSD-3-Clause
null
Babelfish-Extensions
hongpx95
C
Code
1,291
5,018
#include "postgres.h" #include "port.h" #include "access/detoast.h" #include "access/htup_details.h" #include "access/table.h" #include "access/xact.h" #include "catalog/namespace.h" #include "catalog/pg_database.h" #include "catalog/pg_namespace.h" #include "catalog/pg_type.h" #include "commands/dbcommands.h" #includ...
27,190
https://github.com/Creacheer/guns/blob/master/guns/guns-admin/src/main/java/com/stylefeng/guns/modular/student/service/ICmStudentService.java
Github Open Source
Open Source
Apache-2.0
2,018
guns
Creacheer
Java
Code
29
121
package com.stylefeng.guns.modular.student.service; import com.stylefeng.guns.modular.system.model.CmStudent; import com.baomidou.mybatisplus.service.IService; /** * <p> * VIEW 服务类 * </p> * * @author qqzj * @since 2018-12-18 */ public interface ICmStudentService extends IService<CmStudent> { }
34,904
https://github.com/lalalic/qiliApp/blob/master/packages/qili-cli/generator/template/src/index.js
Github Open Source
Open Source
MIT
null
qiliApp
lalalic
JavaScript
Code
81
383
import "./index.less" import React from "react" import {graphql} from "react-relay" import {compose, withProps} from "recompose" import {withInit, QiliApp, ACTION as qiliACTION} from "qili-app" import project from "../package.json" const DOMAIN="myQili" export const ACTION={ } function reducer(state={},{type,paylo...
23,657
https://github.com/hernanmd/ProjectFramework/blob/master/repository/ProjectFramework-Tests.package/PFProjectTests.class/instance/newProjectPreferences.st
Github Open Source
Open Source
MIT
2,020
ProjectFramework
hernanmd
null
Spoken
5
17
accessing newProjectPreferences ^ PFProjectPreferences new
14,218
https://github.com/bianpengyuan/proxy/blob/master/src/istio/utils/attribute_names.cc
Github Open Source
Open Source
Apache-2.0
2,022
proxy
bianpengyuan
C++
Code
470
1,433
/* Copyright 2018 Istio Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
19,448
https://github.com/Leveton/MELDynamicCropView/blob/master/MELDynamicCropView/MELDynamicCropView.m
Github Open Source
Open Source
MIT
2,018
MELDynamicCropView
Leveton
Objective-C
Code
1,348
5,158
// // MELDynamicCropView.m // MELDynamicCropView // // Created by Mike Leveton on 5/12/16. // Copyright © 2016 Mike Leveton. All rights reserved. // #import "MELDynamicCropView.h" #import <AVFoundation/AVFoundation.h> typedef enum : NSUInteger{ kOrientationCenter, kOrientationTopLeft, kOrientationTop...
39,852
https://github.com/nataliePremier/debbit-credit/blob/master/resources/js/components/double-check/helpers/config.js
Github Open Source
Open Source
MIT
null
debbit-credit
nataliePremier
JavaScript
Code
24
91
export default { create_po_customers : ['290500', '290515'], generate_xml: ['290500'], order_statuses:{ opened: 1, created_delivery: 2, created_po: 3, created_xml: 4, warehouse_transfer: 5, canceled: 6, } };
528
https://github.com/hswami1402/hacktoberfest-coer/blob/master/PHP/QR_Code_Generator/index.php
Github Open Source
Open Source
MIT
2,021
hacktoberfest-coer
hswami1402
PHP
Code
186
1,049
<?php include 'phpqrcode/qrlib.php'; $text = "https://github.com/mr-vijaychauhan"; if (!empty($_POST)) { $text = $_POST['title']; } $path = 'images/'; $QRCode = $path . uniqid() . ".png"; // $ecc stores error correction capability('L') $ecc = 'L'; $pixel_size = 8; $frame_size = 2; QRcode::png($text, $QRCode, $ec...
34,879
https://github.com/yasir2000/brown-bear/blob/master/site-content/fr_FR/fr_FR.tab
Github Open Source
Open Source
MIT
2,022
brown-bear
yasir2000
SQL
Code
574
1,330
# # Copyright (c) BrownBear, 2011 - Present. All Rights Reserved. # Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved # # This file is a part of Tuleap. # # Tuleap is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by #...
25,171
https://github.com/lechium/tvOS124Headers/blob/master/usr/lib/libcoreroutine.dylib/RTWiFiManager.h
Github Open Source
Open Source
MIT
2,021
tvOS124Headers
lechium
C
Code
150
529
/* * This header is generated by classdump-dyld 1.0 * on Saturday, August 24, 2019 at 9:49:28 PM Mountain Standard Time * Operating System: Version 12.4 (Build 16M568) * Image Source: /usr/lib/libcoreroutine.dylib * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. */ #import <libcorerout...
956
https://github.com/TruckDefenseInstitute/Convoy/blob/master/Assets/PolygonApocalypse/Prefabs/Environment/SM_Env_Road_Median_02.prefab.meta
Github Open Source
Open Source
MIT
2,020
Convoy
TruckDefenseInstitute
Unity3D Asset
Code
14
76
fileFormatVersion: 2 guid: e9d13e38137bdec40bda1b32718e60d5 timeCreated: 1568845582 licenseType: Store NativeFormatImporter: mainObjectFileID: 100100000 userData: assetBundleName: assetBundleVariant:
12,027
https://github.com/apnerdette/bot-1/blob/master/resources/views/first.blade.php
Github Open Source
Open Source
Apache-2.0
2,022
bot-1
apnerdette
PHP
Code
228
791
<!doctype html> <html lang="{{ app()->getLocale() }}"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bowhead</title> <!-- Fonts --> <link href="https://fonts.googleapis.com/css?fam...
49,237
https://github.com/WajahatSiddiqui/Datastructures-and-Algorithms/blob/master/Java/DesignPatterns/Observer/WeatherTSubscriber.java
Github Open Source
Open Source
Apache-2.0
2,017
Datastructures-and-Algorithms
WajahatSiddiqui
Java
Code
34
89
public class WeatherTSubscriber implements WeatherObserver { @Override public void updateTemperature(float temp) { System.out.println("WeatherTSubscriber : new temperature = " + temp); } @Override public void updatePressure(float pressure) { // TODO Auto-generated method stub } }
28,131
https://github.com/FTC-9974-THOR/SkyStone/blob/master/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/StoneVisionTestRed.java
Github Open Source
Open Source
MIT
null
SkyStone
FTC-9974-THOR
Java
Code
147
716
package org.firstinspires.ftc.teamcode; import android.graphics.Color; import com.qualcomm.robotcore.eventloop.opmode.Autonomous; import com.qualcomm.robotcore.eventloop.opmode.Disabled; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import org.firstinspires.ftc.robotcore.external.matrices.OpenGLMatrix...
29,646
https://github.com/zhouchang2017/erp/blob/master/.env.example
Github Open Source
Open Source
MIT
2,018
erp
zhouchang2017
Shell
Code
42
558
APP_NAME=Laravel APP_ENV=local APP_KEY=base64:ztvq+1Y3lpgL3E7DKHHZPYfB7rLG82Hyo0hDyLX9Pg4= APP_DEBUG=true APP_URL=http://bestkit-erp-server-nova.test DEALPAW_API_URL=http://api.bestshop.test/ DEALPAW_API_PREFIX=api LOG_CHANNEL=stack DEBUGBAR_ENABLED=true QN_ACCESS_KEY=bZbhwfl0pyHb4EMny9swOtZAhIrJvvzJ7h-NmZaF QN_SECRE...
20,854
https://github.com/CarlosLint/GameBoyEmulator/blob/master/GameBoyEmulator/Tests/CSharp/RSTXX.cs
Github Open Source
Open Source
Apache-2.0
2,019
GameBoyEmulator
CarlosLint
C#
Code
87
352
#region 0x{opcode:02x} Test {instr} [Test] public void RST{addr:02x}() {{ var cpu = new CPU(); var random = new Random(); Console.WriteLine("Testing (0x{opcode:02x}) \"{instr}\""); for (var i = 0; i < RUN_CYCLES; i++) {{ cpu.Reset()...
32,634
https://github.com/tianhl/yamtbx/blob/master/yamtbx/command_line/set_mtrix_records.py
Github Open Source
Open Source
BSD-3-Clause, MIT, LicenseRef-scancode-warranty-disclaimer
2,021
yamtbx
tianhl
Python
Code
468
1,832
# LIBTBX_SET_DISPATCHER_NAME yamtbx.set_mtrix_records from __future__ import absolute_import, division, print_function, generators, unicode_literals import subprocess import numpy import re re_cn = re.compile("^([CD])([0-9]+)$") def read_cryst1(pdb_in): for l in open(pdb_in): if l.startswith("CRYST1"): ...
33,288
https://github.com/hzm-s/are_you_sure/blob/master/spec/dummy/config/routes.rb
Github Open Source
Open Source
MIT
2,015
are_you_sure
hzm-s
Ruby
Code
5
20
Dummy::Application.routes.draw do resources :lenses end
14,719
https://github.com/DoubleEspresso/Auto-pQCD/blob/master/src/integration/expand_integrand.m.b
Github Open Source
Open Source
MIT
2,018
Auto-pQCD
DoubleEspresso
null
Spoken
213
791
(*===========================================================================================*) latticeIntegrand //. intReps; 16 \[Pi]^2*Expand\[Epsilon][%] //. {1/\[Epsilon] -> 1/EP, 1/EPS -> 1/EP, EPS -> 0, \[Epsilon] -> 0}; Print[ToString[SetPrecision[%,11], FormatType -> InputForm, CharacterEncoding -> "ASCI...
30,968
https://github.com/abutun/crexta-framework/blob/master/Crexta .NET 4.0/Dependencies/NCrawler/Net 4.0/NCrawler/Extensions/StreamExtensions.cs
Github Open Source
Open Source
Apache-2.0
2,018
crexta-framework
abutun
C#
Code
445
1,392
using System; using System.IO; using System.Linq; using System.Runtime.Serialization; using System.Text; namespace NCrawler.Extensions { public static class StreamExtensions { #region Class Methods /// <summary> /// Copies any stream into a local MemoryStream /// </summary> /// <param name = "stream">Th...
12,316
https://github.com/AnRanScheme/magiGlobe/blob/master/magi/magiGlobe/magiGlobe/Classes/Tool/Extension/Foundation/String/String+Man.swift
Github Open Source
Open Source
MIT
null
magiGlobe
AnRanScheme
Swift
Code
151
492
// // String+Man.swift // swift-magic // // Created by 安然 on 17/2/15. // Copyright © 2017年 安然. All rights reserved. // import Foundation public extension String { public var m_base64Decoded: String? { // https://github.com/Reza-Rg/Base64-Swift-Extension/blob/master/Base64.swift guard let ...
49,871
https://github.com/zecke/pharo-vm-1/blob/master/mc/VMMaker.oscog.package/SpurMemoryManager.class/instance/setHeapBase.memoryLimit.endOfMemory..st
Github Open Source
Open Source
MIT
null
pharo-vm-1
zecke
null
Spoken
115
354
snapshot setHeapBase: baseOfHeap memoryLimit: memLimit endOfMemory: memEnd "Set the dimensions of the heap, answering the start of oldSpace." "Transcript cr; nextPutAll: 'heapBase: '; print: baseOfHeap; nextPut: $/; nextPutAll: baseOfHeap hex; nextPutAll: ' memLimit '; print: memLimit; nextPut: $/; nextPutAll: me...
16,789
https://github.com/davidp94/upgradeable-proxy/blob/master/contracts/test/ArraySimple.sol
Github Open Source
Open Source
MIT
2,018
upgradeable-proxy
davidp94
Gerber Image
Code
154
418
pragma solidity ^0.4.18; import "../Upgradeable.sol"; contract ArraySimpleV1a is Upgradeable { uint[3] values; uint anotherValue; function getValues() view public returns (uint[3]) { return values; } function setValues(uint[3] _values) public { values = _values; } } contract...
44,367
https://github.com/eschreiner/play2-scala-auth/blob/master/code/app/com/sdc/play/module/plausc/controllers/ControllerHelpers.scala
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-warranty-disclaimer
2,013
play2-scala-auth
eschreiner
Scala
Code
92
314
package com.sdc.play.module.plausc.controllers import play.api.mvc._ /** * @author Dr. Erich W. Schreiner - Software Design &amp; Consulting GmbH * @version 0.1.0.0 * @since 0.1.0.0 */ object ControllerHelpers { import play.api.http.HeaderNames._ def ActionWithContext[U](f: Context[AnyContent,U] => Plai...
30,562
https://github.com/ant512/ReallyBadEggs/blob/master/src/blockbase.cpp
Github Open Source
Open Source
MIT
null
ReallyBadEggs
ant512
C++
Code
253
961
#include "blockbase.h" BlockBase::BlockBase(u16 colour) { _colour = colour; _connections = 0; _state = BLOCK_STATE_NORMAL; _hasDroppedHalfBlock = false; _bitmaps = new WoopsiGfx::BitmapBase*[16]; for (s32 i = 0; i < 16; ++i) { _bitmaps[i] = NULL; } _landingAnim = new WoopsiGfx::Animation(1, WoopsiGfx::Ani...
43,271
https://github.com/MonkAlex/GitHubUpdater/blob/master/GitHubUpdater.Avalonia/App.xaml.cs
Github Open Source
Open Source
MIT
2,017
GitHubUpdater
MonkAlex
C#
Code
218
864
using System; using System.Linq; using Avalonia; using Avalonia.Controls; using Avalonia.Diagnostics; using Avalonia.Logging.Serilog; using Avalonia.Themes.Default; using Avalonia.Markup.Xaml; using GitHubUpdater.Avalonia.View; using GitHubUpdater.Avalonia.ViewModel; using GitHubUpdater.Shared; using Serilog; namespa...
1,150
https://github.com/samfundev/KTANE-mods-1/blob/master/MorsaAMaze/Assets/Editor/Resources/WorkshopItem.asset.meta
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, MIT
2,022
KTANE-mods-1
samfundev
Unity3D Asset
Code
12
66
fileFormatVersion: 2 guid: 79723f401cdb7b841b0367e498d4be82 timeCreated: 1503375071 licenseType: Pro NativeFormatImporter: userData: assetBundleName: assetBundleVariant:
37,586
https://github.com/Huntz256/op-mobs/blob/master/src/main/java/net/op/mobs/OPMobs.java
Github Open Source
Open Source
MIT
null
op-mobs
Huntz256
Java
Code
40
95
package net.op.mobs; import net.fabricmc.api.ModInitializer; public class OPMobs implements ModInitializer { @Override public void onInitialize() { // This code runs as soon as Minecraft is in a mod-load-ready state. // However, some things (like resources) may still be uninitialized. } ...
18,486
https://github.com/spring-projects-experimental/spring-boot-migrator/blob/master/sbm-support-rewrite/src/main/java/org/springframework/sbm/parsers/ParserSettings.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-generic-cla
2,023
spring-boot-migrator
spring-projects-experimental
Java
Code
192
425
/* * Copyright 2021 - 2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
10,331
https://github.com/FilippoNevi/EISD/blob/master/Laboratorio/08/splatters/cc65/libwrk/nes/mulax6.d
Github Open Source
Open Source
Zlib
2,021
EISD
FilippoNevi
Makefile
Code
3
34
../libwrk/nes/mulax6.o: runtime/mulax6.s runtime/mulax6.s:
29,798
https://github.com/zhaoqige/6w-grid-lite/blob/master/lib/grid/Get.lua
Github Open Source
Open Source
MIT
2,017
6w-grid-lite
zhaoqige
Lua
Code
283
937
-- Get instant(abb/nw)/delayed(gws/sys) -- by Qige -- 2016.04.05/2017.01.03/2017.03.24 local fmt = require 'six.fmt' local ABB = require 'kpi.ABB' local GWS = require 'kpi.GWS' local NW = require 'kpi.NW' local SYS = require 'kpi.SYS' local cgi = require 'grid.base.cgi' local user = require 'grid.base.user' local ...
45,131
https://github.com/asksasasa83/alfresco-mobile-workspace-android/blob/master/browse/src/main/kotlin/com/alfresco/content/browse/offline/OfflineViewModel.kt
Github Open Source
Open Source
Apache-2.0
2,021
alfresco-mobile-workspace-android
asksasasa83
Kotlin
Code
174
737
package com.alfresco.content.browse.offline import android.content.Context import com.airbnb.mvrx.Loading import com.airbnb.mvrx.MavericksViewModelFactory import com.airbnb.mvrx.Success import com.airbnb.mvrx.ViewModelContext import com.alfresco.content.browse.R import com.alfresco.content.data.OfflineRepository impor...
30,281
https://github.com/NguyenNgocVan279/laravel-voucher-app/blob/master/resources/views/backend/category/category.blade.php
Github Open Source
Open Source
MIT
null
laravel-voucher-app
NguyenNgocVan279
PHP
Code
271
1,184
@extends('admin.admin_master') @section('admin') <div class="container-full"> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-8"> <div class="box"> <div class="box-header with-border"> ...
5,599
https://github.com/zoomlacms/web015/blob/master/Source-Code-中南商业全站源代码/manage/Site/SiteFileManage.aspx
Github Open Source
Open Source
Apache-2.0
2,020
web015
zoomlacms
null
Spoken
948
5,242
<%@ page language="C#" autoeventwireup="true" inherits="manage_IISManage_IISFileManage, App_Web_rhqdlbvz" enableEventValidation="false" viewStateEncryptionMode="Never" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-...
6,277
https://github.com/ThunderID/Micro-Kidzo/blob/master/resources/views/rent/index.blade.php
Github Open Source
Open Source
MIT
null
Micro-Kidzo
ThunderID
PHP
Code
29
173
@extends('wireframe.tee_style') @section('full') {!! Form::open(['url' => route('renting.toys'), 'class' => 'hollow-login', 'method' => 'POST']) !!} <h2>Items</h2> @include('toys.form') @stop @section('left') <h2>Billing Information</h2> <hr/> @include('customer.form') @stop @section('right') <h2>Shippi...
35,790
https://github.com/OasisComunication/gridle/blob/master/Gruntfile.coffee
Github Open Source
Open Source
MIT
2,016
gridle
OasisComunication
CoffeeScript
Code
229
1,290
module.exports = (grunt) -> paths = sass: cwd: 'sass' src: '**/*.scss' dest: 'css' coffee: cwd: 'coffee' src: '**/*.coffee' dest: 'js' # Configuration # ============= grunt.initConfig pkg: grunt.file.readJSON 'package.json' concat: matchMedia: src: [ 'bower_components/match...
11,457
https://github.com/1422792458/FSICAR/blob/master/js/tape.js
Github Open Source
Open Source
MIT
2,020
FSICAR
1422792458
JavaScript
Code
131
831
var token; function login(){ $.ajax({ url: "http://36.7.107.222:8002/login", type:"POST", async:false, data:{ username:'admin', password:'21232f297a57a5a743894a0e4a801fc3',//md5加密密码 onlytoken:false, }, success: function(html){ token=html.token; } }); return token; }; function v...
27,318
https://github.com/Sparrow249/CashFlow/blob/master/src/main/java/nl/sparrow/cashflow/logic/transaction/TransactionDao.java
Github Open Source
Open Source
MIT
2,019
CashFlow
Sparrow249
Java
Code
57
229
package nl.sparrow.cashflow.logic.transaction; import nl.sparrow.cashflow.logic.models.Dao; import java.util.*; import java.util.function.Predicate; import java.util.stream.Collectors; public class TransactionDao implements Dao<Transaction> { private static List<Transaction> transactionList = new ArrayList<>(); ...
47,371
https://github.com/miknil/Kafka4n/blob/master/src/Kafka.Client/Response/OffsetResponse.cs
Github Open Source
Open Source
MIT
2,021
Kafka4n
miknil
C#
Code
194
621
using System; using System.Collections.Generic; using System.Linq; using Kafka.Client.Util; namespace Kafka.Client.Response { public class OffsetResponse { private readonly int correlationId; public int CorrelationId { get { return correlationId; } } priva...
45,892
https://github.com/brewster1134/bumper/blob/master/src/bumper-core.coffee
Github Open Source
Open Source
MIT
null
bumper
brewster1134
CoffeeScript
Code
231
517
### # * bumper core # * https://github.com/brewster1134/bumper # * # * @author Ryan Brewster # * Copyright (c) 2014 # * Licensed under the MIT license. ### ((factory) -> if define?.amd define [], -> factory() else factory() ) () -> class BumperCore # Maintain bumper version here... version...
19,181
https://github.com/Code0987/android-openslmediaplayer/blob/master/library/src/main/java/com/h6ah4i/android/media/audiofx/IPresetReverb.java
Github Open Source
Open Source
BSD-3-Clause, Apache-2.0, LicenseRef-scancode-unknown-license-reference, BSD-2-Clause
2,019
android-openslmediaplayer
Code0987
Java
Code
940
2,054
/* * Copyright (C) 2014 Haruki Hasegawa * * 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 ap...
26,618
https://github.com/brick/schema/blob/master/src/Interfaces/OrganizationRole.php
Github Open Source
Open Source
MIT
2,022
schema
brick
PHP
Code
40
114
<?php declare(strict_types=1); namespace Brick\Schema\Interfaces; use Brick\Schema\SchemaTypeList; use Brick\Schema\DataType\Number; /** * http://schema.org/OrganizationRole * * @property-read SchemaTypeList<Number> $numberedPosition A number associated with a role in an organization, for example, the number on ...
4,543
https://github.com/1gor/sequel-postgis-georuby/blob/master/lib/sequel/extensions/postgis_georuby.rb
Github Open Source
Open Source
MIT
2,018
sequel-postgis-georuby
1gor
Ruby
Code
36
211
require_relative '../../georuby/geometry_literal' module Sequel module PostgisGeoRuby module DatabaseMethods def self.extended(db) db.instance_exec do factory = ::GeoRuby::SimpleFeatures::GeometryFactory::new hex_ewkb_parser = ::GeoRuby::SimpleFeatures::HexEWKBParser.new(factory...
48,612
https://github.com/jamiepg1/adsadi/blob/master/Package/-UKW-ADSADI/Class Library/Classes/-UKW-JQUERY_THEME_HELPER.abap
Github Open Source
Open Source
Apache-2.0
2,013
adsadi
jamiepg1
null
Spoken
201
616
* * Copyright (c) 2013 Servicecenter for Medical Informatics, * Wuerzburg University Hospital, Germany. All rights reserved. * Use is subject to license terms. * http://www.smi.uk-wuerzburg.de * class /UKW/JQUERY_THEME_HELPER definition public create public . public section. class-methods THEME_4_USER impor...
34,045
https://github.com/astraker55/interns-test-march-21/blob/master/pgsql/ydata_detail_main_data.sql
Github Open Source
Open Source
Apache-2.0
null
interns-test-march-21
astraker55
SQL
Code
79
268
DROP TABLE IF EXISTS ydata_detail_main_data ; CREATE TABLE ydata_detail_main_data ( country_name varchar(25), data_date timestamp, cases_cnt numeric, deaths_cnt numeric, tests_cnt numeric, version_dt timestamp ); WITH CTE AS (/* SELECT * FROM ydata_main_data GROUP BY country_name, data_date, cases_cnt, deat...
44,862
https://github.com/DSchroer/AlarmClock/blob/master/v2/firmware/drivers/include/drivers/buttons.hpp
Github Open Source
Open Source
MIT
2,020
AlarmClock
DSchroer
C++
Code
21
71
#pragma once #include <stdlib.h> #include <stdint.h> #include <stdbool.h> class Button { public: Button(); void Tick(); bool Pressed(uint8_t index); bool Any(); };
31,216
https://github.com/fishcek/sirepot/blob/master/package/php/proses_InputData_ot.php
Github Open Source
Open Source
MIT
2,021
sirepot
fishcek
PHP
Code
60
364
<?php if (($_POST['input_ot'])) { $namaOT = $_POST['namaOT']; $umur = $_POST['umur']; $jenisKelamin = $_POST['jenisKelamin']; $masalah = $_POST['masalah']; $asal = $_POST['asal']; $tujuan = $_POST['tujuan']; $tanggal = $_POST['tanggal']; $skKepolisian ...
44,964
https://github.com/vncntprvst/spikeinterface/blob/master/spikeinterface/extractors/tests/test_nwbextractors.py
Github Open Source
Open Source
MIT
null
spikeinterface
vncntprvst
Python
Code
49
186
import unittest from spikeinterface.extractors import * from spikeinterface.extractors.tests.common_tests import RecordingCommonTestSuite, SortingCommonTestSuite class NwbRecordingTest(RecordingCommonTestSuite, unittest.TestCase): ExtractorClass = NwbRecordingExtractor downloads = [] entities = [] cla...
29,344
https://github.com/luisccalves/supplychainpy/blob/master/supplychainpy/bi/recommendation_generator.py
Github Open Source
Open Source
BSD-3-Clause
2,022
supplychainpy
luisccalves
Python
Code
468
1,388
# Copyright (c) 2015-2016, The Authors and Contributors # <see AUTHORS file> # All rights reserved. # # 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 n...
20,943
https://github.com/Terra-jin/Humanizer/blob/master/src/Humanizer.Tests.Shared/Localisation/af/NumberToWordsTests.cs
Github Open Source
Open Source
MIT
2,022
Humanizer
Terra-jin
C#
Code
426
1,670
using System.Globalization; using Xunit; namespace Humanizer.Tests.Localisation.af { [UseCulture("af")] public class AfrikaansNumberToWordsTests { [InlineData(1, "een")] [InlineData(10, "tien")] [InlineData(11, "elf")] [InlineData(20, "twintig")] [InlineData(122, "...
43,972
https://github.com/DevExpress/testcafe/blob/master/test/functional/fixtures/api/es-next/right-click/testcafe-fixtures/right-click-test.js
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
testcafe
DevExpress
JavaScript
Code
50
139
// NOTE: to preserve callsites, add new tests AFTER the existing ones fixture `RightClick` .page `http://localhost:3000/fixtures/api/es-next/right-click/pages/index.html`; test('Right click button', async t => { await t.rightClick('#button'); }); test('Incorrect action selector', async t => { await t.rig...
35,513
https://github.com/nmnjn/Fast-F1/blob/master/fastf1/core.py
Github Open Source
Open Source
MIT
null
Fast-F1
nmnjn
Python
Code
9,622
24,430
""" :mod:`fastf1.core` - Core module ================================ The Fast-F1 core is a collection of functions and data objects for accessing and analyzing F1 timing and telemetry data. Data Objects ------------ All data is provided through the following data objects: .. autosummary:: :nosignatures:...
5,414
https://github.com/mattkjames7/spicedmodel/blob/master/spicedmodel/__data/liblsmodel/tests/psmodels.cc
Github Open Source
Open Source
MIT
null
spicedmodel
mattkjames7
C++
Code
117
689
#include "psmodels.h" void testPSModels() { /* create some test values */ float R[] = {1.0,1.0,3.0,3.0,5.0,5.0,3.0,3.0,5.0,5.0}; float M[] = {12.0,12.0,12.0,12.0,12.0,12.0,6.0,6.0,6.0,6.0}; float SMR[] = {0.0,-70.0,0.0,-70.0,0.0,-70.0,0.0,-70.0,0.0,-70.0}; float expav[] = {NAN,NAN,990.28314,990.28314,148.69296,1...
27,160
https://github.com/aman1833/dsa/blob/master/array/WaterTrapped.java
Github Open Source
Open Source
Apache-2.0
2,020
dsa
aman1833
Java
Code
142
436
/*package whatever //do not write package name here */ import java.util.*; import java.lang.*; import java.io.*; class GFG { public static void main (String[] args)throws java.lang.Exception { //code BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int t = Integer.parseInt(br.readLine(...
586
https://github.com/SfpyHub/go-sfpy/blob/master/responses/state.go
Github Open Source
Open Source
MIT
null
go-sfpy
SfpyHub
Go
Code
45
140
package responses type State string const STARTED State = "STARTED" const PAID State = "PAID" const REFUNDED State = "REFUNDED" const CANCELLED State = "CANCELLED" const ERRORED State = "ERRORED" var StringToState = map[string]State{ "STARTED": STARTED, "PAID": PAID, "REFUNDED": REFUNDED, "CANCELLED": CA...
19,646
https://github.com/VolleyManagement/volley-management/blob/master/archive/tests/VolleyManagement.UnitTests/Admin/Comparers/TournamentRequestViewModelComparer.cs
Github Open Source
Open Source
MIT
2,020
volley-management
VolleyManagement
C#
Code
137
454
namespace VolleyManagement.UnitTests.Admin.Comparers { using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using UI.Areas.Admin.Models; /// <summary> /// Compares Tournament requests instances /// </summary> [ExcludeFromCodeCoverage] p...
20,790
https://github.com/matowens/platform/blob/master/src/Oro/Bundle/FormBundle/Resources/public/css/less/main.less
Github Open Source
Open Source
MIT
2,016
platform
matowens
Less
Code
14
71
@import "oroui/css/less/mixins"; @import "./multi-checkbox-editor"; @import "./inline-editing"; @import "./inline-editing-validation"; @import "./form"; @import "./inline-editable-wrapper"; @import "./mobile/main";
24,641
https://github.com/StephanEggermont/TestAutomationDays2020/blob/master/TAD2020-Tests/TAD2020Morph.class.st
Github Open Source
Open Source
MIT
null
TestAutomationDays2020
StephanEggermont
null
Spoken
338
702
" A visual object showing how life editing can be done " Class { #name : #TAD2020Morph, #superclass : #Morph, #instVars : [ 'textColor' ], #category : #'TAD2020-Tests' } { #category : #examples } TAD2020Morph class >> closeAll [ "Remove all open instances from the world" <example> TAD2020Morph allInstances ...
9,636
https://github.com/rspitler/infra-buddy/blob/master/src/unittest/python/testcase_parent.py
Github Open Source
Open Source
Apache-2.0
2,021
infra-buddy
rspitler
Python
Code
174
910
import json import os import random import string import unittest import boto3 from infra_buddy.context.deploy_ctx import DeployContext from infra_buddy.utility import print_utility DIRNAME = os.path.dirname(os.path.abspath(__file__)) RESOURCE_DIR = os.path.abspath(os.path.join(DIRNAME, '../resources/')) def load_...
39,763
https://github.com/ShaofeiZi/ui-model/blob/master/src/app/showcase/_layout/source-viewer/source-viewer.component.scss
Github Open Source
Open Source
MIT
2,017
ui-model
ShaofeiZi
SCSS
Code
37
137
@import "../../../shared/styles/common"; :host { display: block; } pre { border: 1px solid $nav-tabs-active-link-hover-border-color; border-top: none; padding: 0.5em; } /deep/ .empty { color: $brand-warning; } .author { &:not(:last-child) { margin-right: 0.5em; } } .nav-link { cursor: pointer; ...
20,208
https://github.com/illusionlee/lightcube/blob/master/drivers/drv_sdio.c
Github Open Source
Open Source
MIT
2,021
lightcube
illusionlee
C
Code
1,355
6,186
#include <stdint.h> #include <stdio.h> #include <string.h> #include <rthw.h> #include <rtthread.h> #include <rtdevice.h> #define DBG_ENABLE #define DBG_COLOR #define DBG_SECTION_NAME "[drv.sdio] " #define DBG_LEVEL DBG_WARNING #include "rtdbg.h" #ifdef RT_USING_SDIO #include <drivers/mmcsd_core.h> #i...
36,141
https://github.com/mtgibbs/nHydrate/blob/master/Source/nHydrate.EFCore/DataAccess/CodeFirstEntityObject.cs
Github Open Source
Open Source
MIT
null
nHydrate
mtgibbs
C#
Code
111
330
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.Objects.DataClasses; namespace Widgetsphere.EFCore.DataAccess { /// <summary> /// The base class for all entity objects /// </summary> [Serializable()] [System.Runtime.Serialization.DataContractAttribute(IsRef...
40,254
https://github.com/nandehutuzn/SportsStore/blob/master/WebServices/Views/Home/Summary.cshtml
Github Open Source
Open Source
Apache-2.0
null
SportsStore
nandehutuzn
C#
Code
39
225
@model IEnumerable<WebServices.Models.Reservation> <div class="panel-heading">Rreservation</div> <div class="panel-body"> <table class="table table-striped table-condensed"> <thead> <tr><th>ID</th><th>Name</th><th>Location</th><th></th></tr> </thead> <tbody> @foreac...
16,758
https://github.com/Jovilam77/vonce-sqlbean/blob/master/vonce-sqlbean-core/src/main/java/cn/vonce/sql/enumerate/FillWith.java
Github Open Source
Open Source
MIT
2,023
vonce-sqlbean
Jovilam77
Java
Code
24
78
package cn.vonce.sql.enumerate; /** * 填充类型 * @author Jovi * @email imjovi@qq.com * @date 2022/6/24 21:04 */ public enum FillWith { INSERT, UPDATE, TOGETHER }
33,396
https://github.com/dinadeljanin/ruby-metaprogramming-triangle-classification-lab-nyc04-seng-ft-041920/blob/master/spec/triangle_spec.rb
Github Open Source
Open Source
LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference
2,020
ruby-metaprogramming-triangle-classification-lab-nyc04-seng-ft-041920
dinadeljanin
Ruby
Code
407
1,017
describe 'Triangle' do # NOTE... I really like the cleaner way of writing an intialize statement... # So the tests pass each argument in one by one-- which makes the init break # I grouped each argument into a hash to pass that in. The tests pass now. # If I shouldn't have done this, I am sorry. It was just to...
6,079
https://github.com/kylebarron/ciso8601/blob/master/tests/test_timezone.py
Github Open Source
Open Source
MIT
2,021
ciso8601
kylebarron
Python
Code
263
1,062
# -*- coding: utf-8 -*- import sys from datetime import datetime, timedelta from ciso8601 import FixedOffset if sys.version_info.major == 2: # We use unittest2 since it has a backport of the `unittest.TestCase.assertRaisesRegex` method, # which is called `assertRaisesRegexp` in Python 2. This saves us the h...
28,536
https://github.com/GalliumArtisticServices/FlatBuffersSwift/blob/master/FlatBuffersSwiftTests/contacts_fb.swift
Github Open Source
Open Source
MIT
2,022
FlatBuffersSwift
GalliumArtisticServices
Swift
Code
4,666
12,617
import Foundation import FlatBuffersSwift public final class ContactList { public var lastModified: Int64 public var entries: [Contact] public init(lastModified: Int64 = 0, entries: [Contact] = []) { self.lastModified = lastModified self.entries = entries } public struct Direct<T : ...
26,587
https://github.com/robertzml/Syrinx/blob/master/Syrinx.DB/DAL/CumulationRepository.cs
Github Open Source
Open Source
MIT
null
Syrinx
robertzml
C#
Code
210
767
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using InfluxDB.Client; namespace Syrinx.DB.DAL { using Microsoft.Extensions.Options; using Microsoft.Extensions.Logging; using Syrinx.Base.Options; using Syrinx.DB.IDAL; using Syrinx...
34,837
https://github.com/suggestio/suggestio/blob/master/src1/server/www/app/util/cdn/CorsUtil.scala
Github Open Source
Open Source
Apache-2.0
null
suggestio
suggestio
Scala
Code
653
2,201
package util.cdn import javax.inject.{Inject, Singleton} import play.api.Configuration import play.api.mvc._ import io.suggest.common.empty.OptionUtil.BoolOptOps import io.suggest.n2.node.MNode import io.suggest.util.logs.MacroLogsImplLazy import models.mctx.{Context, ContextUtil} import scala.concurrent.{ExecutionCo...
10,435
https://github.com/wushengyeyouya/DataSphereStudio/blob/master/dss-orchestrator/dss-orchestrator-conversion-standard/src/main/java/com/webank/wedatasphere/dss/orchestrator/converter/standard/AbstractConversionIntegrationStandard.java
Github Open Source
Open Source
Apache-2.0
2,022
DataSphereStudio
wushengyeyouya
Java
Code
204
741
/* * Copyright 2019 WeBank * 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, ...
1,338
https://github.com/ric2b/Vivaldi-browser/blob/master/chromium/ash/system/palette/tools/metalayer_unittest.cc
Github Open Source
Open Source
BSD-3-Clause
2,022
Vivaldi-browser
ric2b
C++
Code
512
2,418
// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <memory> #include "ash/highlighter/highlighter_controller.h" #include "ash/highlighter/highlighter_controller_test_api.h" #include "ash/public/cpp/assistant/assistant...
18,561
https://github.com/Harry-Potter415/GANDUM-React-readux/blob/master/resolvers/customer.js
Github Open Source
Open Source
BSD-3-Clause
2,021
GANDUM-React-readux
Harry-Potter415
JavaScript
Code
669
1,921
const Customer = require("../models/Customer"); const { isEmpty, putError, checkError, imageUpload, imageUnlink, checkToken, } = require("../config/helpers"); const validate = require("../validations/customer"); const bcrypt = require("bcryptjs"); module.exports = { Query: { customers: async (root, a...
23,595
https://github.com/DigitPaint/roger/blob/master/lib/roger/helpers/logging.rb
Github Open Source
Open Source
MIT
2,019
roger
DigitPaint
Ruby
Code
114
359
module Roger module Helpers # Helper module for logging module Logging GRAY = "\e[37m".freeze RED = "\e[31m".freeze # Write out a log message def log(part, msg, verbose = false, &block) shell = project.shell if !verbose || verbose && project.options[:verbose] ...
41,980
https://github.com/Alexia23/batfish/blob/master/projects/batfish/src/org/batfish/representation/AsSet.java
Github Open Source
Open Source
Apache-2.0
2,022
batfish
Alexia23
Java
Code
18
53
package org.batfish.representation; import java.util.LinkedHashSet; public class AsSet extends LinkedHashSet<Integer> { private static final long serialVersionUID = 1L; }
6,208
https://github.com/gustavochm/phasepy/blob/master/phasepy/actmodels/nrtl.py
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
phasepy
gustavochm
Python
Code
514
1,509
from __future__ import division, print_function, absolute_import import numpy as np from .actmodels_cy import nrtl_cy, rkter_nrtl_cy from .actmodels_cy import dnrtl_cy, drkter_nrtl_cy def nrtl_aux(X, tau, G): X = np.asarray(X, dtype=np.float64) lngama = nrtl_cy(X, tau, G) return lngama def dnrtl_aux(X, ...
31,531
https://github.com/sola-da/LambdaTester/blob/master/experiments/find/findMined/test731.js
Github Open Source
Open Source
MIT
2,018
LambdaTester
sola-da
JavaScript
Code
208
756
var callbackArguments = []; var argument1 = function (err, mappings) { callbackArguments.push(arguments) debug('Role mappings found: %s %j', err, mappings); if (err) { if (done) done(err); return; } mappings.forEach(function (m) { addRole(m.roleId); }); ...
20,771
https://github.com/doctorbean/spark-notebook/blob/master/modules/sbt-project-generator/src/main/scala/com/datafellas/g3nerator/model/ArtifactName.scala
Github Open Source
Open Source
Apache-2.0
2,022
spark-notebook
doctorbean
Scala
Code
94
355
package com.datafellas.g3nerator.model trait ArtifactName { def name: String } object ArtifactName { val NonAlphanumericToDashesTrimmed: String => String = { _.toLowerCase.replaceAll("[^\\.a-z0-9-]+", "-").dropWhile(c => !c.isLetter).reverse.dropWhile(c => !c.isLetter).reverse } val AlphanumericCamelCase...
18,112
https://github.com/ftahery93/queing-appointment/blob/master/app/Helpers/CreateTable.php
Github Open Source
Open Source
MIT
null
queing-appointment
ftahery93
PHP
Code
245
1,685
<?php namespace App\Helpers; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; class CreateTable { public static function createTable($table_name, $type) { //Type:1 for memebers table // check if table is not already exists ...
19,168
https://github.com/vorsel/percona-xtradb-cluster-operator/blob/master/cmd/pitr/storage/storage.go
Github Open Source
Open Source
Apache-2.0
2,021
percona-xtradb-cluster-operator
vorsel
Go
Code
290
837
package storage import ( "context" "io" "strings" "github.com/minio/minio-go/v7" "github.com/minio/minio-go/v7/pkg/credentials" "github.com/pkg/errors" ) type Storage interface { GetObject(objectName string) (io.Reader, error) PutObject(name string, data io.Reader, size int64) error ListObjects(prefix strin...
24,750
https://github.com/kalaninja/algosharp/blob/master/src/Algosharp.Sorting/ComparisonSorts/MergeSort.cs
Github Open Source
Open Source
MIT
2,017
algosharp
kalaninja
C#
Code
452
1,339
using System.Collections.Generic; using System.Threading.Tasks; namespace Algosharp.Sorting.ComparisonSorts { /// <summary> /// <para> /// Time complexity. /// Best: O(n log(n)) typical, O(n) natural variant /// Average: O(n log(n)) /// Worst: O(n log(n)) /// </para> /// /// <para> /// Space complexity: O...
15,311
https://github.com/Gueils/belugas-php/blob/master/spec/belugas/php_spec.rb
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,017
belugas-php
Gueils
Ruby
Code
16
51
require 'spec_helper' describe Belugas::Php do it 'has a version number' do expect(Belugas::Php::VERSION).not_to be nil end end
46,245
https://github.com/jeremy001181/EventGridCluster/blob/master/src/EventGridCluster/TopicCredentialSet.cs
Github Open Source
Open Source
MIT
null
EventGridCluster
jeremy001181
C#
Code
82
290
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Microsoft.Rest; namespace EventGridCluster { internal class TopicCredentialSet : ServiceClientCredentials { private readonly IDictionary<string, string> top...
37,364
https://github.com/vivaxy/examples/blob/master/web-api/draggable/index.js
Github Open Source
Open Source
MIT
2,021
examples
vivaxy
JavaScript
Code
187
545
/** * @since 2014/8/26 16:34 * @author vivaxy */ var balls = Array.prototype.slice.call(document.querySelectorAll('ball')); var buckets = Array.prototype.slice.call(document.querySelectorAll('buckets')); var dragged; // events fired on the draggable target document.addEventListener('drag', function (event) {}, fal...
5,471
https://github.com/colemancda/CoreWLAN-ObjFW/blob/master/CDAWiFi/CDAWiFi/CDAWiFi.h
Github Open Source
Open Source
MIT
2,021
CoreWLAN-ObjFW
colemancda
C
Code
39
180
// // CDAWiFi.h // CDAWiFi // // Created by Alsey Coleman Miller on 3/1/15. // Copyright (c) 2015 ColemanCDA. All rights reserved. // @import ObjFW; @import CDAFoundation; #import <CDAWiFi/CDAWiFiTypes.h> #import <CDAWiFi/CDAWiFiChannel.h> #import <CDAWiFi/CDAWiFiClient.h> #import <CDAWiFi/CDAWiFiInterface.h> #im...
51,753
https://github.com/christafaa/js-advanced-functions-first-class-functions-lab-v-000/blob/master/index.js
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,018
js-advanced-functions-first-class-functions-lab-v-000
christafaa
JavaScript
Code
76
221
// // Code your solution in this file! const returnFirstTwoDrivers = function (driversArray) { return [driversArray[0], driversArray[1]]; } const returnLastTwoDrivers = function (driversArray) { return [driversArray[driversArray.length - 2], driversArray[driversArray.length - 1]]; } const selectingDrivers = [ret...
1,351
https://github.com/padam-ghimire/task/blob/master/app/Http/Controllers/PostController.php
Github Open Source
Open Source
MIT
null
task
padam-ghimire
PHP
Code
269
957
<?php namespace App\Http\Controllers; use App\Models\Post; use Illuminate\Http\Request; use App\Http\Requests\PostStoreRequest; use App\Http\Requests\PostUpdateRequest; class PostController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ ...
18,787
https://github.com/moshe010/antrea/blob/master/pkg/apiserver/apiserver.go
Github Open Source
Open Source
Apache-2.0
2,020
antrea
moshe010
Go
Code
304
1,117
// Copyright 2019 Antrea 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 to ...
50,746
https://github.com/thinnect/node-platform/blob/master/common/crc32.c
Github Open Source
Open Source
MIT
2,023
node-platform
thinnect
C
Code
450
2,984
/* * CRC-32 algorithm implementation. * * Copyright Thinnect Inc. 2019 * @license MIT * @author Veiko Rütter, Raido Pahtma */ #include "crc32.h" #include <stdint.h> #ifdef CRC32_NO_STATIC uint32_t crc_tab[256]; void crc32_init(){ uint32_t c, poly; int n, k; /* terms of polynomial defining this crc (except x^...
23,226