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/robgrzel/offshore/blob/master/MPI_CUDA/MpiSlave.h
Github Open Source
Open Source
MIT
null
offshore
robgrzel
C
Code
170
650
// // Created by robgrzel on 01.06.17. // #ifndef UTILS_MPI_SLAVE_H #define UTILS_MPI_SLAVE_H #include <mpi.h> #include "structs.cuh" #define ID -1 #define DATA 0 #define RESULT 1 #define FINISH 2 #define MPI_SLAVE_TPACK <class TRs, class TR, class TWs, class TW, class TEs, class TE, class TS> #define MPI_SLAVE...
17,858
https://github.com/RigasGrigoropoulos/spring-security-acl-cassandra/blob/master/src/main/java/org/springframework/security/acls/cassandra/model/AclObjectIdentity.java
Github Open Source
Open Source
Apache-2.0
2,014
spring-security-acl-cassandra
RigasGrigoropoulos
Java
Code
811
2,259
/* Copyright 2013 Rigas Grigoropoulos * * 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...
47,566
https://github.com/thomas-schweich/OpenPortfolio/blob/master/build-scripts/build_all_containers.sh
Github Open Source
Open Source
MIT
null
OpenPortfolio
thomas-schweich
Shell
Code
62
235
#!/bin/bash # Builds all containers from the Dockerfile, tagging them with their names. # Must be run from the repo's root directory. CONTAINERS=(op-base op-py-build op-minimal op-dev) ADDITIONAL=(op-gitpod) A_TGTS=(op-dev) A_ARGS=('--build-arg OP_USER=gitpod --build-arg OP_UID=33333') DOCKER_REPO=thomasschweich/open-...
10,070
https://github.com/ardacebi/bloom/blob/master/server/models/User/functions/verifyPassword.js
Github Open Source
Open Source
MIT
2,022
bloom
ardacebi
JavaScript
Code
24
69
const bcrypt = require('bcrypt'); module.exports = function (password, callback) { bcrypt.compare(password, this.auth.password, (err, res) => { if (err) return callback(err); callback(null, res); }); };
1,273
https://github.com/rohitdwivedula/urs/blob/master/signatures/base58.go
Github Open Source
Open Source
MIT
null
urs
rohitdwivedula
Go
Code
956
2,423
// Copyright 2011 ThePiachu. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package signatures //Subpackage for encoding data (namely Bitcoin Addresses) into base58 strings import ( "encoding/hex" "math/big" ) //Useful materials: //http...
7,144
https://github.com/chongtianfeiyu/Rose/blob/master/apps-src/apps/external/chromium/net/net_jni_headers/GURLUtils_jni.h
Github Open Source
Open Source
BSD-2-Clause
2,021
Rose
chongtianfeiyu
C++
Code
119
527
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file is autogenerated by // base\android\jni_generator\jni_generator.py // For // org/chromium/net/GURLUtils #ifndef org_chromium_net_GU...
44,574
https://github.com/isome01/BCSFZForm/blob/master/src/config/ajax.js
Github Open Source
Open Source
Unlicense
null
BCSFZForm
isome01
JavaScript
Code
37
123
import axios from 'axios/index' const protocol = process.env.PROTOCOL || 'http' const domain = process.env.BACKEND_DOMAIN || 'localhost' const port = process.env.BACKEND_PORT || 5001 const ajax = axios.create({ baseURL: `${protocol}://${domain}:${port}`, timeout: 8000, headers: {'Accept':'*/*', 'Content-Type':'...
12,384
https://github.com/ramcdona/OpenVSP/blob/master/src/external/angelscript/sdk/tests/test_performance/source/test_classprop.cpp
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,023
OpenVSP
ramcdona
C++
Code
252
917
// // Test author: Andreas Jonsson // #include "utils.h" #include "../../add_on/scriptarray/scriptarray.h" namespace TestClassProp { #define TESTNAME "TestClassProp" static const char *script = "class TestClass { \n" " array<float> mvScriptArray(1000); ...
51
https://github.com/1725136424/gulimall/blob/master/gulimall-common/src/main/java/site/wanjiahao/common/valid/ConstraintValidator/CheckKgConstraintValidator.java
Github Open Source
Open Source
Apache-2.0
null
gulimall
1725136424
Java
Code
31
143
package site.wanjiahao.common.valid.ConstraintValidator; import site.wanjiahao.common.utils.DecimalUtil; import site.wanjiahao.common.valid.CheckKg; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import java.math.BigDecimal; public class CheckKgConstraintValidator im...
3,292
https://github.com/dram/metasfresh/blob/master/backend/de.metas.adempiere.adempiere/base/src/main/java/de/metas/report/DocumentPrintOptionDescriptorsList.java
Github Open Source
Open Source
RSA-MD
2,022
metasfresh
dram
Java
Code
213
551
/* * #%L * de.metas.adempiere.adempiere.base * %% * Copyright (C) 2020 metas GmbH * %% * 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 opt...
45,254
https://github.com/thibistaken/multisig-vault/blob/master/app/electron/bitcoin/index.js
Github Open Source
Open Source
MIT
2,021
multisig-vault
thibistaken
JavaScript
Code
813
3,264
const BigNumber = require('bignumber.js'); const bs58check = require('bs58check'); const { networks, payments } = require('bitcoinjs-lib'); const { deriveChildPublicKey, generateMultisigFromPublicKeys } = require('unchained-bitcoin'); const { getTransactionsFromAddressFromBlockstream, getUtxosAddressesFromBlockstream }...
30,512
https://github.com/supertalent1982/EvercamNetworking/blob/master/EvercamNetworking/EvercamVendor.m
Github Open Source
Open Source
Apache-2.0
2,015
EvercamNetworking
supertalent1982
Objective-C
Code
50
159
// // EvercamVendor.m // evercamPlay // // Created by jw on 4/12/15. // Copyright (c) 2015 evercom. All rights reserved. // #import "EvercamVendor.h" @implementation EvercamVendor - (id) initWithDictionary: (NSDictionary *)vendorDict { self= [super init]; if (self) { self.vId = [vendorDict va...
14,948
https://github.com/skellix/Frost/blob/master/src/CloseStreamCommand.java
Github Open Source
Open Source
Apache-2.0
2,014
Frost
skellix
Java
Code
60
207
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.util.Scanner; public class CloseStreamCommand extends FrostCommand { @Override public void execute(FrostThread frostThread) { if (frostThread.carry.get() instanceof Scanner) { ((Scanner) frostThread.carry.get...
51,455
https://github.com/crazyskateface/lumberyard/blob/master/dev/Code/Framework/AzCore/AzCore/Memory/MemoryDriller.cpp
Github Open Source
Open Source
AML
2,021
lumberyard
crazyskateface
C++
Code
636
2,800
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
24,532
https://github.com/okaram/exercism-csharp/blob/master/anagram/Anagram.cs
Github Open Source
Open Source
Unlicense
2,022
exercism-csharp
okaram
C#
Code
92
395
using System; using System.Collections.Generic; public class Anagram { Dictionary<char,int> letterFreq; string baseWord; public Anagram(string baseWord) { this.baseWord=baseWord; this.letterFreq=toFreq(baseWord); } private static Dictionary<char,int> toFreq(string word) { ...
20,026
https://github.com/IanLuites/data_daemon/blob/master/test/data_daemon/util_test.exs
Github Open Source
Open Source
MIT
2,022
data_daemon
IanLuites
null
Spoken
258
861
defmodule DataDaemon.UtilTest do use ExUnit.Case, async: false import DataDaemon.Util defp bin_package(key, value, type, opts \\ []), do: :erlang.iolist_to_binary(package(key, value, type, opts)) describe "package/4" do test "handles empty or nil tags" do assert bin_package("key", 1, :counter, t...
7,003
https://github.com/MauScopelli/Projeto-SelfCare/blob/master/selfcare/src/main/java/br/com/fiap/selfcare/service/UserService.java
Github Open Source
Open Source
MIT
2,021
Projeto-SelfCare
MauScopelli
Java
Code
105
346
package br.com.fiap.selfcare.service; import java.util.List; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import br.com.fiap.selfcare.exception.UserNotFoundException; import br.com.fiap.selfcare.model.User; import br.com.fiap...
49,724
https://github.com/satta/genometools/blob/master/src/match/eis-bitpackseqpos.h
Github Open Source
Open Source
BSD-2-Clause
2,022
genometools
satta
C
Code
348
827
/* Copyright (C) 2007 Thomas Jahns <Thomas.Jahns@gmx.net> Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AU...
36,138
https://github.com/kamilsmialowskiwsiz/healthy/blob/master/resources/views/userHome.blade.php
Github Open Source
Open Source
MIT
null
healthy
kamilsmialowskiwsiz
PHP
Code
90
485
@extends('layouts.layout') @section('title','twoje wyniki') @section('additional') <style> a { text-decoration: none; color: black; } </style> @endsection @section('content') <section> <div class="container py-5"> <div class="row text-center text-black"> <div class="co...
38,455
https://github.com/mtortonesi/sisfc/blob/master/examples/vm_allocation.conf
Github Open Source
Open Source
MIT
2,022
sisfc
mtortonesi
Ruby
Code
49
147
[ { dc_id: :one, vm_num: 7, vm_size: :medium, component_type: 'Web Server' }, { dc_id: :one, vm_num: 10, vm_size: :large, component_type: 'App Server' }, { dc_id: :two, vm_num: 15, vm_size: :medium, component_type: 'Web Server' }, { dc_id: :two, vm_num: 20, vm_size: :large, component_type: 'App Server' } ] ...
43,535
https://github.com/cl0wn-net/cl0wn-net/blob/master/server/app/factory/decompiled/smali/b/a/d/a/G.smali
Github Open Source
Open Source
MIT
2,022
cl0wn-net
cl0wn-net
Smali
Code
3,328
21,239
.class public Lb/a/d/a/G; .super Lb/a/c/a; .source "" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lb/a/d/a/G$a;, Lb/a/d/a/G$b; } .end annotation # static fields .field private static final b:Ljava/util/logging/Logger; .field private static c:Z .field privat...
25,568
https://github.com/OpenMS/OpenMS/blob/master/src/openms/include/OpenMS/FORMAT/FileHandler.h
Github Open Source
Open Source
BSD-3-Clause, BSL-1.0
2,023
OpenMS
OpenMS
C++
Code
1,441
2,807
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
16,233
https://github.com/safayetahmedatge/ms-tpm-20-ref/blob/master/TPMCmd/tpm/include/prototypes/Manufacture_fp.h
Github Open Source
Open Source
BSD-2-Clause
null
ms-tpm-20-ref
safayetahmedatge
C
Code
483
843
/* Microsoft Reference Implementation for TPM 2.0 * * The copyright in this software is being made available under the BSD License, * included below. This software may be subject to other third party and * contributor rights, including patent rights, and no such rights are granted * under this license. * * ...
22,463
https://github.com/yitznewton/sockbit/blob/master/application/src/EasyBib/SockBit/Message/NoteAnnouncer.php
Github Open Source
Open Source
BSD-2-Clause
2,019
sockbit
yitznewton
PHP
Code
58
251
<?php namespace EasyBib\SockBit\Message; use PhpAmqpLib\Message\AMQPMessage; class NoteAnnouncer { const CHANNEL_NAME = 'sockbit_announce'; private $channel; public function __construct($connection) { $this->channel = $connection->channel(); $this->channel->exchange_declare(self::CH...
45,624
https://github.com/dgist-datalab/BlockSSD/blob/master/lower/bdbm_drv/run/fio/run_fio_randr.sh
Github Open Source
Open Source
MIT
2,021
BlockSSD
dgist-datalab
Shell
Code
27
123
#!/bin/bash sudo fio --randrepeat=1 \ --name=libaio\ --filename=/media/blueDBM/fio \ --bs=4k \ --iodepth=128 \ --size=10000M \ --readwrite=randread \ --rwmixwrite=0 \ --rwmixread=100 \ --overwrite=1 \ --numjobs=8 \ --direct=0 \ --buffer=1
43,514
https://github.com/NajmulHaque/eSeller/blob/master/resources/views/frontend/vendorSearch.blade.php
Github Open Source
Open Source
MIT
null
eSeller
NajmulHaque
PHP
Code
185
873
@extends('layouts.default') @section('title', 'Vendor Search Results') @section('content') <div class="container"> @if (session()->has('success_message')) <div class="alert alert-success"> {{ session()->get('success_message') }} </div> @endif @if(co...
41,031
https://github.com/m0sk1t/muscles/blob/master/models/Photo.js
Github Open Source
Open Source
MIT
2,017
muscles
m0sk1t
JavaScript
Code
36
100
var mongoose = require('mongoose'), PhotoSchema = mongoose.Schema({ title: String, album: String, image: String, owner: String, creDate: Date, likes: { type: Array, default: [] }, comments: { type: Array, default: [] }, }); module.exports = mongoose.model...
28,141
https://github.com/lerno/naga/blob/master/src/main/naga/NIOServerSocket.java
Github Open Source
Open Source
MIT
2,020
naga
lerno
Java
Code
552
1,007
/* Copyright (c) 2008-2011 Christoffer Lernö 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, dist...
25,365
https://github.com/gonchik/atlassian-slack-integration-server/blob/master/bitbucket-slack-server-integration-plugin/src/test/java/it/com/atlassian/bitbucket/plugins/slack/functional/SanityCheckFuncTest.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,020
atlassian-slack-integration-server
gonchik
Java
Code
52
298
package it.com.atlassian.bitbucket.plugins.slack.functional; import it.com.atlassian.bitbucket.plugins.slack.util.SlackFunctionalTestBase; import org.junit.jupiter.api.Test; import static com.atlassian.plugins.slack.test.RequestMatchers.success; import static org.hamcrest.MatcherAssert.assertThat; import static org.h...
45,809
https://github.com/mattpow/docx/blob/master/src/file/media/media.ts
Github Open Source
Open Source
MIT
2,021
docx
mattpow
TypeScript
Code
203
642
import { uniqueId } from "convenience-functions"; import { IMediaData } from "./data"; // import { Image } from "./image"; export interface IMediaTransformation { readonly width: number; readonly height: number; readonly flip?: { readonly vertical?: boolean; readonly horizontal?: boolean; ...
32,559
https://github.com/TriDis/llvm-tricore/blob/master/test/CodeGen/SystemZ/int-cmp-03.ll
Github Open Source
Open Source
NCSA
2,017
llvm-tricore
TriDis
LLVM
Code
954
2,197
; Test 32-bit unsigned comparison in which the second operand is a variable. ; ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s ; Check register comparison. define double @f1(double %a, double %b, i32 %i1, i32 %i2) { ; CHECK-LABEL: f1: ; CHECK: clrjl %r2, %r3 ; CHECK: ldr %f0, %f2 ; CHECK: br %r14 %cond = icm...
29,986
https://github.com/andyjack/neo-tracker/blob/master/routes/sparkline.mjs
Github Open Source
Open Source
MIT
2,023
neo-tracker
andyjack
JavaScript
Code
259
700
import express from 'express'; import moment from 'moment'; // eslint-disable-next-line import/no-unresolved import { stringify } from 'csv-stringify/sync'; import { sqlite } from '../lib/db.mjs'; const router = express.Router(); function outputRows(res, rows) { const output = []; rows.forEach((r) => { output...
28,564
https://github.com/tiggerntatie/mMOSS/blob/master/mmoss/parametric.py
Github Open Source
Open Source
MIT
null
mMOSS
tiggerntatie
Python
Code
280
691
""" mMOSS moderately Multiplayer Online Side Scroller The Parametric class encapsulates a simple linear parametric equation. Copyright (c) 2011 by Eric Dennison. All rights reserved. """ from __future__ import division from numpy import array, dot, sqrt, roots from numpy.linalg import norm __author__ = "Eric Denn...
2,565
https://github.com/Malificiece/Leap-Motion-Thesis/blob/master/src/enums/StatisticDataType.java
Github Open Source
Open Source
Unlicense
null
Leap-Motion-Thesis
Malificiece
Java
Code
390
1,150
/* * Copyright (c) 2015, Garrett Benoit. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source code must retain the above copyright * notice, this list of c...
51,592
https://github.com/jjge1824/azure-prueba-bots/blob/master/node_modules/botbuilder-ai/lib/qnaMakerDialog.js
Github Open Source
Open Source
Apache-2.0
null
azure-prueba-bots
jjge1824
JavaScript
Code
1,264
3,696
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
21,037
https://github.com/RAJ66/ESTG-LDS-PacmanOnlineChallenge/blob/master/Frontend/frontend/src/__tests__/Login.test.js
Github Open Source
Open Source
MIT
2,020
ESTG-LDS-PacmanOnlineChallenge
RAJ66
JavaScript
Code
38
97
import React from "react"; import { mount } from "enzyme"; import toJson from "enzyme-to-json"; import Login from "./../pages/Login/index"; describe("Testing Pacman Component", () => { it("should render correctly", () => { const wrapper = mount(<Login />); expect(toJson(wrapper)).toMatchSnapshot(); }); }...
48,202
https://github.com/krainboltgreene/lerna/blob/master/test/ChildProcessUtilities.js
Github Open Source
Open Source
MIT
2,019
lerna
krainboltgreene
JavaScript
Code
268
756
import { EOL } from "os"; // file under test import ChildProcessUtilities from "../src/ChildProcessUtilities"; describe("ChildProcessUtilities", () => { describe(".execSync()", () => { it("should execute a command in a child process and return the result", () => { expect(ChildProcessUtilities.execSync("ec...
4,161
https://github.com/rkojedzinszky/BSDRP/blob/master/BSDRProuting/patches/freebsd.if_lem.PR176027.patch
Github Open Source
Open Source
BSD-2-Clause
null
BSDRP
rkojedzinszky
null
Spoken
35
153
--- sys/dev/e1000/if_lem.c.orig 2013-02-11 10:21:00.000000000 +0100 +++ sys/dev/e1000/if_lem.c 2013-02-11 10:21:20.000000000 +0100 @@ -458,7 +458,7 @@ #endif /* Sysctl for setting the interface flow control */ - lem_set_flow_cntrl(adapter, "flow_control", + lem_set_flow_cntrl(adapter, "fc", "flow cont...
32,709
https://github.com/lcc214321/LogiCommon/blob/master/logi-dsl-prase/src/main/java/com/didiglobal/logi/dsl/parse/dsl/parser/root/IndexParser.java
Github Open Source
Open Source
Apache-2.0
2,021
LogiCommon
lcc214321
Java
Code
58
292
package com.didiglobal.logi.dsl.parse.dsl.parser.root; import com.didiglobal.logi.dsl.parse.dsl.ast.common.KeyWord; import com.didiglobal.logi.dsl.parse.dsl.ast.common.value.ObjectNode; import com.didiglobal.logi.dsl.parse.dsl.ast.root.Index; import com.didiglobal.logi.dsl.parse.dsl.parser.DslParser; import com.didigl...
5,569
https://github.com/bradgearon/unity-ads-android/blob/master/lib/src/main/java/com/unity3d/ads/connectivity/ConnectivityMonitor.java
Github Open Source
Open Source
Apache-2.0
2,022
unity-ads-android
bradgearon
Java
Code
552
1,972
package com.unity3d.ads.connectivity; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.Build; import android.telephony.TelephonyManager; import com.unity3d.ads.log.DeviceLog; import com.unity3d.ads.properties.ClientProperties; import com.unity3d...
33,691
https://github.com/e16din/ScreensController/blob/master/example/src/main/java/com/e16din/sc/example/screens/splash/controllers/HelloPortraitController.java
Github Open Source
Open Source
MIT
null
ScreensController
e16din
Java
Code
63
341
package com.e16din.sc.example.screens.splash.controllers; import android.util.Log; import android.view.View; import android.widget.TextView; import com.e16din.sc.ScreensController; import com.e16din.sc.annotations.OnBind; import com.e16din.sc.annotations.ViewController; import com.e16din.sc.example.R; import com.e16...
39,030
https://github.com/veliamsli/CasinosClient/blob/master/_Backup/Editor/GameCloundEditorCommonLua.cs
Github Open Source
Open Source
MIT
2,021
CasinosClient
veliamsli
C#
Code
500
1,929
using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Xml; using UnityEditor; using UnityEngine; public class GameCloundEditorCommonLua : EditorWindow { //------------------------------------------------------------------------- ...
45,728
https://github.com/Julia844/aliyun-tablestore-java-sdk/blob/master/src/main/java/com/alicloud/openservices/tablestore/model/search/query/GeoDistanceQuery.java
Github Open Source
Open Source
Apache-2.0
2,019
aliyun-tablestore-java-sdk
Julia844
Java
Code
106
467
package com.alicloud.openservices.tablestore.model.search.query; import com.alicloud.openservices.tablestore.core.protocol.SearchQueryBuilder; import com.google.protobuf.ByteString; /** * 找出与某个位置某个距离内的数据。 * <p>常用场景:搜索我附近1千米内的人。</p> * <p>通过设置我的centerPoint(一个经纬度信息),然后设置举例信息distanceInMeter=1000,进行查询即可。</p> */ public...
547
https://github.com/JohnReedLOL/scala-trace-debug/blob/master/src/main/scala/com/github/johnreedlol/conversions/ImplicitPrint.scala
Github Open Source
Open Source
MIT
2,022
scala-trace-debug
JohnReedLOL
Scala
Code
195
424
package com.github.johnreedlol.conversions import scala.language.implicitConversions /** * Wrapper class for implicit conversion .print methods */ final class ImplicitPrint[MyType](val me: MyType) extends AnyVal { /** * Same as System.out.print(this), but with the function name after the object * *...
27,922
https://github.com/cncf/devstats/blob/master/grafana/chaosblade/grafana_start.sh
Github Open Source
Open Source
Apache-2.0
2,023
devstats
cncf
Shell
Code
9
87
#!/bin/bash cd /usr/share/grafana.chaosblade grafana-server -config /etc/grafana.chaosblade/grafana.ini cfg:default.paths.data=/var/lib/grafana.chaosblade 1>/var/log/grafana.chaosblade.log 2>&1
19,765
https://github.com/takano-akio/filelock/blob/master/tests/interrupt.hs
Github Open Source
Open Source
CC0-1.0
2,020
filelock
takano-akio
Haskell
Code
110
219
import Control.Concurrent import Control.Exception import Control.Monad import System.FileLock import System.Exit import System.Timeout main :: IO () main = withFileLock lockFilePath Exclusive $ \_ -> do mvar <- newMVar Nothing _ <- forkIO $ do -- The attempt to lock the file again should block, but it should ...
27,714
https://github.com/rinceyuan/WeFe/blob/master/union/union-service/src/main/java/com/welab/wefe/union/service/dto/common/ServiceStatusOutput.java
Github Open Source
Open Source
Apache-2.0
2,022
WeFe
rinceyuan
Java
Code
243
507
/** * Copyright 2021 Tianmian Tech. 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 by ...
5,278
https://github.com/jspvg/Herbarij/blob/master/app/Models/Planter.php
Github Open Source
Open Source
MIT
2,021
Herbarij
jspvg
PHP
Code
39
141
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Planter extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'naziv_rasadnika',...
42,317
https://github.com/lugal-cn/kaSocialTouch/blob/master/usr/module/widget/src/Form/Element/CarouselTemplate.php
Github Open Source
Open Source
BSD-3-Clause
2,014
kaSocialTouch
lugal-cn
PHP
Code
152
512
<?php /** * Pi Engine (http://pialog.org) * * @link http://code.pialog.org for the Pi Engine source repository * @copyright Copyright (c) Pi Engine http://pialog.org * @license http://pialog.org/license.txt BSD 3-Clause License */ namespace Module\Widget\Form\Element; use Pi; use Zend\F...
17,491
https://github.com/RCMRD/FloodMapsWorkshop/blob/master/sql/planet_osm_point.sql
Github Open Source
Open Source
Apache-2.0
2,016
FloodMapsWorkshop
RCMRD
SQL
Code
200
674
-- ---------------------------- -- Table structure for planet_osm_point -- ---------------------------- DROP TABLE IF EXISTS "public"."planet_osm_point"; CREATE TABLE "public"."planet_osm_point" ( "id" int8 NOT NULL DEFAULT nextval('landslide_seq'::regclass), "date" text COLLATE "default", "time" text COLLATE "defa...
23,122
https://github.com/SleepBook/chiffre/blob/master/src/main/scala/chiffre/util/ScanChainConfig.scala
Github Open Source
Open Source
Apache-2.0
2,022
chiffre
SleepBook
Scala
Code
955
2,768
// Copyright 2018 IBM // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing,...
24,284
https://github.com/HongZhaoHua/jstarcraft-ai/blob/master/jstarcraft-ai-model/src/test/java/com/jstarcraft/ai/model/neuralnetwork/loss/KLDLossFunctionTestCase.java
Github Open Source
Open Source
Apache-2.0
2,023
jstarcraft-ai
HongZhaoHua
Java
Code
38
207
package com.jstarcraft.ai.model.neuralnetwork.loss; import org.nd4j.linalg.lossfunctions.ILossFunction; import org.nd4j.linalg.lossfunctions.impl.LossKLD; import com.jstarcraft.ai.model.neuralnetwork.activation.ActivationFunction; import com.jstarcraft.ai.model.neuralnetwork.loss.KLDLossFunction; import com.jstarcraf...
33,511
https://github.com/isabella232/plugin-scan/blob/master/lib/repositories/daily_stats_repository.rb
Github Open Source
Open Source
MIT
2,017
plugin-scan
isabella232
Ruby
Code
19
81
module Repositories class DailyStatsRepository def self.find_by_feed_and_duration(feed_id, duration) DailyStats.where(:fid => feed_id, :date.gte => duration.start_date, :date.lte => duration.end_date) end end end
29,538
https://github.com/finos/TimeBase-CE/blob/master/java/timebase/server/src/main/java/com/epam/deltix/qsrv/dtb/fs/azure2/AzureFsBase.java
Github Open Source
Open Source
Apache-2.0, CC0-1.0, LicenseRef-scancode-generic-cla, LicenseRef-scancode-free-unknown
2,023
TimeBase-CE
finos
Java
Code
296
870
/* * Copyright 2021 EPAM Systems, Inc * * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. 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 Li...
11,889
https://github.com/Krokodyli/shapesEditor/blob/master/src/constructCanvasAction.cpp
Github Open Source
Open Source
MIT
null
shapesEditor
Krokodyli
C++
Code
147
654
#include "constructCanvasAction.h" ConstructCanvasAction::ConstructCanvasAction(createConstructionFunc _createShapeFunc, Canvas *_canvas) : createShapeFunc(_createShapeFunc), canvas(_canvas), actionType(ConstructActionT...
9,432
https://github.com/Pompoli/Keskusteluuttori/blob/master/keskusteluuttori/chat/static/chat/js/speakereditor.js
Github Open Source
Open Source
MIT
2,020
Keskusteluuttori
Pompoli
JavaScript
Code
21
75
$(function() { $(".submit").click(() => $.post('', {'speaker': JSON.stringify(SPEAKER)}, data => window.location.href = '/')); return $("#name").change(function() { return SPEAKER.name = $(this).val(); }); });
11,236
https://github.com/almcnicoll/Neverer/blob/master/CrosswordShared/UtilityClass/AnagramTreeOld.cs
Github Open Source
Open Source
MIT
null
Neverer
almcnicoll
C#
Code
681
1,854
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Neverer.UtilityClass { public class AnagramTreeOld { public String OriginalWord; private String OrderedString; public Hash...
954
https://github.com/PixelRick/CP77Tools/blob/master/CP77.CR2W/Types/cp77/AnimFeature_CameraRecoil.cs
Github Open Source
Open Source
MIT
2,021
CP77Tools
PixelRick
C#
Code
106
372
using System.IO; using CP77.CR2W.Reflection; using FastMember; using static CP77.CR2W.Types.Enums; namespace CP77.CR2W.Types { [REDMeta] public class AnimFeature_CameraRecoil : animAnimFeature { [Ordinal(0)] [RED("backward_offset")] public CFloat Backward_offset { get; set; } [Ordinal(1)] [RED("is_offset")] p...
30,080
https://github.com/TWarczak/paws/blob/master/cran/paws.application.integration/man/eventbridge_put_events.Rd
Github Open Source
Open Source
Apache-2.0
2,021
paws
TWarczak
R
Code
150
367
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eventbridge_operations.R \name{eventbridge_put_events} \alias{eventbridge_put_events} \title{Sends custom events to Amazon EventBridge so that they can be matched to rules} \usage{ eventbridge_put_events(Entries) } \arguments{ \item{Entries}{...
9,196
https://github.com/raghuveeru/react-docsflow/blob/master/styles/base/_reset.scss
Github Open Source
Open Source
MIT
null
react-docsflow
raghuveeru
SCSS
Code
283
942
/*------------------------------------*\ RESET.CSS \*------------------------------------*/ /** * Let’s make the box model all nice, shall we...? */ *{ &, &:before, &:after{ -ms-box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; ...
32,842
https://github.com/enKryptIO/ethvm/blob/master/newclient/src/core/components/mixins/Matomo/matomoEnums.ts
Github Open Source
Open Source
MIT
2,019
ethvm
enKryptIO
TypeScript
Code
25
92
enum Category { TXS_PAGE = 'ETH_Blocks_tx_page', ADR_PAGE = 'ETH_Blocks_adr_page', BLOCK_PAGE = 'ETH_Blocks_block_page' } enum Action { CLICK_MINT = 'ETH_Blocks_clicked_mint' } export { Category, Action }
30,172
https://github.com/lgirdk/meta-intel/blob/master/recipes-oneapi/crypto/intel-crypto-mb/0003-CMakeLists.txt-exclude-host-system-headers.patch
Github Open Source
Open Source
MIT
null
meta-intel
lgirdk
null
Spoken
59
392
From 7b575fc23d246373425c3682e83634203aadc4a6 Mon Sep 17 00:00:00 2001 From: Naveen Saini <naveen.kumar.saini@intel.com> Date: Thu, 17 Jun 2021 12:35:36 +0800 Subject: [PATCH 3/4] CMakeLists.txt: exclude host system headers Upstream-Status: Inappropriate Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> --- ...
12,001
https://github.com/xt0rted/Raygun.Owin/blob/master/samples/Raygun.Owin.Samples.NancyFX/App_Start/Startup.Raygun.cs
Github Open Source
Open Source
MIT
2,018
Raygun.Owin
xt0rted
C#
Code
179
586
namespace Raygun.Owin.Samples.NancyFX { using System.Reflection; using System.Security.Claims; using Microsoft.Owin; using Nancy; using Raygun.Messages; public partial class Startup { private static string ApplicationVersion() { var application = Assembly.Get...
34,971
https://github.com/rholang/archive-old/blob/master/packages/editor/email-renderer/dist/cjs/marks/link.js
Github Open Source
Open Source
Apache-2.0
2,020
archive-old
rholang
JavaScript
Code
69
225
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var create_tag_1 = require("../create-tag"); var util_1 = require("../styles/util"); exports.styles = "\n." + util_1.createClassName('mark-link') + " {\n border: none;\n background: transparent;\n color: #0052cc;\n text-decoration: none;\n...
30,729
https://github.com/jjwilke/sst-transports/blob/master/libfabric/prov/sstmac/src/sstmac_wait.cc
Github Open Source
Open Source
BSD-3-Clause
2,020
sst-transports
jjwilke
C++
Code
526
1,377
/** Copyright 2009-2020 National Technology and Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government retains certain rights in this software. Sandia National Laboratories is a multimission laboratory managed and operated by National Technology and Engineering...
49,109
https://github.com/Javiooli/Uni/blob/master/Estructura-de-dades/Practica3/Ex2/notmain.cpp
Github Open Source
Open Source
MIT
null
Uni
Javiooli
C++
Code
42
105
//@Author: Javier Pedragosa #include <iostream> using namespace std; template <class T> class Prova { public: Prova() {}; bool equal(T a, T b) { return a == b; } }; int main(){ Prova<string> a; cout << (a.equal("hola", "hola") ? "true" : "false"); }
35,444
https://github.com/humberaquino/ogahunt/blob/master/ios/OgaHunt/View/Common/Theme.swift
Github Open Source
Open Source
MIT
2,020
ogahunt
humberaquino
Swift
Code
406
1,416
// // Theme.swift // OgaHunt // // Created by Humberto Aquino on 9/13/18. // Copyright © 2018 Humberto Aquino. All rights reserved. // import UIColor_Hex_Swift import UIKit struct DefaultColors { // Dark gray: 45 54 62 static let first = UIColor(red: 45.0 / 255.0, green: 54.0 / 255.0, blue: 62.0 / ...
26,841
https://github.com/great-h/5374-csv-generator-in-hiroshima/blob/master/spec/hiroshima5374/area_days/csv_creater_spec.rb
Github Open Source
Open Source
MIT
2,016
5374-csv-generator-in-hiroshima
great-h
Ruby
Code
47
202
require 'spec_helper' include Hiroshima5374 describe AreaDays::CSVCreator do csv_file = File.join(spec_root, "data", "area_days.csv") before :each do FileUtils.cd spec_root if (File.exist?(csv_file)) FileUtils.rm csv_file end end after :each do FileUtils.cd File.join(spec_root, '..') ...
36,262
https://github.com/kayleriegerpatton/team-profile-generator/blob/master/lib/Engineer.test.js
Github Open Source
Open Source
MIT
null
team-profile-generator
kayleriegerpatton
JavaScript
Code
301
840
const Engineer = require("./Engineer"); describe("Engineer", () => { const engineer = new Engineer({ name: "Alice", id: 853, email: "alice@email.com", github: "mygithubname", }); test("should be an instance of Engineer", () => { // declare expected result const expected = true; // get...
1,655
https://github.com/TomiBelan/fajr/blob/master/third_party/jstestdriver/InlineHtmlProcessor.java
Github Open Source
Open Source
MIT
null
fajr
TomiBelan
Java
Code
246
654
/* * Copyright 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
19,617
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/网易云音乐-音乐的力量-5.0.0(越狱应用)_headers/NMVideoRecommendAdvertisement.h
Github Open Source
Open Source
MIT
2,018
Just_a_dumper
i-gaven
Objective-C
Code
54
175
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import "NMAdvertisement.h" @class NSString; @interface NMVideoRecommendAdvertisement : NMAdvertisement { NSString *_subText; } ...
25,751
https://github.com/hernanmd/pharo/blob/master/src/Polymorph-Widgets.package/MorphicUIManager.class/instance/edit.label.accept..st
Github Open Source
Open Source
MIT
2,019
pharo
hernanmd
null
Spoken
59
158
ui requests edit: aText label: labelString accept: aBlockOrNil "Open an editor on the given string/text" | window pane | window := (SystemWindow labelled: labelString) model: self. pane := RubScrolledTextMorph new setText: aText asString; yourself. aBlockOrNil ifNotNil: [ pane announcer when: RubTex...
3,520
https://github.com/SeerLabs/CiteSeerX/blob/master/src/java/edu/psu/citeseerx/exec/com/ServerConfiguration.java
Github Open Source
Open Source
Apache-2.0
2,019
CiteSeerX
SeerLabs
Java
Code
380
948
/* * Copyright 2007 Penn State University * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to...
38,174
https://github.com/arctindev/arch-studio-gatsby/blob/master/src/components/Button/Button.styles.js
Github Open Source
Open Source
0BSD
2,021
arch-studio-gatsby
arctindev
JavaScript
Code
109
329
import styled from "styled-components" import { Link } from "gatsby" import pointer from "../../assets/icons/pointer.svg" export const StyledButton = styled.button` border: none; height: 70px; width: ${({ width }) => width}; color: ${({ theme }) => theme.colors.buttonFont}; background-color: ${({ theme }) =>...
15,802
https://github.com/TidalWavesNode/UNIV_AUTOcomp/blob/master/config.js
Github Open Source
Open Source
CC0-1.0
null
UNIV_AUTOcomp
TidalWavesNode
JavaScript
Code
2,005
8,004
module.exports = Object.freeze({ CONTRACT_ADDRESS: "0x89323f00a621D4eD6A56a93295C5f10f4df57FFa", // contract address of implementation - "0x2437e41acdad73a40adbb71a36d208f84b66a67b" CONFIG_COURTESY_ADDRESS: "REPLACE WITH TIP TARGET ADDRESS HERE", CONFIG_COURTESYTIPS_PERC: 0.01, // 1% - 0.01 CONFI...
18,786
https://github.com/DharmendraVinay/geode/blob/master/geode-pulse/src/main/java/org/apache/geode/tools/pulse/internal/service/ClusterRegionsService.java
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause
null
geode
DharmendraVinay
Java
Code
576
2,048
/* * * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may n...
40,784
https://github.com/allbombson/allbombson.pw/blob/master/setup.sh
Github Open Source
Open Source
MIT
null
allbombson.pw
allbombson
Shell
Code
177
510
installpkgs () { set -- git openssh make python2 python3 lynx zsh bash vim nano mpd mpc mpv ncurses set -- "$@" tmux neofetch curl w3m weechat wget cfdisk util-linux rover bash-completion busybox-extras sudo ircii dialog set -- "$@" openssh-client openssh-server python3 nano apk update apk upgrade apk add "$@" } insta...
8,294
https://github.com/naufalmukhbit/plantstore/blob/master/application/views/checkout.php
Github Open Source
Open Source
MIT
null
plantstore
naufalmukhbit
PHP
Code
180
861
<?php $grand_total = 0; // Calculate grand total. if ($cart = $this->cart->contents()): foreach ($cart as $item): $grand_total = $grand_total + $item['subtotal']; endforeach; endif; ?> <?php $this->load->view('header'); ?> <body> <?php $this->load->view('navbar'); ?> <div class="container"> ...
27,119
https://github.com/Max021311/rogueutil/blob/master/docs/html/search/functions_4.js
Github Open Source
Open Source
Apache-2.0
2,022
rogueutil
Max021311
JavaScript
Code
5
64
var searchData= [ ['kbhit',['kbhit',['../rogueutil_8h.html#a97e9b1fe8d4c010474637a654aad6566',1,'rogueutil.h']]] ];
24,380
https://github.com/espnet/espnet/blob/master/egs2/csj/asr1/local/data.sh
Github Open Source
Open Source
Apache-2.0
2,023
espnet
espnet
Shell
Code
203
647
#!/usr/bin/env bash set -e set -u set -o pipefail log() { local fname=${BASH_SOURCE[1]##*/} echo -e "$(date '+%Y-%m-%dT%H:%M:%S') (${fname}:${BASH_LINENO[0]}:${FUNCNAME[1]}) $*" } SECONDS=0 stage=0 stop_stage=1 log "$0 $*" . utils/parse_options.sh if [ $# -ne 0 ]; then log "Error: No positional argume...
10,225
https://github.com/riganti/dotvvm/blob/master/src/Framework/Framework/Compilation/Javascript/PromiseAwaitingVisitor.cs
Github Open Source
Open Source
Apache-2.0
2,022
dotvvm
riganti
C#
Code
251
829
using System; using System.Collections.Generic; using System.Linq; using System.Text; using DotVVM.Framework.Compilation.Javascript.Ast; namespace DotVVM.Framework.Compilation.Javascript { /// <summary> Add await operator around every expression that returns a promise, if the function is async </summary> publ...
41,067
https://github.com/opensprints/SilverSprint/blob/master/src/SilverSprintApp.cpp
Github Open Source
Open Source
MIT
2,015
SilverSprint
opensprints
C++
Code
223
870
#include "cinder/app/AppNative.h" #include "cinder/gl/gl.h" #include "GFXMain.h" #include "StateManager.h" using namespace ci; using namespace ci::app; using namespace std; using namespace gfx; class GoldsprintsFXApp : public AppNative { public: void prepareSettings( Settings *settings ); void setup(); void ...
31,759
https://github.com/huuthanh0312/School_Management_System_laravel/blob/master/resources/views/backend/employee/monthly_salary/monthly_salary_view.blade.php
Github Open Source
Open Source
MIT
null
School_Management_System_laravel
huuthanh0312
PHP
Code
171
806
@extends('admin.admin_master') @section('admin_content') <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <div class="container-full"> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-md-12"> ...
5,647
https://github.com/jameswlane/reactpureloaders.io/blob/master/src/components/SocialMedia/index.tsx
Github Open Source
Open Source
MIT
2,019
reactpureloaders.io
jameswlane
TypeScript
Code
48
142
import React, { FunctionComponent } from 'react'; import './style.scss'; interface OwnProps { path: string; desc: string; link: string; title: string; } const SocialMedia: FunctionComponent<OwnProps> = ({ path, desc, link, title, }) => ( <div className="social-media"> <a href={link} title={titl...
39,261
https://github.com/mdinal/event/blob/master/app/src/main/java/com/example/teamalpha10/PostActivity.java
Github Open Source
Open Source
Apache-2.0
null
event
mdinal
Java
Code
333
1,829
package com.example.teamalpha10; import android.app.DatePickerDialog; import android.app.ProgressDialog; import android.app.TimePickerDialog; import android.content.ContentResolver; import android.content.Intent; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.net.Uri; imp...
24,267
https://github.com/yagosys/AlfredWorkflow.com/blob/master/Sources/Workflows/Hatmaker/bundle/ruby/1.8/gems/alfred-workflow-1.7.0/spec/alfred_spec.rb
Github Open Source
Open Source
MIT
2,022
AlfredWorkflow.com
yagosys
Ruby
Code
325
1,151
require "spec_helper" describe "Alfred" do before :all do @alfred = Alfred::Core.new Dir.chdir("test/workflow/") end it "should return a valid bundle id" do @alfred.bundle_id.should == "me.zhaowu.alfred-workflow-gem" end context "Setting" do it "should use yaml as defualt backend" do ...
52,012
https://github.com/brain-tec/mail-addons/blob/master/mail_multi_website/models/mail_message.py
Github Open Source
Open Source
MIT
null
mail-addons
brain-tec
Python
Code
37
169
# Copyright 2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev> # License MIT (https://opensource.org/licenses/MIT). from odoo import fields, models class Message(models.Model): _inherit = "mail.message" def _default_mail_server_id(self): website = self.env.context.get("website_id") ...
29,152
https://github.com/gstevens-SoApps/Blog2-WcfNQueueSMEx2/blob/master/GS.iFX.Azure/AzureServiceBusHelpers.cs
Github Open Source
Open Source
Apache-2.0
2,015
Blog2-WcfNQueueSMEx2
gstevens-SoApps
C#
Code
265
615
/* GS.iFX.Azure.AzureServiceBusHelpers * Copyright 2015 George Stevens 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 applicab...
33,286
https://github.com/nnadams/mage/blob/master/Mage.Tests/src/test/java/org/mage/test/cards/copy/HiveMindTest.java
Github Open Source
Open Source
MIT
2,022
mage
nnadams
Java
Code
367
892
package org.mage.test.cards.copy; import mage.constants.PhaseStep; import mage.constants.Zone; import org.junit.Assert; import org.junit.Test; import org.mage.test.serverside.base.CardTestPlayerBase; /** * * @author LevelX2 */ public class HiveMindTest extends CardTestPlayerBase { /** * Check that oppon...
10,029
https://github.com/scottkf/premier-medical-care.com/blob/master/workspace/javascript/home.js
Github Open Source
Open Source
MIT
2,009
premier-medical-care.com
scottkf
JavaScript
Code
29
144
jQuery(document).ready(function() { // jQuery('#cboxOverlay').remove(); // jQuery('#colorbox').appendTo('#slideshow'); // jQuery("a[rel='slideshow']").colorbox({transition:"fade", speed: 800, slideshow:true, open:true, slideshowSpeed: 3000, slideshowStart:"", slideshowStop:"", current:"", previous:"", nex...
3,123
https://github.com/salsadigitalauorg/ckan/blob/master/ckanext/activity/helpers.py
Github Open Source
Open Source
BSD-3-Clause
null
ckan
salsadigitalauorg
Python
Code
628
1,561
# -*- coding: utf-8 -*- from __future__ import annotations from typing import Any, Optional, cast import jinja2 from markupsafe import Markup import ckan.model as model import ckan.plugins.toolkit as tk from ckan.types import Context from . import changes def dashboard_activity_stream( user_id: str, filte...
39,853
https://github.com/mlibrary/heliotrope/blob/master/app/views/api/v1/licenses/show.json.jbuilder
Github Open Source
Open Source
Apache-2.0
2,023
heliotrope
mlibrary
Ruby
Code
7
23
# frozen_string_literal: true json.partial! "license", license: @license
2,273
https://github.com/KiDS-WL/Cat_to_Obs_K1000_P1/blob/master/data/kids/nofz/delta_z_correlated_to_uncorrelated.py
Github Open Source
Open Source
MIT
2,021
Cat_to_Obs_K1000_P1
KiDS-WL
Python
Code
20
137
import numpy as np filename='deltaz.asc' file=open(filename) delta_z=np.loadtxt(file,comments='#') filename='SOM_cov_multiplied.asc' file=open(filename) cov_z=np.loadtxt(file,comments='#') L = np.linalg.cholesky(cov_z) inv_L = np.linalg.inv(L) delta_x = np.dot(inv_L,delta_z) print(delta_x)
8,656
https://github.com/rakkiisto/rakkiisto-rmmv-dom/blob/master/src/GameScreenDiv.ts
Github Open Source
Open Source
MIT
null
rakkiisto-rmmv-dom
rakkiisto
TypeScript
Code
111
407
import { DOM, Div, DOMObject, mixBlendMode, anime } from 'rakkiisto-dom' import { gameCoords } from 'rakkiisto-rmmv' const gameScreenDivs: GameScreenDiv[] = [] DOM.onResize(() => gameScreenDivs.forEach(foo => foo.resize())) setInterval(() => gameScreenDivs.forEach(foo => foo.resize()), 100) export class GameScreenDi...
22,131
https://github.com/mahaplatform/mahaplatform.com/blob/master/src/apps/campaigns/admin/views/sms/design.js
Github Open Source
Open Source
MIT
null
mahaplatform.com
mahaplatform
JavaScript
Code
250
837
import SMSDesigner from '@apps/campaigns/admin/components/sms_designer' import PropTypes from 'prop-types' import { Page } from '@admin' import React from 'react' import _ from 'lodash' class Design extends React.Component { static propTypes = { campaign: PropTypes.object } render() { return <SMSDesign...
17,726
https://github.com/aoyono/sicpy/blob/master/Chapter1/exercises/exercise1_35.py
Github Open Source
Open Source
MIT
2,018
sicpy
aoyono
Python
Code
92
258
# -*- coding: utf-8 -*- """ Show that the golden ratio (section 1.2.2) is a fixed point of the transformation x |--> 1 + 1/x, and use this fact to compute it by means of the fixed-point procedure. """ from operator import add, truediv import math from Chapter1.themes.procedures_as_general_methods import fixed_point ...
34,866
https://github.com/jodamu/project_crm/blob/master/resources/views/ciudad/index.blade.php
Github Open Source
Open Source
MIT
2,020
project_crm
jodamu
Blade
Code
113
531
@extends('adminlte::layouts.app') @section('htmlheader_title','Listado de Ciudades') {{-- titulo pestaña pagina --}} @section('contentheader_title','Listado de Ciudades') {{-- nombre pagina --}} @section('breadcrumb') <li class="active">Ciudades</li> @endsection @section('content') <div> <a href="{{ rout...
19,951
https://github.com/fms5cmS/arts/blob/master/algorithm/backtrackingRela/17_letterCombinations_test.go
Github Open Source
Open Source
MIT
null
arts
fms5cmS
Go
Code
126
505
package backtrackingRela import ( "fmt" "testing" ) // 给定一个仅包含数字 2-9 的字符串,返回所有它能表示的字母组合。答案可以按 任意顺序 返回。 func letterCombinations(digits string) []string { result := make([]string, 0) str := "" if len(digits) == 0 { return result } // 数字和字母的映射 letterMap := map[byte]string{ '2': "abc", '3': "def", '4': "ghi",...
24,693
https://github.com/softwaremill/tapir/blob/master/server/zio1-http-server/src/main/scala/sttp/tapir/server/ziohttp/ZioHttpInterpreter.scala
Github Open Source
Open Source
Apache-2.0
2,023
tapir
softwaremill
Scala
Code
241
1,008
package sttp.tapir.server.ziohttp import io.netty.handler.codec.http.HttpResponseStatus import sttp.capabilities.zio.ZioStreams import sttp.model.{HeaderNames, Header => SttpHeader} import sttp.monad.MonadError import sttp.tapir.server.interceptor.RequestResult import sttp.tapir.server.interceptor.reject.RejectInterce...
44,604
https://github.com/qai222/ATMOxide/blob/master/DimPredict/9_FinalTest/ablationTA/1_final_input.py
Github Open Source
Open Source
MIT
null
ATMOxide
qai222
Python
Code
393
1,288
import re from rdkit.Chem import CanonSmiles import pandas as pd from pymatgen.core.composition import Composition from AnalysisModule.prepare.diagram import BuildingUnit from AnalysisModule.routines.util import MDefined, read_jsonfile, get_no_hydrogen_composition, find_nms, find_ms from MLModule.encoding import load...
46,849