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/MarkyC/ApplicationCenter/blob/master/ApplicationCenter/src/com/github/markyc/applicationcenter/ApplicationCenter.java
Github Open Source
Open Source
Apache-2.0
2,017
ApplicationCenter
MarkyC
Java
Code
245
884
/* Marco Cirillo 210272037 */ package com.github.markyc.applicationcenter; import java.awt.BorderLayout; import java.awt.CardLayout; import java.awt.HeadlessException; import javax.swing.JApplet; import javax.swing.JPanel; import javax.swing.UIManager; import javax.swing.event.ChangeEvent; import javax.swing.event.C...
15,965
https://github.com/horitaku1124/spring_sample/blob/master/SpringWebSample1/src/main/java/com/example/repositories/SampleTableRepository.java
Github Open Source
Open Source
MIT
null
spring_sample
horitaku1124
Java
Code
16
76
package com.example.repositories; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.example.entities.SampleTableEntity; @Repository public interface SampleTableRepository extends JpaRepository<SampleTableEntity, Long> {}
17,135
https://github.com/ford442/oglplu2/blob/master/example/application/031_tessellation/tes_eval.glsl
Github Open Source
Open Source
BSL-1.0
2,022
oglplu2
ford442
GLSL
Code
93
334
#version 400 layout(triangles, equal_spacing, ccw) in; layout (std140) uniform OffsetBlock { vec4 offset[16*16*16]; }; uniform mat4 CameraMatrix; in vec3 tecoPosition[]; flat in int tecoInstanceId[]; out vec3 teevNormal; out vec3 teevColor; flat out int teevInstanceId; void main() { vec3 p0 = gl_TessCoord.x *...
46,056
https://github.com/wdonovanseid/rpg-game/blob/master/src/main.js
Github Open Source
Open Source
MIT
2,020
rpg-game
wdonovanseid
JavaScript
Code
168
733
import $ from 'jquery'; import 'bootstrap'; import 'bootstrap/dist/css/bootstrap.min.css'; import './css/styles.css'; import {allMonsters} from './js/monster-logic.js'; import Character from './js/character-logic'; import { Battle } from './js/battle-logic'; function displayStats() { $("#char-name").text(protag.name...
10,271
https://github.com/simasware/loja-discos/blob/master/src/app.module.ts
Github Open Source
Open Source
MIT
null
loja-discos
simasware
TypeScript
Code
83
253
import { Module } from '@nestjs/common'; import { ConfigModule } from '@nestjs/config'; import { TypeOrmModule } from '@nestjs/typeorm'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { ArtistasEntity } from './database/entities/ArtistasEntity'; import { DiscosEntit...
4,199
https://github.com/SaljuRealmNetwork/saljurealm-bot/blob/master/commands/ban.js
Github Open Source
Open Source
MIT
null
saljurealm-bot
SaljuRealmNetwork
JavaScript
Code
237
860
const { MessageEmbed } = require('discord.js'); module.exports = { name: "ban", description: "Larang pengguna yang disebutkan.", async execute(message, args) { let reason = args.slice(1).join(' '); let user = message.mentions.users.first(); if (!message.member.hasPermission("BAN_MEMBERS")) return mes...
32,162
https://github.com/gcatanese/adyen-web/blob/master/packages/lib/src/components/Pix/PixInput/validate.ts
Github Open Source
Open Source
MIT
null
adyen-web
gcatanese
TypeScript
Code
41
118
import { ValidatorRules } from '../../../utils/Validator/types'; import validateSSN from '../../internal/SocialSecurityNumberBrazil/validate'; export const pixValidationRules: ValidatorRules = { socialSecurityNumber: { validate: validateSSN, errorMessage: '', modes: ['blur'] }, defa...
19,128
https://github.com/sidd3sh/Project-Management-Tool/blob/master/src/main/java/org/sid/tool/customexception/MilestoneNotFoundExcpetion.java
Github Open Source
Open Source
Apache-2.0
2,020
Project-Management-Tool
sidd3sh
Java
Code
40
114
package org.sid.tool.customexception; /** * Custom exception if milestone not found * * @author siddesh * @since 12/Jan/2020 */ public class MilestoneNotFoundExcpetion extends RuntimeException { public MilestoneNotFoundExcpetion(String message) { super(message); } public MilestoneNotFoundExcp...
22,873
https://github.com/packadic/theme/blob/master/src/scripts/theme/editor.js
Github Open Source
Open Source
MIT
null
theme
packadic
JavaScript
Code
13
46
require([ 'jquery', '../fn/defined', '../fn/default', '../fn/cre' ], function($, defined, def, cre){ "use strict"; });
35,633
https://github.com/pono/egeria-connector-ibm-information-server/blob/master/igc-clientlibrary/src/main/java/org/odpi/egeria/connectors/ibm/igc/clientlibrary/model/generated/v11701/JobStageParameters.java
Github Open Source
Open Source
Apache-2.0
null
egeria-connector-ibm-information-server
pono
Java
Code
974
2,874
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.egeria.connectors.ibm.igc.clientlibrary.model.generated.v11701; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonTypeName; import javax.annotation...
30,968
https://github.com/Don734/testapp/blob/master/resources/scss/includes/modules/profile.sass
Github Open Source
Open Source
MIT
null
testapp
Don734
Sass
Code
250
949
.wrapper display: flex flex-flow: row wrap justify-content: center margin-top: 40px .avatar-block display: flex flex-direction: column justify-content: center align-items: center max-width: 460px width: 100% height: 620px margin-bott...
34,675
https://github.com/glooko/mongoid-embedded-errors/blob/master/lib/mongoid/embedded_errors/version.rb
Github Open Source
Open Source
MIT
2,022
mongoid-embedded-errors
glooko
Ruby
Code
12
40
# frozen_string_literal: true module Mongoid; end module Mongoid::EmbeddedErrors VERSION = '4.0.0' end
18,950
https://github.com/lovelycheng/fantasy-apidoc/blob/master/apidoc/src/main/java/tech/fantasy/apidoc/annotations/AppInfo.java
Github Open Source
Open Source
MIT
null
fantasy-apidoc
lovelycheng
Java
Code
45
179
package tech.fantasy.apidoc.annotations; import org.springframework.context.annotation.Import; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * @author chengtong * @date 2019-09-08 11:01 */ @Reten...
46,961
https://github.com/david-bouyssie/ThermoRawFileParser/blob/master/Writer/MgfSpectrumWriter.cs
Github Open Source
Open Source
Apache-2.0
null
ThermoRawFileParser
david-bouyssie
C#
Code
518
1,736
using System; using System.Globalization; using System.Reflection; using log4net; using ThermoFisher.CommonCore.Data.Business; using ThermoFisher.CommonCore.Data.FilterEnums; using ThermoFisher.CommonCore.Data.Interfaces; namespace ThermoRawFileParser.Writer { public class MgfSpectrumWriter : SpectrumWriter {...
1,482
https://github.com/JingMeng/Mart-Android/blob/master/app/src/main/java/net/coding/mart/json/mpay/FreezeDynamiicPager.java
Github Open Source
Open Source
MIT
2,021
Mart-Android
JingMeng
Java
Code
46
180
package net.coding.mart.json.mpay; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import net.coding.mart.json.BaseHttpPagerResult; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * Created by chenchao on 16/9/1. */ public class Fre...
11,387
https://github.com/alexs20/SimpleSecretStorage/blob/master/app/src/main/java/com/wolandsoft/sss/activity/fragment/PinFragment.java
Github Open Source
Open Source
Apache-2.0
2,017
SimpleSecretStorage
alexs20
Java
Code
671
2,458
/* Copyright 2016, 2017 Alexander Shulgin 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...
24,027
https://github.com/ravinder2016/testing-junit5-mockito/blob/master/src/test/java/guru/springframework/sfgpetclinic/controllers/OwnerControllerTest.java
Github Open Source
Open Source
Apache-2.0
null
testing-junit5-mockito
ravinder2016
Java
Code
203
1,014
package guru.springframework.sfgpetclinic.controllers; import guru.springframework.sfgpetclinic.fauxspring.BindingResult; import guru.springframework.sfgpetclinic.model.Owner; import guru.springframework.sfgpetclinic.services.OwnerService; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; imp...
24,834
https://github.com/bwlang/galaxy/blob/master/client/galaxy/scripts/store/index.js
Github Open Source
Open Source
CC-BY-2.5, AFL-2.1, AFL-3.0, CC-BY-3.0, LicenseRef-scancode-unknown-license-reference
2,019
galaxy
bwlang
JavaScript
Code
53
146
/** * Central Vuex store */ import Vue from "vue"; import Vuex from "vuex"; import createCache from "vuex-cache"; import { gridSearchStore } from "./gridSearchStore"; import { tagStore } from "./tagStore"; import { jobMetricsStore } from "./jobMetricsStore"; Vue.use(Vuex); export default new Vuex.Store({ plug...
45,915
https://github.com/davidmz/rollup-plugin-papaparse/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,021
rollup-plugin-papaparse
davidmz
Ignore List
Code
4
15
node_modules dist .vscode .yarn
46,957
https://github.com/alessandrosimi/serverless-chat/blob/master/src/main/scala/com/serverless/ApiGatewayRequest.scala
Github Open Source
Open Source
Apache-2.0
null
serverless-chat
alessandrosimi
Scala
Code
114
353
package com.serverless import java.util import scala.beans.BeanProperty class ApiGatewayRequest(@BeanProperty var resource: String, @BeanProperty var path: String, @BeanProperty var httpMethod: String, @BeanProperty var headers: util.Map[String,...
18,228
https://github.com/s-a-nersisyan/ExhauFS/blob/master/src/core/base/feature_selector.py
Github Open Source
Open Source
MIT
2,022
ExhauFS
s-a-nersisyan
Python
Code
95
442
from src.core.classification.feature_selectors import l1_logistic_regression from src.core.regression.feature_selectors import l1_cox class FeatureSelector: def __init__(self, df, ann, output_dir, selector_function, kwargs): self.df = df self.ann = ann self.output_dir = output_dir ...
17,195
https://github.com/petergyorgy/virtue/blob/master/linux/userspace/fluent-node/plugin/in_maven.rb
Github Open Source
Open Source
BSD-3-Clause
null
virtue
petergyorgy
Ruby
Code
427
1,146
require 'fluent/input' require 'time' =begin This is a fluent input module Steps to install and use: 1. Install fluent using rubygems 'gem install fluentd' Also install the s3 plugin with 'gem install fluent-plugin-s3' 2. Place this file in the plugins directory /etc/fluentd/plugins/ 3. Edit the /etc/fluentd/fluentd....
17,513
https://github.com/Lutzy/LoopHeroThicketSolver/blob/master/src/com/lutzy/loophero/solver/Solution.java
Github Open Source
Open Source
Apache-2.0
2,021
LoopHeroThicketSolver
Lutzy
Java
Code
85
231
package com.lutzy.loophero.solver; public class Solution implements Comparable<Solution>{ private Board board; private int score; public Solution(Board board, int score) { super(); this.board = board; this.score = score; } public Board getBoard() { return board; } public void setBoard(Board board) {...
32,878
https://github.com/mzbrau/fig/blob/master/src/api/Fig.Api/Encryption/ICertificateStore.cs
Github Open Source
Open Source
Apache-2.0
2,022
fig
mzbrau
C#
Code
15
65
using System.Security.Cryptography.X509Certificates; namespace Fig.Api.Encryption; public interface ICertificateStore { X509Certificate2? GetCertificate(string thumbprint); void SaveCertificate(X509Certificate2 certificate); }
15,813
https://github.com/Yonom/react-native-paypal/blob/master/exampleServer/server.js
Github Open Source
Open Source
MIT
2,022
react-native-paypal
Yonom
JavaScript
Code
135
467
const http = require('http'); const braintree = require("braintree"); const config = require('./config') const hostname = '127.0.0.1'; const port = 3000; const gateway = new braintree.BraintreeGateway(config); const server = http.createServer((req, res) => { switch (req.url) { case "/token": ...
18,196
https://github.com/fptavares/record-scrobbler/blob/master/web-app/src/components/SessionWidget.js
Github Open Source
Open Source
MIT
2,020
record-scrobbler
fptavares
JavaScript
Code
240
941
import React from 'react'; import { Link } from 'react-router-dom'; import { createFragmentContainer, graphql, } from 'react-relay'; import config from '../config'; import Scrobble from '../mutations/Scrobble'; import FunctionLink from './FunctionLink'; import './SessionWidget.css'; class SessionWidget extends Rea...
23,516
https://github.com/mohammadne/algorithms/blob/master/challanges/cafe_bazar/part_1/sample/1/main.go
Github Open Source
Open Source
MIT
2,021
algorithms
mohammadne
Go
Code
36
110
package main import ( "fmt" "strings" ) func main() { var a int fmt.Scan(&a) var sb strings.Builder for index := 0; index < a; index++ { sb.WriteString("man khoshghlab hastam\n") } o := strings.Trim(sb.String(), "\n") fmt.Print(o) }
11,092
https://github.com/anranos/PodNewTest/blob/master/PodNewTest.podspec
Github Open Source
Open Source
MIT
null
PodNewTest
anranos
Ruby
Code
54
215
Pod::Spec.new do |s| s.name = "PodNewTest" s.version = "0.0.1" s.summary = "a test for Pod" #s.description = "pod 测试" s.homepage = "https://github.com/anranos/PodNewTest" s.license = "MIT" s.author = {"yongche" => "anranos0623@gmail.com.com" } s.requires_arc = true s.platform ...
16,512
https://github.com/rajangdavis/osc_python/blob/master/osvc_python/test_osvc_python_client.py
Github Open Source
Open Source
MIT
2,021
osc_python
rajangdavis
Python
Code
70
674
import unittest from .osvc_python_client import OSvCPythonClient from . import env class TestOSvCPythonClient(unittest.TestCase): def setUp(self): self.rn_client = OSvCPythonClient( username=env('OSVC_ADMIN'), password=env('OSVC_PASSWORD'), interface=env('OSVC_SITE') ) self.rn_client_newer = OSvCPy...
28,308
https://github.com/alldatacenter/alldata/blob/master/govern/data-meta/amundsen/frontend/amundsen_application/static/js/components/ToggleSwitch/index.spec.tsx
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, MIT
2,023
alldata
alldatacenter
TSX
Code
124
332
// Copyright Contributors to the Amundsen project. // SPDX-License-Identifier: Apache-2.0 import * as React from 'react'; import { mount } from 'enzyme'; import Switch from 'react-switch'; import ToggleSwitch, { ToggleSwitchProps } from './ToggleSwitch'; const setup = (propOverrides?: Partial<ToggleSwitchProps>) =>...
39,317
https://github.com/zmyer/JGroups/blob/master/src/org/jgroups/protocols/MPING.java
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,017
JGroups
zmyer
Java
Code
1,102
3,457
package org.jgroups.protocols; import java.io.DataInput; import java.io.IOException; import java.net.DatagramPacket; import java.net.Inet4Address; import java.net.Inet6Address; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.MulticastSocket; import java.net.NetworkInterface; import java...
35,817
https://github.com/cckmit/hfut-exp-archived/blob/master/Assembly_exp/exp2/2-4.ASM
Github Open Source
Open Source
BSD-2-Clause
2,020
hfut-exp-archived
cckmit
Assembly
Code
184
832
; 4、从键盘读入一个字符串,以Enter结束,字符串不超过50个字符, ;并打印该字符串;查找中间是否有‘masm’子串。如果有,输出‘Yes’; ;否则,输出‘No’)。 ; - 查找中间是否有‘masm’子串 ; + 查找中间是否有‘WZX’子串 DATA SEGMENT BUFFER DB 50 ;定义缓冲区长度 DB ? ;输入完成自动获取字符个数 DB 50 DUP(?) CR DB 0DH,0AH,'$' STRING DB 'WZX$' ...
9,902
https://github.com/Rekamy/apigenerator/blob/master/src/templates/backend/HasAuditorRelations.blade.php
Github Open Source
Open Source
MIT
2,021
apigenerator
Rekamy
PHP
Code
33
135
<?="<?php namespace App\Contracts\Bloc\Concerns; trait HasAuditorRelations { public function author() { return \$this->belongsTo(User::class, 'created_by'); } public function editor() { return \$this->belongsTo(User::class, 'updated_by'); } public function deletedBy() ...
29,013
https://github.com/vaishali2510/welcome/blob/master/greeter/people.py
Github Open Source
Open Source
MIT
null
welcome
vaishali2510
Python
Code
76
241
""" A list of students partipating to the class. """ from dataclasses import dataclass from datetime import date from typing import Dict, List @dataclass class Person: """ A representation of a person. """ name: str lastname: str date_of_birth: date educational_history: List[str] skill...
23,292
https://github.com/exegeses/laravel-42140/blob/master/agencia/resources/views/proceso.blade.php
Github Open Source
Open Source
CC0-1.0
2,020
laravel-42140
exegeses
PHP
Code
62
362
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" hre...
20,829
https://github.com/googleinterns/noms/blob/master/src/main/java/com/google/sps/servlets/DailyDigestServlet.java
Github Open Source
Open Source
Apache-2.0
2,021
noms
googleinterns
Java
Code
496
1,498
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
8,742
https://github.com/AoEiuV020/chatroom/blob/master/chatroom/user/Command.java
Github Open Source
Open Source
MIT
null
chatroom
AoEiuV020
Java
Code
254
1,533
/* *************************************************** ^> File Name: Command.java ^> Author: AoEiuV020 ^> Mail: 490674483@qq.com ^> Created Time: 2016/03/07 - 16:19:03 *************************************************** */ package chatroom.user; import chatroom.log.Logger; import java.util.Arrays; import java.io.Ch...
25,720
https://github.com/nicholas-b-carter/flowgen-rip/blob/master/src/cli/beautifier.js
Github Open Source
Open Source
MIT
null
flowgen-rip
nicholas-b-carter
JavaScript
Code
55
155
/* @flow */ import { js_beautify } from 'js-beautify'; export default function beautify(str: string) { const formatted: string = js_beautify(str); // no idea how to disable this correction in js-beautify const corrected = formatted.split(' ? : ').join('?: ') // .split('(\n ...
25,108
https://github.com/silicon-beach/news-in-short/blob/master/DataExtractor/article_extractor.py
Github Open Source
Open Source
MIT
2,017
news-in-short
silicon-beach
Python
Code
368
1,340
# encoding: utf-8 from __future__ import unicode_literals import csv import urllib2 import re import os, sys from time import time import goose from goose import Goose import boto import smart_open import boto.s3.connection from multiprocessing import Pool from uuid import getnode as get_mac print "------------------...
1,371
https://github.com/RishiKumarRay/UhooiPicBook/blob/master/Sources/Logger/Logger.swift
Github Open Source
Open Source
MIT
null
UhooiPicBook
RishiKumarRay
Swift
Code
420
1,027
// // Logger.swift // UhooiPicBook // // Created by uhooi on 2021/12/30. // import Foundation import os.log public enum LogCategory: String { case `default` } /// @mockable public protocol LoggerProtocol { func debug(_ message: String, file: String, function: String, line: Int, column: Int) func info(...
20,475
https://github.com/teliten/teliten.github-io/blob/master/lists/phplist-3.2.6/public_html/lists/admin/locale/hu/pagetitles.php
Github Open Source
Open Source
ZPL-1.1
null
teliten.github-io
teliten
PHP
Code
334
1,249
<?php switch ($page) { case 'home': $page_title = 'Adminisztráció főlap';break; case 'setup': $page_title = 'Beállítási lehetőségek';break; case 'about': $page_title = 'A '.NAME.' névjegye';break; case 'attributes': $page_title = 'Tulajdonságok beállítása';break; case 'stresstest': $page_title = 'Terhelési pr...
31,690
https://github.com/halster/js-beatles-loops-lab-bootcamp-prep-000/blob/master/index.js
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,017
js-beatles-loops-lab-bootcamp-prep-000
halster
JavaScript
Code
59
205
function theBeatlesPlay(musicians, instruments){ var myArray=new Array() for (var i=0; i<musicians.length; i++){ myArray.push(musicians[i] + ` plays ` +instruments[i] ) } return myArray; } function johnLennonFacts(facts){ var i = 0 var newArray=[] while (i<facts.length){ newArray.push(facts[i] +"!!!"...
15,149
https://github.com/telefonicaid/netphony-gmpls-emulator/blob/master/src/main/java/es/tid/emulator/node/tedb/SimpleLocalTEDB.java
Github Open Source
Open Source
Apache-2.0
2,017
netphony-gmpls-emulator
telefonicaid
Java
Code
591
2,652
package es.tid.emulator.node.tedb; import java.util.Iterator; import java.util.Set; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.jgrapht.graph.SimpleDirectedWeightedGraph; import es.tid.ospf.ospfv2.lsa.tlv...
14,981
https://github.com/uhcommunity/Community/blob/master/app/imports/api/base/BaseUtilities.js
Github Open Source
Open Source
Apache-2.0
null
Community
uhcommunity
JavaScript
Code
33
115
import { Profiles } from '/imports/api/profile/ProfileCollection'; import { Interests } from '/imports/api/interest/InterestCollection'; import { Clubs } from '/imports/api/club/ClubCollection'; import { Comments } from '/imports/api/comment/CommentCollection'; export function removeAllEntities() { Profiles.removeAl...
27,596
https://github.com/lushen124/Universal-FE-Randomizer/blob/master/Universal FE Randomizer/src/fedata/gba/fe6/FE6ChapterUnit.java
Github Open Source
Open Source
MIT
2,023
Universal-FE-Randomizer
lushen124
Java
Code
181
520
package fedata.gba.fe6; import fedata.gba.GBAFEChapterUnitData; public class FE6ChapterUnit extends GBAFEChapterUnitData { public FE6ChapterUnit(byte[] data, long originalOffset) { super(); this.originalData = data; this.data = data; this.originalOffset = originalOffset; } @Override public void setAIToHe...
33,206
https://github.com/Neiko2002/datakernel/blob/master/eventloop/src/test/java/io/datakernel/bytebuf/ByteBufTest.java
Github Open Source
Open Source
Apache-2.0
2,016
datakernel
Neiko2002
Java
Code
542
2,218
package io.datakernel.bytebuf; import io.datakernel.util.ByteBufStrings; import org.junit.Before; import org.junit.Test; import java.nio.ByteBuffer; import java.util.Arrays; import static io.datakernel.bytebuf.ByteBufPool.*; import static org.junit.Assert.*; public class ByteBufTest { private static final byte[] B...
6,125
https://github.com/YunLemon/j360-boot-app-all/blob/master/j360-disboot-biz-sjdbc/src/main/java/me/j360/disboot/biz/rocketmq/TxListener.java
Github Open Source
Open Source
Apache-2.0
2,021
j360-boot-app-all
YunLemon
Java
Code
62
238
package me.j360.disboot.biz.rocketmq; import org.apache.rocketmq.client.producer.LocalTransactionState; import org.apache.rocketmq.client.producer.TransactionListener; import org.apache.rocketmq.common.message.Message; import org.apache.rocketmq.common.message.MessageExt; /** * @author: min_xu * @date: 2019/1/3 3:0...
25,867
https://github.com/kkaraivanov/CCharpAdvanced/blob/master/OOP/EncapsulationExercise/PizzaCalories/Model/Pizza.cs
Github Open Source
Open Source
MIT
null
CCharpAdvanced
kkaraivanov
C#
Code
80
255
namespace PizzaCalories.Model { using System.Collections.Generic; using System.Linq; using Common; public class Pizza { private string name; private Dough dough; private List<Topping> toppings; public string Name { get => name; priva...
4,215
https://github.com/Okrio/Beamforming-Graduation-Project/blob/master/10 - Code/03 - Beamforming/BeamformGUI_v0.1/rec2file.m
Github Open Source
Open Source
MIT
2,016
Beamforming-Graduation-Project
Okrio
MATLAB
Code
124
420
classdef rec2file %% Rec2file Class % Class to record audio samples to file as .mat or .wav (or others) %% Example: % obj1 = rec2file % obj1.save([1,2,3,4],1) %% %% Properties properties FileName % Name of the audio file to save inclu...
29,554
https://github.com/gzigzigzeo/protobuf-as/blob/master/src/proto/named_descriptor_index_reducer.ts
Github Open Source
Open Source
Apache-2.0
2,022
protobuf-as
gzigzigzeo
TypeScript
Code
502
1,311
import { WeightMap, ImmutableFlatTree } from '../structs/index.js'; import * as named from './named_descriptor.js'; /** * Performs tree-shaking of the named descriptor index. * Removes unused descriptors. Removes explicitly requested descriptors. Performs integritiy check. */ export class NamedDescriptorIndexReduc...
10,145
https://github.com/tvamsisai/MyFeed/blob/master/vendor/desarrolla2/cache/src/Desarrolla2/Cache/Adapter/MySQL.php
Github Open Source
Open Source
MIT
2,014
MyFeed
tvamsisai
PHP
Code
432
1,190
<?php /** * This file is part of the Cache project. * * Copyright (c) * Daniel González <daniel.gonzalez@freelancemadrid.es> * * This source file is subject to the MIT license that is bundled * with this package in the file LICENSE. */ namespace Desarrolla2\Cache\Adapter; use Desarrolla2\Cache\Adapter\Adapte...
35,069
https://github.com/haipeng0720/zhumeng/blob/master/src/api/system/role.js
Github Open Source
Open Source
Apache-2.0
null
zhumeng
haipeng0720
JavaScript
Code
103
280
import request from '@/utils/request' export function add(data) { return request({ url: '/role', method: 'post', data }) } export function del(id) { return request({ url: '/role', method: 'delete', data: { 'roleId': id } }) } export function edit(data) { return request({ ...
32,433
https://github.com/bryanwills/redux-devtools/blob/master/packages/redux-devtools-rtk-query-monitor/src/components/SortOrderButton.tsx
Github Open Source
Open Source
MIT
2,018
redux-devtools
bryanwills
TypeScript
Code
108
342
import React, { CSSProperties } from 'react'; import { ArrowUpIcon } from './ArrowUpIcon'; import { StyleUtilsContext } from '../styles/createStylingFromTheme'; export interface SortOrderButtonProps { readonly isAsc?: boolean; readonly onChange: (isAsc: boolean) => void; id?: string; } export function SortOrder...
18,203
https://github.com/jbondc/TypeScript/blob/master/tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.ts
Github Open Source
Open Source
Apache-2.0
2,021
TypeScript
jbondc
TypeScript
Code
100
320
// @target: es5 // @module: commonjs // @declaration: true // @filename: es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0.ts var a = 10; export default a; // @filename: es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs...
6,005
https://github.com/chinafanxiaohui/osharp/blob/master/tests/web/ui/ng-alain7/src/app/shared/osharp/components/kendoui-treeview.component.ts
Github Open Source
Open Source
MIT, Apache-2.0
2,019
osharp
chinafanxiaohui
TypeScript
Code
54
234
import { Component, OnInit, Input, ElementRef, Output, EventEmitter } from '@angular/core'; @Component({ selector: 'kendoui-treeview', template: `<div><ng-content></ng-content></div>` }) export class KendouiTreeviewComponent implements OnInit { @Input() options: kendo.ui.TreeViewOptions; @Output() init: Even...
18,643
https://github.com/clairejrlin/stanCode_projects/blob/master/stanCode_Projects/hangman_game/hangman.py
Github Open Source
Open Source
MIT
null
stanCode_projects
clairejrlin
Python
Code
1,299
2,943
""" File: hangman.py Name:Claire Lin ----------------------------- This program plays hangman game. Users sees a dashed word, trying to correctly figure the un-dashed word out by inputting one character each round. If the user input is correct, show the updated word on console. Players have N_TURNS chances to try and w...
7,439
https://github.com/d0scoo1/naga_contracts/blob/master/mainnet/contracts/0x5c0D928A3d86766E6c2Ca7378ABE76e7b2fF1028_FundraisingController/contracts/FundraisingController.sol
Github Open Source
Open Source
MIT
2,023
naga_contracts
d0scoo1
Gerber Image
Code
1,214
2,931
pragma solidity ^0.6.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./BatchedBancorMarketMaker.sol"; import "./interfaces/ITap.sol"; import "./interfaces/IFundraisingController.sol"; contract ...
21,798
https://github.com/Marcus-Smallman/csharp-netcore/blob/master/src/OpenTracing.Contrib.NetCore/AspNetCore/AspNetCoreDiagnosticOptions.cs
Github Open Source
Open Source
Apache-2.0
2,020
csharp-netcore
Marcus-Smallman
C#
Code
20
70
using OpenTracing.Contrib.NetCore.AspNetCore; namespace OpenTracing.Contrib.NetCore.Configuration { public class AspNetCoreDiagnosticOptions { public HostingOptions Hosting { get; } = new HostingOptions(); } }
17,122
https://github.com/blueshed/blueshed-micro/blob/master/blueshed/micro/utils/executor.py
Github Open Source
Open Source
MIT
2,016
blueshed-micro
blueshed
Python
Code
211
754
from blueshed.micro.utils import resources from tornado.concurrent import Future from tornado.ioloop import IOLoop from tornado.autoreload import add_reload_hook from functools import wraps import logging import os import inspect from concurrent.futures.process import ProcessPoolExecutor LOGGER = logging.getLogger(__...
40,625
https://github.com/AndrusJakobson/wizardry-beans/blob/master/src/main/java/com/example/demo/models/player/Player.java
Github Open Source
Open Source
MIT
null
wizardry-beans
AndrusJakobson
Java
Code
209
705
package com.example.demo.models.player; import com.example.demo.models.common.Direction; import com.example.demo.models.maze.MazeBlock; import com.example.demo.models.ghost.Ghost; import org.springframework.web.socket.TextMessage; import org.springframework.web.socket.WebSocketSession; import java.io.IOException; imp...
19,873
https://github.com/vcellmike/Biosimulators_VCell/blob/master/vcell-core/src/main/java/org/vcell/vmicro/workflow/data/RefSimOptModel.java
Github Open Source
Open Source
MIT
2,022
Biosimulators_VCell
vcellmike
Java
Code
292
983
package org.vcell.vmicro.workflow.data; import cbit.vcell.opt.Parameter; public abstract class RefSimOptModel extends OptModel{ private static double epsilon = 1e-8; private double[][] refData = null; private double[] refTimePoints = null; private double refDiffusionRate = 0; public RefSimOptModel(String name...
25,323
https://github.com/uk-gov-mirror/hmrc.api-subscription-fields/blob/master/test/uk/gov/hmrc/apisubscriptionfields/repository/SubscriptionFieldsRepositorySpec.scala
Github Open Source
Open Source
Apache-2.0
2,021
hmrc.api-subscription-fields
uk-gov-mirror
Scala
Code
767
2,546
/* * Copyright 2021 HM Revenue & Customs * * 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 a...
7,827
https://github.com/fengjixuchui/hydra/blob/master/src/fs/xfs/xfsprogs-dev/include/darwin.h
Github Open Source
Open Source
MIT
2,022
hydra
fengjixuchui
C
Code
1,022
3,100
/* * Copyright (c) 2004-2006 Silicon Graphics, Inc. * All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation. * * This program is distributed in the hope that it wo...
33,835
https://github.com/ga-explorer/NumericalGeometryLib/blob/master/DataStructuresLib/DataStructuresLib/Collections/PeriodicLists/ProListStoredValues.cs
Github Open Source
Open Source
MIT
2,021
NumericalGeometryLib
ga-explorer
C#
Code
58
244
using System.Collections; using System.Collections.Generic; using System.Diagnostics; using DataStructuresLib.Basic; namespace DataStructuresLib.Collections.PeriodicLists { public class ProListStoredValues<TValue> : IPeriodicReadOnlyList<TValue> { private readonly TValue[] _valuesArray; ...
18,660
https://github.com/alexeymenkov/SupervisorBundle/blob/master/Resources/views/Supervisor/list.html.twig
Github Open Source
Open Source
MIT
null
SupervisorBundle
alexeymenkov
Twig
Code
21
105
{% extends "@YZSupervisor/layout.html.twig" %} {% block yz_supervisor_content %} <h1>Supervisor</h1> {% include "@YZSupervisor/Supervisor/list_content.html.twig" %} {% include "@YZSupervisor/Supervisor/list_javascript.html.twig" %} {% endblock yz_supervisor_content %}
39,193
https://github.com/mvaganov/NonStandardGameUi/blob/master/Scripts/NonStandard/GameUi/Inventory/InventoryCollector.cs
Github Open Source
Open Source
Unlicense
null
NonStandardGameUi
mvaganov
C#
Code
122
437
using System; using UnityEngine; namespace NonStandard.GameUi.Inventory { public class InventoryCollector : MonoBehaviour { public Inventory inventory; public bool autoPickup = true; public bool addAsChildTransform = true; public void AddItem(object itemObject) { InventoryItem itm = inventory.FindInventor...
4,295
https://github.com/xp13465/qingdaofu/blob/master/frontend/views/aboutus/serviceclause.php
Github Open Source
Open Source
BSD-3-Clause
2,020
qingdaofu
xp13465
PHP
Code
213
2,085
<div class="m_center intro_right_con"> <ul class="pro"> <li><span></span><a href="<?php echo \yii\helpers\Url::toRoute("/protocol/mediacyfinancing")?>" target ="_blank">《居间协议(融资人)》</a></li> <li><span></span><a href="<?php echo \yii\helpers\Url::toRoute("/protocol/mediacyentrust")?>" target ="_blank"...
47,408
https://github.com/lucking/ReactiveCocoa_ZM/blob/master/ReactiveCocoa_ZM/VController/BaseFile/Common.h
Github Open Source
Open Source
Apache-2.0
2,017
ReactiveCocoa_ZM
lucking
Objective-C
Code
150
814
// // Common.h // ZM_BaseViewController // // Created by tangdi on 15/6/12. // Copyright (c) 2015年 ZM. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <CoreText/CoreText.h>//字间距 使用 #import <sys/sysctl.h>//系统参数 使用 // 验证邮箱、手机号、身份证、qq typedef enum{ VALIDATE_CHECK_EMAIL =...
17,613
https://github.com/Kelvinyy2/react-ecommerce/blob/master/src/pages/cart.tsx
Github Open Source
Open Source
MIT
2,021
react-ecommerce
Kelvinyy2
TSX
Code
176
561
import React, { useEffect, useState } from 'react'; import { useDispatch } from 'react-redux'; import { Row, Col } from 'antd'; import MainLayout from '../components/MainLayout/MainLayout'; import CartListRenderer from '../components/Cart/CartListRenderer'; import { useCartSelector, useProductSelector } from '../select...
5,535
https://github.com/Triv-et/RecipeParser/blob/master/tests/RecipeParser_Times_Test.php
Github Open Source
Open Source
MIT
2,021
RecipeParser
Triv-et
PHP
Code
405
1,325
<?php use PHPUnit\Framework\TestCase; require_once dirname(__FILE__) . '/../bootstrap.php'; class TimesTest extends TestCase { public function test_format_MM() { $this->assertEquals(90, RecipeParser_Times::toMinutes(90), "Failed to convert integer (90) to 90 minutes,"); } public functio...
29,553
https://github.com/fandemonium/code/blob/master/rdp_assem_stat_parser.py
Github Open Source
Open Source
MIT
2,022
code
fandemonium
Python
Code
138
372
import sys import os import numpy l = [] for lines in open(sys.argv[1], 'rU'): lines = lines.strip() lexemes = lines.split('\t') if len(lexemes) == 12: seq_id = lexemes[3] seq_len = int(lexemes[5]) avg_Q = int(lexemes[-4]) overlap = int(lexemes[-3]) if avg_Q >= 25 and overlap >= 10: #and seq_len>=250 and...
17,953
https://github.com/mhusinsky/dx11-vvvv/blob/master/Nodes/VVVV.DX11.Nodes.MSKinect/Nodes/KinectSkeletonNode.cs
Github Open Source
Open Source
BSD-3-Clause
2,017
dx11-vvvv
mhusinsky
C#
Code
548
2,315
using System; using System.Collections.Generic; using System.Linq; using System.Text; using VVVV.PluginInterfaces.V2; using SlimDX; using VVVV.MSKinect.Lib; using VVVV.PluginInterfaces.V1; using Microsoft.Kinect; using Vector4 = SlimDX.Vector4; using Quaternion = SlimDX.Quaternion; namespace VVVV.MSKinect.Nodes { ...
23,661
https://github.com/zthun/works/blob/master/packages/works.client/src/learn/api-page.spec.tsx
Github Open Source
Open Source
MIT
2,021
works
zthun
TypeScript
Code
403
1,296
/* eslint-disable require-jsdoc */ import { act, fireEvent, render } from '@testing-library/react'; import { IZTypedoc, ZTypedocKind, ZTypedocTypeKind } from '@zthun/works.core'; import { ZHttpMethod, ZHttpResultBuilder, ZHttpServiceMock } from '@zthun/works.http'; import { ZHttpServiceContext } from '@zthun/works.rea...
38,699
https://github.com/carlgogo/vip_exoplanets/blob/master/vip_hci/metrics/__init__.py
Github Open Source
Open Source
MIT
2,015
vip_exoplanets
carlgogo
Python
Code
80
154
""" Subpackage ``metrics`` includes: - signal-to-noise (S/N) estimation, - S/N map generation, - STIM map generation, - detection of point like sources (for pipelines), - fake companions injection, - fake disks generation and injection, - algorithms throughput estimation, - contrast curv...
50,058
https://github.com/shygoo/emuname/blob/master/emuname/src/misc/KeyFilter.java
Github Open Source
Open Source
MIT
2,017
emuname
shygoo
Java
Code
66
210
package net.shygoo.misc; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; public class KeyFilter extends KeyAdapter { public final static String HEX = "[A-Fa-f0-9]"; public final static String NUM = "[0-9]"; public final static String ANY = "."; private String regexFilter; //private int maxLengt...
47,734
https://github.com/namaggarwal/searchAThon/blob/master/protected/view/homeView.php
Github Open Source
Open Source
MIT
2,014
searchAThon
namaggarwal
PHP
Code
94
422
<?php require_once("baseView.php"); class homeView extends baseView{ private $html = ""; private $data ; public function init($data){ $this->renderPage($data); } function getPageSpecificHead($params){ $html = "<title>Searchathon</title>"; $html .= "<link type='text/css' rel='stylesheet' href='".conf...
37,382
https://github.com/zhuio/portia/blob/master/portiaui/app/services/saving-notification.js
Github Open Source
Open Source
BSD-3-Clause
2,017
portia
zhuio
JavaScript
Code
37
166
import Ember from 'ember'; export default Ember.Service.extend({ extractedItems: Ember.inject.service(), counter: 0, lastSaved: null, isSaving: Ember.computed.bool('counter'), start() { this.get('extractedItems').activateExtraction(); this.incrementProperty('counter'); }, ...
46,527
https://github.com/ttm/ubiquousInequality/blob/master/scripts/mkFigure.py
Github Open Source
Open Source
CC0-1.0
null
ubiquousInequality
ttm
Python
Code
90
486
import pylab as p, numpy as n fig=p.figure(figsize=(6.,5.)) # p.subplots_adjust(left=0.09,bottom=0.15,right=0.95,top=0.81) N = 100. y = n.ones(int(N)) yy = n.linspace(1,5,N)**-3 ax=p.subplot(211) p.plot(y) # p.ylabel(r'$y = p(k) * k^\alpha = C$') p.ylabel(r'$p_U(k) = C$') # p.yticks([1], ['']) p.yticks([], []) p.xt...
47,958
https://github.com/pandening/spring-mvc-recommend-system/blob/master/src/main/java/com/hujian/star/model/ItemUserScoreEntry.java
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0
2,017
spring-mvc-recommend-system
pandening
Java
Code
125
336
package com.hujian.star.model; import java.io.Serializable; import java.math.BigInteger; /** * Created by hujian on 2017/5/9. */ public class ItemUserScoreEntry implements Serializable { /** * the work id(item) */ private BigInteger work_id = null; /** * the user id */ private ...
8,162
https://github.com/shopware/SwagMigrationAssistant/blob/master/Profile/Shopware/Converter/MediaFolderConverter.php
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,023
SwagMigrationAssistant
shopware
PHP
Code
414
1,855
<?php declare(strict_types=1); /* * (c) shopware AG <info@shopware.com> * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SwagMigrationAssistant\Profile\Shopware\Converter; use Shopware\Core\Framework\Context; use Shopware\Cor...
5,956
https://github.com/aravi5/drill-test-framework/blob/master/framework/resources/Functional/int96/q20.sql
Github Open Source
Open Source
Apache-2.0
null
drill-test-framework
aravi5
SQL
Code
18
97
alter session set `store.parquet.reader.int96_as_timestamp`=true; select date_trunc('year', create_timestamp1), date_trunc('month', create_timestamp1),date_trunc('day', create_timestamp1) from hive1_parquet where voter_id=5; alter session set `store.parquet.reader.int96_as_timestamp`=false;
23,150
https://github.com/yanbowe/pear-admin-naive/blob/master/src/components/AntVG2/composables/useInnerChart.ts
Github Open Source
Open Source
MIT
2,022
pear-admin-naive
yanbowe
TypeScript
Code
187
567
import type { ComputedRef, Ref, UnwrapRef } from 'vue' import { onMounted, onUnmounted, ref, watch } from 'vue' import { Chart } from '@antv/g2' import type { G2ChartProps } from '@/components/AntVG2/G2Chart.vue' import { isEmpty, merge } from 'lodash-es' import { useEventListener } from '@vueuse/core' export interfac...
4,935
https://github.com/da1fanshu/1234ewsd/blob/master/Assets/Scripts/Game/Mahjong3D/Standard/Core/Shortcuts/ShortcutsComponent.cs
Github Open Source
Open Source
MIT
2,021
1234ewsd
da1fanshu
C#
Code
295
1,118
using System.Collections.Generic; namespace Assets.Scripts.Game.Mahjong3D.Standard { /// <summary> /// 快捷工具管理 /// </summary> public class ShortcutsComponent : BaseComponent, IContinueGameCycle, IGameEndCycle, IGameInfoICycle { private LinkedList<ShortcutsPart> mShortcutsPartLinked = new Li...
18,212
https://github.com/zzgchina888/msdn-code-gallery-microsoft/blob/master/OneCodeTeam/How to download files from FTP server 3/[VB]-How to download files from FTP server/VB/VBFTPDownload/MainForm.Designer.vb
Github Open Source
Open Source
MIT
2,022
msdn-code-gallery-microsoft
zzgchina888
Visual Basic
Code
766
3,159
 Partial Public Class MainForm ''' <summary> ''' Required designer variable. ''' </summary> Private components As System.ComponentModel.IContainer = Nothing ''' <summary> ''' Clean up any resources being used. ''' </summary> ''' <param name="disposing">true if managed resources should ...
50,910
https://github.com/motmot/strokelitude/blob/master/strokelitude/plugin.py
Github Open Source
Open Source
BSD-3-Clause
2,015
strokelitude
motmot
Python
Code
352
1,254
import os, sys, random import multiprocessing import remote_traits import warnings try: import enthought.traits.api as traits except ImportError: # traits 4.x import traits.api as traits def mainloop(klass_proxy,klass_worker, hostname,port,obj_name,data_queue,save_data_queues, dis...
8,125
https://github.com/marcusdiaz/cross-nft/blob/master/packages/next-app/src/components/Subscribe/Subscribe.js
Github Open Source
Open Source
MIT
null
cross-nft
marcusdiaz
JavaScript
Code
22
72
import React from 'react' export default function Subscribe() { return ( <React.Fragment> <div className="grid grid-cols-1"> <p>This is Subscribe.</p> </div> </React.Fragment> ) }
46,078
https://github.com/Uniandes-isis2603/s3_bicicletas/blob/master/bicicletas-back/src/main/java/co/edu/uniandes/bicicletas/entities/ReservaEntity.java
Github Open Source
Open Source
MIT
null
s3_bicicletas
Uniandes-isis2603
Java
Code
1,053
3,174
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package co.edu.uniandes.bicicletas.entities; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import j...
17,087
https://github.com/marcelbienvu/MabiluObjects/blob/master/src/grids/grids.cpp
Github Open Source
Open Source
MIT
null
MabiluObjects
marcelbienvu
C++
Code
213
722
#include "grids.h" void Grids::init() { clock.Init(); generator.Init(); settings = generator.mutable_settings(); options = generator.mutable_options(); clock.Update(60, generator.clock_resolution()); swing_amount = 0; } void Grids::update(void) { audio_block_struct *block[6]; for (int...
22,704
https://github.com/magkr/BDSA2017/blob/master/BDSA2017.Lecture08.Models/Singleton/HardcodedConfig.cs
Github Open Source
Open Source
MIT
2,017
BDSA2017
magkr
C#
Code
21
112
namespace BDSA2017.Lecture08.Models.Singleton { public class HardcodedConfig : IConfig { public string ClientId => "11cd234e-4bf1-43ca-8607-c0022a92cba1"; public string ClientSecret => "/ZBL7gahFns8OV+whliNQGZt/RjdM14Iw35mGi87rOo="; } }
5,285
https://github.com/hardrive2/cmsmonitoring/blob/master/application/views/cluster/tes2.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,020
cmsmonitoring
hardrive2
PHP
Code
391
1,819
<!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1>MONITORING AGENT CC TELKOM 147</h1> ...
1,317
https://github.com/ayocodingit/laravel-7-swoole/blob/master/app/Imports/RegisterRujukanImport.php
Github Open Source
Open Source
MIT
null
laravel-7-swoole
ayocodingit
PHP
Code
297
1,663
<?php namespace App\Imports; use App\Enums\JenisRegistrasiEnum; use App\Enums\StatusPasienEnum; use App\Models\Fasyankes; use App\Models\Kota; use App\Models\Sampel; use App\Rules\ExistsSampel; use App\Traits\ImportExcelTrait; use App\Traits\RegisterTrait; use Illuminate\Support\Collection; use Maatwebsite\Excel\Conc...
15,966
https://github.com/konsumer/wequ/blob/master/index.js
Github Open Source
Open Source
MIT
2,021
wequ
konsumer
JavaScript
Code
197
467
// this is the actual search-engine export const fnBody = ({ and = {}, or = {}, nor = {}, nand = {}, ...restAnd }) => { const queries = [{ ...and, ...restAnd }, or, nor, nand] const keys = queries.map(a => Object.keys(a || {})) const joins = ['&&', '||', '||', '&&'] const totalLength = keys.reduce((a, c) => a +...
24,559
https://github.com/dtassone/material-ui-x/blob/master/packages/grid/_modules_/grid/components/GridRowCount.tsx
Github Open Source
Open Source
MIT
2,021
material-ui-x
dtassone
TSX
Code
85
288
import * as React from 'react'; import clsx from 'clsx'; import { useGridApiContext } from '../hooks/root/useGridApiContext'; interface RowCountProps { rowCount: number; visibleRowCount: number; } type GridRowCountProps = React.HTMLAttributes<HTMLDivElement> & RowCountProps; export const GridRowCount = React.for...
47,838
https://github.com/app858216291-github/yoshop/blob/master/app/common/model/store/Menu.php
Github Open Source
Open Source
Apache-2.0
null
yoshop
app858216291-github
PHP
Code
330
1,230
<?php // +---------------------------------------------------------------------- // | 萤火商城系统 [ 致力于通过产品和服务,帮助商家高效化开拓市场 ] // +---------------------------------------------------------------------- // | Copyright (c) 2017~2021 https://www.yiovo.com All rights reserved. // +-------------------------------------------------...
21,237
https://github.com/getplunk/upstart-project/blob/master/upstart/upstart-test/src/test/java/upstart/test/AopInterceptorDependencyTest.java
Github Open Source
Open Source
Apache-2.0
null
upstart-project
getplunk
Java
Code
232
1,059
package upstart.test; import com.google.common.util.concurrent.MoreExecutors; import com.google.common.util.concurrent.Service; import com.google.inject.matcher.Matchers; import upstart.MethodInterceptorFactory; import upstart.config.UpstartModule; import upstart.util.concurrent.services.NotifyingService; import upsta...
44,605
https://github.com/eerimoq/monolinux-example-project/blob/master/3pp/linux/drivers/thermal/da9062-thermal.c
Github Open Source
Open Source
Linux-syscall-note, GPL-2.0-only, MIT
2,020
monolinux-example-project
eerimoq
C
Code
811
3,038
// SPDX-License-Identifier: GPL-2.0-or-later /* * Thermal device driver for DA9062 and DA9061 * Copyright (C) 2017 Dialog Semiconductor */ /* When over-temperature is reached, an interrupt from the device will be * triggered. Following this event the interrupt will be disabled and * periodic transmission of ueve...
20,539
https://github.com/mrnettek/VBScript/blob/master/VBScript1/List All Possible Video Controller Resolutions.vbs
Github Open Source
Open Source
MIT
2,020
VBScript
mrnettek
VBScript
Code
90
243
' Description: Returns a list of all the possible video display resolutions that can be configured on a computer. On Error Resume Next strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery _ ...
2,118
https://github.com/emilva/azure-sdk-for-go-samples/blob/master/sql/sql.go
Github Open Source
Open Source
MIT
null
azure-sdk-for-go-samples
emilva
Go
Code
395
1,390
// Copyright (c) Microsoft and contributors. All rights reserved. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. package sql import ( "context" "fmt" "log" "github.com/Azure/azure-sdk-for-go/services/sql/mgmt/2015-05-01-preview/sq...
32,789
https://github.com/davidedc97/distribuzione/blob/master/node_modules/docx/build/file/numbering/numbering.d.ts
Github Open Source
Open Source
MIT
2,020
distribuzione
davidedc97
TypeScript
Code
63
176
import { IXmlableObject, XmlComponent } from "../../file/xml-components"; import { ILevelsOptions } from "./level"; import { ConcreteNumbering } from "./num"; export interface INumberingOptions { readonly config: Array<{ readonly levels: ILevelsOptions[]; readonly reference: string; }>; } export...
16,026
https://github.com/rumdood/Bolognese/blob/master/src/Bolognese.Common/Pomodoro/PomodoroSegmentFactory.cs
Github Open Source
Open Source
MIT
2,018
Bolognese
rumdood
C#
Code
187
719
using Bolognese.Common.Configuration; using System; using Bolognese.Common.Media; namespace Bolognese.Common.Pomodoro { public class PomodoroSegmentFactory : IPomodoroSegmentFactory { IConfigurationSettings _settings; PomodoroSegment _previousSegment; int _totalWorkSegments = 0; ...
12,424