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/bbqchickenrobot/IL2JS/blob/master/CST/CallContext.cs
Github Open Source
Open Source
Apache-2.0
2,021
IL2JS
bbqchickenrobot
C#
Code
337
812
using System.Linq; using Microsoft.LiveLabs.Extras; using JST = Microsoft.LiveLabs.JavaScript.JST; namespace Microsoft.LiveLabs.CST { // Context of a call public class CallContext { // Map all parameters of method to their parameter position public readonly IImMap<JST.Identifier, int> Para...
42,033
https://github.com/dbreddyAI/TA-Github/blob/master/README/inputs.conf.spec
Github Open Source
Open Source
MIT
2,018
TA-Github
dbreddyAI
Python
Code
102
281
[github_api_repos_stats://<name>] github_creds = Select stored credentials with appropriate access to specified Github repository. github_owner = Name of user or Github organization which owns the repository. Example: https://api.github.com/[OWNER]/repo github_repo = Name of repository. Example: https://api.github.com...
49,821
https://github.com/TaccyMC/Manhunt/blob/master/src/main/java/net/taccy/manhunt/game/states/WaitingGameState.java
Github Open Source
Open Source
MIT
2,021
Manhunt
TaccyMC
Java
Code
202
874
package net.taccy.manhunt.game.states; import net.taccy.manhunt.Manhunt; import net.taccy.manhunt.game.Game; import net.taccy.manhunt.game.GameState; import net.taccy.manhunt.game.GameStateType; import net.taccy.manhunt.game.player.ManhuntPlayer; import net.taccy.manhunt.utils.Colorize; import net.taccy.manhunt.utils....
31,368
https://github.com/interhui/timon/blob/master/src/main/java/org/pinae/timon/util/ConfigMap.java
Github Open Source
Open Source
Apache-2.0
2,015
timon
interhui
Java
Code
549
1,663
package org.pinae.timon.util; import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.Map; import java.util.Properties; import java.util.Set; import org.apache.commons.io.IOUtils; import...
1,636
https://github.com/dineshkumarreddyr/protoapp/blob/master/src/app/index.route.js
Github Open Source
Open Source
MIT
null
protoapp
dineshkumarreddyr
JavaScript
Code
56
219
/* ANGULAR UI ROUTER - ROUTE CONFIGURATION */ (function () { "use strict"; angular .module('protoapp') .config(routeConfig); //Route configuration using state concept of UI Router function routeConfig($stateProvider, $urlRouterProvider) { $stateProvider .state('login', { ...
3,551
https://github.com/AriDine/MotoWallet/blob/master/nuttx/include/nuttx/sensors/ina230.h
Github Open Source
Open Source
Apache-2.0
2,022
MotoWallet
AriDine
C
Code
550
1,424
/* * Copyright (c) 2015 Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and...
45,771
https://github.com/505788057/RoboticArm-Ball/blob/master/opencv_method/BaseGMMIdentify/ThreadImage.py
Github Open Source
Open Source
MIT
2,020
RoboticArm-Ball
505788057
Python
Code
644
2,381
from threading import Lock, Thread from time import sleep import threading import pyzed.sl as sl import time import cv2 import numpy as np import imutils import CaliPlot import sys def load_image_into_numpy_array(image): ar = image.get_data() ar = ar[:, :, 0:3] (im_height, im_width, channels) = image.get_d...
46,404
https://github.com/crackper/SistFoncreagro/blob/master/SistFoncreagro.WebSite/Contabilidad/Formularios/Dialog1.aspx
Github Open Source
Open Source
MIT
2,014
SistFoncreagro
crackper
null
Spoken
322
1,180
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Dialog1.aspx.vb" Inherits="SistFoncreagro.WebSite.Dialog1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server">...
35,305
https://github.com/lets-blade/blade/blob/master/blade-core/src/test/java/com/hellokaton/blade/mvc/ui/HtmlCreatorTest.java
Github Open Source
Open Source
Apache-2.0
2,023
blade
lets-blade
Java
Code
132
650
package com.hellokaton.blade.mvc.ui; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.util.Arrays; /** * @author biezhi * @date 2017/9/20 */ public class HtmlCreatorTest { private HtmlCreator htmlCreator; @Before public void before() { htmlCreator = new Ht...
30,582
https://github.com/robotlolita/tamago/blob/master/Tamago/src/Compiler/Context.fs
Github Open Source
Open Source
MIT
2,021
tamago
robotlolita
null
Spoken
147
379
module Tamago.Compiler.Context open System.Collections.Generic open Tamago.Language.Ast type CompilationContext = { freshGenerator: FreshGenerator boundFresh: Dictionary<FreshBind, string> lazyLocals: Set<string> locals: Set<string> } and FreshGenerator() = let mutable counter = 1 member __.Next prefix =...
11,920
https://github.com/aleksandar9999a/experience-portfolio/blob/master/src/components/Slideshow/index.tsx
Github Open Source
Open Source
MIT
null
experience-portfolio
aleksandar9999a
TypeScript
Code
245
814
/** * External dependencies. */ import React, { useState } from 'react'; import { ArrowLeft, ArrowRight } from 'react-bootstrap-icons'; /** * Internal dependencies. */ import IUploadedImage from '../../interfaces/IUploadedImage'; import ImageTile from '../ImageTile'; import ISlideshow from '../../interfaces/ISlide...
30,593
https://github.com/aji-geo/incubator-sedona/blob/master/python/tests/format_mapper/test_wkb_reader.py
Github Open Source
Open Source
Apache-2.0
2,021
incubator-sedona
aji-geo
Python
Code
161
356
# 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...
26,194
https://github.com/Oliveoil1/FLauncher/blob/master/FLauncher/PluginMetadataCreate.xaml.cs
Github Open Source
Open Source
Apache-2.0
2,022
FLauncher
Oliveoil1
C#
Code
67
233
using System.Text.Json; using System.Windows; namespace FLauncher { /// <summary> /// Interaction logic for PluginMetadataCreate.xaml /// </summary> public partial class PluginMetadataCreate : AdonisUI.Controls.AdonisWindow { public PluginMetadataCreate() { InitializeCo...
34,340
https://github.com/JosunLP/Social-graphics-library/blob/master/index.js
Github Open Source
Open Source
MIT
2,020
Social-graphics-library
JosunLP
JavaScript
Code
60
282
import "./dist/sgl.bundle.js"; console.log(SocialGraphicsLibrary.info()); console.log(SocialGraphicsLibrary.VERSION) document .getElementById("generate") .addEventListener("click", async function() { new SocialGraphicsLibrary() .multiGenerator(document ...
33,262
https://github.com/wms-code/smsoft/blob/master/application/views/admin/employeeadd.php
Github Open Source
Open Source
MIT
2,016
smsoft
wms-code
PHP
Code
506
2,687
<!DOCTYPE html> <html lang="en"> <head> <title>New Employee</title> <?php $this->load->view('admin/employeelist'); ?> <script type="text/javascript"> $(window).load(function(){ $('#myModal').modal('show'); }); </script> </head> <body> <div class="container"> <!-- Modal --> <div class="modal ...
48,349
https://github.com/SimenB/webpack/blob/master/test/configCases/rule-set/oneOf/index.js
Github Open Source
Open Source
MIT
2,023
webpack
SimenB
JavaScript
Code
19
51
it("should return the content processed by css-loader instead of asset/resource", function () { var a1 = require("./index.css"); expect(a1).toEqual("__css__"); });
8,628
https://github.com/gawprice/04-2D-Platformer/blob/master/.import/tileGrey_40.png-dc569b4b328e2ee23a6b79f768cd6e10.md5
Github Open Source
Open Source
MIT
2,021
04-2D-Platformer
gawprice
null
Spoken
2
57
source_md5="66ff3b21cade79dde0bda3baf3b02963" dest_md5="2a5dde76a29b9d0093669052e936e8cc"
20,911
https://github.com/schulza/todo/blob/master/src/jade/index.jade
Github Open Source
Open Source
MIT
null
todo
schulza
null
Spoken
206
1,123
doctype html.with-statusbar-overlay(manifest="manifest.php") head meta(charset="utf-8") meta(name="viewport", content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui") meta(name='apple-mobile-web-app-capable', content='yes') meta(name="apple-mobile-...
35,204
https://github.com/Heersin/SeaMelody/blob/master/sea/sea/seaage/WorldServer/InitSocket.h
Github Open Source
Open Source
Apache-2.0
null
SeaMelody
Heersin
C
Code
22
97
#ifndef _INITSOCKET_H_ #define _WINSOCKETINIT_H_ int DoorWinSockInit(HWND hWnd); int WorldWinSockInit(HWND hWnd,int port,char FAR *ServerName); BOOL WINAPI DoorSocketWndInit(HWND hWnd); BOOL WINAPI WorldSocketWndInit(HWND hWnd); #endif
5,899
https://github.com/t-shao/algs4/blob/master/ch1/1.1/ex1_1_13.java
Github Open Source
Open Source
MIT
2,018
algs4
t-shao
Java
Code
154
435
import edu.princeton.cs.algs4.StdIn; import edu.princeton.cs.algs4.StdOut; public class ex1_1_13 { public static void readArray(int[][] array, int M, int N) { StdOut.println("Please enter a " + M + "*" + N + " integer array."); for (int i = 0; i < M; i++) for (int j = 0; j < N; j++)...
30,307
https://github.com/0xC000005/eps12java/blob/master/Assignment13 in IntelliJ 2.0/src/Game.java
Github Open Source
Open Source
Apache-2.0
2,020
eps12java
0xC000005
Java
Code
741
2,296
import java.util.ArrayList; /** * @author m04.zhang * @version 2020-10-28 * @project Assignment13 in IntelliJ 2.0 * @description */ public class Game { private Player humanPlayer, CPUPlayer; private final Deck deck = new Deck(); private static final int minimumMoney = 10; private final Input input...
45,758
https://github.com/JuanMore/Nonprofit/blob/master/script.js
Github Open Source
Open Source
MIT
null
Nonprofit
JuanMore
JavaScript
Code
17
61
// Toggle mobile nav const menuBtn = document.querySelector('.nav-toggle').addEventListener('click', toggleNav); const menu = document.querySelector('.nav-list'); function toggleNav(){ menu.classList.toggle('show') }
8,195
https://github.com/openid-certification/-conformance-suite/blob/master/src/main/java/net/openid/conformance/variant/FAPIProfile.java
Github Open Source
Open Source
MIT
2,022
-conformance-suite
openid-certification
Java
Code
69
165
package net.openid.conformance.variant; @VariantParameter( name = "fapi_profile", displayName = "FAPI Profile", description = "The FAPI sub-profile to use. If the server is compliant to the OpenBanking UK specifications (i.e. requires the client credentials grant is used and an intent id created) please pick the op...
8,802
https://github.com/thewolt/flak/blob/master/flak-jackson/src/main/java/flak/jackson/JSON.java
Github Open Source
Open Source
Apache-2.0
2,020
flak
thewolt
Java
Code
124
299
package flak.jackson; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Automatically converts the return type to a JSON string (except if * the return type is String, byte[], InputStream ...) and if...
17,394
https://github.com/gastrodia/SKInspector/blob/master/src/editor-libs/ui.rows/ui.numberrow.js
Github Open Source
Open Source
MIT
2,016
SKInspector
gastrodia
JavaScript
Code
192
524
/** * @class Handle a number row */ UI.NumberRow = function () { UI.Panel.call( this ); var label = new UI.Text( '' ).setWidth( '90px' ) var value = new UI.Number().onChange( update ); // export ui fields this.label = label; this.value = value; // build the container var container = this container.add( la...
27,529
https://github.com/Sejsel/fsharp-support/blob/master/ReSharper.FSharp/test/data/features/refactorings/introduceVar/Not allowed - Op 02 - Prefix app.fs
Github Open Source
Open Source
Apache-2.0
2,021
fsharp-support
Sejsel
null
Spoken
3
15
({selstart}|>{selend}{caret}) () id
11,213
https://github.com/adriaciurana/scrath-network/blob/master/scratchnetwork/backend/regularizators/l1l2.py
Github Open Source
Open Source
MIT
2,020
scrath-network
adriaciurana
Python
Code
32
129
from .regularizator import Regularizator import numpy as np from .l1 import L1 from .l2 import L2 class L1L2(L1, L2): def __init__(self, lambda_valueL1=0.01, lambda_valueL2=0.01): L1.__init__(lambda_valueL1) L2.__init__(lambda_valueL2) def function(self, data): return L1.function(data) + L2.function(data)
26,515
https://github.com/Hedrik/d20dsl/blob/master/DSL/Die.pm
Github Open Source
Open Source
Apache-2.0
2,014
d20dsl
Hedrik
Perl
Code
346
1,181
#!/usr/bin/perl -w package DSL::Die; use strict; use warnings; use namespace::sweep; use Moose; use overload '""' => sub { $_[0]->prettyprint }; has 'count' => ( is => 'rw', default => 1, ); has 'pips' => ( is => 'rw', required => 1, ); has 'previous' => ( is => 'rw', ); has 'raw_dice' => ( is => 'rw'...
39,558
https://github.com/Syatiku/Syatiku/blob/master/Syatiku/Assets/Plugins/CriWare/CriAtom/NativeClasses/CriAtomEx.cs
Github Open Source
Open Source
MIT
2,019
Syatiku
Syatiku
C#
Code
4,259
24,011
/**************************************************************************** * * Copyright (c) 2011 CRI Middleware Co., Ltd. * ****************************************************************************/ using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; pu...
23,185
https://github.com/hunan-rostomyan/errant/blob/master/web/static/main.js
Github Open Source
Open Source
MIT
2,018
errant
hunan-rostomyan
JavaScript
Code
135
526
$(document).ready(function() { var PORT = 8005; // Instantiate a scheduler that runs things every second. var scheduler = new Scheduler(1000); var api = 'http://localhost:' + PORT; var $annotate = $('#annotate'); var $annotations = $('.annotations'); // load the data var scheduled = undefined; $.get(api +...
28,088
https://github.com/santiment/sanpy/blob/master/san/execute_sql.py
Github Open Source
Open Source
MIT
2,023
sanpy
santiment
Python
Code
262
778
import san.sanbase_graphql import pandas as pd from san.graphql import execute_gql, get_response_headers from san.query import get_gql_query, parse_dataset from san.transform import transform_timeseries_data_query_result from san.error import SanError import json def execute_sql(**kwargs): """ Execute an arbit...
19,113
https://github.com/arsi-apli/cscm/blob/master/CodeSnippetsCommunityManager-Module/src/main/java/sk/arsi/nb/help/module/completion/hack/SharedMimeLookupCacheHack.java
Github Open Source
Open Source
Apache-2.0
2,019
cscm
arsi-apli
Java
Code
112
422
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package sk.arsi.nb.help.module.completion.hack; import java.util.Collection; import org.netbeans.api.editor.mimelookup.MimePath; impor...
13,798
https://github.com/termux/termux-packages/blob/master/root-packages/tshark/ws_pipe.c.patch
Github Open Source
Open Source
Apache-2.0
2,023
termux-packages
termux
null
Spoken
59
185
--- ../ws_pipe.c.orig 2019-05-22 16:09:41.223921507 +0200 +++ ./wsutil/ws_pipe.c 2019-05-22 16:10:12.694633273 +0200 @@ -108,7 +108,7 @@ close(dir_fd); } else { /* Slow fallback in case /proc is not mounted */ - for (int fd = STDERR_FILENO + 1; fd < getdtablesize(); fd++) { + for (i...
47,775
https://github.com/AllAroundD/card-generator/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,020
card-generator
AllAroundD
Ignore List
Code
6
29
node_modules/ package-lock.json .env eddi/ public/uploads/* .DS_Store
45,437
https://github.com/aragaer/libyama/blob/master/test/main.c
Github Open Source
Open Source
MIT
2,016
libyama
aragaer
C
Code
223
807
#include <string.h> #include "basic.h" #include "files.h" #include "fills.h" #include "list.h" #include "minunit.h" #include "traverse.h" #include "util.h" #include "yama.h" int tests_run; int verbose; #define RECORDS 4 static char *test_history() { YAMA *yama = yama_new(); yama_item *items[RECORDS]; fill_updat...
27,539
https://github.com/Mommoo/FlatSwing/blob/master/src/com/mommoo/flat/button/FlatButton.java
Github Open Source
Open Source
MIT
2,021
FlatSwing
Mommoo
Java
Code
392
2,045
package com.mommoo.flat.button; import com.mommoo.flat.border.FlatShadowBorder; import com.mommoo.flat.button.ripple.RippleEffect; import com.mommoo.flat.component.OnClickListener; import com.mommoo.flat.frame.FlatFrame; import com.mommoo.util.ScreenManager; import com.sun.xml.internal.bind.v2.TODO; import javax.swin...
24,180
https://github.com/IEEE-VIT/enigma7-iOS/blob/master/Application/Enigma-Widget/Enigma_Widget.swift
Github Open Source
Open Source
MIT
2,021
enigma7-iOS
IEEE-VIT
Swift
Code
221
645
// // Enigma_Widget.swift // Enigma-Widget // // Created by Aaryan Kothari on 08/10/20. // Copyright © 2020 Aaryan Kothari. All rights reserved. // import WidgetKit import SwiftUI import Intents struct Provider: IntentTimelineProvider { /// SESSION STORE IS OBSERVABLE OBJECT MADE USING COMBINE @Obser...
50,407
https://github.com/AmIMeYet/gosu/blob/master/rake/win.rb
Github Open Source
Open Source
MIT
2,015
gosu
AmIMeYet
Ruby
Code
84
351
namespace :win do WINDOWS_ARCHIVE_FILENAME = "pkg/gosu-windows-#{GOSU_VERSION}.zip" desc "Build the archive #{WINDOWS_ARCHIVE_FILENAME}" task :archive => :set_version do files = COMMON_CPP_FILES files += FileList['Gosu/*.hpp', 'lib/*.lib', 'lib/*.dll'] # Not yet supported in C++ files -= ['lib/...
52,792
https://github.com/organicmaps/organicmaps/blob/master/map/gps_track_storage.cpp
Github Open Source
Open Source
Apache-2.0
2,023
organicmaps
organicmaps
C++
Code
956
3,200
#include "map/gps_track_storage.hpp" #include "coding/endianness.hpp" #include "coding/internal/file_data.hpp" #include "base/assert.hpp" #include "base/logging.hpp" #include <algorithm> #include <cstring> using namespace std; namespace { // Current file format version uint32_t constexpr kCurrentVersion = 1; // ...
50,815
https://github.com/fambda/fambda/blob/master/Fambda.Tests/Contracts/Exceptions/ExceptionalExceptionMustNotBeNullExceptionTests.cs
Github Open Source
Open Source
MIT
null
fambda
fambda
C#
Code
59
231
using Fambda.Contracts; using FluentAssertions; using Xunit; namespace Fambda.Tests.Contracts.Exceptions { public class ExceptionalExceptionMustNotBeNullExceptionTests { [Fact] public void ShouldBeAssignableToGuardExceptionType() { // Arrange var guardExceptionTy...
44,236
https://github.com/alex-fomin/tauCharts/blob/master/src/plugins-sdk/spec.js
Github Open Source
Open Source
Apache-2.0
null
tauCharts
alex-fomin
JavaScript
Code
117
434
import {Unit} from './unit'; class Spec { constructor(specRef) { this.specRef = specRef; } value() { return this.specRef; } unit(newUnit) { if (newUnit) { this.specRef.unit = newUnit; } return new Unit(this.specRef.unit); } addTransfor...
49,588
https://github.com/intel/compute-runtime/blob/master/shared/source/built_ins/kernels/CMakeLists.txt
Github Open Source
Open Source
MIT
2,023
compute-runtime
intel
CMake
Code
628
4,736
# # Copyright (C) 2018-2023 Intel Corporation # # SPDX-License-Identifier: MIT # add_custom_target(builtins) set_target_properties(builtins PROPERTIES FOLDER "${SHARED_SOURCE_PROJECTS_FOLDER}/${SHARED_BUILTINS_PROJECTS_FOLDER}") set(BUILTINS_OUTDIR_WITH_ARCH "${TargetDir}/built_ins/${NEO_ARCH}") add_dependencies(${BUI...
35,247
https://github.com/Francojesusre/NuevoRepo/blob/master/launcher-csharp/eSignature/Examples/ListEnvelopeDocuments.cs
Github Open Source
Open Source
MIT
2,022
NuevoRepo
Francojesusre
C#
Code
239
650
using DocuSign.eSign.Api; using DocuSign.eSign.Client; using DocuSign.eSign.Model; using System.Collections.Generic; namespace eSignature.Examples { public static class ListEnvelopeDocuments { public class EnvelopeDocItem { public string Name { get; set; } public strin...
7,951
https://github.com/midopooler/fboss/blob/master/fboss/agent/hw/sai/hw_test/SaiTestHandler.cpp
Github Open Source
Open Source
BSD-3-Clause
2,020
fboss
midopooler
C++
Code
131
460
/* * Copyright (c) 2004-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #inc...
602
https://github.com/NeuroRoboticTech/AnimatLabPublicSource/blob/master/Libraries/BulletAnimatSim/BlFluidPlane.h
Github Open Source
Open Source
BSD-3-Clause
2,021
AnimatLabPublicSource
NeuroRoboticTech
C
Code
91
311
/** \file BlFluidPlane.h \brief Declares the vortex fluid plane class. **/ #pragma once namespace BulletAnimatSim { namespace Environment { namespace Bodies { class BULLET_PORT BlFluidPlane : public AnimatSim::Environment::Bodies::FluidPlane, public BlRigidBody { protected: virtual void SetupPhys...
46,177
https://github.com/XeroAPI/Xero-NetStandard/blob/master/Xero.NetStandard.OAuth2.Test/Model/Accounting/JournalTests.cs
Github Open Source
Open Source
MIT
2,023
Xero-NetStandard
XeroAPI
C#
Code
354
878
/* * Accounting API * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.0.0 * Contact: api@xero.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using Xunit; using System; using ...
36,666
https://github.com/ArturAralin/swc/blob/master/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer_es2015.1.normal.js
Github Open Source
Open Source
Apache-2.0
null
swc
ArturAralin
JavaScript
Code
145
327
class C { } class D { } function F(x) { return 42; } function F2(x) { return x < 42; } var M; (function(M) { class A { } M.A = A; function F2(x) { return x.toString(); } M.F2 = F2; })(M || (M = {})); var N; (function(N) { class A { } N.A = A; function F2(x) { ...
4,557
https://github.com/Knowledge-Precipitation-Tribe/Traffic-data-processing/blob/master/model/metadata.go
Github Open Source
Open Source
MIT
null
Traffic-data-processing
Knowledge-Precipitation-Tribe
Go
Code
126
487
package model import "fmt" /** * @Author: super * @Date: 2020-10-19 14:22 * @Description: **/ type MetaData struct { CountryID int `gorm:"column:country_id" json:"country_id"` Type string `gorm:"column:type" json:"type"` Tag string `gorm:"column:tag" json:"tag"` ID int `gorm:"column:id;pr...
12,811
https://github.com/dscheerens/ngx-transloco-markup-router-link/blob/master/lib/src/router-link-renderer.ts
Github Open Source
Open Source
MIT
null
ngx-transloco-markup-router-link
dscheerens
TypeScript
Code
238
814
import { LocationStrategy } from '@angular/common'; import { Injectable } from '@angular/core'; import { Router, UrlTree } from '@angular/router'; import { LinkRenderer } from 'ngx-transloco-markup'; import { RouterLink, isRouterLink, NavigationCommand } from './router-link.model'; /** * An implementation of `LinkRe...
31,999
https://github.com/hmsck/gosu-lang/blob/master/gosu-test/src/test/gosu/gw/specification/dimensions/p1/SampleDimWithArith_SpecialNum.gs
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-warranty-disclaimer, BSD-3-Clause
2,019
gosu-lang
hmsck
null
Spoken
108
431
package gw.specification.dimensions.p1 uses java.math.BigDecimal /** * Created by sliu on 2/18/2015. */ final class SampleDimWithArith_SpecialNum extends baseSampleDim <SpecialNum>{ construct(o: SpecialNum) { super(o) } override function fromNumber(SpecialNum: SpecialNum): SampleDimWithArith_SpecialNum ...
51,284
https://github.com/RodrigoNaves/coralmap/blob/master/deployment/node_modules/terriajs/dist/Traits/TraitsClasses/TableChartStyleTraits.js
Github Open Source
Open Source
Apache-2.0
2,021
coralmap
RodrigoNaves
JavaScript
Code
338
876
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
34,530
https://github.com/strangewolf/productivity-frontend/blob/master/src/components/productivity/modal/meta/Position.js
Github Open Source
Open Source
MIT
2,019
productivity-frontend
strangewolf
JavaScript
Code
470
1,762
'use strict'; import React, { Component } from 'react'; import { Input, Button, message } from 'antd'; import { FormattedMessage } from 'react-intl'; import translate from 'app/global/helper/translate'; class ModalMeta extends Component { constructor(props) { super(props); this.state = { edit: false, pos...
36,651
https://github.com/claswh/mindsdb/blob/master/docs/examples/basic/predict.py
Github Open Source
Open Source
MIT
2,019
mindsdb
claswh
Python
Code
62
156
""" This example we will walk you over the basics of MindsDB The example code objective here is to predict the best retail price for a given property. """ from mindsdb import Predictor # use the model to make predictions result = Predictor(name='home_rentals_price').predict(when={'number_of_rooms': 2,'number_of_ba...
29,302
https://github.com/EcePanos/prototypes/blob/master/docker-meta/init-mongo.js
Github Open Source
Open Source
MIT
null
prototypes
EcePanos
JavaScript
Code
73
259
db.createUser({ user: 'root', pwd: 'toor', roles: [ { role: 'readWrite', db: 'testDB', }, ], }) db = new Mongo().getDB("testDB") db.createCollection('images', { capped: false }) db.createCollection('passthru', { capped: false }) db.images.insert([ { "imag...
18,251
https://github.com/ntzm/psalm/blob/master/src/Psalm/Issue/UndefinedAttributeClass.php
Github Open Source
Open Source
MIT
2,022
psalm
ntzm
PHP
Code
19
47
<?php namespace Psalm\Issue; class UndefinedAttributeClass extends ClassIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 241; }
42,024
https://github.com/tyleo/graphflo/blob/master/dep/frontend/src/component/add_node_menu/add_node_menu_props.ts
Github Open Source
Open Source
MIT
null
graphflo
tyleo
TypeScript
Code
20
66
import * as Graphflo from "graphflo"; export interface AddNodeMenuProps { readonly nodeDescs: Array<Graphflo.KeyedNodeDesc>; readonly styleManager: Graphflo.StyleManager; readonly state: Graphflo.AddNodeMenuState; }
51,077
https://github.com/aleeper/code_sandbox/blob/master/codestepbystep/is_all_vowels.py
Github Open Source
Open Source
MIT
2,021
code_sandbox
aleeper
Python
Code
45
158
def is_vowel(c): return len(c) == 1 and c.lower() in 'aeiou' def is_all_vowels(message): for c in message: if not is_vowel(c) and not c in '-_': return False return True def main(): message = "ei_e_io" print(message) print(is_all_vowels(message)) message = "banana" ...
41,081
https://github.com/Updownquark/DISEnumerations/blob/master/src/main/cpp/disenum/radio_tx_mod_spreadspectrum.cpp
Github Open Source
Open Source
BSD-2-Clause
2,022
DISEnumerations
Updownquark
C++
Code
498
1,747
#include <sstream> #include <cstddef> #include <disenum/radio_tx_mod_spreadspectrum.h> namespace DIS { namespace radio_tx_mod_spreadspectrum { bitmask& bitmask::operator=(const unsigned short& i) { (*this) = *( reinterpret_cast<bitmask *> (const_cast<unsigned short*>(&i))) ; return (*this); } bitmask::...
18,134
https://github.com/sue445/gitlabhq/blob/master/spec/javascripts/extensions/array_spec.js.coffee
Github Open Source
Open Source
MIT
2,022
gitlabhq
sue445
CoffeeScript
Code
43
109
#= require extensions/array describe 'Array extensions', -> describe 'first', -> it 'returns the first item', -> arr = [0, 1, 2, 3, 4, 5] expect(arr.first()).toBe(0) describe 'last', -> it 'returns the last item', -> arr = [0, 1, 2, 3, 4, 5] expect(arr.last()).toBe(5)
5,412
https://github.com/xueqiya/chromium_src/blob/master/out/release/gen/services/device/public/mojom/nfc.mojom-shared-internal.h
Github Open Source
Open Source
BSD-3-Clause
2,021
chromium_src
xueqiya
C++
Code
1,035
4,551
// services/device/public/mojom/nfc.mojom-shared-internal.h is auto generated by mojom_bindings_generator.py, do not edit // Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SERVICES_DEVICE_PUBLIC_...
24,157
https://github.com/tatyano/athenz/blob/master/libs/java/instance_provider/src/main/java/com/yahoo/athenz/instance/provider/impl/InstanceHttpProvider.java
Github Open Source
Open Source
Apache-2.0
2,019
athenz
tatyano
Java
Code
191
552
/** * Copyright 2017 Yahoo Holdings, Inc. * * 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 ...
16,803
https://github.com/sutra/blog-mover/blob/master/blog-mover-core/src/main/java/com/redv/blogmover/Comment.java
Github Open Source
Open Source
BSD-3-Clause
null
blog-mover
sutra
Java
Code
191
435
package com.redv.blogmover; import java.io.Serializable; import java.util.Date; /** * The comment of a web log entry. * * @author shutra * */ public interface Comment extends Serializable, Comparable<Comment> { /** * @return Returns the publishedDate. */ public Date getPublishedDate(); /** * @param ...
40,738
https://github.com/rochaandre/scripts-oracle-named/blob/master/+usados/Novos/Sessions/session_times.sql
Github Open Source
Open Source
MIT
null
scripts-oracle-named
rochaandre
SQL
Code
79
229
------------------------------------------------------------------------------- -- -- Script: session_times.sql -- Purpose: to report the time used and waiting for a session -- -- Copyright: (c) Ixora Pty Ltd -- Author: Steve Adams -- -- Synopsis: @set_sid -- @session_times -- -----------------------------------------...
28,434
https://github.com/ds201891/choco-solver/blob/master/parsers/src/main/python/utils/DBExtractor.py
Github Open Source
Open Source
BSD-4-Clause
2,021
choco-solver
ds201891
Python
Code
1,057
3,272
__author__ = 'cprudhom' import configparser import pymysql.cursors from collections import OrderedDict from pylatex import Document, Section, Subsection, Table, Math, TikZ, Axis, \ Plot, Figure, Package class result: name = "" # pb name res = "" # SAT, MIN or MAX bobj = -1 # best know objective ...
21,477
https://github.com/mmcdevitt/tacolife/blob/master/client/components/Admin/Dashboard.js
Github Open Source
Open Source
MIT
null
tacolife
mmcdevitt
JavaScript
Code
55
182
import React, {Component} from 'react' import { connect } from 'react-redux' class Dashboard extends Component { render() { return ( <div> <h1>restaurants</h1> { this.props.restaurants.map(restaurant => { return ( <div key={restaurant.id}>{restaurant.nam...
16,130
https://github.com/iSynth/WDL-iSynth/blob/master/IPlugExamples/IPlugGamma/gamma/tests/testRecurrenceMap.cpp
Github Open Source
Open Source
Zlib
2,017
WDL-iSynth
iSynth
C++
Code
83
417
#include "Gamma/RecurrenceMaps.h" #include "Gamma/scl.h" #include "Gamma/Print.h" using namespace gam; int main(int argc, char ** argv){ // MapLin<double> ln1(1.); // // ln1.coef(-1., -0.5); // // for(int i=0; i<32; i++){ // //ln1.x = SclOp::wrap(ln1.x); // //printf("[% 3i] %.12f\n", i, ln1.x); // SclOp::printP...
16,711
https://github.com/Chinchu-Thambi/YellowWorks/blob/master/src/components/UI/StepsBar.js
Github Open Source
Open Source
MIT
null
YellowWorks
Chinchu-Thambi
JavaScript
Code
145
420
import PropTypes from 'prop-types'; import * as R from 'ramda'; import React from 'react'; import { Flex } from 'rebass/styled-components'; import styled from 'styled-components'; const Step = styled.div` min-width: ${({ theme }) => theme.space[3]}; height: ${({ theme }) => theme.space[2]}; flex-grow: 1; margi...
30,809
https://github.com/rsutormin/njs_wrapper/blob/master/Makefile
Github Open Source
Open Source
MIT
2,016
njs_wrapper
rsutormin
Makefile
Code
136
602
KB_TOP ?= /kb/dev_container KB_RUNTIME ?= /kb/runtime DEPLOY_RUNTIME ?= $(KB_RUNTIME) TARGET ?= /kb/deployment CURR_DIR = $(shell pwd) SERVICE_NAME = $(shell basename $(CURR_DIR)) SERVICE_CAPS = NarrativeJobService SERVICE_DIR = $(TARGET)/services/$(SERVICE_NAME) WAR_FILE = NJSWrapper.war ANT = ant BIN = $(TARGET)/bin ...
32,880
https://github.com/mweslander/veery/blob/master/src/client/components/EventIcons/index.scss
Github Open Source
Open Source
MIT
2,018
veery
mweslander
SCSS
Code
34
127
@import "../../css/variables"; .c-event-icons { &__container { align-self: center; flex: 0 0 10%; margin-right: 5%; } &__dollar-icon { color: $gold; font-size: $h3-font-size; margin-left: $h3-font-size / 3; } &__icon { height: 32px; position: relative; } }
52,284
https://github.com/gaurav712/wlan_toggle_service/blob/master/wlan_toggle_service.c
Github Open Source
Open Source
MIT
2,021
wlan_toggle_service
gaurav712
C
Code
328
941
/* * This program is intended to be run as a background service(daemon) * * It listens to messages sent to "localhost:PORT" (PORT is defined below) * It is currently configured to toggle wlan state * * To toggle wlan, the message must be of the format: "MODE", * where MODE is 0 -> when wlan is to be turned ...
44,813
https://github.com/dimitrileite/material-kit-react/blob/master/src/components/ColorPreview.js
Github Open Source
Open Source
MIT
null
material-kit-react
dimitrileite
JavaScript
Code
125
384
import PropTypes from "prop-types"; // material import { alpha, experimentalStyled as styled } from "@material-ui/core/styles"; import { Box, Typography } from "@material-ui/core"; // ---------------------------------------------------------------------- const RootStyle = styled(Box)({ display: "flex", alignItems...
4,780
https://github.com/lanl/DnMFkCPP/blob/master/install_dependencies/xianyi-OpenBLAS-6d2da63/driver/level3/CMakeFiles/csyrk_LN.c
Github Open Source
Open Source
BSD-3-Clause, Unlicense
2,021
DnMFkCPP
lanl
C
Code
24
150
#define LOWER #define ASMNAME csyrk_LN #define ASMFNAME csyrk_LN_ #define NAME csyrk_LN_ #define CNAME csyrk_LN #define CHAR_NAME "csyrk_LN_" #define CHAR_CNAME "csyrk_LN" #define COMPLEX #include "/lustre/scratch3/turquoise/rvangara/RD100/distnnmfkcpp_Src/install_dependencies/xianyi-OpenBLAS-6d2da63/driver/level3/syrk...
45,321
https://github.com/Code-Sharp/WampSharp/blob/master/src/netstandard/WampSharp/WAMP2/V2/PubSub/Interfaces/EventArgs/WampTopicCreatedEventArgs.cs
Github Open Source
Open Source
BSD-2-Clause-Views
2,023
WampSharp
Code-Sharp
C#
Code
36
99
using System; namespace WampSharp.V2.PubSub { /// <summary> /// Represents <see cref="EventArgs"/> for an event where a topic was created. /// </summary> public class WampTopicCreatedEventArgs : WampTopicEventArgs { public WampTopicCreatedEventArgs(IWampTopic topic) : base(topic) {...
15,789
https://github.com/Dinesh-Glu/CrashlyticsTest_Unity4/blob/master/FB_Unity4/Assets/Plugins/Android/com.google.android.gms.play-services-basement-16.0.1/proguard.txt.meta
Github Open Source
Open Source
LicenseRef-scancode-protobuf, Apache-2.0, BSD-3-Clause
2,018
CrashlyticsTest_Unity4
Dinesh-Glu
Unity3D Asset
Code
6
38
fileFormatVersion: 2 guid: 483b6aeb9590740798c52a6d21b51483 DefaultImporter: userData:
6,034
https://github.com/Mechanicalkeyboard/shudder/blob/master/serviceShutdown.py
Github Open Source
Open Source
Apache-2.0
null
shudder
Mechanicalkeyboard
Python
Code
90
407
import requests import os import time try: print("Getting AMI ID") ami_id_route='http://169.254.169.254/latest/meta-data/ami-id' ami_id = requests.get(ami_id_route) ami_id='i-0dd87e2cff5cf660c' service=os.environ['service'] print(service) region=os.environ['region'] print(region) env...
43,093
https://github.com/liu044100/LearnCPP/blob/master/LearnCPP/AppDelegate.h
Github Open Source
Open Source
MIT
null
LearnCPP
liu044100
C
Code
35
101
// // AppDelegate.h // LearnCPP // // Created by yuchen liu on 22/11/2016. // Copyright © 2016 rain. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
35,895
https://github.com/edmondscommerce/doctrine-static-meta/blob/master/src/CodeGeneration/Creation/Src/Entity/Factories/AbstractEntityFactoryCreator.php
Github Open Source
Open Source
MIT
null
doctrine-static-meta
edmondscommerce
PHP
Code
65
248
<?php declare(strict_types=1); namespace EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Creation\Src\Entity\Factories; use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Creation\AbstractCreator; use RuntimeException; class AbstractEntityFactoryCreator extends AbstractCreator { public const FIND_NAME ...
1,782
https://github.com/vikingcode/UpYours/blob/master/UpYours/Models/VideoStatus.cs
Github Open Source
Open Source
MIT
null
UpYours
vikingcode
C#
Code
29
112
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace UpYours.Models { public enum VideoStatus { [Description("Unlisted")] Unlisted, [Description("Public")] Public, [Des...
5,212
https://github.com/androidx/androidx/blob/master/compose/ui/ui-lint/src/test/java/androidx/compose/ui/lint/UiStubs.kt
Github Open Source
Open Source
Apache-2.0
2,023
androidx
androidx
Kotlin
Code
403
6,157
/* * Copyright 2022 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 applica...
25,954
https://github.com/wonderful666/marx-10.1.0/blob/master/kernel/include/linux/hisi/hisi_hw_vote.h
Github Open Source
Open Source
MIT
null
marx-10.1.0
wonderful666
C
Code
109
382
/* hisi_hw_vote.h */ #ifndef __HISI_HW_VOTE_H__ #define __HISI_HW_VOTE_H__ struct hv_reg_cfg { void __iomem *reg; u32 rd_mask; u32 wr_mask; }; struct hv_channel { const char *name; void __iomem *base; u32 ratio; struct hv_reg_cfg result; u32 hvdev_nu...
8,347
https://github.com/SeasideSt/SeasideDynamicSVG/blob/master/repository/SeasideDynamicSVG-Core/SVGTransformList.class.st
Github Open Source
Open Source
MIT
null
SeasideDynamicSVG
SeasideSt
null
Spoken
142
368
Class { #name : #SVGTransformList, #superclass : #OrderedCollection, #category : #'SeasideDynamicSVG-Core-Transform' } { #category : #public } SVGTransformList >> matrix: aNumberList [ self add: (SVGMatrixType with: aNumberList) ] { #category : #public } SVGTransformList >> rotate: aNumber [ self add: (SVGRotati...
21,026
https://github.com/Komoszek/k361/blob/master/public/scripts/k361.js
Github Open Source
Open Source
MIT
2,019
k361
Komoszek
JavaScript
Code
6,522
19,154
// TODO: TRANSLATE angular.module('k361', [ 'ngMaterial', 'ngMessages', 'ngAnimate', 'ngAria', 'ngTagsInput','ngFileUpload','nzToggle','angular-inview','angularViewportWatch'] ).controller( 'Controller', [ '$scope', '$http', '$window', '$interval', '$mdSidenav', '$mdDialog', '$mdToast', '$mdMedia','Upload', function (...
42,982
https://github.com/zeux/fastprintf/blob/master/unittests.fs
Github Open Source
Open Source
Unlicense, MIT
2,019
fastprintf
zeux
null
Spoken
4,833
15,082
// FastPrintf - a fast F# printf replacement // Copyright (C) 2011-2012, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com) // Report bugs and download new versions at http://hg.zeuxcg.org/fastprintf // This library is distributed under the MIT License. module UnitTests open System open System.Globalization open Syste...
29,816
https://github.com/jeikabu/lumberyard/blob/master/dev/Code/Tools/PRT/SimpleIndexedMesh.inl
Github Open Source
Open Source
AML
2,022
lumberyard
jeikabu
C++
Code
794
3,279
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
38,443
https://github.com/BrodaNoel/expo/blob/master/ios/versioned-react-native/ABI28_0_0/Expo/Core/Api/Sensors/ABI28_0_0EXMagnetometerUncalibrated.h
Github Open Source
Open Source
MIT, Apache-2.0, BSD-3-Clause
2,019
expo
BrodaNoel
Objective-C
Code
23
222
#import <ReactABI28_0_0/ABI28_0_0RCTBridge.h> #import "ABI28_0_0EXScopedEventEmitter.h" @protocol ABI28_0_0EXMagnetometerUncalibratedScopedModuleDelegate - (void)sensorModuleDidSubscribeForMagnetometerUncalibratedUpdatesOfExperience:(NSString *)experienceId withH...
29,322
https://github.com/bekk/bekkboard/blob/master/server/test/app-test.js
Github Open Source
Open Source
MIT
2,015
bekkboard
bekk
JavaScript
Code
208
676
var request = require('supertest'), level = require('level-mem'); var server = require('../app'); describe('app', function () { var app, events; beforeEach(function () { events = new process.EventEmitter(); var db = level('db-name-does-not-matter', { keyEncoding: 'utf-8', valueEncoding...
46,657
https://github.com/jessicafraines/mommy-business-db/blob/master/client/index.less
Github Open Source
Open Source
MIT
2,014
mommy-business-db
jessicafraines
Less
Code
116
578
@import url(http://fonts.googleapis.com/css?family=Give+You+Glory|Dancing+Script|Satisfy|Kranky|Mountains+of+Christmas|Miltonian+Tattoo); // http://clrs.cc/ @theme: #555; @NAVY: #001F3F; @BLUE: #0074D9; @AQUA: #7FDBFF; @TEAL: #39CCCC; @OLIVE: #3D9970; @GREEN: #2ECC40; @LIME: #01FF70; @YELLOW: #FFDC...
45,168
https://github.com/perezite/sandbox-2/blob/master/Reflection/src/TextureSheet.h
Github Open Source
Open Source
MIT
2,022
sandbox-2
perezite
C++
Code
69
220
#pragma once #include "Texture.h" #include <vector> namespace sb { class TextureSheet { public: TextureSheet(const sb::Vector2i& size, bool allowOversize = true); inline const Texture& getTexture() const { return m_texture; } inline Texture& getTexture() { return m_texture; } inline const sb::IntRect& g...
7,710
https://github.com/vthriller/Kaiwa/blob/master/webpack.config.js
Github Open Source
Open Source
MIT
2,020
Kaiwa
vthriller
JavaScript
Code
130
598
var path = require('path') module.exports = { debug: true, devtool: 'cheap-source-map', resolve: { extensions: ['', '.ts', '.js', '.json', '.jade', '.html', '.less', '.css', '.json'] }, context: path.join(__dirname, 'src', 'js'), entry: { "0-babel-polyfill": 'babel-polyfil...
41,819
https://github.com/avetisk/mineral-ui/blob/master/src/website/app/demos/routes.js
Github Open Source
Open Source
Apache-2.0
2,022
mineral-ui
avetisk
JavaScript
Code
1,249
2,798
/* @flow */ export type DemoRoutes = Array<DemoRoute>; export type DemoRoute = Array<Route> | Route; type Route = { description: string, redirect?: string, slug: string, title: string }; const demoRoutes: DemoRoutes = [ { description: 'Avatar provides a graphic representation of an identity. It ca...
49,914
https://github.com/windystrife/UnrealEngine_NVIDIAGameWorks/blob/master/Engine/Source/Runtime/Engine/Public/Net/UnrealNetwork.h
Github Open Source
Open Source
MIT, LicenseRef-scancode-proprietary-license
2,022
UnrealEngine_NVIDIAGameWorks
windystrife
C++
Code
607
2,000
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. /*============================================================================= UnrealNetwork.h: Unreal networking. =============================================================================*/ /*----------------------------------------------------------...
33,848
https://github.com/Tech-Fest-ITFox/Laravel-ITFox/blob/master/resources/views/includes/header.blade.php
Github Open Source
Open Source
MIT
null
Laravel-ITFox
Tech-Fest-ITFox
PHP
Code
411
1,973
<div class="top-section"> <!-- USER SECTION --> <div class="user-section signed clearfix"> @if(Auth::check()) <div class="notification-trigger fleft"></div> <div class="user-info fleft"> <div class="avatar-holder fleft"> <img src="{...
27,221
https://github.com/nbrenwald/jenkins-pagerduty-plugin/blob/master/src/main/java/org/jenkinsci/plugins/pagerduty/util/PagerDutyUtils.java
Github Open Source
Open Source
Apache-2.0
null
jenkins-pagerduty-plugin
nbrenwald
Java
Code
413
1,504
package org.jenkinsci.plugins.pagerduty.util; import com.github.dikhan.PagerDutyEventsClient; import com.github.dikhan.domain.EventResult; import com.github.dikhan.domain.ResolveIncident; import com.github.dikhan.domain.TriggerIncident; import hudson.EnvVars; import hudson.model.BuildListener; import hudson.model.Task...
12,506
https://github.com/jxdking/ADOExt/blob/master/ADOExt/DBTableAdapter/DBTableAdapter.cs
Github Open Source
Open Source
MIT
2,023
ADOExt
jxdking
C#
Code
369
1,030
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace MagicEastern.ADOExt { public class DBTableAdapter<T> : DBTableAdapterContext<T>, IDBTableAdapter<T> where T : new() { private readonly ISqlInsertTemplate<T> InsertCommand = null; private reado...
36,158
https://github.com/MattDiMu/ngx-ui-scroll/blob/master/src/component/processes/preFetch.ts
Github Open Source
Open Source
MIT
2,018
ngx-ui-scroll
MattDiMu
TypeScript
Code
217
735
import { Scroller } from '../scroller'; import { Direction, Process, ProcessSubject } from '../interfaces/index'; export default class PreFetch { static run(scroller: Scroller) { scroller.state.process = Process.preFetch; const direction = scroller.state.direction; const paddingEdge = scroller.viewport...
46,584
https://github.com/kpqi5858/Voxel/blob/master/Source/VoxelEditor/Private/VoxelLandscapeImporterDetails.cpp
Github Open Source
Open Source
MIT
2,018
Voxel
kpqi5858
C++
Code
552
2,513
#include "VoxelLandscapeImporterDetails.h" #include "PropertyHandle.h" #include "DetailLayoutBuilder.h" #include "DetailWidgetRow.h" #include "DetailCategoryBuilder.h" #include "IDetailsView.h" #include "Widgets/DeclarativeSyntaxSupport.h" #include "Widgets/Text/STextBlock.h" #include "Widgets/Input/SButton.h" #includ...
31,986
https://github.com/swatantra94/social-media/blob/master/autho/forms.py
Github Open Source
Open Source
MIT
2,020
social-media
swatantra94
Python
Code
32
156
from django import forms class LoginForm(forms.Form): username = forms.CharField(max_length=256) password = forms.CharField(max_length=256,widget=forms.PasswordInput) class SignUpForm(forms.Form): username = forms.CharField(max_length=256) password = forms.CharField(max_length=256,widget=forms.Passwo...
36,418
https://github.com/wxsh/GapStyle/blob/master/vscode/test/sample.swift
Github Open Source
Open Source
MIT
2,022
GapStyle
wxsh
Swift
Code
142
323
#!/usr/bin/swift /* Block comment */ import Cocoa // line comment struct StructName { var s : [StructName?] } enum EnumName { case Foo, Bar } protocol ProtocolName { var p : ProtocolName { get set } } typealias TypeAlias = EnumName @attr(arg, *) class ClassName<T> : ProtocolName { var property : ClassName var t...
14,443
https://github.com/LouisGuo/Texas/blob/master/Code/TexasWebService/TexasWebService/Api/Record.asmx.cs
Github Open Source
Open Source
Apache-2.0
2,016
Texas
LouisGuo
C#
Code
543
1,530
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Web; using System.Web.Services; using TexasWebService.Common; namespace TexasWebService.Api { /// <summary> /// Record 的摘要说明 /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebService...
46,545
https://github.com/AcademySoftwareFoundation/OpenColorIO/blob/master/share/cmake/modules/install/Installyaml-cpp.cmake
Github Open Source
Open Source
BSD-3-Clause, CC-BY-4.0
2,023
OpenColorIO
AcademySoftwareFoundation
CMake
Code
295
2,052
# SPDX-License-Identifier: BSD-3-Clause # Copyright Contributors to the OpenColorIO Project. # # Install yaml-cpp # # Variables defined by this module: # yaml-cpp_FOUND - Indicate whether the library was found or not # yaml-cpp_LIBRARY - Path to the library file # yaml-cpp_INCLUDE_DIR - Locatio...
40,193