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/ramljs/valgen/blob/master/lib/factories/NilFactory.js
Github Open Source
Open Source
MIT
null
valgen
ramljs
JavaScript
Code
59
157
'use strict'; const {AnyFactory} = require('./AnyFactory'); class NilFactory extends AnyFactory { normalizeAttribute(attr, v) { } _generateValidationCode(dataType, options) { const data = super._generateValidationCode(dataType, options); data.code = ' if (value === undefined) value = null;' + data.c...
44,096
https://github.com/demonbug/servicecomb-java-chassis/blob/master/governance/src/main/java/org/apache/servicecomb/governance/marker/RequestProcessor.java
Github Open Source
Open Source
Apache-2.0
2,018
servicecomb-java-chassis
demonbug
Java
Code
367
966
/* * 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 ...
45,046
https://github.com/xingh/opendms-dot-net/blob/master/ClientTesting/ClientTesting/TestBase.cs
Github Open Source
Open Source
Apache-2.0
null
opendms-dot-net
xingh
C#
Code
77
234
using System; using Api = OpenDMS.Networking.Api; using ClientLib = OpenDMS.ClientLibrary; namespace ClientTesting { public abstract class TestBase { protected FrmMain _window; protected ClientLib.Client _client; public TestBase(FrmMain window, ClientLib.Client client) { ...
22,470
https://github.com/eagle3dstreaming/webrtc/blob/master/socketio/client/src/rtsp/ffmpeg/imgutils.cpp
Github Open Source
Open Source
BSD-3-Clause
null
webrtc
eagle3dstreaming
C++
Code
1,764
5,726
/* * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed...
10,260
https://github.com/ECRomaneli/githubscraper/blob/master/src/main/java/br/com/ecromaneli/githubscraper/model/factories/PathFactory.java
Github Open Source
Open Source
MIT
null
githubscraper
ECRomaneli
Java
Code
35
159
package br.com.ecromaneli.githubscraper.model.factories; import br.com.ecromaneli.githubscraper.model.enums.PathType; import br.com.ecromaneli.githubscraper.model.Directory; import br.com.ecromaneli.githubscraper.model.File; import br.com.ecromaneli.githubscraper.model.Path; public class PathFactory { public stat...
4,247
https://github.com/GITHUB243884919/UnitySteerExamples_Without_Linq/blob/master/UnitySteerExamples-master/Assets/Examples/2D/01 - Basic/Neighbor examples/Neighbors-Cohesion.prefab.meta
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,017
UnitySteerExamples_Without_Linq
GITHUB243884919
Unity3D Asset
Code
12
64
fileFormatVersion: 2 guid: b2d3912bf86a04723bd9b770c34bc695 timeCreated: 1452947652 licenseType: Pro NativeFormatImporter: userData: assetBundleName: assetBundleVariant:
49,493
https://github.com/Digitalmente-Studio/myeart/blob/master/public/theme_assets/sass/component/_pricing.scss
Github Open Source
Open Source
MIT
2,022
myeart
Digitalmente-Studio
SCSS
Code
138
521
/* this file contain the style for pricing components */ /***************************** --- PRICING *****************************/ .pricing-wrapper{ display: flex; } .package-single{ margin-top: 50px; margin-right: -1px; margin-bottom: 30px; padding: 26px 30px 30px; border: 1px solid $border-color; flex:...
1,422
https://github.com/zsxsoft/FuckQNZS/blob/master/loginAll.js
Github Open Source
Open Source
MIT
2,018
FuckQNZS
zsxsoft
JavaScript
Code
68
227
const cp = require('child_process') const fs = require('fs') const passwords = fs.readFileSync('./config/password.csv', 'utf-8').split('\r\n') const un = passwords.map(k => k.split(',')) ; (async () => { for (var i in un) { const p = un[i] const b = cp.spawn('node', ['./sh/login.js', `${p[0]}`, `${p[1]}`, `$...
40,760
https://github.com/Crabor/Quadcopter/blob/master/Project/APP_FUNC/GY86.h
Github Open Source
Open Source
MIT
2,020
Quadcopter
Crabor
C
Code
735
2,535
#ifndef __GY86_H_ #define __GY86_H_ #include "includes.h" #include "math.h" /*Gyroscope Features(MPU6050) The triple-axis MEMS gyroscope in the MPU-9150 includes a wide range of features: Digital-output X-, Y-, and Z-Axis angular rate sensors (gyroscopes) with a user-programmable full-scale range of ±250, ±500...
31,359
https://github.com/GabrielHapki/OpenCL/blob/master/examples/oclImage/image.cpp
Github Open Source
Open Source
MIT
null
OpenCL
GabrielHapki
C++
Code
274
1,174
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include <iostream> #include <string.h> #include "oclWrapper.hpp" int main(int argc, char** argv) { bool loadsrc = false; cl_int ret = 0; oclWrapper ocl; if (ocl.Init(ocl::ASYNC, ocl::PROFILING)){ loadsrc = ocl.LoadS...
38,715
https://github.com/dolanor-galaxy/go-qonto/blob/master/transaction.go
Github Open Source
Open Source
MIT
2,018
go-qonto
dolanor-galaxy
Go
Code
541
1,319
// Copyright © 2018 Stéphane Depierrepont // // 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 use, copy, modify, merge, pu...
14,788
https://github.com/redesh/NightMode/blob/master/src/com/awaysoft/nightlymode/services/NightlyService.java
Github Open Source
Open Source
Apache-2.0
2,014
NightMode
redesh
Java
Code
733
2,660
/* * Copyright (C) 2014 Ruikye's 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 applic...
4,180
https://github.com/greenplum-db/gpdb/blob/master/src/backend/gporca/libgpopt/src/xforms/CXformSubqJoin2Apply.cpp
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-generic-cla, PostgreSQL, OpenSSL, LicenseRef-scancode-stream-benchmark, ISC, LicenseRef-scancode-openssl, LicenseRef-scancode-other-copyleft, LicenseRef-scancode-ssleay-windows, BSD-2-Clause, Python-2.0
2,023
gpdb
greenplum-db
C++
Code
1,032
3,959
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2011 EMC Corp. // // @filename: // CXformSubqJoin2Apply.cpp // // @doc: // Implementation of Inner Join to Apply transform //--------------------------------------------------------------------------- ...
28,341
https://github.com/kwosingyu/SimPla/blob/master/src/mesh/MeshAttribute.h
Github Open Source
Open Source
BSD-3-Clause
2,016
SimPla
kwosingyu
C++
Code
692
2,037
/** * @file MeshAttribute.h * @author salmon * @date 2016-05-19. */ #ifndef SIMPLA_MESHATTRIBUTE_H #define SIMPLA_MESHATTRIBUTE_H #include "../base/Object.h" #include "../gtl/Log.h" #include "../gtl/MemoryPool.h" #include "../data_model/DataSet.h" #include "MeshCommon.h" #include "MeshBase.h" #include "MeshEntity...
36,009
https://github.com/sone777/automl-mlps/blob/master/mlps/core/apeflow/interface/model/export/SKLSavedModel.py
Github Open Source
Open Source
Apache-2.0
2,021
automl-mlps
sone777
Python
Code
80
354
# -*- coding: utf-8 -*- # Author : Manki Baek # e-mail : manki.baek@seculayer.com # Powered by Seculayer © 2021 Service Model Team, R&D Center. import joblib from typing import Callable from mlps.common.Constants import Constants from mlps.core.apeflow.interface.model.export.SavedModelAbstract import SavedModelAbstra...
26,021
https://github.com/PeopleOfColorCode/PeopleOfColorCode.com/blob/master/src/assets/scss/01_tokens/typography.scss
Github Open Source
Open Source
MIT
2,020
PeopleOfColorCode.com
PeopleOfColorCode
SCSS
Code
45
263
@import url("https://fonts.googleapis.com/css?family=Montserrat:wght@400;700;800&family=Open+Sans&family=Mukta:wght@600&display=swap"); @function rem-calc($size) { $remSize: $size / 16px; @return clamp(1rem, 9vw, #{$remSize}rem); } @mixin font-size($size) { font-size: $size; //Fallback in px font-size: rem-ca...
9,305
https://github.com/shoooe/Aid/blob/master/test/aid/bitboard.cpp
Github Open Source
Open Source
MIT
2,015
Aid
shoooe
C++
Code
106
393
#include <catch/catch.hpp> #include <aid/bitboard.hpp> TEST_CASE("aid::bitboard") { SECTION("constructors") { std::string str = "01001" "01111" "11010"; aid::bitboard<3, 5> a(str); REQUIRE(a(0, 0) == false); REQUIRE(a(0, 1) == true); R...
53,660
https://github.com/linwang741/Uom/blob/master/src/no/petroware/uom/Unit.java
Github Open Source
Open Source
Apache-2.0
2,020
Uom
linwang741
Java
Code
619
1,286
package no.petroware.uom; /** * Model a unit, such as "ft", "m", "N", "Hz", "m/s" etc., and * how values converts to the base unit of the same quantity. * <p> * This class is immutable. * * @author <a href="mailto:info@petroware.no">Petroware AS</a> */ public final class Unit { /** Name of unit such as "meter...
35,749
https://github.com/andhikaerka/shind-gogreenschool/blob/master/app/Http/Controllers/Api/ActivityController.php
Github Open Source
Open Source
MIT
null
shind-gogreenschool
andhikaerka
PHP
Code
102
359
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use App\Activity; use Illuminate\Database\Eloquent\Builder; use Illuminate\Http\Request; class ActivityController extends Controller { public function index(Request $request) { $activities = Activity::query() -...
26,344
https://github.com/24kpure/jedis-mock/blob/master/src/main/java/com/github/lemonj/jedismock/server/RedisClient.java
Github Open Source
Open Source
Apache-2.0
null
jedis-mock
24kpure
Java
Code
320
993
package com.github.lemonj.jedismock.server; import com.github.lemonj.jedismock.Utils; import com.github.lemonj.jedismock.commands.RedisCommand; import com.github.lemonj.jedismock.commands.RedisCommandParser; import com.github.lemonj.jedismock.exception.ParseErrorException; import com.github.lemonj.jedismock.operations...
9,220
https://github.com/Asia-king/lzjfinal/blob/master/src/main/java/com/huayue/system/model/Bug.java
Github Open Source
Open Source
Apache-2.0
null
lzjfinal
Asia-king
Java
Code
30
121
package com.huayue.system.model; import com.huayue.jbase.jfinal.ext.model.EasyuiModel; import com.jfinal.ext.plugin.tablebind.TableBind; @TableBind(tableName = "system_bug") public class Bug extends EasyuiModel<Bug> { private static final long serialVersionUID = 3706516534681611550L; public static Bug dao = new Bu...
11,132
https://github.com/catching-transparent-phish/phoca/blob/master/probes/tls_prober/pytls/tls/changecipherspec.py
Github Open Source
Open Source
MIT
2,022
phoca
catching-transparent-phish
Python
Code
28
88
import struct from .utils import * class ChangeCipherSpecMessage(object): def __init__(self): self.bytes = '' @classmethod def create(cls): self = cls() self.bytes = '\1' return self def __len__(self): return len(self.bytes)
43,899
https://github.com/AssisrMatheus/dog-saga/blob/master/src/components/Title/TitleComponent.js
Github Open Source
Open Source
MIT
null
dog-saga
AssisrMatheus
JavaScript
Code
53
134
import React from 'react'; import PropTypes from 'prop-types'; const TitleComponent = props => { const title = props.error ? props.error.message : props.fetching ? 'Fetching...' : 'Keep clicking for new dogs'; return <h1 className="App-title" style={props.error ? { color: 'red' } : null}>{title}</h1>; }; TitleCo...
21,877
https://github.com/proppy/native-sdl-starter-kit/blob/master/.gitmodules
Github Open Source
Open Source
Apache-2.0, Zlib
2,015
native-sdl-starter-kit
proppy
Git Config
Code
11
40
[submodule "SDL"] path = SDL url = https://github.com/spurious/SDL-mirror.git branch = master
48,633
https://github.com/zubliquzaini/ITS332-Sales-Management-System/blob/master/view/navigation.php
Github Open Source
Open Source
MIT
null
ITS332-Sales-Management-System
zubliquzaini
PHP
Code
153
780
<nav class="sidenav navbar navbar-vertical fixed-left navbar-expand-xs navbar-light bg-white" id="sidenav-main"> <div class="scrollbar-inner"> <div class="text-center"> <img src="../../assets/img/brand/logo.png" style="height:150px; padding-top:25px" alt="..."> </div> <div class="n...
36,528
https://github.com/gzaxariev/Technologies-Fundamentals/blob/master/Programming Fundamentals/Arrays - Exercises/EqualSums/Program.cs
Github Open Source
Open Source
MIT
2,018
Technologies-Fundamentals
gzaxariev
C#
Code
70
218
using System; using System.Linq; namespace EqualSums { class Program { static void Main(string[] args) { int[] arr = Console.ReadLine().Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries) .Select(int.Parse).ToArray(); bool isFound = false; ...
52,806
https://github.com/lumanprasath/socialtiks/blob/master/node_modules/codelyzer/noForwardRefRule.d.ts
Github Open Source
Open Source
MIT
null
socialtiks
lumanprasath
TypeScript
Code
42
135
import * as Lint from 'tslint/lib/lint'; import * as ts from 'typescript'; export declare class Rule extends Lint.Rules.AbstractRule { static FAILURE_IN_CLASS: string; static FAILURE_IN_VARIABLE: string; apply(sourceFile: ts.SourceFile): Lint.RuleFailure[]; } export declare class ExpressionCallMetadataWalke...
25,616
https://github.com/hantsy/code-adventures/blob/master/transaction-analyzer/scala/src/test/scala/TransactionTypeFunSuite.scala
Github Open Source
Open Source
Apache-2.0
2,022
code-adventures
hantsy
Scala
Code
50
176
import org.scalatest.funsuite.AnyFunSuite class TransactionTypeFunSuite extends AnyFunSuite { test(" 'PAYMENT' should be parsed as TransactionType.PAYMENT") { assert { TransactionType.withName("PAYMENT") eq TransactionType.PAYMENT } } test(" 'REVERSAL' should be parsed as TransactionType.REVERSA...
37,216
https://github.com/MaxIakovliev/problemSolving/blob/master/src/main/java/com/problems/BoyerMooreMajorityVoteAlgorithm.java
Github Open Source
Open Source
MIT
2,019
problemSolving
MaxIakovliev
Java
Code
50
215
package com.problems; import java.util.HashMap; import java.util.Map; /** * Created by Maks on 4/22/2017. */ public class BoyerMooreMajorityVoteAlgorithm { public int solution1(Integer[] arr){ HashMap<Integer, Integer> item=new HashMap<Integer, Integer>(); for(int i=0; i<arr.length; i++){ ...
38,616
https://github.com/henry-spanka/gpse-ss-2019-team5-2/blob/master/src/main/java/gpse/team52/service/MeetingServiceImpl.java
Github Open Source
Open Source
MIT
null
gpse-ss-2019-team5-2
henry-spanka
Java
Code
689
2,291
package gpse.team52.service; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.UUID; import gpse.team52.contract.MeetingService; import gpse.team52.contract.mail.MailService; import gpse.team52.domain.Meeting; import gpse.team52.domain.MeetingRoo...
34,941
https://github.com/dsw7/VimTools/blob/master/plugin/vimtools/tests/test_block.py
Github Open Source
Open Source
MIT
null
VimTools
dsw7
Python
Code
159
602
from os import remove from textwrap import dedent from helpers import VimToolsTestCase, FILENAME_AUXILIARY class TestBlock(VimToolsTestCase): def setUp(self): self.input_string = """\ foo bar baz """ auxiliary_input_string = """\ spam ham e...
36,826
https://github.com/Erinpascal/ERINPOSSTOCK/blob/master/resources/views/layouts/adminlayout/admin_header.blade.php
Github Open Source
Open Source
MIT
2,021
ERINPOSSTOCK
Erinpascal
Blade
Code
1,221
5,865
<!-- hearder --> <div class="theme-loader"> <div class="ball-scale"> <div></div> </div> </div> <div id="pcoded" class="pcoded"> <div class="pcoded-overlay-box"></div> <div class="pcoded-container navbar-wrapper"> <nav class="navbar header-navbar pcoded-header" header-theme="theme4"> <div class="navbar-wrapper"> <div c...
16,477
https://github.com/veracruz-project/icecap/blob/master/src/rust/crates/framework/base/icecap-runtime/config/crate.nix
Github Open Source
Open Source
MIT
null
icecap
veracruz-project
null
Spoken
17
49
{ mk, serdeMin }: mk { nix.name = "icecap-runtime-config"; dependencies = { serde = serdeMin; }; }
2,170
https://github.com/Stopa42/DesertTanks/blob/master/DesertTanks_Unity/Assets/Scripts/Player/Builder.cs
Github Open Source
Open Source
MIT
null
DesertTanks
Stopa42
C#
Code
115
393
using System.Collections.Generic; using UnityEngine; namespace RTSTutorial { public class Builder { private float _buildingRangeLimitSquared; private LayerMask _buildingBlockLayer; private IEnumerable<Building> _playerBuildings; public Builder(IEnumerable<Building> playerBuild...
9,040
https://github.com/TUsama/Create/blob/master/src/main/java/com/simibubi/create/content/contraptions/components/structureMovement/mounted/CartAssemblerBlock.java
Github Open Source
Open Source
MIT
null
Create
TUsama
Java
Code
958
4,633
package com.simibubi.create.content.contraptions.components.structureMovement.mounted; import java.util.ArrayList; import java.util.List; import javax.annotation.Nonnull; import javax.annotation.Nullable; import com.simibubi.create.AllBlocks; import com.simibubi.create.AllShapes; import com.simibubi.create.AllTileEn...
2,473
https://github.com/traderinteractive/filter-arrays-php/blob/master/src/Arrays.php
Github Open Source
Open Source
MIT
2,018
filter-arrays-php
traderinteractive
PHP
Code
984
2,176
<?php namespace TraderInteractive\Filter; use InvalidArgumentException; use TraderInteractive\Exceptions\FilterException; use TraderInteractive\Filter\Exceptions\DuplicateValuesException; /** * A collection of filters for arrays. */ final class Arrays { /** * @var int */ const ARRAY_PAD_END = 1; ...
28,238
https://github.com/Tanc010/mosn/blob/master/examples/codes/seata/server_b/server_b.go
Github Open Source
Open Source
Apache-2.0
2,022
mosn
Tanc010
Go
Code
143
569
package main import ( "fmt" "github.com/gin-gonic/gin" ) type Account struct { ID int64 `json:"id"` Amount int64 `json:"Amount"` } func main() { r := gin.Default() r.POST("/service-b/try", func(context *gin.Context) { account := &Account{} err := context.BindJSON(account) if err == nil { fmt.Prin...
21,353
https://github.com/GunterMueller/COINS-Compiler-Infrastructure/blob/master/coins-1.4.6-en/src/coins/backend/lir/LirLabelRef.java
Github Open Source
Open Source
Apache-2.0
2,020
COINS-Compiler-Infrastructure
GunterMueller
Java
Code
261
691
/* --------------------------------------------------------------------- % Copyright (C) 2007 Association for the COINS Compiler Infrastructure % (Read COPYING for detailed information.) --------------------------------------------------------------------- */ package coins.backend.lir; import coins.backend.Deb...
32,212
https://github.com/aaronmeridaa/wildCartAngularClient2021/blob/master/src/app/component/tipousuario/plist/plist-tipousuario.component.ts
Github Open Source
Open Source
MIT
null
wildCartAngularClient2021
aaronmeridaa
TypeScript
Code
159
621
import { Component, OnInit } from '@angular/core'; import { IPage } from 'src/app/model/model-interfaces'; import { ITipoUsuarioPage, IUserTypePlist, } from 'src/app/model/tipousuario-interfaces'; import { PaginationService } from 'src/app/service/pagination.service'; import { TipousuarioService } from 'src/app/servi...
28,119
https://github.com/hjacobs/zmon-controller/blob/master/Dockerfile
Github Open Source
Open Source
Apache-2.0
2,020
zmon-controller
hjacobs
Dockerfile
Code
17
112
FROM registry.opensource.zalan.do/stups/openjdk:latest EXPOSE 8443 COPY zalando-apis /zalando-apis COPY zmon-controller-app/target/zmon-controller-1.0.1-SNAPSHOT.jar /zmon-controller.jar CMD java $JAVA_OPTS $(java-dynamic-memory-opts) $(appdynamics-agent) -jar /zmon-controller.jar
29,636
https://github.com/zhugesdk/Zhugeio-iOS/blob/master/Zhugeio/ZGVisualization/UIImage+ZGDifference.h
Github Open Source
Open Source
MIT
2,023
Zhugeio-iOS
zhugesdk
Objective-C
Code
29
175
// // UIImage+ZGDifference.h // ZGTestDemo // // Created by 范奇 on 2023/2/23. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIImage (ZGDifference) /// 获取图像对象的特定值 -(NSString *)getCurrentImgSign; // 获取图片唯一标识.准确度还行.可作为图片唯一标识 -(NSString *)getShortCurrentShowImgSign; @end NS_ASSUME_NONNULL_END
310
https://github.com/alexandrumcc/intro_to_k6/blob/master/tests/advanced/gauges.js
Github Open Source
Open Source
MIT
null
intro_to_k6
alexandrumcc
JavaScript
Code
44
135
import http from 'k6/http'; import { sleep } from 'k6'; import { Gauge } from 'k6/metrics'; const GaugeContentSize = new Gauge('ContentSize'); export const options = { thresholds: { ContentSize: ['value<4000'], }, }; export default function () { const res = http.get('https://test-api.k6.io/public/crocodile...
43,595
https://github.com/zandaqo/compago/blob/master/mod.ts
Github Open Source
Open Source
MIT
2,022
compago
zandaqo
TypeScript
Code
109
260
export { ChangeEvent, ChangeType } from "./change-event.ts"; export { RouteEvent } from "./route-event.ts"; export { LanguageChangeEvent } from "./language-change-event.ts"; export { MissingLocalizationEvent } from "./missing-localization-event.ts"; export { bond } from "./bond-directive.ts"; export { navigate } from "...
11,325
https://github.com/AlanCoding/Ansible-inventory-file-examples/blob/master/plugins/user_plugins/fast_script.py
Github Open Source
Open Source
MIT
2,023
Ansible-inventory-file-examples
AlanCoding
Python
Code
779
2,083
# Copyright (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # Copyright (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' invento...
37,709
https://github.com/project-everest/ethereum-star/blob/master/getContracts/contracts/12_13.sol
Github Open Source
Open Source
Apache-2.0
2,020
ethereum-star
project-everest
Solidity
Code
359
1,061
//***********************************Coinflip // // This is a simple coin flip game. You flip HEADS, you Win! You flip TAILS you Lose! // Each outcome has a 50% chance of happening. You win the entire house bankroll if you win! You lose your deposit if you lose. // // Minimum Deposit: 100 finney! // // Good Luck and ...
13,191
https://github.com/jdav/ctp/blob/master/src/com/malleamus/ctp/impl/ConversationImpl.java
Github Open Source
Open Source
Apache-2.0
2,014
ctp
jdav
Java
Code
365
1,142
package com.malleamus.ctp.impl; import java.util.ArrayList; import java.util.Collection; import com.malleamus.ctp.Acceptance; import com.malleamus.ctp.CTPException; import com.malleamus.ctp.Callback; import com.malleamus.ctp.Conversation; import com.malleamus.ctp.ConversationStatus; import com.malleamus.ctp.Invitatio...
890
https://github.com/nymtech/nym/blob/master/common/commands/src/validator/signature/mod.rs
Github Open Source
Open Source
CC0-1.0, Apache-2.0
2,023
nym
nymtech
Rust
Code
60
196
// Copyright 2022 - Nym Technologies SA <contact@nymtech.net> // SPDX-License-Identifier: Apache-2.0 use clap::{Args, Subcommand}; pub mod errors; pub mod helpers; pub mod sign; pub mod verify; #[derive(Debug, Args)] #[clap(args_conflicts_with_subcommands = true, subcommand_required = true)] pub struct Signature { ...
43,504
https://github.com/gkowalski-google/policy-library-1/blob/master/bundler/src/types.ts
Github Open Source
Open Source
Apache-2.0
2,021
policy-library-1
gkowalski-google
TypeScript
Code
325
858
/** * Copyright 2020 Google LLC * * 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...
39,967
https://github.com/sanofrank/Fitting_algorithm/blob/master/src/modules/generated-content/running-headers.js
Github Open Source
Open Source
MIT
null
Fitting_algorithm
sanofrank
JavaScript
Code
623
1,975
import Handler from "../handler"; import csstree from "css-tree"; class RunningHeaders extends Handler { constructor(chunker, polisher, fitter, caller) { super(chunker, polisher, fitter, caller); this.runningSelectors = {}; this.elements = {}; } onDeclaration(declaration, dItem, dList, rule) { if (declara...
17,190
https://github.com/inwwin/pretix/blob/master/src/pretix/api/auth/device.py
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause
2,021
pretix
inwwin
Python
Code
99
349
from django.contrib.auth.models import AnonymousUser from django_scopes import scopes_disabled from rest_framework import exceptions from rest_framework.authentication import TokenAuthentication from pretix.api.auth.devicesecurity import ( DEVICE_SECURITY_PROFILES, FullAccessSecurityProfile, ) from pretix.base.mod...
39,098
https://github.com/ricardogoncalvescho/dydx-perpetual/blob/master/contracts/test/v1/Test_P1Trader.sol
Github Open Source
Open Source
Apache-2.0
2,022
dydx-perpetual
ricardogoncalvescho
Solidity
Code
263
718
/* Copyright 2020 dYdX Trading Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed ...
9,038
https://github.com/pgee70/cda/blob/master/lib/Component/SingleComponent/Section.php
Github Open Source
Open Source
MIT
2,018
cda
pgee70
PHP
Code
520
1,614
<?php /** * The MIT License * * Copyright 2018 Peter Gee <https://github.com/pgee70>. * * 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 limita...
36,186
https://github.com/entroychang/main/blob/master/python/去除中文.py
Github Open Source
Open Source
Apache-2.0
2,019
main
entroychang
Python
Code
7
48
for x in range(int(input())): data=list(input().split()) print(data[1],end=',') print(data[3],end=',')
33,144
https://github.com/wkwtbabgd/StarForce/blob/master/Assets/GameMain/Scripts/DataTable/DRAircraft.cs
Github Open Source
Open Source
MIT
2,021
StarForce
wkwtbabgd
C#
Code
524
1,928
//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ // 此文件由工具自动生成,请勿直接修改。 // 生成时间:2020-0...
40,336
https://github.com/rmlewisuk/almanac/blob/master/webpack.config.js
Github Open Source
Open Source
MIT
null
almanac
rmlewisuk
JavaScript
Code
160
623
const path = require('path'); const cssnext = require('postcss-cssnext'); const inputRange = require('postcss-input-range'); module.exports = { entry: [ './resources/assets/src/index.js', './resources/assets/sass/site/site.scss', './resources/assets/sass/app/app.scss' ], output: { ...
52,517
https://github.com/Teleopti/HangfireConfiguration/blob/master/Hangfire.Configuration/PublisherStarter.cs
Github Open Source
Open Source
MIT
2,020
HangfireConfiguration
Teleopti
C#
Code
46
161
using System.Linq; namespace Hangfire.Configuration { public class PublisherStarter { private readonly StateMaintainer _stateMaintainer; private readonly State _state; internal PublisherStarter(StateMaintainer stateMaintainer, State state) { _stateMaintainer = state...
12,449
https://github.com/xianhuameng/awesome-spring-boot-examples/blob/master/spring-boot-hello-world/src/main/java/com/michael/springboothelloworld/controller/HelloWorld.java
Github Open Source
Open Source
MIT
2,019
awesome-spring-boot-examples
xianhuameng
Java
Code
42
150
package com.michael.springboothelloworld.controller; import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; /** * @author Michael * @create 2019-06-30 23:33 */ @RestController public class ...
9,402
https://github.com/Taher-Ghaleb/FlakeFlagger/blob/master/flakiness-predicter/input_data/original_tests/zxing-zxing/nonFlakyMethods/com.google.zxing.oned.rss.expanded.RSSExpandedImage2stringTestCase-testDecodeRow2string_26.java
Github Open Source
Open Source
BSD-3-Clause
2,021
FlakeFlagger
Taher-Ghaleb
Java
Code
13
71
@Test public void testDecodeRow2string_26() throws Exception { String expected="(10)5678(11)010101"; String path="test/data/blackbox/rssexpanded-1/26.png"; assertCorrectImage2string(path,expected); }
50,937
https://github.com/vienvong-main/xoso/blob/master/application/controllers/Today.php
Github Open Source
Open Source
MIT
null
xoso
vienvong-main
PHP
Code
27
81
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Today extends CI_Controller { private $data = array(); public function index(){ $this->data['content_view'] = 'today'; $this->load->view('wrapper', $this->data); } }
18,211
https://github.com/alexengrig/competition/blob/master/src/main/java/dev/alexengrig/competition/waitnotify/WaitNotify.java
Github Open Source
Open Source
MIT
null
competition
alexengrig
Java
Code
68
190
package dev.alexengrig.competition.waitnotify; public class WaitNotify { public static void main(String[] args) { Processor processor = new Processor(); Thread producer = new Thread(() -> { try { processor.produce(); } catch (InterruptedException e) { ...
34,274
https://github.com/ucx-code/ucXception/blob/master/fi-tools/sw-faults/Regression/testsuite/C/20/20.c._MIFS_9.patch
Github Open Source
Open Source
BSD-3-Clause
2,021
ucXception
ucx-code
null
Spoken
50
173
--- 20.c +++ 20.c._MIFS_9 2016-03-30 00:48:16.443702700 +0100 @@ -231,10 +231,6 @@ if (strcmp(expr_type, "int[]") == 0) expr_type = "int"; -if (strcmp(expr_type, expr_type3) != 0) { - printf("Incompatible type in assignment to %s[] (got %s, required %s)\n", node->child->id, expr_type3, expr_type); -...
13,887
https://github.com/Audentio/sportsdataio-php/blob/master/src/CBB/Model/Team.php
Github Open Source
Open Source
MIT
2,021
sportsdataio-php
Audentio
PHP
Code
807
2,353
<?php namespace Sportsdata\API\CBB\Model; class Team { /** * * * @var int */ protected $teamID; /** * * * @var string|null */ protected $key; /** * * * @var bool */ protected $active; /** * * * @var string|null ...
18,427
https://github.com/laststone/salt-pack/blob/master/souce_code/file_roots/pkg/openssl/1_0_2k/rhel7/sources/openssl-1.0.0-beta4-ca-dir.patch
Github Open Source
Open Source
Apache-2.0
2,021
salt-pack
laststone
null
Spoken
148
729
diff -up openssl-1.0.0-beta4/apps/CA.pl.in.ca-dir openssl-1.0.0-beta4/apps/CA.pl.in --- openssl-1.0.0-beta4/apps/CA.pl.in.ca-dir 2006-04-28 02:30:49.000000000 +0200 +++ openssl-1.0.0-beta4/apps/CA.pl.in 2009-11-12 12:33:13.000000000 +0100 @@ -53,7 +53,7 @@ $VERIFY="$openssl verify"; $X509="$openssl x509"; $PKCS12="$o...
42,800
https://github.com/steemersict/sw6demo/blob/master/vendor/shopware/core/Framework/DataAbstractionLayer/Write/Command/JsonUpdateCommand.php
Github Open Source
Open Source
MIT
2,020
sw6demo
steemersict
PHP
Code
50
199
<?php declare(strict_types=1); namespace Shopware\Core\Framework\DataAbstractionLayer\Write\Command; use Shopware\Core\Framework\DataAbstractionLayer\EntityDefinition; use Shopware\Core\Framework\DataAbstractionLayer\Write\EntityExistence; class JsonUpdateCommand extends UpdateCommand { /** * @var string ...
10,283
https://github.com/jorupp/angular-intro/blob/master/src/sass/theme.scss
Github Open Source
Open Source
MIT
null
angular-intro
jorupp
SCSS
Code
145
597
/** * Based on Black theme for reveal.js, modified to match rightpoint.com */ // Default mixins and settings ----------------- @import "../../bower_components/reveal.js/css/theme/template/mixins"; @import "../../bower_components/reveal.js/css/theme/template/settings"; // --------------------------------------------...
31,636
https://github.com/EwingYangs/myblog/blob/master/application/models/ProjectM.php
Github Open Source
Open Source
MIT
null
myblog
EwingYangs
PHP
Code
331
1,984
<?php class ProjectM extends MY_Model{ protected $table_name = 'b39_project'; protected $_insertFields = array('project_name','project_url'); protected $_updateFields = array('project_name','project_url'); protected function _before_insert(&$data){ if($_FILES['project_pic']['error'] == 0){ //处理图片,上传图片 $co...
1,921
https://github.com/alexprey/sveltedoc-parser/blob/master/typings.d.ts
Github Open Source
Open Source
MIT
2,021
sveltedoc-parser
alexprey
TypeScript
Code
1,832
4,191
/** * Represents a data structure of JSDoc keywords, like a `@type {string}` */ export interface JSDocKeyword { /** * The name of keyword. * @example for `@param {string} Description of this property`, this field equals a `param`. */ name: string; /** * The description of keyword. ...
11,728
https://github.com/presenta-software/presenta-lib/blob/master/src/modules/noresize/index.js
Github Open Source
Open Source
BSD-3-Clause
2,023
presenta-lib
presenta-software
JavaScript
Code
23
82
import './globals.css' const noresize = function (sceneElement, modConfig, sceneConfig) { const noResize = !!(sceneConfig.noresize || modConfig) if (noResize) sceneElement.querySelector('.sceneObject').classList.add('noresize') } export default noresize
52,765
https://github.com/jhthorsen/app-mdweb/blob/master/script/mdweb
Github Open Source
Open Source
Artistic-1.0
2,019
app-mdweb
jhthorsen
Perl
Code
821
10,667
#!/usr/bin/env perl use Mojolicious::Lite; use Mojo::File 'path'; use Mojo::Util 'decode'; use Text::MultiMarkdown (); my $HOME = $ENV{MDWEB_HOME} || Cwd::getcwd; get '/*sub_dir', {sub_dir => ''} => sub { my $c = shift; my $sub_dir = $c->stash('sub_dir'); my $format = $sub_dir =~ /\.(\w+)$/ ? $1 : ''; ...
54,538
https://github.com/chriswessels/DrMongo/blob/master/client/views/Shortcut/Shortcut.js
Github Open Source
Open Source
MIT
null
DrMongo
chriswessels
JavaScript
Code
34
117
shortcuts.register('General', ['?', '/'], ['?'], 'Show this modal', function() { $('#shortcuts-modal').modal('show'); }); Template.Shortcut.helpers({ shortcuts() { let s = []; _.each(shortcuts.list, (value, key) => { s.push({ namespace: key, items: value }) }); return ...
16,259
https://github.com/congweitao/congfs/blob/master/ctl/source/modes/ModeCreateDir.cpp
Github Open Source
Open Source
BSD-3-Clause
null
congfs
congweitao
C++
Code
778
2,674
#include <app/App.h> #include <common/net/message/storage/creating/MkDirMsg.h> #include <common/net/message/storage/creating/MkDirRespMsg.h> #include <common/storage/striping/Raid0Pattern.h> #include <common/toolkit/MetadataTk.h> #include <common/toolkit/NodesTk.h> #include <common/toolkit/UnitTk.h> #include <program/P...
18,030
https://github.com/latproc/modbus-cmore-scripts/blob/master/iod2Messages.sh
Github Open Source
Open Source
Unlicense
2,013
modbus-cmore-scripts
latproc
Shell
Code
15
63
#!/bin/bash #. ./bsfl DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ${DIR}/lib/iod2Messages.php -o /tmp/MsgDB.XLS
54,118
https://github.com/atulmishra-one/repose-academy/blob/master/courses/admin.py
Github Open Source
Open Source
Apache-2.0
2,017
repose-academy
atulmishra-one
Python
Code
54
168
from django.contrib import admin from django.forms import ModelForm from django.contrib.admin import ModelAdmin from suit_redactor.widgets import RedactorWidget # Register your models here. from .models import Courses class EditorForm(ModelForm): class Meta: widgets = { 'description': Redac...
1,923
https://github.com/cosminstn/spring-disruptor-mediatr/blob/master/src/test/kotlin/tech/sharply/spring_disruptor_mediatr/mediator/RegistryImplTest.kt
Github Open Source
Open Source
Apache-2.0
2,021
spring-disruptor-mediatr
cosminstn
Kotlin
Code
210
812
package tech.sharply.spring_disruptor_mediatr.mediator import org.junit.jupiter.api.Assertions.assertNotNull import org.junit.jupiter.api.Test import org.springframework.beans.factory.annotation.Autowired import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.boot.test.context.S...
41,720
https://github.com/openactive/models-php/blob/master/src/Models/SchemaOrg/DeliveryTimeSettings.php
Github Open Source
Open Source
MIT
2,023
models-php
openactive
PHP
Code
406
1,288
<?php namespace OpenActive\Models\SchemaOrg; /** * */ class DeliveryTimeSettings extends \OpenActive\Models\SchemaOrg\StructuredValue { /** * @return string[]|null */ public static function getType() { return "schema:DeliveryTimeSettings"; } public static function fieldList() ...
1,539
https://github.com/berkterek/Udemy3DProje1Repository/blob/master/UdemyProject1/Assets/GameFolders/Scripts/Concretes/Movements/Mover.cs
Github Open Source
Open Source
Unlicense
2,021
Udemy3DProje1Repository
berkterek
C#
Code
42
163
using System.Collections; using System.Collections.Generic; using UdemyProject1.Controllers; using UnityEngine; namespace UdemyProject1.Movements { public class Mover { Rigidbody _rigidbody; PlayerController _playerController; public Mover(PlayerController playerController) { ...
53,934
https://github.com/knightjdr/prohits-viz-api/blob/master/scripts/genedb/index.js
Github Open Source
Open Source
MIT
2,022
prohits-viz-api
knightjdr
JavaScript
Code
134
588
/* eslint no-console: 0 */ import fs from 'fs/promises'; import download from './download.js'; import getVersions from './get-versions.js'; import mapDomains from './map-domains.js'; import mapInteractions from './map-interactions.js'; import mapExpression from './map-expression.js'; import parseHGNC from './parse-hgn...
49,505
https://github.com/go-gitea/gitea/blob/master/modules/git/commit_info.go
Github Open Source
Open Source
LicenseRef-scancode-dco-1.1, MIT
2,023
gitea
go-gitea
Go
Code
35
72
// Copyright 2017 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT package git // CommitInfo describes the first commit with the provided entry type CommitInfo struct { Entry *TreeEntry Commit *Commit SubModuleFile *SubModuleFile }
37,140
https://github.com/modelica/ModelicaStandardLibrary/blob/master/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/Utilities/ControlBus.mo
Github Open Source
Open Source
BSD-3-Clause
2,023
ModelicaStandardLibrary
modelica
Modelica
Code
97
374
within Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.Utilities; expandable connector ControlBus "Data bus for all axes of robot" extends Modelica.Icons.SignalBus; Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.Utilities.AxisControlBus axisControlBus1 "Bus of axis 1"; Modelica.Mechanics.MultiBody.Ex...
53,646
https://github.com/asim/H2O/blob/master/login-service/sessinvalidator/sessinvalidator.go
Github Open Source
Open Source
Apache-2.0
2,021
H2O
asim
Go
Code
14
42
package sessinvalidator const ( TopicName = "login.sessionexpire" ChannelName = "expire" maxInFlight = 10 )
15,835
https://github.com/PIVX-Project/PIVXj/blob/master/core/src/main/java/org/pivxj/core/MasternodeAddress.java
Github Open Source
Open Source
Apache-2.0
2,020
PIVXj
PIVX-Project
Java
Code
561
1,278
/** * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
45,604
https://github.com/lanqiuchenjian/my-im/blob/master/myim-common/src/main/java/com/myim/common/basepojo/BaseRequest.java
Github Open Source
Open Source
MIT
null
my-im
lanqiuchenjian
Java
Code
7
23
package com.myim.common.basepojo; public class BaseRequest { }
8,764
https://github.com/apache/kudu/blob/master/java/kudu-jepsen/src/main/clojure/jepsen/kudu/util.clj
Github Open Source
Open Source
Apache-2.0, OpenSSL, BSD-3-Clause, LicenseRef-scancode-openssl, LicenseRef-scancode-ssleay-windows, LicenseRef-scancode-google-patent-license-webrtc, LicenseRef-scancode-unknown-license-reference, dtoa, MIT, BSL-1.0, LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown
2,023
kudu
apache
null
Spoken
1,623
5,432
;; 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 n...
4,037
https://github.com/tosanboom/java-sdk/blob/master/src/test/java/ir/boommarket/deposits/StatementListRequestTest.groovy
Github Open Source
Open Source
Apache-2.0
2,017
java-sdk
tosanboom
Groovy
Code
148
468
package ir.boommarket.deposits import spock.lang.Specification import static java.util.Calendar.* class StatementListRequestTest extends Specification { def "With invalid parameters, StatementListRequest's Builder should throw IllegalArgumentException"() { when: StatementListRequest.newBuilder() ...
51,293
https://github.com/sewerk/Bill-Calculator/blob/master/app/src/androidTest/java/pl/srw/billcalculator/settings/SettingsUITest.java
Github Open Source
Open Source
MIT
2,021
Bill-Calculator
sewerk
Java
Code
176
983
package pl.srw.billcalculator.settings; import android.support.test.rule.ActivityTestRule; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import javax.inject.Inject; import pl.srw.billcalculator.data.ApplicationRepo; import pl.srw.billcalculator.di.TestDependencies; import pl.srw.billcalcula...
26,445
https://github.com/liliyavoloshina/taskbox-storybook-test/blob/master/tests/unit/PureTaskList.spec.js
Github Open Source
Open Source
MIT
2,021
taskbox-storybook-test
liliyavoloshina
JavaScript
Code
38
147
import {mount} from '@vue/test-utils' import PureTaskList from '../../src/components/PureTaskList.vue' import {WithPinnedTasks} from '../../src/components/PureTaskList.stories' test('renders pinned tasks at the start of the list', () => { const wrapper = mount(PureTaskList, { propsData: WithPinnedTasks.args })...
34,985
https://github.com/martinjezek/node-mongoose/blob/master/routes/user.js
Github Open Source
Open Source
MIT
2,014
node-mongoose
martinjezek
JavaScript
Code
33
126
'use strict'; var express = require('express'), user = require('../lib/model/user'); module.exports = express.Router() // middleware .use( user.middleware) // user .get('/' , user.list) .post('/' ...
42,483
https://github.com/FilipPyrek/serverless-summit-21/blob/master/src/pullLedgerData.js
Github Open Source
Open Source
MIT
2,021
serverless-summit-21
FilipPyrek
JavaScript
Code
117
435
'use strict'; const AWS = require('aws-sdk') const dynamoDb = new AWS.DynamoDB.DocumentClient() const stepFunctions = new AWS.StepFunctions() module.exports.handler = async (event) => { console.log('Pulling ledger data...') const { Items: blocks = [] } = await dynamoDb.scan({ TableName: process.env.BITCOIN_L...
53,762
https://github.com/ankur-a/Competitive-Programming-Repository/blob/master/src/heavy_light_decomposition_weighted_edges (hld).cpp
Github Open Source
Open Source
MIT
2,021
Competitive-Programming-Repository
ankur-a
C++
Code
791
4,229
/** * Heavy Light decomposition: Perform point updates and aggregate queries over path between two nodes in a tree in case edges are weighted * Complexity: O(lg^2(N)) * Source: https://github.com/dragonslayerx */ #include<iostream> #include<iostream> #include<cmath> #include<map> #include<limits> #include<vecto...
18,428
https://github.com/fatihalp/openclassify/blob/master/addons/default/visiosoft/cats-module/resources/lang/pl/addon.php
Github Open Source
Open Source
MIT
2,020
openclassify
fatihalp
PHP
Code
14
42
<?php return [ 'title' => 'Kategoria', 'name' => 'Moduł kategorii', 'description' => '' ];
8,206
https://github.com/morontt/zend-blog-3-backend/blob/master/src/Mtt/BlogBundle/API/Transformers/CommentatorTransformer.php
Github Open Source
Open Source
MIT
2,020
zend-blog-3-backend
morontt
PHP
Code
89
316
<?php /** * Created by PhpStorm. * User: morontt * Date: 23.11.14 * Time: 12:22 */ namespace Mtt\BlogBundle\API\Transformers; use Mtt\BlogBundle\Entity\Commentator; use Mtt\BlogBundle\Entity\CommentatorInterface; class CommentatorTransformer extends BaseTransformer { /** * @param CommentatorInterface $...
30,480
https://github.com/pdapnz/AndroidTreeRecyclerView/blob/master/app/src/main/java/com/foolhorse/treerecyclerview/bean/FileBean.java
Github Open Source
Open Source
Apache-2.0
2,017
AndroidTreeRecyclerView
pdapnz
Java
Code
48
182
package com.foolhorse.treerecyclerview.bean; import com.foolhorse.treerecyclerview.annotation.NodeId; import com.foolhorse.treerecyclerview.annotation.NodePid; /** * Created by ID_MARR on 2015/4/26. */ public class FileBean { @NodeId public int fileId; @NodePid public int filePId; public Strin...
18,461
https://github.com/jpoikela/z88dk/blob/master/libsrc/_DEVELOPMENT/adt/p_list/c/sdcc_iy/p_list_init_fastcall.asm
Github Open Source
Open Source
ClArtistic
2,022
z88dk
jpoikela
Assembly
Code
16
82
; void p_list_init_fastcall(void *p) SECTION code_clib SECTION code_adt_p_list PUBLIC _p_list_init_fastcall EXTERN asm_p_list_init defc _p_list_init_fastcall = asm_p_list_init
33,069
https://github.com/moul/chizap/blob/master/example_test.go
Github Open Source
Open Source
ECL-2.0, Apache-2.0, MIT-0, MIT
2,022
chizap
moul
Go
Code
25
121
package chizap_test import ( "github.com/go-chi/chi" "go.uber.org/zap" "moul.io/chizap" ) func Example() { logger := zap.NewExample() r := chi.NewRouter() r.Use(chizap.New(logger, &chizap.Opts{ WithReferer: true, WithUserAgent: true, })) }
40,170
https://github.com/Phoenix-626/BuildX/blob/master/app/src/main/java/skyestudios/buildx/helpers/MainAdapter.java
Github Open Source
Open Source
MIT
2,021
BuildX
Phoenix-626
Java
Code
61
246
package skyestudios.buildx.helpers; import androidx.annotation.NonNull; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentPagerAdapter; import skyestudios.buildx.fragments.logic.LogicFragment; import skyestudios.buildx.fragments.view.ViewFragment...
49,007
https://github.com/hmrc/pension-practitioner/blob/master/app/utils/AuthUtil.scala
Github Open Source
Open Source
Apache-2.0
null
pension-practitioner
hmrc
Scala
Code
166
427
/* * Copyright 2021 HM Revenue & Customs * * 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 a...
33,074
https://github.com/max-leizerovich/google-spreadsheet-to-mysql/blob/master/src/insert-data-from-spreadsheet.js
Github Open Source
Open Source
MIT
2,019
google-spreadsheet-to-mysql
max-leizerovich
JavaScript
Code
123
375
import mysql from 'mysql'; const mysqlCredentials = require('../mysql-credentials.json'); if (!mysqlCredentials || !mysqlCredentials.host || !mysqlCredentials.database) { throw 'invalid mysql-credentials.json'; } const spreadsheetId = process.argv[2]; if (!spreadsheetId || spreadsheetId.trim() === '') { thro...
41,222
https://github.com/jonasschmidt/ex_json_schema/blob/master/.gitmodules
Github Open Source
Open Source
MIT
2,023
ex_json_schema
jonasschmidt
Git Config
Code
8
54
[submodule "test/JSON-Schema-Test-Suite"] path = test/JSON-Schema-Test-Suite url = https://github.com/json-schema-org/JSON-Schema-Test-Suite.git
10,429
https://github.com/atnos-org/eff/blob/master/list/shared/src/main/scala/org/atnos/eff/ListCreation.scala
Github Open Source
Open Source
MIT
2,023
eff
atnos-org
Scala
Code
102
242
package org.atnos.eff import Eff._ trait ListCreation { type _List[R] = List <= R type _list[R] = List |= R /** create a list effect with no values */ def empty[R: _list, A]: Eff[R, A] = fromList(List()) /** create a list effect from a single value */ def singleton[R: _list, A](a: A): Eff[R, A] = ...
42,422
https://github.com/afeizh/mud/blob/master/kungfu/skill/sanwu-shou/kong.c
Github Open Source
Open Source
MIT
2,022
mud
afeizh
C
Code
240
1,090
#include <ansi.h> #include <combat.h> #define KONG "「" HIY "无孔不入" NOR "」" inherit F_SSERVER; int perform(object me, object target) { int damage, count; string msg; int ap, dp; object weapon; if (userp(me) && ! me->query("can_perform/sanwu-shou/kong")) return n...
13,874