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/ShrishtiAgarwal/DSA/blob/master/DSA/Graphs/Union_Find.cpp
Github Open Source
Open Source
MIT
null
DSA
ShrishtiAgarwal
C++
Code
238
658
#include <bits/stdc++.h> using namespace std; // } Driver Code Ends //User function Template for C++ int findroot(int a,int par[]) { if(par[a]==a) return a; else { int z=findroot(par[a],par); par[a]=z; return z; } } /* This function does union of 2 nodes a and b */ //...
22,867
https://github.com/gasbarroni8/best-channels/blob/master/django_base/recommend/admin.py
Github Open Source
Open Source
MIT
2,019
best-channels
gasbarroni8
Python
Code
27
94
from django.contrib import admin from .models import Recommend class RecommendAdmin(admin.ModelAdmin): list_display = ( 'checked', 'email', 'category', 'reason', 'create_time',) list_filter = ('checked',) search_fields = ['email', 'category'] admin.site.register(Recommend, RecommendAdmin)
8,057
https://github.com/TropicalSunshine/Pooto-Flight-Data/blob/master/node_modules/office-ui-fabric-react/lib-commonjs/components/Calendar/CalendarDay.js
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,020
Pooto-Flight-Data
TropicalSunshine
JavaScript
Code
2,528
8,830
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = require("react"); var Utilities_1 = require("../../Utilities"); var DateValues_1 = require("../../utilities/dateValues/DateValues"); var FocusZone_1 = require("../../FocusZone"); var Icon_1 = require...
24,253
https://github.com/jasonivey/scripts/blob/master/set_user_types.py
Github Open Source
Open Source
MIT
null
scripts
jasonivey
Python
Code
368
990
import os, re from bisect import bisect_right from .Utils import RecurseDirectory class StringI: "Case insensitive string wrapper" def __init__(self, str): self.mStr = str def __cmp__(self, other): return cmp( self.mStr.lower(), other.mStr.lower() ) def GetInsertionIndex( types, type...
23,873
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/annotated/pos/P125/P125213.conll
Github Open Source
Open Source
CC0-1.0, LicenseRef-scancode-public-domain
2,022
mtaac_cdli_ur3_corpus
cdli-gh
null
Spoken
89
484
#new_text=P125213 # ID FORM SEGM XPOSTAG HEAD DEPREL MISC o.1.1 1(u) 1(u)[ten] NU o.1.2 gurusz gurusz[male] N o.1.3 u4 ud[day] N o.1.4 5(disz)-sze3 5(disz)[one]-sze NU o.2.1 mar-sa-a _ FN o.2.2 gub-ba gub[assigned]-a[-ak][-ø] V o.3.1 ugula ugula[overseer][-ø] N o.3.2 ur-{d}szul-pa-e3 Urszulpa'e[1] PN o.4.1 kiszib3 kisz...
35,382
https://github.com/3A532067/2019chinyi/blob/master/database/factories/ArticleFactory.php
Github Open Source
Open Source
MIT
null
2019chinyi
3A532067
PHP
Code
35
143
<?php use Faker\Generator as Faker; $factory->define(App\Article::class, function (Faker $faker) { return [ 'res_id'=> 0, 'stu_id'=> 0, 'title'=> $faker->sentence(mt_rand(3, 10)), 'content' => $faker->paragraphs(mt_rand(3, 6),true), 'report'=> rand(0,1) , 'photo'=>$...
18,215
https://github.com/4ian/GDevelop/blob/master/newIDE/app/src/stories/I18nProviderDecorator.js
Github Open Source
Open Source
MIT
2,023
GDevelop
4ian
JavaScript
Code
36
106
// @flow import React from 'react'; import { type StoryDecorator } from '@storybook/react'; import { I18nProvider } from '@lingui/react'; const i18nProviderDecorator: StoryDecorator = (Story, context) => ( <I18nProvider language="en"> <Story /> </I18nProvider> ); export default i18nProviderDecorator;
34,451
https://github.com/v1otusc/wondertrader/blob/master/src/Share/SpinMutex.hpp
Github Open Source
Open Source
MIT
null
wondertrader
v1otusc
C++
Code
78
317
#pragma once #include <atomic> #ifdef _MSC_VER #define WIN32_LEAN_AND_MEAN #include <windows.h> #endif class SpinMutex { private: std::atomic<bool> flag = { false }; public: void lock() { for (;;) { if (!flag.exchange(true, std::memory_order_acquire)) break; while (flag.load(std::memory_order_relaxe...
33,150
https://github.com/jaksco/cubicexplorer/blob/master/Source/fCE_OptionsPage_Hotkeys.pas
Github Open Source
Open Source
Condor-1.1
2,021
cubicexplorer
jaksco
Pascal
Code
1,419
5,744
//****************************************************************************** // CubicExplorer // Version: 0.90 // // The contents of this file a...
14,202
https://github.com/matt-lunn/wagtail/blob/master/wagtail/wagtailadmin/static/wagtailadmin/css/layouts/login.less
Github Open Source
Open Source
BSD-3-Clause
2,014
wagtail
matt-lunn
Less
Code
232
1,112
@import "../variables.less"; @import "../mixins.less"; @import "../grid.less"; html{ background-color:@color-grey-1; height:100%; } body{ margin-left: 0px; height:100%; } .wrapper{ max-width:none; } h1{ .nice-padding(); font-weight:300; font-size:2em; line-height:1em; color:whit...
2,974
https://github.com/SkillsFundingAgency/das-providercommitments/blob/master/src/SFA.DAS.ProviderCommitments/SFA.DAS.ProviderCommitments/Configuration/DataProtectionConnectionStrings.cs
Github Open Source
Open Source
MIT
2,022
das-providercommitments
SkillsFundingAgency
C#
Code
23
63
namespace SFA.DAS.ProviderCommitments.Configuration { public class DataProtectionConnectionStrings { public string RedisConnectionString { get; set; } public string DataProtectionKeysDatabase { get; set; } } }
17,850
https://github.com/emayskiy/TestingTool-3/blob/master/TestingTool_3-0/src/CommonModules/ОбщегоНазначенияКлиентСервер/Module.bsl
Github Open Source
Open Source
Apache-2.0
2,020
TestingTool-3
emayskiy
null
Spoken
501
2,489
// Сравнить две строки версий. // // Параметры: // СтрокаВерсии1 - Строка - номер версии в формате РР.{П|ПП}.ЗЗ.СС. // СтрокаВерсии2 - Строка - второй сравниваемый номер версии. // // Возвращаемое значение: // Число - больше 0, если СтрокаВерсии1 > СтрокаВерсии2; 0, если версии равны. // Функция СравнитьВерсии...
42,091
https://github.com/sajustsmile/twitter-blockchain/blob/master/studio/node_modules/@sanity/icons/src/icons/joystickIcon.tsx
Github Open Source
Open Source
Apache-2.0
2,022
twitter-blockchain
sajustsmile
TypeScript
Code
99
451
/* THIS FILE IS AUTO-GENERATED – DO NOT EDIT */ import React, {forwardRef} from 'react' /** * @public */ export const JoystickIcon = forwardRef(function JoystickIcon( props: React.SVGProps<SVGSVGElement>, ref: React.Ref<SVGSVGElement> ) { return ( <svg data-sanity-icon="joystick" width="1em" ...
18,377
https://github.com/exercisecode/alidayu_demo/blob/master/alidayu/src/main/java/com/taobao/api/internal/toplink/remoting/Message.java
Github Open Source
Open Source
Apache-2.0
2,019
alidayu_demo
exercisecode
Java
Code
11
41
package com.taobao.api.internal.toplink.remoting; import java.io.Serializable; public interface Message extends Serializable { }
39,134
https://github.com/ch3ngxuyuan/leadshop/blob/master/admin/src/pages/goods/servicePublish.vue
Github Open Source
Open Source
Apache-2.0
2,021
leadshop
ch3ngxuyuan
Vue
Code
633
2,639
<template> <el-form ref="service" :rules="rules" :model="form" label-width="176px"> <div class="le-header"> <span class="le-before" @click="router('/goods/service')">商品服务</span> <i class="el-breadcrumb__separator el-icon-arrow-right"></i> <span class="le-now">{{ form.id ?...
9,534
https://github.com/HarmlessHarm/Heuristieken/blob/master/boards/board_astar_b1_n1_l6.pkl
Github Open Source
Open Source
MIT
2,018
Heuristieken
HarmlessHarm
Pickle
Code
4,312
15,322
ccopy_reg _reconstructor p0 (cmodules.Objects Board p1 c__builtin__ object p2 Ntp3 Rp4 (dp5 S'gates' p6 (dp7 I0 (I1 I1 I0 tp8 sI1 (I6 I1 I0 tp9 sI2 (I10 I1 I0 tp10 sI3 (I15 I1 I0 tp11 sI4 (I3 I2 I0 tp12 sI5 (I12 I2 I0 tp13 sI6 (I14 I2 I0 tp14 sI7 (I12 I3 I0 tp15 sI8 (I8 I4 I0 tp16 sI9 (I1 I5 I0 tp17 sI10 (I4 I5 I0 tp18...
31,056
https://github.com/PapiKKo/srt.js/blob/master/sample/example3_srt.js
Github Open Source
Open Source
MIT
null
srt.js
PapiKKo
JavaScript
Code
620
2,167
0 00:00:00,000 --> 00:00:15,000 doOnce[0] = true; var g=document.createElement("div"); g.id = "webcam-container"; document.getElementsByTagName( 'body' )[ 0 ].appendChild(g); var time=document.createElement("div"); time.id = "stopwatch"; document.getElementsByTagName( 'body' )[ 0 ].appendChild(time); loadScript('//cdn....
44,197
https://github.com/digitalhurricane-io/browser-detection/blob/master/src/is-mobile-firefox.ts
Github Open Source
Open Source
MIT
null
browser-detection
digitalhurricane-io
TypeScript
Code
29
112
import isIosFirefox from "./is-ios-firefox"; import isFirefox from "./is-firefox"; export default function isMobileFirefox(ua?: string): boolean { ua = ua || window.navigator.userAgent; return ( isIosFirefox(ua) || (/iPhone|iPod|iPad|Mobile|Tablet/i.test(ua) && isFirefox(ua)) ); }
4,210
https://github.com/jg-725/IS219-FlaskAppProject/blob/master/app/__init__.py
Github Open Source
Open Source
BSD-3-Clause
null
IS219-FlaskAppProject
jg-725
Python
Code
209
772
"""A simple flask web app""" import logging import os import flask_login from flask import Flask from flask_bootstrap import Bootstrap5 from flask_cors import CORS from flask_mail import Mail from flask_wtf.csrf import CSRFProtect from app.auth import auth from app.cli import create_database from app.context_processo...
50,767
https://github.com/s-hash-exe/A-December-of-Algorithms-2021/blob/master/December-03/cpp_s-hash-exe.cpp
Github Open Source
Open Source
MIT
null
A-December-of-Algorithms-2021
s-hash-exe
C++
Code
118
604
#include <bits/stdc++.h> using namespace std; bool findWord(vector<vector<char>> &ar, vector<vector<int>> &vis, int n, int m, int x, int y, string word, int k) { if((x<0)||(x>=n)||(y<0)||(y>=m)) { return false; } if(k==word.size()) { return true; } if(ar[x][y]==word[k] && vi...
26,128
https://github.com/Chinachu/node-aribts/blob/master/src/char.ts
Github Open Source
Open Source
MIT
2,022
node-aribts
Chinachu
TypeScript
Code
1,104
3,761
import { decode } from "iconv-lite"; import charTable = require("./char_table"); const charCode = { hiragana: 0x30, katakana: 0x31, mosaic_a: 0x32, mosaic_b: 0x33, mosaic_c: 0x34, mosaic_d: 0x35, prop_ascii: 0x36, prop_hiragana: 0x37, prop_katakana: 0x38, jis_kanji_1: 0x39, ...
21,126
https://github.com/AlexTGM/task-manager/blob/master/server/tasks-service/src/typedefs.ts
Github Open Source
Open Source
MIT
null
task-manager
AlexTGM
TypeScript
Code
32
86
import { gql } from 'apollo-server'; export default gql` type Task { id: ID! title: String description: String } type Query { listTasks: [Task] findTaskById(id: ID!): Task findTasksByIds(ids: [ID]): [Task] } `
697
https://github.com/ArboreusSystems/arboreus_examples/blob/master/qt/QML/ListView/ListView_v11/cpp/Storage/adbrequestadd.cpp
Github Open Source
Open Source
BSD-3-Clause
2,022
arboreus_examples
ArboreusSystems
C++
Code
133
569
// ---------------------------------------------------------- /*! \class ADBRequestAdd \title \brief Template file classes/cpp/file.cpp \list \li @notice Template file classes/file.h \li @copyright Arboreus (http://arboreus.systems) \li @author Alexandr Kirilov (http://alexandr.kirilov.me) \li @created 21/08/2...
14,131
https://github.com/ranggadarmajati/ecomerce-api/blob/master/app/Validators/RegisterRequest.js
Github Open Source
Open Source
MIT
2,021
ecomerce-api
ranggadarmajati
JavaScript
Code
95
286
'use strict' class RegisterRequest { get validateAll() { return true } async fails(errorMessages) { return this.ctx.response.Wrapper( 400, false, "Bad request!", errorMessages ) } get rules() { return { name: 'required', mobile_phone: 'required|unique:use...
22,902
https://github.com/mojanimator/qr/blob/master/app/Http/Requests/SchoolRequest.php
Github Open Source
Open Source
MIT
null
qr
mojanimator
PHP
Code
587
2,635
<?php namespace App\Http\Requests; use App\Rules\Recaptcha; use Illuminate\Foundation\Http\FormRequest; class SchoolRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; ...
17,840
https://github.com/digipost/digg/blob/master/src/test/java/no/digipost/collection/BatchedIterableTest.java
Github Open Source
Open Source
Apache-2.0
2,023
digg
digipost
Java
Code
270
834
/* * Copyright (C) Posten Norge AS * * 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 agr...
33,812
https://github.com/GKAW/EPCC_KFOLD/blob/master/parallel_version/src_omp/ENERGY/tint12.f90
Github Open Source
Open Source
BSD-2-Clause
null
EPCC_KFOLD
GKAW
null
Spoken
3,532
12,587
! ============================================================================== ! Subroutine: TINT12 (LIST,EB) ! ! Purpose: Performs a table lookup for the internal energy for an asymmetric ! mismatch pair between two basepairs in a helix. ! ! Method: Uses the MFOLD 3.0 energy function table for RNA @ T=37. ...
1,186
https://github.com/puggianjv/bowling/blob/master/src/main/java/com/puggian/bowling/model/Ball.java
Github Open Source
Open Source
Apache-2.0
null
bowling
puggianjv
Java
Code
50
134
package com.puggian.bowling.model; public class Ball { private int pins; private boolean fault; public Ball(int pins, boolean fault) { this.pins = pins; this.fault = fault; } public int getPins() { return pins; } @Override public String toString() { if...
13,976
https://github.com/mtcarvalho/docs-connectors/blob/master/ibm-mq/1.6/modules/ROOT/pages/ibm-mq-examples.adoc
Github Open Source
Open Source
BSD-3-Clause
2,022
docs-connectors
mtcarvalho
AsciiDoc
Code
215
465
= IBM MQ Connector Examples - Mule 4 To fully benefit from using Anypoint Connector for IBM MQ (IBM MQ Connector), see the following examples of configuring the connector operations: * xref:ibm-mq-ack.adoc[Manage Message Acknowledgments] + Configure IBM MQ Connector to manage different acknowledgment configurations, ...
17,136
https://github.com/stackprobe/Factory/blob/master/SubTools/GitPublic.c
Github Open Source
Open Source
MIT
2,022
Factory
stackprobe
C
Code
249
1,222
#include "C:\Factory\Common\all.h" #define GIT_ROOTDIR "C:\\huge\\GitHub" #define MEM_ROOTDIR "C:\\huge\\GitMem" #define PUB_ROOTDIR "C:\\huge\\GitPub" static void NormalizeMemRepoDir(char *memRepoDir) { autoList_t *paths = ls(memRepoDir); char *path; uint index; LOGPOS(); foreach(paths, path, index) { char...
22,464
https://github.com/mental2008/cpp-Homework/blob/master/Word_Part/wordwindow.h
Github Open Source
Open Source
MIT
2,017
cpp-Homework
mental2008
C++
Code
72
278
#ifndef WORDWINDOW_H #define WORDWINDOW_H #include <QMainWindow> #include <string> #include <vector> #include "word.h" #include <QCloseEvent> namespace Ui { class WordWindow; } class WordWindow : public QMainWindow { Q_OBJECT public: explicit WordWindow(QWidget *parent = 0); ~WordWindow(); void Star...
1,631
https://github.com/nodmp/guide/blob/master/app/src/main/java/com/nodmp/guide/customize_view/ImageTextView.kt
Github Open Source
Open Source
Apache-2.0
null
guide
nodmp
Kotlin
Code
362
1,457
package com.nodmp.guide.customize_view import android.content.Context import android.graphics.* import android.os.Build import android.text.Layout import android.text.StaticLayout import android.text.TextPaint import android.util.AttributeSet import android.view.View import androidx.core.app.CoreComponentFactory impor...
8,372
https://github.com/Uche-Clare/python-challenge-solutions/blob/master/Darlington/phase1/python Basic 2/day 22 solution/qtn3.py
Github Open Source
Open Source
MIT
2,020
python-challenge-solutions
Uche-Clare
Python
Code
118
322
#program that accept a even number (>=4, Goldbach number) from the user and create a combinations that # express the given number as a sum of two prime numbers. Print the number of combinations. import sys from bisect import bisect_right from itertools import chain, compress print("Input an even number (0 to exit):") ...
25,779
https://github.com/mohsinalimat/AnimatedCollectionViewLayout/blob/master/Source/LayoutAttributesAnimator.swift
Github Open Source
Open Source
MIT
2,017
AnimatedCollectionViewLayout
mohsinalimat
Swift
Code
36
102
// // LayoutAttributesAnimator.swift // AnimatedCollectionViewLayout // // Created by Jin Wang on 8/2/17. // Copyright © 2017 Uthoft. All rights reserved. // import UIKit public protocol LayoutAttributesAnimator { func animate(collectionView: UICollectionView, attributes: PagerCollectionViewLayoutAttributes, ...
49,846
https://github.com/capcaicah/rethinkd-laravel-php/blob/master/src/Query/OptionsInterface.php
Github Open Source
Open Source
Apache-2.0
2,022
rethinkd-laravel-php
capcaicah
PHP
Code
17
55
<?php declare(strict_types = 1); namespace TBolier\RethinkQL\Query; interface OptionsInterface extends \JsonSerializable { public function setDb(string $name): OptionsInterface; }
27,639
https://github.com/B3x0r/build-a-formik-form/blob/master/build/precache-manifest.ad86a4f534dae9a3f3001f1af664aac2.js
Github Open Source
Open Source
MIT
null
build-a-formik-form
B3x0r
JavaScript
Code
36
272
self.__precacheManifest = (self.__precacheManifest || []).concat([ { "revision": "c5069b95e71aaafd3998543f7b4b7ca6", "url": "/index.html" }, { "revision": "af4dd9bccb3e7f99da72", "url": "/static/js/2.34f1c87f.chunk.js" }, { "revision": "fb6fca4f0fa26a7e27d26480a74532c9", "url": "/stati...
38,022
https://github.com/wahello/openshift-installer/blob/master/terraform/openstack/vendor/github.com/hashicorp/hc-install/fs/any_version.go
Github Open Source
Open Source
Apache-2.0
2,018
openshift-installer
wahello
Go
Code
337
891
package fs import ( "context" "fmt" "log" "path/filepath" "github.com/hashicorp/hc-install/errors" "github.com/hashicorp/hc-install/internal/src" "github.com/hashicorp/hc-install/internal/validators" "github.com/hashicorp/hc-install/product" ) // AnyVersion finds an executable binary of any version // either...
52
https://github.com/iridium-browser/iridium-browser/blob/master/third_party/xnnpack/src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p1.c
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-generic-cla, Apache-2.0, LGPL-2.0-or-later, MIT, GPL-1.0-or-later
2,023
iridium-browser
iridium-browser
C
Code
221
559
// Auto-generated file. Do not edit! // Template: src/f32-ibilinear-chw/scalar.c.in // Generator: tools/xngen // // Copyright 2020 Google LLC // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #include <assert.h> #include <xnnpack...
16,160
https://github.com/tannnb/weibo/blob/master/src/components/toast/index.js
Github Open Source
Open Source
MIT
null
weibo
tannnb
JavaScript
Code
49
142
import ToastPortal from './ToastPortal.js'; let messageInstance; function getMessageInstance () { messageInstance = messageInstance || ToastPortal.newInstance(); return messageInstance; } ToastPortal.show = function (options) { let instance = getMessageInstance(); instance.show(options); } ToastPor...
40,784
https://github.com/sipsources/stun4j/blob/master/net/java/stun4j/attribute/OptionalAttributeAttributeTest.java
Github Open Source
Open Source
Apache-2.0
null
stun4j
sipsources
Java
Code
494
1,306
/* */ package net.java.stun4j.attribute; /* */ /* */ import java.util.Arrays; /* */ import junit.framework.TestCase; /* */ import net.java.stun4j.MsgFixture; /* */ import net.java.stun4j.StunException; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* ...
30,169
https://github.com/mikoblog/splitio-requests/blob/master/tests/test_splits_requests.py
Github Open Source
Open Source
MIT
null
splitio-requests
mikoblog
Python
Code
516
3,295
import responses class TestSplitsRequests: @responses.activate def test_get_split(self, admin_api, splits): split_name = 'AEXJLFJPMHGOKQOSWWFG' wsid = '624a3ca1-b777-22e9-b012-0a5ed410077c' responses.add( responses.GET, f"https://api.split.io/internal/api/v2/spl...
5,421
https://github.com/adrobisch/silent-disco-scala/blob/master/app/controllers/Config.scala
Github Open Source
Open Source
MIT
2,013
silent-disco-scala
adrobisch
Scala
Code
32
106
package controllers import play.api.mvc.{Action, Controller} import play.api.Play.current import play.api.Play /** * * @author drobisch */ object Config extends Config class Config extends Controller { def soundCloudClient = Action { Ok(views.html.client(Play.configuration.getString("soundcloud.client.id")...
27,041
https://github.com/Hexav/AJE/blob/master/Kaiper-AST/src/main/java/xyz/avarel/kaiper/parser/parslets/flow/IfElseParser.java
Github Open Source
Open Source
Apache-2.0
2,021
AJE
Hexav
Java
Code
208
683
/* * Licensed under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distribu...
7,589
https://github.com/danwexler/UpscalerJS/blob/master/packages/upscalerjs/src/upscale.ts
Github Open Source
Open Source
MIT
null
UpscalerJS
danwexler
TypeScript
Code
967
2,693
import * as tf from '@tensorflow/tfjs'; import { IUpscaleOptions, IModelDefinition, ProcessFn } from './types'; import { getImageAsPixels } from './image'; import tensorAsBase64 from 'tensor-as-base64'; import { warn } from './utils'; const ERROR_UNDEFINED_PADDING = 'https://thekevinscott.github.io/UpscalerJS/#/?id=...
36,622
https://github.com/yansun2006/camunda-cloud-get-started-master/blob/master/zeebe-demo/src/main/java/com/leyantech/zeebedemo/controller/ProcessInfoController.java
Github Open Source
Open Source
Apache-2.0
null
camunda-cloud-get-started-master
yansun2006
Java
Code
81
415
package com.leyantech.zeebedemo.controller; import com.leyantech.zeebedemo.common.base.ServerResponse; import com.leyantech.zeebedemo.service.ProcessInfoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bin...
47,365
https://github.com/joe2275/GOTTO-Alpha/blob/master/Assets/Scripts/GTAlpha/PlayerInfo.cs
Github Open Source
Open Source
MIT
null
GOTTO-Alpha
joe2275
C#
Code
249
726
using UnityEngine; namespace GTAlpha { /// <summary> /// 플레이어의 저장되고 변하지 않는 정보를 저장하는 클래스 /// </summary> [CreateAssetMenu(fileName = "New Player Information", menuName = "Information/Player", order = 0)] public class PlayerInfo : GlobalScriptableObject { private static PlayerInfo _main; ...
45,238
https://github.com/SugarSpinda/PaperGAE/blob/master/src/com/cloud/papergae/Upload.java
Github Open Source
Open Source
MIT
2,015
PaperGAE
SugarSpinda
Java
Code
361
1,511
package com.cloud.papergae; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.AbstractMap.SimpleEntry; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequ...
32,178
https://github.com/nsiegner/AI-ML-learning/blob/master/2048/Test_game.py
Github Open Source
Open Source
Apache-2.0
2,021
AI-ML-learning
nsiegner
Python
Code
312
1,105
import unittest from Game import * class test_game(unittest.TestCase): def setUp(self): self.game = Game() def test_move_up(self): example1 = [[2, 0, 0, 2], [2, 2, 2, 0], [2, 0, 0, 2], [2, 2, 4, 4]] soultion1 = [[4, 4, 2, 4],...
43,137
https://github.com/Katrixerse/Corius/blob/master/commands/moderation/mute.js
Github Open Source
Open Source
Apache-2.0
2,021
Corius
Katrixerse
JavaScript
Code
492
1,679
const { richEmbed } = require("discord.js"); const ms = require("ms"); const addEntry = require('../../handlers/addDbEntry'); module.exports.run = (bot, message, args, funcs, con) => { const permissionNeeded = "MANAGE_GUILD"; con.query(`SELECT guildMods FROM guildModerators WHERE guildId ="${message.guild.i...
17,826
https://github.com/lyoniionly/django-cobra/blob/master/src/cobra/static/cobra/less/landing.less
Github Open Source
Open Source
Apache-2.0
2,015
django-cobra
lyoniionly
Less
Code
283
1,018
@import url("@{vendor-url}/bootstrap3/less/bootstrap.less"); @import url("variables.less"); body { background-color: #efeeed; color: #465262; font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif; } .col-centered { float: none; margin: 0 auto } .content { position: absolute; width: 100%; ...
12,325
https://github.com/nguyenm02041989/TrangAndroidManTool/blob/master/js/mainview.js
Github Open Source
Open Source
MIT
2,014
TrangAndroidManTool
nguyenm02041989
JavaScript
Code
212
939
var BindCheckTextInput = function(elmId, colName, fieldType, url, recordId) { var rId = (recordId != null ? recordId : ""); var col = colName; var fType = fieldType; var urlReq = url; $("#" + elmId).bind("blur", function() { var u = urlReq + "/?column="+col+"&columntype="+fType+"&value="+$("#" + elmId).val()+"...
36,734
https://github.com/ndesmic/web-synth/blob/master/js/components/wc-svg-line-graph.js
Github Open Source
Open Source
MIT
2,022
web-synth
ndesmic
JavaScript
Code
524
2,057
const pointDefaults = { x: 0, y: 0, color: "#ff0000", size: 2, shape: "circle" }; function windowValue(v, vmin, vmax, flipped = false) { v = flipped ? -v : v; return (v - vmin) / (vmax - vmin); } function center(vlength, vmin, vmax) { const center = (vmax - vmin) / 2; return center - (vlength / 2); } function...
34,230
https://github.com/joendres/nextcloud-filelink/blob/master/src/prefspane/popup/popup.js
Github Open Source
Open Source
MIT
2,021
nextcloud-filelink
joendres
JavaScript
Code
244
673
const msgContainer = document.getElementById("msg_container"); const errorPopup = document.getElementById("error_popup"); const warningPopup = document.getElementById("warning_popup"); const successPopup = document.getElementById("success_popup"); class popup { /** * Show an error * @param {string} err_i...
14,235
https://github.com/aung-than-soe/github-todo-ngrx/blob/master/src/app/app.component.ts
Github Open Source
Open Source
Apache-2.0
null
github-todo-ngrx
aung-than-soe
TypeScript
Code
178
656
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; import { Store } from '@ngrx/store'; import * as TodoActions from './store/todo/todo.actions'; import { Observable } from 'rxjs'; import { distinctUntilChanged } from 'rxjs/operators'; import { Todo } from './models/todo.model'; import { AppState...
14,065
https://github.com/DungntVccorp/HaishinKit.swift/blob/master/Sources/Media/AudioIOComponent.swift
Github Open Source
Open Source
BSD-3-Clause
null
HaishinKit.swift
DungntVccorp
Swift
Code
237
761
import Foundation import AVFoundation final class AudioIOComponent: IOComponent { lazy var encoder: AACEncoder = AACEncoder() lazy var playback: AudioStreamPlayback = AudioStreamPlayback() let lockQueue = DispatchQueue(label: "com.haishinkit.HaishinKit.AudioIOComponent.lock") #if os(iOS) || os(macOS) ...
2,291
https://github.com/zemse/bitcoin3js/blob/master/test/providers/index.js
Github Open Source
Open Source
MIT
2,020
bitcoin3js
zemse
JavaScript
Code
5
58
require('./blockcypher-provider.test.js'); require('./bitaps-provider.test.js'); require('./commons.test.js'); require('./fallback-provider.test.js'); require('./default-provider.test.js');
9,583
https://github.com/mit-plv/kami/blob/master/Kami/Ex/Fifo.v
Github Open Source
Open Source
MIT
2,023
kami
mit-plv
null
Spoken
426
1,202
Require Import Bool String List. Require Import Lib.CommonTactics Lib.ilist Lib.Word Lib.Indexer Lib.StringAsList. Require Import Kami.Syntax Kami.Notations Kami.Semantics. Require Import Kami.Wf Kami.Tactics. Require Import FunctionalExtensionality Eqdep Eqdep_dec. Set Implicit Arguments. Section Fifo. Variable ...
5,964
https://github.com/Alexeiabianna/orange-talents-06-template-ecommerce/blob/master/mercadolivre/src/main/java/com/alexei/mercadolivre/controller/form/compra/RankingForm.java
Github Open Source
Open Source
Apache-2.0
null
orange-talents-06-template-ecommerce
Alexeiabianna
Java
Code
44
175
package com.alexei.mercadolivre.controller.form.compra; import javax.validation.constraints.NotNull; public class RankingForm { @NotNull private Long idCompra; @NotNull private Long idDonoProduto; public RankingForm(Long idCompra, Long idDonoProduto) { this.idCompra = idCompra; t...
51,851
https://github.com/bcgov/family-law-act-app/blob/master/web/src/components/steps/replyFamilyLawMatter/reviewRFLM/pdf/Schedules/Schedule9.vue
Github Open Source
Open Source
Apache-2.0
2,023
family-law-act-app
bcgov
Vue
Code
1,186
5,188
<template> <div v-if="dataReady"> <!-- <Page 10> --> <!-- <Header> --> <div> <div class="new-page" /> <div style="text-align:center;"><b>SCHEDULE 9 – REPLY TO AN APPLICATION ABOUT SPOUSAL SUPPORT – NEW</b></div> <div style="text-align:center;"><b>This is Schedul...
452
https://github.com/OpenTMI/opentmi/blob/master/test/tests_api/results.js
Github Open Source
Open Source
MIT
2,022
opentmi
OpenTMI
JavaScript
Code
474
2,293
/* eslint-disable func-names, prefer-arrow-callback, no-unused-expressions */ // Native components const path = require('path'); const fs = require('fs'); // Third party components const _ = require('lodash'); const superagent = require('superagent'); const {expect} = require('chai'); const logger = require('winston'...
21,225
https://github.com/jceaser/qmk_keymaps/blob/master/planck/baltimore/keymap.c
Github Open Source
Open Source
MIT
2,017
qmk_keymaps
jceaser
C
Code
2,219
8,829
// This layout file is based on the "default" layout. I wanted to add another keyboard, // that was the style I wanted to emulate. #include "planck.h" #include "action_layer.h" #include "keymap_dvorak.h" #ifdef AUDIO_ENABLE #include "audio.h" #endif #include "eeconfig.h" #include "quantum.h" #include "version.h" e...
19,577
https://github.com/drewbrew/warehouse/blob/master/tests/accounts/test_forms.py
Github Open Source
Open Source
Apache-2.0
2,014
warehouse
drewbrew
Python
Code
136
297
# Copyright 2014 Donald Stufft # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
36,160
https://github.com/BrenoC616/Software-Development/blob/master/AULA 21 - 04.10.2021/index.php
Github Open Source
Open Source
MIT
2,021
Software-Development
BrenoC616
PHP
Code
369
1,881
<?php $multiplicaNumeros = array($_POST['multiplica-n1'], $_POST['multiplica-n2']); $somaNumeros = array($_POST['soma-n1'], $_POST['soma-n2']); $subtraiNumeros = array($_POST['subtrai-n1'], $_POST['subtrai-n2']); $divideNumeros = array($_POST['divide-n1'], $_POST['divide-n2']); function multip...
19,899
https://github.com/oxy787/hypersonik/blob/master/src/snd-mixer.c
Github Open Source
Open Source
MIT
2,021
hypersonik
oxy787
C
Code
298
1,075
#include <assert.h> #include <errno.h> #include <limits.h> #include <stddef.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include "list.h" #include "snd-mixer.h" #include "snd-stream.h" struct snd_mixer { struct list *streams; int32_t *work; size_t nsamples; }; int snd_mixer_alloc(struc...
28,492
https://github.com/code-caro/PasswordManager/blob/master/src/main/java/de/blacklinerdev/passwordmanager/gui/checkPassword.java
Github Open Source
Open Source
MIT
null
PasswordManager
code-caro
Java
Code
63
326
package de.blacklinerdev.passwordmanager.gui; public class checkPassword extends javax.swing.JDialog { public checkPassword(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); } @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="G...
24,204
https://github.com/iteaky/random/blob/master/node_modules/ix/src/add/asynciterable-operators/takewhile.ts
Github Open Source
Open Source
Unlicense
null
random
iteaky
TypeScript
Code
51
161
import { AsyncIterableX } from '../../asynciterable'; import { takeWhile } from '../../asynciterable/takewhile'; /** * @ignore */ export function takeWhileProto<TSource>( this: AsyncIterableX<TSource>, predicate: (value: TSource, index: number) => boolean | Promise<boolean>): AsyncIterableX<TSource> { retu...
20,302
https://github.com/Artsdatabanken/data.artsdatabanken.no/blob/master/deploy-www.js
Github Open Source
Open Source
MIT
2,019
data.artsdatabanken.no
Artsdatabanken
JavaScript
Code
87
243
/* Script to move files into correct location on the web server being deployed to node deploy-www.js metabase.json */ const fs = require("fs"); const base = "/home/grunnkart/tilesdata"; const text = fs.readFileSync(process.argv[2]); const data = JSON.parse(text); Object.keys(data).forEach(kode => { if (kode === "me...
1,219
https://github.com/aws-samples/aws-elastic-beanstalk-hardened-security-cdk-sample/blob/master/bin/elastic_beanstalk_cdk_project.ts
Github Open Source
Open Source
MIT-0
null
aws-elastic-beanstalk-hardened-security-cdk-sample
aws-samples
TypeScript
Code
29
124
#!/usr/bin/env node import * as cdk from 'aws-cdk-lib'; import { ElasticBeanstalkCdkStack, ElasticBeanstalkCdkStackProps } from '../lib/elastic_beanstalk_cdk_project-stack'; const app = new cdk.App(); const settings: ElasticBeanstalkCdkStackProps = app.node.tryGetContext('configuration') new ElasticBeanstalkCdkStack(...
44,900
https://github.com/zcatt/MyQtDemos2018/blob/master/b01_GraphicLine/shapeselection.h
Github Open Source
Open Source
MIT
2,020
MyQtDemos2018
zcatt
C++
Code
164
759
#ifndef SHAPESELECTION_H #define SHAPESELECTION_H #include <QPointF> #include <QRectF> #include "shapeitem.h" class QMouseEvent; class CDraftView; class CShapeItem; class C2DSelection { public: C2DSelection(C2DItem *owner, CDraftView *view); virtual ~C2DSelection(); CDraftView* view(void); C2DIt...
25,938
https://github.com/codecov/codecov-exe/blob/master/setup.cake
Github Open Source
Open Source
MIT
2,021
codecov-exe
codecov
C#
Code
52
358
#load "./build/buildData.cake" #load "./build/*.cake" var target = Argument("target", "Default"); testTask.IsDependentOn(buildTask); createChocolateyPackagesTask.IsDependentOn(exportReleaseNotesTask); Task("Cleanup") .Does<BuildData>((data) => { var directories = GetDirectories("./**/bin") + data.Directorie...
334
https://github.com/gaoyoubo/vditor/blob/master/src/ts/toolbar/Undo.ts
Github Open Source
Open Source
MIT
null
vditor
gaoyoubo
TypeScript
Code
44
178
import undoSVG from "../../assets/icons/undo.svg"; import {getEventName} from "../util/getEventName"; import {MenuItem} from "./MenuItem"; export class Undo extends MenuItem { constructor(vditor: IVditor, menuItem: IMenuItem) { super(vditor, menuItem); this.element.children[0].innerHTML = menuItem....
15,392
https://github.com/lwsh1995/spring-boot-2.3.0/blob/master/spring-boot-analysis/src/main/java/spring/boot/controller/IndexController.java
Github Open Source
Open Source
Apache-2.0
null
spring-boot-2.3.0
lwsh1995
Java
Code
22
103
package spring.boot.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/spring/boot") public class IndexController { @GetMapping("/index"...
37,543
https://github.com/vanhonit/create-react-app/blob/master/packages/rro-scripts/template/src/epics.js
Github Open Source
Open Source
MIT
2,018
create-react-app
vanhonit
JavaScript
Code
13
35
import { combineEpics } from 'redux-observable'; const rootEpics = combineEpics(); export default rootEpics;
928
https://github.com/Zealsathish/ovirt-engine/blob/master/frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/tooltip/WidgetTooltip.java
Github Open Source
Open Source
Apache-2.0
2,015
ovirt-engine
Zealsathish
Java
Code
65
325
package org.ovirt.engine.ui.common.widget.tooltip; import org.ovirt.engine.ui.common.widget.tooltip.TooltipConfig.Width; import com.google.gwt.user.client.ui.Widget; /** * Wrapper around Bootstrap Tooltip that sets up oVirt-specific config values. * Use as a drop-in for b:Tooltip. */ public class WidgetTooltip ex...
28,969
https://github.com/cheerz/hungreaz-android/blob/master/app/src/main/java/com/cheerz/casadelrestau/places/bottombar/BottomBarPlaceMvp.kt
Github Open Source
Open Source
MIT
null
hungreaz-android
cheerz
Kotlin
Code
19
85
package com.cheerz.casadelrestau.places.bottombar import com.cheerz.casadelrestau.network.data.MiamzReqPlaceData interface BottomBarPlaceMvp { interface View { fun fillFields(place: MiamzReqPlaceData) } interface Model interface Presenter }
43,178
https://github.com/snapcrafters/slack-term/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,020
slack-term
snapcrafters
Ignore List
Code
5
14
#snapcraft specifics parts stage prime
47,620
https://github.com/LittleHippo2/mh-cms/blob/master/src/main/java/com/songhaozhi/mayday/service/impl/CategoryServiceImpl.java
Github Open Source
Open Source
MIT
2,020
mh-cms
LittleHippo2
Java
Code
161
664
package com.songhaozhi.mayday.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.Cacheable; import org.springframework.stereotype.Service; import org.springframework.tra...
34,119
https://github.com/letsar/maestro/blob/master/packages/maestro/test/evicting_queue_test.dart
Github Open Source
Open Source
MIT
2,020
maestro
letsar
Dart
Code
261
1,052
import 'package:flutter_test/flutter_test.dart'; import 'package:maestro/src/evicting_queue.dart'; void main() { group('EvictingQueue', () { test('isEmpty returns true if no elements and false when at least one', () { final EvictingQueue<int> queue = EvictingQueue<int>(1); expect(queue.isEmpty, isTru...
21,070
https://github.com/carlykube/VirtualScada/blob/master/html/class_php_spec_1_1_formatter_1_1_dot_formatter.js
Github Open Source
Open Source
MIT
2,015
VirtualScada
carlykube
JavaScript
Code
20
190
var class_php_spec_1_1_formatter_1_1_dot_formatter = [ [ "afterExample", "class_php_spec_1_1_formatter_1_1_dot_formatter.html#a7759cc1ddd510a81409ad9bec50472a3", null ], [ "afterSuite", "class_php_spec_1_1_formatter_1_1_dot_formatter.html#a413dad0d7ffa71be9181ee41939a1a1e", null ], [ "beforeSuite", "class_p...
9,065
https://github.com/minghao2016/simaerep/blob/master/R/lint.R
Github Open Source
Open Source
MIT
2,020
simaerep
minghao2016
R
Code
109
365
#' @title wrapper around lintr::lint_packages #' @description throws error when code issues are detected and defines default #' linting rules for this package. #' @details lintr::line_length_linter(120), trailing_whitespace_linter = NULL, #' cyclocomp_linter = lintr::cyclocomp_linter(25) #' @param path character #...
4,419
https://github.com/seandenigris/ApplicationSecurity/blob/master/repository/ApplicationSecurity.package/ASGroupableEntity.class/instance/addGroup..st
Github Open Source
Open Source
MIT
2,019
ApplicationSecurity
seandenigris
null
Spoken
14
32
accessing addGroup: anASGroup " Add anASGroup to the receiver " self groups add: anASGroup
15,848
https://github.com/phrem/open-api/blob/master/libs/api-typescript-rxjs/src/models/DeductionType.ts
Github Open Source
Open Source
MIT
null
open-api
phrem
TypeScript
Code
76
181
// tslint:disable /** * FlowAccount Business API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://...
24,241
https://github.com/Babagilo/nitmproxy/blob/master/src/main/java/com/github/chhsiaoninety/nitmproxy/ConnectionInfo.java
Github Open Source
Open Source
MIT
2,019
nitmproxy
Babagilo
Java
Code
188
513
package com.github.chhsiaoninety.nitmproxy; public class ConnectionInfo { private Address clientAddr; private Address serverAddr; public ConnectionInfo(Address clientAddr) { this.clientAddr = clientAddr; } public ConnectionInfo(Address clientAddr, Address serverAddr) { this.client...
6,697
https://github.com/Azure/azure-cli-extensions/blob/master/src/networkcloud/azext_networkcloud/operations/custom_arguments.py
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, MIT
2,023
azure-cli-extensions
Azure
Python
Code
245
706
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # # Custom code that is added in addition to auto-generated by aaz-dev...
7,116
https://github.com/ita-social-projects/dokazovi-fe/blob/master/src/views/Profile/styles/Sidemenu.styles.ts
Github Open Source
Open Source
MIT
2,021
dokazovi-fe
ita-social-projects
TypeScript
Code
44
151
import { makeStyles, Theme } from '@material-ui/core'; export const useStyles = makeStyles( (theme: Theme) => ({ sidemenuBody: { minWidth: '200px', top: theme.spacing(24), backgroundColor: '#e5e5e5', position: 'absolute', border: 'none', height: `calc(100% - ${theme.spacing(24...
44,457
https://github.com/stanford-ppl/spatial-lang/blob/master/spatial/core/resources/chiselgen/template-level/templates/SystolicArray.scala
Github Open Source
Open Source
MIT
2,018
spatial-lang
stanford-ppl
Scala
Code
1,417
4,515
package templates import ops._ import chisel3._ import chisel3.util import chisel3.util.Mux1H import scala.math._ sealed trait OperationMode object Sum extends OperationMode object Product extends OperationMode object MAC extends OperationMode // multiply-accumulate object Max extends OperationMode object Min extends...
34,876
https://github.com/VippsRai/fvm/blob/master/lib/src/models/settings_model.dart
Github Open Source
Open Source
MIT
2,021
fvm
VippsRai
Dart
Code
83
285
import 'dart:convert'; class FvmSettings { String cachePath; bool skipSetup; bool noAnalytics; bool gitCache; FvmSettings({ this.cachePath, this.skipSetup = false, this.noAnalytics = false, this.gitCache = false, }); factory FvmSettings.fromJson(String jsonString) { return FvmSettin...
25,100
https://github.com/bwaide/caesar-bot/blob/master/app/caesar/gears/thanks-gear.spec.js
Github Open Source
Open Source
MIT
2,016
caesar-bot
bwaide
JavaScript
Code
76
242
let expect = require('chai').expect; let unroll = require('unroll'); let thanks = require('./thanks-gear'); // wrap mochas it function unroll.use(it); describe('Thanks gear', () => { unroll('should react to #message', (done, fixture) => { expect(thanks.regex.test(fixture.message)).to.equal(true); done(); }, [...
37
https://github.com/xieliuduo/datart/blob/master/frontend/src/app/pages/DashBoardPage/components/WidgetManager/WidgetManager.tsx
Github Open Source
Open Source
Apache-2.0
2,022
datart
xieliuduo
TSX
Code
212
544
/** * Datart * * Copyright 2021 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
8,498
https://github.com/siddharthagit/angular-word-merger/blob/master/src/app/common/services/commonhttp.service.ts
Github Open Source
Open Source
MIT
null
angular-word-merger
siddharthagit
TypeScript
Code
83
232
import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import 'rxjs/add/operator/toPromise'; import { environment } from '../../../environments/environment'; @Injectable() export class CommonHttpService { public baseURL = environment.apiBaseURL; // BASE URL to web api private isSer...
24,641
https://github.com/Roizlotolov/WhatsCookingServerApplication/blob/master/src/main/java/mongocollections/Recepe.java
Github Open Source
Open Source
MIT
2,015
WhatsCookingServerApplication
Roizlotolov
Java
Code
214
726
package mongocollections; import java.rmi.NoSuchObjectException; import java.util.ArrayList; import java.util.List; import org.bson.types.ObjectId; import org.mongodb.morphia.annotations.Embedded; import org.mongodb.morphia.annotations.Entity; import org.mongodb.morphia.annotations.Id; import org.mongodb.morphia.anno...
44,150
https://github.com/Yzx835/AISafety/blob/master/utils/custom_utils/plot_utils.py
Github Open Source
Open Source
MIT
2,022
AISafety
Yzx835
Python
Code
181
708
import os import cv2 def plotresult(bg_img_path, manual_img_path, predict_img_path, dst_path): img = cv2.imread(bg_img_path) mask_img = cv2.imread(manual_img_path, 0) # gray ret1, mask_thresh1 = cv2.threshold(mask_img, 100, 255, cv2.THRESH_BINARY) _, contours1, hierarchy1 = cv2.findContours( ...
15,776
https://github.com/skrzym/monday-morning-quarterback/blob/master/Application/Site/mmq/static/js/graphs.js
Github Open Source
Open Source
MIT
2,017
monday-morning-quarterback
skrzym
JavaScript
Code
735
3,028
//Result Colors var colors = {'pass':'#4daf4a','run':'#377eb8','punt':'#e41a1c','fg':'#ff7f00','kneel':'#984ea3'}; console.log(colors); console.log(colors['pass']); function makeTable(error, guessData){ columns = [{ field: 'PlayType', title: 'Play Type' }, { field: 'down', titl...
16,085
https://github.com/hamadaali22/esptaliatwo/blob/master/resources/viewss/admin/profile.blade.php
Github Open Source
Open Source
MIT
2,021
esptaliatwo
hamadaali22
Blade
Code
541
2,935
@extends('layout.mainlayout_admin') @section('content') <!-- Page Wrapper --> <div class="page-wrapper"> <div class="content container-fluid"> <!-- Page Header --> <div class="page-header"> <div class="row"> <div class="col"> <h3 class="page-title">المعلومات الشخصية...
46,437
https://github.com/mrcoco/vokuro-modular/blob/master/src/Providers/SessionProvider.php
Github Open Source
Open Source
BSD-3-Clause
2,020
vokuro-modular
mrcoco
PHP
Code
117
329
<?php declare(strict_types=1); /** * This file is part of the Vökuró. * * (c) Phalcon Team <team@phalcon.io> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace Vokuro\Providers; use Phalcon\Di\DiInterface; use Phalcon\Di\...
47,007
https://github.com/LucyNjoki/rKenyaCensus/blob/master/R/V2_T2.1.R
Github Open Source
Open Source
MIT
2,020
rKenyaCensus
LucyNjoki
R
Code
48
146
#' Volume 2: Table 2.1 #' #' Sub-locations with no people on the census night by Status/Reason #' @docType data #' #' @usage data(V2_T2.1) #' #' @format A data frame with 3 variables: #' \describe{ #' \item{\code{County}}{County} #' \item{\code{Sub-Location}}{Sub Location} #' \item{\code{Status/Reason}}{Status/Reason} ...
31,434
https://github.com/lLexsonl/colegioAppDBI/blob/master/appColegio/Form1.Designer.cs
Github Open Source
Open Source
Apache-2.0
null
colegioAppDBI
lLexsonl
C#
Code
4,280
25,337
namespace appColegio { partial class Form1 { /// <summary> /// Variable del diseñador necesaria. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Limpiar los recursos que se estén usando. /// </summary> ...
11,345
https://github.com/FihlaTV/Calla/blob/master/Calla/lib-jitsi-meet/modules/util/EventEmitterForwarder.d.ts
Github Open Source
Open Source
MIT
2,022
Calla
FihlaTV
TypeScript
Code
142
265
import { EventEmitter } from "events"; export = EventEmitterForwarder; /** * Implements utility to forward events from one eventEmitter to another. * @param src {object} instance of EventEmitter or another class that implements * addListener method which will register listener to EventEmitter instance. * @param de...
48,335
https://github.com/manikanth04/metallb/blob/master/internal/config/validate.go
Github Open Source
Open Source
Apache-2.0
null
metallb
manikanth04
Go
Code
309
766
// SPDX-License-Identifier:Apache-2.0 package config import ( "fmt" "github.com/pkg/errors" ) type Validate func(*configFile) error // DiscardFRROnly returns an error if the current configFile contains // any options that are available only in the FRR implementation. func DiscardFRROnly(c *configFile) error { f...
29,661
https://github.com/Armada2508/InfiniteRecharge/blob/master/src/main/java/frc/robot/routines/FollowPath.java
Github Open Source
Open Source
MIT
2,022
InfiniteRecharge
Armada2508
Java
Code
40
178
package frc.robot.routines; import edu.wpi.first.wpilibj.trajectory.Trajectory; import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; import frc.lib.motion.FollowTrajectory; import frc.robot.subsystems.DriveSubsystem; public class FollowPath extends SequentialCommandGroup { public FollowPath(DriveSubsyst...
32,533