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/tt9133github/Skyperious/blob/master/skyperious/__init__.py
Github Open Source
Open Source
MIT
2,022
Skyperious
tt9133github
Python
Code
8
20
import conf __version__ = conf.Version __VERSION__ = conf.Version
15,457
https://github.com/halotroop2288/consulo/blob/master/modules/desktop-awt/desktop-ui-impl/src/main/java/com/mxgraph/util/png/mxPngSuggestedPaletteEntry.java
Github Open Source
Open Source
Apache-2.0
2,022
consulo
halotroop2288
Java
Code
453
810
/* * $Id: mxPngSuggestedPaletteEntry.java,v 1.1 2012/11/15 13:26:39 gaudenz Exp $ * Copyright (c) 2001 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * -Redistribu...
37,569
https://github.com/vyashole/bookshelf/blob/master/src/components/BookShelf.js
Github Open Source
Open Source
MIT
null
bookshelf
vyashole
JavaScript
Code
107
359
import React, { Component } from 'react' import { TouchableOpacity } from 'react-native-gesture-handler'; import { StyleSheet, FlatList } from 'react-native' import BookItem from './BookItem'; import { Text } from '@ui-kitten/components'; export default class BookShelf extends Component { renderItem = ({ item }) ...
23,511
https://github.com/polosecki/ton_rfmri_repo/blob/master/fcd_tools/extras/plot_stability.m
Github Open Source
Open Source
BSD-3-Clause
2,019
ton_rfmri_repo
polosecki
MATLAB
Code
182
1,162
function inter = plot_stability(cd,fid) % cd - classifier descriptor alg = cd.alg; K=cd.top_K; method = cd.method; lambda1 = cd.lambda1; lambda2 = cd.lambda2; sel_type = cd.sel_type; thresh = cd.thresh; infname = cd.fnm; s_lambda1 = ''; s_lambda2=''; if cd.lambda1 s_lambda1=sprintf('_lam1_...
19,500
https://github.com/DScheglov/ur2mr-cli/blob/master/lib/condition.js
Github Open Source
Open Source
MIT
2,020
ur2mr-cli
DScheglov
JavaScript
Code
148
338
const { fixAction, line } = require('./utils'); const IsFileCond = ({ input, negate, ignoreCase }) => ({ input: fixAction(input), pattern: negate === 'true' ? '!-f' : '-f', flags: ncFlag(ignoreCase), }); const IsDirCond = ({ input, negate, ignoreCase }) => ({ input: fixAction(input), pattern: negate === 't...
37,697
https://github.com/gradle/gradle/blob/master/subprojects/workers/src/main/java/org/gradle/workers/WorkerExecutor.java
Github Open Source
Open Source
BSD-3-Clause, LGPL-2.1-or-later, LicenseRef-scancode-mit-old-style, EPL-2.0, CDDL-1.0, MIT, LGPL-2.1-only, Apache-2.0, MPL-2.0, EPL-1.0
2,023
gradle
gradle
Java
Code
558
1,046
/* * Copyright 2017 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
50,293
https://github.com/mneira10/SistransI2/blob/master/java-server-master/src/tm/RotondAndesTM.java
Github Open Source
Open Source
MIT
2,017
SistransI2
mneira10
Java
Code
5,390
23,935
package tm; import dao.DAOTablaCarritos; import dao.DAOTablaHistorial; import dao.DAOTablaIngredientes; import dao.DAOTablaItems; import dao.DAOTablaMenus; import dao.DAOTablaMenusProductoIndividual; import dao.DAOTablaProductos; import dao.DAOTablaProductosIndividuales; import dao.DAOTablaProductosPreferidos; import ...
42,037
https://github.com/114snehasish/spring-security-series/blob/master/spring-security-02/src/main/java/com/snehasish/ssc2/service/DBUserDetailsService.java
Github Open Source
Open Source
MIT
null
spring-security-series
114snehasish
Java
Code
103
384
package com.snehasish.ssc2.service; import com.snehasish.ssc2.dao.UserRepository; import com.snehasish.ssc2.model.User; import lombok.RequiredArgsConstructor; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UsernameNotFoundException; import org.spr...
5,119
https://github.com/JosephChataignon/pyclustering/blob/master/ccore/src/container/kdnode.cpp
Github Open Source
Open Source
BSD-3-Clause
2,022
pyclustering
JosephChataignon
C++
Code
451
1,516
/*! @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2020 @copyright BSD-3-Clause */ #include <pyclustering/container/kdnode.hpp> namespace pyclustering { namespace container { kdnode::kdnode(const std::vector<double> & p_data, void * p_payload, const kdnode::ptr & p_left, const kdnode::ptr & p_righ...
20,507
https://github.com/c-yan/yukicoder/blob/master/yc313/1673.py
Github Open Source
Open Source
MIT
null
yukicoder
c-yan
Python
Code
64
153
from sys import stdin readline = stdin.readline N, Q = map(int, readline().split()) c = 0 t = [0] * (N + 1) result = [] for _ in range(Q): L, R = map(int, readline().split()) for i in range(L - 1, R): if t[i] == 0: c += 1 t[i] = 1 elif t[i] == 1: c -= 1 ...
49,798
https://github.com/cats-oss/android-license-sample/blob/master/app/src/main/java/com/github/aakira/license/view/RoadView.kt
Github Open Source
Open Source
Apache-2.0
2,019
android-license-sample
cats-oss
Kotlin
Code
360
1,272
package com.github.aakira.license.view import android.content.Context import android.util.AttributeSet import android.view.LayoutInflater import android.view.View import android.view.ViewTreeObserver import androidx.constraintlayout.widget.ConstraintLayout import kotlinx.android.synthetic.main.view_road.view.* import ...
39,320
https://github.com/MatteCarra/kahoot_loudness_meter_app/blob/master/app/src/main/java/mattecarra/loudnessmeter/protocol/PacketProtocol.kt
Github Open Source
Open Source
MIT
null
kahoot_loudness_meter_app
MatteCarra
Kotlin
Code
176
502
package mattecarra.loudnessmeter.protocol import android.util.SparseArray import androidx.core.util.contains import mattecarra.loudnessmeter.packet.Packet import java.util.HashMap class PacketProtocol { private val incoming = SparseArray<Class<out Packet>>() private val outgoing = HashMap<Class<out Packet>, I...
14,648
https://github.com/jkfierce/leadlearn/blob/master/leadlearn/app/views/tables.blade.php
Github Open Source
Open Source
MIT
2,013
leadlearn
jkfierce
Blade
Code
90
546
@extends('layouts.base') @section('content') <div class="row-fluid"> <div class="span8"> <div class="scroll"> <table class="table"> <tr> <th>Child ID</th> <th>Child</th> <th>Classroom</th> <th>Program</th> <th>Missed Days</th> </tr> <tr> <td>847204</td> <td>John Smi...
43,352
https://github.com/querylayer/presidio/blob/master/presidio-analyzer/presidio_analyzer/predefined_recognizers/text_analytics_dal.py
Github Open Source
Open Source
MIT
null
presidio
querylayer
Python
Code
217
721
import os import requests class TextAnalyticsDal: # pylint: disable=too-many-instance-attributes def __init__(self, logger, tolerate_errors=True): """ Create a new instance of TextAnalyticsDal. :param logger: A logger. :param tolerate_errors: When set to True (default), th...
42,692
https://github.com/n1ck3dcydoom/learning-note/blob/master/practise-learning/src/main/java/daimasuixianglu/_4_string/_2_ReverseStringII.java
Github Open Source
Open Source
MIT
2,022
learning-note
n1ck3dcydoom
Java
Code
140
382
package daimasuixianglu._4_string; public class _2_ReverseStringII { public static void main(String[] args) { String s = "abcdefg"; System.out.println(reverseStr(s, 2)); } public static String reverseStr(String s, int k) { int n = s.length(); char[] cs = s.toCharArray(); ...
29,892
https://github.com/gitbunsin/cms-e-learning/blob/master/public/fonts/lib/config.php
Github Open Source
Open Source
MIT
2,021
cms-e-learning
gitbunsin
PHP
Code
104
583
<?php //configure constants $directory = realpath(dirname(__FILE__)); $document_root = realpath($_SERVER['DOCUMENT_ROOT']); $base_url = ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on' ? 'https' : 'http' ) . '://' . $_SERVER['HTTP_HOST']; if(strpos($directory, $document_root)===0) { $base_url .= str_repl...
9,609
https://github.com/metthal/ccool/blob/master/src/ccoold/device_detector.cpp
Github Open Source
Open Source
MIT
null
ccool
metthal
C++
Code
78
330
#include <spdlog/spdlog.h> #include "device_detector.hpp" #include "devices/all.hpp" #include "logging.hpp" namespace ccool { std::unique_ptr<BaseDevice> DeviceDetector::detect_device(const std::string& interface_name) { spdlog::info("Detecting devices using interface '{}'...", interface_name); _interface = Inter...
37,357
https://github.com/djmarafi/ikasan/blob/master/ikasaneip/visualisation/dashboard/src/main/java/org/ikasan/dashboard/ui/visualisation/component/StatusPanel.java
Github Open Source
Open Source
BSD-3-Clause
null
ikasan
djmarafi
Java
Code
462
2,525
package org.ikasan.dashboard.ui.visualisation.component; import com.vaadin.componentfactory.Tooltip; import com.vaadin.flow.component.*; import com.vaadin.flow.component.button.Button; import com.vaadin.flow.component.html.Label; import com.vaadin.flow.component.orderedlayout.FlexComponent; import com.vaadin.flow.comp...
27,491
https://github.com/b1ackc4t/pan/blob/master/src/controller/PublicShare.java
Github Open Source
Open Source
Apache-2.0
2,022
pan
b1ackc4t
Java
Code
339
1,490
package controller; import java.io.File; import java.io.IOException; import java.text.DateFormat; import javax.servlet.ServletException; import javax.servlet.annotation.MultipartConfig; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; ...
15,430
https://github.com/roth1002/mordred/blob/master/packages/mordred/src/webpack.ts
Github Open Source
Open Source
MIT
2,021
mordred
roth1002
TypeScript
Code
139
387
import { Compiler } from 'webpack' import JoyCon from 'joycon' import { Mordred } from './' type PluginConfigObject = { resolve: string options?: any } type MordredConfigPlugins = PluginConfigObject[] export type MordredConfig = { plugins?: MordredConfigPlugins } let initialized = false export class MordredW...
14,664
https://github.com/gopherd/gonum/blob/master/mat/diagonal.go
Github Open Source
Open Source
BSD-3-Clause
null
gonum
gopherd
Go
Code
1,285
3,182
// Copyright ©2018 The Gonum Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mat import ( "math" "github.com/gopherd/gonum/blas" "github.com/gopherd/gonum/blas/blas64" ) var ( diagDense *DiagDense _ Matrix ...
44,152
https://github.com/vatbub/hangman-solver/blob/master/src/main/resources/mergedLanguages/wn-merged-syc.tab
Github Open Source
Open Source
LicenseRef-scancode-public-domain, CC-BY-SA-3.0, Apache-2.0
2,021
hangman-solver
vatbub
SQL
Code
180
1,165
# Wiktionary syc http://wiktionary.org/ CC BY-SA 00631391-a syc:lemma ܬܪܨ 01677433-a syc:lemma ܪܒܐ 00219012-n syc:lemma ܩܛܠ 01015310-n syc:lemma ܚܨܕܐ 01726692-n syc:lemma ܚܘܝܐ 01726692-n syc:lemma ܚܘܘܝܬܐ 01887623-n syc:lemma ܬܘܪܐ 02083672-n syc:lemma ܟܠܒܬܐ 02129604-n syc:lemma ܛܝܓܪܝܣ 03986704-n syc:lemma ܐܙܓܐ 03986704-...
11,476
https://github.com/Ashwanigupta9125/code-DS-ALGO/blob/master/Problems in Java/Lecture/L20/L20/PriorityQueue.java
Github Open Source
Open Source
MIT
2,022
code-DS-ALGO
Ashwanigupta9125
Java
Code
222
742
package L20; import java.util.ArrayList; public class PriorityQueue { ArrayList<Integer> heap; public PriorityQueue() { heap = new ArrayList<Integer>(); heap.add(null); } public int getSize() { return heap.size() - 1; } public boolean isEmpty() { return (getSize() == 0); } public int min() { if(...
38,827
https://github.com/jpcima/ADLplug/blob/master/sources/opn2/adl/player.cc
Github Open Source
Open Source
BSL-1.0, LicenseRef-scancode-unknown-license-reference
2,021
ADLplug
jpcima
C++
Code
257
886
// Copyright Jean Pierre Cimalando 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at // http://www.boost.org/LICENSE_1_0.txt) #include "player.h" #include <stdexcept> void Player::init(unsigned sample_rate) { OPN2_MIDIPlayer *pl =...
21,865
https://github.com/hispindia/MAHARASHTRA-2.13/blob/master/dhis-2/dhis-services/dhis-service-datamart-default/src/test/java/org/hisp/dhis/datamart/crosstab/CrossTabServiceTest.java
Github Open Source
Open Source
BSD-3-Clause
null
MAHARASHTRA-2.13
hispindia
Java
Code
834
2,516
package org.hisp.dhis.datamart.crosstab; /* * Copyright (c) 2004-2013, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the ab...
50,760
https://github.com/modux4s/modux/blob/master/modules/plugin/src/main/java/modux/plugin/classutils/FileTool.java
Github Open Source
Open Source
MIT
2,022
modux
modux4s
Java
Code
148
545
package modux.plugin.classutils; import org.apache.commons.compress.archivers.tar.TarArchiveEntry; import org.apache.commons.compress.archivers.tar.TarArchiveInputStream; import org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream; import java.io.*; import java.nio.file.Files; import java.nio.file....
24,997
https://github.com/hotrush/laravel-signer/blob/master/tests/SignatureTest.php
Github Open Source
Open Source
MIT
2,023
laravel-signer
hotrush
PHP
Code
182
833
<?php declare(strict_types=1); namespace Hotrush\Signer\Tests; use Hotrush\Signer\Signature; use Illuminate\Foundation\Testing\WithFaker; class SignatureTest extends TestCase { use WithFaker; public function test_encoding(): void { $hash = $this->faker->uuid(); $expiresAt = now()->addHo...
23,753
https://github.com/MattDowens/bootstrap/blob/master/pycftboot/revised-ising-gap.py
Github Open Source
Open Source
MIT
2,018
bootstrap
MattDowens
Python
Code
820
2,590
import bootstrap import matplotlib.pyplot as plt import time import datetime import numpy as np from matplotlib.backends.backend_pdf import PdfPages class Grid(object): def __init__(self, dim, kmax, lmax, mmax, nmax, allowed_points, disallowed_points): self.dim = dim self.kmax = kmax self.lmax = lmax self.mma...
8,307
https://github.com/xie-wenjie/AndroidBaseApplicationSourse/blob/master/apps/QuickSearchBox/src/com/android/quicksearchbox/google/GoogleSuggestionProvider.java
Github Open Source
Open Source
MIT
null
AndroidBaseApplicationSourse
xie-wenjie
Java
Code
392
1,119
/* * Copyright (C) 2008 The Android Open Source Project * * 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 app...
24,532
https://github.com/Screaming-Onion/CSharp-API-Project/blob/master/src/App/App.Dto/Logs/LogErrorInfo.cs
Github Open Source
Open Source
MIT
2,020
CSharp-API-Project
Screaming-Onion
C#
Code
49
121
namespace App.Dto.Logs { public class LogErrorInfo { public string ErrorMessage { get; } public System.Exception Exception { get; } public bool IsException { get; } public LogErrorInfo(string errorMessage) { ErrorMessage = errorMessage; IsExceptio...
8,658
https://github.com/lehnenb/examples/blob/master/upload/main.go
Github Open Source
Open Source
MIT
2,018
examples
lehnenb
Go
Code
255
881
// Command upload is a chromedp example demonstrating how to upload a file on a // form. package main import ( "context" "flag" "fmt" "io/ioutil" "log" "net/http" "os" "github.com/chromedp/chromedp" ) var flagPort = flag.Int("port", 8544, "port") func main() { flag.Parse() // get wd wd, err := os.Getwd(...
7,111
https://github.com/evergreen-ci/spruce/blob/master/src/pages/task/taskTabs/buildBaronAndAnnotations/AddIssueModal/AddIssueModal.test.tsx
Github Open Source
Open Source
Apache-2.0
2,023
spruce
evergreen-ci
TSX
Code
358
1,550
import { MockedProvider } from "@apollo/client/testing"; import { RenderFakeToastContext } from "context/toast/__mocks__"; import { AddAnnotationIssueMutation, AddAnnotationIssueMutationVariables, } from "gql/generated/types"; import { getSpruceConfigMock } from "gql/mocks/getSpruceConfig"; import { ADD_ANNOTATION ...
47,895
https://github.com/wuchunfu/EngineX/blob/master/jar-enginex-manager/src/main/java/com/risk/riskmanage/datamanage/model/Field.java
Github Open Source
Open Source
Apache-2.0
2,022
EngineX
wuchunfu
Java
Code
1,039
3,184
package com.risk.riskmanage.datamanage.model; import com.risk.riskmanage.common.model.BasePage; import java.io.Serializable; import java.util.Date; import java.util.List; public class Field extends BasePage implements Serializable { private static final long serialVersionUID = 1L; /** * 主键 * */ private Lon...
25,399
https://github.com/GI-Backyard/BasicRayTracing/blob/master/BasicRayTracing/sphere.cpp
Github Open Source
Open Source
MIT
null
BasicRayTracing
GI-Backyard
C++
Code
205
509
// // sphere.cpp // BasicRayTracing // // Created by huabingxu on 2019/3/28. // Copyright © 2019 harrisonxu. All rights reserved. // #include "sphere.hpp" #include "material.h" Sphere::~Sphere() { delete mtl; } bool Sphere::hit(const Ray& r, float tMin, float tMax, HitRecord& rec) const { Vec3 ac = r.orig...
27,053
https://github.com/mikangogo/JRTrainPack/blob/master/Rock_On/Train/JR/Plugin/ATS_East/signal_pattern.nut
Github Open Source
Open Source
Condor-1.1
2,022
JRTrainPack
mikangogo
Squirrel
Code
6,124
26,876
function get_brake_pattern_offset(limit_speed) { return 0; } function get_incoming_pattern_offset(limit_speed) { return 0; } function lookup_brake_pattern(limit_speed, accum_distance, target_distance, offset_distance) { local brake_pattern_table = { [0] = 10.0, [1] = 10.0, [2] = 10.0, [3] = 10.0, [4] =...
39,067
https://github.com/qrvd/discord-unix-bot/blob/master/bin/pick
Github Open Source
Open Source
BSL-1.0
2,020
discord-unix-bot
qrvd
Shell
Code
186
532
#!/bin/bash set -ueo pipefail et="$(cat var/drop/event-type)" if [ "$et" != 'drop' ] && [ "$et" != 'xpdrop' ]; then # wrong event exit 10 elif [ -e var/drop/has-picked ]; then # already picked exit 50 elif [ "$SRCID" != "$(cat var/drop/stream)" ]; then # wrong stream exit 100 fi userid="$AUTHORID" sid="$SRCID" ...
22,081
https://github.com/balena-io/balena-cli/blob/master/tests/test-data/projects/docker-compose/basic/.dockerignore
Github Open Source
Open Source
Apache-2.0
2,023
balena-cli
balena-io
Ignore List
Code
2
15
service1/test-ignore* **/.dockerignore
47,893
https://github.com/octoblu/nanocyte-component-function/blob/master/test/function-spec.coffee
Github Open Source
Open Source
MIT
2,017
nanocyte-component-function
octoblu
CoffeeScript
Code
225
696
child_process = require 'child_process' CallbackComponent = require 'nanocyte-component-callback' Function = require '../src/function' describe 'Function', -> beforeEach -> @envelope = thanks: "ERIK" @childObject = on: sinon.stub() send: sinon.spy() kill: sinon.spy() @child_process = ...
11,952
https://github.com/alonisser/knesset-data-pipelines/blob/master/datapackage_pipelines_knesset/common/db.py
Github Open Source
Open Source
MIT
2,017
knesset-data-pipelines
alonisser
Python
Code
75
306
from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine, MetaData import os, logging def get_engine(connection_string=None): if not connection_string: connection_string = os.environ["DPP_DB_ENGINE"] if connection_string.startswith("sqlite:///../"): relpath = connection_stri...
20,275
https://github.com/uccser/cs-unplugged/blob/master/csunplugged/general/management/__init__.py
Github Open Source
Open Source
LicenseRef-scancode-secret-labs-2011, MIT, OFL-1.1, LGPL-2.0-or-later, AGPL-3.0-only, CC-BY-4.0, Apache-2.0, BSD-3-Clause, CC-BY-SA-4.0, LicenseRef-scancode-public-domain, LicenseRef-scancode-other-copyleft, LicenseRef-scancode-unknown-license-reference
2,023
cs-unplugged
uccser
Python
Code
8
12
"""Module for the management of the general application."""
38,655
https://github.com/KristenWegner/sec_mem/blob/master/checksum.h
Github Open Source
Open Source
MIT
2,022
sec_mem
KristenWegner
C
Code
226
731
// checksum.h #include "config.h" #ifndef INCLUDE_CHECKSUM_H #define INCLUDE_CHECKSUM_H 1 #define CRCPOLY 0xEDB88320 #define CRCINIT 0xFFFFFFFF void sec_crc_initialize(void *restrict s) { register uint32_t i, x, j, c; register uint32_t* p = (uint32_t*)s; for (i = UINT32_C(0); i <= UINT32_C(0xFF); ++i) { ...
49,075
https://github.com/VEASTARK/jMetal/blob/master/resources/weightVectorFiles/mombi2/weight_05D.sld
Github Open Source
Open Source
MIT
2,022
jMetal
VEASTARK
Scheme
Code
1,053
7,579
# 210 5 1.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 8.333333e-01 1.666667e-01 0.000000e+00 0.000000e+00 0.000000e+00 8.333333e-01 0.000000e+00 1.666667e-01 0.000000e+00 0.000000e+00 8.333333e-01 0.000000e+00 0.000000e+00 1.666667e-01 0.000000e+00 8.333333e-01 0.000000e+00 0.000000e+00 0.000000e...
32,142
https://github.com/mdecourse/simExtMTB/blob/master/CMakeLists.txt
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,021
simExtMTB
mdecourse
CMake
Code
35
303
cmake_minimum_required(VERSION 3.15) project(simExtMTB) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_MACOSX_RPATH 1) find_package(Boost REQUIRED) if(NOT LIBPLUGIN_DIR) if(DEFINED ENV{COPPELIASIM_ROOT_DIR}) set(LIBPLUGIN_DIR $ENV{COPPELIASIM_ROOT_DIR}/programming/libPlugin) else() set(LIBPLUGIN...
1,525
https://github.com/pyDebugger/Cells/blob/master/core/src/ch/crowdev/cells/Cells.java
Github Open Source
Open Source
MIT
2,021
Cells
pyDebugger
Java
Code
417
1,251
package ch.crowdev.cells; import com.badlogic.gdx.ApplicationAdapter; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.graphics.g2d.Sprite; import com.badlogic.gdx.graphics.g2d.SpriteBatch; im...
44,596
https://github.com/cjellick/auth/blob/master/tokens/api_server.go
Github Open Source
Open Source
Apache-2.0
2,017
auth
cjellick
Go
Code
867
2,976
package tokens import ( "context" "fmt" log "github.com/sirupsen/logrus" "strings" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" "github.com/rancher/types/apis/management.cattle.io/v3" "github.com/rancher/types/config" ) const ( defaultSecret = "secret" defaultTok...
2,105
https://github.com/openid-certification/-conformance-suite/blob/master/src/main/java/net/openid/conformance/condition/as/EnsureRedirectUriInRequestObjectMatchesOneOfClientRedirectUris.java
Github Open Source
Open Source
MIT
2,022
-conformance-suite
openid-certification
Java
Code
102
435
package net.openid.conformance.condition.as; import com.google.common.base.Strings; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import net.openid.conformance.condition.AbstractCondition; import net.openid.conformance.condition.PostEnvironment; import net.openid.conformance.condition.PreEnviro...
49,971
https://github.com/curry684/tipctl/blob/master/src/Command/Domain/Dns/AddDnsEntry.php
Github Open Source
Open Source
Apache-2.0
2,022
tipctl
curry684
PHP
Code
95
586
<?php namespace Transip\Api\CLI\Command\Domain\Dns; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Transip\Api\CLI\Command\AbstractCommand; use Transip\Api\CLI\Command\Field; use Transip\Api\Library\Entit...
4,573
https://github.com/lunaris-studios/neptune/blob/master/packages/protocol/src/bin/_theme.ts
Github Open Source
Open Source
Apache-2.0
null
neptune
lunaris-studios
TypeScript
Code
134
442
import * as Constants from "~/constants"; export interface Binds { /** * Used to identify the current client window size. * @default Breakpoint.DESKTOP */ device: Constants.Device; /** * Used to indicate the global color scheme for the client. * @default Scheme.LIGHT */ scheme: Constants.Scheme; } ex...
40,333
https://github.com/filippopov/JavaScript-Advanced/blob/master/Task JavaScript Advance/JavaScript Advanced cod/JavaScript Advance/SearchInList/search.js
Github Open Source
Open Source
MIT
2,018
JavaScript-Advanced
filippopov
JavaScript
Code
22
95
function search() { let patern = $('#searchText').val(); $('#towns li').css('font-weight', 'normal'); let li = $(`#towns li:contains(${patern})`); $('#searchText').val(''); li.css('font-weight', 'bold'); $('#result').text(`${li.length} matches found.`); }
6,793
https://github.com/phprojects/thinksns-plus/blob/master/packages/zhiyicx-plus-pc/resources/views/account/index.blade.php
Github Open Source
Open Source
Apache-2.0
2,018
thinksns-plus
phprojects
PHP
Code
848
3,629
@section('title') 基本资料 @endsection @php use function Zhiyi\Component\ZhiyiPlus\PlusComponentPc\getAvatar; @endphp @extends('pcview::layouts.default') @section('styles') <link rel="stylesheet" href="{{ asset('assets/pc/css/account.css')}}"/> <link rel="stylesheet" href="{{ asset('assets/pc/cropper/cropper.min.css...
28,632
https://github.com/dsp-testing/isis/blob/master/antora/components/refguide-index/modules/applib/pages/index/services/xmlsnapshot/hooks/XmlSnapshotService_020-examples-and-usage.adoc
Github Open Source
Open Source
Apache-2.0
2,022
isis
dsp-testing
AsciiDoc
Code
742
1,434
:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use t...
15,657
https://github.com/TanHaoran/NurseService1.0/blob/master/cn.jpush.api/schedule/trigger/Single.cs
Github Open Source
Open Source
Apache-2.0
null
NurseService1.0
TanHaoran
C#
Code
55
190
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using cn.jpush.api.util; using Newtonsoft.Json; namespace cn.jpush.api.schedule { public class Single { [JsonProperty] private string time; public void setTime(string t...
42,423
https://github.com/admariner/OCR4all/blob/master/src/main/java/de/uniwue/batch/BatchWorkflow.java
Github Open Source
Open Source
MIT
null
OCR4all
admariner
Java
Code
3,267
9,439
/** * File: BatchWorkflow.java * Package: de.uniwue.batch * * Author: Herbert Baier * Date: 21.09.2020 */ package de.uniwue.batch; import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.Hashtable; import java.util.LinkedList; import java....
11,992
https://github.com/radtriste-bot-account/kogito-cloud-operator/blob/master/pkg/controller/kogitoapp/resource/infinispan.go
Github Open Source
Open Source
Apache-2.0
null
kogito-cloud-operator
radtriste-bot-account
Go
Code
253
934
// Copyright 2020 Red Hat, Inc. and/or its affiliates // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
24,129
https://github.com/flaviogf/courses/blob/master/udemy/curso_python_com_kivy/src/006_kivylanguage/estudo1.kv
Github Open Source
Open Source
MIT
2,023
courses
flaviogf
Kvlang
Code
11
70
<MeuBotao@Button>: text: "botao" <Tela1@BoxLayout>: MeuBotao: MeuBotao: BoxLayout: Tela1: Tela1: orientation: "vertical"
48,631
https://github.com/abdeltiflouardi/CMSsf/blob/master/src/App/WebBundle/Resources/views/Partials/pagination.html.twig
Github Open Source
Open Source
MIT
null
CMSsf
abdeltiflouardi
Twig
Code
3
13
{{ knp_pagination_render(posts) }}
14,324
https://github.com/simplifiedrobot/git/blob/master/mobilesafe/src/utils/dao_addressToast.java
Github Open Source
Open Source
Apache-2.0
null
git
simplifiedrobot
Java
Code
20
88
package utils; import android.content.Context; import android.content.SharedPreferences; import android.graphics.PixelFormat; import android.view.View; import android.view.WindowManager; import android.widget.TextView; import com.example.mobilesafe.R; public class dao_addressToast{ }
39,510
https://github.com/zitelog/mrsign/blob/master/serverstore.go
Github Open Source
Open Source
MIT
2,022
mrsign
zitelog
Go
Code
266
458
/* * File: serverStore.go * Project: mrsign * Created Date: Tuesday, October 19th 2021, 12:16:54 pm * Authors: Marcello Russo, Fabio Zito * ----- * Last Modified: * Modified By: * ----- * MIT License * * Copyright (c) 2021 MR&&Z * * Permission is hereby granted, free of charge, to any person obtaining a co...
816
https://github.com/maxmind/GeoIP2-python/blob/master/tests/models_test.py
Github Open Source
Open Source
Apache-2.0
2,023
GeoIP2-python
maxmind
Python
Code
996
4,518
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import sys from typing import Dict import unittest sys.path.append("..") import geoip2.models class TestModels(unittest.TestCase): def test_insights_full(self) -> None: raw = { "city": { "...
44,917
https://github.com/znuznu/randemon/blob/master/api/src/domain/models/generation.ts
Github Open Source
Open Source
MIT
null
randemon
znuznu
TypeScript
Code
31
69
enum Generation { I = 'I', II = 'II', III = 'III', IV = 'IV', V = 'V', VI = 'VI', VII = 'VII', VIII = 'VIII' } export default Generation;
32,208
https://github.com/rgr19/MpiNonBlockingProtocol/blob/master/extern_libs/tbb-2019-u4/html/a00169.js
Github Open Source
Open Source
Apache-2.0
2,019
MpiNonBlockingProtocol
rgr19
JavaScript
Code
225
1,709
var a00169 = [ [ "helper", "a00331.html", "a00331" ], [ "internal_segments_table", "a00388.html", "a00388" ], [ "segment_allocated", "a00692.html", null ], [ "segment_allocation_failed", "a00693.html", null ], [ "segment_not_used", "a00694.html", null ], [ "segment_t", "a00696.html", "a00696" ],...
47,408
https://github.com/nicolaferraro/fanta-ng/blob/master/services/fanta-league/src/main/java/net/fantamiglia/league/core/LeagueService.java
Github Open Source
Open Source
Apache-2.0
null
fanta-ng
nicolaferraro
Java
Code
67
260
package net.fantamiglia.league.core; import org.apache.camel.Body; import org.apache.camel.Header; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.List; @Component public class LeagueService { @Autowired private LeagueRepositor...
19,240
https://github.com/splitio/qos-runner/blob/master/src/main/java/io/split/testrunner/TestRunner.java
Github Open Source
Open Source
Apache-2.0
null
qos-runner
splitio
Java
Code
367
1,492
package io.split.testrunner; import com.google.common.collect.Lists; import com.google.inject.AbstractModule; import com.google.inject.Guice; import com.google.inject.Injector; import io.split.qos.server.QOSServerApplication; import io.split.qos.server.QOSServerConfiguration; import io.split.qos.server.QOSServerState;...
49,143
https://github.com/whelantm/VendingMachine/blob/master/CoffeeService/Implementation/CoffeeService.cs
Github Open Source
Open Source
BSD-3-Clause
null
VendingMachine
whelantm
C#
Code
244
847
using System; using System.Collections.Generic; using Model; namespace Service { public class CoffeeService : ICoffeeService { private readonly IApplicationSettingsService _appSettings; private readonly ICondimentServiceFactory _condimentServiceFactory; private IList<CoffeeOrder> _orde...
31,402
https://github.com/IHTSDO/OTF-Mapping-Service/blob/master/jpa-services/src/main/java/org/ihtsdo/otf/mapping/jpa/algo/ICD10NODownloadAlgorithm.java
Github Open Source
Open Source
Apache-2.0
2,023
OTF-Mapping-Service
IHTSDO
Java
Code
618
2,203
package org.ihtsdo.otf.mapping.jpa.algo; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map;...
28,134
https://github.com/sboron/godot4-fast-paced-network-fps-tps/blob/master/Example/Game/Shared/Components/PlayerAnimationComponent.cs
Github Open Source
Open Source
MIT
2,022
godot4-fast-paced-network-fps-tps
sboron
C#
Code
192
643
using Framework; using Framework.Network; using Framework.Physics; using Godot; using Framework.Game; using Framework.Input; namespace Shooter.Shared.Components { public partial class PlayerAnimationComponent : Node, IPlayerComponent { public short NetworkId { get; set; } = 4; [Export] ...
35,967
https://github.com/emencia/emencia-cmsplugin-xinnia/blob/master/cmsplugin_zinnia/__init__.py
Github Open Source
Open Source
BSD-3-Clause
null
emencia-cmsplugin-xinnia
emencia
Python
Code
17
84
"""cmsplugin_zinnia""" __version__ = '0.9.1' __license__ = 'BSD License' __author__ = 'Emencia' __email__ = 'support@emencia.com' __url__ = 'https://github.com/emencia/emencia-cmsplugin-xinnia'
24,044
https://github.com/amandra1988/saarc/blob/master/web/assets/angular/Camion/app.js
Github Open Source
Open Source
MIT
null
saarc
amandra1988
JavaScript
Code
58
310
(function(angular){ angular.module('admin-camiones', [ 'ui.router','ngResource','ui.bootstrap']) .constant('urlBase', saConstants.urlBase) .constant('urlBaseImg', saConstants.urlBaseImg) .constant('urlBaseApi', saConstants.urlBaseApi) .constant('urlBasePartials', saConstants.urlBaseTmp) ...
31,974
https://github.com/Camyul/Modul_2_CSharp/blob/master/Databases/Workshop/01. XML-and-JSON/CarsProject - Flash Solution/CarsTask/Models/Query.cs
Github Open Source
Open Source
MIT
null
Modul_2_CSharp
Camyul
C#
Code
54
154
using CarsTask.Models.Interfaces; using System.Collections.Generic; namespace CarsTask.Models { public class Query : IQuery { public Query(string outputName, string orderParameter, IList<IWhereClause> whereClauses) { this.OutputName = outputName; this.OrderParameter = o...
27,939
https://github.com/NewLifeX/X_NET20/blob/master/NewLife.Net/Dhcp/DhcpOption.cs
Github Open Source
Open Source
MIT
2,020
X_NET20
NewLifeX
C#
Code
411
1,408
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using NewLife.Serialization; namespace NewLife.Net.Dhcp { /// <summary>DHCP选项类型</summary> public enum DhcpOptions : byte { /// <summary></summary> Mask = 1, /// <summary></summa...
10,800
https://github.com/kanadaj/sentry-dotnet/blob/master/test/Sentry.Tests/Internals/SentryStackTraceFactoryTests.cs
Github Open Source
Open Source
MIT
2,021
sentry-dotnet
kanadaj
C#
Code
413
1,673
using System; using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; using FluentAssertions; using Sentry; using Sentry.Extensibility; using Xunit; // ReSharper disable once CheckNamespace // Stack trace filters out Sentry frames by namespace namespace Other.Tests.Internals { public cl...
33,236
https://github.com/Dekier/game/blob/master/node_modules/troisjs/src/App.vue
Github Open Source
Open Source
MIT
null
game
Dekier
Vue
Code
139
397
<template> <Renderer :params="{ }" ref="renderer" antialias :orbit-ctrl="{ enableDamping: true }" resize="window" :pixel-ratio="pixelRatio"> <Camera :position="{ z: 10 }" /> <Scene> <PointLight :position="{ y: 50, z: 50 }" /> <Box :size="1" ref="box" :rotation="{ y: Math.PI / 4, z: Math.PI / 4 }">...
9,766
https://github.com/mmewen/MT09-numerical-analysis/blob/master/TP3/lanccalcg.sce
Github Open Source
Open Source
MIT
null
MT09-numerical-analysis
mmewen
Scilab
Code
46
90
clear exec("calcg.sci", -1); T = [ 1 3 4.5 5 6 ]'; cc = [ 1 0 1 0; 5 0 -8/9 0 ; 3 0 16 0 ; 7 0 -8 0 ]; z = calcg(3, T, cc); disp(z) z = calcg(5, T, cc); disp(z)
44,566
https://github.com/metauro/fastify-plus/blob/master/packages/swagger/lib/document.builder.ts
Github Open Source
Open Source
MIT
null
fastify-plus
metauro
TypeScript
Code
375
1,299
import fastifySwagger from 'fastify-swagger'; import expressSwagger from 'swagger-ui-express'; import yaml from 'js-yaml'; import { defaults, merge } from 'lodash'; import { Application } from '@sojs/core'; import { Info, OpenApi, OpenApiScanner, Responses } from '@sojs/openapi'; import { LoggerService, ObjectTool } fr...
11,657
https://github.com/SpartanJ/restafari/blob/master/restafari/src/main/java/com/ensoft/restafari/database/annotations/DbForeignKey.java
Github Open Source
Open Source
MIT
2,022
restafari
SpartanJ
Java
Code
62
224
package com.ensoft.restafari.database.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import androidx.annotation.IntDef; @Retention( RetentionPolicy.RUNTIME) @Target( ElementType.FIELD) publ...
21,179
https://github.com/lodrantl/fetch-mock/blob/master/test/specs/responses.test.js
Github Open Source
Open Source
MIT
null
fetch-mock
lodrantl
JavaScript
Code
1,216
4,671
const chai = require('chai'); const expect = chai.expect; module.exports = (fetchMock) => { describe('responses', () => { let fm; before(() => { fm = fetchMock.createInstance(); fm.config.warnOnUnmatched = false; }); afterEach(() => fm.restore()); describe('response building', () => { it('respond...
46,901
https://github.com/ibhelmer/TcpServerSocket/blob/master/src/wireless/module_frames.h
Github Open Source
Open Source
MIT
null
TcpServerSocket
ibhelmer
C
Code
1,826
3,484
// This software is part of OpenMono, see http://developer.openmono.com // and is available under the MIT license, see LICENSE.txt #ifndef __mono_redpine__module_frames__ #define __mono_redpine__module_frames__ #include <mbed.h> #include <queue.h> namespace mono { namespace redpine { /** * Managem...
30,916
https://github.com/StepaTa/vkbottle/blob/master/examples/tests/user/shuffle_tokens.py
Github Open Source
Open Source
MIT
null
vkbottle
StepaTa
Python
Code
77
222
from vkbottle.user import User, Message from vkbottle.api.token import LimitedTokenGenerator import os token_1 = os.environ["token_1"] token_2 = os.environ["token_2"] token_3 = os.environ["token_3"] token_4 = os.environ["token_4"] # Use ConsistentTokenGenerator if you are confident about the load of your polling # Li...
45,713
https://github.com/matoruru/purescript-react-material-ui-svgicon/blob/master/src/MaterialUI/SVGIcon/Icon/FlightTakeoff.purs
Github Open Source
Open Source
MIT
null
purescript-react-material-ui-svgicon
matoruru
PureScript
Code
45
148
module MaterialUI.SVGIcon.Icon.FlightTakeoff ( flightTakeoff , flightTakeoff_ ) where import Prelude (flip) import MaterialUI.SVGIcon.Type (SVGIcon, SVGIcon_) import React (unsafeCreateElement, ReactClass) as R foreign import flightTakeoffImpl :: forall a. R.ReactClass a flightTakeoff :: SVGIcon flightTake...
24,277
https://github.com/HarryStevens/geometric/blob/master/src/angles/angleToRadians.js
Github Open Source
Open Source
MIT
2,023
geometric
HarryStevens
JavaScript
Code
15
33
// Converts degrees to radians. export function angleToRadians(angle){ return angle / 180 * Math.PI; }
41,493
https://github.com/odooht/odoo-rpc/blob/master/examples/erp/src/layouts/FormItemLayout.js
Github Open Source
Open Source
MIT
2,019
odoo-rpc
odooht
JavaScript
Code
39
83
const formItemLayout = { labelCol: { xs: { span: 24 }, sm: { span: 7 }, }, wrapperCol: { xs: { span: 24 }, sm: { span: 12 }, md: { span: 10 }, }, }; export default formItemLayout;
31,963
https://github.com/asgerMe/Deep-Earth-/blob/master/run.py
Github Open Source
Open Source
MIT
null
Deep-Earth-
asgerMe
Python
Code
439
1,495
import argparse import config import train import os import util import inference parser = argparse.ArgumentParser() parser.add_argument("input_dir", help="path to training fields / See ... for Houdini based data generator") parser.add_argument("-od", "--output_dir", default='', help="path to training fields / See .....
40,660
https://github.com/TimMurphy/Casper/blob/master/tests/Casper.Data.Git.Specifications/Helpers/SpecFlowServiceLocator.cs
Github Open Source
Open Source
MIT
null
Casper
TimMurphy
C#
Code
95
295
using System; using System.Collections.Generic; using BoDi; using Microsoft.Practices.ServiceLocation; namespace Casper.Data.Git.Specifications.Helpers { public class SpecFlowServiceLocator : ServiceLocatorImplBase { private readonly IObjectContainer _objectContainer; public SpecFlowServiceLo...
32,385
https://github.com/mpellicer/sakai/blob/master/mneme-project/ambrosia/ambrosia-api/api/src/java/org/etudes/ambrosia/api/Controller.java
Github Open Source
Open Source
ECL-2.0
2,020
sakai
mpellicer
Java
Code
324
656
/********************************************************************************** * $URL$ * $Id$ *********************************************************************************** * * Copyright (c) 2008 Etudes, Inc. * * Portions completed before September 1, 2008 * Copyright (c) 2007, 2008 The Regents of th...
18,692
https://github.com/fightx/userJS/blob/master/祭奠百度/祭奠百度.user.ts
Github Open Source
Open Source
MIT
2,021
userJS
fightx
TypeScript
Code
103
440
// ==UserScript== // @name 祭奠百度 // @namespace http://tampermonkey.net/ // @version 1.39 // @description 或许未来只有一片精致的灰 ! // @author 崮生 2234839456@qq.com // @match * // @include * // @connect shenzilong.cn // @grant GM.setValue // @grant GM.getValue // ==/UserScript== ...
48,614
https://github.com/thewindev/CryBot/blob/master/CryBot.UnitTests/Services/BittrexApi/OrdersTests.cs
Github Open Source
Open Source
MIT
2,018
CryBot
thewindev
C#
Code
205
1,145
using Bittrex.Net.Objects; using Bittrex.Net.Interfaces; using CryptoExchange.Net; using FluentAssertions; using Moq; using System.Threading.Tasks; using System.Collections.Generic; using Xunit; namespace CryBot.UnitTests.Services.BittrexApi { public class OrdersTests { private readonly Mock<IBitt...
28,484
https://github.com/neuronit/pfa/blob/master/neuronit/tutorial/static/tutorial/js/test.js
Github Open Source
Open Source
MIT
null
pfa
neuronit
JavaScript
Code
17
69
function modif(val) { var ava = document.getElementById("avancement"); if((ava.value+val)<=ava.max && (ava.value+val)>0) { ava.value += val; } avancement(); }
48,510
https://github.com/smurawczik/assap-challenge/blob/master/app/components/Input/index.js
Github Open Source
Open Source
MIT
null
assap-challenge
smurawczik
JavaScript
Code
42
125
import React from 'react'; const Input = ({ className, value, onChange, onKeyDown, placeholder }) => { return <input className={`${className}`} value={value} onKeyDown={e => onKeyDown(e)} onChange={e => onChange(e.target.value)} placeholder={placeholder} />; } Input.defaultProps = { classNa...
38,189
https://github.com/zhaoge1991/oa-front/blob/master/src/app/pages/setting/erpsetting/erpconfig/components/edit.component.ts
Github Open Source
Open Source
MIT
null
oa-front
zhaoge1991
TypeScript
Code
108
486
import {Component,OnInit,ViewChild} from '@angular/core'; import { ActivatedRoute, Params,Router } from '@angular/router'; import {GridOptions} from "ag-grid/main"; import {CommonActionBarConfig} from "../../../../../models/config/commonActionBarConfig"; import {Project} from "../../../../../models/group/project"; impo...
18,290
https://github.com/lxthien/symfonysms/blob/master/app/Resources/views/news/components/pagination.html.twig
Github Open Source
Open Source
MIT
null
symfonysms
lxthien
Twig
Code
6
27
<div class="navigation"> {{ knp_pagination_render(pagination) }} </div>
38,910
https://github.com/rapid7/insightconnect-plugins/blob/master/plugins/rpm/Dockerfile
Github Open Source
Open Source
MIT
2,023
insightconnect-plugins
rapid7
Dockerfile
Code
113
283
FROM komand/python-3-plugin:2 # The three supported python parent images are: # - komand/python-2-plugin # - komand/python-3-plugin # - komand/python-pypy3-plugin # LABEL organization=komand # Add any custom package dependencies here # NOTE: Add pip packages to requirements.txt RUN apt-get clean RUN apt-get update -y ...
17,942
https://github.com/xcheng85/node-express-di-experiment/blob/master/src/middlewares/custom-error-handler.ts
Github Open Source
Open Source
MIT
null
node-express-di-experiment
xcheng85
TypeScript
Code
89
232
import * as express from 'express'; import * as util from 'util'; import { StatusCodes, } from 'http-status-codes'; import logger from '../utils/logger'; import HttpError from '../utils/error'; const customErrorHandler = ( err: Error, req: express.Request, res: express.Response, next: express.Next...
20,676
https://github.com/sroebuck/datahelix/blob/master/orchestrator/src/main/java/com/scottlogic/deg/orchestrator/violate/ViolateExecute.java
Github Open Source
Open Source
Apache-2.0, CC0-1.0
2,019
datahelix
sroebuck
Java
Code
252
1,145
package com.scottlogic.deg.orchestrator.violate; import com.google.inject.Inject; import com.scottlogic.deg.common.ValidationException; import com.scottlogic.deg.common.profile.Profile; import com.scottlogic.deg.generator.generation.DataGenerator; import com.scottlogic.deg.common.output.GeneratedObject; import com.sco...
46,166
https://github.com/ThatDevCompany/ngx-component-mixins/blob/master/src/Base.ts
Github Open Source
Open Source
MIT
2,019
ngx-component-mixins
ThatDevCompany
TypeScript
Code
38
59
/** * An empty class to form the base of all Mixins */ export class Base {} /** * A Typescript definition of a constructor function */ export type Constructor<T = {}> = new (...args: any[]) => T
37,189
https://github.com/KonradSchieban/stanza/blob/master/cmd/stanza/offsets.go
Github Open Source
Open Source
Apache-2.0
null
stanza
KonradSchieban
Go
Code
342
1,166
package main import ( "fmt" "io" "os" "github.com/observiq/stanza/database" "github.com/observiq/stanza/operator/helper" "github.com/spf13/cobra" "go.etcd.io/bbolt" ) var stdout io.Writer = os.Stdout // NewOffsetsCmd returns the root command for managing offsets func NewOffsetsCmd(rootFlags *RootFlags) *cobr...
32,531
https://github.com/cmdprompt/dcf/blob/master/scss/elements/_elements.small.scss
Github Open Source
Open Source
BSD-3-Clause
2,020
dcf
cmdprompt
SCSS
Code
44
78
////////////////////////// // CORE / ELEMENTS / SMALL ////////////////////////// small { @include txt-base; // The small element is intended for inline text meant to be treated as fine print. // It does not change the font-size. Use font-size utilities to size text as needed. }
16,065
https://github.com/boralt/EmbeddedAI/blob/master/api/html/search/all_f.js
Github Open Source
Open Source
BSD-3-Clause
2,022
EmbeddedAI
boralt
JavaScript
Code
6
126
var searchData= [ ['remove',['Remove',['../classbayeslib_1_1_var_set.html#a7f55569c4ecf8f907a2918f467888237',1,'bayeslib::VarSet']]], ['removevars',['RemoveVars',['../classbayeslib_1_1_factor_set.html#ab201e3c8164d926b3442ecf4ecfc89b4',1,'bayeslib::FactorSet']]] ];
8,488
https://github.com/duongdpq/timtro/blob/master/fmlaravel/app/Motel.php
Github Open Source
Open Source
MIT
2,017
timtro
duongdpq
PHP
Code
58
239
<?php namespace App; use App\User; use App\Admin; use App\Ward; use Illuminate\Database\Eloquent\Model; class Motel extends Model { protected $table = 'motels'; protected $fillable = [ 'name', 'number_room', 'area','price','price_water','price_electric','image','description','address','phone','lat','l...
21,808
https://github.com/salihzeki12000/hirespace-static/blob/master/css/src/mixins/_box-shadow.sass
Github Open Source
Open Source
MIT
null
hirespace-static
salihzeki12000
Sass
Code
7
40
=box-shadow($style) -webkit-box-shadow: $style -moz-box-shadow: $style box-shadow: $style
50,885
https://github.com/mantyr/images-imagick/blob/master/struct.go
Github Open Source
Open Source
MIT
null
images-imagick
mantyr
Go
Code
26
72
package images import ( mag "github.com/mantyr/golang-magick" ) type Image struct { Image *mag.Image Address string Format string Quality int width int height int Error error }
2,695