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/Aperture-Finance/wormhole/blob/master/relayer/spy_relayer/src/relayer/evm.ts | Github Open Source | Open Source | Apache-2.0 | null | wormhole | Aperture-Finance | TypeScript | Code | 313 | 992 | import {
CHAIN_ID_POLYGON,
getIsTransferCompletedEth,
hexToUint8Array,
redeemOnEth,
redeemOnEthNative,
} from "@certusone/wormhole-sdk";
import { Signer } from "@ethersproject/abstract-signer";
import { ethers } from "ethers";
import { ChainConfigInfo } from "../configureEnv";
import { getScopedLogger, Scoped... | 16,504 |
https://github.com/cerst/structible/blob/master/core/src/test/scala/com/github/cerst/structible/core/constraint/instances/DurationConstraintsSpec.scala | Github Open Source | Open Source | MIT | 2,019 | structible | cerst | Scala | Code | 678 | 1,793 | /*
* Copyright (c) 2018 Constantin Gerstberger
*
* 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, mer... | 4,171 |
https://github.com/mrc-ide/reactidd/blob/master/R/shedding_get_params.R | Github Open Source | Open Source | CC0-1.0 | 2,023 | reactidd | mrc-ide | R | Code | 160 | 609 | # Save this file as `R/stan_p_spline.R`
#' Bayesian p-spline model using stan
#'
#' @export
#' @param mod an object of class `rstan::sampling` from exponenital models fit to shedding data
#' @param label row label for this model
#' @return A data.frame row with all quantities of interest + 95% credible intervals
#'
... | 6,917 |
https://github.com/kuzdu/Android-Bottom-sheet-for-iOS/blob/master/MasterProject/AnimatorViewController.swift | Github Open Source | Open Source | MIT | null | Android-Bottom-sheet-for-iOS | kuzdu | Swift | Code | 1,189 | 4,007 | //
// CategoryFilterViewController.swift
// CocoSoftIOSBaseApp
//
// Created by Michael Rothkegel on 24.03.17.
// Copyright © 2017 Invers GmbH. All rights reserved.
//
import UIKit
class AnimatorViewController: UIViewController {
var testVar:CGFloat = 0
var contentView:UIView!
var animatorTa... | 20,992 |
https://github.com/Seance-Finance/seance-api/blob/master/src/api/stats/gov/getEarnings.js | Github Open Source | Open Source | MIT | 2,021 | seance-api | Seance-Finance | JavaScript | Code | 94 | 235 | const { getDailyEarnings } = require('../../../utils/getDailyEarnings');
const { getRewardsReceived } = require('../../../utils/getRewardsReceived');
const INIT_DELAY = 2 * 60 * 1000;
const INTERVAL = 60 * 60 * 1000;
let earned = {};
const updateEarnings = async () => {
console.log('> updating earnings');
// ... | 28,130 |
https://github.com/ifge-token/Waves/blob/master/node/src/main/scala/com/wavesplatform/api/http/requests/ScriptWithImportsRequest.scala | Github Open Source | Open Source | MIT | 2,022 | Waves | ifge-token | Scala | Code | 33 | 132 | package com.wavesplatform.api.http.requests
import play.api.libs.json.{Json, Reads, Writes}
object ScriptWithImportsRequest {
implicit val reads: Reads[ScriptWithImportsRequest] = Json.reads[ScriptWithImportsRequest]
implicit val writes: Writes[ScriptWithImportsRequest] = Json.writes[ScriptWithImportsRequest]
}... | 26,848 |
https://github.com/Ajudiya13/try/blob/master/node_modules/@build-tracker/app/dist/server/Comparison.js | Github Open Source | Open Source | MIT | 2,019 | try | Ajudiya13 | JavaScript | Code | 4,549 | 14,765 | exports.ids = [0];
exports.modules = {
/***/ 148:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
// EXTERNAL MODULE: ./src/theme.ts
var theme = __webpack_require__(2);
// EXTERNAL MODULE: ./src/components/Button.tsx
var Button = __webpac... | 50,164 |
https://github.com/webclinic017/RustGeneticAlgorithm/blob/master/genetic_algorithm/src/mutation/neural_mutation/add_node.rs | Github Open Source | Open Source | MIT | 2,020 | RustGeneticAlgorithm | webclinic017 | Rust | Code | 475 | 1,954 | use crate::genome::fitness_function::FitnessFunction;
use crate::genome::population::{Individual, Population};
use crate::mutation::genome_mutation::Mutate;
use crate::neural_network::neural_network::NeuralNetwork;
use rand::rngs::StdRng;
use rand::{Rng, SeedableRng};
use serde::Deserialize;
// A node with a new hidde... | 31,128 |
https://github.com/SimonFighter/gomoku/blob/master/src/store.js | Github Open Source | Open Source | MIT | 2,019 | gomoku | SimonFighter | JavaScript | Code | 81 | 252 | import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
username: "",
gid: ""
},
mutations: {
setUsername(state, username) {
state.username = username
},
resetUsername(state) {
state.username = ""
},
setGid(state, gid) {
... | 36,228 |
https://github.com/mikhailchuryakov/tofu/blob/master/optics/core/src/main/scala/tofu/optics/Upcast.scala | Github Open Source | Open Source | Apache-2.0 | null | tofu | mikhailchuryakov | Scala | Code | 247 | 760 | package tofu.optics
import alleycats.Pure
import cats.{Functor, Id}
import tofu.compat.unused212
import tofu.optics.classes.PChoice
import tofu.optics.data._
trait PUpcast[-S, +T, +A, -B] extends PBase[PUpcast, S, T, A, B] {
def upcast(b: B): T
}
object Upcast extends MonoOpticCompanion(PUpcast)
object PUpcast ex... | 28,884 |
https://github.com/ProjectFRIDAY/Plan-Dial/blob/master/app/src/main/java/com/friday/plandial/DialSettingViewModel.java | Github Open Source | Open Source | MIT | 2,022 | Plan-Dial | ProjectFRIDAY | Java | Code | 278 | 1,183 | package com.friday.plandial;
import android.app.Activity;
import android.app.AlertDialog;
import android.os.Build;
import android.widget.EditText;
import android.widget.TextView;
import androidx.annotation.RequiresApi;
import com.friday.plandial.db.WorkDatabase;
import com.friday.plandial.policy.BasicDialValidator;
... | 2,010 |
https://github.com/dmanning23/CryptoJets/blob/master/contracts/CryptoJetMint.sol | Github Open Source | Open Source | MIT | null | CryptoJets | dmanning23 | Solidity | Code | 226 | 690 | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "contracts/CryptoJetFactory.sol";
contract CryptoJetMint is CryptoJetFactory {
//The current number of Gen0 CryptoJets
uint256 numGen0CryptoJets;
//The total number of allowed Gen0 CryptoJets
uint256 maxNumGen0CryptoJets;
... | 35,875 |
https://github.com/Vipamp/Alink/blob/master/core/src/main/java/com/alibaba/alink/operator/stream/dataproc/format/VectorToJsonStreamOp.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | Alink | Vipamp | Java | Code | 31 | 187 |
package com.alibaba.alink.operator.stream.dataproc.format;
import com.alibaba.alink.operator.common.dataproc.format.FormatType;
import com.alibaba.alink.params.dataproc.format.VectorToJsonParams;
import org.apache.flink.ml.api.misc.param.Params;
public class VectorToJsonStreamOp extends BaseFormatTransStreamOp<Vecto... | 23,216 |
https://github.com/dgatto/LipiDex/blob/master/src/spectrum_searcher/LibrarySpectrum.java | Github Open Source | Open Source | MIT | 2,021 | LipiDex | dgatto | Java | Code | 571 | 1,975 | package spectrum_searcher;
import java.util.ArrayList;
import java.util.Collections;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import lib_gen.TransitionType;
public class LibrarySpectrum implements Comparable<LibrarySpectrum>
{
Double precursor; //Mass of lipid
String polarity; //Po... | 25,563 |
https://github.com/SysBioChalmers/Yeast-Species-GEMs/blob/master/Reconstruction_script/data/substrate_bacteria_HGT.tsv | Github Open Source | Open Source | MIT | 2,022 | Yeast-Species-GEMs | SysBioChalmers | TSV | Code | 105 | 827 | ortholog gene id sequence id of outgroup best hit
OG1022 Candida_versatilis@Seq_1988 Proteobact
OG1016 Starmerella_bombicola_JCM9596@Seq_755 Proteobact
OG1016 Wickerhamiella_domercqiae@Seq_3942 Proteobact
OG1016 Candida_apicola@Seq_4299 Proteobact
OG1016 Candida_infanticola@Seq_3032 Firmicutes
OG1016 Candida_infanticol... | 44,133 |
https://github.com/RimWorld-zh/RimWorld-Database/blob/master/languages/en/Terrain/MarshyTerrain.ts | Github Open Source | Open Source | MIT | 2,018 | RimWorld-Database | RimWorld-zh | TypeScript | Code | 16 | 52 | const MarshyTerrain: LangTerrain = {
label: 'marshy soil',
description: null,
defName: 'MarshyTerrain'
}
export default MarshyTerrain;
| 6,156 |
https://github.com/lueans/LueansRead/blob/master/app/src/main/java/cn/lueans/lueansread/retrofitserver/SoServer.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | LueansRead | lueans | Java | Code | 73 | 334 | package cn.lueans.lueansread.retrofitserver;
import cn.lueans.lueansread.entity.SOListBean;
import cn.lueans.lueansread.entity.SoDetailBean;
import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;
/**
* Created by 24277 on 2017/2/23.
*/
public interface SoServer {
// 获取一个类型的图片列表
@GET... | 18,925 |
https://github.com/charithe/kafka-junit/blob/master/src/test/java/com/github/charithe/kafka/KafkaJunitRuleTest.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | kafka-junit | charithe | Java | Code | 314 | 1,231 | /*
* Copyright 2016 Charith Ellawala
*
* 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 agree... | 33,476 |
https://github.com/JValck/Fos/blob/master/Fos/Models/DinnerTableClient.cs | Github Open Source | Open Source | MIT | null | Fos | JValck | C# | Code | 69 | 160 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Fos.Models
{
public class DinnerTableClient
{
public DinnerTableClient()
{
CreatedOn = DateTime.Now;
IsCurrent = true;
}
public Guid DinnerTableId... | 27,078 |
https://github.com/andadiana/sd-theatre-app/blob/master/TheatreApp/src/main/java/business/service/CashierService.java | Github Open Source | Open Source | MIT | null | sd-theatre-app | andadiana | Java | Code | 34 | 102 | package business.service;
import business.model.User;
import java.util.List;
public interface CashierService {
public int createCashier(User user);
public List<User> findallCashiers();
public User getById(int id);
public boolean updateUsername(User user);
public boolean updatePassword(User user)... | 11,695 |
https://github.com/FriendsOfREDAXO/export_cleanup/blob/master/lib/cronjob.php | Github Open Source | Open Source | MIT | 2,019 | export_cleanup | FriendsOfREDAXO | PHP | Code | 616 | 3,044 | <?php
/**
* @package redaxo\export_cleanup
*/
class rex_cronjob_export_cleanup extends rex_cronjob
{
private function datediffCalc($dateA, $dateB = 0)
{
if ($dateA > $dateB) {
$dateA ^= $dateB ^= $dateA ^= $dateB;
}
$refTimeA_d = date('d', $dateA);
$refTimeA_m = date('m', ... | 52,254 |
https://github.com/Brinsky/shadow/blob/master/src/main/java/shadow/typecheck/type/AttributeInvocation.java | Github Open Source | Open Source | Apache-2.0, NCSA | 2,021 | shadow | Brinsky | Java | Code | 372 | 1,086 | package shadow.typecheck.type;
import shadow.interpreter.ShadowValue;
import shadow.parse.ShadowParser;
import shadow.parse.ShadowParser.AttributeInvocationContext;
import shadow.typecheck.ErrorReporter;
import shadow.typecheck.TypeCheckException.Error;
import java.util.*;
import java.util.stream.Collectors;
/**
* ... | 27,369 |
https://github.com/koyyo/RapidReact/blob/master/src/main/java/frc/robot/CM.java | Github Open Source | Open Source | BSD-3-Clause | null | RapidReact | koyyo | Java | Code | 164 | 451 | package frc.robot;
public class CM {
//Axes
static int L_X_Axis = 0;
static int L_Y_Axis = 1;
static int L_Trigger = 2;
static int R_Trigger = 3;
static int R_X_Axis = 4;
static int R_Y_Axis = 5;
//Buttons
static int A = 1;
static int B = 2;
static int X = 3;
... | 31,315 |
https://github.com/hayoi/Photo/blob/master/lib/redux/user/user_reducer.dart | Github Open Source | Open Source | MIT | 2,020 | Photo | hayoi | Dart | Code | 122 | 529 | import 'package:redux/redux.dart';
import 'package:photo/redux/user/user_actions.dart';
import 'package:photo/redux/user/user_state.dart';
final userReducer = combineReducers<UserState>([
TypedReducer<UserState, UserStatusAction>(_userStatus),
TypedReducer<UserState, SyncUsersAction>(_syncUsers),
TypedReducer<Us... | 22,309 |
https://github.com/decomp/testdata/blob/master/results/sqlite/run/shell_graphs/vdbeSorterListToPMA.dot | Github Open Source | Open Source | Unlicense, LicenseRef-scancode-public-domain | 2,019 | testdata | decomp | Graphviz (DOT) | Code | 135 | 400 | strict digraph "vdbeSorterListToPMA" {
// Node definitions.
2 [entry=true];
21;
27;
30;
46;
49;
53;
56;
117;
81;
84;
109;
103;
106;
107;
// Edge definitions.
2 -> 21 [
color=darkgreen
cond=true
];
2 -> 27 [
color=red
cond=false
];
21 -> 27;
27 -> 30 [
color=darkgreen
cond=true
];
2... | 28,944 |
https://github.com/EdiaEducationTechnology/nakamura/blob/master/bundles/docproxy/src/test/java/org/sakaiproject/nakamura/docproxy/SearchServletTest.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | nakamura | EdiaEducationTechnology | Java | Code | 341 | 1,175 | /**
* Licensed to the Sakai Foundation (SF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The SF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | 13,923 |
https://github.com/alexdthomas/pangaear/blob/master/R/pg_list_identifiers.R | Github Open Source | Open Source | MIT, CC-BY-4.0, CC-BY-3.0 | 2,014 | pangaear | alexdthomas | R | Code | 98 | 426 | #' List identifiers of the Pangaea repository
#'
#' @export
#' @importFrom httr GET content stop_for_status
#' @inheritParams pg_list_records
#'
#' @examples \donttest{
#' pg_list_identifiers(from='2012-01-01', until='2012-01-05')
#' pg_list_identifiers(from='2013-10-01', until='2013-10-05')
#' pg_list_identifiers(from... | 7,555 |
https://github.com/ghsecuritylab/android_platform_sony_nicki/blob/master/external/webkit/Tools/DumpRenderTree/ForwardingHeaders/wtf/HashSet.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | android_platform_sony_nicki | ghsecuritylab | C | Code | 2 | 14 | #include <JavaScriptCore/HashSet.h>
| 11,661 |
https://github.com/ilgoncalves/TemplateTs/blob/master/src/components/pages/Main/styles.ts | Github Open Source | Open Source | MIT | 2,020 | TemplateTs | ilgoncalves | TypeScript | Code | 49 | 156 | import { StyleSheet } from 'react-native';
import { RFValue } from 'react-native-responsive-fontsize';
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
paddingHorizontal: 12,
backgroundColor: '#FFF'
},
welcomeTitle: {
fontFamily: 'Roboto',
fontSize: RFValue(2... | 40,777 |
https://github.com/CaterpillarEffect/autopilot/blob/master/packages/autopilot/src/app/viewports/bundles/header.vue | Github Open Source | Open Source | Apache-2.0 | 2,021 | autopilot | CaterpillarEffect | Vue | Code | 111 | 404 | <template>
<div class="header">
<select class="input input--inverse stretch"
v-model="bundles.bundleIndex">
<option v-for="(bundle, i) of bundles.bundles"
:value="i">
{{ bundle.excluded ? '[private]' : '' }} {{ bundle.name }}
</option>
... | 728 |
https://github.com/hellotomfan/datapipe/blob/master/datasource.js | Github Open Source | Open Source | MIT | null | datapipe | hellotomfan | JavaScript | Code | 802 | 2,794 | let fs = require("fs");
let path = require("path");
let Schema = require("./schema");
let Utils = require("./utils");
let glob = require("glob");
class DataSource {
#settings;
#indexes;
#data;
#file;
constructor(baseDir, settings) {
this.#settings = settings;
this.#indexes = {};
... | 10,788 |
https://github.com/CyberFlameGO/arpc/blob/master/extension/middleware/coder/config.go | Github Open Source | Open Source | MIT | 2,021 | arpc | CyberFlameGO | Go | Code | 17 | 47 | package coder
const (
// FlagBitOpenTracing .
FlagBitOpenTracing = 0
// FlagBitGZip .
FlagBitGZip = 7
)
| 34,886 |
https://github.com/pedrooaugusto/steganography-png/blob/master/chunk/entry.go | Github Open Source | Open Source | MIT | 2,022 | steganography-png | pedrooaugusto | Go | Code | 464 | 1,216 | package chunk
import (
"bytes"
"encoding/binary"
"fmt"
"hash/crc32"
)
// Chunk represents one of the many chunks of a png file
type Chunk struct {
id int // chunk index
dataSize []byte // 4 bytes - data field size
tipo []byte // 4 bytes - [a-Z] letters only (chunk type)
Data []byte // $dataSi... | 14,018 |
https://github.com/ryanpaixao/ryanpaixao.com-source/blob/master/src/scss/skills.scss | Github Open Source | Open Source | MIT | 2,018 | ryanpaixao.com-source | ryanpaixao | SCSS | Code | 122 | 428 | @import "_config.scss";
.skills-content {
margin: 60px 15px 80px 15px;
grid-row: 2 / -2;
grid-column: 3 / 11;
@media (max-width: 767px) {
grid-column: 1 / -1;
}
display: grid;
grid-gap: 15px;
grid-template-columns: 1;
grid-template-rows: auto auto;
.skills-header-title {
grid-column: 1 /... | 43,680 |
https://github.com/jakub-zwolakowski/tsduck/blob/master/src/libtsduck/dtv/descriptors/tsHybridInformationDescriptor.cpp | Github Open Source | Open Source | BSD-2-Clause | null | tsduck | jakub-zwolakowski | C++ | Code | 777 | 2,140 | //----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2020, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | 38,739 |
https://github.com/HackBrexit/ExitGap/blob/master/src/styles/_bootstrap_pre_variables.scss | Github Open Source | Open Source | MIT | null | ExitGap | HackBrexit | SCSS | Code | 48 | 141 | // Customize Bootstrap variables that get imported before the original Bootstrap variables.
// Thus, derived Bootstrap variables can depend on values from here.
// See the Bootstrap _variables.scss file for examples of derived Bootstrap variables.
//
// Defaults here: https://github.com/twbs/bootstrap-sass/blob/master/... | 16,345 |
https://github.com/jmhDevOdin/SDL-Exporter/blob/master/GPMeshExporter/Source/GPMeshExporter/Public/StaticMeshExporterGP.h | Github Open Source | Open Source | MIT | 2,022 | SDL-Exporter | jmhDevOdin | C | Code | 58 | 190 | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
//=============================================================================
// StaticMeshExporterOBJ
//=============================================================================
#pragma once
#include "Exporters/Exporter.h"
#include "StaticMeshExporte... | 22,139 |
https://github.com/SuxPorT/node-js-express/blob/master/orm-sequelize/api/index.js | Github Open Source | Open Source | MIT | null | node-js-express | SuxPorT | JavaScript | Code | 31 | 77 | const express = require("express");
const routes = require("./routes");
const app = express();
const port = 3000;
routes(app);
app.listen(port, () => {
console.log(`Servidor está rodando na porta ${port}`);
});
module.exports = app;
| 433 |
https://github.com/alcomen/Attitude_Control_GITHUB/blob/master/motor.ino | Github Open Source | Open Source | Apache-2.0 | null | Attitude_Control_GITHUB | alcomen | null | Spoken | 416 | 1,758 | /**
* \brief Initialize motors.
*/
void Init_Motors(void) // Menor número, rampa mais suave
{
Serial1.println("1AC100");
delay(200);
Serial1.println("1DEC100");
delay(200);
Serial1.println("2AC100");
delay(200);
Serial1.println("2DEC100");
delay(200);
Serial1.println("3AC100");
delay(200);
Ser... | 15,517 |
https://github.com/EduCaaS/UI/blob/master/app/models/loadbalancerservice.js | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,017 | UI | EduCaaS | JavaScript | Code | 390 | 1,416 | import Service from 'ui/models/service';
import Ember from 'ember';
import C from 'ui/utils/constants';
import Util from 'ui/utils/util';
import { parsePortSpec } from 'ui/utils/parse-port';
const esc = Ember.Handlebars.Utils.escapeExpression;
function portToStr(spec) {
var parts = parsePortSpec(spec);
return par... | 9,312 |
https://github.com/hustvl/MapTR/blob/master/projects/mmdet3d_plugin/maptr/modules/encoder.py | Github Open Source | Open Source | MIT | 2,023 | MapTR | hustvl | Python | Code | 1,005 | 4,105 | import torch
import numpy as np
from mmcv.runner.base_module import BaseModule, ModuleList, Sequential
import torch.nn as nn
from mmcv.cnn.bricks.registry import (ATTENTION,
TRANSFORMER_LAYER,
TRANSFORMER_LAYER_SEQUENCE)
from mmdet3d.ops import... | 14,063 |
https://github.com/khubaibahmad69/Playwright-Test/blob/master/examples/vscode-03.js | Github Open Source | Open Source | BSD-3-Clause | null | Playwright-Test | khubaibahmad69 | JavaScript | Code | 127 | 475 | const { firefox } = require("playwright");
/*
* Search for "store"
* Select a couple of results
*/
(async () => {
const browser = await firefox.launch({
headless:false
});
const context = await browser.newContext();
const page = await context.newPage();
await page.goto("https://vscode-web-test-pla... | 34,880 |
https://github.com/silentorb/ground_js/blob/master/lib/core/require.js | Github Open Source | Open Source | MIT | null | ground_js | silentorb | JavaScript | Code | 16 | 43 | /**
* User: Chris Johnson
* Date: 9/20/13
*/
//declare function require(name: string): any;
//# sourceMappingURL=require.js.map | 26,089 |
https://github.com/EgaBudimanItera/vivi_piutang/blob/master/application/views/penjualan/detailtemp.php | Github Open Source | Open Source | MIT | null | vivi_piutang | EgaBudimanItera | PHP | Code | 107 | 689 | <div id="info-alert1">
<?=@$this->session->flashdata('msg')?>
</div>
<table id="dataTables1" class="data-table table table-bordered table-striped" >
<thead>
<tr>
<th class="col-md-1">No</th>
<th class="col-md-1">Kode Barang</th>
<th class="col-md-2">Nama Barang</th>
<th class="col-md-2">Juml... | 45,763 |
https://github.com/eaglebk/flutter-chart/blob/master/charts_common/lib/src/chart/cartesian/axis/time/second_time_stepper.dart | Github Open Source | Open Source | Apache-2.0 | null | flutter-chart | eaglebk | Dart | Code | 275 | 730 | // Copyright 2018 the Charts project authors. Please see the AUTHORS file
// for details.
//
// 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
... | 25,123 |
https://github.com/yunnexdotcom/apollo/blob/master/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/github/GithubUserInfoHolder.java | Github Open Source | Open Source | Apache-2.0 | null | apollo | yunnexdotcom | Java | Code | 40 | 187 | package com.ctrip.framework.apollo.portal.spi.github;
import org.jasig.cas.client.util.AssertionHolder;
import org.springframework.stereotype.Service;
import com.ctrip.framework.apollo.portal.entity.bo.UserInfo;
import com.ctrip.framework.apollo.portal.spi.UserInfoHolder;
/**
* @author Ternence
* @date 2017年6月15日
... | 10,803 |
https://github.com/powertac/powertac-server/blob/master/visualizer2/src/main/java/org/powertac/visualizer/web/IndexResource.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | powertac-server | powertac | Java | Code | 88 | 437 | package org.powertac.visualizer.web;
import com.codahale.metrics.annotation.Timed;
import org.apache.commons.lang3.StringUtils;
import org.powertac.visualizer.domain.PersistentToken;
import org.powertac.visualizer.repository.PersistentTokenRepository;
import org.powertac.visualizer.repository.UserRepository;
import or... | 14,930 |
https://github.com/dicky2431/istem-informasi-gym/blob/master/app/views/member/pilih_produk.php | Github Open Source | Open Source | MIT | null | istem-informasi-gym | dicky2431 | PHP | Code | 168 | 781 | <div class="container-fluid">
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<div class="card-title">
<h5>Pilih Produk</h5>
</div>
<div class="sparkline10-list">
<div class="form-group text-center">
... | 44,365 |
https://github.com/JackZhouSz/stira/blob/master/stira/imagetools/interpolation/Interpolator.h | Github Open Source | Open Source | MIT | 2,017 | stira | JackZhouSz | C++ | Code | 154 | 372 |
/***********************************************************************************
* Copyright (C) 2009 by Filip Rooms *
* *
* Terms and conditions for using this software in any form are... | 36,661 |
https://github.com/gianafrancisco/tesis-mechi/blob/master/src/main/resources/static/js/app/asignacionApp.js | Github Open Source | Open Source | MIT | 2,016 | tesis-mechi | gianafrancisco | JavaScript | Code | 305 | 1,125 | //angular.module('BebidaApp', [])
// .controller('RegistrarBebidaCtrl',RegistrarBebidaCtrl );
function AsignacionCtrl($scope, $http, $log) {
$scope.messajes = {
agregar: "La bebida ha sido creada correctamente.",
modificar: "La bebida ha sido modificada correctamente."
};
$scope.me... | 16,817 |
https://github.com/imam/sppd/blob/master/resources/views/dppa/program/index.blade.php | Github Open Source | Open Source | MIT | 2,017 | sppd | imam | Blade | Code | 94 | 574 | @extends('layouts.app')
@section('content')
<div id="root">
<div class="clearfix">
<div class="pull-xs-left">
<h2>program</h2>
</div>
<div class="pull-xs-right m-t-30">
<a href="/dppa/program/create" class="btn btn-primary ">tambah program</a>
<a href... | 6,146 |
https://github.com/buidhui/magento2-practice/blob/master/src/vendor/magento/module-customer/Test/Unit/Controller/Account/ConfirmTest.php | Github Open Source | Open Source | MIT | 2,018 | magento2-practice | buidhui | PHP | Code | 710 | 4,726 | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
namespace Magento\Customer\Test\Unit\Controller\Account;
use Magento\Customer\Controller\Account\Confirm;
use Magento\Customer\Helper\Address;
use Magento\Customer\Model\Url;
use Mage... | 26,607 |
https://github.com/AAI-USZ/FixJS/blob/master/input/100+/before/f49503438846bfa380a9cbff0b0dffdc8416c1ed_7_2.js | Github Open Source | Open Source | MIT | 2,022 | FixJS | AAI-USZ | JavaScript | Code | 76 | 234 | function findProperty(multiname, domain, strict) {
assert (multiname instanceof Multiname);
if (traceScope.value || tracePropertyAccess.value) {
print("scopeFindProperty: " + multiname);
}
assert (this.object);
for (var i = 0, j = multiname.namespaces.length; i < j; i++) {
if (multiname.... | 46,958 |
https://github.com/occut/weiyun/blob/master/AdminApps/Admin/Model/IpjudgeModel.class.php | Github Open Source | Open Source | BSD-2-Clause | null | weiyun | occut | PHP | Code | 217 | 893 | <?php
/**
* Functions: .
* Author: Zhu Jinhao
* Link: http://www.hfyefan.com
* Copyright: HfYefan NetWork Co.,Ltd.
*/
namespace Admin \ Model;
use Think \ Model;
class IpjudgeModel extends Model {
/**
* 添加用户表user信息
*/
public function addUser($user) {
$result = M('user')->add($user);
... | 2,692 |
https://github.com/slimgroup/SegyIO.jl/blob/master/src/methods/ordered_pmap.jl | Github Open Source | Open Source | MIT | 2,023 | SegyIO.jl | slimgroup | Julia | Code | 86 | 293 | export ordered_pmap
function ordered_pmap(pool::WorkerPool, f, list)
pids = pool.workers
np = length(pids)
n = length(list)
results = Vector{Any}(undef,n)
i = 1
nextidx() = (idx=i; i+=1; idx)
@sync begin
for p in pids
if p != myid() || np == 1
@async beg... | 33,712 |
https://github.com/Thesephi/deno/blob/master/cli/js/permissions.ts | Github Open Source | Open Source | MIT | 2,020 | deno | Thesephi | TypeScript | Code | 185 | 513 | // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import * as permissionsOps from "./ops/permissions.ts";
export type PermissionName =
| "read"
| "write"
| "net"
| "env"
| "run"
| "plugin"
| "hrtime";
// NOTE: Keep in sync with cli/permissions.rs
export type PermissionState = "g... | 17,745 |
https://github.com/kobayashirgp/design-patterns-java/blob/master/src/strategy/Imposto.java | Github Open Source | Open Source | MIT | null | design-patterns-java | kobayashirgp | Java | Code | 10 | 29 | package strategy;
public interface Imposto {
double calcula(Orcamento orcamento);
}
| 43,635 |
https://github.com/davidikin45/DigitalNomadDaveAspNetCore3/blob/master/test/DND.IntegrationTests/Data/InMemoryDbTests.cs | Github Open Source | Open Source | MIT | 2,021 | DigitalNomadDaveAspNetCore3 | davidikin45 | C# | Code | 295 | 1,176 | using AspNetCore.Mvc.Extensions.Data.Helpers;
using Autofac.AspNetCore.Extensions;
using Autofac.AspNetCore.Extensions.Data;
using Autofac.AspNetCore.Extensions.Data.IdentificationStrategies;
using DND.Data;
using DND.Data.Initializers;
using DND.Data.Repositories.Blog;
using DND.Data.Repositories.CMS;
using DND.Domain... | 25,810 |
https://github.com/DeMoorJasper/Presentor/blob/master/src/components/elements/List.js | Github Open Source | Open Source | MIT | 2,018 | Presentor | DeMoorJasper | JavaScript | Code | 31 | 90 | import styled from 'styled-components';
export const List = styled.ul`
`;
export const ListItem = styled.li`
font-size: 3rem;
text-transform: uppercase;
list-style-type: none;
margin: 1rem auto;
&:before {
content: "- ";
}
`; | 46,945 |
https://github.com/doug-martin/nestjs-query/blob/master/examples/federation/todo-item-graphql/src/todo-item/dto/todo-item-update.dto.ts | Github Open Source | Open Source | MIT | 2,022 | nestjs-query | doug-martin | TypeScript | Code | 50 | 157 | import { IsString, MaxLength, IsBoolean, IsOptional } from 'class-validator';
import { Field, ID, InputType } from '@nestjs/graphql';
@InputType('TodoItemUpdate')
export class TodoItemUpdateDTO {
@IsOptional()
@IsString()
@MaxLength(20)
@Field({ nullable: true })
title?: string;
@IsOptional()
@IsBoolean... | 51,137 |
https://github.com/chi-rei-den/Silverfish/blob/master/cards/GANGS/CFM/Sim_CFM_808.cs | Github Open Source | Open Source | MIT | 2,020 | Silverfish | chi-rei-den | C# | Code | 71 | 271 |
/* _BEGIN_TEMPLATE_
{
"id": "CFM_808",
"name": [
"“鲨鱼”加佐",
"Genzo, the Shark"
],
"text": [
"每当该随从进行攻击时,双方玩家抽若干数量的牌,直到拥有三张手牌。",
"Whenever this attacks, both players draw until they have 3 cards."
],
"cardClass": "NEUTRAL",
"type": "MINION",
"cost": 4,
"rarity": "LEGENDARY",
"set": "... | 14,396 |
https://github.com/ramesh1703/ramlstyle/blob/master/lib/ramlstyle.rb | Github Open Source | Open Source | Apache-2.0 | 2,017 | ramlstyle | ramesh1703 | Ruby | Code | 71 | 404 | require "erb"
require "redcarpet"
require "raml"
require "ramlstyle/version"
require "ramlstyle/patch/node"
require "ramlstyle/patch/root"
module Ramlstyle
module Command
autoload :CommandChain, 'ramlstyle/command/command_chain'
autoload :DocumentCommand, 'ramlstyle/command/document_command'
autoload :EndChain... | 45,468 |
https://github.com/errir503/jest-decorated/blob/master/packages/core/src/decorators/AutoCleared.ts | Github Open Source | Open Source | MIT | null | jest-decorated | errir503 | TypeScript | Code | 34 | 107 | import { Class } from "@jest-decorated/shared";
import { DescribeRunner } from "../runners";
export function AutoCleared() {
return function AutoClearedDecoratorFn(proto: object, name: string) {
const describeRunner = DescribeRunner.getDescribeRunner(proto.constructor as Class);
describeRunner
... | 24,333 |
https://github.com/dualword/LagEngine/blob/master/LagEngine/src/resources/TextureManager.h | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | LagEngine | dualword | C++ | Code | 124 | 425 | #pragma once
#include "XmlResourceManager.h"
#include "Texture.h"
#include <string>
#include <vector>
namespace Lag {
enum class TextureType : uint8;
struct TextureData;
enum class TextureSemantic : uint8;
enum class TextureFilteringMode : uint8;
enum class TexturewWrappingMode : uint8;
struc... | 54,307 |
https://github.com/duckShooter/adf/blob/master/src/adf/models/User.java | Github Open Source | Open Source | Apache-2.0 | null | adf | duckShooter | Java | Code | 306 | 944 | package adf.models;
import java.io.Serializable;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Timestamp;
import adf.db.DatabaseConnection;
//One-To-Many
public class User implements Serializa... | 48,767 |
https://github.com/ccmeyers-dev/vadwell/blob/master/resources/views/components/pricing-item.blade.php | Github Open Source | Open Source | MIT | null | vadwell | ccmeyers-dev | PHP | Code | 114 | 503 | @props(['plan', 'level', 'min'])
<div class="col-xl-3 col-md-6">
<div class="card plan-box">
<div class="p-4 card-body">
<div class="media">
<div class="media-body">
<h5>{{ $plan }}</h5>
<p class="text-muted">Level {{ $level }}</p>
... | 30,513 |
https://github.com/patroza/matechs-effect/blob/master/packages/fancy/demo/modules/date/views.tsx | Github Open Source | Open Source | MIT | null | matechs-effect | patroza | TypeScript | Code | 153 | 407 | import React from "react";
import { effect as T } from "@matechs/effect";
import * as R from "../../../lib";
import { DateOps, updateDate } from "./def";
import { useInterval } from "../../hooks/useInterval";
import * as M from "mobx";
import { DateStateEnv, dateStateURI } from "./state";
// alpha
/* istanbul ignore f... | 524 |
https://github.com/florianorben/tracker/blob/master/tracker/duration.go | Github Open Source | Open Source | Apache-2.0 | null | tracker | florianorben | Go | Code | 71 | 193 | package tracker
import (
"strconv"
"strings"
"time"
)
type TrackerDuration struct {
time.Duration
}
func (t TrackerDuration) String() string {
h := int(t.Hours())
m := int(t.Minutes()) - h*60
if h == 0 && m == 0 {
return "< 1m"
}
parts := make([]string, 0, 2)
if h > 0 {
parts = append(parts, strconv... | 41,900 |
https://github.com/saidinesh5/30-day-leetcode-challenge-april-2020/blob/master/day30.h | Github Open Source | Open Source | MIT | 2,020 | 30-day-leetcode-challenge-april-2020 | saidinesh5 | C | Code | 397 | 869 | #pragma once
/*
Given a binary tree where each path going from the root to any leaf form a valid sequence, check if a given string is a valid sequence in such binary tree.
We get the given string from the concatenation of an array of integers arr and the concatenation of all values of the nodes along a path results ... | 41,421 |
https://github.com/ElfSundae/NIM_iOS_UIKit/blob/master/NIMKit/NIMKit/Sections/Session/View/NIMAdvanceMenu.h | Github Open Source | Open Source | MIT | 2,022 | NIM_iOS_UIKit | ElfSundae | Objective-C | Code | 54 | 230 | //
// NIMAdvanceMenu.h
// NIMKit
//
// Created by He on 2020/3/26.
// Copyright © 2020 NetEase. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "NIMSessionConfig.h"
#import "NIMInputProtocol.h"
@class NIMMessage;
NS_ASSUME_NONNULL_BEGIN
@interface NIMAdvanceMenu : UIView
@property (nonatomic,strong) id... | 1,687 |
https://github.com/AmitRoushan/Amino.Run/blob/master/examples/minnietwitter/src/main/java/amino/run/appexamples/minnietwitter/MinnieTwitterMain.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Amino.Run | AmitRoushan | Java | Code | 1,263 | 3,736 | package amino.run.appexamples.minnietwitter;
import amino.run.app.DMSpec;
import amino.run.app.Language;
import amino.run.app.MicroServiceSpec;
import amino.run.app.Registry;
import amino.run.common.ArgumentParser.AppArgumentParser;
import amino.run.common.MicroServiceCreationException;
import amino.run.common.MicroSe... | 18,550 |
https://github.com/jackhughesweb/clojure/blob/master/exercises/reverse-string/src/reverse_string.clj | Github Open Source | Open Source | MIT | 2,018 | clojure | jackhughesweb | null | Spoken | 16 | 33 | (ns reverse-string)
(defn reverse-string [] ;; <- arglist goes here
;; your code goes here
)
| 3,536 |
https://github.com/raywenderlich/w2t-materials/blob/master/10-snapshot-api/projects/final/UHL/UHL WatchKit Extension/ScheduleInterfaceController.swift | Github Open Source | Open Source | Apache-2.0 | 2,021 | w2t-materials | raywenderlich | Swift | Code | 431 | 924 | /**
* Copyright (c) 2017 Razeware LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... | 44,428 |
https://github.com/tzachshabtay/MonoAGS/blob/master/Source/AGS.API/Rooms/Edges/IEdge.cs | Github Open Source | Open Source | Artistic-2.0 | 2,021 | MonoAGS | tzachshabtay | C# | Code | 175 | 348 | using System.ComponentModel;
namespace AGS.API
{
/// <summary>
/// Room edges are a convenient way for scripting a room change once a player walks beyond an edge.
/// Each room has 4 edges, and this interface represents any of those edges.
/// </summary>
public interface IEdge : INotifyPropertyCha... | 18,962 |
https://github.com/humblef-oo-l/algoexpert_soln/blob/master/Recursion/SortArray/Solution.java | Github Open Source | Open Source | MIT | 2,021 | algoexpert_soln | humblef-oo-l | Java | Code | 133 | 372 | package Recursion.SortArray;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* * Sort an Array using Recursion
*/
public class Solution {
private void insert(List<Integer> array, int element) {
/**
* Base Case.
*/
if (array.size() == 0 || array.get(array.size() - ... | 18,077 |
https://github.com/decodeidea/annisa_travel/blob/master/application/modules/Search/views/index_2.php | Github Open Source | Open Source | MIT | null | annisa_travel | decodeidea | PHP | Code | 1,315 | 6,985 | <div role="main" class="main">
<div class="slider-container rev_slider_wrapper" style="height: 100vh;">
<div id="revolutionSlider" class="slider rev_slider manual">
<ul>
<?php foreach ($banner as $key) {
?>
<li data-transition="fade"
data-description="Arti... | 50,693 |
https://github.com/tstarling/hhvm/blob/master/hphp/test/slow/parser/async_bad_tr.php | Github Open Source | Open Source | PHP-3.01, Zend-2.0 | 2,021 | hhvm | tstarling | PHP | Code | 9 | 17 | <?php
trait T {
abstract async function f();
}
| 16,680 |
https://github.com/bd-golang/go-stockutil/blob/master/maputil/001_maputil_setters_test.go | Github Open Source | Open Source | MIT | 2,022 | go-stockutil | bd-golang | Go | Code | 525 | 2,423 | package maputil
import (
_ "encoding/json"
"fmt"
"testing"
"github.com/ghetzel/testify/require"
)
func TestDeepSetNothing(t *testing.T) {
assert := require.New(t)
output := make(map[string]interface{})
output = DeepSet(output, []string{}, "yay").(map[string]interface{})
assert.Empty(output)
}
func TestDee... | 15,449 |
https://github.com/zhourenfei17/jackeroo-boot/blob/master/jackeroo-boot/jackeroo-boot-module-common/src/main/java/cn/hub/jackeroo/utils/validator/groups/Delete.java | Github Open Source | Open Source | Apache-2.0 | null | jackeroo-boot | zhourenfei17 | Java | Code | 19 | 58 | package cn.hub.jackeroo.utils.validator.groups;
import javax.validation.groups.Default;
/**
* @author alex
* @date 2020/07/06
*/
public interface Delete extends Default {
}
| 31,786 |
https://github.com/Sudo-Kid/cpp-faker/blob/master/tests/TestAddress.cpp | Github Open Source | Open Source | MIT | 2,020 | cpp-faker | Sudo-Kid | C++ | Code | 566 | 1,596 | #include <regex>
#include <faker/Address.h>
#include <faker/StringVector.h>
#include "TestAddress.h"
using std::cout;
using std::endl;
using std::string;
string TEST_NAME = "TestAddress";
CPPUNIT_TEST_SUITE_REGISTRATION(TestAddress);
static bool stringContains(const string &str, const string substring) {
retu... | 37,653 |
https://github.com/hmzsumon/zayanfasion/blob/master/resources/views/User/home_search_Product_List.blade.php | Github Open Source | Open Source | MIT | null | zayanfasion | hmzsumon | PHP | Code | 37 | 289 | @if(isset($searchproducts))
@foreach($searchproducts as $data)
@php
$productname = str_replace(["%","/"," "],"-",$data->product_name);
@endphp
<div class="col-lg-2 cl-md-4 col-sm-6 col-6 mt-4">
<div class="homeproducts">
<center>
<a href="{{url('product')}}/... | 44,409 |
https://github.com/reesretuta/dropshipping-icons/blob/master/js/duotone/cid-flip-to-back.d.ts | Github Open Source | Open Source | CC-BY-4.0, MIT | null | dropshipping-icons | reesretuta | TypeScript | Code | 5 | 14 | export declare const cidFlipToBack: string[]; | 29,540 |
https://github.com/pazamelin/openvino/blob/master/src/frontends/onnx/frontend/src/op/quantize_linear.hpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | openvino | pazamelin | C++ | Code | 73 | 227 | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "ngraph/node.hpp"
#include "onnx_import/core/node.hpp"
namespace ngraph {
namespace onnx_import {
namespace op {
namespace detail {
std::shared_ptr<ngraph::Node> make_fake_quantize(const Output<ngraph::Node>&... | 22,023 |
https://github.com/mahajrod/MACE/blob/master/example_data/Taylor_et_al_2014/split_by_clones/sA3G*_clone_2.t | Github Open Source | Open Source | Apache-2.0 | 2,023 | MACE | mahajrod | Perl | Code | 20,000 | 43,268 | mutator chromsome position clone ref_base mut_base flanking_sequence_pyrimidine_context sA3G* chrI 20300 2 G A CCCAA sA3G* chrI 33305 2 C T ACCTG sA3G* chrI 45711 2 G A CCCGT sA3G* chrI 57591 2 C T TCCAG sA3G* chrI 58657 2 C T CCCTA sA3G* chrI 71199 2 C T TCCTC sA3G* chrI 91323 2 G A ACCAC sA3G* chrI 136831 2 G A ACCAA... | 41,327 |
https://github.com/MDE4CPP/MDE4CPP/blob/master/src/ecore/types/src_gen/types/impl/typesPluginImpl.cpp | Github Open Source | Open Source | MIT | 2,022 | MDE4CPP | MDE4CPP | C++ | Code | 83 | 387 | #include "types/impl/typesPluginImpl.hpp"
#include "types/typesFactory.hpp"
#include "types/typesPackage.hpp"
using namespace types;
//*********************************
// Constructor / Destructor
//*********************************
typesPluginImpl::typesPluginImpl()
{
}
typesPluginImpl::~typesPluginImpl()
{
}
st... | 41,153 |
https://github.com/Misiker2/app201809/blob/master/lib/protocol/index.js | Github Open Source | Open Source | Unlicense, MIT | 2,015 | app201809 | Misiker2 | JavaScript | Code | 8 | 33 |
module.exports = {
'http:': require('./http'),
'udp:': require('./udp')
};
| 10,892 |
https://github.com/stawberri/danbooru-node/blob/master/lib/constants.js | Github Open Source | Open Source | MIT | 2,021 | danbooru-node | stawberri | JavaScript | Code | 9 | 28 | exports.data = Symbol('data')
exports.headers = Symbol('headers')
exports.status = Symbol('status')
| 34,127 |
https://github.com/Azure-Samples/cognitive-services-REST-api-samples/blob/master/java/InkRecognition/android-sample-app/Recognizer/app/src/main/java/CognitiveServices/Ink/Recognition/InkRecognitionUnit.java | Github Open Source | Open Source | MIT | 2,023 | cognitive-services-REST-api-samples | Azure-Samples | Java | Code | 367 | 1,409 | package CognitiveServices.Ink.Recognition;
import android.util.DisplayMetrics;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
public class InkRecognitionUnit {
private final ArrayList<Integer> strokeIds = new ArrayList<>();
private int id;... | 1,308 |
https://github.com/haxpor/APIBook/blob/master/02_Qualities/coord2d_template/main.cpp | Github Open Source | Open Source | MIT | 2,022 | APIBook | haxpor | C++ | Code | 106 | 259 | /// -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: t -*-
///
/// \file main.cpp
/// \author Martin Reddy
/// \brief A class template for a 2D Coordinate.
///
/// Copyright (c) 2010, Martin Reddy. All rights reserved.
/// Distributed under the X11/MIT License. See LICENSE.txt.
/// See http://APIBook.com/ for ... | 31,838 |
https://github.com/konstlvov/spring-2019-02/blob/master/dz06/src/main/java/ru/otus/spring06/domain/Book.java | Github Open Source | Open Source | MIT | 2,019 | spring-2019-02 | konstlvov | Java | Code | 119 | 274 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ru.otus.spring06.domain;
public class Book {
private final int bookId;
private String bookName;
private final... | 26,682 |
https://github.com/gfis/joeis-lite/blob/master/internal/fischer/mangf/A062520.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | joeis-lite | gfis | Java | Code | 46 | 127 | package irvine.oeis.a062;
// Generated by gen_seq4.pl build/parm2 at 2023-03-16 19:20
import irvine.oeis.a030.A030000;
/**
* A062520 3^a(n) is smallest nonnegative power of 3 containing n.
* @author Georg Fischer
*/
public class A062520 extends A030000 {
/** Construct the sequence. */
public A062520() {
s... | 11,348 |
https://github.com/weizihua/amp-matching-engine/blob/master/contracts/token_test.go | Github Open Source | Open Source | MIT | 2,022 | amp-matching-engine | weizihua | Go | Code | 562 | 1,909 | package contracts_test
import (
"log"
"math/big"
"testing"
"github.com/Proofsuite/amp-matching-engine/app"
"github.com/Proofsuite/amp-matching-engine/contracts/contractsinterfaces"
"github.com/Proofsuite/amp-matching-engine/daos"
"github.com/Proofsuite/amp-matching-engine/ethereum"
"github.com/Proofsuite/amp-... | 22,559 |
https://github.com/alezost/nixpkgs/blob/master/pkgs/applications/graphics/djview/default.nix | Github Open Source | Open Source | MIT | 2,011 | nixpkgs | alezost | null | Spoken | 54 | 228 | {stdenv, fetchurl, djvulibre, qt4 }:
stdenv.mkDerivation {
name = "djview4-4.1-2";
src = fetchurl {
url = mirror://sf/djvu/djview4-4.1-2.tar.gz;
sha256 = "10k0h892kab3n8xypw6vsnvhwil410hvvqj375pwiss4vlm5isv1";
};
buildInputs = [djvulibre qt4];
meta = {
homepage = http://djvu.sourceforge.net/djview4.html;
... | 13,658 |
https://github.com/mdenhoedt/MaxCut-Instances/blob/master/set2/instances/sg3dl105000.mc | Github Open Source | Open Source | MIT | 2,016 | MaxCut-Instances | mdenhoedt | null | Spoken | 9,002 | 14,508 | 1000 3000
1 2 1
1 10 -1
1 11 -1
1 91 -1
1 101 -1
1 901 1
2 3 -1
2 12 -1
2 92 1
2 102 -1
2 902 -1
3 4 1
3 13 -1
3 93 1
3 103 -1
3 903 1
4 5 1
4 14 -1
4 94 1
4 104 -1
4 904 -1
5 6 1
5 15 -1
5 95 -1
5 105 1
5 905 -1
6 7 1
6 16 -1
6 96 1
6 106 1
6 906 -1
7 8 -1
7 17 -1
7 97 1
7 107 -1
7 907 1
8 9 1
8 18 -1
8 98 1
8 108 -1
... | 43,596 |
https://github.com/snow2flying/stainless-ffmpeg/blob/master/src/probe/deep.rs | Github Open Source | Open Source | Apache-2.0 | 2,021 | stainless-ffmpeg | snow2flying | Rust | Code | 695 | 2,741 | use crate::format_context::FormatContext;
use crate::probe::black_detect::detect_black_frames;
use crate::probe::crop_detect::detect_black_borders;
use crate::probe::silence_detect::detect_silence;
use crate::stream::Stream;
use ffmpeg_sys::*;
use log::LevelFilter;
use std::{cmp, collections::HashMap, fmt};
#[derive(D... | 821 |
https://github.com/repausmedia/uiza-javascript-sdk-player/blob/master/src/sass/base.scss | Github Open Source | Open Source | MIT | 2,020 | uiza-javascript-sdk-player | repausmedia | SCSS | Code | 160 | 569 | // --------------------------------------------------------------
// Base styling
// --------------------------------------------------------------
// Base
.uiza {
@include uiza-font-smoothing($uiza-font-smoothing);
direction: ltr;
font-family: $uiza-font-family;
font-variant-numeric: tabular-nums; // Force m... | 22,955 |
https://github.com/microsoft/moabian/blob/master/fw/src/app/plate.h | Github Open Source | Open Source | MIT | 2,022 | moabian | microsoft | C | Code | 42 | 194 | #ifndef SERVO_H_
#define SERVO_H_
#include <zephyr.h>
typedef struct servo_cal
{
u16_t servo_min[3];
u16_t servo_133[3];
u16_t servo_max[3];
} servo_cal_t;
int plate_init(void);
int plate_servo_enable(u8_t enable);
int plate_servo_update_position(u8_t id, float angle);
int plate_set_angle(float theta_x, float the... | 22,934 |
https://github.com/StefanMaron/MSDyn365BC.Code.History/blob/master/BaseApp/Source/Base Application/AssistedCompanySetup.Codeunit.al | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT, LicenseRef-scancode-warranty-disclaimer | 2,023 | MSDyn365BC.Code.History | StefanMaron | null | Spoken | 1,386 | 5,041 | codeunit 1800 "Assisted Company Setup"
{
Permissions = tabledata "Assisted Company Setup Status" = r;
trigger OnRun()
begin
end;
var
EnableWizardErr: Label 'You cannot enable the assisted company setup for an already active company.';
NoConfigPackageFileMsg: Label 'There are no con... | 39,790 |
https://github.com/lucaspdmedeiros/ranking-species-sensitivity/blob/master/code/functions/food_chain.R | Github Open Source | Open Source | MIT | 2,022 | ranking-species-sensitivity | lucaspdmedeiros | R | Code | 148 | 262 | # Returns the rates of change for the chaotic food chain model in
# Upadhyay 2000 Mathematical and Computer Modelling (to use with ode function)
# Arguments:
# t: vector of time steps
# state: vector of initial abundance values
# parameters: vector of parameters
# Output:
# dx1: producer rate of change
# dx2: prima... | 50,141 |
https://github.com/qweawdqq/gzyq/blob/master/action/sqlAction.go | Github Open Source | Open Source | Apache-2.0 | null | gzyq | qweawdqq | Go | Code | 274 | 926 | package action
import (
"github.com/astaxie/beego/orm"
"gzyq/logUtils"
"fmt"
"strings"
"errors"
"bytes"
)
/**
* @Description:
* @author : 贾亮
* @date : 2017-12-23 23:22
*/
type SqlAction struct {
Id string
Name string //名字
Text string //待解析字符串
Sort string
}
func (action *SqlAction)SetId(id string) {... | 24,336 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.