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/isabella232/commerce-cif-graphql-integration-reference/blob/master/src/common/SchemaBuilder.js
Github Open Source
Open Source
Apache-2.0
2,021
commerce-cif-graphql-integration-reference
isabella232
JavaScript
Code
784
1,930
/******************************************************************************* * * Copyright 2019 Adobe. All rights reserved. * This file is licensed to you 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 * ...
1,616
https://github.com/KerouichaReda/leetcode_submission/blob/master/7_Reverse_Integer.cxx
Github Open Source
Open Source
MIT
2,020
leetcode_submission
KerouichaReda
C++
Code
188
413
/* * 7_Reverse_Integer.cxx * * Copyright 2020 RedaKerouicha <redakerouicha@localhost> * * 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 o...
5,458
https://github.com/YazanDarAmmar/Resturant/blob/master/core/tcore.php
Github Open Source
Open Source
MIT
null
Resturant
YazanDarAmmar
PHP
Code
808
4,523
<?php /*************************************************************************** * easytemplate.php * 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 Lice...
19,227
https://github.com/Detsuna/RnD/blob/master/Python/Stuff/BitPrng.py
Github Open Source
Open Source
BSD-3-Clause
null
RnD
Detsuna
Python
Code
248
848
from math import log2 class BitPrng() : def __init__(self, bitz:int=1) : self.mask = int("".join(["1" for _ in range(bitz)]), 2) self.offset = 1<<bitz>>1 | 1<<bitz>>int(log2(bitz))>>1 | 1<<(bitz // 2) | 1<<int(log2(bitz)) | 1 self.overflow = int("11000011"*-(bitz // -8), 2) & self.mask<<...
20,256
https://github.com/cmustats/cmu202_master/blob/master/data-raw/mum.R
Github Open Source
Open Source
Apache-2.0
2,019
cmu202_master
cmustats
R
Code
37
127
# Load the data mum <- readxl::read_excel("data-raw/MUM.xlsx") ## Mutate the data. Taken from 36-202 Lab 7 Spring 2018 mum <- dplyr::mutate(mum, Visibility = as.factor(Visibility), TestResult = as.factor(TestResult)) # Save the data readr::write_csv(mum, "data-raw/mum.csv") devtools::use_data(mum, o...
19,150
https://github.com/benjaminthuerer/UiO_EEG_analysis/blob/master/functions/UiO_calc_SWA.m
Github Open Source
Open Source
MIT
2,019
UiO_EEG_analysis
benjaminthuerer
MATLAB
Code
660
2,464
% Calculate slow-wave-activity and define parameters % @ benjamin.thurer@uio.no % EEG: EEG data set structure according to EEGlab or preprocessing pipeline % epoch_length: length of epoch for which SWA should be computed (in s) % marker: time point of stimulus (in ms). Epoch will be set directly before marker % detai...
32,129
https://github.com/alejogtz/netcore-sample/blob/master/Personas/Infraestructura/DatabaseAccess/PersonasStoredFunctions.cs
Github Open Source
Open Source
MIT
2,021
netcore-sample
alejogtz
C#
Code
123
531
using FilemanagerDemo.DatabaseAccess; using FilemanagerDemo.Personas.DatabaseAccess; using FilemanagerDemo.Shared.Infraestructure; using Microsoft.Extensions.Options; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace FilemanagerDemo.Infraestructura.DatabaseAcce...
39,335
https://github.com/shaun/supportable/blob/master/lib/dropio/dropio.gemspec
Github Open Source
Open Source
MIT
2,009
supportable
shaun
Ruby
Code
166
912
# -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = %q{dropio} s.version = "1.0" s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version= s.authors = ["Jake Good"] s.date = %q{2009-09-09} s.description = %q{A Ruby client library for the Drop.io...
10,502
https://github.com/tiagoshibata/pcs-remote-monitoring-webui/blob/master/src/common/utils.test.js
Github Open Source
Open Source
MIT
null
pcs-remote-monitoring-webui
tiagoshibata
JavaScript
Code
46
161
// Copyright (c) Microsoft. All rights reserved. import { makeShallowObject } from './utils' describe('makeShallowObject function', () => { it('should create a shallow object', () => { const shallow = makeShallowObject({ 'a': { 'b': [], 'c': 14, }, 'd':...
34,305
https://github.com/awesome-academy/php_hn_intern24-12/blob/master/resources/views/user/checkout/checkout.blade.php
Github Open Source
Open Source
MIT
null
php_hn_intern24-12
awesome-academy
PHP
Code
538
2,141
@extends('layouts.app') @section('content') <!-- breadcrum --> <div class="py-4 container flex gap-3 items-center m-auto"> <a href="index.html" class="text-indigo-900 text-base"> <i class="fas fa-home"></i> </a> <span class="text-sm text-gray-400"><i class="f...
43,761
https://github.com/gary-beautypie/terraform-provider-snowflake/blob/master/pkg/snowflake/file_format.go
Github Open Source
Open Source
MIT
null
terraform-provider-snowflake
gary-beautypie
Go
Code
2,669
8,048
package snowflake import ( "database/sql" "encoding/json" "fmt" "strings" "github.com/jmoiron/sqlx" ) // FileFormatBuilder abstracts the creation of SQL queries for a Snowflake file format type FileFormatBuilder struct { name string db string schema ...
10,033
https://github.com/alipeker/ebank/blob/master/UserPages/user_account.java
Github Open Source
Open Source
MIT
2,018
ebank
alipeker
Java
Code
714
3,539
package UserPages; import java.awt.Color; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; import data.Account; import data.User; import data...
12,917
https://github.com/scala-steward/fluflu/blob/master/modules/examples/src/main/scala/examples/Main.scala
Github Open Source
Open Source
MIT
2,020
fluflu
scala-steward
Scala
Code
173
640
package examples import java.net.InetSocketAddress import java.time._ import com.typesafe.scalalogging.LazyLogging import fluflu._ import fluflu.msgpack.instances.mess._ import mess.Fmt import mess.codec.Encoder import scala.concurrent.duration._ import scala.util.Random /** sbt "examples/runMain examples.Main" *...
21,019
https://github.com/davydes/yk_form/blob/master/spec/lib/notifications/base_spec.rb
Github Open Source
Open Source
MIT
2,016
yk_form
davydes
Ruby
Code
47
179
require 'spec_helper' describe YandexKassaForm::Notification::Base do def notification(params) YandexKassaForm::Notification::Base.new params end describe '.valid_signature?' do it { expect(notification(request).valid_signature?).to be true } it do stub_const('PASSWORD', PASSWORD_INVALID) ...
52,346
https://github.com/Informatievlaanderen/projector/blob/master/src/Be.Vlaanderen.Basisregisters.Projector/ControllersMicrosoft/HateoasLink.cs
Github Open Source
Open Source
LicenseRef-scancode-free-unknown, MIT, Artistic-2.0, Apache-2.0
2,023
projector
Informatievlaanderen
C#
Code
50
125
namespace Be.Vlaanderen.Basisregisters.Projector.ControllersMicrosoft { using System; public class HateoasLink { public Uri Ref { get; set; } public string Rel { get; set; } public string Type { get; set; } public HateoasLink(Uri @ref, string rel, string type) { ...
5,738
https://github.com/st-universe/core/blob/master/src/Orm/Repository/KnPostToPlotApplicationRepository.php
Github Open Source
Open Source
MIT
2,023
core
st-universe
PHP
Code
76
322
<?php declare(strict_types=1); namespace Stu\Orm\Repository; use Doctrine\ORM\EntityRepository; use Stu\Orm\Entity\KnPostToPlotApplication; use Stu\Orm\Entity\KnPostToPlotApplicationInterface; /** * @extends EntityRepository<KnPostToPlotApplication> */ final class KnPostToPlotApplicationRepository extends EntityR...
24,469
https://github.com/brentondwalker/libmoon/blob/master/lua/filter_GenericFlowAPI.lua
Github Open Source
Open Source
MIT
2,020
libmoon
brentondwalker
Lua
Code
6,012
12,778
local mod = {} local ffi = require "ffi" local log = require "log" local device = require "device" local etherc = require "etherc" local headerc = require "headerc" local dev = device.__devicePrototype ffi.cdef[[ typedef uint16_t rte_be16_t; /**< 16-bit big-endian value. */ typedef uint32_t rte_be32_t; /**< 32...
6,971
https://github.com/msperkow/cpp-gui-template/blob/master/src/controller/project.cpp
Github Open Source
Open Source
MIT
null
cpp-gui-template
msperkow
C++
Code
56
227
#include "controller/project.hpp" Project::Project(const std::string &title, int height, int width) : Application(title, height, width) {} void Project::run() { while (window.isOpen()) { SDL_Event event; while (SDL_PollEvent(&event)) { ImGui_ImplSDL2_ProcessEvent(&event); bool quit = (event.type == SDL_...
23,407
https://github.com/zhouyitong/bmwnews/blob/master/src/main/java/com/bmw/news/common/utils/ResultUtil.java
Github Open Source
Open Source
ECL-2.0, Apache-2.0
null
bmwnews
zhouyitong
Java
Code
330
1,374
package com.bmw.news.common.utils; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import com.bmw.news.web.enumtype.ApiConstants; /** * result 返回结果集 * code 返回 0 失败 1 成功 * message 具体失败原因 或者成功 * resultMap 存放code message * bodyMap 存放具体返回数据,无数据放null * 接口返回参数工具类 */ public class Res...
52,512
https://github.com/aafulei/cppp5e/blob/master/ver1/answers/lp-13-11.cpp
Github Open Source
Open Source
MIT
null
cppp5e
aafulei
C++
Code
180
414
// 18/03/03 = Sat // 18/03/04 = Sun: avoid memory leaks; allow self-assignment // Exercise 13.11: Add a destructor to your HasPtr class from the previous exercises. // Built incrementally on lp-13-08.cpp #include <iostream> #include <memory> // to use shared_ptr in main() #include <string> using namespace std; ...
29,370
https://github.com/qianbinbin/leetcode/blob/master/cpp/tests/LengthOfLastWordTest.cpp
Github Open Source
Open Source
MIT
2,021
leetcode
qianbinbin
C++
Code
28
102
#include "LengthOfLastWord.h" #include "gtest/gtest.h" using namespace lcpp; TEST(LengthOfLastWord, Solution58_1) { auto S58_1 = Solution58_1(); const std::string S = "Hello World"; const int Expected = 5; EXPECT_EQ(Expected, S58_1.lengthOfLastWord(S)); }
2,001
https://github.com/light-tech/MSCpp/blob/master/include/winsdk/cppwinrt/winrt/impl/Windows.Security.Authentication.Web.1.h
Github Open Source
Open Source
MIT
2,020
MSCpp
light-tech
C++
Code
91
488
// C++/WinRT v2.0.190620.2 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef WINRT_Windows_Security_Authentication_Web_1_H #define WINRT_Windows_Security_Authentication_Web_1_H #include "winrt/impl/Windows.Security.Authentication.Web.0.h" namespace winrt::Windows:...
37,893
https://github.com/JcdeA/Oxide/blob/master/src/Oxide/JavaScript/Interop/JSValueRefConverter.cs
Github Open Source
Open Source
BSD-3-Clause
null
Oxide
JcdeA
C#
Code
230
913
// Copyright (c) The Vignette Authors // Licensed under BSD 3-Clause License. See LICENSE for details. using System; using System.Runtime.InteropServices; using Oxide.JavaScript.Objects; namespace Oxide.JavaScript.Interop { public class JSValueRefConverter { private readonly JSContext context; ...
23,774
https://github.com/davidkleiven/WangLandau/blob/master/cpp/include/wang_landau_sampler.hpp
Github Open Source
Open Source
MIT
2,022
WangLandau
davidkleiven
C++
Code
401
1,239
#ifndef WANG_LANDAU_SAMPLER_H #define WAND_LANDAU_SAMPLER_H #include <vector> #include "ce_updater.hpp" #include "cf_history_tracker.hpp" #include "histogram.hpp" #include <Python.h> #include <map> #include <string> #include <array> #define WANG_LANDAU_DEBUG typedef std::vector< std::map< std::string,std::vector<int> ...
33,069
https://github.com/karthikv8058/kitchen-app/blob/master/android/app/src/main/java/com/smarttoni/models/WebLoginModel.java
Github Open Source
Open Source
MIT
null
kitchen-app
karthikv8058
Java
Code
28
80
package com.smarttoni.models; import com.smarttoni.models.Data; public class WebLoginModel { public Data data; public Data getData() { return data; } public void setData(Data data) { this.data = data; } }
45,248
https://github.com/Eviesujadi/SPK/blob/master/evieta/app/Http/Controllers/KriteriaController.php
Github Open Source
Open Source
MIT
2,021
SPK
Eviesujadi
PHP
Code
249
817
<?php namespace App\Http\Controllers; use App\Kriteria; use Illuminate\Http\Request; class KriteriaController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { } /** * Show the form for ...
22,307
https://github.com/AzureAD/microsoft-authentication-cli/blob/master/src/AzureAuth/Config.cs
Github Open Source
Open Source
MIT
null
microsoft-authentication-cli
AzureAD
C#
Code
168
409
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace Microsoft.Authentication.AzureAuth { using System; using System.Collections.Generic; using System.IO.Abstractions; using Tomlyn; /// <summary> /// A config contains a collection of <see cref="Alias"/>. ///...
29,855
https://github.com/parrot/parrot/blob/master/lib/Parrot/Install.pm
Github Open Source
Open Source
Artistic-2.0
2,021
parrot
parrot
Perl
Code
1,203
3,627
package Parrot::Install; # Copyright (C) 2001-2014, Parrot Foundation. use strict; use warnings; use File::Basename qw( dirname ); use File::Copy qw( cp ); use File::Path qw( mkpath ); use File::Spec; use base qw( Exporter ); our @EXPORT_OK = qw( lines_to_files create_directories install_files ); use lib 'l...
9,881
https://github.com/policumbent/alice/blob/master/src/utils/index.ts
Github Open Source
Open Source
Apache-2.0
null
alice
policumbent
TypeScript
Code
350
956
import { useRef, useEffect, useState, Dispatch, SetStateAction } from 'react'; import { default as api } from 'api'; import Store from './store'; export const isLogged = (): boolean => api.isLogged(); export const isNotificationsActive = (): boolean => { const token = Store.get('notifications'); return token !=...
5,401
https://github.com/yaznasivasai/python_codewars/blob/master/5KYU/valid_ISBN10/main.py
Github Open Source
Open Source
MIT
2,022
python_codewars
yaznasivasai
Python
Code
43
107
def valid_ISBN10(isbn: str) -> bool: try: if (len(isbn) != 10) or ("X" in isbn and isbn[-1].isdigit()) or (isbn.isalpha()): return False return not sum([i * (10 if k == 'X' else int(k)) for i, k in enumerate(isbn, start=1)]) % 11 except Exception: return False
49,916
https://github.com/hawkrai/CATSdesigner/blob/master/api/LMPlatform.UI/Controllers/StatisticController.cs
Github Open Source
Open Source
MIT
2,023
CATSdesigner
hawkrai
C#
Code
721
3,698
using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; using System.Web.Mvc; using Application.Core; using Application.Core.Data; using Application.Core.Helpers; using Application.Core.SLExcel; using Application.Infrastructure.FilesManagement; using Application.Infrastructu...
46,802
https://github.com/alexdesign001/UX/blob/master/Design_Langauges/ModernUI/MetroFramework/MetroFramework/Forms/MetroForm.cs
Github Open Source
Open Source
MS-PL, MIT
2,020
UX
alexdesign001
C#
Code
3,677
11,620
#region Copyright (c) 2013 Jens Thiel, http://thielj.github.io/MetroFramework /* MetroFramework - Windows Modern UI for .NET WinForms applications Copyright (c) 2013 Jens Thiel, http://thielj.github.io/MetroFramework Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...
5,188
https://github.com/nicolascnudde/movie-application/blob/master/client/src/app/components/card/Card.module.scss
Github Open Source
Open Source
Apache-2.0
2,021
movie-application
nicolascnudde
SCSS
Code
87
294
.card { margin-right: 1rem; &:last-child { margin-right: 0; } &Link { color: #fff; > img { width: 10rem; height: 15rem; object-fit: contain; transition: all 0.2s ease; } @media (min-width: 64rem) { > img { width: 15rem; height: 22.5rem; ...
28,946
https://github.com/hruljov/virt-backup/blob/master/virt_backup/compat_layers/definition.py
Github Open Source
Open Source
BSD-2-Clause-FreeBSD
null
virt-backup
hruljov
Python
Code
201
816
from abc import ABC, abstractmethod import logging import re import arrow from packaging.version import parse as version_parser import yaml logger = logging.getLogger("virt_backup") def convert(definition): def_version = version_parser(definition["version"]) converters = (ToV0_4(),) for c in converters...
39,765
https://github.com/yanif/circator/blob/master/MetabolicCompass/NutritionManager/Model/FoodItem.swift
Github Open Source
Open Source
Apache-2.0
2,017
circator
yanif
Swift
Code
529
1,446
// // FoodItem.swift // MetabolicCompassNutritionManager // // Created by Edwin L. Whitman on 7/21/16. // Copyright © 2016 Edwin L. Whitman. All rights reserved. // import Foundation import HealthKit class FoodItem : NSObject { var name : String = "" var brandName : String? var servingSizeUnit : ...
50,274
https://github.com/suve/fpman/blob/master/pages/fcl/sqldb/tsqlconnection.createdb.man
Github Open Source
Open Source
zlib-acknowledgement, Zlib
2,015
fpman
suve
null
Spoken
151
382
.\" file autogenerated by fpman .TH "fp-tsqlconnection.createdb" 3 "2014-03-14" "fpman" "Free Pascal Programmer's Manual" .SH NAME TSQLConnection.CreateDB - Create a new Database on the server .SH LOCATION package \fBfcl\fR, unit \fBsqldb\fR, file \fBsqldb.pp\fR, line 171 .SH SYNOPSIS public procedure \fBTSQLConnection...
28,780
https://github.com/MarkSFrancis/marksfrancis/blob/master/src/Phnx.Tests/Try/Extensions/ThenTry/ThenTryTInTOutTests.cs
Github Open Source
Open Source
MIT
2,019
marksfrancis
MarkSFrancis
C#
Code
160
636
using NUnit.Framework; using Phnx.Try; using System; namespace Phnx.Tests.Try.Extensions.ThenTry { public class ThenTryTInTOutTests { [Test] public void ThenTryTInTOut_WhenTryResultIsNull_ThrowsArgumentNullException() { TryResult<int> t = null; Assert.Throws<Arg...
48,768
https://github.com/tybantarnusa/free-games-notifier/blob/master/index.js
Github Open Source
Open Source
Apache-2.0
2,020
free-games-notifier
tybantarnusa
JavaScript
Code
178
563
'use strict'; require('dotenv').config() const line = require('@line/bot-sdk'); const express = require('express'); // create LINE SDK config from env variables const config = { channelAccessToken: process.env.CHANNEL_ACCESS_TOKEN, channelSecret: process.env.CHANNEL_SECRET, }; const client = new line.Client(conf...
13,013
https://github.com/juanchopalen/klaustro/blob/master/resources/sass/custom-styles/plugins/_rd-parallax.scss
Github Open Source
Open Source
MIT
null
klaustro
juanchopalen
SCSS
Code
254
920
/* * * RD Parallax * -------------------------------------------------- */ .rd-parallax { &-inner { position: relative; overflow: hidden; transform: translate3d(0px, 0px, 0px); clip: rect(0, auto, auto, 0); pointer-events: none; } &-layer[data-type="media"] { position: absolute; top...
40,258
https://github.com/abadikaka/MASCoolAlertView/blob/master/Example/MASCoolAlertView/ViewController.swift
Github Open Source
Open Source
MIT
null
MASCoolAlertView
abadikaka
Swift
Code
228
641
// // ViewController.swift // MASCoolAlertView // // Created by Michael Abadi Santoso on 10/22/17. // Copyright © 2017 michaelabadi.com. All rights reserved. // import UIKit import MASCoolAlertView class ViewController: UIViewController { var newAlert : MASCoolAlertView? @IBOutlet var myButton: UIBu...
39,371
https://github.com/henryhawke/covid19_dashboard/blob/master/src/ui/components/GlobalContainer.js
Github Open Source
Open Source
MIT
2,020
covid19_dashboard
henryhawke
JavaScript
Code
272
1,088
/** * covid19_dashboard copyright © 2020 * Created by mauromarini on 02/09/20 * Repository: http://github.com/marinimau/covid19_dashboard * Location: Baratili San Pietro */ import React, {PureComponent} from 'react'; import {StatusBar} from "expo-status-bar"; import {NavigationContainer} from "@react-navigation/n...
22,377
https://github.com/Iyke09/Events/blob/master/client/src/helperComponent/auth/form.js
Github Open Source
Open Source
MIT
2,018
Events
Iyke09
JavaScript
Code
178
670
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Loader from '../notifications/loader'; import Error from '../notifications/error'; function Form(props) { return ( <div className=""> <form id="add-form" className="col s12" onSubmit={props.handleSubmit}> ...
20,518
https://github.com/silx-kit/hdf5plugin/blob/master/src/fcidecomp/FCIDECOMP_V1.0.2/Software/FCIDECOMP_SOURCES/fcicomp-H5Zjpegls/CMakeLists.txt
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
hdf5plugin
silx-kit
CMake
Code
1,967
7,518
# $Id: CMakeLists.txt 778 2016-03-09 07:56:29Z delaunay $ # ============================================================= # # PROJECT : FCI_COMPRESSION # # AUTHOR : THALES Services # # Copyright 2015 EUMETSAT # # ============================================================= # HISTORY : # # VERSION:1.0.1:NCR:FC...
20,596
https://github.com/dormaayan/TestsReposirotry/blob/master/Coverage/hector-hector-2.0-0/core/src/main/java/me/prettyprint/cassandra/model/AbstractBasicQuery.java
Github Open Source
Open Source
MIT
2,019
TestsReposirotry
dormaayan
Java
Code
228
706
package me.prettyprint.cassandra.model; import me.prettyprint.cassandra.utils.Assert; import me.prettyprint.hector.api.HConsistencyLevel; import me.prettyprint.hector.api.Keyspace; import me.prettyprint.hector.api.Serializer; import me.prettyprint.hector.api.query.Query; /** * * @author patricioe (Patricio Echague...
37,681
https://github.com/OskarStark/continuouspipe/blob/master/api/src/ContinuousPipe/Builder/Docker/AuthenticatorRegistryServerResolver.php
Github Open Source
Open Source
Apache-2.0
2,022
continuouspipe
OskarStark
PHP
Code
36
130
<?php namespace ContinuousPipe\Builder\Docker; use ContinuousPipe\Builder\Image; class AuthenticatorRegistryServerResolver implements RegistryServerResolver { /** * {@inheritdoc} */ public function getServerName(Image $image) { $parts = explode('/', $image->getName()); if (strp...
3,568
https://github.com/u9g/minecraft-chunk-dumper/blob/master/test/cli-test.js
Github Open Source
Open Source
MIT
null
minecraft-chunk-dumper
u9g
JavaScript
Code
436
1,380
/* eslint-env mocha */ const assert = require('assert') const util = require('util') const fs = require('fs').promises const path = require('path') const exec = util.promisify(require('child_process').exec) const { spawn } = require('child_process') const fsOriginal = require('fs') const CMD_PATH = path.resolve(__dir...
13,919
https://github.com/ctfcup/2019-task-based/blob/master/ideas/stegano/voice-message/task/exploit.sh
Github Open Source
Open Source
MIT
2,021
2019-task-based
ctfcup
Shell
Code
34
101
#!/bin/bash INPUT="message.wav" OUTPUT="result.txt" for k in $(seq 256 256 4096); do echo "k = $k" python2 "py_stego_phase/stego_phase.py" -i $INPUT -m $OUTPUT -k $k && \ cat $OUTPUT | grep -a "Cup" && break done
26,348
https://github.com/naseemakhtar994/RxLifecycle/blob/master/app/src/main/java/florent37/github/com/rxcomponentlifecycle/MainActivity.java
Github Open Source
Open Source
Apache-2.0
2,021
RxLifecycle
naseemakhtar994
Java
Code
100
531
package florent37.github.com.rxcomponentlifecycle; import android.arch.lifecycle.Lifecycle; import android.arch.lifecycle.LifecycleRegistry; import android.arch.lifecycle.LifecycleRegistryOwner; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.widget.Te...
7,829
https://github.com/KuroshFarsimadan/demo16-spring-security/blob/master/demo16-spring-security/src/main/java/ir/kuroshfarsimadan/controller/MiscController.java
Github Open Source
Open Source
Unlicense
null
demo16-spring-security
KuroshFarsimadan
Java
Code
106
403
package ir.kuroshfarsimadan.controller; import javax.inject.Inject; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import ir.kuroshfarsimadan.service.Mi...
32,859
https://github.com/masahase0117/delegate/blob/master/maker/__syscall.c
Github Open Source
Open Source
BSD-3-Clause
2,021
delegate
masahase0117
C
Code
213
778
#include <sys/types.h> #include <sys/syscall.h> #include <signal.h> #include <errno.h> int INHERENT_syscall(){ return 1; } int pop_fd(int fd,int rw); int top_fd(int fd,int rw); int porting_dbg(const char *fmt,...); int PollIn1(int fd,int timeout); int get_writelimit(int,int); static int inread; static int inwrite; #...
28,721
https://github.com/rolandbernard/daro/blob/master/src/main/java/daro/lang/ast/AstInteger.java
Github Open Source
Open Source
BSD-2-Clause
null
daro
rolandbernard
Java
Code
121
323
package daro.lang.ast; import java.math.BigInteger; /** * Class representing an ast node for a integer literal. e.g. {@code 42} * * @author Roland Bernard */ public final class AstInteger extends AstNode { private final BigInteger value; public AstInteger(Position position, BigInteger value) { s...
28,412
https://github.com/kaist-plrg/esmeta/blob/master/tests/js/generator2.js
Github Open Source
Open Source
BSD-3-Clause
2,022
esmeta
kaist-plrg
JavaScript
Code
27
50
function* f() { let x = 1; while (true) { yield x; x++; } } var g = f(); var a = g.next().value; var b = g.next().value;
28,182
https://github.com/CafeKrem/file-dialog/blob/master/repository/FileDialog/FDJPGPreviewer.class.st
Github Open Source
Open Source
MIT
null
file-dialog
CafeKrem
null
Spoken
62
183
Class { #name : #FDJPGPreviewer, #superclass : #FDAbstractPreviewer, #category : #'FileDialog-previewerStrategie' } { #category : #testing } FDJPGPreviewer >> matchingMimeType: aZnMimeType [ "return a Boolean to indicate if element matches" ^ aZnMimeType matches: ZnMimeType imageJpeg ] { #category : #'as yet un...
37,787
https://github.com/sereyn/C_BomberMan/blob/master/source/editor.h
Github Open Source
Open Source
MIT
2,018
C_BomberMan
sereyn
C
Code
104
222
#ifndef EDITOR #define EDITOR #include <MLV/MLV_all.h> #include "objects.h" #include "files.h" #include "bomberman.h" #include "utils.h" #include "inputs.h" typedef struct { int length; /* The full list of items available for the player */ Objects **list; /* The current item the user will paint the map with *...
19,404
https://github.com/mathiasjoseph/MediaBundle/blob/master/Doctrine/MediaManagerInterface.php
Github Open Source
Open Source
MIT
2,017
MediaBundle
mathiasjoseph
PHP
Code
21
90
<?php namespace Miky\Bundle\MediaBundle\Doctrine; use Sonata\CoreBundle\Model\ManagerInterface; use Sonata\CoreBundle\Model\PageableManagerInterface; /** * @deprecated Use Sonata\CoreBundle\Model\ManagerInterface instead */ interface MediaManagerInterface extends ManagerInterface, PageableManagerInterface { }
47,778
https://github.com/qudt/qudt-public-repo/blob/master/vocab/mathematics/VOCAB_QUDT-MATHEMATICS-v2.1.18.ttl
Github Open Source
Open Source
CC-BY-4.0
2,023
qudt-public-repo
qudt
Turtle
Code
784
3,552
# baseURI: http://qudt.org/2.1/vocab/mathematics # imports: http://www.linkedmodel.org/schema/dtype # imports: http://qudt.org/2.1/schema/facade/qudt # imports: http://www.linkedmodel.org/schema/vaem # imports: http://www.w3.org/2004/02/skos/core @prefix dc: <http://purl.org/dc/elements/1.1/> . @prefix dcterms: <http:...
8,679
https://github.com/airwoot/timeline-hack-core/blob/master/cel_tasks.py
Github Open Source
Open Source
MIT
null
timeline-hack-core
airwoot
Python
Code
71
322
from celery import Celery from app.twitter_helpers import TwitterUser import twitter from twitter import TwitterError from random import randint import traceback cel = Celery(broker = 'redis://localhost', backend = 'redis://localhost') CONSUMER_KEY = 'bgEZ37ZUH2HeZ3aAyeh9VEsyb' CONSUMER_SECRET = '9OQqbx5elvBb7eDwfHq4B...
31,558
https://github.com/ManageableIT/VidStreamComp/blob/master/UnityProject/VidStreamComp/Assets/VidStreamComp/Scripts/UI/WebcamStreamUI.cs
Github Open Source
Open Source
MIT
2,022
VidStreamComp
ManageableIT
C#
Code
439
1,470
using System.Text; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace VidStreamComp { [RequireComponent(typeof(WebcamStream))] public class WebcamStreamUI : VideoStreamUI { [Tooltip("Dropdown list for webcam devices")] [SerializeField] private Drop...
41,813
https://github.com/LN-Zap/zap-android/blob/master/app/src/main/java/zapsolutions/zap/customView/LightningFeeView.java
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
zap-android
LN-Zap
Java
Code
110
536
package zapsolutions.zap.customView; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.ProgressBar; import android.widget.TextView; import androidx.constraintlayout.widget.ConstraintLayout; import zapsolutions.zap.R; public class LightningFeeView exten...
41,702
https://github.com/kamekame0712/zenken_transact/blob/master/app/views/front/import/confirm.php
Github Open Source
Open Source
MIT
null
zenken_transact
kamekame0712
PHP
Code
236
1,545
<?php $this->load->view('inc/_head', array('TITLE' => '生徒データ一括登録/' . SITE_NAME)); ?> <body> <?php $this->load->view('inc/header', array('MENU' => TRUE)); ?> <div class="container"> <div class="header-link"> <a href="<?= site_url('top') ?>">トップページへ</a> </div> <h1 class="page-title"> 生徒データ一括登録 確認 </h1>...
13,825
https://github.com/hc27080401/sensingbee/blob/master/examples/deprivation.ipynb
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,018
sensingbee
hc27080401
Jupyter Notebook
Code
3,259
13,171
{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import geopandas as gpd\n", "import fiona" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { ...
3,033
https://github.com/dennisritter/Magic-mirror---Backend/blob/master/app/config/autoload/doctrine-odm.php
Github Open Source
Open Source
Zend-2.0
null
Magic-mirror---Backend
dennisritter
PHP
Code
105
445
<?php return [ 'doctrine' => [ 'connection' => [ 'odm_default' => [ 'server' => 'localhost', 'port' => '27017', 'connectionString' => null, 'user' => 'perna', 'password' => 'spiegelvogelSS2015', 'dbname' => 'perna', 'options' ...
44,640
https://github.com/amosproj/2020ss07-process-miner-xs2a-adapter/blob/master/xs2a-adapter-generated-rest-api/src/main/java/de/adorsys/xs2a/adapter/rest/psd2/model/PaymentInitiationStatusResponseTO.java
Github Open Source
Open Source
Apache-2.0
2,020
2020ss07-process-miner-xs2a-adapter
amosproj
Java
Code
67
227
package de.adorsys.xs2a.adapter.rest.psd2.model; import javax.annotation.Generated; @Generated("xs2a-adapter-codegen") public class PaymentInitiationStatusResponseTO { private String transactionStatus; private Boolean fundsAvailable; private String psuMessage; public String getTransactionStatus() {...
26,588
https://github.com/fog/fog-openstack/blob/master/test/models/identity/ec2_credentials_tests.rb
Github Open Source
Open Source
MIT
2,023
fog-openstack
fog
Ruby
Code
112
553
require "test_helper" describe "Fog::Identity[:openstack] | ec2_credentials" do before do identity = Fog::OpenStack::Identity.new(:openstack_identity_api_version => 'v2.0') tenant_id = identity.list_tenants.body['tenants'].first['id'] @user = identity.users.find { |user| user.name == 'foobar' } @use...
8,302
https://github.com/AAI-USZ/FixJS/blob/master/input/100+/before/b344b37441d395cd18584e9271288345d46db7d9_0_4.js
Github Open Source
Open Source
MIT
2,022
FixJS
AAI-USZ
JavaScript
Code
29
145
function(result) { var notice = result.notice me.trigger("reset"); me.effect("highlight"); // Ask the calendar to update itself update_calendar_block(); $('#scheduled_at').datepicker('setDate', new Date()); $('#schedule_modal_link').text($('#scheduled_at').val()); if(...
11,187
https://github.com/ispyhumanfly/prowler/blob/master/bin/prowler-filter-profiles
Github Open Source
Open Source
MIT
2,018
prowler
ispyhumanfly
Perl
Code
71
243
#!/usr/bin/env perl BEGIN { die "You must set the PROWLER_ROOT envivironment variable." unless exists $ENV{PROWLER_ROOT}; } use 5.018_000; use strict; use warnings; use utf8; no if $] >= 5.018, warnings => "experimental::smartmatch"; no if $] >= 5.018, warnings => "experimental::lexical_subs"; use Mojo::...
16,304
https://github.com/waodng/VSIX/blob/master/WebEssentials2013/WebEssentialsTests/Tests/NodeExecutors/ScssCompilationTests.cs
Github Open Source
Open Source
Apache-2.0
2,022
VSIX
waodng
C#
Code
116
453
using System.IO; using System.Text.RegularExpressions; using System.Threading.Tasks; using FluentAssertions; using MadsKristensen.EditorExtensions.Scss; using MadsKristensen.EditorExtensions.Settings; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace WebEssentialsTests { [TestClass] public class S...
4,111
https://github.com/openharmony-gitee-mirror/ark_js_runtime/blob/master/ecmascript/ecma_module.h
Github Open Source
Open Source
Apache-2.0
2,021
ark_js_runtime
openharmony-gitee-mirror
C
Code
318
1,134
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
7,718
https://github.com/benhunter/ctf/blob/master/htb/fatty-10.10.10.174/fatty-client/org/springframework/aop/config/AbstractInterceptorDrivenBeanDefinitionDecorator.java
Github Open Source
Open Source
MIT
null
ctf
benhunter
Java
Code
469
1,488
/* */ package org.springframework.aop.config; /* */ /* */ import java.util.List; /* */ import org.springframework.aop.framework.ProxyFactoryBean; /* */ import org.springframework.beans.factory.config.BeanDefinition; /* */ import org.springframework.beans.factory.config.BeanDefinitionHolder; /* ...
17,926
https://github.com/dytttf/openget/blob/master/openget/utils/log.py
Github Open Source
Open Source
BSD-3-Clause
2,023
openget
dytttf
Python
Code
218
864
# coding:utf8 import logging import os import sys import platform import tempfile import logging.handlers from better_exceptions import format_exception # TODO support env DEFAULT_LOG_FMT = "[%(threadName)s] [%(asctime)s] [%(levelname)s] [%(filename)s] [%(lineno)d] - %(message)s" def detect_tmp_log_dir() -> str: ...
8,075
https://github.com/mukulrider/ranging_frontend/blob/master/app/containers/RangingNpdImpactPage/tests/reducer.test.js
Github Open Source
Open Source
MIT
null
ranging_frontend
mukulrider
JavaScript
Code
25
85
import { fromJS } from 'immutable'; import rangingNpdImpactPageReducer from '../reducer'; describe('rangingNpdImpactPageReducer', () => { it('returns the initial state', () => { expect(rangingNpdImpactPageReducer(undefined, {})).toEqual(fromJS({})); }); });
30,004
https://github.com/fdescharmes/Felix/blob/master/WinFelix/Manager.hpp
Github Open Source
Open Source
MIT
2,021
Felix
fdescharmes
C++
Code
201
709
#pragma once #include "IInputSource.hpp" #include "IEscape.hpp" #include "WinConfig.hpp" class WinRenderer; class WinAudioOut; class ComLynxWire; class Core; class Monitor; class SymbolSource; class InputFile; class IEncoder; class Manager { public: Manager(); ~Manager(); void update(); void reset(); voi...
20,173
https://github.com/lerwine/FlowDefinitelyTyped/blob/master/flow-types/types/kurento-utils_vx.x.x/flow_v0.25.x-/kurento-utils.js
Github Open Source
Open Source
MIT
2,019
FlowDefinitelyTyped
lerwine
JavaScript
Code
518
984
declare module "kurento-utils" { import type { EventEmitter } from "events"; declare export class WebRtcPeer mixins EventEmitter { /** * Using this property the user can get the peerConnection and use it directly. */ peerConnection: RTCPeerConnection; constructor( mode: "recv" | "send" ...
27,162
https://github.com/Rick82/xamp2/blob/master/src/xamp_base/include/base/unicode.h
Github Open Source
Open Source
MIT
2,019
xamp2
Rick82
C++
Code
43
131
//===================================================================================================================== // Copyright (c) 2018-2019 xamp project. All rights reserved. // More license information, please see LICENSE file in module root folder. //============================================================...
52,735
https://github.com/LinaXu7/wechat-auth-vue/blob/master/src/config/env.development.js
Github Open Source
Open Source
MIT
2,019
wechat-auth-vue
LinaXu7
JavaScript
Code
21
123
// 本地 module.exports = { title: '微信网页授权demo', baseUrl: 'http://localhost:8080', //项目地址 api: { base_api: 'http://api.fat.iwanoutdoor.com:8080/fun-golf-mobile', //接口地址 // common_api: 'https://www.xxx.com/common' //另一个接口地址 } }
52,746
https://github.com/ybx945ybx/xiangxue/blob/master/XiangXueApplication/textdraw/src/main/java/com/example/textdraw/MainActivity.java
Github Open Source
Open Source
Apache-2.0
null
xiangxue
ybx945ybx
Java
Code
48
274
package com.example.textdraw; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentTransaction; import com.example.textdraw.bitmap.BitmapUtils; public class MainActivity extends AppCompatActivity { @Overri...
47,329
https://github.com/wstong999/AliOS-Things/blob/master/components/ucloud_ai/src/model/aliyun-openapi/ocr/src/model/TrimDocumentRequest.cc
Github Open Source
Open Source
Apache-2.0
2,022
AliOS-Things
wstong999
C++
Code
185
521
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * 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...
36,608
https://github.com/ToadsworthLP/ExtraBitManipulation/blob/master/src/main/java/com/phylogeny/extrabitmanipulation/helper/ItemStackHelper.java
Github Open Source
Open Source
Unlicense
2,016
ExtraBitManipulation
ToadsworthLP
Java
Code
96
388
package com.phylogeny.extrabitmanipulation.helper; import io.netty.buffer.ByteBuf; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraftforge.fml.common.network.ByteBufUtils; public class ItemStackHelper { public static void saveStackToNBT(NBTTagCompound nbt, ItemStack ...
16,350
https://github.com/GrabarzUndPartner/nuxt-page-generator-helper/blob/master/example/adapter/local-json/config.js
Github Open Source
Open Source
MIT
2,021
nuxt-page-generator-helper
GrabarzUndPartner
JavaScript
Code
31
101
const { resolve, join } = require('upath') export const LOCALES_PAGES_PATH = resolve(join(process.cwd(), 'example/locales/pages')) export function getLayoutLocaleFile () { return require('../../locales/layout.json') } export function getLocalesContext () { return require.context('../../locales/pages', true, /\.j...
32,590
https://github.com/mola1129/atcoder/blob/master/contest/abc066/A.py
Github Open Source
Open Source
MIT
null
atcoder
mola1129
Python
Code
15
33
a, b, c = map(int, input().split()) print(min(a + b, b + c, c + a))
12,413
https://github.com/UCLA-ECE209AS-2018W/Liang/blob/master/Rachio_apk/sources/com/shinobicontrols/charts/InvalidLicenseException.java
Github Open Source
Open Source
BSD-2-Clause
null
Liang
UCLA-ECE209AS-2018W
Java
Code
22
69
package com.shinobicontrols.charts; public class InvalidLicenseException extends RuntimeException { private static final long serialVersionUID = 719012470763331403L; public InvalidLicenseException(String message) { super(message); } }
46,804
https://github.com/HamidrezaZarrabi/BlessMark/blob/master/utils.py
Github Open Source
Open Source
CC0-1.0
2,022
BlessMark
HamidrezaZarrabi
Python
Code
710
2,096
import h5py import numpy as np from copy import deepcopy # -------- My normalized correlation function def my_nc(watermark_extr, watermark_orig): assert(np.shape(watermark_extr) == np.shape(watermark_orig)) extr = deepcopy(watermark_extr) orig = deepcopy(watermark_orig) height, width = np.shape(orig) ...
19,573
https://github.com/kdaigle95/Trucking-Company-Management-System/blob/master/web/JavaScript/Date.js
Github Open Source
Open Source
MIT
2,018
Trucking-Company-Management-System
kdaigle95
JavaScript
Code
13
35
/* * Andrea 11/11/2018 */ var d = new Date(); document.getElementById("date").innerHTML = d;
49,673
https://github.com/qianjigui/SUMusic/blob/master/SUMusic/Expand/SSSJson/NSObject+SSS.m
Github Open Source
Open Source
MIT
2,018
SUMusic
qianjigui
Objective-C
Code
494
2,027
// // NSObject+SSS.m // SSSJsonModel // // Created by KevinSu on 15/12/16. // Copyright © 2015年 SuXiaoMing. All rights reserved. // #import "NSObject+SSS.h" #import <objc/runtime.h> #define SuppressPerformSelectorLeakWarning(Stuff) \ do { \ _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-W...
22,791
https://github.com/jmmshn/LeetCode.jl/blob/master/src/unresolved/698.partition-to-k-equal-sum-subsets.jl
Github Open Source
Open Source
MIT
2,022
LeetCode.jl
jmmshn
Julia
Code
151
320
# --- # title: 698. Partition to K Equal Sum Subsets # id: problem698 # author: Tian Jun # date: 2020-10-31 # difficulty: Medium # categories: Dynamic Programming, Recursion # link: <https://leetcode.com/problems/partition-to-k-equal-sum-subsets/description/> # hidden: true # --- # # Given an array of integers `nums` ...
27,123
https://github.com/qiangyt/loggen/blob/master/pkg/formator/bunyan/bunyan_formator.go
Github Open Source
Open Source
MIT
null
loggen
qiangyt
Go
Code
140
530
package bunyan import ( "encoding/json" "fmt" "github.com/qiangyt/loggen/pkg/config" "github.com/qiangyt/loggen/pkg/formator" ) const ( LevelTrace uint32 = 10 LevelDebug uint32 = 20 LevelInfo uint32 = 30 LevelWarn uint32 = 40 LevelError uint32 = 50 LevelFatal uint32 = 60 ) const ( TIMESTAMP_LAYOUT = "2...
37,801
https://github.com/msand/arangodb/blob/master/arangod/Indexes/SkiplistIndex2.h
Github Open Source
Open Source
Apache-2.0, GPL-1.0-or-later, ICU, BSD-3-Clause, MIT
2,015
arangodb
msand
C++
Code
440
1,159
//////////////////////////////////////////////////////////////////////////////// /// @brief skiplist index /// /// @file /// /// DISCLAIMER /// /// Copyright 2014 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"...
18,903
https://github.com/jart/cosmopolitan/blob/master/libc/sysv/consts/PTRACE_GETSIGINFO.S
Github Open Source
Open Source
ISC
2,023
cosmopolitan
jart
null
Spoken
4
58
#include "libc/sysv/consts/syscon.internal.h" .syscon ptrace,PTRACE_GETSIGINFO,0x4202,0x4202,-1,-1,-1,-1,-1,-1
6,998
https://github.com/hyunJIN7/ARKit-Data-Logger/blob/master/ARKit-Data-Logger/Controller/ViewController.swift
Github Open Source
Open Source
MIT
2,022
ARKit-Data-Logger
hyunJIN7
Swift
Code
1,315
4,283
// // ViewController.swift // ARKit-Data-Logger // // Created by kimpyojin on 04/06/2019. // Copyright © 2019 Pyojin Kim. All rights reserved. // import UIKit import SceneKit import ARKit import os.log import Accelerate class ViewController: UIViewController, ARSCNViewDelegate, ARSessionDelegate { // ce...
38,929
https://github.com/binkley/basilisk/blob/master/basilisk-service/src/main/java/hm/binkley/basilisk/x/near/store/NearRecord.java
Github Open Source
Open Source
Unlicense
2,019
basilisk
binkley
Java
Code
105
343
package hm.binkley.basilisk.x.near.store; import lombok.EqualsAndHashCode; import lombok.ToString; import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Transient; import org.springframework.data.relational.core.mapping.Table; import javax.validation.constraints.NotNull; import st...
14,745
https://github.com/mjsabby/LLVMSharp/blob/master/sources/LLVMSharp/Values/Users/Instructions/CallInst.cs
Github Open Source
Open Source
MIT, LLVM-exception, Apache-2.0, NCSA, LicenseRef-scancode-unknown-license-reference
2,021
LLVMSharp
mjsabby
C#
Code
68
160
// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. using LLVMSharp.Interop; namespace LLVMSharp { public class CallInst : CallBase { private protected CallInst(LLVMValueRef handle) : ...
23,614
https://github.com/art-grig/Reinforced.Lattice/blob/master/Reinforced.Lattice.DebugSink/Models/Tutorial/Filtering.cs
Github Open Source
Open Source
MIT
2,017
Reinforced.Lattice
art-grig
C#
Code
270
890
using System; using System.Web.Mvc.Html; using Reinforced.Lattice.Configuration; using Reinforced.Lattice.Filters; using Reinforced.Lattice.Filters.Multi; using Reinforced.Lattice.Filters.Range; using Reinforced.Lattice.Filters.Select; using Reinforced.Lattice.Filters.Value; using Reinforced.Lattice.Mvc; namespace Re...
13,958
https://github.com/mike-box/OS1/blob/master/threads/Boat.java
Github Open Source
Open Source
MIT-Modern-Variant
2,017
OS1
mike-box
Java
Code
733
2,240
package nachos.threads; import nachos.ag.BoatGrader; public class Boat { static BoatGrader bg; static int numChildA, numAdultA, numChildAToSee, numAdultAToSee, numChildBToSee, numAdultBToSee; static int boatSide, gameover = 0; //boatSide 0: A, 1: B ,2:in Use final static Lock lock = new Lock();//l...
40,733
https://github.com/ttcctt/GAME/blob/master/source/Core/Constants.hpp
Github Open Source
Open Source
Unlicense
2,022
GAME
ttcctt
C++
Code
90
331
#pragma once #include <Core/Root.hpp> namespace Core { // enums //------------------------------------------------------------------------- enum Bitness { BITNESS_32, BITNESS_64, BITNESS_COUNT, BITNESS_UNKNOWN, }; enum OsVersion { OSVERSION_UNKNOWN, ...
40,698
https://github.com/yishn/Trail-old/blob/master/Trail/Actions/DirectoryDeleteAction.cs
Github Open Source
Open Source
MIT, CC-BY-3.0, LicenseRef-scancode-unknown-license-reference
2,016
Trail-old
yishn
C#
Code
133
401
using Microsoft.VisualBasic.FileIO; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using Trail.DataTypes; using Trail.Templates; namespace Trail.Actions { public class DirectoryDeleteAction : ItemsAction ...
51,185
https://github.com/landerqi/learningTest/blob/master/python/test/mc2.py
Github Open Source
Open Source
MIT
null
learningTest
landerqi
Python
Code
80
243
import random import time n=1000000 k=0 startT1 = time.process_time() for i in range(n): x=random.uniform(0,1) y=random.uniform(0,1) if y<x**2: k=k+1 entT1 = time.process_time() print (float(k)/float(n)) print ('Time1:{0}'.format(entT1 - startT1)) startT2 = time.process_time() repeatNum = 10000000...
28,425
https://github.com/takuyatechexpert/imageposttest/blob/master/resources/views/edit.blade.php
Github Open Source
Open Source
MIT
null
imageposttest
takuyatechexpert
PHP
Code
63
284
@extends('layouts.app') @section('content') <main class="admin__main container"> <div class="admin__main__title"> New Post </div> @if (session('success')) <div class="alert alert-success"> {{ session('success') }} </div> @endif @if ($errors->any()) <div class="alert ale...
48,454
https://github.com/ajhamaal/fonos/blob/master/mods/core/src/resources/types.ts
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,021
fonos
ajhamaal
TypeScript
Code
57
161
import {Kind} from "../common/resource_builder"; export interface GetResourceRequest { ref: string; kind: Kind; accessKeyId: string; } export interface DeleteResourceRequest { ref: string; kind: Kind; accessKeyId: string; } export interface ListResourceRequest { accessKeyId: string; kind: Kind; pag...
6,875
https://github.com/pblxptr/hhctrl-mgmt/blob/master/src/mgmt/board_ctrl/board_ctrl_client.hpp
Github Open Source
Open Source
MIT
null
hhctrl-mgmt
pblxptr
C++
Code
32
186
#pragma once #include <boost/asio/io_context.hpp> #include <boost/asio/awaitable.hpp> #include <icon/client/basic_client.hpp> #include <mgmt/board_ctrl/board_info.hpp> namespace mgmt::board_ctrl { class BoardControlClient : private icon::BasicClient { public: BoardControlClient(boost::asio::io_context&, zmq::...
52,149
https://github.com/dbframework/cppodsreport/blob/master/include/cppodsreportcore.h
Github Open Source
Open Source
MIT
2,021
cppodsreport
dbframework
C
Code
1,009
2,104
/* Copyright (c) 2019 Sidorov Dmitry 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, publish, distribute, ...
14,732