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/homw188/homw-framework/blob/master/homw-modbus/src/main/java/com/homw/modbus/struct/pdu/response/ReadInputRegistersResponseUnit.java
Github Open Source
Open Source
Apache-2.0
2,020
homw-framework
homw188
Java
Code
245
963
package com.homw.modbus.struct.pdu.response; import com.homw.common.util.CodecUtil; import com.homw.modbus.struct.ModbusConstant; import com.homw.modbus.struct.ModbusFuncCode; import com.homw.modbus.struct.pdu.ModbusProtoUnit; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; public class ReadInputReg...
15,356
https://github.com/hadesvip/spring-framework-samples/blob/master/spring-framework-ioc-sample/src/main/java/com/kevin/dao/impl/DemoDaoImpl.java
Github Open Source
Open Source
Apache-2.0
null
spring-framework-samples
hadesvip
Java
Code
25
97
package com.kevin.dao.impl; import com.kevin.dao.DemoDao; import java.util.Arrays; import java.util.List; public class DemoDaoImpl implements DemoDao { @Override public List<String> queryList() { return Arrays.asList("aaa", "bbb", "ccc"); } }
20,867
https://github.com/cityofaustin/atd-vz-data/blob/master/atd-etl/app/process_test_run.py
Github Open Source
Open Source
CC0-1.0, LicenseRef-scancode-public-domain
2,023
atd-vz-data
cityofaustin
Python
Code
90
230
#!/usr/bin/env python """ Test - Run Author: Austin Transportation Department, Data and Technology Services Description: The purpose of this script is to help troubleshooting running python commands within the splinter docker container. """ import sys from process.config import ATD_ETL_CONFIG print("Running a test wi...
44,476
https://github.com/ThaFireDragonOfDeath/open-mediacheck/blob/master/src/picture.rs
Github Open Source
Open Source
MIT
null
open-mediacheck
ThaFireDragonOfDeath
Rust
Code
201
681
extern crate image; //mod common; use common::OutputMode; use self::image::{Pixel,imageops,FilterType}; pub struct TargetPicture { pic_file_path: String, } impl TargetPicture { pub fn new(new_pic_file_path: &String) -> TargetPicture { TargetPicture { pic_file_path: new_pic_file_path.to_s...
3,122
https://github.com/nga-27/SecuritiesAnalysisTools/blob/master/libs/tools/trend_utils/trend_of_periods.py
Github Open Source
Open Source
MIT
2,023
SecuritiesAnalysisTools
nga-27
Python
Code
467
1,577
""" Trend of Periods """ import math from typing import Tuple import pandas as pd import numpy as np from scipy.stats import linregress from .trend_utils import line_extender, line_reducer def get_lines_from_period(fund: pd.DataFrame, mins_and_maxes: list, interva...
3,651
https://github.com/jake-rw/event-registration/blob/master/src/EventRegistrationFacade.php
Github Open Source
Open Source
MIT
null
event-registration
jake-rw
PHP
Code
38
119
<?php namespace JakeRw\EventRegistration; use Illuminate\Support\Facades\Facade; /** * @see \JakeRw\EventRegistration\Skeleton\SkeletonClass */ class EventRegistrationFacade extends Facade { /** * Get the registered name of the component. * * @return string */ protected static function ...
12,257
https://github.com/zzcclp/gazelle_plugin/blob/master/native-sql-engine/cpp/src/codegen/arrow_compute/ext/codegen_node_visitor.cc
Github Open Source
Open Source
CC-BY-3.0, Apache-2.0, CC0-1.0
2,022
gazelle_plugin
zzcclp
C++
Code
3,687
12,197
/* * 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 ...
48,557
https://github.com/OLIMEX/DIY-LAPTOP/blob/master/SOFTWARE/A64-TERES/linux-a64/arch/sparc/mm/tlb.c
Github Open Source
Open Source
Linux-syscall-note, GPL-2.0-only, GPL-1.0-or-later, LicenseRef-scancode-free-unknown, Apache-2.0
2,023
DIY-LAPTOP
OLIMEX
C
Code
530
2,110
/* arch/sparc64/mm/tlb.c * * Copyright (C) 2004 David S. Miller <davem@redhat.com> */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/percpu.h> #include <linux/mm.h> #include <linux/swap.h> #include <linux/preempt.h> #include <asm/pgtable.h> #include <asm/pgalloc.h> #include <asm/tlbflush.h> #inc...
9,620
https://github.com/workflowr/workflowr/blob/master/R/wflow_status.R
Github Open Source
Open Source
MIT
2,023
workflowr
workflowr
R
Code
1,514
3,997
#' Report status of workflowr project #' #' \code{wflow_status} reports the analysis files that require user action. #' #' \code{wflow_status} reports analysis files with one of the following #' statuses: #' #' \itemize{ #' #' \item \bold{Mod}: Modified file. Any published file that has been modified #' since the last ...
35,278
https://github.com/piegamesde/BlockMap/blob/master/BlockMap-gui/src/main/java/de/piegames/blockmap/gui/decoration/Pin.java
Github Open Source
Open Source
MIT
2,022
BlockMap
piegamesde
Java
Code
5,494
19,984
package de.piegames.blockmap.gui.decoration; import java.awt.geom.AffineTransform; import java.awt.image.AffineTransformOp; import java.awt.image.BufferedImage; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Has...
10,172
https://github.com/HeepIO/HeepDesktop/blob/master/src/components/designer/ControlBuilder.js
Github Open Source
Open Source
Apache-2.0
2,019
HeepDesktop
HeepIO
JavaScript
Code
187
627
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import * as Actions from '../../redux/actions_designer' import { withRouter } from 'react-router-dom' import { withTheme } from 'material-ui/styles'; import GenericSelect from '../utilities/GenericSelect' import ...
5,112
https://github.com/Spool5520/ultraviolet/blob/master/Source/Ultraviolet/Shared/BoundingFrustum.Parsing.cs
Github Open Source
Open Source
Apache-2.0, MIT
2,022
ultraviolet
Spool5520
C#
Code
305
777
using System; using System.Globalization; namespace Ultraviolet { partial class BoundingFrustum { /// <summary> /// Converts the string representation of a <see cref="BoundingFrustum"/> to an object instance. /// A return value indicates whether the conversion succeeded. /// </...
29,074
https://github.com/lkreddy/NumberSequenceWeb/blob/master/NumberSequence/NumberSequence/Scripts/app/sequenceDirective.js
Github Open Source
Open Source
MIT
2,016
NumberSequenceWeb
lkreddy
JavaScript
Code
93
176
// Creates the wnSequence directive. Takes an array of primitive elements and shows it in a "standard" way. // Abstracting the showing of sequences into this admittedly very simple directive allows you to standardise their appearance on the site // and makes changing this appearance much easier (DRY). // // Parameters:...
27,532
https://github.com/lhy00612/com.youxiake.www/blob/master/js/wanle.js
Github Open Source
Open Source
MIT
2,020
com.youxiake.www
lhy00612
JavaScript
Code
518
2,579
//topnav图片 $('.topnav_right li').on('mousemove', function () { $('.topnav_right li').find('img').hide() $(this).find('img').show() }) $('.topnav_right li').on('mouseout', function () { $('.topnav_right li').find('img').hide() }) //top城市站下拉链 $('#topseach_right_pj').on('mousemove', function () { $(this)....
38,876
https://github.com/fritz0705/bttr-linux/blob/master/shells/zsh/.gitignore
Github Open Source
Open Source
BSD-2-Clause
2,014
bttr-linux
fritz0705
Ignore List
Code
5
17
build/ configure prepare zsh-* Version
49,364
https://github.com/christianhaller/download-your-travelmap/blob/master/src/frontend/templates/404.pug
Github Open Source
Open Source
MIT
2,023
download-your-travelmap
christianhaller
null
Spoken
38
286
extends ./base/base.pug block body .flex.h-screen .m-auto.bg-white h1.text-6xl 404 &#x1F633; a.px-4.py-2.border-transparent.text-base.leading-6.font-medium.rounded-md.text-white.bg-indigo-600.inline-flex.items-center( class="hover:bg-indigo-500 focus:outline-none focus:border-indigo-700 focus...
39,996
https://github.com/zurimc/Proyecto/blob/master/Proyecto-master 22/StimSD/src/main/webapp/js/canvas_1.js
Github Open Source
Open Source
MIT
2,019
Proyecto
zurimc
JavaScript
Code
1,589
5,329
//inicializacion de las variables globales del programa para construir la grafica var img = new Image(); var myCanvas = document.getElementById('myCanvas'); var ctx = myCanvas.getContext('2d'); var prueba = myCanvas.getContext('2d'); var input = document.querySelector('input');...
3,121
https://github.com/msavastano/moodring/blob/master/public/javascripts/jscript.js
Github Open Source
Open Source
MIT
2,017
moodring
msavastano
JavaScript
Code
142
613
$( document ).ready(function() { // This sets the current mood in page if(document.getElementById('cm')){ var currMood = document.getElementById('cm').value; $('#moodChoices').val(currMood); } $('#firstMoodChoices').val('Select First Mood'); // Control tab buttons by user logged in o...
17,699
https://github.com/AVADOLearning/azure-cli-extensions/blob/master/src/keyvault-kek/azext_keyvault_kek/custom.py
Github Open Source
Open Source
MIT
2,020
azure-cli-extensions
AVADOLearning
Python
Code
32
154
def unwrap_key( client, vault_base_url, key_name=None, key_version=None, value=None, algorithm=None): return client.unwrap_key( vault_base_url, key_name, key_version, algorithm, value ) def wrap_key( client, vault_base_url, key_name=None, key_ver...
34,495
https://github.com/matyioe92/SlinkyTyped/blob/master/t/ts-nkeys/src/main/scala/typingsSlinky/tsNkeys/crc16Mod.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
matyioe92
Scala
Code
56
241
package typingsSlinky.tsNkeys import typingsSlinky.node.Buffer import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object crc16Mod { @JSImport("ts-nkeys/lib/crc16", "crc16") ...
17,016
https://github.com/tarcisiodelmondes/cursotypescript/blob/master/src/A0037-this-polymorphic/index.ts
Github Open Source
Open Source
MIT
null
cursotypescript
tarcisiodelmondes
TypeScript
Code
138
377
export class Calculator { constructor(public number: number) {} add(n: number): this { this.number += n; return this; } sub(n: number): this { this.number -= n; return this; } div(n: number): this { this.number /= n; return this; } mul(n: number): this { this.number *= n;...
20,831
https://github.com/AkshayJainG/qark/blob/master/modules/GeneralIssues.py
Github Open Source
Open Source
Apache-2.0
2,021
qark
AkshayJainG
Python
Code
369
1,111
'''Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
26,396
https://github.com/fieranmason/mem-admin/blob/master/modules/inspectionReport/client/controllers/edit-inspectionReport.client.controller.js
Github Open Source
Open Source
Apache-2.0, MIT
2,018
mem-admin
fieranmason
JavaScript
Code
262
978
'use strict'; angular.module('inspectionReport').controller('editInspectionReportController', ['$scope', '$state', 'InspectionReportModel', 'InspectionReportDetailModel', '_', function ($scope, $state, InspectionReportModel, InspectionReportDetailModel, _ ) { var editInspectionReport = this; editInspectionRe...
27,493
https://github.com/piopawel/modules/blob/master/openmrs/src/test/java/org/motechproject/openmrs/service/impl/OpenMRSConfigServiceImplTest.java
Github Open Source
Open Source
BSD-3-Clause
2,018
modules
piopawel
Java
Code
509
3,224
package org.motechproject.openmrs.service.impl; import org.junit.Before; import org.junit.Test; import org.mockito.InjectMocks; import org.mockito.Matchers; import org.mockito.Mock; import org.motechproject.config.SettingsFacade; import org.motechproject.event.MotechEvent; import org.motechproject.event.listener.Event...
27,470
https://github.com/gsoft-inc/sg-brand/blob/master/packages/components/src/shared/src/dom.ts
Github Open Source
Open Source
Apache-2.0
2,019
sg-brand
gsoft-inc
TypeScript
Code
39
98
import { isNil } from "./assertions"; export function canUseDOM(): boolean { return ( typeof window !== "undefined" && !isNil(window.document) && !isNil(window.document.createElement) ); } export const isBrowser = canUseDOM(); export function getBodyElement() { return isBrowser ? ...
26,354
https://github.com/IamSebastianDev/flatShadow.js/blob/master/src/flatShadow.js
Github Open Source
Open Source
MIT
null
flatShadow.js
IamSebastianDev
JavaScript
Code
2,398
5,428
/** @format */ /** @license MIT --------------------------------------------------------------------------- Copyright (c) 2020 Sebastian Heinz 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 the Soft...
49,571
https://github.com/abelardopardo/ontask_b/blob/master/ontask/action/tests/test_views_run.py
Github Open Source
Open Source
LGPL-2.0-or-later, BSD-3-Clause, MIT, Apache-2.0, LGPL-2.1-only, Python-2.0
2,023
ontask_b
abelardopardo
Python
Code
1,267
5,751
"""Test views to run actions.""" from datetime import timedelta from django.conf import settings from django.contrib.auth import get_user_model from django.core import mail from django.urls import reverse from django.utils import timezone from rest_framework import status from ontask import ( OnTaskSharedState, m...
7,890
https://github.com/nuelbruno/Appcelerator/blob/master/G2C/app/controllers/common/arabic.js
Github Open Source
Open Source
Apache-2.0
2,017
Appcelerator
nuelbruno
JavaScript
Code
4,342
15,601
exports.language = function() { var arabic = { english : "English", turnOnGPS : "يرجى تفعيل نظام تحديد المواقع GPS", arabic : "عربي", loading : "تحميل ....", updating : "تحديث ...", cancel : "ألغاء", call : "مكالمة هاتفية", callConformAlert : 'هل أنت متأكد أنك تود إجراء مكالمة لـ', noCallAlert : 'خ...
38,088
https://github.com/nickksun/retail-demo-store/blob/master/src/web-ui/src/repositories/waypointRepository.js
Github Open Source
Open Source
MIT-0
2,022
retail-demo-store
nickksun
JavaScript
Code
53
175
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT-0 import axios from "axios"; const serviceDomain = process.env.VUE_APP_LOCATION_SERVICE_DOMAIN; const servicePort = process.env.VUE_APP_LOCATION_SERVICE_PORT; const baseURL = `${serviceDomain}:${servicePort}`; const...
3,538
https://github.com/yoomoney/yoomoney-sdk-java/blob/master/src/main/java/com/yoo/money/api/model/CardBrand.java
Github Open Source
Open Source
MIT
2,021
yoomoney-sdk-java
yoomoney
Java
Code
322
737
/* * The MIT License (MIT) * * Copyright (c) 2020 NBCO YooMoney LLC * * 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 the Software without restriction, including without limitation the rights * to...
51,921
https://github.com/rmpestano/cukedoctor/blob/master/cukedoctor-extension/src/test/java/com/github/cukedoctor/extension/MinMaxExtensionTest.java
Github Open Source
Open Source
Apache-2.0
2,022
cukedoctor
rmpestano
Java
Code
190
972
package com.github.cukedoctor.extension; import static com.github.cukedoctor.extension.CukedoctorExtensionRegistry.MINMAX_DISABLE_EXT_KEY; import static com.github.cukedoctor.extension.util.FileUtil.loadTestFile; import static com.github.cukedoctor.extension.util.FileUtil.readFileContent; import static com.github.cuke...
12,229
https://github.com/mckim27/polyaxon/blob/master/core/tests/test_polyflow/test_workflows/test_dags.py
Github Open Source
Open Source
Apache-2.0
2,022
polyaxon
mckim27
Python
Code
7,315
31,297
#!/usr/bin/python # # Copyright 2018-2022 Polyaxon, 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 ...
49,299
https://github.com/Shishqa/ShishGL/blob/master/docs/dir_acd634bedb26ae18fb931944831f76df.js
Github Open Source
Open Source
MIT
null
ShishGL
Shishqa
JavaScript
Code
70
347
var dir_acd634bedb26ae18fb931944831f76df = [ [ "Behaviors.hpp", "Behaviors_8hpp.html", null ], [ "Clickable.hpp", "Clickable_8hpp.html", [ [ "Clickable", "classSh_1_1Clickable.html", "classSh_1_1Clickable" ], [ "Holdable", "classSh_1_1Holdable.html", "classSh_1_1Holdable" ] ] ], [ "DefaultBe...
44,106
https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutoExecuteStatusInheritedFrom.cs
Github Open Source
Open Source
LGPL-2.1-or-later, Apache-2.0, MIT, LicenseRef-scancode-generic-cla
2,023
azure-sdk-for-net
Azure
C#
Code
193
648
// <auto-generated> // 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 // re...
48,217
https://github.com/center-key/pretty-print-json/blob/master/dist/pretty-print-json.dev.js
Github Open Source
Open Source
MIT
2,022
pretty-print-json
center-key
JavaScript
Code
253
682
//! pretty-print-json v1.1.1 ~~ https://pretty-print-json.js.org ~~ MIT License const prettyPrintJson = { version: '1.1.1', toHtml(thing, options) { const defaults = { indent: 3, linkUrls: true, quoteKeys: false }; const settings = { ...defaults, ...options }; const htmlEntities = (text...
47,093
https://github.com/Keneral/apackages/blob/master/apps/Email/provider_src/com/android/email/mail/store/Pop3Store.java
Github Open Source
Open Source
Unlicense
null
apackages
Keneral
Java
Code
2,809
7,306
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
52,327
https://github.com/MattDavies01/RocketSoftware-2020/blob/master/sbgEcom/src/binaryLogs/sbgEComBinaryLogPressure.h
Github Open Source
Open Source
Apache-2.0
null
RocketSoftware-2020
MattDavies01
C
Code
394
882
/*! * \file sbgEComBinaryLogPressure.h * \author SBG Systems (Raphael Siryani) * \date 30 April 2014 * * \brief This file is used to parse received Pressure binary logs. * * Pressure binary logs contains both the pressure and altitude/depth for a sensor * such as an altimeter or a subsea depth sensor. * ...
22,589
https://github.com/SBRoberts/marjoram/blob/master/src/schema/types.ts
Github Open Source
Open Source
MIT
2,022
marjoram
SBRoberts
TypeScript
Code
137
331
import { SchemaProp } from "./schemaPropFactory"; export type SchemaPropValue = | string | number | boolean | Node | SchemaProp | SchemaPropValue[]; type SchemaPropUpdate = (newValue: SchemaPropValue) => void; type SchemaPropCalc = (expression: () => string | number) => SchemaProp; export type SchemaPropNo...
49,831
https://github.com/adafruit/Adafruit_CircuitPython_WS2801/blob/master/adafruit_ws2801.py
Github Open Source
Open Source
MIT
2,023
Adafruit_CircuitPython_WS2801
adafruit
Python
Code
701
1,938
# SPDX-FileCopyrightText: 2016 Damien P. George (original Neopixel object) # SPDX-FileCopyrightText: 2017 Ladyada for Adafruit Industries # SPDX-FileCopyrightText: 2017 Scott Shawcroft for Adafruit Industries # SPDX-FileCopyrightText: 2018 Kevin J. Walters # # SPDX-License-Identifier: MIT """ `adafruit_ws2801` - WS280...
24,425
https://github.com/TristinDavis/idea-spock-enhancements/blob/master/test_project/src/main/groovy/Test.groovy
Github Open Source
Open Source
BSD-2-Clause-FreeBSD
2,019
idea-spock-enhancements
TristinDavis
Groovy
Code
18
67
import org.apache.tools.ant.taskdefs.optional.extension.Specification class Test { void test() { thing { given: when: then: println 'Hello' } } }
48,212
https://github.com/kubeflow/pipelines/blob/master/frontend/src/pages/ExecutionList.test.tsx
Github Open Source
Open Source
Apache-2.0
2,023
pipelines
kubeflow
TSX
Code
565
1,979
/* * Copyright 2023 The Kubeflow Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
33,340
https://github.com/Adel-B/makair/blob/master/src/software/control/src/serial/poller.rs
Github Open Source
Open Source
Unlicense, LicenseRef-scancode-public-domain
2,020
makair
Adel-B
Rust
Code
95
339
// MakAir // // Copyright: 2020, Makers For Life // License: Public Domain License use std::sync::mpsc::{Receiver, TryRecvError}; use telemetry::serial::core::{Error, ErrorKind}; use telemetry::structures::TelemetryMessage; use telemetry::{self, TelemetryChannelType}; pub struct SerialPollerBuilder; pub struct Seria...
4,593
https://github.com/Cereceres/Dijkstra-algorithm/blob/master/index.js
Github Open Source
Open Source
MIT
null
Dijkstra-algorithm
Cereceres
JavaScript
Code
117
300
module.exports = (graph = [], node = 0) => { if (!Array.isArray(graph)) return []; const marked = new Set(); const nodes = Math.sqrt(graph.length); const path = new Array(nodes).fill(Infinity); let actualNode = node; let actualDistance = 0; marked.add(actualNode); path[actualNode] = act...
36,369
https://github.com/rtobar/askapsoft/blob/master/Code/Components/CP/askap_imager/current/distributedimager/ContinuumImager.h
Github Open Source
Open Source
BSL-1.0, Apache-2.0, OpenSSL
2,020
askapsoft
rtobar
C
Code
322
659
/// @file ContinuumImager.h /// /// @copyright (c) 2016 CSIRO /// Australia Telescope National Facility (ATNF) /// Commonwealth Scientific and Industrial Research Organisation (CSIRO) /// PO Box 76, Epping NSW 1710, Australia /// atnf-enquiries@csiro.au /// /// This file is part of the ASKAP software distribution. /// ...
749
https://github.com/dkupsh/stvote/blob/master/src/Data_Models/Round.js
Github Open Source
Open Source
MIT
null
stvote
dkupsh
JavaScript
Code
362
1,411
import { CandidateState } from "./Candidate"; export class Round { constructor(round_number, quota) { this.round_number = round_number; this.quota = quota; this.state = RoundState.RUNNING; this.candidates = [] this.elected_candidates = [] this.active_candidates = [...
50,421
https://github.com/rammano3/react-redux-universal-hot-example/blob/master/src/containers/SurveyVoter/SurveyVoter.js
Github Open Source
Open Source
MIT
2,015
react-redux-universal-hot-example
rammano3
JavaScript
Code
144
486
import React, {Component, PropTypes} from 'react'; import DocumentMeta from 'react-document-meta'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import * as itemActions from 'redux/modules/items'; import {isLoaded, load as loadItems, vote} from 'redux/modules/items'; import {SwipeVoter}...
5,072
https://github.com/JulianWebb/calories-in/blob/master/src/notes/EditNotesModal/Content/Form/Header.tsx
Github Open Source
Open Source
MIT
2,022
calories-in
JulianWebb
TypeScript
Code
54
149
import { ModalHeader, Text } from '@chakra-ui/react' type Props = { ownerName: string notes?: string } function Header({ ownerName, notes }: Props) { const titlePrefix = notes ? 'Edit notes of' : 'Add notes to' return ( <ModalHeader fontWeight="normal" mr={3}> {titlePrefix}{' '} <Text as="spa...
3,420
https://github.com/vonplaten/java-simple-bank/blob/master/model/account/Transaction.java
Github Open Source
Open Source
MIT
null
java-simple-bank
vonplaten
Java
Code
196
540
package casvonp.model.account; import java.util.Date; import java.io.Serializable; import java.text.Format; import java.text.SimpleDateFormat; import java.util.ArrayList; /** * Transaction object, one for every transaction made, for storage */ public class Transaction implements Serializable { private static f...
23,765
https://github.com/eid101/InjazErp/blob/master/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewTab.java
Github Open Source
Open Source
Apache-2.0
null
InjazErp
eid101
Java
Code
3,201
10,595
/* ************************************************************************* * The contents of this file are subject to the Openbravo Public License * Version 1.1 (the "License"), being the Mozilla Public License * Version 1.1 with a permitted attribution clause; you may not use this * file except in...
33,827
https://github.com/taiwins/twidgets/blob/master/.gitignore
Github Open Source
Open Source
LicenseRef-scancode-other-permissive, MIT
2,021
twidgets
taiwins
Ignore List
Code
7
34
build* compile_commands.json subprojects .ccls-cache/* .ccls-root .clangd .cache
36,685
https://github.com/roydb/pika/blob/master/include/pika_repl_server_conn.h
Github Open Source
Open Source
MIT
2,018
pika
roydb
C
Code
107
338
// Copyright (c) 2019-present, Qihoo, 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. #ifndef PIKA_REPL_SERVER_C...
14,621
https://github.com/emadurandal/GrimoireJS/blob/master/test/Base/NamespaceTest.ts
Github Open Source
Open Source
MIT
2,021
GrimoireJS
emadurandal
TypeScript
Code
80
307
import test from "ava"; import "../AsyncSupport"; import "../XMLDomInit"; import xmldom from "xmldom"; import sinon from "sinon"; import GrimoireInterface from "../../src/Interface/GrimoireInterface"; import Constants from "../../src/Base/Constants"; import Component from "../../src/Node/Component"; import GomlParser f...
51,667
https://github.com/KudzaiMakufa/stockassist/blob/master/fuel/app/classes/controller/closing.php
Github Open Source
Open Source
MIT
2,020
stockassist
KudzaiMakufa
PHP
Code
209
1,011
<?php class Controller_Closing extends Controller_Template { public function action_index() { $data['closings'] = Model_Closing::find_all(); $this->template->title = "Closings"; $this->template->content = View::forge('closing/index', $data); } public function action_view($id = null) { is_null($id) and R...
26,395
https://github.com/SinchUK/laser-landing/blob/master/src/pages/common/layout.pug
Github Open Source
Open Source
ISC
2,021
laser-landing
SinchUK
null
Spoken
42
404
doctype html html(lang="ru") block head head meta(charset="utf-8") title Title your site meta(content="width=device-width, initial-scale=1" name="viewport") meta(content="ie=edge" http-equiv="x-ua-compatible") link(rel="stylesheet" href="css/style....
30,118
https://github.com/dxmoreira/theme-abouanni/blob/master/skins/default/plugins/accelerated-mobile-pages/accelerated-mobile-pages.js
Github Open Source
Open Source
MIT
null
theme-abouanni
dxmoreira
JavaScript
Code
52
170
( function() { "use strict"; var elements = ['.cmt-button-wrapper', '.ampforwp-comment-wrapper', '.post-pagination-meta', '.ampforwp-meta-taxonomy'] elements.forEach(function(item, i, elements) { var element = document.querySelector(item); if (typeof(element) != 'undefined' && element != null) { var html = el...
34,538
https://github.com/moficodes/restful-go-api/blob/master/testing-benchmark-echo/internal/handler/util.go
Github Open Source
Open Source
Apache-2.0
2,022
restful-go-api
moficodes
Go
Code
129
319
package handler import ( "encoding/json" "io/ioutil" "os" "strconv" "strings" ) func readContent(filename string, store interface{}) error { f, err := os.Open(filename) if err != nil { return err } b, err := ioutil.ReadAll(f) if err != nil { return err } return json.Unmarshal(b, store) } func contai...
46,696
https://github.com/JeffersonBC/eshop-index/blob/master/eshop-index-back/eshop_crawler/urls.py
Github Open Source
Open Source
MIT
2,021
eshop-index
JeffersonBC
Python
Code
21
101
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('api/classification/', include('classification.urls.urls')), path('api/games/', include('games.urls.urls')), path('api/user/', include('users.urls')), ]
33,234
https://github.com/Likes123/omniscidb/blob/master/DataMgr/DataMgr.cpp
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, Apache-2.0
2,019
omniscidb
Likes123
C++
Code
1,598
5,481
/* * Copyright 2017 MapD Technologies, 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 o...
48,876
https://github.com/janlam7/phpcs-tool/blob/master/test/Hostnet/Tests/Classes/ClassAndNamespaceMustBeInPascalCaseUnitTest.5.inc
Github Open Source
Open Source
MIT
2,022
phpcs-tool
janlam7
PHP
Code
5
18
<?php trait MyTraitISLookingFaulty { }
52,384
https://github.com/aurangzaib97/Infront_Project/blob/master/src/scss/Components/Domain_Registration/Main_Content/_aside.scss
Github Open Source
Open Source
MIT
2,019
Infront_Project
aurangzaib97
SCSS
Code
47
172
.main3Aside { width: 30%; // border: 1px solid red; .form3 { // border: 1px solid green; padding: 20px 0px; width: 100%; background-color: $lightBlack; padding-left: 4%; .form3Heading { color: $orange; margin: 0; font-weight: bold; font-size: 2.07vw; } .form...
42,463
https://github.com/ozywuli/ember-truth-helpers/blob/master/app/helpers/gte.js
Github Open Source
Open Source
MIT
2,022
ember-truth-helpers
ozywuli
JavaScript
Code
7
24
export { default, gte } from 'ember-truth-helpers/helpers/gte';
23,660
https://github.com/albertocorrales/sum-azure-function/blob/master/SumAzureFunction/StartUp.cs
Github Open Source
Open Source
MIT
2,019
sum-azure-function
albertocorrales
C#
Code
80
379
using Aliencube.AzureFunctions.Extensions.OpenApi; using Aliencube.AzureFunctions.Extensions.OpenApi.Abstractions; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Hosting; using Microsoft.Extensions.DependencyInjection; using SumAzureFunction; using SumAzureFunction.Functions; using SumAzureFunction.Open...
16,720
https://github.com/Qtinp/qutty/blob/master/function/datapack/core/db.ts
Github Open Source
Open Source
MIT
2,022
qutty
Qtinp
TypeScript
Code
88
269
import * as Ran from '../../../lib/api' import fs from 'fs' import path from 'path' export default class Database { private path: string private db: { [index: string]: any } constructor (id: string) { this.db = {} this.path = path.join(Ran.Data, 'datapack', `${id}.json`) this.read() } pri...
45,968
https://github.com/FashGek/AndroidOAuthExample/blob/master/src/org/example/android/oauth/OAuthClient.java
Github Open Source
Open Source
Apache-2.0
2,011
AndroidOAuthExample
FashGek
Java
Code
563
2,190
package org.example.android.oauth; import java.io.IOException; import java.util.ArrayList; import org.apache.http.Header; import org.apache.http.HeaderElement; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.ClientProtocolException; import org.apache.http.clien...
41,378
https://github.com/mcgreevy/chromium-build/blob/master/scripts/slave/unittests/extract_build_test.py
Github Open Source
Open Source
BSD-3-Clause
2,017
chromium-build
mcgreevy
Python
Code
240
910
#!/usr/bin/env python # Copyright (c) 2012 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. import os import unittest import test_env # pylint: disable=W0403,W0611 from slave import extract_build from slave import slave_...
32,572
https://github.com/openshift/openshift-docs/blob/master/modules/nodes-nodes-viewing-listing-pods.adoc
Github Open Source
Open Source
Apache-2.0
2,023
openshift-docs
openshift
AsciiDoc
Code
137
343
// Module included in the following assemblies: // // * nodes/nodes-nodes-viewing.adoc :_content-type: PROCEDURE [id="nodes-nodes-viewing-listing-pods_{context}"] = Listing pods on a node in your cluster You can list all the pods on a specific node. .Procedure * To list all or selected pods on one or more nodes: + ...
48,959
https://github.com/bellmit/termite-replication/blob/master/tests/generations/rmosa/tests/s1024/110_firebird/evosuite-tests/org/firebirdsql/jdbc/FBProcedureCall_ESTest.java
Github Open Source
Open Source
MIT
2,021
termite-replication
bellmit
Java
Code
2,267
9,505
/* * This file was automatically generated by EvoSuite * Mon Nov 09 13:11:04 GMT 2020 */ package org.firebirdsql.jdbc; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import java.util.List; import org.evosuite.runtime.EvoRunner; import org.evosuite.runti...
6,096
https://github.com/ericl85/vkvoxel/blob/master/VkRenderer.cpp
Github Open Source
Open Source
MIT
2,022
vkvoxel
ericl85
C++
Code
2,844
13,501
#include <algorithm> #include <iostream> #include <set> #include <string> #include <glm/gtc/matrix_transform.hpp> #include "Block.h" #include "VkRenderer.h" #include "Vertex.h" namespace VkVoxel { void VkRenderer::waitIdle() { vkDeviceWaitIdle(_manager->getDevice()); } void VkRenderer::cleanup() {...
42,999
https://github.com/mahmoodFcis/aspnet-core-samples/blob/master/ITShare.csharp.samples.LambdaExpressions/StudentCollection.cs
Github Open Source
Open Source
MIT
2,020
aspnet-core-samples
mahmoodFcis
C#
Code
167
495
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ITShare.csharp.samples.LambdaExpressions { class StudentCollection { List<Student> StudentList { get; set; } public delegate bool update(Student s); pub...
3,380
https://github.com/CMSgov/eAPD/blob/master/web/src/containers/LoginApplication.js
Github Open Source
Open Source
CC0-1.0
2,021
eAPD
CMSgov
JavaScript
Code
558
1,918
import PropTypes from 'prop-types'; import React, { useState, useEffect, Fragment } from 'react'; import { connect } from 'react-redux'; import { Redirect, useHistory, useLocation } from 'react-router-dom'; import LoginPageRoutes from './LoginPageRoutes'; import ConsentBanner from '../components/ConsentBanner'; impor...
51,700
https://github.com/david-driscoll/wow-mock/blob/master/src/api/TalkingHead.ts
Github Open Source
Open Source
MIT
2,021
wow-mock
david-driscoll
TypeScript
Code
32
88
import { UIFrame } from "../ui"; export const C_TalkingHead = { }; export type TalkingheadCloseEvent = (frame: UIFrame, e: "TALKINGHEAD_CLOSE") => void export type TalkingheadRequestedEvent = (frame: UIFrame, e: "TALKINGHEAD_REQUESTED") => void
15,259
https://github.com/bubkoo/luban/blob/master/packages/struct/test/reverse.spec.ts
Github Open Source
Open Source
MIT
null
luban
bubkoo
TypeScript
Code
108
298
import { iterator, toArray, reverse, ReversibleArrayIterator } from '../src/index' import { testIterator } from './iterator.spec' describe('@luban/struct', () => { describe('reverse()', () => { it('should create an iterator for an array-like object', () => { expect(toArray(reverse([0, 1, 2, 3]))).toEqual...
28,511
https://github.com/surfstudio/SurfAndroidStandard/blob/master/mvp/sample-mvp-widget/src/main/java/ru/surfstudio/android/mvpwidget/sample/ui/screen/main/MainScreenModel.kt
Github Open Source
Open Source
Apache-2.0
2,022
SurfAndroidStandard
surfstudio
Kotlin
Code
8
53
package ru.surfstudio.android.mvpwidget.sample.ui.screen.main import ru.surfstudio.android.core.mvp.model.ScreenModel class MainScreenModel : ScreenModel()
47,325
https://github.com/jxxcarlson/meenylatex/blob/master/example/src/Strings.elm
Github Open Source
Open Source
BSD-3-Clause
2,021
meenylatex
jxxcarlson
null
Spoken
1,357
4,948
module Strings exposing (miniLaTeX, sourceText, sourceText1) sourceText1 = """ This is a \\italic{very important} test. \\begin{itemize} \\item This is a \\blue{Blue} item. \\end{itemize} """ sourceText = """ Pythagoras: $a^2 + b^2 = c^2$. Calculus: $$ \\int_0^1 x^n dx = \\frac{1}{n + 1} $$ $$ \\be...
37,090
https://github.com/sunbenjin/cap-analysis/blob/master/cap-analysis/src/main/java/com/capinfo/service/impl/CapCheckBookServiceImpl.java
Github Open Source
Open Source
Apache-2.0
null
cap-analysis
sunbenjin
Java
Code
107
519
package com.capinfo.service.impl; import com.capinfo.base.BaseMapper; import com.capinfo.base.impl.BaseServiceImpl; import com.capinfo.entity.CapCheckBook; import com.capinfo.entity.CapCheckBook; import com.capinfo.mapper.CapCheckBookMapper; import com.capinfo.mapper.CapCheckBookMapper; import com.capinfo.service.CapC...
11,847
https://github.com/InnovaPacs/01.post_ventas_backend/blob/master/src/mapper/contactInfo.mapper.ts
Github Open Source
Open Source
MIT
null
01.post_ventas_backend
InnovaPacs
TypeScript
Code
27
76
import { ContactInfo } from '../database/entities/contactInfo'; import { ContactInfoDto } from '../dto/contactInfo.dto'; export class ContactInfoMapper { public static toEntity(contactInfoDto: ContactInfoDto) {} public static toOutputDto(contactInfo: ContactInfo) {} }
22,430
https://github.com/jpetaux/react-rainbow/blob/master/src/components/Rating/styled/starContainer.js
Github Open Source
Open Source
MIT
2,021
react-rainbow
jpetaux
JavaScript
Code
38
130
import styled from 'styled-components'; const StyledStartContainer = styled.span` line-height: inherit; height: inherit; :not(:last-child) { margin-right: 0.25rem; } display: ${props => (props.readOnly ? '' : 'inline-block')}; transition: transform 300ms ease-in-out; &:hover { ...
34,825
https://github.com/eliemichel/GrainViewer/blob/master/src/GrainViewer/Ui/GlobalTimerDialog.cpp
Github Open Source
Open Source
MIT
2,021
GrainViewer
eliemichel
C++
Code
702
2,045
/** * This file is part of GrainViewer, the reference implementation of: * * Michel, Élie and Boubekeur, Tamy (2020). * Real Time Multiscale Rendering of Dense Dynamic Stackings, * Computer Graphics Forum (Proc. Pacific Graphics 2020), 39: 169-179. * https://doi.org/10.1111/cgf.14135 * * Copyright (c) 2...
34,925
https://github.com/reshaffa/rotating.i-kom.id/blob/master/src/config/backend.js
Github Open Source
Open Source
MIT
null
rotating.i-kom.id
reshaffa
JavaScript
Code
15
63
export const url = { //development : 'https://rotating-services.azurewebsites.net/api/rotating/v1/', development : 'http://localhost:8080/api/rotating/v1/', production : '' }
4,176
https://github.com/entn-at/wikipron/blob/master/languages/wikipron/tsv/ltz_phonetic.tsv
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,019
wikipron
entn-at
TSV
Code
3,564
23,062
a aː aachtel aːχtəl aalbes aːlbəs aangel aːŋəl aarbecht aːʀbəɕt aarbechter aːʀbəɕtɐ aarbechtsamt aːʀbəʑdzɑmpt aarbechtslos aːbəɕtsloːs aarmséileg aːʀmzɜɪ̯ləɕ aart aːt aart aːχt aartlech aːtləɕ aartlech aːχt- aaschbak aːʒbaːk abeezen ɑbeːt͡sən abenteuerlech aːbentoɪ̯ɐləɕ aberuffen ɑbəʀufən aberuffung ɑbəʀufuŋ abezuelen ...
31,984
https://github.com/wgnet/wds_qt/blob/master/qtdeclarative/tests/auto/qml/qqmlecmascript/data/propertyVar.13.qml
Github Open Source
Open Source
Apache-2.0
2,020
wds_qt
wgnet
null
Spoken
51
109
import QtQuick 2.0 Item { property bool test: false property var f: b + 12 property int a: 100 property int b: testFunction() function testFunction() { return a * 3; } Component.onCompleted: { if (f != 312) return; a = 120; if (f != 372) return; tes...
42,979
https://github.com/qoq-ts/qoq-sequelize/blob/master/src/types/override/BelongsTo.d.ts
Github Open Source
Open Source
MIT
2,021
qoq-sequelize
qoq-ts
TypeScript
Code
61
152
import { SingleAssociationAccessors } from 'sequelize'; import { Association } from './Association'; import { BelongsToOptions } from './BelongsToOptions'; import { Model } from './Model'; import { ModelCtor } from './ModelCtor'; export class BelongsTo<S extends Model = Model, T extends Model = Model> extends Associat...
1,265
https://github.com/oastashev/cardpay-java/blob/master/src/main/java/com/cardpay/sdk/model/ChangeSubscriptionStatusClaimResponse.java
Github Open Source
Open Source
MIT
null
cardpay-java
oastashev
Java
Code
619
1,936
/* * CardPay REST API * The CardPay API uses HTTP verbs and a RESTful endpoint structure. Request and response payloads are formatted as JSON. * * OpenAPI spec version: 3.0 * Contact: support@cardpay.com * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-a...
40,179
https://github.com/Nick-E-P/TranscriptionalMemory/blob/master/CodeTranscriptionalMemory/Figure 4/Data generator/Micro_4.m
Github Open Source
Open Source
Apache-2.0
2,019
TranscriptionalMemory
Nick-E-P
MATLAB
Code
238
1,306
ClonekeyN = {'Rasa12_S1_STRSa1','Pgk_S1_STRSa1','Jam2_S1_STRSa1','Jarid2_S1_STRSa1','Rbpj_S1_STRSa1','Nono_S1_STRSa1','Dstn_S1_STRSa1','Sprouty_S1_STRSa1','Tfpd2_S1_STRSa1'}; zN = 3;%:length(Clonekey) load(char(ClonekeyN(zN))) %% num = xlsread('4.9_nonrel_36pairs_micro.xlsx',1); num(isnan(num))=0; %replace nans by z...
12,035
https://github.com/magenest-dev/module-ultimate-follow-up-email/blob/master/view/adminhtml/requirejs-config.js
Github Open Source
Open Source
BSD-3-Clause
2,020
module-ultimate-follow-up-email
magenest-dev
JavaScript
Code
63
300
/** * Copyright © 2016 Magenest. All rights reserved. * See COPYING.txt for license details. */ var config = { map: { '*': { categoryForm: 'Magento_Catalog/catalog/category/form', newCategoryDialog: 'Magento_Catalog/js/new-category-dialog', categoryTree: ...
28,872
https://github.com/lexasss/gazeNet/blob/master/front/styles/index.less
Github Open Source
Open Source
MIT
null
gazeNet
lexasss
Less
Code
67
239
body { padding: 50px; font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; } a { color: #00B7FF; } #gt-warning { color: #DDDDDD; font: bold 26pt Arial, sans-serif; padding-top: 40pt; text-align: center; width: 100%; } .gt-target { width: 200px; height: 150px; background-color: #2484...
19,371
https://github.com/adzierzanowski/argparser/blob/master/test/adding_options_from_struct.c
Github Open Source
Open Source
MIT
null
argparser
adzierzanowski
C
Code
145
684
#include <criterion/criterion.h> #include "test.h" Test(adding_options_from_struct, creation, .init=create_parser, .fini=destroy_parser) { add_option_a_struct(); add_option_b_struct(); add_option_c_struct(); add_option_d_struct(); cr_assert(parser->count == 4, "Expected parser->count to be 4."); } Test(add...
27,027
https://github.com/nvanlaerebeke/CrazyFS4Linux/blob/master/Linux/CrazyFS.Passthrough.Linux/Helpers/PermissionHelper.cs
Github Open Source
Open Source
CC0-1.0
2,021
CrazyFS4Linux
nvanlaerebeke
C#
Code
72
343
using Mono.Unix; using Mono.Unix.Native; namespace CrazyFS.Passthrough.Linux.Helpers { public static class PermissionHelper { public static bool CheckPathAccessModes(FileAccessPermissions permissions, AccessModes request) { if (request.HasFlag(AccessModes.R_OK)) { ...
40,824
https://github.com/Skyscanner/backpack-android/blob/master/Backpack/src/main/java/net/skyscanner/backpack/starrating/BpkInteractiveStarRating.kt
Github Open Source
Open Source
Apache-2.0
2,023
backpack-android
Skyscanner
Kotlin
Code
449
1,460
/** * Backpack for Android - Skyscanner's Design System * * Copyright 2018 Skyscanner 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...
5,756
https://github.com/KyoriPowered/gradle-api/blob/master/src/main/java/net/kyori/mammoth/ProjectPlugin.java
Github Open Source
Open Source
MIT
null
gradle-api
KyoriPowered
Java
Code
322
624
/* * This file is part of mammoth, licensed under the MIT License. * * Copyright (c) 2021 KyoriPowered * * 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 the Software without restriction, including ...
4,157
https://github.com/Brandon-HY-Lin/deep_learning_comparision/blob/master/datasets/MNINST/nn_0_hidden_layer_with_batch_normalizatdion/nn_0_hidden_layer_with_batch_normalization.py
Github Open Source
Open Source
Apache-1.1
null
deep_learning_comparision
Brandon-HY-Lin
Python
Code
405
1,525
import numpy as np import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data from tensorflow.examples.tutorials.mnist import mnist import tqdm dtype = tf.float32 def weight_variable(shape, stddev=0.1): init = tf.truncated_normal(shape, stddev=stddev) return tf.Variable(init, dtype=dty...
13,947
https://github.com/useblocks/sphinx-dataa-viewer/blob/master/sphinx_data_viewer/directive.py
Github Open Source
Open Source
MIT
2,021
sphinx-dataa-viewer
useblocks
Python
Code
152
649
import json import os from docutils import nodes from docutils.parsers.rst import Directive from docutils.parsers.rst import directives class DataViewerNode(nodes.General, nodes.Element): pass class DataViewerDirective(Directive): has_content = True optional_arguments = 1 final_argument_whitespace...
378
https://github.com/puppetlabs/facter/blob/master/acceptance/tests/facts/dmi.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,023
facter
puppetlabs
Ruby
Code
179
735
test_name "C96148: verify dmi facts" do tag 'risk:high' confine :except, :platform => 'aix' # no dmi support confine :except, :platform => 'huawei' # no dmi support confine :except, :platform => 'osx' # no dmi support confine :except, :platform => 'sparc' # no dmi support confine :except, :platform => 'ppc...
43,811
https://github.com/sumit0044/linux_code_test/blob/master/file/mmap_test.c
Github Open Source
Open Source
Apache-2.0
null
linux_code_test
sumit0044
C
Code
149
616
#include <unistd.h> #include <stdio.h> #include <sys/mman.h> #include <fcntl.h> #include <stdlib.h> typedef struct { int integer; char string[24]; }RECORD; //LEARN IT (), SQL inject attack #define NRECORDS (100) void store(char *filename) { RECORD record; int i, f; FILE *fp; fp = fopen(filename, "w+"...
41,776
https://github.com/Freggy/tryjump/blob/master/tryjump-api/src/main/java/de/bergwerklabs/tryjump/api/event/PlayerJumpFailEvent.java
Github Open Source
Open Source
Apache-2.0
2,022
tryjump
Freggy
Java
Code
23
67
package de.bergwerklabs.tryjump.api.event; /** * Created by Yannic Rieger on 12.04.2018. * * <p> * * @author Yannic Rieger */ public class PlayerJumpFailEvent {}
31,809
https://github.com/hallex-sys/design-patterns-php/blob/master/src/App/DesignPatterns/Observer/Subject.php
Github Open Source
Open Source
MIT
2,020
design-patterns-php
hallex-sys
PHP
Code
110
315
<?php namespace DesignPatterns\Observer; use SplObjectStorage; use SplObserver; use SplSubject; /** * trait Subject */ trait Subject { /** * @var SplObjectStorage $observers */ private SplObjectStorage $observers; /** * __construct */ final public function __construct() { ...
110
https://github.com/MaxSac/build/blob/master/doc/src/main-target.adoc
Github Open Source
Open Source
BSL-1.0
2,022
build
MaxSac
AsciiDoc
Code
124
289
[[bbv2.reference.class.main-target]] = Class main-target [source,jam] ---- class main-target : abstract-target { rule generate ( property-set ) # Methods inherited from abstract-target rule name ( ) rule project ( ) rule location ( ) rule full-name ( ) } ---- A link:#bbv2.reference.class.main...
21,560
https://github.com/ashishgoyal18/vyavsaay/blob/master/mediawiki/includes/api/ApiQueryORM.php
Github Open Source
Open Source
Apache-2.0
2,020
vyavsaay
ashishgoyal18
PHP
Code
884
2,094
<?php /** * Base query module for querying results from ORMTables. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later versi...
32,532
https://github.com/TimLin320/FXShareModule/blob/master/FXShareModule/Classes/View/FXShareTypeSelectionView.swift
Github Open Source
Open Source
MIT
null
FXShareModule
TimLin320
Swift
Code
382
1,491
// // FXShareTypeSelectionView.swift // FXShare // // Created by Lyman on 2021/3/12. // // 栗子:分享方式选择弹框 // import UIKit import AKExts import AKHud import WechatOpenSDK /// 分享方式弹框 public class FXShareTypeSelectionView: UIView, FXShareTypeSelection { public var selectClosure: ((FXShareType) -> Void) pub...
4,070
https://github.com/CaptainUltra/SimplePizzaApp/blob/master/SimplePizzaApp.sln
Github Open Source
Open Source
MIT
2,020
SimplePizzaApp
CaptainUltra
null
Spoken
414
3,844
 Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.29123.88 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SimplePizzaApp.Web", "SimplePizzaApp.Web\SimplePizzaApp.Web.csproj", "{9F4559E3-218E-42A8-9731-79B11...
31,773