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/moonantonio/charon-unity3d/blob/master/src/GameDevWare.Charon.Unity/Windows/FeedbackWindow.cs
Github Open Source
Open Source
Apache-2.0
2,022
charon-unity3d
moonantonio
C#
Code
729
2,991
/* Copyright (c) 2017 Denis Zykov This is part of "Charon: Game Data Editor" Unity Plugin. Charon Game Data Editor Unity Plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the...
15,583
https://github.com/EugenMayer/java-spring-pocs/blob/master/src/main/java/de/kontextwork/poc/spring/blaze/fullapp/realm/RealmService.java
Github Open Source
Open Source
MIT
2,019
java-spring-pocs
EugenMayer
Java
Code
57
300
package de.kontextwork.poc.spring.blaze.fullapp.realm; import com.blazebit.persistence.view.EntityViewSetting; import de.kontextwork.poc.spring.blaze.core.RegularEntityViewRepository; import de.kontextwork.poc.spring.blaze.fullapp.realm.model.jpa.Realm; import de.kontextwork.poc.spring.blaze.fullapp.realm.model.view.R...
42,226
https://github.com/derekXlin/mule-gradle-plugin/blob/master/src/main/groovy/com/mulesoft/build/studio/StudioPlugin.groovy
Github Open Source
Open Source
Apache-2.0
2,014
mule-gradle-plugin
derekXlin
Groovy
Code
203
423
/* * Copyright 2014 juancavallotti. * * 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 agree...
16,686
https://github.com/kuhadiyadharmesh/RecLibs/blob/master/src/main/java/lib/api/poll/com/model/Setting/UpdateFolderOrder.java
Github Open Source
Open Source
MIT
null
RecLibs
kuhadiyadharmesh
Java
Code
55
246
package lib.api.poll.com.model.Setting; import java.util.ArrayList; import lib.api.poll.com.model.Common.Folders; /** * Created by Dharmesh-PC on 1/15/2018. */ public class UpdateFolderOrder { // "api_key=553a431e192d2553a431e1930f&folders[20]=1&folders[34]=2&folders[7]=3&folders[11]=4". private String ...
34,693
https://github.com/zero4drift/SICP/blob/master/chapter4/4.23.scm
Github Open Source
Open Source
MIT
null
SICP
zero4drift
Scheme
Code
63
87
;; the version in text unrolls all the procs of the sequence exps by utilizing procedure sequentially ;; while the version defined by Alyssa unrolls the procs in runtime, not in the analyze time ;; due to the recursive pattern of procedure execute-sequence and the return lambda result of analyze-sequence ;; it would u...
17,351
https://github.com/jimyduong/case-study-Blog-Sport/blob/master/Blog-Sport/resources/views/admin/create.blade.php
Github Open Source
Open Source
MIT
2,019
case-study-Blog-Sport
jimyduong
Blade
Code
127
604
@extends('homeadmin') @section('title', 'Thêm mới') @section('content') <div class="col-12 col-md-12"> <div class="row"> <div class="col-12"> <hr> <h1>Thêm mới bài viết </h1> </div> <div class="col-12"> <form method="post" a...
51
https://github.com/cbtis123/ieso/blob/master/resources/views/welcome.blade.php
Github Open Source
Open Source
MIT
2,016
ieso
cbtis123
PHP
Code
3
24
@extends('layouts.cabecera') @section('content') @endsection
42,506
https://github.com/zhaoyb/LinkAgent/blob/master/instrument-modules/user-modules/module-log-data-pusher/src/main/java/com/shulie/instrument/module/log/data/pusher/LogDataPusherModule.java
Github Open Source
Open Source
Apache-2.0
2,022
LinkAgent
zhaoyb
Java
Code
601
2,713
/** * Copyright 2021 Shulie Technology, Co.Ltd * Email: shulie@shulie.io * 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 requi...
41,855
https://github.com/chromium/chromium/blob/master/third_party/blink/renderer/core/layout/flexible_box_algorithm.cc
Github Open Source
Open Source
BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause
2,022
chromium
chromium
C++
Code
3,642
14,209
/* * Copyright (C) 2011 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
29,584
https://github.com/norsysnet/SharpHaven/blob/master/SharpHaven/Resources/Factories/ItemProtoFactory.cs
Github Open Source
Open Source
MIT
2,016
SharpHaven
norsysnet
C#
Code
50
181
using Haven.Resources; using SharpHaven.Client; using SharpHaven.Graphics; namespace SharpHaven.Resources { public class ItemProtoFactory : IObjectFactory<ItemProto> { private readonly IObjectFactory<Drawable> imageFactory; public ItemProtoFactory(IObjectFactory<Drawable> imageFactory) { this.imageFactory...
30,342
https://github.com/reborncms/reborn/blob/master/heart/modules/field/src/Field/Type/RadioGroup.php
Github Open Source
Open Source
MIT
2,015
reborn
reborncms
PHP
Code
142
479
<?php namespace Field\Type; /** * Radio group * * @package Field * @author Li Jia Li **/ class RadioGroup extends \Field\AbstractType { public function filler($default = null, $options = null) { $field = <<<FIELD <label for="radio-options">Radio Options</label> <div class="form-r...
36,319
https://github.com/Ishoshot/morebitcoin/blob/master/src/components/auth/withdrawal/ManageWithdrawals.vue
Github Open Source
Open Source
MIT
2,022
morebitcoin
Ishoshot
Vue
Code
403
1,690
<template> <div class="px-sm-0 px-md-0 sp-mb-10"> <div class="container-fluid shadow-sm py-3 px-sm-3 px-lg-2 mt-3" :class="!createWithdrawal ? 'border' : ''" > <!-- Sort, Direction Info --> <div class="d-flex justify-content-between mb-3 small"> <div> Sorting By: ...
48,720
https://github.com/OliverMengich/FreeTONProject/blob/master/node_modules/ton-client-js/__tests__/_/testing-platform.js
Github Open Source
Open Source
Apache-2.0
2,021
FreeTONProject
OliverMengich
JavaScript
Code
437
1,481
/** * This file must exports: * async function findGiverKeys() * async function writeGiverKeys(keys) * function createJaegerTracer(endpoint: string): ?Tracer * async function initTONClient(tonClientClass) * async function loadContractPackage(name, version) * const env */ import { Tracer } from 'opentracing'; i...
16,395
https://github.com/maartenelgar/Block_Fund_Trading/blob/master/build/lib/Scripts/ETFportfolio copy.py
Github Open Source
Open Source
MIT
null
Block_Fund_Trading
maartenelgar
Python
Code
206
698
from binance.client import Client import time import matplotlib from matplotlib import cm import matplotlib.pyplot as plt from binance.enums import * import save_historical_data_Roibal from BinanceKeys import BinanceKey1 api_key = BinanceKey1['api_key'] api_secret = BinanceKey1['api_secret'] client = Client(api_key,...
1,866
https://github.com/freebsd/freebsd-ports/blob/master/sysutils/enteruser/Makefile
Github Open Source
Open Source
BSD-2-Clause
2,023
freebsd-ports
freebsd
Makefile
Code
61
325
PORTNAME= enteruser PORTVERSION= 1.0 CATEGORIES= sysutils MASTER_SITES= http://dannyman.toldme.com/warez/ DISTNAME= enteruser EXTRACT_SUFX= # empty EXTRACT_ONLY= # empty MAINTAINER= 0mp@FreeBSD.org COMMENT= Extensible script for adding new users WWW= https://web.archive.org/web/20041211013021/http://www.daemonnews.or...
411
https://github.com/ZhenyaP/sso-service/blob/master/IdentityProvider.API/Startup.cs
Github Open Source
Open Source
Apache-2.0
2,020
sso-service
ZhenyaP
C#
Code
383
1,315
using IdentityProvider.Common.Entities; using Microsoft.Extensions.Hosting; using Microsoft.OpenApi.Models; namespace IdentityProvider.API { using System; using System.IO; using System.Net; using System.Net.Http; using Amazon; using Amazon.CognitoIdentityProvider; using Amazon.SecurityToke...
24,701
https://github.com/ChinarG/Game-Wow-Plugins-Setting/blob/master/Interface/AddOns/AddOnSkins/Skins/Recount.lua
Github Open Source
Open Source
Apache-2.0
null
Game-Wow-Plugins-Setting
ChinarG
Lua
Code
208
1,168
local AS = unpack(AddOnSkins) if not AS:CheckAddOn('Recount') then return end function AS:Recount() local L = LibStub('AceLocale-3.0'):GetLocale('Recount') function Recount:ShowReset() AS:AcceptFrame(L['Reset Recount?'], function(self) Recount:ResetData() self:GetParent():Hide() end) end local function SkinFr...
37,858
https://github.com/team-mayes/qm_utils/blob/master/qm_utils/hartree_valid.py
Github Open Source
Open Source
BSD-3-Clause
null
qm_utils
team-mayes
Python
Code
128
459
# Hartree Columns # FILE_COLNAME = "File Name" SOLVENT_COLNAME = "Solvent type" STOI_COLNAME = "Stoichiometry" CHARGE_COLNAME = "Charge" MULT_COLNAME = "Mult" FUNC_COLNAME = "Functional" BASIS_COLNAME = "Basis Set" ENERGY_COLNAME = "Energy (A.U.)" DIPOLE_COLNAME = "dipole" ZPE_COLNAME = "ZPE (kcal/mol)" FREQ1_COLNAME...
40,828
https://github.com/openghg/acquire/blob/master/Acquire/Registry/_register_service.py
Github Open Source
Open Source
Apache-2.0
2,021
acquire
openghg
Python
Code
210
712
__all__ = ["register_service"] def register_service(service, registry_uid): """Call this function to register the passed new service with the specified registry_uid. This function will complete registration and construction of the service """ from Acquire.Service import Service as _Service if...
8,653
https://github.com/Kissy/go-dynatrace/blob/master/dynatrace/network_dropped_packets_thresholds.go
Github Open Source
Open Source
MIT
null
go-dynatrace
Kissy
Go
Code
349
963
// Code generated by go-swagger; DO NOT EDIT. package dynatrace // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "github.com/go-openapi/errors" strfmt "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.c...
26,838
https://github.com/juarezpaulino/coderemite/blob/master/problemsets/Codeforces/Java/A732.java
Github Open Source
Open Source
Apache-2.0
null
coderemite
juarezpaulino
Java
Code
54
159
/** * * Author: Juarez Paulino(coderemite) * Email: juarez.paulino@gmail.com * */ import java.util.*; public class A732 { public static void main(String[] args){ Scanner in = new Scanner(System.in); int k = in.nextInt(), r = in.nextInt(); for (int x = 1, t; (t=(k*x)%10)<10 && x<=10; x++) if (t==0 || t==r) ...
47,717
https://github.com/mcrossen/garage/blob/master/server.py
Github Open Source
Open Source
MIT
null
garage
mcrossen
Python
Code
229
843
#!/usr/bin/env python3 from flask import Flask, request from time import sleep from threading import Thread, Lock import click import smbus DEFAULT_HOST = '0.0.0.0' DEFAULT_PORT = 8080 DEFAULT_LANDING_PAGE = 'index.html' RELAY_ASSERT_DURATION = 0.5 RELAY_DEVICE_ADDR = 0x10 # the I2C data addresses for each door GATE ...
32,393
https://github.com/sma7560/Wizards_Pub_Crawl/blob/master/TPK/Assets/Resources/Menu&UI Prefabs/WaitingRoom.prefab
Github Open Source
Open Source
MIT
2,019
Wizards_Pub_Crawl
sma7560
Unity3D Asset
Code
3,463
14,839
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1001 &100100000 Prefab: m_ObjectHideFlags: 1 serializedVersion: 2 m_Modification: m_TransformParent: {fileID: 0} m_Modifications: [] m_RemovedComponents: [] m_SourcePrefab: {fileID: 0} m_RootGameObject: {fileID: 1477967093099644} m_IsPrefabAsset: 1...
16,711
https://github.com/xformation/eskaysoft/blob/master/src/main/java/com/rest/eskaysoftAPI/entity/Schedule.java
Github Open Source
Open Source
Apache-2.0
null
eskaysoft
xformation
Java
Code
397
1,126
package com.rest.eskaysoftAPI.entity; import java.io.Serializable; import java.util.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "schedules") public class Sch...
9,420
https://github.com/caseypc/phpguard/blob/master/src/Test/TestApplication.php
Github Open Source
Open Source
MIT
2,014
phpguard
caseypc
PHP
Code
149
582
<?php /* * This file is part of the PhpGuard project. * * (c) Anthonius Munthi <me@itstoni.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PhpGuard\Application\Test; use PhpGuard\Application\ApplicationEvents; use...
40,348
https://github.com/kave-cc/csharp-commons/blob/master/KaVE.Commons/Model/SSTs/Impl/SSTUtil.cs
Github Open Source
Open Source
Apache-2.0
2,018
csharp-commons
kave-cc
C#
Code
414
1,258
/* * Copyright 2014 Technische Universität Darmstadt * * 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 appl...
27,357
https://github.com/Junscuzzy/portfolio-v2/blob/master/src/components/Row.tsx
Github Open Source
Open Source
MIT
2,021
portfolio-v2
Junscuzzy
TypeScript
Code
45
114
/** @jsx jsx */ import { jsx } from 'theme-ui' import { FC } from 'react' const Row: FC = props => { return ( <div {...props} sx={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', flexWrap: 'wrap', mx: -3 }} /> ) } export de...
15,145
https://github.com/juozasg/suis4j/blob/master/src/com/eviware/soapui/support/dnd/JTreeDragAndDropable.java
Github Open Source
Open Source
MIT
null
suis4j
juozasg
Java
Code
264
685
/* * SoapUI, Copyright (C) 2004-2016 SmartBear Software * * Licensed under the EUPL, Version 1.1 or - as soon as they will be approved by the European Commission - subsequen * versions of the EUPL (the "Licence"); * You may not use this work except in compliance with the Licence. * You may obtain a copy of the Li...
47,753
https://github.com/cleancoindev/XChange/blob/master/xchange-btcchina/src/test/java/org/knowm/xchange/btcchina/dto/trade/request/BTCChinaBuyOrderRequestTest.java
Github Open Source
Open Source
MIT
2,017
XChange
cleancoindev
Java
Code
51
249
package org.knowm.xchange.btcchina.dto.trade.request; import static org.junit.Assert.assertEquals; import java.math.BigDecimal; import org.junit.Test; public class BTCChinaBuyOrderRequestTest { @Test public void testLimitPriceOrder() { BTCChinaBuyOrderRequest request = new BTCChinaBuyOrderRequest(new BigD...
33,819
https://github.com/DevenDoes/unc-cdc/blob/master/resources/js/Pages/Portal/Profile/PersonalDetails.vue
Github Open Source
Open Source
MIT
null
unc-cdc
DevenDoes
Vue
Code
815
3,392
<template> <portal-layout> <section class="w-full"> <article class="container mx-auto w-full bg-white mt-8 flex shadow divide-x divide-gray-300"> <div class="w-1/3 text-center bg-primary px-8 py-4"> <p class="text-light font-primary font-normal text-base"> 1) Personal Details ...
46,556
https://github.com/louispaul-cubet/tokipilot/blob/master/src/sagas/watchers/getBusinessFlights.js
Github Open Source
Open Source
MIT
null
tokipilot
louispaul-cubet
JavaScript
Code
53
177
import { put, takeLatest, call } from 'redux-saga/effects'; import { GET_BUSINESS_FLIGHTS } from '../../constants'; import { setBusinessFlights, } from '../../actions'; import { getBusinessFlights } from '../../lib/api'; import {showLoader,hideLoader} from '../../actions/ui' function* workerGetBusinessFlig...
33,872
https://github.com/HuDaQian/Leetcode/blob/master/src/com/hudaqian/leetcode/editor/cn/PlusOne.java
Github Open Source
Open Source
MIT
2,020
Leetcode
HuDaQian
Java
Code
153
626
//给定一个由整数组成的非空数组所表示的非负整数,在该数的基础上加一。 // // 最高位数字存放在数组的首位, 数组中每个元素只存储单个数字。 // // 你可以假设除了整数 0 之外,这个整数不会以零开头。 // // 示例 1: // // 输入: [1,2,3] //输出: [1,2,4] //解释: 输入数组表示数字 123。 // // // 示例 2: // // 输入: [4,3,2,1] //输出: [4,3,2,2] //解释: 输入数组表示数字 4321。 // // Related Topics 数组 // 👍 572 👎 0 package com.hudaqian.leet...
31,509
https://github.com/pderakhshanfar/EMSE-BBC-experiment/blob/master/results/Jsoup-87/org.jsoup.nodes.Element/BBC-F0-opt-40/tests/28/org/jsoup/nodes/Element_ESTest.java
Github Open Source
Open Source
CC-BY-4.0, MIT
2,022
EMSE-BBC-experiment
pderakhshanfar
Java
Code
20,000
112,733
/* * This file was automatically generated by EvoSuite * Fri Oct 22 21:24:21 GMT 2021 */ package org.jsoup.nodes; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.PipedReader; import...
16,428
https://github.com/aaaVector/SpringAll/blob/master/83.Spring-Boot-WebService/src/main/java/com/example/webService/jws/JwsService.java
Github Open Source
Open Source
MIT
2,020
SpringAll
aaaVector
Java
Code
30
109
package com.example.webService.jws; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebService; /** * @Author: xy * @Date: 2020/8/30 21:22 */ @WebService public interface JwsService { @WebMethod String hiJwsService(@WebParam(name = "hi") String s); }
20,814
https://github.com/bigiot/home-assistant/blob/master/.devcontainer/Dockerfile
Github Open Source
Open Source
Apache-2.0
2,019
home-assistant
bigiot
Dockerfile
Code
91
264
FROM python:3.7 RUN apt-get update \ && apt-get install -y --no-install-recommends \ libudev-dev \ libavformat-dev \ libavcodec-dev \ libavdevice-dev \ libavutil-dev \ libswscale-dev \ libswresample-dev \ libavfilter-dev \ git \ && apt-get...
31,844
https://github.com/ehtec/pie-chart-ocr/blob/master/piechartocr/data_helpers.py
Github Open Source
Open Source
MIT
null
pie-chart-ocr
ehtec
Python
Code
546
2,177
import logging import os import csv from .helperfunctions import hash_file, get_root_path # get (csvpath, imagepath) by number from stephs first test dataset def get_steph_test_path(n): basepath = os.path.join(get_root_path(), "data", "charts_steph", "Chart_{0}".format(n)) logging.debug("basepath: {0}".form...
46,676
https://github.com/eBellmer/move_data_processing/blob/master/Archive/webhook.py
Github Open Source
Open Source
MIT
null
move_data_processing
eBellmer
Python
Code
141
499
# Title: Webhook Listener (MOVE) # Description: A webhook listener for the data collected by the # MOVE sensors in the Salford Museum and Gallery # Author: Ethan Bellmer # Date: 29/08/2019 # Version: 0.1 # Import libraries import sys from flask import Flask, request, abort import json import pandas as pd ...
14,065
https://github.com/sirikata/sirikata-cdn/blob/master/sirikata-cdn/content/views.py
Github Open Source
Open Source
BSD-3-Clause
2,017
sirikata-cdn
sirikata
Python
Code
3,062
11,955
from django.template import RequestContext from django.shortcuts import render_to_response, redirect from django import forms from django.http import HttpResponseServerError, HttpResponseForbidden from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseNotFound from django.views.decorators.csrf import...
8,850
https://github.com/ongnen/FourNews/blob/master/FourNews/FourNews/Class/Other/libs/YJInfiniteScrollView.m
Github Open Source
Open Source
Apache-2.0
2,016
FourNews
ongnen
Objective-C
Code
286
1,416
// // YJInfiniteScrollView.m // 轮播器控件封装 // // Created by admin on 16/4/21. // Copyright © 2016年 天涯海北. All rights reserved. // #import "YJInfiniteScrollView.h" #define totleCount (_images.count*3) @interface YJInfiniteScrollView ()<UICollectionViewDataSource,UICollectionViewDelegate> @property (nonatomic, weak) U...
38,826
https://github.com/safiar/SVFEngine/blob/master/SVFEngine/SVFEngine/Window.h
Github Open Source
Open Source
Apache-2.0
2,018
SVFEngine
safiar
C
Code
308
1,076
// ----------------------------------------------------------------------- // // // MODULE : Window.h // // PURPOSE : Базовый класс окна // // CREATED : SavF. ⚡ Savenkov Filipp A. (2017) // // ----------------------------------------------------------------------- // #ifndef _WINDOW_H #define _WINDOW_H #include "st...
821
https://github.com/islabonita819/TRFE-Net-for-thyroid-nodule-segmentation/blob/master/dataloaders/tatn.py
Github Open Source
Open Source
MIT
2,021
TRFE-Net-for-thyroid-nodule-segmentation
islabonita819
Python
Code
417
1,594
import torch.utils.data as data import PIL.Image as Image import os import json import numpy as np import torch import random def make_dataset(root, seed, name): imgs = [] img_labels = {} img_names = os.listdir(root +'/'+ name+'-image/') img_names = sorted(img_names, key=lambda i: int(i.split(".")[0])...
2,710
https://github.com/ioxua/plug-boleto-java/blob/master/src/main/java/br/com/skywalker/plugboleto/shipment/dto/GenerateShipmentResponse.java
Github Open Source
Open Source
BSD-3-Clause
null
plug-boleto-java
ioxua
Java
Code
196
934
package br.com.skywalker.plugboleto.shipment.dto; import br.com.skywalker.plugboleto.common.Response; import br.com.skywalker.plugboleto.common.ResponseStatus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lo...
29,731
https://github.com/daichenghe/acenav-cli/blob/master/src/aceinna/core/driver.py
Github Open Source
Open Source
Apache-2.0
null
acenav-cli
daichenghe
Python
Code
301
1,268
import time from .event_base import EventBase from ..framework.communicator import CommunicatorFactory from ..devices import DeviceManager from ..framework.utils.print import print_red DEFAULT_INTERFACE = 'uart' BAUDRATE_MAPPING = {'IMU': 57600} class DriverEvents: ''' Driver Events ''' Discovered = 'DI...
28,993
https://github.com/g2vinay/azure-sdk-for-java/blob/master/sdk/spring/azure-spring-boot/src/main/java/com/azure/spring/autoconfigure/condition/aad/ClientRegistrationCondition.java
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, MIT, LicenseRef-scancode-warranty-disclaimer, BSD-3-Clause, CC0-1.0, Apache-2.0, LicenseRef-scancode-public-domain, BSD-2-Clause, LicenseRef-scancode-unknown-license-reference, LGPL-2.1-or-later
2,021
azure-sdk-for-java
g2vinay
Java
Code
138
594
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.spring.autoconfigure.condition.aad; import com.azure.spring.aad.AADApplicationType; import com.azure.spring.autoconfigure.aad.AADAuthenticationProperties; import org.springframework.boot.autoconfigure.con...
15,951
https://github.com/cydenix/OpenGLCffi/blob/master/OpenGLCffi/GLX/EXT/NV/copy_buffer.py
Github Open Source
Open Source
MIT
null
OpenGLCffi
cydenix
Python
Code
42
175
from OpenGLCffi.GLX import params @params(api='glx', prms=['dpy', 'readCtx', 'writeCtx', 'readTarget', 'writeTarget', 'readOffset', 'writeOffset', 'size']) def glXCopyBufferSubDataNV(dpy, readCtx, writeCtx, readTarget, writeTarget, readOffset, writeOffset, size): pass @params(api='glx', prms=['dpy', 'readCtx', 'writ...
9,598
https://github.com/uStudioCompany/formfish/blob/master/src/hooks/use-watch.ts
Github Open Source
Open Source
MIT
2,020
formfish
uStudioCompany
TypeScript
Code
69
130
import { useEffect } from 'react'; export type Watch<T> = (state: T) => void; /** * @internal * This hook is used to grab the state value of a form object property * * @return Returns an object with state of a member from our context */ function useWatch<T>(state: T, watch?: Watch<T>): void { useEffect(() => {...
39,062
https://github.com/CNavo/SU2020-IT162/blob/master/it162/big/accessibility.php
Github Open Source
Open Source
Apache-2.0
null
SU2020-IT162
CNavo
PHP
Code
68
337
<?php include('includes/header.php');?> <!-- START LEFT COLUMN --> <section> <h2>Website Accessibility - Responsive YouTube Video</h2> <div class="embed-container"> <iframe width="560" height="315" src="https://www.youtube.com/embed/z8xUCzToff8" frameborder="0" allow="accelerometer; aut...
46,552
https://github.com/software-engineering-amsterdam/poly-ql/blob/master/ivan/ql-project/src/net/iplantevin/ql/gui/formcomponents/IfElseComponent.java
Github Open Source
Open Source
Apache-2.0
2,022
poly-ql
software-engineering-amsterdam
Java
Code
101
380
package net.iplantevin.ql.gui.formcomponents; import net.iplantevin.ql.ast.expressions.Expression; import net.iplantevin.ql.evaluation.BoolVal; import net.iplantevin.ql.gui.main.FormFrame; /** * @author Ivan */ public class IfElseComponent extends ConditionalComponent { private final AbstractFormComponent elseB...
29,906
https://github.com/IWANABETHATGUY/svelte-eslint-parser/blob/master/explorer/src/components/AstExplorer.vue
Github Open Source
Open Source
MIT
null
svelte-eslint-parser
IWANABETHATGUY
Vue
Code
743
2,425
<template> <div class="ast-explorer-root"> <div class="ast-tools">{{ time }}<AstOptions v-model="options" /></div> <div class="ast-explorer"> <MonacoEditor ref="sourceEditor" v-model="svelteValue" language="html" @focus-edit...
6,222
https://github.com/JaquelinaAcosta/SIE/blob/master/src/AppBundle/Entity/Dependencia.php
Github Open Source
Open Source
MIT
null
SIE
JaquelinaAcosta
PHP
Code
729
2,632
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use AppBundle\Entity\Expediente; use AppBundle\Entity\Ubicacion; use Doctrine\Common\Collections\ArrayCollection; /** * Dependencia * * @ORM\Table(name="dependencia") * @ORM\Entity(repository...
17,765
https://github.com/Pietro-Putelli/react-native-navigation/blob/master/playground/src/screens/sharedElementCarDealer/useDismissGesture.ts
Github Open Source
Open Source
MIT
null
react-native-navigation
Pietro-Putelli
TypeScript
Code
344
1,080
import { usePanGestureHandler, useValue, timing } from 'react-native-redash'; import { useMemo } from 'react'; import Reanimated, { Extrapolate, useCode, cond, eq, set, Easing, greaterOrEq, call, } from 'react-native-reanimated'; import { State } from 'react-native-gesture-handler'; import { Dimensions ...
20,077
https://github.com/happeo/happeouikit/blob/master/packages/navigation/src/index.js
Github Open Source
Open Source
MIT
2,023
happeouikit
happeo
JavaScript
Code
16
35
export { default as Tabs } from "./tabs/Tabs"; export { default as SideNavigation } from "./sidenavigation/SideNavigation";
49,753
https://github.com/praeclarum/winforms/blob/master/src/System.Windows.Forms/src/System/Windows/Forms/MessageBoxButtons.cs
Github Open Source
Open Source
MIT
2,018
winforms
praeclarum
C#
Code
253
772
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace System.Windows.Forms { /// <include file='doc\MessageBoxButtons.uex' path='docs/doc[@for="MessageBoxB...
11,361
https://github.com/KingBain/virtool/blob/master/virtool/data/layer.py
Github Open Source
Open Source
MIT
null
virtool
KingBain
Python
Code
35
89
from dataclasses import dataclass from virtool.analyses.data import AnalysisData from virtool.blast.data import BLASTData @dataclass class DataLayer: """ Provides access to Virtool application data through an abstract interface over database and storage. """ analyses: AnalysisData blast: B...
40,251
https://github.com/JereTapaninen/cv/blob/master/emojiclicker/js/Emojis/JoyEmoji.js
Github Open Source
Open Source
MIT
2,023
cv
JereTapaninen
JavaScript
Code
28
114
define(["Emojis/Emoji"], function(Emoji) { return class JoyEmoji extends Emoji { constructor() { super(); this.image = "./content/joy.svg"; this.prob = window.globals.joyProb; } click(caller, ev) { caller.addPoints(caller.clickPoints * window.globals.joyClickMultiplier); } ...
24,773
https://github.com/bioshunlier/ShowCore-Open/blob/master/app/src/main/java/com/iflytek/cyber/iot/show/core/HaotuVideoActivity.kt
Github Open Source
Open Source
Apache-2.0
2,020
ShowCore-Open
bioshunlier
Kotlin
Code
1,090
4,908
package com.iflytek.cyber.iot.show.core import android.Manifest import android.content.* import android.content.res.Configuration import android.media.AudioManager import android.os.* import android.util.Log import android.view.View import android.view.Window import android.view.WindowManager import androidx.appcompat...
14,103
https://github.com/vitreuz/octant-plugin-for-knative/blob/master/src/eventing/broker.ts
Github Open Source
Open Source
Apache-2.0
2,021
octant-plugin-for-knative
vitreuz
TypeScript
Code
779
2,350
/* * Copyright (c) 2020 the Octant contributors. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import { AnnotationsFactory } from "@project-octant/plugin/components/annotations"; import { Component } from "@project-octant/plugin/components/component"; import { ComponentFactory, FactoryMetadata } fro...
28,611
https://github.com/aeshirey/logistic-map-rs/blob/master/src/main.rs
Github Open Source
Open Source
MIT
2,021
logistic-map-rs
aeshirey
Rust
Code
315
836
use image::{Rgb, RgbImage}; use imageproc; use imageproc::drawing::draw_filled_rect_mut; use imageproc::rect::Rect; const WIDTH_PX: u32 = 30000; const HEIGHT_PX: u32 = 10000; const MIN_X: f32 = 1.9; const MAX_X: f32 = 4.0; fn main() { let mut image = start_image(WIDTH_PX, HEIGHT_PX); let step_x: f32 = (MAX_...
2,273
https://github.com/openrs2/openrs2/blob/master/util/src/test/kotlin/org/openrs2/util/io/SkipOutputStreamTest.kt
Github Open Source
Open Source
0BSD
2,022
openrs2
openrs2
Kotlin
Code
146
543
package org.openrs2.util.io import org.junit.jupiter.api.Assertions.assertArrayEquals import java.io.ByteArrayOutputStream import java.io.FilterOutputStream import java.io.OutputStream import kotlin.test.Test import kotlin.test.assertTrue class SkipOutputStreamTest { @Test fun testSkipBytes() { for (n...
8,832
https://github.com/llllVIIII/connectedhomeip/blob/master/examples/temperature-measurement-app/esp32/main/gen/CHIPClustersObjc.mm
Github Open Source
Open Source
Apache-2.0
2,021
connectedhomeip
llllVIIII
Objective-C++
Code
1,344
5,416
/* * * Copyright (c) 2021 Project CHIP Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
12,140
https://github.com/TesterSzymoon/esofiles/blob/master/brainfuck/util/textgen.java
Github Open Source
Open Source
MIT
2,022
esofiles
TesterSzymoon
Java
Code
1,572
4,173
//==================================================================== // TEXTGEN -- BrainF*** Genetic Text Generator // textgen.java // Copyright (C) 2003, 2004 by Jeffry Johnston // Version 0.20 // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public ...
34,403
https://github.com/damoonvisuals/GBA4iOS/blob/master/emu-ex-plus-alpha/GBC.emu/src/libgambatte/src/video/next_m0_time.h
Github Open Source
Open Source
MIT
2,018
GBA4iOS
damoonvisuals
C
Code
39
140
#ifndef NEXT_M0_TIME_H_ #define NEXT_M0_TIME_H_ namespace gambatte { class NextM0Time { unsigned predictedNextM0Time_; public: NextM0Time() : predictedNextM0Time_(0) {} void predictNextM0Time(const class PPU &v); void invalidatePredictedNextM0Time() { predictedNextM0Time_ = 0; } unsigned predictedNextM0Time() ...
11,795
https://github.com/the-cc-dev/composer-packages/blob/master/pug-filter-twig/vendor/phug/renderer/src/Phug/Renderer/Profiler/resources/profiler.js
Github Open Source
Open Source
MIT
2,022
composer-packages
the-cc-dev
JavaScript
Code
212
662
(function () { function each(list, callback) { if ((list || []).length) { for (var i = 0; i < list.length; i++) { callback(list[i]); } } } function hasClass(element, className) { return (new RegExp('\\s' + className + '\\s')).test(' ' + elemen...
45,836
https://github.com/janestreet/ecaml/blob/master/src/buffer_local.mli
Github Open Source
Open Source
MIT, GPL-1.0-or-later, LicenseRef-scancode-other-copyleft, LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,023
ecaml
janestreet
OCaml
Code
5
18
include Buffer_local_intf.Buffer_local (** @inline *)
21,783
https://github.com/becca-bailey/amphtml/blob/master/build-system/babel-plugins/testSetupFile.js
Github Open Source
Open Source
Apache-2.0
2,022
amphtml
becca-bailey
JavaScript
Code
4
20
jest.setTimeout(10000); // eslint-disable-line no-undef
40,295
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/YY- 答题瓜分千万现金-7.5.0(越狱应用)_headers/YYGiftPackageNobleView.h
Github Open Source
Open Source
MIT
2,018
Just_a_dumper
i-gaven
Objective-C
Code
282
1,442
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import <UIKit/UIView.h> @class MarqueeLabel, NSMutableSet, UIButton, UIImageView, UILabel, YYGiftPackageNobleMedalView, YYNobleProgre...
17,341
https://github.com/msaracevic/quantum_anomaly_eve/blob/master/server/src/tasks/eve/generate-market-tree.js
Github Open Source
Open Source
MIT
2,022
quantum_anomaly_eve
msaracevic
JavaScript
Code
122
374
import * as logger from '../../helpers/logger'; import {models} from '../../models'; import {dynamicSortMultiple} from "../../helpers"; async function getSubgroups(marketData, currentId) { let data = []; await Promise.all(marketData.map(async group => { if (group.data.parent_group_id === currentId) { let...
46,574
https://github.com/kojamam/twitter_crawler/blob/master/crawler.php
Github Open Source
Open Source
MIT
2,016
twitter_crawler
kojamam
PHP
Code
181
946
<?php require_once 'Twitter.php'; require_once 'mongoQueue.php'; require_once 'config.php'; $logFile = "crawler.log"; echo "You can kill this process ONLY when this is sleeping.\n\n"; // DBへ接続してコレクションを指定 $mongo = new Mongo(); $db = $mongo->selectDB(DB_NAME); $dataCol = $db->selectCollection(DATA_COLLECTION_NAME); /...
38,520
https://github.com/Andrew1407/DichBox/blob/master/server/src/tests/testData/additionalUsers.ts
Github Open Source
Open Source
MIT
null
DichBox
Andrew1407
TypeScript
Code
152
620
import { UserData } from '../../datatypes'; export const testUsersCreate: UserData[] = [ { name: 'user', email: 'user@gmail.com', passwd: 'hash_passwd' }, { name: 'user', passwd: 'hash_passwd' }, { name: 'user2', email: 'user@gmail.com' }, { email: 'user@gmail.com', pa...
38,417
https://github.com/redscientistlabs/Bizhawk50X-Vanguard/blob/master/Real-Time Corruptor/BizHawk_RTC/libmupen64plus/mupen64plus-video-rice/src/Texture.cpp
Github Open Source
Open Source
MIT
2,021
Bizhawk50X-Vanguard
redscientistlabs
C++
Code
886
2,707
/* Copyright (C) 2003 Rice1964 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it...
19,643
https://github.com/wuxiaoxin730/EHCacheDemo/blob/master/src/main/java/com/wx/ehcache/web/SpringWebConfiguration.java
Github Open Source
Open Source
MIT
null
EHCacheDemo
wuxiaoxin730
Java
Code
49
209
package com.wx.ehcache.web; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.support.ResourceBundleMessageSource; import org.springframework.format.datetime.DateFormatter; import org.springframework.web.servlet.config.an...
11,786
https://github.com/Lawlzer/sharpy-sc2/blob/master/sharpy/combat/combat_manager.py
Github Open Source
Open Source
MIT
2,019
sharpy-sc2
Lawlzer
Python
Code
971
3,701
from typing import List, Dict from sharpy.combat.state_warpprism import StateWarpPrism from sharpy.sc2math import unit_geometric_median from sharpy.managers import UnitValue from .state_step import StateStep from sc2 import UnitTypeId, AbilityId, common_pb, BotAI from sc2.position import Point2 from sc2.unit import U...
26,181
https://github.com/kwokfu/BurningKnight/blob/master/BurningKnight/entity/item/use/TeleportUse.cs
Github Open Source
Open Source
MIT
2,022
BurningKnight
kwokfu
C#
Code
124
432
using System.Collections.Generic; using BurningKnight.entity.component; using BurningKnight.entity.item.use.parent; using BurningKnight.entity.room; using BurningKnight.level.rooms; using BurningKnight.util; using Lens.entity; using Lens.util.camera; using Lens.util.math; using Microsoft.Xna.Framework; namespace Burni...
16,118
https://github.com/pip-services3-dotnet/pip-services3-components-dotnet/blob/master/src/trace/TraceTiming.cs
Github Open Source
Open Source
MIT
2,023
pip-services3-components-dotnet
pip-services3-dotnet
C#
Code
257
659
using System; using System.Collections.Generic; using System.Text; namespace PipServices3.Components.Trace { /// <summary> /// Timing object returned by {@link ITracer.beginTrace} to end timing /// of execution block and record the associated trace. /// /// <example> /// <code> /// var ti...
27,166
https://github.com/logginghub/core/blob/master/logginghub-utils/src/main/java/com/logginghub/utils/CircularArray.java
Github Open Source
Open Source
Apache-2.0
null
core
logginghub
Java
Code
220
540
package com.logginghub.utils; import java.lang.reflect.Array; /** * Very simple circular array. * * @author James * * @param <T> */ public class CircularArray<T> { private T[] data; private int currentPointer; private int startPointer; private int capacity; private int currentSize; ...
49,441
https://github.com/digitronik/widgetastic.patternfly4/blob/master/src/widgetastic_patternfly4/title.py
Github Open Source
Open Source
Apache-2.0
2,023
widgetastic.patternfly4
digitronik
Python
Code
88
285
from widgetastic.widget import ParametrizedLocator from widgetastic.widget import Widget class BaseTitle: """Base class for PF4 title widget Simple widget, but it has component classes and variable heading """ @property def heading_level(self): return self.browser.element(self, parent=se...
16,012
https://github.com/nadeka/sohtu/blob/master/src/app/services/html2image/html2image.service.ts
Github Open Source
Open Source
MIT
2,016
sohtu
nadeka
TypeScript
Code
65
207
import { Injectable } from '@angular/core'; let domtoimage = require('dom-to-image'); @Injectable() export class HTML2ImageService { // Put the HTML string in an IFrame element and use html2image to take // a "snapshot" of the IFrame. toImage(htmlString: string): Promise<string> { let iframe = doc...
39,279
https://github.com/huihui7987/DaPy/blob/master/DaPy/methods/regressors/lr.py
Github Open Source
Open Source
RSA-MD
2,022
DaPy
huihui7987
Python
Code
48
210
from DaPy.methods.core import BaseLinearModel class LinearRegressor(BaseLinearModel): def __init__(self, engine='numpy', learn_rate=0.05, l1_penalty=0, l2_penalty=0, fit_intercept=True): BaseLinearModel.__init__(self, engine, learn_rate, l1_penalty, l2_penalty, fit_intercept) def _forecast(self, X): ...
8,203
https://github.com/sirmyron/spring-boot-vaadin-bootstrap/blob/master/spring-boot-vaadin-multi/settings.gradle
Github Open Source
Open Source
Apache-2.0
2,014
spring-boot-vaadin-bootstrap
sirmyron
Gradle
Code
11
76
rootProject.name = 'spring-vaadin-bootstrap-multi' include 'net.knacht.bootstrap.application' include 'net.knacht.bootstrap.application.model' include 'net.knacht.bootstrap.application.service' include 'net.knacht.bootstrap.application.ui.vaadin'
3,647
https://github.com/keycloak/keycloak/blob/master/adapters/saml/core/src/main/java/org/keycloak/adapters/saml/config/parsers/PrincipalNameMappingParser.java
Github Open Source
Open Source
Apache-2.0
2,023
keycloak
keycloak
Java
Code
201
606
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
14,292
https://github.com/AtlasKC/Rostiss/blob/master/src/org/rostiss/game/entity/spawner/ParticleSpawner.java
Github Open Source
Open Source
WTFPL
2,015
Rostiss
AtlasKC
Java
Code
50
159
package org.rostiss.game.entity.spawner; import org.rostiss.game.entity.particle.Particle; import org.rostiss.game.level.Level; public class ParticleSpawner extends Spawner { private int life; public ParticleSpawner(int x, int y, int life, int amount, Level level) { super(x, y, Type.PARTICLE, amount, level); ...
5,191
https://github.com/feast-dev/feast/blob/master/ui/src/graphics/EntityIcon.tsx
Github Open Source
Open Source
Apache-2.0
2,023
feast
feast-dev
TSX
Code
177
782
import React from "react"; const EntityIcon = ({ size, className, }: { size: number; className?: string; }) => { return ( <svg className={className} width={size} height={size} viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" > <path ...
30,035
https://github.com/dmccloskey/r_statistics/blob/master/r_statistics/r_enrichment.py
Github Open Source
Open Source
MIT
null
r_statistics
dmccloskey
Python
Code
594
2,106
from .r_dependencies import * from .r_base import r_base import collections class r_enrichment(r_base): def import_GODB(self,GO_I='GO.db'): '''import the GO database of choice into the R workspace INPUT: GO_I = string, name of the GO library ''' self.library_bioconductor(GO_...
31,636
https://github.com/ros-planning/moveit2/blob/master/moveit_common/cmake/moveit_package.cmake
Github Open Source
Open Source
BSD-3-Clause
2,023
moveit2
ros-planning
CMake
Code
377
1,086
# Copyright 2021 PickNik Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. ...
48,347
https://github.com/codingminecraft/MarioYoutube/blob/master/src/main/java/components/QuestionBlock.java
Github Open Source
Open Source
MIT
2,022
MarioYoutube
codingminecraft
Java
Code
125
531
package components; import jade.GameObject; import jade.Prefabs; import jade.Window; public class QuestionBlock extends Block { private enum BlockType { Coin, Powerup, Invincibility } public BlockType blockType = BlockType.Coin; @Override void playerHit(PlayerController p...
38,246
https://github.com/DrZoddiak/Nucleus/blob/master/nucleus-modules/src/main/java/io/github/nucleuspowered/nucleus/modules/afk/commands/AFKRefresh.java
Github Open Source
Open Source
MIT
2,022
Nucleus
DrZoddiak
Java
Code
71
333
/* * This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file * at the root of this project for more details. */ package io.github.nucleuspowered.nucleus.modules.afk.commands; import io.github.nucleuspowered.nucleus.modules.afk.AFKPermissions; import io.github.nucleuspowered.nucl...
24,797
https://github.com/cryptowealth-technology/RotateNetworks/blob/master/Birds_vgg16/EWC_vgg16_valid.py
Github Open Source
Open Source
MIT
2,018
RotateNetworks
cryptowealth-technology
Python
Code
390
1,402
import os import cPickle import numpy as np import tensorflow as tf from sklearn.metrics import confusion_matrix from utils import birds_utils from utils import utils_vgg16 from params import Params ######### Modifiable Settings ########## gpu = Params.gpu_ewc # Used GPU nb_cl = Params.nb_cl ...
40,732
https://github.com/kfgodel/extended-functions/blob/master/src/main/java/ar/com/kfgodel/function/boxed/longs/arrays/BoxedLongToArrayOfObjectFunction.java
Github Open Source
Open Source
Apache-2.0
null
extended-functions
kfgodel
Java
Code
19
97
package ar.com.kfgodel.function.boxed.longs.arrays; import ar.com.kfgodel.function.objects.arrays.ObjectToArrayOfObjectFunction; /** * Date: 29/07/17 - 19:57 */ public interface BoxedLongToArrayOfObjectFunction<O> extends ObjectToArrayOfObjectFunction<Long, O> { }
17,029
https://github.com/gcgruen/Lede-computing-databases/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,016
Lede-computing-databases
gcgruen
Ignore List
Code
7
63
.DS_Store .ipynb_checkpoints 311-2014.csv convote_v1.1 convote_v1.1.tar.gz /foundations-homework/14/hp /foundations-homework/14/hp.zip
5,269
https://github.com/ptyagicodecamp/pragmatic_flutter/blob/master/lib/chapter11/db/plugins/unsupported.dart
Github Open Source
Open Source
MIT
2,022
pragmatic_flutter
ptyagicodecamp
Dart
Code
13
36
import '../theme_prefs.dart'; MyDatabase constructDb({bool logStatements = false}) { throw 'Platform not supported'; }
6,434
https://github.com/loupmesquita/RubyCaesar/blob/master/bonus/Caesar.rb
Github Open Source
Open Source
MIT
null
RubyCaesar
loupmesquita
Ruby
Code
275
783
#!/usr/bin/env ruby ## ## EPITECH PROJECT, 2021 ## Caesar ## File description: ## Caesar ## #classes class Error def initialize(string) @string = string end def is_number? true if Float(@string) rescue false end def validate chars = ('a'..'z').to_a + ('A'..'Z').to_a ...
17,332
https://github.com/MrP29/LeetCode/blob/master/Binary_Search/Java/35_Search_Insert_Position.java
Github Open Source
Open Source
Unlicense
null
LeetCode
MrP29
Java
Code
71
154
//Time: O(logN) Space: O(1) class Solution { public int searchInsert(int[] nums, int target) { int min = 0; int max = nums.length - 1; while(min <= max) { int mid = min + (max - min) / 2; //int mid = (min + max) >>> 1; if(nums[mid] == target) ...
43,941
https://github.com/hoggmania/SCIMple-Identity/blob/master/scim-spec/scim-spec-protocol/src/main/java/edu/psu/swe/scim/spec/protocol/BulkResource.java
Github Open Source
Open Source
Apache-2.0
null
SCIMple-Identity
hoggmania
Java
Code
125
608
package edu.psu.swe.scim.spec.protocol; import javax.ws.rs.Consumes; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.Context; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; import javax.ws.rs.core.UriInfo; import edu.psu.swe.scim.spec....
43,285
https://github.com/kivik-beep/farmasia-vr/blob/master/Assets/SteamVR/InteractionSystem/Samples/Scripts/URPMaterialSwitcher.cs
Github Open Source
Open Source
MIT
2,022
farmasia-vr
kivik-beep
C#
Code
183
883
using UnityEngine; using System.Collections; using System.Collections.Generic; #if UNITY_EDITOR && UNITY_URP using UnityEditor; #endif [ExecuteInEditMode] public class URPMaterialSwitcher : MonoBehaviour { public bool children = false; #if UNITY_EDITOR && UNITY_URP private const string searchTemplate = "URP{0} t...
40,867
https://github.com/DamienDev37/madera-2/blob/master/resources/views/projet/index.blade.php
Github Open Source
Open Source
MIT
null
madera-2
DamienDev37
PHP
Code
113
478
@extends('layout') @section('title') Tous les projets @endsection @section('content') <div class="col-12"> <a href="{{ route('projet.create') }}" class="btn btn-success">Ajouter un projet</a> </div> <div class="col-12 table-responsive-sm"> <table class="table table-striped"> <thead> <tr> <th scope...
147
https://github.com/renanrsantos/construsys/blob/master/app/Http/Models/Cadastros/Pessoacontato.php
Github Open Source
Open Source
MIT
2,019
construsys
renanrsantos
PHP
Code
26
98
<?php /** * Description of Pessoacontato * * @author renan.santos */ namespace App\Http\Models\Cadastros; use App\Http\Models\Model; class Pessoacontato extends Model{ protected $fillable = [ 'pectipo','pecprefencial','idpessoa','peccontato' ]; }
49,049
https://github.com/fremontmj/Blot/blob/master/app/blog/render/retrieve/tests/rgb.js
Github Open Source
Open Source
CC0-1.0
2,022
Blot
fremontmj
JavaScript
Code
99
309
describe("rgb", function () { var rgb = require("blog/render/retrieve/rgb"); var mustache = require("mustache"); global.test.blog(); beforeEach(function () { this.request = { protocol: "http", get: function () { return "example.com"; }, }; }); it("turns hex colors into a...
47,185
https://github.com/peter-r-g/persman-10thMTN/blob/master/views/partials/footer.ejs
Github Open Source
Open Source
MIT
2,020
persman-10thMTN
peter-r-g
EJS
Code
48
379
<br> <footer class="navbar d-flex justify-content-between shadow white-transparent"> <div> ©<%= new Date().getFullYear() %> <%= config.websiteName%> </div> <div> Powered by <a href="https://github.com/lilkingjr1/persman" target="_blank">PERSMAN</a>, written by Lyon Jenkins & D. Wolfe</a> </div> </foote...
13,019
https://github.com/mscheetz/SwitcheoApi.NetCore/blob/master/SwitcheoApi.NetCore/SwitcheoApi.NetCore.Tests/Tests/SwitcheoRepositoryTests.cs
Github Open Source
Open Source
MIT
2,021
SwitcheoApi.NetCore
mscheetz
C#
Code
1,468
5,357
using DateTimeHelpers; using SwitcheoApi.NetCore.Core; using SwitcheoApi.NetCore.Data.Interface; using SwitcheoApi.NetCore.Entities; using SwitcheoApi.NetCore.Tests; using System; using System.Linq; using Xunit; namespace SwitcheoApi.NetCore.Data.Tests { public class SwitcheoRepositoryTests { private I...
2,173
https://github.com/ezmaxinc/eZmax-SDK-cpp-restsdk/blob/master/include/eZmaxApi/model/Ezsignsigner_RequestCompound_Contact.h
Github Open Source
Open Source
MIT
null
eZmax-SDK-cpp-restsdk
ezmaxinc
C
Code
416
1,398
/** * eZmax API Definition * This API expose all the functionnalities for the eZmax and eZsign applications. * * The version of the OpenAPI document: 1.1.6 * Contact: support-api@ezmax.ca * * NOTE: This class is auto generated by OpenAPI-Generator 6.0.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit ...
35,143