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/GuiltyDolphin/granule/blob/master/source/Checker/Coeffects.hs
Github Open Source
Open Source
BSD-3-Clause
2,018
granule
GuiltyDolphin
Haskell
Code
268
543
{- Deals with compilation of coeffects into symbolic representations of SBV -} {-# LANGUAGE ImplicitParams #-} module Checker.Coeffects where import Control.Monad.State.Strict import Control.Monad.Trans.Maybe import Checker.Monad import Context import Syntax.Identifiers import Syntax.Type import Syntax.Pretty import...
22,289
https://github.com/amirulqayyum/SuperMan-ModdedFiles/blob/master/framework.jar.out/smali_classes2/android/widget/TimePickerClockDelegate$3.smali
Github Open Source
Open Source
Apache-2.0
2,021
SuperMan-ModdedFiles
amirulqayyum
Smali
Code
176
1,140
.class Landroid/widget/TimePickerClockDelegate$3; .super Ljava/lang/Object; .source "TimePickerClockDelegate.java" # interfaces .implements Lcom/android/internal/widget/NumericTextView$OnValueChangedListener; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroid/widget/TimePickerCl...
49,171
https://github.com/suupoo/kss-lab/blob/master/application/resources/views/forum/show.blade.php
Github Open Source
Open Source
MIT
2,019
kss-lab
suupoo
Blade
Code
143
910
@extends('layouts.app') @section('content') <div class="row" id="forum"> <div class="col"> <div class="card text-center"> <div class="card-header"> {{$forum->title}} </div> <div class="card-body"> <h5 class="card-title"></h5> ...
28,304
https://github.com/netcell/dwta/blob/master/src/js/reducers/screen/index.js
Github Open Source
Open Source
LicenseRef-scancode-public-domain
2,016
dwta
netcell
JavaScript
Code
28
80
export default function screen(state = 'menu', action) { switch (action.type) { case 'GO_TO_STORY': return 'story'; case 'GO_TO_GAME': return 'game'; case 'GO_TO_MENU': return 'menu'; default: return state; } }
1,099
https://github.com/liuhaozzu/linux/blob/master/kernels/linux-2.4.0/drivers/i2o/i2o_pci.c
Github Open Source
Open Source
Apache-2.0
2,021
linux
liuhaozzu
C
Code
856
3,277
/* * Find I2O capable controllers on the PCI bus, and register/install * them with the I2O layer * * (C) Copyright 1999 Red Hat Software * * Written by Alan Cox, Building Number Three Ltd * Modified by Deepak Saxena <deepak@plexity.net> * Modified by Boji T Kannanthanam <boji.t.kannanthanam@intel.com> * ...
4,238
https://github.com/ebell451/fortify-cloudscan-plugin/blob/master/src/main/java/org/jenkinsci/plugins/fortifycloudscan/Options.java
Github Open Source
Open Source
Apache-2.0
2,019
fortify-cloudscan-plugin
ebell451
Java
Code
238
560
/* * This file is part of Fortify CloudScan Jenkins plugin. * * 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 ...
17,987
https://github.com/GitPipe/f1/blob/master/vendor/gopkg.in/workanator/go-ataman.v1/generic/bytes_buffer.go
Github Open Source
Open Source
Apache-2.0
2,022
f1
GitPipe
Go
Code
52
137
package generic import "bytes" // bytesBuffer is a proxy for bytes.Buffer. type bytesBuffer struct { bytes.Buffer } func (buf *bytesBuffer) Len() int { return buf.Buffer.Len() } func (buf *bytesBuffer) WriteString(s string) (n int, err error) { return buf.Buffer.WriteString(s) } func (buf *bytesBuffer) WriteANS...
45,925
https://github.com/RashaHussein/manshar/blob/master/web-client/app/scripts/filters/mansharSanitizer.js
Github Open Source
Open Source
BSD-2-Clause
2,015
manshar
RashaHussein
JavaScript
Code
351
968
'use strict'; angular.module('webClientApp') /** * This filter allows custom sanitization to some part of html body. * * This runs most of the html through Angular's sanitizer. But for * some parts like iframes are run through a custom sanitizer to only * allow YouTube embeds. * * @param {!angu...
41,696
https://github.com/santojon/santojon/blob/master/bootstrap.js
Github Open Source
Open Source
MIT
null
santojon
santojon
JavaScript
Code
17
32
/** * Run all described bootratraps */ bootstrap = () => { } // Run bootstrap bootstrap()
23,574
https://github.com/mortend/fuse-studio/blob/master/Source/Simulator/Main/Parser/Ghosting/GhostDataType.cs
Github Open Source
Open Source
MIT
2,022
fuse-studio
mortend
C#
Code
388
1,478
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using Uno.UX; using Uno.UX.Markup.Reflection; namespace Outracks.Simulator.Parser { class GhostDataType : IDataType { readonly string _name; readonly IDataType _baseType; readonly Func<GhostDataType, IEnumera...
45,553
https://github.com/sillsdev/appbuilder-portal/blob/master/source/SIL.AppBuilder.Portal.Frontend/src/ui/routes/users/list/index.tsx
Github Open Source
Open Source
MIT
2,023
appbuilder-portal
sillsdev
TSX
Code
76
246
import { compose, withProps } from 'recompose'; import { withFiltering } from '@data/containers/api/with-filtering'; import { withCurrentUserContext } from '@data/containers/with-current-user'; import { withRoles } from '@data/containers/resources/role'; import { withCurrentOrganization, IProvidedProps as WithCurre...
51,017
https://github.com/open-condo-software/condo/blob/master/apps/condo/domains/billing/utils/accessSchema.js
Github Open Source
Open Source
MIT
2,023
condo
open-condo-software
JavaScript
Code
427
1,101
const { get, uniq, isArray, isEmpty } = require('lodash') const { throwAuthenticationError } = require('@open-condo/keystone/apolloErrorFormatter') const { getById, find } = require('@open-condo/keystone/schema') const { SERVICE } = require('@condo/domains/user/constants/common') async function checkBillingIntegrati...
9,194
https://github.com/kirill-karpin/avrs-cabinet/blob/master/src/app/pages/network/containers/Direct.js
Github Open Source
Open Source
MIT
2,017
avrs-cabinet
kirill-karpin
JavaScript
Code
20
53
import { connect } from 'react-redux' import Direct from '../components/Direct' export default connect( state => ({ users: state.network.direct.users, }), )(Direct)
13,443
https://github.com/rko281/ReStoreForPharo/blob/master/SSW ReStore SQL Entities/Number.extension.st
Github Open Source
Open Source
MIT
2,023
ReStoreForPharo
rko281
null
Spoken
31
73
Extension { #name : #Number } { #category : #'*SSW ReStore SQL Entities' } Number class >> writeSQLTypeOn: aStream using: anSQLDialect [ "Default to single float" aStream nextPutAll: anSQLDialect float ]
7,950
https://github.com/liyue2008/joyqueue/blob/master/joyqueue-server/joyqueue-broker-core/src/main/java/org/joyqueue/broker/config/scan/FileScanner.java
Github Open Source
Open Source
Apache-2.0
2,020
joyqueue
liyue2008
Java
Code
289
759
/** * Copyright 2019 The JoyQueue Authors. * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicabl...
44,243
https://github.com/waves-enterprise/waves-api/blob/master/src/api/transactions/transforms/mass-transfer.ts
Github Open Source
Open Source
MIT
2,020
waves-api
waves-enterprise
TypeScript
Code
137
385
import { ArrayPart, ObjectPart, Schema, StringPart } from "ts-api-validator"; import schemaFields from "../schemaFields"; import { convertAttachmentToBase58, createRemapper } from "../../../utils/remap"; const massTransferSchema = new Schema({ type: ObjectPart, required: true, content: { senderPublicKey: sch...
51,574
https://github.com/Anlon-Burke/vespa/blob/master/searchlib/src/vespa/searchlib/index/postinglisthandle.cpp
Github Open Source
Open Source
Apache-2.0
2,022
vespa
Anlon-Burke
C++
Code
46
155
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "postinglisthandle.h" #include <vespa/searchlib/index/postinglistfile.h> namespace search::index { search::queryeval::SearchIterator * PostingListHandle::createIterator(const PostingListCounts &counts, ...
36,182
https://github.com/opensourceios/crystal-clipboard-ios/blob/master/CrystalClipboard/Extensions/Response+Extensions.swift
Github Open Source
Open Source
MIT
2,017
crystal-clipboard-ios
opensourceios
Swift
Code
82
210
// // Response+Extensions.swift // CrystalClipboard // // Created by Justin Mazzocchi on 9/2/17. // Copyright © 2017 Justin Mazzocchi. All rights reserved. // import Moya extension Response { // MARK: Internal methods func decode<T: Decodable>(to: T.Type) throws -> T { do { r...
11,349
https://github.com/gaurav-nelson/rhacs-docs/blob/master/docs/modules/ROOT/partials/create-policy-from-risk-view.adoc
Github Open Source
Open Source
Apache-2.0
2,021
rhacs-docs
gaurav-nelson
AsciiDoc
Code
122
236
// Module included in the following assemblies: // // * operating/evaluate-security-risks.adoc :_module-type: PROCEDURE [id="create-policy-from-risk-view_{context}"] = Creating a security policy from the risk view [role="_abstract"] While evaluating risks in your deployments in the *Risk* view, when you apply local pa...
23,273
https://github.com/rwaskiewicz/tslint-to-eslint-config/blob/master/src/rules/convertRuleSeverity.ts
Github Open Source
Open Source
MIT
2,020
tslint-to-eslint-config
rwaskiewicz
TypeScript
Code
77
211
import { ESLintRuleSeverity, TSLintRuleSeverity } from "./types"; /** * Converts a TSLint rule severity string to the ESLint equivalent. */ export const convertTSLintRuleSeverity = ( tslintSeverity: TSLintRuleSeverity, ): ESLintRuleSeverity => { return tslintSeverity === "warning" ? "warn" : tslintSeverity; ...
26,578
https://github.com/ryanwischkaemper/aurelia-nw/blob/master/src/content/styles/main.less
Github Open Source
Open Source
Unlicense
2,017
aurelia-nw
ryanwischkaemper
Less
Code
197
540
@import "vendor/genericons/genericons"; @import "mixins"; @import "animations"; @import "window-bar"; body { margin : 0; } .splash { text-align : center; margin : 10% 0 0 0; box-sizing : border-box; .message { font-size : 72px; line-height : 72px; text-shadow : rgba(0, 0, 0, 0.5)...
49,029
https://github.com/maulidul/tugas_akhir/blob/master/application/helpers/link_helper.php
Github Open Source
Open Source
MIT
null
tugas_akhir
maulidul
PHP
Code
54
353
<?php function getcontroller($controller_id=''){ $arr_controll=array( 'apps'=>'a1', 'auth'=>'a2', 'cpanel'=>'c1', 'pages'=>'p1', 'product'=>'p2', 'data_penduduk'=>'k1' ); return array_search($controller_id, $arr_controll); } function version($version_id=1){ $arr_version=array( 'penduduk'=>1, 'v2...
37,203
https://github.com/Otus-DevOps-2021-06/buffstyles_microservices/blob/master/monitoring/telegraf/docker_build.sh
Github Open Source
Open Source
MIT
null
buffstyles_microservices
Otus-DevOps-2021-06
Shell
Code
6
23
#!/bin/bash docker build -t $USER_NAME/telegraf .
27,337
https://github.com/Gigelf-evo-X/evo-X/blob/master/evo-X-Scriptdev2/sql/Updates/0.0.2/r431_mangos.sql
Github Open Source
Open Source
OpenSSL
2,019
evo-X
Gigelf-evo-X
SQL
Code
24
114
UPDATE `creature_template` SET `ScriptName`='npc_zephyr' WHERE `entry`=25967; UPDATE `instance_template` SET `script`='instance_old_hillsbrad' WHERE `map`=560; UPDATE `creature_template` SET `ScriptName`='npc_brazen' WHERE `entry`=18725; UPDATE `creature_template` SET `ScriptName`='npc_erozion' WHERE `entry`=18723;
19,219
https://github.com/tinachats/gifteros/blob/master/resources/views/layouts/includes/account-footer.blade.php
Github Open Source
Open Source
MIT
null
gifteros
tinachats
PHP
Code
52
266
</div> </div> </div> <!-- JQuery --> <script src="{{ asset('plugins/jquery/jquery.min.js') }}"></script> <!-- Bootstrap --> <script src="{{ asset('plugins/bootstrap/js/bootstrap.bundle.min.js') }}"></script> <!-- iziToast --> <script s...
29,045
https://github.com/fjibj/helix/blob/master/helix-core/src/main/java/org/apache/helix/controller/rebalancer/DelayedAutoRebalancer.java
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause, BSD-2-Clause
2,017
helix
fjibj
Java
Code
1,226
4,250
package org.apache.helix.controller.rebalancer; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apa...
9,199
https://github.com/timplab/ambic-epigenome/blob/master/old_isac/capture/analysis/200205_align_all_to_plasmid.sh
Github Open Source
Open Source
MIT
2,020
ambic-epigenome
timplab
Shell
Code
142
649
#!/bin/bash assembly=/kyber/Data/Nanopore/projects/ambic/sigma/plasmid_assembly/polished_singler_2line.fa mmi=/kyber/Data/Nanopore/projects/ambic/sigma/plasmid_assembly/polished_singler_2line.mapont.mmi ref=/mithril/Data/NGS/Reference/cho/picr_ensembl/Cricetulus_griseus_picr.CriGri-PICR.dna.toplevel.fa refmmi=/mithril/...
4,561
https://github.com/androa/naiserator/blob/master/pkg/apis/nais.io/v1alpha1/zz_generated.deepcopy.go
Github Open Source
Open Source
MIT
null
naiserator
androa
Go
Code
1,812
4,551
// +build !ignore_autogenerated // Code generated by deepcopy-gen. DO NOT EDIT. package v1alpha1 import ( runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AccessPolicy) DeepCopyInto(out *AccessPo...
35,489
https://github.com/dsechin/routes-list-backend/blob/master/src/types/route.ts
Github Open Source
Open Source
WTFPL
null
routes-list-backend
dsechin
TypeScript
Code
28
81
import * as z from 'zod'; export const TRoute = z.object({ uuid: z.string(), address: z.string(), mask: z.string(), gateway: z.string(), interface: z.string(), }); export type Route = z.infer<typeof TRoute>;
1,257
https://github.com/Memotech-Bill/MEMU/blob/master/src/circle/include/sys/types.h
Github Open Source
Open Source
Unlicense
2,022
MEMU
Memotech-Bill
C
Code
21
58
/* Dummy types.h for compiling MEMU */ #ifdef SHOW_HDR #warning Circle version of sys/types.h loaded #endif #ifndef H_TYPES #define H_TYPES #endif
45,831
https://github.com/plaid/react-native-plaid-link-sdk/blob/master/android/src/main/java/com/plaid/GlobalFunctions.kt
Github Open Source
Open Source
MIT
2,023
react-native-plaid-link-sdk
plaid
Kotlin
Code
135
449
package com.plaid import com.facebook.react.bridge.WritableArray import com.facebook.react.bridge.WritableMap import com.facebook.react.bridge.WritableNativeArray import com.facebook.react.bridge.WritableNativeMap import org.json.JSONArray import org.json.JSONObject fun convertJsonToMap(jsonObject: JSONObject): Writa...
9,574
https://github.com/GrabarzUndPartner/boilerplate/blob/master/src/js/services/parser.js
Github Open Source
Open Source
MIT
null
boilerplate
GrabarzUndPartner
JavaScript
Code
369
1,217
import packages from '../packages'; const AVAILABLE_INTERACTIONS = ['click', 'touchstart', 'touchmove', 'touchend', 'mousedown', 'mouseup', 'mouseenter', 'mouseleave']; export class ControllerParser { constructor (packages) { this.packages = packages; this.createIntersectionObserver(); } parse (node) {...
36,017
https://github.com/OpenLocalizationTestOrg/ECMA2YamlTestRepo2/blob/master/fulldocset/add/codesnippet/CSharp/3c3d2469-0f69-4cc2-8a35-_2.cs
Github Open Source
Open Source
CC-BY-4.0, MIT
2,017
ECMA2YamlTestRepo2
OpenLocalizationTestOrg
C#
Code
54
122
// Create a ContentInfo object from the inner content obtained // independently from encodedMessage. ContentInfo contentInfo = new ContentInfo(innerContent); // Create a new, detached SignedCms message. SignedCms signedCms = new SignedCms(contentInfo, true); // encodedMessage is the encoded message received from //...
4,624
https://github.com/sgc-fireball/tinyframework/blob/master/src/Console/ConsoleKernel.php
Github Open Source
Open Source
CC-BY-4.0
2,021
tinyframework
sgc-fireball
PHP
Code
770
2,657
<?php declare(strict_types=1); namespace TinyFramework\Console; use TinyFramework\Console\Input\Argument; use TinyFramework\Console\Input\Input; use TinyFramework\Console\Input\InputDefinitionInterface; use TinyFramework\Console\Input\InputInterface; use TinyFramework\Console\Input\Option; use TinyFramework\Console\...
42,612
https://github.com/zero88/msa-sql/blob/master/type/src/main/java/io/github/zero88/qwe/sql/exceptions/DatabaseException.java
Github Open Source
Open Source
Apache-2.0
null
msa-sql
zero88
Java
Code
56
191
package io.github.zero88.qwe.sql.exceptions; import io.github.zero88.qwe.exceptions.CarlException; import io.github.zero88.qwe.exceptions.ErrorCode; public class DatabaseException extends CarlException { public static final ErrorCode CODE = ErrorCode.parse("DATABASE_ERROR"); protected DatabaseException(Erro...
30,929
https://github.com/pombredanne/Enterprise-Driven-OSS-Case-Study-Security-Automation/blob/master/02.preprocessing/02.remove_patterns.py
Github Open Source
Open Source
CC-BY-4.0
2,021
Enterprise-Driven-OSS-Case-Study-Security-Automation
pombredanne
Python
Code
330
843
import json import glob def load_remove_patterns(): """ Load chunks that need to be removed from log files. Each chunk contains the starting and ending command. :return: dict, mapping of project to chunk that needs to be removed """ with open('../results/02.preprocessing/patterns_in_files.jso...
22,719
https://github.com/elcolumbio/mlrepricer/blob/master/mlrepricer/parser.py
Github Open Source
Open Source
Apache-2.0
2,021
mlrepricer
elcolumbio
Python
Code
255
1,011
# -*- coding: utf-8 -*- """ We call this quite hidden in updateprice. https://github.com/elcolumbio/mlrepricer/blob/bf33304667b36bbcd3d67d8e29d7ec667a4744f6/mlrepricer/updateprice.py#L41 . """ import datetime import mws import pandas as pd import xmltodict from . import helper, setup marketplaceid = mws.mws.Marketp...
3,753
https://github.com/Shazil2154/pipedream/blob/master/components/siteleaf/sources/new-site/new-site.mjs
Github Open Source
Open Source
MIT
2,022
pipedream
Shazil2154
JavaScript
Code
40
138
import base from "../common/base.mjs"; export default { ...base, key: "siteleaf-new-site", type: "source", name: "New Site", description: "Emit new event when a new site is created. [See the docs here](https://learn.siteleaf.com/api/sites/#list-your-sites)", version: "0.0.2", async run() { await this...
9,586
https://github.com/glankk/BizHawk/blob/master/BizHawk.Common/BizInvoke/POSIXLibC.cs
Github Open Source
Open Source
MIT
null
BizHawk
glankk
C#
Code
165
526
using System; using System.Runtime.InteropServices; using static BizHawk.Common.BizInvoke.MemoryBlockBase; namespace BizHawk.Common { public static class POSIXLibC { [DllImport("libc.so.6")] public static extern int close(int fd); [DllImport("libc.so.6")] public static extern int memfd_create(string name, ...
15,646
https://github.com/sbr-technologies/mls_property/blob/master/frontend/views/layouts/main.php
Github Open Source
Open Source
BSD-3-Clause
null
mls_property
sbr-technologies
PHP
Code
189
852
<?php /* @var $this \yii\web\View */ /* @var $content string */ use yii\helpers\Html; use yii\bootstrap\Nav; use yii\bootstrap\NavBar; use yii\widgets\Breadcrumbs; use frontend\assets\AppAsset; use common\widgets\Alert; use yii\bootstrap\BootstrapPluginAsset; AppAsset::register($this); $directoryAsset = Yii::$app->...
17,386
https://github.com/Alci6/gofire/blob/master/src/stores/user.js
Github Open Source
Open Source
MIT
2,021
gofire
Alci6
JavaScript
Code
30
84
import {writable} from 'svelte/store'; const template = { displayName: '', photoURL: 'icons/user.svg', email: '', uid: '', }; const user = writable(template); const resetUser = () => user.set(template); export {user, resetUser};
21,197
https://github.com/bernardotc/CE810-2/blob/master/src/core/Asteroid.java
Github Open Source
Open Source
MIT
null
CE810-2
bernardotc
Java
Code
263
779
package core; import utils.Vector2d; import java.awt.*; import java.awt.geom.AffineTransform; import java.util.Arrays; import static core.Constants.*; public class Asteroid extends GameObject { static int nPoints = 16; static double radialRange = 0.6; static Stroke stroke = new BasicStroke(2, BasicStr...
10,088
https://github.com/microsoftjulius/JMTA/blob/master/app/Http/Controllers/TraineesController.php
Github Open Source
Open Source
MIT
2,020
JMTA
microsoftjulius
PHP
Code
584
2,282
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Trainee; use App\Content; use Auth; use DB; use App\Courses; use App\Exports\TraineeExport; use Maatwebsite\Excel\Facades\Excel; class TraineesController extends Controller { public function __construct(){ $this->email_function = ...
46,097
https://github.com/tuslm/os-simulator/blob/master/src/user/rd.cpp
Github Open Source
Open Source
MIT
2,017
os-simulator
tuslm
C++
Code
90
402
#include "../api/api.h" #include "rd.h" #include "rtl.h" #include "parser.h" size_t __stdcall rd(const kiv_os::TRegisters &regs) { //systemove volani do jadra char arg[10][1025]; int argc; kiv_os::TProcess_Startup_Info* rd_info = reinterpret_cast<kiv_os::TProcess_Startup_Info*>(regs.rdx.r); size_t isDir = 1; siz...
2,603
https://github.com/kiranmusze/deutschland/blob/master/deutschland/polizei_brandenburg/models/__init__.py
Github Open Source
Open Source
Apache-2.0
2,022
deutschland
kiranmusze
Python
Code
105
318
# flake8: noqa # import all models into this package # if you have many models here with many references from one model to another this may # raise a RecursionError # to avoid this, import only the models that you directly need like: # from from deutschland.polizei_brandenburg.model.pet import Pet # or import this pac...
46,783
https://github.com/Fyume/SSH_test/blob/master/WebRoot/js/user/index.js
Github Open Source
Open Source
MIT
2,018
SSH_test
Fyume
JavaScript
Code
470
2,752
/** * */ $(document).ready(function(){ loadIndex(); $(window).scroll(function(){ if($(window).scrollTop()>82){ //显示绝对位置div $("#index_title").css("position","fixed"); $("#index_title").css("top","0"); $("#header_right div").css("border","0"); $("#header_right div").css("border-bottom","1px #c0c0c0 ...
43,547
https://github.com/LuisPereira77/timoneiro/blob/master/src/FormFields/AbstractHandler.php
Github Open Source
Open Source
MIT
null
timoneiro
LuisPereira77
PHP
Code
108
413
<?php namespace Isneezy\Timoneiro\FormFields; use Illuminate\Support\Str; use Isneezy\Timoneiro\Traits\Renderable; class AbstractHandler implements HandlerInterface { use Renderable; protected $name; protected $codename; protected $supports = []; public function handle($field, $dataType, $data...
40,570
https://github.com/nikhil12377/rema/blob/master/src/public/static/script.js
Github Open Source
Open Source
ISC
2,022
rema
nikhil12377
JavaScript
Code
316
1,242
var certificate = {}; $(async function() { const cert = $('#certificate'); certificate.title = cert.attr('data-title'); certificate.PNG = cert.attr('data-src') + '.png'; certificate.PDF = cert.attr('data-src') + '.pdf'; window.toast = window['toast-me'].default; $('.visible-pre-completion').prop('hidden', true...
29,752
https://github.com/liujie40/dablog/blob/master/exp-unswnb15.py
Github Open Source
Open Source
CC0-1.0
2,021
dablog
liujie40
Python
Code
3,315
9,103
#!/home/lunpin/conda/bin/python3 import argparse, csv, datetime, gc, gzip, json, math, matplotlib, numpy, os, sys, time matplotlib.use ('Agg') import matplotlib.pyplot import util.util as util import unswnb15.key attackers = ['175.45.176.0', '175.45.176.1', '175.45.176.2', '175.45.176.3'] victims = ['149.171.126.10',...
26,127
https://github.com/pulumi/pulumi/blob/master/sdk/go/common/slice/slice.go
Github Open Source
Open Source
Apache-2.0
2,023
pulumi
pulumi
Go
Code
160
250
// Copyright 2016-2023, Pulumi Corporation. // // 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...
43,214
https://github.com/joyent/freebsd-vpc/blob/master/docs/examples/desktop/teardown.sh
Github Open Source
Open Source
BSD-2-Clause
2,018
freebsd-vpc
joyent
Shell
Code
36
152
#!/bin/sh -- set -x set -e set -u . input.sh vpc ethlink destroy --ethlink-id=${ETHLINK0_ID} vpc switch port disconnect --port-id=${VPCP0_ID} --interface-id=${HOSTLINK_ID} vpc vmnic destroy --vmnic-id=${HOSTLINK_ID} vpc switch port remove --switch-id=${VPCSW0_ID} --port-id=${VPCP0_ID} vpc switch destroy --switch-id=...
17,022
https://github.com/utsutroll/catalogo/blob/master/resources/views/partial/navbar.blade.php
Github Open Source
Open Source
MIT
null
catalogo
utsutroll
PHP
Code
271
1,170
<header class="topbar"> <nav class="navbar navbar-expand-lg navbar-expand-lg bg-light" style="font-family: 'Roboto', sans-serif;font-size: 14px;"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggler" aria-controls="navbarTogglerDemo03" aria-expanded="false" aria-label="...
30,938
https://github.com/korpling/pepperModules-EXMARaLDAModules/blob/master/src/main/java/org/corpus_tools/peppermodules/exmaralda/EXMARaLDA2SaltMapper.java
Github Open Source
Open Source
Apache-2.0
2,015
pepperModules-EXMARaLDAModules
korpling
Java
Code
3,721
12,753
/** * Copyright 2009 Humboldt-Universität zu Berlin, INRIA. * * 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 b...
26,879
https://github.com/pip-services-node/pip-services-facade-node/blob/master/obj/src/routes/FacadeRoutes.js
Github Open Source
Open Source
MIT
null
pip-services-facade-node
pip-services-node
JavaScript
Code
163
684
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const pip_services_commons_node_1 = require("pip-services-commons-node"); const pip_services_commons_node_2 = require("pip-services-commons-node"); const pip_services_components_node_1 = require("pip-services-components-node"); const pip_servi...
6,158
https://github.com/practicefusion/mmecalculator/blob/master/src/Core/PracticeFusion.MmeCalculator.Core/Messages/CalculatedResultAnalysis.cs
Github Open Source
Open Source
MIT
2,022
mmecalculator
practicefusion
C#
Code
146
335
using System; using System.Collections.Generic; using PracticeFusion.MmeCalculator.Core.Entities; namespace PracticeFusion.MmeCalculator.Core.Messages { /// <summary> /// The analysis of the calculated results, summing up MMEs by opioid, and linking /// to the source medications and sigs that were include...
33,669
https://github.com/maxaille/PartyFinance/blob/master/models/User.coffee
Github Open Source
Open Source
MIT
2,015
PartyFinance
maxaille
CoffeeScript
Code
104
284
mongoose = require 'mongoose' bcrypt = require 'bcrypt-nodejs' UserSchema = new mongoose.Schema username: type: String required: true unique: true email: type: String required: true unique: true password: String friends: [type: mongoose.Schema.Types.Objec...
14,302
https://github.com/YichengZhong/Top-Interview-Questions/blob/master/回溯/剑指OfferII084.含有重复元素集合的全排列/permuteUnique.cpp
Github Open Source
Open Source
MIT
2,019
Top-Interview-Questions
YichengZhong
C++
Code
51
285
class Solution { public: vector<vector<int>> v_out; vector<int> temp_nums; vector<vector<int>> permuteUnique(vector<int>& nums) { temp_nums=nums; help(0,nums.size(),temp_nums); set<vector<int>>si(v_out.begin(), v_out.end()); v_out.assign(si.begin(), si.end()); ...
10,456
https://github.com/nandasanchit17/real-time-cpp/blob/master/ref_app/src/mcal/lpc11c24/mcal_config.h
Github Open Source
Open Source
BSL-1.0
null
real-time-cpp
nandasanchit17
C
Code
163
601
/////////////////////////////////////////////////////////////////////////////// // Copyright Joel Winarske 2019. // Distributed under the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt // or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef MCAL_CONFIG_2019_06_25_H_ #define...
25,406
https://github.com/ElevadoresMega/bravo/blob/master/spec/bravo/bill_spec.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,020
bravo
ElevadoresMega
Ruby
Code
318
1,314
# encoding: utf-8 require 'spec_helper' describe 'Bill' do let(:bill) { @bill = Bravo::Bill.new(iva_condition: :consumidor_final, invoice_type: :invoice) } describe '.header' do it 'sets up the header hash' do @header = Bravo::Bill.header(0) expect(@header.size).to be 3 %w[CantReg CbteTipo P...
39,892
https://github.com/Dwinter-44/ZXCalculus.jl/blob/master/src/scalar.jl
Github Open Source
Open Source
MIT
null
ZXCalculus.jl
Dwinter-44
Julia
Code
93
336
import Base: *, ==, copy """ Scalar A struct for recording the scalars when we rewrite ZX-diagrams. """ mutable struct Scalar{P} power_of_sqrt_2::Int phase::P function Scalar{P}(n = 0, p = zero(P)) where {P} return new{P}(Int(n), P(p)) end end function Scalar(n = 0, p = Phase(0//1)) r...
17,333
https://github.com/DabreAdjaratou/linfodrome_cms/blob/master/public/js/media.js
Github Open Source
Open Source
MIT
null
linfodrome_cms
DabreAdjaratou
JavaScript
Code
42
283
$(document).ready(function() { $('.display-type').on('click',function(){ var element=$(this).attr('id'); displayType(element); }); function displayType (element){ if (element == 'liste'){ $('#media-container').attr('class','media-container'); $('.media > div').attr('class','uk-display-inline'); $('.image-icon').att...
27,359
https://github.com/MrCrayfish/Catalogue/blob/master/Forge/src/main/java/com/mrcrayfish/catalogue/platform/ForgeComponentHelper.java
Github Open Source
Open Source
CC0-1.0
2,023
Catalogue
MrCrayfish
Java
Code
66
291
package com.mrcrayfish.catalogue.platform; import com.mrcrayfish.catalogue.platform.services.IComponentHelper; import net.minecraft.network.chat.Component; import net.minecraft.network.chat.MutableComponent; /** * Author: MrCrayfish */ public class ForgeComponentHelper implements IComponentHelper { @Override ...
28,030
https://github.com/Sergey-Mishchenko/EasyPipes/blob/master/Extensions.cs
Github Open Source
Open Source
MIT
2,022
EasyPipes
Sergey-Mishchenko
C#
Code
203
558
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using System; using System.Collections.Generic; using System.Net.Sockets; using System.Text; using System.Thread...
4,910
https://github.com/webmasterdevlin/nextjs-fullstack-mobx-react-lite-mongoose/blob/master/src/pages/api/heroes/index.ts
Github Open Source
Open Source
MIT
2,021
nextjs-fullstack-mobx-react-lite-mongoose
webmasterdevlin
TypeScript
Code
89
253
import type { NextApiRequest, NextApiResponse } from "next"; import nc from "next-connect"; import connectDB from "src/middleware/mongodb"; import { heroFind, heroSave } from "src/services/api/heroService"; const handler = nc() .use(connectDB) .get(async (req: NextApiRequest, res: NextApiResponse) => { try { ...
28,566
https://github.com/mike-normal13/Audio_programming_book_code/blob/master/BookCode/chapters/14YiBOOKexamples/PerformerGroup.hpp
Github Open Source
Open Source
MIT
2,022
Audio_programming_book_code
mike-normal13
C++
Code
64
231
#ifndef PERFORMER_GROUP_H #define PERFORMER_GROUP_H #include <vector> #include "Performer.hpp" class PerformerGroup { public: string name; vector<Performer *> performers; PerformerGroup(string name); string toString(); string perform(vector<Note>...
19,126
https://github.com/saludnqn/Empadronamiento/blob/master/DalSic/generated/GuardiaTiposIngresoController.cs
Github Open Source
Open Source
MIT
null
Empadronamiento
saludnqn
C#
Code
237
911
using System; using System.Text; using System.Data; using System.Data.SqlClient; using System.Data.Common; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Xml; using System.Xml.Serialization; using SubSonic; using SubSonic.Utilities;...
34,857
https://github.com/mevljas/Testing-and-Quality/blob/master/Homework/2.homework/Tests/test_save_no_perm.py
Github Open Source
Open Source
MIT
2,020
Testing-and-Quality
mevljas
Python
Code
128
698
import os, stat import pexpect def test_bst_save_no_perm(): baza = pexpect.pexpect() filename = "p_test.bin" try: fd = open(filename, "w") fd.close() mode = os.stat(filename)[stat.ST_MODE] os.chmod(filename, mode & ~stat.S_IWRITE) baza.expect("command>") ...
2,388
https://github.com/nbox363/simple_crud/blob/master/main/models.py
Github Open Source
Open Source
MIT
null
simple_crud
nbox363
Python
Code
35
159
from django.db import models class Family(models.Model): name = models.CharField(max_length=50) def __str__(self): return self.name class Animal(models.Model): name = models.CharField(max_length=50) family = models.ForeignKey(Family, on_delete=models.PROTECT) date_of_birth = models.Date...
14,065
https://github.com/ainifeiyuan/copy2.0/blob/master/app/weixin/controller/CdnwxController.php
Github Open Source
Open Source
MIT
2,020
copy2.0
ainifeiyuan
PHP
Code
114
625
<?php namespace app\weixin\controller; use cmf\controller\HomeBaseController; use app\weixin\logic\CdnwxLogic; use think\facade\Request; use think\facade\Cache; use think\cache\driver\Redis; // 指定允许被访问的域名 header('Access-Control-Allow-Origin:*'); // 响应类型 header('Access-Control-Allow-Methods:*'); // 响应头设置 header('Access...
51,143
https://github.com/ZimCodes/MonoGameLibrary/blob/master/UI/IUI.cs
Github Open Source
Open Source
Unlicense
null
MonoGameLibrary
ZimCodes
C#
Code
184
442
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.Collections.Generic; using System.Text; namespace MonoGameLibrary.UI { public interface IUI { /// <summary> /// Reset draw properties back to when it was first initialized /// </summary> ...
15,915
https://github.com/Bob-Cottis/jcse.net/blob/master/views/htm/volume1/paper2/v1p2.php
Github Open Source
Open Source
MIT
2,021
jcse.net
Bob-Cottis
PHP
Code
1,444
3,377
<?php session_start(); include_once('/home/jcsete5/public_html/jcse.org/jcse/php_inc/jrnl_subs.php'); $logged_in=is_loggedin(); ?> <!DOCTYPE HTML PUBLIC "-//W3O/DTD HTML//EN"> <html> <head> <title>JCSE Volume 1, Paper 2</title> <meta name="GENERATOR" content="Microsoft FrontPage 6.0"> <meta name="ProgId" content="Fro...
33,908
https://github.com/CelestialCartographers/Loenn/blob/master/src/map_image.lua
Github Open Source
Open Source
MIT
2,023
Loenn
CelestialCartographers
Lua
Code
248
730
local loadedState = require("loaded_state") local utils = require("utils") local celesteRender = require("celeste_render") local viewportHandler = require("viewport_handler") local mapImageGenerator = {} function mapImageGenerator.getMapBounds(map) local rectangles = {} for _, room in ipairs(map.rooms) do ...
27,330
https://github.com/AdamSwenson/TwitterProject/blob/master/TextProcessingTools/TextTools/Replacement/RegexReplacers.py
Github Open Source
Open Source
MIT
null
TwitterProject
AdamSwenson
Python
Code
292
944
""" Created by adam on 5/20/18 """ __author__ = 'adam' import re contraction_patterns = [ (r'//t.co', ''), (r'https|http', ''), (r'won\'t', 'will not'), (r'Won\'t', 'will not'), (r'can\'t', 'cannot'), (r'Can\'t', 'cannot'), (r'i\'m', 'i am'), (r'I\'m', 'i am'), (r'ain\'t', 'is not'...
15,169
https://github.com/PGBSNH19/the-railway-grupp-7/blob/master/Source/Program.cs
Github Open Source
Open Source
MIT
null
the-railway-grupp-7
PGBSNH19
C#
Code
16
38
using System; using System.IO; public class Program { static void Main (string[] args) { } }
25,417
https://github.com/MikeOwino/blade/blob/master/packages/blade-old/src/atoms/Size/__tests__/Size.native.test.js
Github Open Source
Open Source
MIT
2,022
blade
MikeOwino
JavaScript
Code
134
384
import React from 'react'; import { render } from '@testing-library/react-native'; import View from '../../View'; import Size from '../index'; beforeAll(() => jest.spyOn(console, 'error').mockImplementation()); afterAll(() => jest.restoreAllMocks()); describe('Renders <Size /> correctly', () => { it('should apply a...
10,611
https://github.com/guhanjie/wine/blob/master/src/main/java/top/guhanjie/wine/util/ResourceLoaderUtil.java
Github Open Source
Open Source
Apache-2.0
null
wine
guhanjie
Java
Code
294
695
package top.guhanjie.wine.util; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.net.URL; /** * Class Name: ResourceLoaderUtil<br/> * Description: [description] * @time 2016年9月8日 下午2:18:49 * @author GUHANJIE * @version 1.0.0 * @since JDK ...
30,256
https://github.com/syhily/confij/blob/master/confij-documentation/src/test/java/ch/kk7/confij/docs/Reload.java
Github Open Source
Open Source
Apache-2.0
2,022
confij
syhily
Java
Code
149
731
package ch.kk7.confij.docs; import ch.kk7.confij.ConfijBuilder; import ch.kk7.confij.ConfijBuilder.ConfijWrapper; import ch.kk7.confij.source.env.ExplicitPropertiesSource; import org.junit.jupiter.api.Test; import java.net.URL; import java.time.Duration; import java.util.concurrent.atomic.AtomicBoolean; import stati...
24,512
https://github.com/facebook/hhvm/blob/master/hphp/hack/test/typecheck/fc_enum_4.php
Github Open Source
Open Source
PHP-3.01, Zend-2.0, MIT
2,023
hhvm
facebook
Hack
Code
16
29
<?hh // strict // Should fail because bool enum Foo: bool { FOO = true; }
16,030
https://github.com/georgehara/Arca/blob/master/Automated.Arca.Tests/Dummies/SomeBoundedContext.cs
Github Open Source
Open Source
MIT
null
Arca
georgehara
C#
Code
34
135
using Automated.Arca.Abstractions.Core; using Automated.Arca.Attributes.Specialized; using Microsoft.EntityFrameworkCore; namespace Automated.Arca.Tests.Dummies { [BoundedContextAttribute( "ConnectionStrings:SomeDatabaseContext", "MigrationsHistory", "MigrationsHistorySchema" )] public class SomeBoundedContext : Db...
49,380
https://github.com/cthpw103/TTtie-Bot/blob/master/webserver/index.js
Github Open Source
Open Source
MIT
2,017
TTtie-Bot
cthpw103
JavaScript
Code
299
1,136
const e = require("express"), app = e(), bodyParser = require("body-parser"), ejs = require("ejs"), passport = require("passport"), dStrategy = require("passport-discord").Strategy, cookieparser = require("cookie-parser"), session = require("express-session"), appstore = require("express...
47,130
https://github.com/elbart/crypto-crawler-rs/blob/master/crypto-markets/src/exchanges/coinbase_pro.rs
Github Open Source
Open Source
Apache-2.0
2,022
crypto-crawler-rs
elbart
Rust
Code
241
1,048
use super::utils::http_get; use crate::{error::Result, Fees, Market, MarketType, Precision, QuantityLimit}; use serde::{Deserialize, Serialize}; pub(crate) fn fetch_symbols(market_type: MarketType) -> Result<Vec<String>> { match market_type { MarketType::Spot => fetch_spot_symbols(), _ => panic!("...
16,297
https://github.com/2ia/frapid/blob/master/src/Frapid.Web/Areas/Frapid.WebsiteBuilder/Override/Frapid.WebsiteBuilder/Themes/frapid/Layout-Home.cshtml
Github Open Source
Open Source
MIT
2,021
frapid
2ia
C#
Code
67
402
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <title>@ViewBag.Title</title> <link href="/my/template/css/semantic-ui/semantic.min.css" rel=...
14,615
https://github.com/amin507/SIB/blob/master/application/models/Dkmn_msk_model.php
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,021
SIB
amin507
PHP
Code
429
2,052
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Dkmn_msk_model extends CI_Model { // start datatables var $column_order = array(null, 'kode_dokumen', 'trx_dkmn_msk.nama_dokumen', 'nama_kategori', 'kode_lemari', 'file'); //set column field database for datatable orderable var $co...
46,009
https://github.com/llvm-dcpu16/llvm-dcpu16/blob/master/test/CodeGen/X86/2009-02-26-MachineLICMBug.ll
Github Open Source
Open Source
NCSA
2,012
llvm-dcpu16
llvm-dcpu16
LLVM
Code
360
1,021
; RUN: llc < %s -march=x86-64 -mattr=+sse3,+sse41 -mcpu=penryn -stats 2>&1 | grep "8 machine-licm" ; RUN: llc < %s -march=x86-64 -mattr=+sse3,+sse41 -mcpu=penryn | FileCheck %s ; rdar://6627786 ; rdar://7792037 target triple = "x86_64-apple-darwin10.0" %struct.Key = type { i64 } %struct.__Rec = type opaque %struct....
12,442
https://github.com/tagcode/Lexical.FileSystem/blob/master/Lexical.FileSystem/HttpFileSystem.cs
Github Open Source
Open Source
Apache-2.0
2,022
Lexical.FileSystem
tagcode
C#
Code
3,425
9,413
// -------------------------------------------------------- // Copyright: Toni Kalajainen // Date: 3.11.2019 // Url: http://lexical.fi // -------------------------------------------------------- using Lexical.FileSystem.Internal; using Lexical.FileSystem.Utility; using System; using System.Co...
42,748
https://github.com/ufersa/plataforma-sabia/blob/master/packages/admin/src/components/Auth/ForgotPassword.js
Github Open Source
Open Source
MIT
2,021
plataforma-sabia
ufersa
JavaScript
Code
113
319
import React from 'react'; import { Container } from '@material-ui/core'; import { useNotify, Notification } from 'react-admin'; import { Link, useHistory } from 'react-router-dom'; import Form from './AuthForm'; const ForgotPassword = () => { const notify = useNotify(); const history = useHistory(); const handleSu...
52,461
https://github.com/tetrafolium/luci-go/blob/master/common/tsmon/target/target_test.go
Github Open Source
Open Source
Apache-2.0
2,022
luci-go
tetrafolium
Go
Code
532
1,676
// Copyright 2016 The LUCI Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
22,922
https://github.com/musharafaahel/Java-Programming/blob/master/ThrowsDemo.java
Github Open Source
Open Source
MIT
null
Java-Programming
musharafaahel
Java
Code
54
181
import java.io.*; class ThrowsDemo { public static void main(String args[]) throws IOException { System.out.println("Enter a number : "); /*InputStreamReader in = new InputStreamReader(System.in); BufferedReader br = new BifferedReader(in);*/ BufferedReader br = new BufferedReader(new InputStreamReader(Sys...
29,441
https://github.com/pick-stars/flinkx/blob/master/flinkx-connectors/flinkx-connector-pgwal/src/main/java/com/dtstack/flinkx/connector/api/DatabaseBaseRichInputFormat.java
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,022
flinkx
pick-stars
Java
Code
836
3,755
package com.dtstack.flinkx.connector.api; import com.dtstack.flinkx.connector.jdbc.conf.JdbcConf; import com.dtstack.flinkx.connector.jdbc.source.JdbcInputSplit; import com.dtstack.flinkx.connector.jdbc.util.JdbcUtil; import com.dtstack.flinkx.constants.Metrics; import com.dtstack.flinkx.enums.ColumnType; import com.d...
5,552
https://github.com/adamshakhabov/Open-XML-SDK/blob/master/src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_spreadsheetml_2014_11_main.g.cs
Github Open Source
Open Source
MIT
null
Open-XML-SDK
adamshakhabov
C#
Code
1,245
3,589
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Framework; using DocumentFormat.OpenXml.Framework.Metadata; using DocumentFormat.OpenXml.Packaging; using Do...
5,213
https://github.com/sr14978/ICproxy/blob/master/fteproxy/tests/__init__.py
Github Open Source
Open Source
Apache-2.0
2,021
ICproxy
sr14978
Python
Code
27
118
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import test_record_layer import test_relay def suite(): suite = unittest.TestSuite() suite.addTests(test_record_layer.suite()) suite.addTests(test_relay.suite()) return suite if __name__ == '__main__': unittest.TextTestRunner(verbos...
51,404
https://github.com/spring-projects/spring-data-redis/blob/master/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceInvoker.java
Github Open Source
Open Source
Apache-2.0
2,023
spring-data-redis
spring-projects
Java
Code
2,706
6,970
/* * Copyright 2021-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
29,579
https://github.com/GSerjo/Algorithms/blob/master/Source/Algorithms/Stepic2/8.7.2.linq
Github Open Source
Open Source
MIT
2,021
Algorithms
GSerjo
C#
Code
282
832
<Query Kind="Program" /> void Main() { //var number = int.Parse(Console.ReadLine()); var number = 5; var result = Sequence(number); Console.WriteLine(result.Count - 1); Console.WriteLine(string.Join(" ", result)); } private static List<int> Sequence(int target) { if (target == 1) { return new List<int>...
18,489
https://github.com/TheProjecter/tgb-box2d-integration/blob/master/Cpp/Box2D/Box2dUtil.cc
Github Open Source
Open Source
MIT
null
tgb-box2d-integration
TheProjecter
C++
Code
662
1,668
//============================================================================= // Box2dUtil.cc //============================================================================= /* TGB-Box2D-Integration (http://code.google.com/p/tgb-box2d-integration/) Copyright (c) 2009 Michael Woerister Permission is hereby granted, f...
21,040
https://github.com/petrroll/DataStructures/blob/master/FiboHeap/FiboHeap.cs
Github Open Source
Open Source
MIT
2,020
DataStructures
petrroll
C#
Code
1,204
3,231
// #define SIMPLE using FiboHeap; using System; using System.Diagnostics; namespace FibHeap { // // The class is full of Debug.Assert some of which are incredibely slow. While I considered deleting them // ... since they don't add anything to the code at first sight they show some invariants I believe s...
34,027
https://github.com/LinqLover/TelegramClient/blob/master/packages/TelegramClient-UI.package/TCUChatListItem.class/instance/deselect.st
Github Open Source
Open Source
MIT
2,021
TelegramClient
LinqLover
null
Spoken
7
15
event handling deselect self color: Color white.
29,852
https://github.com/ThoughtHaven/Identity/blob/master/src/ThoughtHaven.AspNetCore.Identity.AzureCosmosTable/Startup/TableIdentityServiceCollectionExtensions.cs
Github Open Source
Open Source
MIT
2,018
Identity
ThoughtHaven
C#
Code
62
348
using Microsoft.Extensions.DependencyInjection.Extensions; using ThoughtHaven; using ThoughtHaven.AspNetCore.Identity.AzureCosmosTable; using ThoughtHaven.AspNetCore.Identity.Created; using ThoughtHaven.AspNetCore.Identity.Emails; using ThoughtHaven.AspNetCore.Identity.Keys; using ThoughtHaven.AspNetCore.Identity.Last...
50,639
https://github.com/W-A-James/G-SIM/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,018
G-SIM
W-A-James
Ignore List
Code
10
50
.vscode __pycache__ *.pyc *.csv* *.sh env *.code-workspace BINARY_STAR_SIM_SPECS.txt *.log *TestData
10,208
https://github.com/JaumeGreen/adventofcode/blob/master/2017/2017day7.lisp
Github Open Source
Open Source
Unlicense
2,021
adventofcode
JaumeGreen
Common Lisp
Code
4,755
16,862
(defun children (node) (cdddr node)) (defun nodename (node) (car node)) (defun nodeweight (node) (cadr node)) (defun constructnode (nodename nodeweight &rest children) (apply #'append (list nodename) (list nodeweight) (when (not (eql children nil)) `((->) ,@children)))) (defun find-node (nodename) (loop for i in *n...
4,265
https://github.com/brunoluizdesiqueira/TimeTracking/blob/master/app/controllers/ProjetoController.java
Github Open Source
Open Source
Apache-2.0
null
TimeTracking
brunoluizdesiqueira
Java
Code
132
609
package controllers; import daos.ClienteDAO; import models.Cliente; import models.Projeto; import play.data.Form; import play.data.FormFactory; import play.db.ebean.Transactional; import play.mvc.Controller; import play.mvc.Result; import validadores.ValidadorDeProjeto; import views.html.formularioDeNovoProjeto; imp...
1,537