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/huangking/springdm-in-action/blob/master/ch08/ch08-web-wicket/src/main/java/com/manning/sdmia/wicket/DirectoryApplication.java
Github Open Source
Open Source
Apache-2.0
null
springdm-in-action
huangking
Java
Code
49
205
package com.manning.sdmia.wicket; import org.apache.wicket.protocol.http.WebApplication; import org.apache.wicket.spring.injection.annot.SpringComponentInjector; import com.manning.sdmia.wicket.pages.ContactsPage; public class DirectoryApplication extends WebApplication { //private ContactService contactService; ...
31,037
https://github.com/noval102200/NovalIDE/blob/master/plugins/Django/djangokit/django.py
Github Open Source
Open Source
MulanPSL-1.0
2,020
NovalIDE
noval102200
Python
Code
896
5,406
# -*- coding: utf-8 -*- __author__ = "Cody Precord <cprecord@editra.org>" __svnid__ = "$Id: calc.py 850 2009-05-01 00:24:27Z CodyPrecord $" __revision__ = "$Revision: 850 $" #--------------------------------------------------------------------------# # Dependancies import tkinter as tk from tkinter import ttk,message...
5,491
https://github.com/OsamaImadi/propery/blob/master/src/deal/deal.controller.ts
Github Open Source
Open Source
MIT
null
propery
OsamaImadi
TypeScript
Code
106
349
import { Body, Controller, Get, Param, Post, ValidationPipe } from '@nestjs/common'; import { PgParams, PaginationParams, Pagination } from '@tfarras/nestjs-typeorm-pagination'; import { Deal } from './deal.entity'; import { DealService } from './deal.service'; import { DealsDto } from './dto/deal.dto'; @Controller('d...
48,876
https://github.com/JumpLinkNetwork/tinybind/blob/master/demos/moment/src/ts/main.ts
Github Open Source
Open Source
MIT
null
tinybind
JumpLinkNetwork
TypeScript
Code
36
124
import { coreModule, Riba } from "@ribajs/core"; import { momentModule } from "@ribajs/moment"; import { MomentDemoModule } from "./moment-demo.module"; const riba = new Riba(); const model = {}; // Register modules riba.module.regist(coreModule.init()); riba.module.regist(momentModule.init()); riba.module.regist(Mom...
14,044
https://github.com/andresvn89/quantdsl/blob/master/quantdsl/test_application.py
Github Open Source
Open Source
BSD-3-Clause
2,017
quantdsl
andresvn89
Python
Code
2,096
9,010
import datetime import unittest from abc import ABCMeta from time import sleep import scipy from eventsourcing.domain.model.events import assert_event_handlers_empty from six import with_metaclass from quantdsl.application.with_pythonobjects import QuantDslApplicationWithPythonObjects from quantdsl.domain.model.call...
9,829
https://github.com/lakeho/EWallet/blob/master/Frontend/Dashboard-Expense-Management/src/app/pages/transaction/transaction-update/transaction-update.component.ts
Github Open Source
Open Source
MIT
2,020
EWallet
lakeho
TypeScript
Code
156
616
import { Component, OnInit, Inject } from '@angular/core'; import { MatDialogRef } from '@angular/material/dialog'; import { MatSnackBar } from '@angular/material/snack-bar'; import { Transaction } from 'src/app/models/transaction'; import { Category } from 'src/app/models/category'; import { TransService } from 'src/a...
41,718
https://github.com/vtumuluri/cockroach/blob/master/pkg/BUILD.bazel
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-bsl-1.0, MIT, LicenseRef-scancode-cockroach
2,021
cockroach
vtumuluri
Starlark
Code
469
6,972
# Code generated by generate-test-suites, DO NOT EDIT. # gazelle:proto_strip_import_prefix /pkg ALL_TESTS = [ "//pkg/acceptance:acceptance_test", "//pkg/base:base_test", "//pkg/bench/ddl_analysis:ddl_analysis_test", "//pkg/bench:bench_test", "//pkg/blobs:blobs_test", "//pkg/ccl/backupccl/backup...
34,748
https://github.com/autocare/soda-for-java/blob/master/src/oracle/json/parser/PathParser.java
Github Open Source
Open Source
MIT, UPL-1.0
2,018
soda-for-java
autocare
Java
Code
1,944
4,801
/* Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.*/ /* DESCRIPTION Parser for JSON paths found in QBE documents, index specifications, etc. NOTES A path consists of a series of steps. There are two kinds of steps: - field steps - array steps A path may star...
36,290
https://github.com/scbedd/azure-sdk-for-node/blob/master/lib/services/labservicesManagement/lib/models/referenceVmFragment.js
Github Open Source
Open Source
Apache-2.0, MIT
2,022
azure-sdk-for-node
scbedd
JavaScript
Code
170
377
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
52,585
https://github.com/gabbinguyen/skinssentials/blob/master/node_modules/bulma-carousel/src/js/components/transitions/fade.js
Github Open Source
Open Source
MIT
2,020
skinssentials
gabbinguyen
JavaScript
Code
224
1,058
import { css } from '../../utils/css'; export default class Fade { constructor(transitioner, slider, options = {}) { this.transitioner = transitioner; this.slider = slider; this.options = { ...options }; } init() { if (this.options.effect === 'fade') { this.slider.slides.forEach((slide, index) => ...
51,041
https://github.com/taaflja2/graviton/blob/master/src/Graviton/CoreBundle/Util/CoreUtils.php
Github Open Source
Open Source
MIT
2,020
graviton
taaflja2
PHP
Code
245
710
<?php /** * some utility functions */ namespace Graviton\CoreBundle\Util; /** * @author List of contributors <https://github.com/libgraviton/graviton/graphs/contributors> * @license https://opensource.org/licenses/MIT MIT License * @link http://swisscom.ch */ class CoreUtils { /** * Parses a fi...
16,136
https://github.com/tyler-smith/bazaar-dog-stencil/blob/master/src/assets/ipfs-postmsg-proxy/lib/index.js
Github Open Source
Open Source
MIT
2,018
bazaar-dog-stencil
tyler-smith
JavaScript
Code
72
230
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _server = require('./server'); Object.defineProperty(exports, 'createProxyServer', { enumerable: true, get: function get() { return _interopRequireDefault(_server).default; } }); Object.defineProperty(exports, 'closeProxySer...
26,891
https://github.com/demisoreks/bcheck/blob/master/resources/views/requirements/edit.blade.php
Github Open Source
Open Source
MIT
null
bcheck
demisoreks
PHP
Code
83
342
@extends('app', ['page_title' => 'Service Requirements', 'open_menu' => 'settings']) @section('content') <div class="row"> <div class="col-12"> <div class="alert alert-primary alert-dismissible"> Service: <strong>{{ $service->description }}</strong> </div> </div> </div> <div class="...
862
https://github.com/humble-barnacle001/qt-raster-lines/blob/master/lines/ddawidget.cpp
Github Open Source
Open Source
MIT
null
qt-raster-lines
humble-barnacle001
C++
Code
71
190
#include "ddawidget.h" #include <cmath> const QList<QPoint> DDAWidget::drawLine() { qreal dx = x2 - x1, dy = y2 - y1; qreal step = abs(dx) >= abs(dy) ? abs(dx) : abs(dy); dx = dx / step; dy = dy / step; qreal x = this->x1, y = this->y1, i = 1; QList<QPoint> points; while (i <= step + 1) ...
11,932
https://github.com/demisto/content/blob/master/Packs/D2/Scripts/RegPathReputationBasicLists/RegPathReputationBasicLists_test.py
Github Open Source
Open Source
MIT
2,023
content
demisto
Python
Code
58
295
import pytest import demistomock as demisto # noqa: F401 from RegPathReputationBasicLists import main LIST_ARGS = [ (r'HKEY_CURRENT_USER\Software\Locky', 3), (r"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", 2), (r'HKEY_LOCAL_MACHINE\Software\wow6432node\Microsoft\Windows\CurrentVersion...
42,124
https://github.com/MaterializeInc/rust-sasl/blob/master/sasl2-sys/sasl2/mac/krb4_sources/krb-archaeology.h
Github Open Source
Open Source
BSD-Attribution-HPND-disclaimer, Apache-2.0
2,022
rust-sasl
MaterializeInc
C
Code
610
2,215
/* * $Id: krb-archaeology.h,v 1.2 2001/12/04 02:06:08 rjs3 Exp $ * * Most of the cruft in this file is probably: * * Copyright 1985, 1986, 1987, 1988 by the Massachusetts Institute * of Technology. * * For copying and distribution information, please see the file * <mit-copyright.h>. */ #ifndef __KRB_ARCHAEO...
27,344
https://github.com/teguh11/modern_kranji/blob/master/resources/views/layouts/report/order.blade.php
Github Open Source
Open Source
MIT
null
modern_kranji
teguh11
PHP
Code
302
1,804
@extends('themes.adminlte.app') @section('stylesheets') <link rel="stylesheet" href="{{asset('adminlte/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css')}}"> <link rel="stylesheet" href="{{asset('adminlte/bower_components/bootstrap-daterangepicker/daterangepicker.css')}}"> <link rel="stylesheet...
2,685
https://github.com/MASON980/Portfolio_game/blob/master/src/article/song.h
Github Open Source
Open Source
SGI-B-2.0, LicenseRef-scancode-unknown-license-reference, MIT
2,016
Portfolio_game
MASON980
C++
Code
40
123
/* * song.h * * Created on: 1 Mar 2016 * Author: Mason */ #ifndef SRC_ARTICLE_SONG_H_ #define SRC_ARTICLE_SONG_H_ #include "article.h" class Song: public Article { public: Song(); Song(int, int, int, char*); virtual ~Song(); void draw(); }; #endif /* SRC_ARTICLE_SONG_H_ */
49,145
https://github.com/marc-philip-ecker/RobotDynamics.jl/blob/master/src/linearization.jl
Github Open Source
Open Source
MIT
2,021
RobotDynamics.jl
marc-philip-ecker
Julia
Code
865
2,497
""" LinearizedModel{M,L,T} <: AbstractLinearModel A container for the linearized model that holds the full nonlinear model, the linearized model, and the trajectory of linearization points. The same dynamics and jacobian functions can still be called on the `LinearizedModel` type. # Constructors LinearizedMod...
35,699
https://github.com/Kuo-TingKai/qtt-Nanoelectronics/blob/master/src/tests/unittests/measurements/test_storage.py
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,021
qtt-Nanoelectronics
Kuo-TingKai
Python
Code
80
454
# %% import qtt.simulation.virtual_dot_array import tempfile from qtt.instrument_drivers.virtual_gates import VirtualGates from qtt.measurements.storage import save_state, load_state from unittest import TestCase # %% class TestStorage(TestCase): def test_storage(self, verbose=0): station = qtt.simulatio...
53,602
https://github.com/TOHEEE/NewsCopy/blob/master/app/src/main/java/com/person/newscopy/news/network/bean/DataBeanX.java
Github Open Source
Open Source
Apache-2.0
2,019
NewsCopy
TOHEEE
Java
Code
101
390
package com.person.newscopy.news.network.bean; public class DataBeanX { /** * open_url : /group/6710830814667473411/ * group_id : 6710830814667473411 * image_url : //p1.pstatp.com/list/240x240/pgc-image/1da86651499f4db292ce4a9ea50de9c6 * title : 上映3天票房破3.5亿,刘德华赚翻了,港片终于开始复苏崛起了 */ priva...
32,266
https://github.com/RobomoSTL/Sherpa/blob/master/rviz.sh
Github Open Source
Open Source
Apache-2.0
2,016
Sherpa
RobomoSTL
Shell
Code
4
19
#!/bin/bash rviz -d ./sherpa.rviz
35,328
https://github.com/tcat-tamu/trc/blob/master/bundles/edu.tamu.tcat.trc.services.rest/src/edu/tamu/tcat/trc/services/rest/seealso/v1/SeeAlsoEntryResource.java
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,017
trc
tcat-tamu
Java
Code
864
2,578
package edu.tamu.tcat.trc.services.rest.seealso.v1; import static java.text.MessageFormat.format; import static javax.ws.rs.core.Response.Status.BAD_REQUEST; import static javax.ws.rs.core.Response.Status.INTERNAL_SERVER_ERROR; import java.util.Collection; import java.util.Map; import java.util.logging.Level; import...
8,271
https://github.com/midoujia/alipay-sdk-java-all/blob/master/src/main/java/com/alipay/api/domain/AlipayPcreditHuabeiMerchantGoodsSyncModel.java
Github Open Source
Open Source
Apache-2.0
2,021
alipay-sdk-java-all
midoujia
Java
Code
87
397
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 花呗美味商家宝贝同步接口 * * @author auto create * @since 1.0, 2021-10-25 13:46:18 */ public class AlipayPcreditHuabeiMerchant...
36,227
https://github.com/LeLuxNet/Wholesome/blob/master/src/list/gpage.ts
Github Open Source
Open Source
MIT
2,021
Wholesome
LeLuxNet
TypeScript
Code
200
586
import { ApiReq } from "../http/api"; import Reddit from "../reddit"; import { Page, pageLimit, PageOptions } from "./page"; export class GPage<T> implements Page<T> { items: T[]; options: PageOptions; private data: GData<T>; private first: number; /** @internal */ constructor(items: T[], options: PageO...
7,126
https://github.com/MineFormers/Visum/blob/master/src/test/scala/de/mineformers/visum/test/bean/BindingSpec.scala
Github Open Source
Open Source
MIT
2,015
Visum
MineFormers
Scala
Code
131
397
package de.mineformers.visum.test.bean import de.mineformers.visum.bean.binding.SimpleBinding import de.mineformers.visum.bean.property.SimpleMutableProperty import de.mineformers.visum.bean.value.{Value, MutableValue} import de.mineformers.visum.macros.property import org.scalatest.{FlatSpec, Matchers} import de.mine...
48,629
https://github.com/liferay/portletmvc4spring/blob/master/demo/applicant-webflow-portlet/src/main/webapp/WEB-INF/flows/page1.jsp
Github Open Source
Open Source
Apache-2.0
2,022
portletmvc4spring
liferay
null
Spoken
282
1,817
<?xml version="1.0" encoding="UTF-8"?> <jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:portlet="http://xmlns.jcp.org/portlet_3_0" xmlns:spring="http://www.springframework.org/tags" version="2.1...
2,958
https://github.com/ljz/xLua/blob/master/Assets/XLua/Tutorial/TODOTest/Resources/xls2lua/Lib/test/cjkencodings/gb2312.txt.meta
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT, BSD-3-Clause
2,018
xLua
ljz
Unity3D Asset
Code
12
66
fileFormatVersion: 2 guid: 8aa6efc57bd414030a74f960dbc2fc8b timeCreated: 1520498072 licenseType: Free TextScriptImporter: userData: assetBundleName: assetBundleVariant:
20,428
https://github.com/Yuanjihua1/SwiftyORM/blob/master/SwiftyORM/StORMConnect.swift
Github Open Source
Open Source
MIT
2,017
SwiftyORM
Yuanjihua1
Swift
Code
131
304
// // Connect.swift // StORM // // Created by Jonathan Guthrie on 2016-09-23. // // /// The base StORMConnect class. /// Defines a generic structure containing the client daabase's connection properties. open class StORMConnect { /// Contains the datasource enum value. open var datasource = StORMDataSource...
22,853
https://github.com/NET1211/aspnet-archive-tools/blob/master/src/graphql-aspnet/Parsing/Lexing/Source/SourceRules/ISourceRule.cs
Github Open Source
Open Source
MIT
2,022
aspnet-archive-tools
NET1211
C#
Code
80
224
// ************************************************************* // project: graphql-aspnet // -- // repo: https://github.com/graphql-aspnet // docs: https://graphql-aspnet.github.io // -- // License: MIT // ************************************************************* namespace GraphQL.AspNet.Parsing.Lexing.Source...
9,527
https://github.com/DeprecatedLuke/fireflyx/blob/master/src/main/java/com/ngxdev/anticheat/api/inventory/Item.java
Github Open Source
Open Source
MIT
2,022
fireflyx
DeprecatedLuke
Java
Code
247
852
package com.ngxdev.anticheat.api.inventory; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.enchantments.Enchantment; import org.bukkit.entity.Player; import org.bukkit.event.inventory.InventoryClickEvent; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; imp...
46,236
https://github.com/Theabominog/ibex/blob/master/vendor/lowrisc_ip/ip/prim/rtl/prim_secded_39_32_enc.sv
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,021
ibex
Theabominog
null
Spoken
92
291
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // SECDED Encoder generated by // util/design/secded_gen.py -m 7 -k 32 -s 1592631616 -c hsiao module prim_secded_39_32_enc ( input [31:0] in, output logic ...
15,337
https://github.com/timw4mail/HummingBirdAnimeClient/blob/master/frontEndSrc/spack.config.js
Github Open Source
Open Source
MIT
2,020
HummingBirdAnimeClient
timw4mail
JavaScript
Code
37
137
module.exports = { entry: { 'scripts.min': __dirname + '/js/index.js', 'tables.min': __dirname + '/js/base/sort-tables.js', }, output: { path: '../public/js', }, options: { jsc: { target: 'es3', loose: true, }, minify: true, module: { type: 'es6' } } }
15,416
https://github.com/haohangan/java-ioc/blob/master/src/main/java/com/ibm/ioc/Annotations.java
Github Open Source
Open Source
Apache-2.0
2,020
java-ioc
haohangan
Java
Code
75
202
/* * Copyright (c) IBM Corporation 2020. All Rights Reserved. * Project name: java-ioc * This project is licensed under the Apache License 2.0, see LICENSE. */ package com.ibm.ioc; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java....
1,898
https://github.com/robsonzupper/orange-talents-04-template-ecommerce/blob/master/src/main/java/br/com/zupacademy/robson/ecommerce/opinion/OpinionRequest.java
Github Open Source
Open Source
Apache-2.0
null
orange-talents-04-template-ecommerce
robsonzupper
Java
Code
68
269
package br.com.zupacademy.robson.ecommerce.opinion; import javax.validation.constraints.Max; import javax.validation.constraints.Min; import javax.validation.constraints.NotBlank; import org.hibernate.validator.constraints.Length; import br.com.zupacademy.robson.ecommerce.user.User; import br.com.zupacademy.robson.eco...
18,350
https://github.com/farik88/yoga/blob/master/resources/views/layouts/treat.blade.php
Github Open Source
Open Source
MIT
null
yoga
farik88
PHP
Code
149
758
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="X-UA-Compatible" content="ie=edge" /> <link rel="stylesheet" href="{{ asset('assets/css/pola...
33,783
https://github.com/oghahroodi/Detection-of-Propaganda-Techniques-/blob/master/baseline-task-TC.py
Github Open Source
Open Source
MIT
2,020
Detection-of-Propaganda-Techniques-
oghahroodi
Python
Code
400
1,160
train_folder = "datasets/train-articles" # check that the path to the datasets folder is correct, dev_folder = "datasets/dev-articles" # if not adjust these variables accordingly train_labels_file = "datasets/train-task2-TC.labels" dev_template_labels_file = "datasets/dev-task-TC-template.out" task_TC_output_file ...
18,826
https://github.com/pravgupt/aws-sdk-js-v3/blob/master/clients/node/client-api-gateway-node/types/PutGatewayResponseInput.ts
Github Open Source
Open Source
Apache-2.0
null
aws-sdk-js-v3
pravgupt
TypeScript
Code
261
1,020
import { NodeHttpOptions as __HttpOptions__ } from "@aws-sdk/types"; import * as __aws_sdk_types from "@aws-sdk/types"; /** * <p>Creates a customization of a <a>GatewayResponse</a> of a specified response type and status code on the given <a>RestApi</a>.</p> */ export interface PutGatewayResponseInput { /** * <...
28,176
https://github.com/alessandroMazza/kp.kibana/blob/master/node_modules/@elastic/eui/src/services/colors/index.js
Github Open Source
Open Source
Apache-2.0
2,018
kp.kibana
alessandroMazza
JavaScript
Code
12
34
export { isColorDark } from './is_color_dark'; export { VISUALIZATION_COLORS } from './visualization_colors';
39,562
https://github.com/limhug/template-base-vtex/blob/master/webpack/webpack.dev.js
Github Open Source
Open Source
MIT
2,020
template-base-vtex
limhug
JavaScript
Code
94
400
const path = require('path') const entry = require('webpack-glob-entry') const BrowserSyncPlugin = require('browser-sync-webpack-plugin') const MiniCssExtractPlugin = require('mini-css-extract-plugin') const { PATHS } = require('./utils/constants') const commonRules = require('./common/rules') const commonPlugins = re...
9,255
https://github.com/sakhtar1979/aws-step-functions-constructor/blob/master/media/main.js
Github Open Source
Open Source
MIT
2,021
aws-step-functions-constructor
sakhtar1979
JavaScript
Code
291
1,054
(function (window) { const vscode = acquireVsCodeApi(); function makeId() { return `${Math.random()}`; } window.magicPostMessage = function (id, stateName, statePropertyName) { const statePropertyValue = document.getElementById(id).value; vscode.postMessage({ command: "STATE_UPDATE", ...
44,508
https://github.com/mstepniowski/project-euler/blob/master/src/com/stepniowski/euler_079.clj
Github Open Source
Open Source
MIT
2,011
project-euler
mstepniowski
null
Spoken
282
677
;; Solution to Project Euler problem 79 ;; http://projecteuler.net/index.php?section=problems&id=79 ;; ;; A common security method used for online banking is to ask the user ;; for three random characters from a passcode. For example, if the ;; passcode was 531278, they may ask for the 2nd, 3rd, and 5th ;; characters; ...
40,695
https://github.com/DmitryBDA/ladybrands/blob/master/plugins/lovata/discountsshopaholic/classes/store/discount/ListByPromoBlockStore.php
Github Open Source
Open Source
RSA-MD
2,022
ladybrands
DmitryBDA
PHP
Code
55
224
<?php namespace Lovata\DiscountsShopaholic\Classes\Store\Discount; use Lovata\Toolbox\Classes\Store\AbstractStoreWithParam; use Lovata\DiscountsShopaholic\Models\Discount; /** * Class ListByPromoBlockStore * @package Lovata\DiscountsShopaholic\Classes\Store\Discount * @author Andrey Kharanenka, a.khoronenko@lova...
20,951
https://github.com/molstar/molstar/blob/master/src/mol-plugin/state.ts
Github Open Source
Open Source
MIT
2,023
molstar
molstar
TypeScript
Code
686
2,492
/** * Copyright (c) 2018-2023 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal <david.sehnal@gmail.com> * @author Alexander Rose <alexander.rose@weirdbyte.de> */ import { State, StateTransform, StateTransformer } from '../mol-state'; import { PluginStateObject as SO ...
2,911
https://github.com/ereborDeveloper/WPF-LINQ-to-SQL-Applicaton/blob/master/AddWorker.xaml.cs
Github Open Source
Open Source
MIT
null
WPF-LINQ-to-SQL-Applicaton
ereborDeveloper
C#
Code
220
845
using System; using System.Linq; using System.Windows; using System.Windows.Input; using System.Data.Linq; namespace kurscachWPF { /// <summary> /// Логика взаимодействия для AddWorker.xaml /// </summary> public partial class AddWorker : Window { private applicant AddNew; public R ...
50,544
https://github.com/GEDS1990/car-oa/blob/master/oa-ui/src/api/role/showUser.js
Github Open Source
Open Source
Apache-2.0
2,018
car-oa
GEDS1990
JavaScript
Code
74
253
import {fetch,qs} from '../../lib/utils/fetch' export function getUserList(queryCondition) { return fetch({ url: 'v1/user/query/list', method: 'get', params: queryCondition }); } export function addUser(user) { return fetch({ url: 'v1/user/addUser', method: 'post', data: user }); } expo...
51,980
https://github.com/ppazos/groovy_xml/blob/master/xpath_test.groovy
Github Open Source
Open Source
Apache-2.0
null
groovy_xml
ppazos
Groovy
Code
275
1,547
import javax.xml.xpath.* import javax.xml.parsers.DocumentBuilderFactory def testxml = ''' <ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:voc="urn:hl7-org:v3/voc" xmlns:mif="urn:hl7-org:v3/mif" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <typeId extension="POCD_HD000040" root="2.16.840.1.113883.1.3"/> <...
48,168
https://github.com/nripendra/axonish/blob/master/@axonish/core/src/axonish-service/axonish-service.spec.ts
Github Open Source
Open Source
MIT
null
axonish
nripendra
TypeScript
Code
199
694
import { TestFixture, AsyncTest, Expect, FocusTests } from "alsatian"; import { AxonishService } from "."; import { IServiceStartup } from "../interfaces/IServiceStartup"; import { IServiceConfiguration } from "../interfaces/IServiceConfiguration"; import { __InjectConventionsForUnitTest } from "./directory-convention"...
19,894
https://github.com/Sybit-Education/schuelerprogrammierwoche-2016/blob/master/src/main/resources/db/migration/V1_9__add_State_to_JobBewerbung.sql
Github Open Source
Open Source
Apache-2.0
2,016
schuelerprogrammierwoche-2016
Sybit-Education
SQL
Code
13
44
ALTER TABLE `taschengeldboerse`.`jobbewerbung` ADD COLUMN `status` VARCHAR(8) NOT NULL DEFAULT 'Pending' AFTER `timestamp`;
24,624
https://github.com/tmaxmax/urql/blob/master/exchanges/graphcache/src/test-utils/examples-3.test.ts
Github Open Source
Open Source
MIT
2,022
urql
tmaxmax
TypeScript
Code
114
307
import { gql } from '@urql/core'; import { query, write } from '../operations'; import { Store } from '../store'; afterEach(() => { expect(console.warn).not.toHaveBeenCalled(); }); it('allows viewer fields to overwrite the root Query data', () => { const store = new Store(); const get = gql` { int ...
24,949
https://github.com/arthurgiani/flutter-training/blob/master/github_search_clean_architechture/lib/app/modules/search/presentation/cubit/states.dart
Github Open Source
Open Source
Apache-2.0
2,022
flutter-training
arthurgiani
Dart
Code
112
316
import 'package:equatable/equatable.dart'; import 'package:github_search_clean_architechture/app/modules/search/domain/entities/profile_entity.dart'; abstract class ProfileState extends Equatable {} class ProfileInitialState implements ProfileState { @override List<Object?> get props => []; @override bool? g...
11,585
https://github.com/d875708765/tapir-zio-http4s-quill.g8/blob/master/src/main/g8/src/main/scala/application/Loader.scala
Github Open Source
Open Source
CC0-1.0
null
tapir-zio-http4s-quill.g8
d875708765
Scala
Code
89
364
package application import cats.data.Kleisli import org.http4s.blaze.server.BlazeServerBuilder import org.http4s.server.Router import org.http4s.{Request, Response} import zio.config.getConfig import zio.interop.catz._ import zio.{ExitCode, RIO, URIO, ZIO} object Loader extends CatsApp { override def run(args: Lis...
24,262
https://github.com/pzjack/webframe/blob/master/src/main/java/com/dinglicom/dealerdispathing/domain/DealerDispatchOnedayItem.java
Github Open Source
Open Source
Apache-2.0
2,016
webframe
pzjack
Java
Code
310
646
/* * Copyright 2015 Jack.Alexander * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
27,144
https://github.com/epall/eequiz/blob/master/main.js
Github Open Source
Open Source
MIT
2,010
eequiz
epall
JavaScript
Code
390
1,610
var RESISTOR_KEY = [ ['black', '0', 'black'], ['brown', '1', 'brown'], ['red', '2', 'red'], ['orange', '3', 'orange'], ['yellow', '4', 'yellow'], ['green', '5', 'green'], ['blue', '6', 'blue'], ['violet', '7', 'violet'], ['gray', '8', 'gray'], ['white', '9', 'white'] ] var POWER_POSTFIXES = { 'k'...
5,738
https://github.com/gizemboskan/VirtualTourist/blob/master/VirtualTouristApp /VirtualTourist/Networking/Client/HTTPClient.swift
Github Open Source
Open Source
MIT
null
VirtualTourist
gizemboskan
Swift
Code
217
586
// // HTTPClient.swift // VirtualTourist // // Created by Gizem Boskan on 4.09.2021. // import UIKit import CoreData class HTTPClient { class func downloadImage(for pin: Pin, path: String, completion: @escaping (Data?, Error?) -> Void) { if let image = HTTPClient.isImageOnCache(for: pin, by: path) { ...
29,212
https://github.com/ncutixavier/Magaze-Frontend/blob/master/src/components/Dashboard.js
Github Open Source
Open Source
MIT
null
Magaze-Frontend
ncutixavier
JavaScript
Code
522
1,996
import React from 'react' import { makeStyles, Typography, Drawer, CardMedia, Card, List, ListItem } from '@material-ui/core' import ListItemIcon from '@material-ui/core/ListItemIcon' import FolderIcon from '@material-ui/icons/Folder'; import logo from '../assets/images/logo.png' import { useHistory, useLocation } from...
35,465
https://github.com/sigurdal/AutoActive-Matlab-toolbox/blob/master/Compress2/commons-compress-1.19-src/src/main/java/org/apache/commons/compress2/utils/Iterators.java
Github Open Source
Open Source
Apache-2.0
2,020
AutoActive-Matlab-toolbox
sigurdal
Java
Code
270
512
/* * 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 ...
46,433
https://github.com/CyberSys/rocks/blob/master/Makefile
Github Open Source
Open Source
MIT
2,009
rocks
CyberSys
Makefile
Code
175
809
MCS = gmcs MONODOCER = monodocer srcdir=. PACKAGE = mono-rocks VERSION = 0.1.0 prefix = /usr/local libdir = $(prefix)/lib mrdir = lib/mono-rocks pkdir = lib/pkgconfig # warning CS1591: Missing XML comment for publicly visible type or member... MCS_FLAGS = -nowarn:1591 # in tests, CS0219: The variable ... was assi...
38,741
https://github.com/messteno/Q3Solver/blob/master/source/q3boundary/q3boundarytype.cpp
Github Open Source
Open Source
MIT
2,015
Q3Solver
messteno
C++
Code
154
689
#include <QSet> #include <QDebug> #include "q3boundarytype.h" #include "q3boundaryin.h" #include "q3boundaryout.h" #include "q3boundarynoslip.h" #include "q3boundaryfixedvelocity.h" Q3BoundaryType::Q3BoundaryType(Type type, QWidget *parent) : QWidget(parent), type_(type) { } Q3BoundaryType::~Q3BoundaryType(...
8,128
https://github.com/blinkboxbooks/ios-app/blob/master/BBBApp Tests/BBBMockBookActionHandler.m
Github Open Source
Open Source
MIT
2,015
ios-app
blinkboxbooks
Objective-C
Code
39
138
// // BBBMockBookActionHandler.m // BBBIosApp // // Created by Owen Worley, Tomek Kuźma, Eric Yuan on 11/11/2014. // #import "BBBMockBookActionHandler.h" @implementation BBBMockBookActionHandler - (void) performAction:(BBBBookAction)action onBook:(BBBBook *)book inEnvironment:(BBBBookActionEnvironment)environment{...
16,022
https://github.com/Kitingu/contact-keeper/blob/master/test/app.test.js
Github Open Source
Open Source
MIT
null
contact-keeper
Kitingu
JavaScript
Code
51
164
const chai = require("chai"); const chaiHttp = require("chai-http"); const { app } = require("../server"); chai.use(chaiHttp); const { expect } = chai; describe("test app runs", () => { it("handles 404 errors", (done) => { chai .request(app) .post("/api/asdf") .end((err, res) => { if (e...
34,954
https://github.com/CodenicCoders/dash_slide_puzzle/blob/master/modules/presentation/lib/background_handler/widgets/background_handler.dart
Github Open Source
Open Source
MIT
null
dash_slide_puzzle
CodenicCoders
Dart
Code
99
292
import 'package:presentation/presentation.dart'; /// {@template BackgroundHandler} /// /// Renders the appropriate background based on the app's layout. /// /// {@endtemplate} class BackgroundHandler extends StatelessWidget { /// {@macro BackgroundHandler} const BackgroundHandler({required this.child, Key? key}) :...
52,158
https://github.com/yenngvp/sports-social-network-android/blob/master/app/src/main/java/vn/datsan/datsan/models/SubjectInfo.java
Github Open Source
Open Source
MIT
2,021
sports-social-network-android
yenngvp
Java
Code
110
282
package vn.datsan.datsan.models; /** * Created by xuanpham on 7/22/16. */ public class SubjectInfo { private String subject; private String info; private DataType type; public SubjectInfo(String subject, String info, DataType type) { this.subject = subject; this.info = info; ...
39,703
https://github.com/STRICTSUN/vscode/blob/master/.devcontainer/prepare.sh
Github Open Source
Open Source
MIT
2,021
vscode
STRICTSUN
Shell
Code
64
181
#!/usr/bin/env bash # Этот файл содержит шаги, которые следует выполнить при создании образа "кэша" с контентом, который должен быть размещён непосредственно **поверх исходного дерева** после создания контейнера разработчика. # Это позволяет избежать необходимости длинных запусков команд типа "yarn install" с самого н...
36,948
https://github.com/digirati-co-uk/madoc-platform/blob/master/services/madoc-ts/src/routes/admin/plugins.ts
Github Open Source
Open Source
MIT
2,023
madoc-platform
digirati-co-uk
TypeScript
Code
1,139
3,408
import * as fs from 'fs'; import mkdirp from 'mkdirp'; import path from 'path'; import semver from 'semver/preload'; import { loadPluginModule } from '../../middleware/create-plugin-manager'; import { PLUGINS_PATH } from '../../paths'; import { SitePlugin } from '../../types/schemas/plugins'; import { RouteMiddleware }...
1,269
https://github.com/aidalgol/nixpkgs/blob/master/pkgs/development/idris-modules/comonad.nix
Github Open Source
Open Source
MIT
2,021
nixpkgs
aidalgol
null
Spoken
53
223
{ build-idris-package , fetchFromGitHub , lib }: build-idris-package { pname = "comonad"; version = "2018-02-26"; src = fetchFromGitHub { owner = "vmchale"; repo = "comonad"; rev = "23282592d4506708bdff79bfe1770c5f7a4ccb92"; sha256 = "0iiknx6gj4wr9s59iz439c63h3887pilymxrc80v79lj1lsk03ac"; }; ...
27,465
https://github.com/anandashram/anandashram.github.io/blob/master/node_modules/three/src/renderers/webgl/WebGLGeometries.js
Github Open Source
Open Source
Apache-2.0
2,021
anandashram.github.io
anandashram
JavaScript
Code
233
652
/** * @author mrdoob / http://mrdoob.com/ */ THREE.WebGLGeometries = function ( gl, properties, info ) { var geometries = {}; function get( object ) { var geometry = object.geometry; if ( geometries[ geometry.id ] !== undefined ) { return geometries[ geometry.id ]; } geometry.addEventListener( 'dis...
2,285
https://github.com/JeroenJochems/subscribable-notifications/blob/master/tests/Support/DummyMailable.php
Github Open Source
Open Source
MIT
2,022
subscribable-notifications
JeroenJochems
PHP
Code
19
85
<?php namespace YlsIdeas\SubscribableNotifications\Tests\Support; use Illuminate\Mail\Mailable; class DummyMailable extends Mailable { public function build() { $this->to('test@testing.local'); return $this->view('testing::example'); } }
38,311
https://github.com/jordanly/oogasalad_OOGALoompas/blob/master/src/main/java/player/util/Observing.java
Github Open Source
Open Source
MIT
2,014
oogasalad_OOGALoompas
jordanly
Java
Code
84
137
package main.java.player.util; /** * Interface to be implemented by classes that are going to be observing a Subject * Note: when implementing this, you must call the setSubject method * @author Michael Han */ public interface Observing { /** * Implementation will vary depending on what the class implementin...
23,945
https://github.com/consulo/consulo/blob/master/modules/base/ide-impl/src/main/java/consulo/ide/impl/idea/util/IconUtil2.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-jgraph
2,023
consulo
consulo
Java
Code
337
880
package consulo.ide.impl.idea.util; import consulo.ui.ex.awt.ScalableIcon; import consulo.ui.ex.awt.JBUI; import jakarta.annotation.Nonnull; import jakarta.annotation.Nullable; import javax.swing.*; import java.awt.*; import java.awt.geom.AffineTransform; public class IconUtil2 { /** * Returns a scaled icon ins...
48,196
https://github.com/LWRGitHub/emoji-api/blob/master/server.js
Github Open Source
Open Source
MIT
null
emoji-api
LWRGitHub
JavaScript
Code
106
341
require('dotenv').config(); const express = require('express'); var cookieParser = require('cookie-parser'); const jwt = require('jsonwebtoken'); const app = express(); const bodyParser = require('body-parser'); const expressValidator = require('express-validator'); app.use(bodyParser.json()); app.use(bodyParser.ur...
36,622
https://github.com/mindspore-ai/mindspore/blob/master/mindspore/ccsrc/plugin/device/gpu/hal/device/gpu_hash_table_common.h
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-proprietary-license, MPL-1.0, OpenSSL, LGPL-3.0-only, LicenseRef-scancode-warranty-disclaimer, BSD-3-Clause-Open-MPI, MIT, MPL-2.0-no-copyleft-exception, NTP, BSD-3-Clause, GPL-1.0-or-later, 0BSD, MPL-2.0, LicenseRef-scancode-free-unknown, AGPL-3.0-only, Libpng, MPL-1.1, IJG, GPL-2.0-onl...
2,023
mindspore
mindspore-ai
C++
Code
326
885
/** * Copyright 2022 Huawei Technologies Co., Ltd * * 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...
37,065
https://github.com/goodmorninggoaway/create-react-infosight-microapp/blob/master/packages/cra-template-microapp/template/src/vms/collection/components/list/VmListContainer.js
Github Open Source
Open Source
MIT
2,020
create-react-infosight-microapp
goodmorninggoaway
JavaScript
Code
108
319
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import VmList from './VmList'; import { fetchVms } from '../../actionCreators'; import { vmsSelector } from '../../reducer'; class VmListContainer extends Component { componentDidMount() { const {...
13,330
https://github.com/wuguyannian/bitwarden-brower-client/blob/master/jslib/src/models/request/eventRequest.ts
Github Open Source
Open Source
GPL-3.0-only, MIT
2,020
bitwarden-brower-client
wuguyannian
TypeScript
Code
17
44
import { EventType } from '../../enums/eventType'; export class EventRequest { type: EventType; cipherId: string; date: string; }
18,501
https://github.com/DikshantaParajuli/cpp/blob/master/app/Http/Controllers/showDashboard.php
Github Open Source
Open Source
MIT
2,019
cpp
DikshantaParajuli
PHP
Code
42
181
<?php namespace App\Http\Controllers; use DB; use User; use Auth; use App\Order; use Illuminate\Http\Request; class showDashboard extends Controller { public function index(){ $customername=Auth::user()->name; $user= DB::table('users')->count(); $ordercount = O...
36,999
https://github.com/mazhidong/coolweather/blob/master/app/src/main/java/cherish/com/coolweather/db/CoolWeatherOpenHelper.java
Github Open Source
Open Source
Apache-2.0
null
coolweather
mazhidong
Java
Code
122
411
package cherish.com.coolweather.db; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; /** * Created by cherish on 2017/2/8. */ public class CoolWeatherOpenHelper extends SQLiteOpenHelper { private static final String CREATE_PROVINCE=...
30,952
https://github.com/mwensveen-nl/adventofcode/blob/master/year_2017/src/main/java/nl/mwensveen/adventofcode/year_2017/day_22/Direction.java
Github Open Source
Open Source
MIT
null
adventofcode
mwensveen-nl
Java
Code
98
261
package nl.mwensveen.adventofcode.year_2017.day_22; public enum Direction { UP(1), RIGHT(2), DOWN(3), LEFT(4); private final int number; private Direction(int number) { this.number = number; } public Direction turnLeft() { return findByNumber(number - 1); } ...
14,675
https://github.com/hqlkylin/WebApp/blob/master/plugins/weui.js-dev/test/form.js
Github Open Source
Open Source
MIT
2,016
WebApp
hqlkylin
JavaScript
Code
197
1,068
describe('form', function () { var $form, $formSubmitBtn, $emptyTextArea, $notMatchInput, error; before(function () { $('body').append(` <form id="form"> <div class="weui_cells weui_cells_form"> <div id="emptyInputTest" class="weui_cell...
5,238
https://github.com/glauber-sampaio/screeener/blob/master/lib/checkPNG.js
Github Open Source
Open Source
CC0-1.0
2,022
screeener
glauber-sampaio
JavaScript
Code
506
1,548
const _ = require("lodash"); const Jimp = require("jimp"); const path = require("path"); const { thumbsPath } = require("./getTemplates.js"); function getAlphaInfos(filePath) { return new Promise((resolve, reject) => { var areaAlpha = []; var countRow = 0; var countCol = 0; var lastY, lastIndex, last...
16,550
https://github.com/aeren108/oniki/blob/master/lib/pages/groups_page.dart
Github Open Source
Open Source
MIT
null
oniki
aeren108
Dart
Code
399
1,546
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:oniki/constants.dart'; import 'package:oniki/model/group.dart'; import 'package:oniki/pages/group_profile.dart'; import 'package:oniki/services/group_service.dart'; import 'package:oniki/services/user_service.dart'; import ...
10,245
https://github.com/DotikDeveloper/ChaiVyruchai/blob/master/p2pMarket/pay_in_files/applepay-submit.js
Github Open Source
Open Source
MIT
null
ChaiVyruchai
DotikDeveloper
JavaScript
Code
214
857
showOperationInfo = function (operation) { var pan = $('input[name="pan"]'); pan.removeAttr('required'); pan.rules("remove"); if(typeof($('[name="month"]')) !== typeof(undefined) && $('[name="month"]').length > 0) { var month = $('[name="month"]'); month.removeAttr('required'); } ...
48,636
https://github.com/vu1seek/chaperone/blob/master/evaluation/ASAnalyzer/core.py
Github Open Source
Open Source
MIT
2,020
chaperone
vu1seek
Python
Code
1,382
4,794
from ASAnalyzer.helper import * from ASAnalyzer.constant import * from ASAnalyzer.kalman1d import Kalman1DAcc from ASAnalyzer.logger import logger class ASAnalyzer: # Dynamic Acoustic Signal Analyzer # Data is fed one time sample by another @property def time_unit(self): # get the time unit i...
23,120
https://github.com/leooreina/My-Reads/blob/master/src/Book.js
Github Open Source
Open Source
Apache-2.0
2,019
My-Reads
leooreina
JavaScript
Code
105
357
import React, { Component } from 'react' import PropTypes from 'prop-types' import BookShelfChanger from './BookShelfChanger' const Book = (props) => { const { book, books, updateShelf } = props; const title = book.title ? book.title : 'No title available'; const bookCover = book.imageLinks && book.imageLink...
8,761
https://github.com/hoainamtkd/Offers/blob/master/resources/views/admin/email/index.blade.php
Github Open Source
Open Source
MIT
null
Offers
hoainamtkd
PHP
Code
436
2,420
@extends('admin.master') @section('content') <style type="text/css"> .view_news:hover{ cursor: pointer; } </style> <section class="main-container"> <div class="container-fluid"> <div class="page-header filled full-block light"> <div class="row"> <div class="co...
29,077
https://github.com/PeterouZh/pydensecrf/blob/master/examples/Non RGB Example.py
Github Open Source
Open Source
MIT
2,018
pydensecrf
PeterouZh
Python
Code
821
2,241
# coding: utf-8 # # Example of DenseCRF with non-RGB data # This notebook goes through an example of how to use DenseCRFs on non-RGB data. # At the same time, it will explain basic concepts and walk through an example, so it could be useful even if you're dealing with RGB data, though do have a look at [PyDenseCRF's...
17,759
https://github.com/steelbrain/pexchange/blob/master/Test/Client.js
Github Open Source
Open Source
MIT
2,015
pexchange
steelbrain
JavaScript
Code
20
74
"use strict"; var Client = require("../Src/Client"); var Instance = new Client('/tmp/pexchange.sock'); Instance.connect(function(){ Instance.Request("Ping").then(function(Response){ console.log(Response === 'Pong'); // true }); });
41,413
https://github.com/broccosito/array-paginator/blob/master/src/index.ts
Github Open Source
Open Source
MIT
2,021
array-paginator
broccosito
TypeScript
Code
235
682
export class Paginator<T> { data: Array<T> | undefined; maxPerPage: number; currentPage: number; totalPages: number | undefined; constructor(data: T[], maxPerPerPage?: number, currentPage?: number) { this.maxPerPage = maxPerPerPage || 5; this.currentPage = currentPage || 1; this.load(data) } load(data: ...
37,272
https://github.com/dburugupalli/chatter/blob/master/client/src/components/Auth/Auth.js
Github Open Source
Open Source
Apache-2.0
2,020
chatter
dburugupalli
JavaScript
Code
60
160
/** * Component for Auth (SignUp and SignIn) */ import React, { useState } from "react"; import SignIn from "./SignIn"; import SignUp from "./SignUp"; // Auth Function definition function Auth({history}) { const [isSignUpActive, setActiveRoute] = useState(false); const toggleActiveRoute = () => { setActive...
29,597
https://github.com/LaudateCorpus1/RosettaCodeData/blob/master/Task/Integer-overflow/Groovy/integer-overflow.groovy
Github Open Source
Open Source
Info-ZIP
2,021
RosettaCodeData
LaudateCorpus1
Groovy
Code
235
1,051
println "\nSigned 32-bit (failed):" assert -(-2147483647-1) != 2147483648g println(-(-2147483647-1)) assert 2000000000 + 2000000000 != 4000000000g println(2000000000 + 2000000000) assert -2147483647 - 2147483647 != -4294967294g println(-2147483647 - 2147483647) assert 46341 * 46341 != 2147488281g println(46341 * 46341)...
17,232
https://github.com/alexvictoor/MarbleTest4J/blob/master/src/main/java/org/reactivestreams/Recorded.java
Github Open Source
Open Source
Apache-2.0
2,017
MarbleTest4J
alexvictoor
Java
Code
203
480
package org.reactivestreams; /** * Created by Alexandre Victoor on 05/06/2016. */ public class Recorded<T> { public final Notification<T> value; public final long time; public Recorded(long time, Notification<T> value) { this.time = time; this.value = value; } @Override pub...
306
https://github.com/HCLOpenBMC/phosphor-fan-presence/blob/master/control/preconditions.cpp
Github Open Source
Open Source
Apache-2.0
2,022
phosphor-fan-presence
HCLOpenBMC
C++
Code
260
836
#include "preconditions.hpp" #include "zone.hpp" #include <phosphor-logging/log.hpp> #include <algorithm> namespace phosphor { namespace fan { namespace control { namespace precondition { using namespace phosphor::fan; using namespace phosphor::logging; Action property_states_match(std::vector<PrecondGroup>&& pg,...
34,921
https://github.com/maandree/libsimple/blob/master/man3/libsimple_vmemalignn.3
Github Open Source
Open Source
ISC
2,022
libsimple
maandree
null
Spoken
702
2,162
.TH LIBSIMPLE_VMEMALIGNN 3 libsimple .SH NAME libsimple_vmemalignn \- allocate memory with custom alignment .SH SYNOPSIS .nf #include <libsimple.h> inline void *libsimple_vmemalignn(size_t \fIalignment\fP, size_t \fIn\fP, va_list \fIap\fP); inline void *libsimple_envmemalignn(int \fIstatus\fP, size_t \fIalignment\fP,...
15,260
https://github.com/brunogbv/akka-api-example/blob/master/akka-api/src/main/scala/example/api/AkkaApiExampleMain.scala
Github Open Source
Open Source
MIT
null
akka-api-example
brunogbv
Scala
Code
29
121
package example.api import akka.actor.ActorSystem import com.typesafe.config.ConfigFactory import example.api.actors.ApiManagerActor /** * Created by bvalerio on 03/07/2018. */ object AkkaApiExampleMain extends App { private val system = ActorSystem("AkkaApiExample",ConfigFactory.load()) system.actorOf(ApiMan...
33,606
https://github.com/ddxgz/swift-webstorage/blob/master/setupsaio.sh
Github Open Source
Open Source
MIT
2,015
swift-webstorage
ddxgz
Shell
Code
59
209
sudo apt-get update sudo apt-get install curl gcc memcached rsync sqlite3 xfsprogs \ git-core libffi-dev python-setuptools sudo apt-get install python-coverage python-dev python-nose \ python-simplejson python-xattr python-eventlet \ python-greenlet python-...
11,321
https://github.com/vflorusso/media-services-dotnet-live-monitoring-dashboard/blob/master/MediaDashboard.Persistence/Storage/AlertType.cs
Github Open Source
Open Source
MIT
2,020
media-services-dotnet-live-monitoring-dashboard
vflorusso
C#
Code
90
252
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
27,282
https://github.com/xUndero/noc/blob/master/core/resourcegroup/decorator.py
Github Open Source
Open Source
BSD-3-Clause
2,019
noc
xUndero
Python
Code
103
385
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------- # @resourcegroup decorator # ---------------------------------------------------------------------- # Copyright (C) 2007-2018 The NOC Project # See LICENSE for details # -----------------------------------------------------...
23,579
https://github.com/drapperr/C-Advanced-September/blob/master/Stacks and Queues - Exercise/03. Maximum and Minimum/Program.cs
Github Open Source
Open Source
MIT
null
C-Advanced-September
drapperr
C#
Code
94
284
using System; using System.Collections.Generic; using System.Linq; namespace _03._Maximum_and_Minimum_Element { class Program { static void Main(string[] args) { Stack<int> stack = new Stack<int>(); int count = int.Parse(Console.ReadLine()); for (int i = 0...
30,608
https://github.com/echo-dimigo/frontend/blob/master/src/views/Login.vue
Github Open Source
Open Source
MIT
2,020
frontend
echo-dimigo
Vue
Code
148
627
<script> export default { name: 'Login', methods: { async login () { if (!this.form.id || !this.form.password) { this.$swal('이런!', '모든 입력란을 채워 주세요.', 'error') return } this.pending = true try { await this.$store.dispatch('login', this.form) this.$router.p...
45,334
https://github.com/baldurk/renderdoc/blob/master/renderdoc/driver/metal/metal_function_bridge.mm
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
renderdoc
baldurk
Objective-C++
Code
423
1,282
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2022-2023 Baldur Karlsson * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in...
10,776
https://github.com/gastonmura/appWeb/blob/master/modules/emoapps/client/controllers/list-emoapps.client.controller.js
Github Open Source
Open Source
MIT
null
appWeb
gastonmura
JavaScript
Code
24
99
(function () { 'use strict'; angular .module('emoapps') .controller('EmoappsListController', EmoappsListController); EmoappsListController.$inject = ['EmoappsService']; function EmoappsListController(EmoappsService) { var vm = this; vm.emoapps = EmoappsService.query(); } }());
52,276