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/JigarJoshi/openapi-generator/blob/master/samples/server/petstore/php-lumen/lib/app/Http/Controllers/FakeApi.php
Github Open Source
Open Source
Apache-2.0
2,022
openapi-generator
JigarJoshi
PHP
Code
1,552
4,218
<?php /** * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * PHP version 7.2.5 * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Gen...
19,278
https://github.com/anneeb/module-one-final-project-guidelines-web-042417/blob/master/lib/catch.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,017
module-one-final-project-guidelines-web-042417
anneeb
Ruby
Code
83
354
class Catch attr_reader :user, :desired_pokemon def initialize (user_pokemon, desired_pokemon) @user = user_pokemon.trainer @desired_pokemon = desired_pokemon end def caught? max_hp = self.desired_pokemon.base_hp hp = self.desired_pokemon.hp m = rand(0..255) f = (max_hp * 255 * 4) / (h...
27,210
https://github.com/bastrian/fusliez-notes/blob/master/src/utils/AUMT/Scenes/MapScene.ts
Github Open Source
Open Source
MIT
2,021
fusliez-notes
bastrian
TypeScript
Code
580
2,067
import Config from "../Config"; import { IMapName } from "utils/types/maps"; import InputHandler from "../InputHandler"; import Layer from "../Layer"; import { MAPS_ICON } from "constants/maps"; import Players from "../Layers/Players"; import RadialMenu from "../Layers/RadialMenu"; import Rectangle from "utils/math/Rec...
45,769
https://github.com/kraken-php/kraken-framework/blob/master/test/_Unit/Runtime/Supervision/Cmd/CmdLogTest.php
Github Open Source
Open Source
MIT
2,022
kraken-framework
kraken-php
PHP
Code
62
248
<?php namespace Kraken\_Unit\Runtime\Supervision; use Kraken\_Unit\Runtime\_T\TSolver; use Kraken\Log\Logger; use Kraken\Runtime\Supervision\Cmd\CmdLog; use Exception; use StdClass; class CmdLogTest extends TSolver { /** * @var string */ protected $class = CmdLog::class; /** * */ ...
21,711
https://github.com/launchdarkly/node-client/blob/master/test/LDClient-evaluation-test.js
Github Open Source
Open Source
Apache-2.0
2,019
node-client
launchdarkly
JavaScript
Code
845
2,312
const { TestData } = require('../integrations'); const stubs = require('./stubs'); describe('LDClient', () => { var defaultUser = { key: 'user' }; describe('variation()', () => { it('evaluates an existing flag', async () => { const td = TestData(); td.update(td.flag('flagkey').on(true).variations...
48,527
https://github.com/spacechase0/ComponentEquipment/blob/master/com/spacechase0/minecraft/componentequipment/client/gui/docs/ToolCategory.java
Github Open Source
Open Source
MIT
2,018
ComponentEquipment
spacechase0
Java
Code
431
1,290
package com.spacechase0.minecraft.componentequipment.client.gui.docs; import java.util.ArrayList; import java.util.List; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.StatCollector; import net.minecraftforge.oredict.OreDictionary; import com.spacechase0.minecraft.comp...
20,262
https://github.com/malesch/yuml_rails/blob/master/lib/yuml_rails.rb
Github Open Source
Open Source
MIT
2,012
yuml_rails
malesch
Ruby
Code
291
1,170
module YUML class Dumper #:nodoc: private_class_method :new def self.dump(stream=STDOUT) parser = Parser.new dir = File.join(RAILS_ROOT, '/app/models') Dir.foreach(dir) do |name| unless name == '.' || name == '..' file = File.new(File.join(dir, name)) parser.pa...
12,666
https://github.com/rogberth/rpi-kernel/blob/master/code/svc.cpp
Github Open Source
Open Source
MIT
2,015
rpi-kernel
rogberth
C++
Code
462
1,742
// ******************************* // FILE: svc.cpp // AUTHOR: Roberto Curran García // DATE: 2015-05-05 // ABOUT: Functions to call SVC or to handle them. // // LICENSE: Provided "AS IS". USE AT YOUR OWN RISK. // ******************************* #include "svc.h" extern "C" void swi_writer() { char * strin...
39,711
https://github.com/gegeturambar/j37_seblod/blob/master/cli/cck_job.php
Github Open Source
Open Source
PostgreSQL
null
j37_seblod
gegeturambar
PHP
Code
181
561
<?php /** * @version SEBLOD 3.x Core * @package SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder) * @url http://www.seblod.com * @editor Octopoos - www.octopoos.com * @copyright Copyright (C) 2009 - 2016 SEBLOD. All Rights Reserved. * @license GNU General Public License version 2 or later; see _LIC...
25,547
https://github.com/protubero/beanstore/blob/master/src/main/java/de/protubero/beanstore/base/entity/GenericInterceptor.java
Github Open Source
Open Source
MIT
null
beanstore
protubero
Java
Code
93
365
package de.protubero.beanstore.base.entity; import java.lang.reflect.Method; import java.util.concurrent.Callable; import net.bytebuddy.implementation.bind.annotation.AllArguments; import net.bytebuddy.implementation.bind.annotation.Origin; import net.bytebuddy.implementation.bind.annotation.RuntimeType; import net.b...
37,262
https://github.com/jacklincao/xeogl/blob/master/examples/js/geometry/objGeometryLoader.js
Github Open Source
Open Source
MIT
2,018
xeogl
jacklincao
JavaScript
Code
225
678
(function () { "use strict"; xeogl.loadOBJGeometry = function (scene, src, ok, error) { var spinner = scene.canvas.spinner; spinner.processes++; load(src, function (data) { if (!data.byteLength) { spinner.processes--; error("No...
1,973
https://github.com/bartoszcisek/cattle/blob/master/code/implementation/docker/compute/src/main/java/io/cattle/platform/docker/process/dao/impl/DockerComputeDaoImpl.java
Github Open Source
Open Source
Apache-2.0
2,022
cattle
bartoszcisek
Java
Code
225
1,236
package io.cattle.platform.docker.process.dao.impl; import static io.cattle.platform.core.model.tables.VolumeStoragePoolMapTable.*; import static io.cattle.platform.core.model.tables.VolumeTable.*; import io.cattle.platform.core.constants.CommonStatesConstants; import io.cattle.platform.core.constants.VolumeConstants...
1,347
https://github.com/knutnyg/moneymaker/blob/master/src/main/kotlin/xyz/nygaard/AskMaster.kt
Github Open Source
Open Source
MIT
2,021
moneymaker
knutnyg
Kotlin
Code
91
376
package xyz.nygaard import kotlinx.coroutines.runBlocking import xyz.nygaard.io.ActiveOrder import xyz.nygaard.io.ActiveOrder.OrderType.ask import xyz.nygaard.core.CreateOrderRequest import xyz.nygaard.io.MarketTicker import xyz.nygaard.core.strategy.BalancedStrategy import xyz.nygaard.core.strategy.Strategy class As...
261
https://github.com/Germanwings/airline/blob/master/airline-data/src/main/scala/com/patson/model/FlightPreference.scala
Github Open Source
Open Source
Apache-2.0
2,020
airline
Germanwings
Scala
Code
1,655
4,290
package com.patson.model import scala.collection.mutable.ListBuffer import scala.collection.mutable.ArrayBuffer import scala.util.Random import com.patson.Util /** * Flight preference has a computeCost method that convert the existing price of a link to a "perceived price". The "perceived price" will be refer to "cos...
4,399
https://github.com/InversePalindrome/Apophis/blob/master/Classes/SettingsScene.cpp
Github Open Source
Open Source
MIT
2,020
Apophis
InversePalindrome
C++
Code
87
497
/* Copyright (c) 2018 Inverse Palindrome Apophis - SettingsScene.cpp InversePalindrome.com */ #include "AppSettings.hpp" #include "SettingsScene.hpp" #include <CreatorReader.h> #include <cocos/ui/UIButton.h> #include <cocos/ui/UISlider.h> #include <cocos/base/CCDirector.h> cocos2d::Scene* getSettingsScene() { ...
31,853
https://github.com/dinasour/CoolCaptcha.NET/blob/master/CaptchaConsoleTest/Program.cs
Github Open Source
Open Source
JSON, Apache-2.0
2,014
CoolCaptcha.NET
dinasour
C#
Code
140
509
#region CopyRight /************************************************************** Copyright (c) 2014 StarPeng. All rights reserved. CLR版本 : 4.0.30319.34014 命名空间名称 : $rootnamespace$ 文件名 : Program 创建时间 : 2014/5/11 10:25:55 用户所在的域 : XPC 登录用户名 : Star 文件...
38,339
https://github.com/airt/learning-concurrent-programming/blob/master/project/plugins.sbt
Github Open Source
Open Source
MIT
2,018
learning-concurrent-programming
airt
Scala
Code
20
116
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1") addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.2.2") addSbtPlugin("com.lucidchart" % "sbt-scalafmt" % "1.14") addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.3.3")
17,072
https://github.com/faodel/faodel/blob/master/examples/common/logging-interface/logging_interface.cpp
Github Open Source
Open Source
MIT
2,021
faodel
faodel
C++
Code
146
256
// Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // logging-interface example // // This LoggingInterface is a simple way for us to plug logging operations into /...
36,706
https://github.com/makepanic/ember-cli-flash/blob/master/tests/acceptance/main-test.js
Github Open Source
Open Source
MIT
null
ember-cli-flash
makepanic
JavaScript
Code
100
375
import { find, visit } from '@ember/test-helpers'; import { module, test } from 'qunit'; import { setupApplicationTest } from 'ember-qunit'; import config from '../../config/environment'; const { timeout: defaultTimeout } = config.flashMessageDefaults; module('Acceptance | main', function(hooks) { setupApplicationT...
41,570
https://github.com/cfeenstra67/recipes/blob/master/recipes/site_listers/seriouseats.py
Github Open Source
Open Source
MIT
null
recipes
cfeenstra67
Python
Code
11
65
from recipes.site_listers.base import SitemapLister class SeriousEatsLister(SitemapLister): """ """ start_url = "https://www.seriouseats.com/sitemap_1.xml"
37,434
https://github.com/AlfredYan/NLP-to-the-rescue/blob/master/nlp_to_the_rescue.py
Github Open Source
Open Source
MIT
2,019
NLP-to-the-rescue
AlfredYan
Python
Code
653
2,115
# ============================================================= # Load in library # ============================================================= import pandas as pd import numpy as np import glob import enchant from googletrans import Translator from os import path from PIL import Image from wordcloud import WordClou...
152
https://github.com/figment-networks/polkadothub-indexer/blob/master/indexer/source_index.go
Github Open Source
Open Source
Apache-2.0
2,022
polkadothub-indexer
figment-networks
Go
Code
365
1,064
package indexer import ( "context" "errors" "github.com/figment-networks/indexing-engine/pipeline" "github.com/figment-networks/polkadothub-indexer/client" "github.com/figment-networks/polkadothub-indexer/config" "github.com/figment-networks/polkadothub-indexer/store" ) var ( _ pipeline.Source = (*indexSource...
42,160
https://github.com/bgreer5050/AdvancedHMI/blob/master/AdvancedHMIDrivers/AllenBradley/AllenBradleyPCCC.vb
Github Open Source
Open Source
MIT
2,017
AdvancedHMI
bgreer5050
Visual Basic
Code
11,342
28,711
'********************************************************************************************** '* AdvancedHMI Driver '* http://www.advancedhmi.com '* PCCC Data Link Layer & Application Layer '* '* Archie Jacobs '* Manufacturing Automation, LLC '* support@advancedhmi.com '* 22-NOV-06 '* '* Copyright 2006, 2010 Archie ...
30,107
https://github.com/gofulljs/dolphin/blob/master/examples/aisle/app/app.go
Github Open Source
Open Source
LicenseRef-scancode-public-domain, MIT
2,021
dolphin
gofulljs
Go
Code
325
1,064
// Code generated by dol build. Only Generate by tools if not existed, your can rewrite platform.App default action // source: app.go package app import ( "sync" "time" "github.com/2637309949/dolphin/platform/app" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" "github.com/thoas/go-funk" ) type ( // ...
1,958
https://github.com/RakshRak/req/blob/master/node_modules/igniteui-angular-maps/esm2015/lib/igx-bing-maps-map-imagery.js
Github Open Source
Open Source
MIT, MS-PL
2,021
req
RakshRak
JavaScript
Code
582
1,777
import { IgxSubDomainsCollection } from "./igx-sub-domains-collection"; import { BingMapsImageryStyle_$type } from "./BingMapsImageryStyle"; import { IgxGeographicMapImagery } from "./igx-geographic-map-imagery"; import { BingMapsMapImagery as BingMapsMapImagery_internal } from "./BingMapsMapImagery"; import { ensureBo...
30,224
https://github.com/Saif-M-Dhrubo/OS161-Assignments/blob/master/asst2/src/userland/testbin/usemtest/Makefile
Github Open Source
Open Source
MIT
2,021
OS161-Assignments
Saif-M-Dhrubo
Makefile
Code
15
101
# Makefile for usemtest TOP=../../.. .include "$(TOP)/mk/os161.config.mk" PROG=usemtest SRCS=usemtest.c BINDIR=/testbin HOSTBINDIR=/hostbin .include "$(TOP)/mk/os161.prog.mk" .include "$(TOP)/mk/os161.hostprog.mk"
3,925
https://github.com/AdamWarlock21/MyRepo2/blob/master/src/test/java/ac/za/cput/Controller/StudBudgetControllerIT.java
Github Open Source
Open Source
MIT
null
MyRepo2
AdamWarlock21
Java
Code
194
869
package ac.za.cput.Controller; import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.MethodSorters; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.te...
46,320
https://github.com/Zen-Uni/tech-training-camp-frontend/blob/master/server/controller/register.js
Github Open Source
Open Source
MIT
2,022
tech-training-camp-frontend
Zen-Uni
JavaScript
Code
252
599
/** * @description register business logic * @author Uni */ // import ErrorInfo const ErrorInfo = require('../config/errorInfo') // import result model and data model const { ErrorModel, SuccessModel } = require('../config/resultModel') const { User, Captcha, } = require('../db/') const { dispatchToken }...
3,911
https://github.com/Saif-Mahmud-Khan-Dourjoy/Systech_digital_Web-admin_laravel/blob/master/resources/views/product.blade.php
Github Open Source
Open Source
MIT
null
Systech_digital_Web-admin_laravel
Saif-Mahmud-Khan-Dourjoy
PHP
Code
1,568
8,010
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="{{asset('admin_master/img/logo/logo.png')}}" rel="icon"> <title>Product Details</title> <script src="https://kit.fontawesome.com/c6033c6663.js" crossorigin="anonymous"></...
30,318
https://github.com/aquagenuity/dataset1/blob/master/public/js/scripts.js
Github Open Source
Open Source
MIT
2,018
dataset1
aquagenuity
JavaScript
Code
222
1,011
(function($) { $(window).on('load', function(){ $('.fade-in').css({ position: 'relative', opacity: 0, top: -14 }); setTimeout(function(){ $('#preload-content').fadeOut(400, function(){ $('#preload').fadeOut(800); setTimeout(function(){ $('.fade-in').each(function(index) { $(this).delay(400*i...
52,210
https://github.com/kephas-software/kephas/blob/master/src/Tests/Kephas.Data.MongoDB.Tests/MongoTestBase.cs
Github Open Source
Open Source
LicenseRef-scancode-free-unknown, MIT
2,023
kephas
kephas-software
C#
Code
291
999
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="MongoTestBase.cs" company="Kephas Software SRL"> // Copyright (c) Kephas Software SRL. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project ...
13,865
https://github.com/bobbychakandrakov/Car-Manager/blob/master/src/app/limit-to.pipe.ts
Github Open Source
Open Source
MIT
null
Car-Manager
bobbychakandrakov
TypeScript
Code
48
122
import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'limitTo', pure:false }) export class LimitToPipe implements PipeTransform { transform(items: any[], filter: number): any { let count = 0; if (!items || !filter) { return items; } return items.filter(ite...
44,237
https://github.com/sc2ad/BeatSaber-Quest-Codegen/blob/master/include/NUnit/Framework/Constraints/NUnitEqualityComparer_FailurePoint.hpp
Github Open Source
Open Source
Unlicense
2,023
BeatSaber-Quest-Codegen
sc2ad
C++
Code
306
1,253
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: NUnit.Framework.Constraints.NUnitEq...
44,866
https://github.com/houfeng0923/ember-cli/blob/master/tests/unit/utilities/find-addon-by-name-test.js
Github Open Source
Open Source
MIT
2,020
ember-cli
houfeng0923
JavaScript
Code
529
1,854
'use strict'; const expect = require('chai').expect; const findAddonByName = require('../../../lib/utilities/find-addon-by-name'); const clearCaches = findAddonByName._clearCaches; describe('findAddonByName', function () { let addons, originalConsole, consoleOutput; beforeEach(function () { originalConsole =...
16,368
https://github.com/JuanPabloJimenezEsclusa/spring-interview-guide/blob/master/3.spring-mvc/src/main/java/com/in28minutes/todo/TodoRestController.java
Github Open Source
Open Source
MIT
2,022
spring-interview-guide
JuanPabloJimenezEsclusa
Java
Code
43
207
package com.in28minutes.todo; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestControlle...
43,471
https://github.com/lerwine/FlowDefinitelyTyped/blob/master/flow-types/types/styletron-standard_vx.x.x/flow_v0.25.x-/styletron-standard.js
Github Open Source
Open Source
MIT
2,019
FlowDefinitelyTyped
lerwine
JavaScript
Code
108
288
declare module "styletron-standard" { import typeof * as CSS from "csstype"; declare export type Properties = CSS.Properties<string | number>; declare export type FontFace = CSS.FontFace; declare export interface KeyframesPercentageObject { [key: string]: Properties; } declare export type KeyframesObje...
42,258
https://github.com/candrasptr/E-tiket/blob/master/application/views/guest/template/header.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,020
E-tiket
candrasptr
PHP
Code
115
621
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="icon" href="<?= base_url('assets/favicon.png') ?>" type="image/png"> <title><?= $judul ?></title> <link rel="stylesheet" href...
50,086
https://github.com/NezakerTeam/platform/blob/master/resources/lang/ar/user.php
Github Open Source
Open Source
MIT
2,020
platform
NezakerTeam
PHP
Code
122
329
<?php $formAll = [ 'first_name' => 'الإسم الأول', 'last_name' => 'الإسم الثاني', 'email' => 'البريد الإلكتروني', 'password' => 'كلمة السر', 'city_id' => 'المدينة', 'city' => ['empty_value' => 'إختر المدينة'], 'phone_numbers' => 'رقم التليفون', ]; $formEdit = array_merge( $formAll, [ ...
13,779
https://github.com/barchetta/helidon/blob/master/inject/runtime/src/main/java/io/helidon/inject/runtime/VoidServiceProvider.java
Github Open Source
Open Source
Apache-2.0, APSL-1.0, LicenseRef-scancode-protobuf, GPL-1.0-or-later, LGPL-2.1-only, LicenseRef-scancode-unknown-license-reference, CC-PDDC, LicenseRef-scancode-generic-export-compliance, LicenseRef-scancode-unicode, EPL-1.0, LicenseRef-scancode-warranty-disclaimer, LGPL-2.1-or-later, EPL-2.0, Classpath-exception-2.0, ...
2,023
helidon
barchetta
Java
Code
203
557
/* * Copyright (c) 2023 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
56,549
https://github.com/Insistandtry/storybook-addon-mobile-qrcode/blob/master/src/qrcodePanel/index.js
Github Open Source
Open Source
MIT
2,022
storybook-addon-mobile-qrcode
Insistandtry
JavaScript
Code
193
671
import React, { useEffect, useRef, useState } from 'react'; import qrcode from 'qrcode'; export const QRCODE_ADDON_TITLE = '二维码'; export const QRCODE_ADDON_ID = 'storybook/qrcode'; export const QRCODE_PANEL_ID = `${QRCODE_ADDON_ID}/panel`; const QR_CODE_CANVAS_ID = '_qr_code_canvas_id'; const style = { padding: '24px...
1,677
https://github.com/jflowers/pemba/blob/master/shell/lib/tools/wrappers/ruby.bash
Github Open Source
Open Source
Apache-2.0
2,017
pemba
jflowers
Shell
Code
126
483
#!/usr/bin/env bash require 'env-vars/ruby' require 'wrappers/bundle' function ruby(){ bundle 'install' '--local' $RUBY_BIN "$@" fail_if "Failed to execute: ruby ${*}" rename_terminal } function ruby__init() { type rbenv 2>&1 1>/dev/null || return 1 eval "$(rbenv init - )" fail_if "unable to initiali...
31,249
https://github.com/dannygoldstein/gradeplot/blob/master/gradeplot.py
Github Open Source
Open Source
MIT
null
gradeplot
dannygoldstein
Python
Code
403
1,131
__all__ = ['plot_colorful'] __whatami__ = 'Utility for plotting colorful grade histograms.' __author__ = 'Danny Goldstein <dgold@berkeley.edu>' def plot_colorful(grade_array, grade_boundaries, title='Student Grades', x_tight=False, **plot_kwargs): """Plot a histogram of student grades, color-co...
5,626
https://github.com/lickey10/Unity/blob/master/WaterBalloonDrop/Assets/ZRNAssets/PQAssets/Prefabs/effect/Materials/count_1.mat.meta
Github Open Source
Open Source
CC-BY-4.0
2,019
Unity
lickey10
Unity3D Asset
Code
6
39
fileFormatVersion: 2 guid: 4586cab1def48464dab83c3b50dda146 NativeFormatImporter: userData:
37,593
https://github.com/frankyn/google-cloud-cpp/blob/master/google/cloud/pubsub/publisher_connection.h
Github Open Source
Open Source
Apache-2.0
2,021
google-cloud-cpp
frankyn
C
Code
487
1,156
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
37,145
https://github.com/modulexcite/poser/blob/master/index.js
Github Open Source
Open Source
MIT
2,014
poser
modulexcite
JavaScript
Code
26
70
var poser = require('./src/node'); module.exports = poser; ['Array', 'Function', 'Object', 'Date', 'String'].forEach(pose); function pose (type) { poser[type] = function poseComputedType () { return poser(type); }; }
28,580
https://github.com/Nikhilsb/Xampp-Magento/blob/master/htdocs/magento/vendor/magento/module-inventory/Model/Validators/IsNumericValue.php
Github Open Source
Open Source
Apache-2.0
null
Xampp-Magento
Nikhilsb
PHP
Code
80
196
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\Inventory\Model\Validators; /** * Checks whether given string is empty */ class IsNumericValue { /** * Checks whether given value is numeric. * * @par...
53,985
https://github.com/jjang16/behavior-data-pipeline/blob/master/app/src/components/CheckoutForm/PaymentForm.jsx
Github Open Source
Open Source
MIT
2,021
behavior-data-pipeline
jjang16
null
Spoken
265
1,085
import React, { useContext, useState } from 'react' import classnames from 'classnames' import LoadingSVG from '../../svg/loading.svg' import PaymentDialog from './PaymentDialog' import CheckoutContext from '../../context/Checkout' //TODO(ayan): techinically this is not a form, so will rename and refacor later const ...
5,435
https://github.com/akoltsv/geowave/blob/master/extensions/adapters/vector/src/main/java/org/locationtech/geowave/adapter/vector/export/VectorLocalExportCommand.java
Github Open Source
Open Source
Apache-2.0
null
geowave
akoltsv
Java
Code
613
2,472
/******************************************************************************* * Copyright (c) 2013-2018 Contributors to the Eclipse Foundation * * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * All rights reserved. This program and the accompanyin...
26,246
https://github.com/fossabot/jymfony/blob/master/src/Component/Metadata/test/ClassMetadataTest.js
Github Open Source
Open Source
MIT
2,022
jymfony
fossabot
JavaScript
Code
331
1,406
const ClassMetadata = Jymfony.Component.Metadata.ClassMetadata; const FieldMetadata = Jymfony.Component.Metadata.FieldMetadata; const Fixtures = Jymfony.Component.Metadata.Fixtures; const MethodMetadata = Jymfony.Component.Metadata.MethodMetadata; const PropertyMetadata = Jymfony.Component.Metadata.PropertyMetadata; co...
4,343
https://github.com/apache/cloudstack-www/blob/master/content/javascripts/phonebook.js
Github Open Source
Open Source
Apache-2.0, Apache-1.1
2,023
cloudstack-www
apache
JavaScript
Code
3,782
10,179
var pmcs = [] // array of PMC names (excludes non-PMC committees) var people = {} // public_ldap_people.json var ldapauth = {} // public_ldap_authgroups.json // TODO don't rely on ldap_groups containing PMC :members groups var ldapgroups = {} // public_ldap_groups.json var ldapservices = {} // public_ldap_services.jso...
20,615
https://github.com/synthetic-sky/Synth/blob/master/tools/interface/server/routes.js
Github Open Source
Open Source
MIT
2,021
Synth
synthetic-sky
JavaScript
Code
34
131
define ("routes", ["express", "path"], function (express, path) { return { register: function (router) { router.use (express.static (path.resolve ("dist"))); router.use (express.static (path.resolve ("."))); router.get ('/client/socket.io.js', function (req, res) { res.se...
25,852
https://github.com/dlyle65535/incubator-slider/blob/master/slider-agent/src/main/python/resource_management/libraries/functions/os_check.py
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause, MIT, BSD-2-Clause
2,014
incubator-slider
dlyle65535
Python
Code
465
1,230
#!/usr/bin/env python2.6 ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "Licens...
29,714
https://github.com/BUIDLHub/block-inspector/blob/master/packages/bi-ui/src/Components/Nav/index.js
Github Open Source
Open Source
MIT
2,020
block-inspector
BUIDLHub
JavaScript
Code
55
146
import {connect} from 'react-redux'; import Nav from './Nav'; import {withRouter} from 'react-router-dom'; const s2p = state => { return { web3Running: state.chain.web3Status === 'running' } } const d2p = dispatch => { return { goHome: () => { }, pauseNetwork: () => { ...
24,421
https://github.com/nishant90210/DSA/blob/master/src/TopInterviewQuestions/MergeKSortedArrays.java
Github Open Source
Open Source
MIT
null
DSA
nishant90210
Java
Code
105
286
package TopInterviewQuestions; import java.util.Arrays; import java.util.PriorityQueue; public class MergeKSortedArrays { public static void main(String[] args) { int[] arr1 = { 1, 3, 5, 7 }; int[] arr2 = { 2, 4, 6, 8 }; int[] arr3 = { 0, 9, 10, 11 }; int[] result = mergeKSortedA...
7,457
https://github.com/JohnReid/infpy/blob/master/python/infpy/gp/rational_quadratic_kernel.py
Github Open Source
Open Source
BSD-2-Clause
2,018
infpy
JohnReid
Python
Code
362
1,209
# # Copyright John Reid 2006 # from .real_kernel import * import numpy import math class RationalQuadraticKernel(RealKernel): """ Following 4.19 in `Gaussian Processes for Machine Learning`__ by Rasmussen and Williams. __ http://www.amazon.co.uk/Gaussian-Processes-Learning-Adaptive-Computation/dp/0262...
22,781
https://github.com/Voltra/SupportClassLibrary/blob/master/include/scl/utils/toString.h
Github Open Source
Open Source
MIT
2,021
SupportClassLibrary
Voltra
C++
Code
200
640
#pragma once #include <string> #include <scl/macros.h> #include <scl/tools/meta/enable_if.h> #include <scl/tools/meta/void_t.h> #include <scl/tools/meta/exists.h> #include <scl/tools/meta/type_mod.h> #include <scl/tools/meta/is_same.h> #include <scl/tools/meta/defines_std_to_string.h> namespace scl{ namespace utils{...
24,582
https://github.com/rizalreza/regist/blob/master/resources/views/register.blade.php
Github Open Source
Open Source
MIT
null
regist
rizalreza
PHP
Code
172
910
@extends('layouts.app') @section('content') <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <section class="block-wrapper"> <div class="container"> <div class="row"> <div style="margin-left: 300px" class="col-md-6 col-md-offset-3"> <div class="bl...
51,142
https://github.com/GaijinEntertainment/quirrel/blob/master/scripts/samples/metamethods.nut
Github Open Source
Open Source
MIT
2,023
quirrel
GaijinEntertainment
Squirrel
Code
131
551
let class Vector { x = 0 y = 0 z = 0 constructor(x, y, z) { this.x = x this.y = y this.z = z } function _add(n) { return this.getclass()(this.x+n.x, this.y+n.y, this.z+n.z) } function _sub(n) { return this.getclass()(this.x-n.x, this.y-n.y, this.z...
55,883
https://github.com/LlamaOnDrugs/WINsen/blob/master/lib/quantisnetlib.py
Github Open Source
Open Source
MIT
null
WINsen
LlamaOnDrugs
Python
Code
924
2,779
import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..')) sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'lib')) import base58 import hashlib import re from decimal import Decimal import simplejson import binascii from misc import printdbg, epoch2str import time def is_valid_q...
21,142
https://github.com/emylvinpersonal/sample-apigee-drupal8/blob/master/web/modules/contrib/apigee_edge/modules/apigee_edge_teams/src/Controller/TeamAppKeysController.php
Github Open Source
Open Source
MIT
2,020
sample-apigee-drupal8
emylvinpersonal
PHP
Code
196
453
<?php /** * Copyright 2020 Google Inc. * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY ...
47,158
https://github.com/doggra/fbhunter/blob/master/content_script.js
Github Open Source
Open Source
MIT
2,017
fbhunter
doggra
JavaScript
Code
85
357
// Checks if element exists. $.fn.exists = function () { return this.length !== 0; } function send_message(subject, message) { chrome.runtime.sendMessage({subject: subject, content: message}); } function get_users_ids() { var user_ids = []; var main_container = $('#initial_browse_result'); var result_boxe...
36,292
https://github.com/UnmannedRoboticSelfbalancingAutomaton/URSABB/blob/master/drive.ino
Github Open Source
Open Source
MIT
2,019
URSABB
UnmannedRoboticSelfbalancingAutomaton
null
Spoken
163
512
#include "ursabb.h" void runMotors() { leftMotorWriteSpeed = constrain(leftMotorWriteSpeed, -MAX_SPEED, MAX_SPEED); // combine turnSpeedVal and the motor speed required for forwards/backwards movement so the robot can move and turn rightMotorWriteSpeed = constrain(rightMotorWriteSpeed, -MAX_SPEED, MAX_SPEED); // p...
1,323
https://github.com/sakuragiten/YDProject/blob/master/Example/YDProject/Classes/LXHouse/Test/WebView/LXWebViewJSBridge.h
Github Open Source
Open Source
MIT
2,023
YDProject
sakuragiten
Objective-C
Code
83
508
// // LXWebViewJSBridge.h // LXNewHouse // // Created by LOUXUN-K on 2018/12/3. // Copyright © 2018 louxun. All rights reserved. // #import <Foundation/Foundation.h> #import <JavaScriptCore/JavaScriptCore.h> //声明遵从JSExport协议的协议 @protocol JSObjectProtocol <JSExport> ///楼盘对比---删除某个楼盘回调 -(void)removeCompareHouse:(NSS...
10,115
https://github.com/alipay/alipay-sdk-net-all/blob/master/v2/AlipaySDKNet/Domain/MiniContentProperty.cs
Github Open Source
Open Source
Apache-2.0
2,023
alipay-sdk-net-all
alipay
C#
Code
69
278
using System; using System.Xml.Serialization; using System.Collections.Generic; namespace Aop.Api.Domain { /// <summary> /// MiniContentProperty Data Structure. /// </summary> [Serializable] public class MiniContentProperty : AopObject { /// <summary> /// 属性key,必须是平台预先定义的,否则不允许录...
5,672
https://github.com/ivan-odinets/QtTelegramBot/blob/master/src/types/video.cpp
Github Open Source
Open Source
LGPL-3.0-only
2,022
QtTelegramBot
ivan-odinets
C++
Code
195
544
/* ********************************************************************************************************************** * * QtTelegramBot * Copyright (C) 2015 Moritz Sternemann * Copyright (C) 2021-2022 IvanOdinets * * This file is part of QtTelegramBot * * QtTelegramBot is free software; you can redistribut...
33,009
https://github.com/apache/openwebbeans/blob/master/webbeans-impl/src/test/java/org/apache/webbeans/test/interceptors/dependent/DependentLifecycleTest.java
Github Open Source
Open Source
Apache-2.0
2,023
openwebbeans
apache
Java
Code
207
667
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
41,202
https://github.com/ioplee/schoolv1.0/blob/master/src/main/java/com/hzresp/commons/thread/impl/ProxyBpThreadDaoImpl.java
Github Open Source
Open Source
Apache-2.0
2,016
schoolv1.0
ioplee
Java
Code
122
521
package com.hzresp.commons.thread.impl; import java.util.List; import com.shangban.thread.BpThreadDao; import com.shangban.thread.ProxyBpThreadDao; import com.shangban.thread.object.BpThreadDO; import com.shangban.thread.object.impl.DefaultBpThreadDO; public class ProxyBpThreadDaoImpl implements ProxyBpThreadDao { ...
39,033
https://github.com/ringcentral/ringcentral-js-widgets/blob/master/packages/ringcentral-mock/src/platform/interfaces/LocationStateInfo.ts
Github Open Source
Open Source
MIT
2,023
ringcentral-js-widgets
ringcentral
TypeScript
Code
34
60
// Information on the state this location belongs to export interface LocationStateInfo { /** * Internal identifier of a state */ id: string; /** * Link to a state resource */ uri: string; }
25,200
https://github.com/mtulio/kb/blob/master/Faculdade/2007-2_-_II/Programacao_II/Ex03_-_NumerosInteiros/source_extra/TABELA.CPP
Github Open Source
Open Source
Apache-2.0
2,021
kb
mtulio
C++
Code
183
1,058
#include<iostream> #include<string> #include<vector> #include"classeNumeroNatural.h" #include<cmath> #include<iomanip> using namespace std; int main (void){//inicio do programa principal unsigned long b,n,mdc,mmc,nb; NumeroNatural n1; //criando objeto n1 cout<<endl<<"Informe dois números Naturais: "; cin>>n>>b; n1.atri...
12,176
https://github.com/bresheske/IRepository/blob/master/IRepository.Web/Bootstrapper.cs
Github Open Source
Open Source
Apache-2.0
2,016
IRepository
bresheske
C#
Code
63
228
using System.Web.Mvc; using Microsoft.Practices.Unity; using Unity.Mvc4; using IRepository.IOC; using IRepository.Web.Data; using IRepository.Web.Data.Repositories; using System.Data.Entity; namespace IRepository.Web { public static class Bootstrapper { public static IUnityContainer Initialise() ...
14,032
https://github.com/moretea/7c6f434c-configurations/blob/master/lang-os/rlwrap-user-shell.sh
Github Open Source
Open Source
MIT
2,019
7c6f434c-configurations
moretea
Shell
Code
47
178
#! /bin/sh touch ~/.user-lisp-shell_history history="$(mktemp ~/.user-lisp-shell_history.XXXXXXXX)" cat ~/.user-lisp-shell_history > "$history" rlwrap -C user-lisp-shell -D 2 -s 1000000 -H "$history" -f . -c -e '' -b "'\"() " -q "\"" "$@" cat "$history" >> ~/.user-lisp-shell_history cat ~/.user-lisp-shell_history | so...
51,987
https://github.com/code-witch/Playground/blob/master/app/main.js
Github Open Source
Open Source
MIT
2,020
Playground
code-witch
JavaScript
Code
81
224
// imports const { app, BrowserWindow } = require("electron"); // my constants const width = 1600; const height = 900; // window let mainWindow; // starts the window process const start = () => { mainWindow = new BrowserWindow({ title: 'Playground', backgroundColor: '#222', minHeight: hei...
22,846
https://github.com/icgrp/estream4fccm2021/blob/master/script/run_circ_buff_read_many128.sh
Github Open Source
Open Source
MIT
2,021
estream4fccm2021
icgrp
Shell
Code
7
41
#!/bin/bash -e source $1 vivado_hls -f ./estream_read/circ_buff_read_many128/script.tcl
28,976
https://github.com/Bvdldf/ABP/blob/master/libraries/jquery/ckeditor/plugins/specialchar/lang/PaxHeader/en.js
Github Open Source
Open Source
PHP-3.0, Apache-2.0, ECL-2.0
null
ABP
Bvdldf
JavaScript
Code
4
26
30 mtime=1556802548.470645719 24 SCHILY.fflags=extent
53,164
https://github.com/bellmit/dbSmellsData/blob/master/data/open-source/extracted_sql/enthought_encore.sql
Github Open Source
Open Source
MIT
2,017
dbSmellsData
bellmit
SQL
Code
51
80
select name from sqlite_master where type='table' and name=? create table %s ( key text primary key, metadata dict, created float, modified float, data blob ) create table store ( key text primary key, metadata dict, created float, modified float, data blob ) insert into store values (?, ?, ?, ?, ?)
7,051
https://github.com/Numberartificial/haskell-do-it/blob/master/src/RW/CH9/FoldDir.hs
Github Open Source
Open Source
BSD-3-Clause
2,017
haskell-do-it
Numberartificial
Haskell
Code
36
75
-- files: ch09/FoldDir.hs module FoldDir where data Iterate seed = Done {unwrap :: seed} | Skip {unwrap :: seed} | Continue {unwrap :: seed} deriving (Show) type Iterator seed = seed -> Info -> Iterate seed
41,696
https://github.com/seccoboy/football/blob/master/third_party/gfootball_engine/src/onthepitch/player/humanoid/humanoid.cpp
Github Open Source
Open Source
Apache-2.0
2,022
football
seccoboy
C++
Code
9,456
33,995
// Copyright 2019 Google LLC & Bastiaan Konings // 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 o...
31,192
https://github.com/weaviate/weaviate/blob/master/adapters/repos/db/vector/hnsw/distancer/asm/l2_inline.go
Github Open Source
Open Source
BSD-3-Clause
2,023
weaviate
weaviate
Go
Code
450
954
// _ _ // __ _____ __ ___ ___ __ _| |_ ___ // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ // \ V V / __/ (_| |\ V /| | (_| | || __/ // \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| // // Copyright © 2016 - 2023 Weaviate B.V. All rights reserved. // // CONTACT: hello@weaviate.i...
36,605
https://github.com/maggieezzat/deepspeech.pytorch/blob/master/data/common_voice/common_voice.py
Github Open Source
Open Source
MIT
2,019
deepspeech.pytorch
maggieezzat
Python
Code
359
1,528
from __future__ import print_function import os from os import listdir, remove from os.path import isfile, join import re import csv import pandas from pydub import AudioSegment import shutil import soundfile import os,sys,inspect current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) ...
36,314
https://github.com/visit-dav/visit/blob/master/src/avt/VisWindow/CMakeLists.txt
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,023
visit
visit-dav
CMake
Code
218
964
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. #**************************************************************************** # Modifications: # ...
2,167
https://github.com/longcaosecond/CBDCarSystem/blob/master/CBDCarSystem/WebContent/js/dealInfoEvent.js
Github Open Source
Open Source
MIT
2,017
CBDCarSystem
longcaosecond
JavaScript
Code
44
264
function checkNeiRong(){ var pathName = window.document.location.pathname; var projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1); var info = $("#message").val(); if(info==""){ $("#xuqiu").text("投诉内容不能为空"); $("#xuqiu").css("color","red"); return false; }els...
21,916
https://github.com/Wolfy64/myProxy/blob/master/src/helpers/crypto.ts
Github Open Source
Open Source
MIT
2,022
myProxy
Wolfy64
TypeScript
Code
22
62
import crypto from 'crypto' const hashPass = (string: string): string => { return crypto .createHash('sha256') .update(string) .digest('hex') } export { hashPass }
20,212
https://github.com/mytien0906/quanghoi-php/blob/master/libraries/config-type.php
Github Open Source
Open Source
Apache-2.0
null
quanghoi-php
mytien0906
PHP
Code
286
1,160
<?php /* Config type - Group */ $config['group'] = array( /*"Group Sản Phẩm" => array( "product" => array("san-pham"), //"tags" => array("san-pham"), //"static" => array("gioi-thieu-san-pham"), //"photo" => array("slide-product"), //"photo_stat...
50,790
https://github.com/yzhwang/gunrock/blob/master/gunrock/oprtr/AE_advance/kernel.cuh
Github Open Source
Open Source
Apache-2.0
null
gunrock
yzhwang
null
Spoken
895
3,130
// ---------------------------------------------------------------- // Gunrock -- Fast and Efficient GPU Graph Library // ---------------------------------------------------------------- // This source code is distributed under the terms of LICENSE.TXT // in the root directory of this source distribution. // ----------...
28,484
https://github.com/MrBluesman/zpi_sklep/blob/master/sklep/app/PozycjeZamowienia.php
Github Open Source
Open Source
MIT
2,017
zpi_sklep
MrBluesman
PHP
Code
44
180
<?php namespace App; use Illuminate\Database\Eloquent\Model; class PozycjeZamowienia extends Model { protected $fillable = ['ilosc','czy_fizyczna']; protected $table = 'pozycje_zamowienia'; protected $primaryKey = 'pozycjazamowieniaId'; public $timestamps = false; public function zamowienie() ...
27,872
https://github.com/ekzemplaro/data_base_language/blob/master/mssql/scala/update/Makefile
Github Open Source
Open Source
MIT, Unlicense
2,021
data_base_language
ekzemplaro
Makefile
Code
14
81
SCALA_COMMON=/var/www/data_base/common/scala_common CPX=.:$(SCALA_COMMON) mssql_update.class : mssql_update.scala scalac -cp $(CPX) mssql_update.scala -deprecation clean: rm -f *.class
9,716
https://github.com/FDMediagroep/hazelcast/blob/master/hazelcast-client/src/test/java/com/hazelcast/client/standalone/model/MyPortableElement.java
Github Open Source
Open Source
Apache-2.0
2,021
hazelcast
FDMediagroep
Java
Code
309
742
/* * Copyright (c) 2008-2018, Hazelcast, Inc. 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 ...
28,156
https://github.com/AO-StreetArt/AOSharedServiceLibrary/blob/master/aossl/logging/logging_test.properties
Github Open Source
Open Source
MIT
2,018
AOSharedServiceLibrary
AO-StreetArt
null
Spoken
41
476
#log4cpp.properties log4cpp.rootCategory=ERROR, rootAppender log4cpp.category.secondary=ERROR, A1, A2 log4cpp.category.secondary.sub1=ERROR, A3 log4cpp.category.tertiary=ERROR, A4 log4cpp.appender.rootAppender=ConsoleAppender log4cpp.appender.rootAppender.layout=PatternLayout log4cpp.appender.rootAppender.layout.Conv...
25,628
https://github.com/CarbonLDP/carbonldp-ts-docs-engine/blob/master/src/dgeni/rendering/filters/nullifyEmpty.ts
Github Open Source
Open Source
IJG, FSFAP
2,019
carbonldp-ts-docs-engine
CarbonLDP
TypeScript
Code
44
105
import { Filter } from "./Filter"; export function nullifyEmptyFilter():Filter { return { name: "nullifyEmpty", process( array:unknown[] ):unknown[] | null { if( !array ) return null; array = array.filter( x => x ); if( array.length === 0 ) return null; return array; }, }; }
10,837
https://github.com/tijko/IO-Mon/blob/master/iomon.py
Github Open Source
Open Source
MIT
2,015
IO-Mon
tijko
Python
Code
121
405
#!/usr/bin/env python import os import sys from gi.repository import GObject from lib.io_object import IoMonitor class InitIoMon(object): ''' Initializing class for IO-Mon that creates the main instance of IoMonitor (the dbus object to export). Inside the IoMonitor instance the DBusGMainLoop is ca...
12,260
https://github.com/diorz38/LaraTabler/blob/master/app/Models/Project.php
Github Open Source
Open Source
MIT
null
LaraTabler
diorz38
PHP
Code
153
628
<?php namespace App\Models; use App\Traits\WithWhereHas; use Illuminate\Database\Eloquent\Model; class Project extends Model { use WithWhereHas; protected $table = 'projects'; protected $guarded = ['id','created_at', 'updated_at']; protected $casts = [ 'is_kab' => 'boolean', 'is_indiv...
52,978
https://github.com/daffupman/general-mapper-guide/blob/master/starter/src/main/java/io/daff/general/service/EmployeeService.java
Github Open Source
Open Source
Apache-2.0
null
general-mapper-guide
daffupman
Java
Code
126
490
package io.daff.general.service; import io.daff.general.entity.Employee; import io.daff.general.mapper.EmployeeMapper; import org.apache.ibatis.session.RowBounds; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import tk.mybatis.mapper.entity.Example; impo...
33,201
https://github.com/tt-driver-apps/nlf/blob/master/lib/compare-module-names.js
Github Open Source
Open Source
MIT
2,022
nlf
tt-driver-apps
JavaScript
Code
114
237
/** * @description Compare two modules for name and semver * * @author Ian Kelly * @copyright Copyright (C) Ian Kelly 2016 * * @license The MIT License */ 'use strict'; var compareVersions = require('compare-versions'); /** * Compare name and semver of two modules, returning -1 * if the name of the first i...
26,784
https://github.com/JasonLeeCoding/nussknacker/blob/master/ui/client/containers/admin/CancelIcon.tsx
Github Open Source
Open Source
Apache-2.0
null
nussknacker
JasonLeeCoding
TypeScript
Code
80
263
import React, {useCallback} from "react" import {Glyphicon} from "react-bootstrap" import {useDispatch} from "react-redux" import {toggleConfirmDialog} from "../../actions/nk" import * as DialogMessages from "../../common/DialogMessages" import ProcessStateUtils from "../../components/Process/ProcessStateUtils" import ...
49,642
https://github.com/cwoac/StlVault/blob/master/Assets/Scripts/Util/Unity/WrapGroup.cs
Github Open Source
Open Source
MIT
2,022
StlVault
cwoac
C#
Code
327
944
using UnityEngine; using UnityEngine.UI; namespace StlVault.Util.Unity { public class WrapGroup : LayoutGroup { private static class Axis { public const int X = 0; public const int Y = 1; } [SerializeField] protected float _spacing = 0; /// <sum...
49,116
https://github.com/feedhenry/fh-sync/blob/master/integration/test_mongodbQueue.js
Github Open Source
Open Source
Apache-2.0
2,020
fh-sync
feedhenry
JavaScript
Code
171
649
var MongodbQueue = require('../lib/mongodbQueue'); var metrics = require('../lib/sync-metrics').init({}, null); var async = require('async'); var assert = require('assert'); var helper = require('./helper'); var lockModule = require('../lib/lock'); var queueName = 'test_mongodb_queue'; var mongoDBUrl = 'mongodb://127....
26,951
https://github.com/beer-club/beerClub/blob/master/models/suplier.js
Github Open Source
Open Source
MIT
null
beerClub
beer-club
JavaScript
Code
77
299
const { Model } = require('sequelize'); module.exports = (sequelize, DataTypes) => { const Suplier = sequelize.define('Suplier', { cnpj: { type: DataTypes.STRING(14), primaryKey: true, allowNull: false, unique: true, }, companyName: { type: DataTypes.STRING, allowNull:...
34,805
https://github.com/MassTransit/MassTransit/blob/master/src/MassTransit/Testing/Implementations/IBusActivityMonitor.cs
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-free-unknown
2,023
MassTransit
MassTransit
C#
Code
40
124
namespace MassTransit.Testing.Implementations { using System; using System.Threading; using System.Threading.Tasks; /// <summary> /// Represents a monitor for bus activity, allowing awaiting an inactive bus state. /// </summary> public interface IBusActivityMonitor { Task Await...
16,133
https://github.com/Alex2point0/usertracking/blob/master/manage/js/modify-status.js
Github Open Source
Open Source
MIT
2,020
usertracking
Alex2point0
JavaScript
Code
142
433
$(document).ready(function () { // Submit del Form $("#edit-status-form").on("submit", function (e) { e.preventDefault(); var id = $(this).attr("data-id"); var oldStatus = $(this).attr("data-oldstatus"); var form = $(this); const url = "actions/modify-status.php"; // alert(form.serialize()...
43,094
https://github.com/ronnywang/twbudget/blob/master/Makefile
Github Open Source
Open Source
CC-BY-3.0, Apache-2.0
2,021
twbudget
ronnywang
Makefile
Code
35
154
JS_FILES=server/app.js server/main.js server/auth.js server/opengraph.js lib/user.js lib/schema.js .ls.js: env PATH="$$PATH:./node_modules/LiveScript/bin" livescript -c $< server :: $(JS_FILES) clean-server: rm -f $(JS_FILES) client :: env PATH="$$PATH:./node_modules/brunch/bin" brunch b run :: server node ser...
35,718