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/autumn0632/snake/blob/master/handler/contract/contract_handler.go | Github Open Source | Open Source | MIT | 2,020 | snake | autumn0632 | Go | Code | 442 | 1,705 | package contract
import (
"context"
"crypto/ecdsa"
"errors"
"github.com/1024casts/snake/handler"
"github.com/1024casts/snake/pkg/errno"
"github.com/1024casts/snake/service/contract"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github... | 25,139 |
https://github.com/EthanLuu/code-clone-detector/blob/master/front-end/src/components/CodeUploader/index.less | Github Open Source | Open Source | MIT | 2,022 | code-clone-detector | EthanLuu | Less | Code | 29 | 93 | .container {
display: flex;
align-items: center;
flex-direction: column;
}
.dragger {
width: 100%;
flex: auto;
margin-bottom: 30px;
max-height: 128px;
}
.inputWrapper {
height: 100%;
width: 100%;
display: flex;
}
| 54,834 |
https://github.com/David-Luo/learn-compile/blob/master/bean-validation/src/main/java/com/bean/validation/IValidationSpecProcess.java | Github Open Source | Open Source | Apache-2.0 | null | learn-compile | David-Luo | Java | Code | 12 | 44 | package com.bean.validation;
import javax.validation.ConstraintValidator;
public interface IValidationSpecProcess<T> extends ConstraintValidator<ValidationSpec, T> {
}
| 20,937 |
https://github.com/overo/overo-oe-natty/blob/master/recipes/moblin/bognor-regis_git.bb | Github Open Source | Open Source | MIT | 2,011 | overo-oe-natty | overo | null | Spoken | 28 | 149 | LICENSE = "GPLv2"
SRCREV = "7f3f5f46cc40f9012300aca66a25ca31511df897"
PV = "0.4.1"
PR_append = "+git${SRCREV}"
DEPENDS = "dbus-glib gstreamer glib-2.0"
SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git"
S = "${WORKDIR}/git"
inherit autotools
FILES_${PN} =+ "${datadir}/dbus-1/services/"
| 49,526 |
https://github.com/anothergituser/laravel-4.2-snippets/blob/master/snippets/DB-pretending.cson | Github Open Source | Open Source | MIT | 2,015 | laravel-4.2-snippets | anothergituser | CoffeeScript | Code | 6 | 37 | '.source.php':
'DB-pretending':
'prefix': 'DB-pretending'
'body': 'DB::pretending()' | 30,565 |
https://github.com/chandlersong/LogTools/blob/master/LogTools/src/test/java/org/logtools/utils/LogGenerator.java | Github Open Source | Open Source | Apache-2.0 | 2,013 | LogTools | chandlersong | Java | Code | 482 | 2,227 | package org.logtools.utils;
import java.util.concurrent.CountDownLatch;
import org.apache.log4j.Logger;
import org.junit.Test;
public class LogGenerator {
private static Logger logger = Logger.getLogger(LogGenerator.class);
@Test
public void generateSimplelog() {
logger.info("info log");
... | 54,301 |
https://github.com/jina-ai/executor-indexers/blob/master/scripts/integration.sh | Github Open Source | Open Source | Apache-2.0 | 2,021 | executor-indexers | jina-ai | Shell | Code | 33 | 90 | #!/bin/bash
set -ex
# always run integration tests
pip install -r tests/requirements.txt
export PYTHONPATH=.
pytest -s -v tests/integration
local_exit_code=$?
if [[ ! $local_exit_code == 0 ]]; then
EXIT_CODE=$local_exit_code
echo integration test failed
fi
| 40,148 |
https://github.com/steveorsomethin/azure-kinect-rs/blob/master/azure-kinect/src/device.rs | Github Open Source | Open Source | MIT | 2,020 | azure-kinect-rs | steveorsomethin | Rust | Code | 403 | 1,556 | use super::utility::*;
use super::*;
use std::ptr;
pub struct Device<'a> {
pub(crate) factory: &'a Factory,
pub(crate) handle: k4a_device_t,
}
#[derive(Copy, Clone, Default)]
pub struct ColorControlCapabilities {
supports_auto: bool,
min_value: i32,
max_value: i32,
step_value: i32,
default... | 48,419 |
https://github.com/1926813494/canal-admin/blob/master/admin-ui/src/views/datasource/DBConfig.vue | Github Open Source | Open Source | MIT | 2,021 | canal-admin | 1926813494 | Vue | Code | 409 | 1,853 | <template>
<div class="app-container">
<div class="filter-container">
<el-select
v-model="listQuery.databaseType"
placeholder="数据库类型"
class="filter-item"
>
<el-option
v-for="item in databaseTypes"
:value="item"
:key="item"
:label=... | 17,049 |
https://github.com/tannguyent/SimpleBanking/blob/master/src/Services/Banking.API/Infrastructure/Database/Repositories/BankingAccountRepository.cs | Github Open Source | Open Source | MIT | null | SimpleBanking | tannguyent | C# | Code | 32 | 136 | using Banking.API.Infrastructure.Core;
using Banking.API.Infrastructure.Database.Context;
using Banking.API.Infrastructure.Database.Models;
namespace Banking.API.Infrastructure.Database.Repositories
{
public interface IBankingAccountRepository : IGenericRepository<BankingAccount>
{
}
public class Ban... | 22,875 |
https://github.com/kimvanwyk/ndlc_finances/blob/master/src/process_reports.py | Github Open Source | Open Source | BSD-3-Clause | null | ndlc_finances | kimvanwyk | Python | Code | 300 | 1,076 | from datetime import datetime
import decimal
import glob
import operator
from openpyxl import load_workbook
import data.mongo_setup
data.mongo_setup.global_init()
from data.dues import Dues
from data.members import Member
from data.transactions import Transaction, AdminTransaction, Account, AdminAccount
from data.ca... | 41,043 |
https://github.com/chen0040/php-yii-sms-outlook/blob/master/protected/extensions/jpgraph/src/Examples/qr_template.php | Github Open Source | Open Source | MIT | 2,021 | php-yii-sms-outlook | chen0040 | PHP | Code | 106 | 298 | <?php
require_once ('jpgraph/QR/qrencoder.inc.php');
// Data to be encoded
$data = 'ABCDEFGH01234567';
// QR Code specification
$version = -1; // -1 = Let the library decide version (same as default)
$corrlevel = QRCapacity::ErrM; // Medium erro correction
$modulewidth = 2; // Module width... | 9,869 |
https://github.com/zgraggen/public-nixpkgs/blob/master/pkgs/development/libraries/libressl/2.3.nix | Github Open Source | Open Source | MIT | null | public-nixpkgs | zgraggen | null | Spoken | 55 | 212 | { stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "libressl-${version}";
version = "2.3.4";
src = fetchurl {
url = "mirror://openbsd/LibreSSL/${name}.tar.gz";
sha256 = "1ag65pbvdikqj5y1w780jicl3ngi9ld2332ki6794y0gcar3a4bs";
};
enableParallelBuilding = true;
meta = with stdenv.lib; {
... | 42,038 |
https://github.com/marrink-lab/TS2CG/blob/master/src/Pointillism/Trajectory.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | TS2CG | marrink-lab | C++ | Code | 645 | 3,417 |
#include <time.h>
#include <iomanip>
#include "Trajectory.h"
Trajectory::Trajectory(Vec3D *pBox)
{
m_pBox=pBox;
m_TrajectoryCondition=true;
}
Trajectory::~Trajectory()
{
}
void Trajectory::Write(int step , std::string filename , std::vector< vertex* > pver, std::vector< triangle* > ptriangle, std::v... | 38,712 |
https://github.com/methukunaveen/couchdbsyncer-android/blob/master/src/au/com/team2moro/couchdbsyncer/DownloadPolicy.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,011 | couchdbsyncer-android | methukunaveen | Java | Code | 225 | 392 | package au.com.team2moro.couchdbsyncer;
public interface DownloadPolicy {
/**
* Return the download policy for the given attachment. The default policy is to download all attachments.
* @param document the document containing the attachment to be downloaded
* @param attachment the attachment to be downloaded
... | 42,637 |
https://github.com/ohforest/verbose-equals-true/blob/master/frontend/src/components/login/index.vue | Github Open Source | Open Source | MIT | 2,022 | verbose-equals-true | ohforest | Vue | Code | 150 | 584 | <template>
<div class="login">
<h1>Sign In</h1>
<el-alert
v-if="badLogin"
title="Incorrect username or password"
type="error"
show-icon>
</el-alert>
<el-form v-loading="loading">
<el-input v-model="username"></el-input>
<el-input type="password" v-model=... | 37,872 |
https://github.com/cengelif/Flood/blob/master/webinterface/src/scss/index.scss | Github Open Source | Open Source | MIT | 2,017 | Flood | cengelif | SCSS | Code | 291 | 995 | @import 'settings';
@import 'bootstrap';
@import 'bourbon';
@import 'general';
@import 'header';
@import 'footer';
.classify-view {
overflow: auto;
.progress-container {
margin-top: $general-margin;
.progress {
margin-bottom: 0;
}
.progress-bar {
backgr... | 45,093 |
https://github.com/muhammednursoy/smt/blob/master/backend/src/main/java/com/mnursoy/salesmanager/controller/CustomerController.java | Github Open Source | Open Source | MIT | null | smt | muhammednursoy | Java | Code | 76 | 367 | package com.mnursoy.salesmanager.controller;
import java.util.List;
import javax.mail.MessagingException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.b... | 4,473 |
https://github.com/nesfe/VUE2-SSR/blob/master/src/views/project/components/taskAction.vue | Github Open Source | Open Source | MIT | null | VUE2-SSR | nesfe | Vue | Code | 221 | 884 | <template>
<modal v-model="open" :title="title" @hide="callback" ref="modal" id="modal-demo" size="lg" :backdrop="false">
<formData ref="form" class="form-horizontal">
<div class="form-group">
<label class="col-sm-2 control-label">实际开始</label>
<div class="col-sm-10">
<dateTime v-mo... | 31,496 |
https://github.com/BisonDee/celo-monorepo/blob/master/packages/mobile/src/paymentRequest/PaymentRequestNotificationInner.tsx | Github Open Source | Open Source | Apache-2.0 | 2,021 | celo-monorepo | BisonDee | TypeScript | Code | 59 | 141 | import * as React from 'react'
import { Recipient } from 'src/recipients/recipient'
interface Props {
amount: string
recipient: Recipient
}
export default function PaymentRequestNotificationInner(props: Props) {
const { recipient } = props
const displayName = recipient.displayName
// Using a fragment to su... | 42,300 |
https://github.com/j-sieben/UTL_FTP/blob/master/UTL_FTP/sql/type/ftp_reply_t.tps | Github Open Source | Open Source | MIT | 2,020 | UTL_FTP | j-sieben | null | Spoken | 15 | 37 | create or replace type ftp_reply_t is object(
code number,
message varchar2(4000)
) instantiable final;
/
| 26,577 |
https://github.com/PracticeEngine/GLIntegration/blob/master/src/PE.Nominal.Web/Controllers/ActionsController.cs | Github Open Source | Open Source | Apache-2.0 | null | GLIntegration | PracticeEngine | C# | Code | 2,815 | 10,051 | using Hangfire;
using Hangfire.Console;
using Hangfire.Server;
using Intacct.SDK.Exceptions;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using PE.Nominal.Options;
using PE.Nominal.Provider;
using System;
using System.Collections.Generic;
using System.IO;
using... | 270 |
https://github.com/room77/77up/blob/master/public/util/memory/collection_test.cc | Github Open Source | Open Source | MIT | 2,018 | 77up | room77 | C++ | Code | 560 | 1,654 | #include "base/common.h"
#include "util/memory/stringstorage.h"
#include "util/memory/stringstorage_unlock.h"
#include "test/cc/test_main.h"
#include "util/index/index.h"
#include "collection.h"
typedef struct {
int x, y;
string z;
SIGNATURE(x*1 / y*2 / z*3);
} SimpleTuple;
TEST(Collection, Sanity) {
//
//... | 3,813 |
https://github.com/zaully/WikitudeDemoWithTesseract/blob/master/WikitudeDemo/WikitudeDemo/Classes/Plugins/TesseractPluginAdaptor.mm | Github Open Source | Open Source | MIT | null | WikitudeDemoWithTesseract | zaully | Objective-C++ | Code | 186 | 742 | //
// TesseractPluginAdaptor.m
// WikitudeDemo
//
// Created by Vince Liang on 2016-01-19.
// Copyright © 2016 crowley. All rights reserved.
//
#import "TesseractPluginAdaptor.h"
#import "GPUImage.h"
@implementation TesseractPluginAdaptor
- (void)frameAvailable: (NSData *)data {
}
@end
@interface WDTesseractPlug... | 20,069 |
https://github.com/lor6/tutorials/blob/master/spring-security-modules/spring-security-web-boot-2/src/main/java/com/baeldung/customlogouthandler/user/UserUtils.java | Github Open Source | Open Source | MIT | 2,023 | tutorials | lor6 | Java | Code | 31 | 125 | package com.baeldung.customlogouthandler.user;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
public class UserUtils {
public static String getAuthenticatedUserName() {
Authentication auth = SecurityContextHolder.getContext... | 39,506 |
https://github.com/pdbreen/cart/blob/master/src/Services/Discount.php | Github Open Source | Open Source | MIT | 2,021 | cart | pdbreen | PHP | Code | 136 | 401 | <?php
namespace PDB\PhpCart\Services;
use PDB\PhpCart\CartItem;
class Discount
{
const TYPE_PERCENT_OFF = 'PERCENT';
const TYPE_DOLLAR_OFF = 'DOLLAR';
const TYPE_BOGO = 'BOGO';
/** @var string */
public $type;
/** @var string */
public $targetSku;
/** @var float */
public $va... | 14,658 |
https://github.com/Aekan/Madrapur/blob/master/frontend/config/web.php | Github Open Source | Open Source | BSD-3-Clause | 2,020 | Madrapur | Aekan | PHP | Code | 268 | 1,122 | <?php
use yii\web\View;
$config = [
'homeUrl' => Yii::getAlias('@frontendUrl'),
'controllerNamespace' => 'frontend\controllers',
'defaultRoute' => 'site/index',
'bootstrap' => [
'maintenance'
],
'modules' => [
'user' => [
'class' => frontend\modules\user\Mod... | 15,292 |
https://github.com/gwf-uwaterloo/gwf-publications/blob/master/docs/volumes/G20-127.bib | Github Open Source | Open Source | Apache-2.0 | 2,023 | gwf-publications | gwf-uwaterloo | null | Spoken | 60 | 182 | @article{Robinne-2020-Wildfire,
title = "Wildfire impacts on hydrologic ecosystem services in North American high-latitude forests: A scoping review",
author = "Robinne, Fran{\c{c}}ois-Nicolas and
Hallema, Dennis W. and
Bladon, Kevin D. and
Buttle, James M.",
journal = "Journal of Hydro... | 33,793 |
https://github.com/arangodb/velocypack/blob/master/tests/testsAliases.cpp | Github Open Source | Open Source | GPL-2.0-or-later, BSD-2-Clause, Apache-2.0 | 2,023 | velocypack | arangodb | C++ | Code | 291 | 885 | ////////////////////////////////////////////////////////////////////////////////
/// @brief Library to build up VPack documents.
///
/// DISCLAIMER
///
/// Copyright 2015 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compl... | 37,707 |
https://github.com/puyanLiu/LPYFramework/blob/master/RN/MapViewDemo/ios/MediaController.h | Github Open Source | Open Source | Apache-2.0 | 2,017 | LPYFramework | puyanLiu | C | Code | 32 | 99 | //
// MediaController.h
// MapViewDemo
//
// Created by liupuyan on 16/9/9.
// Copyright © 2016年 Facebook. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RCTBridge.h"
#import "RCTEventDispatcher.h"
@interface MediaController : NSObject
@end
| 48,649 |
https://github.com/luukee/plainkirby/blob/master/assets/js/scripts.js | Github Open Source | Open Source | Apache-1.1 | null | plainkirby | luukee | JavaScript | Code | 11 | 40 | $( window ).scroll(function() {
$( ".project-section:first-child" ).css( "animation-iteration-count", "unset" );
});
| 39,178 |
https://github.com/wevatron/ceo/blob/master/app/Http/Controllers/API/C_municipioAPIController.php | Github Open Source | Open Source | MIT | null | ceo | wevatron | PHP | Code | 280 | 1,011 | <?php
namespace App\Http\Controllers\API;
use App\Http\Requests\API\CreateC_municipioAPIRequest;
use App\Http\Requests\API\UpdateC_municipioAPIRequest;
use App\Models\C_municipio;
use App\Repositories\C_municipioRepository;
use Illuminate\Http\Request;
use App\Http\Controllers\AppBaseController;
use Response;
/**
*... | 26,663 |
https://github.com/PacktPublishing/PostgreSQL-10-High-Performance/blob/master/Chapter05/5_4.sql | Github Open Source | Open Source | MIT | 2,023 | PostgreSQL-10-High-Performance | PacktPublishing | SQL | Code | 33 | 103 | ----------------------- Writing dirty blocks to disk -----------------------
pgbench=# SELECT reldatabase,relfilenode,relblocknumber,isdirty,usagecount FROM pg_buffercache WHERE relfilenode=16399;
reldatabase | relfilenode | relblocknumber | isdirty | usagecount
-------------+-------------+----------------+---------... | 52,618 |
https://github.com/hareshpatel/mage2.1.7/blob/master/vendor/magento/module-downloadable/Model/Source/TypeUpload.php | Github Open Source | Open Source | AFL-3.0 | null | mage2.1.7 | hareshpatel | PHP | Code | 57 | 149 | <?php
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Downloadable\Model\Source;
/**
* TypeUpload source class
*/
class TypeUpload implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* {@inheritdoc}
*/
public f... | 48,952 |
https://github.com/geros/slush-phaser-plus/blob/master/test/generators/object-generator.js | Github Open Source | Open Source | MIT | 2,015 | slush-phaser-plus | geros | JavaScript | Code | 92 | 301 | 'use strict';
module.exports = function (gulp, defineTestTask, task) {
describe('object generator', function () {
before(function () {
process.chdir(__dirname);
});
afterEach(function () {
gulp.reset();
});
it('creates a object file', function (done) {
var mockDest = defineT... | 24,753 |
https://github.com/rhyolight/Hound/blob/master/Procfile | Github Open Source | Open Source | MIT | 2,015 | Hound | rhyolight | null | Spoken | 2 | 10 | web: ./bin/houndd
| 26,073 |
https://github.com/srescio/spid-smart-button/blob/master/tasksConfig/karma.config.js | Github Open Source | Open Source | BSD-3-Clause | 2,018 | spid-smart-button | srescio | JavaScript | Code | 116 | 398 | // Configurazione per Karma, coverage report su unit test jasmine
module.exports = function (config) {
var fs = require('fs'),
pkg = JSON.parse(fs.readFileSync('./package.json', 'utf8')),
serverPort = pkg.localserver.port,
localhostUrl = pkg.localserver.url + serverPort;... | 8,063 |
https://github.com/inthiyazbasha9876/obs_v2/blob/master/zuul-auth-ojas-parent/ojas-obs-billing-type/src/main/java/com/ojas/obs/billingtype/controller/BillingTypeController.java | Github Open Source | Open Source | MIT | 2,020 | obs_v2 | inthiyazbasha9876 | Java | Code | 338 | 1,560 | package com.ojas.obs.billingtype.controller;
import static com.ojas.obs.billingtype.constants.Constants.DELETE;
import static com.ojas.obs.billingtype.constants.Constants.GET;
import static com.ojas.obs.billingtype.constants.Constants.GETBYID;
import static com.ojas.obs.billingtype.constants.Constants.SAVE;
import sta... | 45,599 |
https://github.com/skharitonov95/otus-spring-homeworks/blob/master/hw17-docker/src/main/java/ru/otus/routers/api/BookCommentsRouter.java | Github Open Source | Open Source | MIT | null | otus-spring-homeworks | skharitonov95 | Java | Code | 271 | 1,452 | package ru.otus.routers.api;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.rea... | 43,528 |
https://github.com/skkuse-adv/2019Fall_team2/blob/master/analysis/reverse-engineering/decompile-fitts-20191031-2200/sources/kotlin/comparisons/ComparisonsKt.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | 2019Fall_team2 | skkuse-adv | Java | Code | 14 | 39 | package kotlin.comparisons;
public final class ComparisonsKt extends ComparisonsKt___ComparisonsKt {
private ComparisonsKt() {
}
}
| 18,633 |
https://github.com/Mertank/ToneArm/blob/master/ToneArmEngine/DebugGUILayer.cpp | Github Open Source | Open Source | Zlib, BSD-2-Clause | null | ToneArm | Mertank | C++ | Code | 541 | 2,410 | /*
========================
Copyright (c) 2014 Vinyl Games Studio
DebugGUILayer
Created by: Karl Merten
Created on: 5/14/2014 4:30:25 PM
Last Modified: Vladyslav Dolhopolov
========================
*/
#include "DebugGUILayer.h"
#include "Engine.h"
#include "RunningInfo.h"
#include "DebugConsoleModule.h"
#in... | 24,884 |
https://github.com/jaiko92/cmsweb3/blob/master/Modules/Ecommerce/Http/Controllers/EcommerceController.php | Github Open Source | Open Source | MIT | 2,020 | cmsweb3 | jaiko92 | PHP | Code | 211 | 581 | <?php
namespace Modules\Ecommerce\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Routing\Controller;
use TCG\Voyager\Facades\Voyager;
use Modules\Ecommerce\Entities\Detail;
use Modules\Ecommerce\Entities\Product;
class EcommerceController extends Controller
{
/**
... | 17,446 |
https://github.com/abitmore/uno/blob/master/src/Uno.UWP/Generated/3.0.0.0/Windows.Storage/StorageLibraryChangeTrackerOptions.cs | Github Open Source | Open Source | Apache-2.0 | null | uno | abitmore | C# | Code | 135 | 577 | #pragma warning disable 108 // new keyword hiding
#pragma warning disable 114 // new keyword hiding
namespace Windows.Storage
{
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
[global::Uno.NotImplemented]
#endif
public partial class StorageLibraryChangeTrackerOptio... | 27,744 |
https://github.com/ColdHeat/piwheels/blob/master/piwheels/monitor/sense/states.py | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,021 | piwheels | ColdHeat | Python | Code | 569 | 1,269 | #!/usr/bin/env python
# The piwheels project
# Copyright (c) 2017 Ben Nuttall <https://github.com/bennuttall>
# Copyright (c) 2017 Dave Jones <dave@waveform.org.uk>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#... | 30,230 |
https://github.com/andrei-punko/java-interview/blob/master/src/test/java/by/andd3dfx/interview/exam/MaxSumTest.java | Github Open Source | Open Source | MIT | 2,021 | java-interview | andrei-punko | Java | Code | 37 | 157 | package by.andd3dfx.interview.exam;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import java.util.Arrays;
import org.junit.Test;
public class MaxSumTest {
@Test
public void findMaxSum() {
assertThat("20 expected", MaxSum.findMaxSum(Arrays.asList(5, 9, 7, 1... | 37,065 |
https://github.com/bububa/opentaobao/blob/master/api/simba/TaobaoSubwayCiaUpdate.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | opentaobao | bububa | Go | Code | 46 | 231 | package simba
import (
"github.com/bububa/opentaobao/core"
"github.com/bububa/opentaobao/model/simba"
)
// TaobaoSubwayCiaUpdate 批量修改单元智能出价
// taobao.subway.cia.update
//
// 批量修改直通车推广单元的智能出价配置
func TaobaoSubwayCiaUpdate(clt *core.SDKClient, req *simba.TaobaoSubwayCiaUpdateAPIRequest, session string) (*simba.TaobaoS... | 39,125 |
https://github.com/Rob-Leggett/gradle_springboot_microservice/blob/master/src/main/java/au/com/example/microservice/payslip/util/TaxRatesConfiguration.java | Github Open Source | Open Source | MIT | 2,018 | gradle_springboot_microservice | Rob-Leggett | Java | Code | 215 | 586 | package au.com.example.microservice.payslip.util;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import java.util.List;
/**
* {@code TaxRatesCon... | 20,891 |
https://github.com/pratzss/CMPSC-473-Thread-Library/blob/master/user/libsyscall/syscall.S | Github Open Source | Open Source | Apache-2.0 | 2,019 | CMPSC-473-Thread-Library | pratzss | Unix Assembly | Code | 540 | 1,653 | #include <syscall_int.h>
/* int fork(void); */
.global fork
fork:
int $FORK_INT
ret
/*int thread_fork(void* (*func)(void*), void* arg, void* new_esp);*/
.global thread_fork
thread_fork:
push %ebx
//register for func
mov 0x08(%esp), %ecx
//register for args
mov 0x0c(%esp), %edx
... | 33,813 |
https://github.com/kilauea/FSND-capstone/blob/master/config.py | Github Open Source | Open Source | MIT | null | FSND-capstone | kilauea | Python | Code | 80 | 347 | import os
# Statement for enabling the development environment
DEBUG = True
WTF_CSRF_ENABLED = True
SQLALCHEMY_DATABASE_URI = 'postgresql://acrespo@localhost:5432/calendarapp'
# Secret key for signing cookies
SECRET_KEY = os.urandom(32)
# Colors for new task buttons
BUTTON_CUSTOM_COLOR_VALUE = "#3EB34F"
BUTTONS_COLOR... | 14,755 |
https://github.com/odpi/egeria-connector-ibm-information-server/blob/master/igc-clientlibrary/src/main/java/org/odpi/egeria/connectors/ibm/igc/clientlibrary/model/base/Routine.java | Github Open Source | Open Source | CC-BY-4.0, Apache-2.0 | 2,023 | egeria-connector-ibm-information-server | odpi | Java | Code | 556 | 1,560 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.egeria.connectors.ibm.igc.clientlibrary.model.base;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.J... | 18,448 |
https://github.com/jaeyeon93/stock-crawler/blob/master/src/test/java/com/example/demo/bot/MessageTest.java | Github Open Source | Open Source | MIT | null | stock-crawler | jaeyeon93 | Java | Code | 47 | 193 | package com.example.demo.bot;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class MessageTest {
private static final Logger logger = LoggerFactory.getLogger(MessageTest.class);
@Test
public void 메세지유효성테스트() {
String beforeTrim = "... | 18,766 |
https://github.com/OnToologyUser/vocab-sector-publico-subvenciones/blob/master/Ontology/subvenciones.owl | Github Open Source | Open Source | Apache-2.0 | null | vocab-sector-publico-subvenciones | OnToologyUser | null | Spoken | 2,253 | 17,016 | <?xml version="1.0"?>
<rdf:RDF xmlns="http://vocab.ciudadesabiertas.es/def/sector-publico/subvencion#"
xml:base="http://vocab.ciudadesabiertas.es/def/sector-publico/subvencion"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:terms="http://purl.org/dc/terms/"
xmlns:owl="http://www.w3.or... | 17,700 |
https://github.com/alexisfischer/bloom-baby-bloom/blob/master/NOAA/Shimada/Shimada_Data_Import/merge_environ_variables_Shimada.m | Github Open Source | Open Source | MIT | 2,023 | bloom-baby-bloom | alexisfischer | MATLAB | Code | 358 | 1,699 | %% merge Shimada temperature data with lat lon coordinates
% load in lat lon coordinates and environmental variables from Shimada
% intakes 2019 or 2021 data
% group data by the minute
% Alexis D. Fischer, NWFSC, May 2022
clear;
filepath= '~/Documents/MATLAB/bloom-baby-bloom/NOAA/Shimada/';
yr='2019'; %'2021'
addpa... | 15,126 |
https://github.com/alexandrawaite/SANDBOX_REPO/blob/master/bash-scripting/if-statements-act4.sh | Github Open Source | Open Source | MIT | 2,017 | SANDBOX_REPO | alexandrawaite | Shell | Code | 75 | 175 | #!/bin/bash
#Create a bash script which will print a message based upon the day of the week
dayOfTheWeek=$(date +%u)
case $dayOfTheWeek in
1)
echo Somebody\'s got a case of the Mondays
;;
2)
echo Have a taco, it\'s Tuesday
;;
3)
echo Happy Hump day
;;
4)
echo Weekend\'s almost here... | 28,454 |
https://github.com/rickbw/crud-api/blob/master/src/test/java/crud/transform/TransformedReadableResourceSetAdaptKeyTest.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | crud-api | rickbw | Java | Code | 226 | 608 | /* Copyright 2014–2015 Rick Warren
*
* 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... | 35,009 |
https://github.com/jglodek/macwire-activator/blob/master/build.sbt | Github Open Source | Open Source | Apache-2.0 | 2,014 | macwire-activator | jglodek | Scala | Code | 42 | 175 | name := "macwire-activator"
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.4"
libraryDependencies ++= Seq(
"org.webjars" %% "webjars-play" % "2.3.0-2",
"org.webjars" % "bootstrap" % "3.1.1-1",
"com.softwaremill.macwire" %% "macros" % "0.7.... | 47,698 |
https://github.com/crazy4groovy/GroovyInAction2/blob/master/listings/chap19/xform/CustomControlStructure.groovy | Github Open Source | Open Source | Apache-2.0 | 2,015 | GroovyInAction2 | crazy4groovy | Groovy | Code | 32 | 111 | package xform
import java.lang.annotation.*
import org.codehaus.groovy.transform.*
@Retention(RetentionPolicy.SOURCE) //#1
@Target(ElementType.TYPE) //#2
@GroovyASTTransformationClass(classes = [WhenUntilTransform]) //#3
@interface Custo... | 38,035 |
https://github.com/one-touch-pipeline/otp/blob/master/src/test/groovy/de/dkfz/tbi/otp/qcTrafficLight/QcTrafficLightNotificationServiceSpec.groovy | Github Open Source | Open Source | Unlicense, MIT | null | otp | one-touch-pipeline | Groovy | Code | 662 | 1,930 | /*
* Copyright 2011-2019 The OTP authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... | 18,861 |
https://github.com/Jarvens/Exchange-Agent/blob/master/util/jwt/jwt.go | Github Open Source | Open Source | Apache-2.0 | null | Exchange-Agent | Jarvens | Go | Code | 9 | 24 | // date: 2019-03-12
package jwt
func CreateToken() {
}
| 35,265 |
https://github.com/BrianOfrim/boja/blob/master/vision/train/train.py | Github Open Source | Open Source | MIT | 2,022 | boja | BrianOfrim | Python | Code | 837 | 3,560 | # Based on sample code from the TorchVision 0.3 Object Detection Finetuning Tutorial
# http://pytorch.org/tutorials/intermediate/torchvision_tutorial.html
import os
import time
import sys
from typing import List
import re
import matplotlib
import matplotlib.pyplot as plt
import torch
from .datasets import BojaDataSe... | 32,374 |
https://github.com/RyanCCollins/restaurant-reviewer/blob/master/app/src/components/LoadingIndicator/index.module.scss | Github Open Source | Open Source | MIT | 2,020 | restaurant-reviewer | RyanCCollins | SCSS | Code | 18 | 61 | .loadingIndicator {
height: 300px;
display: flex;
align-items: center;
justify-content: center;
}
.ripple {
height: 70px;
width: 70px;
}
| 3,825 |
https://github.com/yuanjiejiahui/background_Management/blob/master/back/src/main/java/com/vector/manager/wx/controller/GzhFenweiTagController.java | Github Open Source | Open Source | Apache-2.0 | null | background_Management | yuanjiejiahui | Java | Code | 379 | 2,271 | package com.vector.manager.wx.controller;
import cn.hutool.core.collection.CollectionUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shi... | 39,538 |
https://github.com/reckenrode/nix-configs/blob/master/common/darwin/home-manager/ui.nix | Github Open Source | Open Source | MIT | 2,022 | nix-configs | reckenrode | null | Spoken | 28 | 112 | { ... }:
{
targets.darwin.defaults.NSGlobalDomain = {
AppleFontSmoothing = 0;
AppleShowScrollBars = "Always";
AppleReduceDesktopTinting = true;
CGDisableCursorLocationMagnification = true;
};
targets.darwin.defaults."com.apple.universalaccess" = {
showWindowTitlebarIcons = true;
};
}
| 26,967 |
https://github.com/ricardomonte/math-magicians-calculator/blob/master/src/components/__Test__/Navbar.test.js | Github Open Source | Open Source | MIT | 2,021 | math-magicians-calculator | ricardomonte | JavaScript | Code | 38 | 123 | import React from 'react';
import { BrowserRouter } from 'react-router-dom';
import '@testing-library/jest-dom';
import { render, screen } from '@testing-library/react';
import Navbar from '../Navbar';
const content = render(<BrowserRouter><Navbar /></BrowserRouter>);
test('return navbar match sanpshot', () => {
ex... | 40,251 |
https://github.com/artembo/django-tarantool/blob/master/django_app/app/tests/generic_ip_address.py | Github Open Source | Open Source | MIT | 2,021 | django-tarantool | artembo | Python | Code | 54 | 751 | from django.test import TestCase
from app.models import GenericIPAddress
class ForeignKeyTests(TestCase):
def test_create_ip_addresses(self):
GenericIPAddress.objects.create(
ip_address_v4='127.0.0.1',
ip_address_v6='2001:0db8:0000:0000:0000:ff00:0042:8329',
generic_i... | 39,609 |
https://github.com/larry82/LarryTu/blob/master/app/assets/stylesheets/teeth.scss | Github Open Source | Open Source | MIT | 2,016 | LarryTu | larry82 | SCSS | Code | 50 | 248 | #teeth{
padding-top: 30px;
h1{
color: #3b3a36;
margin-bottom: 60px;
}
img{
border-radius: 5px;
width: 400px;
}
.btn-comp{
margin-top: 30px;
width: 396px;
padding: 15px;
font-size: 18px;
border-radius:5px;
background-color: #3fb0ac;
color: white;
&:hover{
opacity:0.8;
}
}
}
#thanks{... | 52,490 |
https://github.com/denver-nsbm/Real-Estate/blob/master/src/com/denver/citiestate/DashboardController.java | Github Open Source | Open Source | MIT | null | Real-Estate | denver-nsbm | Java | Code | 557 | 2,082 | package com.denver.citiestate;
import java.io.File;
import java.net.URL;
import java.util.ResourceBundle;
import com.denver.citiestate.interfaces.Listable;
import com.denver.citiestate.pojo.ListHouse;
import com.denver.citiestate.utils.HouseFile;
import com.denver.citiestate.utils.SortedList;
import javafx.applicati... | 9,606 |
https://github.com/smr99/ITK/blob/master/Modules/Filtering/LabelMap/include/itkStatisticsLabelMapFilter.hxx | Github Open Source | Open Source | Apache-2.0 | null | ITK | smr99 | C++ | Code | 1,108 | 3,418 | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 165 |
https://github.com/danielcosta/ahsay-php/blob/master/tests/Enum/PurchaseTypeTest.php | Github Open Source | Open Source | MIT | 2,019 | ahsay-php | danielcosta | PHP | Code | 33 | 137 | <?php
namespace Ahsay\Test\Enum;
use Ahsay\Enum\PurchaseType;
use Ahsay\Test\AbstractTestCase;
class PurchaseTypeTest extends AbstractTestCase
{
public function testPaid()
{
$enum = PurchaseType::PAID();
$this->assertEquals('PAID', $enum->getValue());
}
public function testTrial()
... | 40,816 |
https://github.com/asatsi/kafka-proxy/blob/master/pkg/libs/oidc/jwt.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | kafka-proxy | asatsi | Go | Code | 225 | 624 | package oidc
import (
"bytes"
"encoding/base64"
"encoding/json"
"errors"
"strings"
"golang.org/x/oauth2/jws"
)
var (
ErrInvalidToken = errors.New("invalid token")
)
// ClaimSet represents claim set
type ClaimSet struct {
Iss string `json:"iss"` // email address of the client_id of the ... | 29,338 |
https://github.com/jokerzzccc/sturdy-doodle/blob/master/javaSE/src/com/joker/TestEnum/Demo01.java | Github Open Source | Open Source | Apache-2.0 | null | sturdy-doodle | jokerzzccc | Java | Code | 65 | 218 | package com.joker.TestEnum;
/**
* 枚举与switch 结合使用
*/
public class Demo01 {
public static void main(String[] args) {
Season season = Season.SPRING;
switch (season){//switch 的判断类型可以是byte short int char String 枚举,但不能是long
case SUMMER -> {
System.out.println("夏天");
... | 18,236 |
https://github.com/gitReiko/moodle-public-coursework/blob/master/classes/config/appoint_leaders/main.php | Github Open Source | Open Source | Apache-2.0 | 2,022 | moodle-public-coursework | gitReiko | PHP | Code | 189 | 732 | <?php
namespace Coursework\Config\AppointLeaders;
require_once '../../classes/lib/main_template.php';
require_once 'action.php';
require_once 'add.php';
require_once 'database.php';
require_once 'edit.php';
require_once 'overview.php';
require_once 'step_by_step.php';
class Main extends \Coursework\Classes\Lib\MainT... | 40,640 |
https://github.com/HuangStomach/algorithm/blob/master/algs4/4.Graphs/4.4/Exercises/4.4.3.java | Github Open Source | Open Source | MIT | 2,021 | algorithm | HuangStomach | Java | Code | 195 | 517 | import edu.princeton.cs.algs4.*;
class EdgeWeightedDigraph {
private final int V;
private int E;
private double[][] weight;
public EdgeWeightedDigraph(int v) {
this.V = v;
this.E = 0;
this.weight = new double[v][v];
for (int i = 0; i < v; i++) {
for (int j ... | 27,243 |
https://github.com/burst-apps-team/burstkit4j/blob/master/src/main/java/signumj/entity/response/http/AccountBlockIDsResponse.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | burstkit4j | burst-apps-team | Java | Code | 29 | 86 | package signumj.entity.response.http;
public final class AccountBlockIDsResponse extends BRSResponse {
private final String[] blockIds;
public AccountBlockIDsResponse(String[] blockIds) {
this.blockIds = blockIds;
}
public String[] getBlockIds() {
return blockIds;
}
}
| 31,216 |
https://github.com/takeratta/css-validator/blob/master/org/w3c/css/util/Messages.properties.sv | Github Open Source | Open Source | W3C-19980720, W3C-20150513 | null | css-validator | takeratta | null | Spoken | 2,610 | 6,674 | # Swedish translation, last updated in sync with Messages.properties.en,v 1.31
direction: ltr
language_name: Svenska
more_options: Fler val
title_more_options: Visa/Dölj andra valideringsval
all: Alla
normal_report: Normal rapport
most_important: Mest viktigt
no_warnings: Inga varningar
profile: Profil
no_special_prof... | 15,726 |
https://github.com/Grahack/pypsi/blob/master/pypsi/shell.py | Github Open Source | Open Source | BSD-3-Clause | 2,014 | pypsi | Grahack | Python | Code | 1,083 | 3,050 | #
# Copyright (c) 2014, Adam Meily
# 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 conditions and the ... | 24,450 |
https://github.com/VictorGil/mylocation-last_known_location-persistence/blob/master/last_known_location-persistence/src/main/java/net/devaction/mylocation/lastknownlocationpersistence/server/persistor/Persistor.java | Github Open Source | Open Source | MIT | 2,019 | mylocation-last_known_location-persistence | VictorGil | Java | Code | 398 | 1,377 | package net.devaction.mylocation.lastknownlocationpersistence.server.persistor;
import java.io.IOException;
import java.nio.channels.FileChannel;
import java.nio.channels.FileLock;
import java.nio.channels.OverlappingFileLockException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
... | 10,666 |
https://github.com/xo28122000/StringApp/blob/master/application/app/frontend/src/screens/About.js | Github Open Source | Open Source | MIT | null | StringApp | xo28122000 | JavaScript | Code | 355 | 917 | import React from "react";
import saxophoneplay from "../assets/saxophoneplay.svg";
import bro from "../assets/bro.svg";
import bandjam from "../assets/bandjam.svg";
import aboutbackground from "../assets/aboutbackground.svg";
import jainamProfileImage from "../assets/jainam-profile-image.jpeg";
import Shinypich... | 22,935 |
https://github.com/stajichlab/Afumigatus_pangenome/blob/master/Pangenome_analysis/Subtelo_analysis/reports/Aspergillus_fumigatus_IFM_62516.random_100k.tsv | Github Open Source | Open Source | MIT | 2,023 | Afumigatus_pangenome | stajichlab | TSV | Code | 4,008 | 17,886 | STRAIN TOTAL CORE ACCESSORY SINGLETON CHROM START END
Aspergillus_fumigatus_IFM_62516 29 28 1 0 scaffold_5 1111282 1211282
Aspergillus_fumigatus_IFM_62516 30 29 1 0 scaffold_3 3090446 3190446
Aspergillus_fumigatus_IFM_62516 35 34 1 0 scaffold_4 1682577 1782577
Aspergillus_fumigatus_IFM_62516 23 21 2 0 scaffold_3 137588... | 17,454 |
https://github.com/kprot1/hoba/blob/master/app/Vast/tests/nodes/vast_1/AbstractTest.php | Github Open Source | Open Source | MIT | null | hoba | kprot1 | PHP | Code | 48 | 140 | <?php
namespace App\Vast\tests\nodes\vast_1;
use PHPUnit\Framework\TestCase;
abstract class AbstractTest extends TestCase
{
protected $node;
abstract protected function initNode();
abstract public function testExistMethods();
abstract public function testMethods();
public function __construct... | 21,265 |
https://github.com/ardeus-ua/hassio-addons/blob/master/bluetooth_bcm43xx/run.sh | Github Open Source | Open Source | BSD-3-Clause | 2,018 | hassio-addons | ardeus-ua | Shell | Code | 21 | 62 | #!/bin/bash
set -e
hciattach /dev/ttyAMA0 bcm43xx 115200 noflow -
hciconfig hci0 up
while pgrep hciattach > /dev/null
do
sleep 600
done
| 26,216 |
https://github.com/lucasgdev/pathwar/blob/master/go/pkg/pwapi/api_admin-challenge-flavor-add.go | Github Open Source | Open Source | ECL-2.0, Apache-2.0, MIT-0, MIT | null | pathwar | lucasgdev | Go | Code | 78 | 336 | package pwapi
import (
"context"
"pathwar.land/v2/go/pkg/errcode"
"pathwar.land/v2/go/pkg/pwdb"
)
func (svc *service) AdminChallengeFlavorAdd(ctx context.Context, in *AdminChallengeFlavorAdd_Input) (*AdminChallengeFlavorAdd_Output, error) {
if !isAdminContext(ctx) {
return nil, errcode.ErrRestrictedArea
}
i... | 15,907 |
https://github.com/yarusophialiu/react-boilerplate/blob/master/app/containers/UsersPage/userApi.js | Github Open Source | Open Source | MIT | null | react-boilerplate | yarusophialiu | JavaScript | Code | 31 | 110 | import axios from 'axios';
axios.defaults.withCredentials = true;
axios.defaults.baseURL = 'https://rem-rest-api.herokuapp.com/api';
export const getUsers = () =>
axios.get('/users', {
params: {
limit: 1000,
},
});
export const deleteUser = userId => axios.delete(`/users/${userId}`);
| 13,761 |
https://github.com/Grom33/micronaut-zeebe/blob/master/src/main/java/io/micronaut/configuration/zeebe/core/specification/WorkerSpecification.java | Github Open Source | Open Source | Apache-2.0 | null | micronaut-zeebe | Grom33 | Java | Code | 174 | 458 | package io.micronaut.configuration.zeebe.core.specification;
import java.util.List;
/**
* Worker specification that can be useful for public API about workers of
* service
*
* @author Gromov Vitaly.
* @since 1.0.0
*/
public class WorkerSpecification {
// Worker name
private String typeName;
private... | 4,186 |
https://github.com/f-will/will-practice/blob/master/will-framework/src/main/java/com/will/framework/util/validate/AlibabaPhoneResponse.java | Github Open Source | Open Source | MIT | 2,016 | will-practice | f-will | Java | Code | 173 | 540 | package com.will.framework.util.validate;
import com.will.framework.pojo.BasePojo;
/**
* 阿里巴巴电话检测
* @author will
* @2015年3月30日
*/
public class AlibabaPhoneResponse extends BasePojo{
private static final long serialVersionUID = 1L;
private Long areaVid; //区域id
private String carrier; //电话类型
private St... | 17,484 |
https://github.com/TeamworkGuy2/TestChecks/blob/master/src/twg2/junitassist/checks/CheckTask.java | Github Open Source | Open Source | MIT | null | TestChecks | TeamworkGuy2 | Java | Code | 889 | 2,324 | package twg2.junitassist.checks;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.BiFunction;
import java.util.function.Function;
import org.junit.Assert;
/**
* @author TeamworkGuy2
* @since 2015-5-26
*/
public final class CheckTask {... | 48,965 |
https://github.com/grachyov/Web3Swift/blob/master/Example/Tests/TransactionReceipt/EthTransactionReceiptIT.swift | Github Open Source | Open Source | Apache-2.0 | 2,022 | Web3Swift | grachyov | Swift | Code | 167 | 786 | //
// This source file is part of the Web3Swift.io open source project
// Copyright 2018 The Web3Swift Authors
// Licensed under Apache License v2.0
//
// EthTransactionReceiptIT.swift
//
// Created by Timofey Solonin on 10/05/2018
//
import CryptoSwift
import Nimble
import Quick
@testable import Web3Swift
final clas... | 50,515 |
https://github.com/MangoPieface/node-frontend-base/blob/master/app/middleware/errors/500-internal-server-error.js | Github Open Source | Open Source | MIT | 2,020 | node-frontend-base | MangoPieface | JavaScript | Code | 35 | 137 | const { INTERNAL_SERVER_ERROR } = require('http-status-codes');
const { Logger } = require('@hmcts/nodejs-logging');
const logger = Logger.getLogger('500-internal-server-error.js');
module.exports = (error, req, res) => {
logger.error(`500 Error from request ${req.originalUrl} : ${JSON.stringify(error)} : ${error}`... | 34,520 |
https://github.com/heke006/TouchAnimation/blob/master/TouchAnimation/HKTouchAnimation/UIView+HKTouchAnimationExts.h | Github Open Source | Open Source | MIT | 2,016 | TouchAnimation | heke006 | Objective-C | Code | 40 | 149 | //
// UIView+HKTouchAnimationExts.h
// TouchAnimation
//
// Created by heke on 29/1/16.
// Copyright © 2016年 mhk. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (HKTouchAnimationExts)
//default YES;
@property (nonatomic, assign) BOOL enableTouchAnimation;
- (void)addTouchAnimationWithTouchPoi... | 40,647 |
https://github.com/wangpifu/ymusic/blob/master/mobile_write.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | ymusic | wangpifu | PHP | Code | 60 | 260 | <?php
require(dirname(__FILE__)."/global.php");
if ( $loginInfo['uid'] < 1 )
{
header("location:./passport.php");
}
else
{
$currentId = isset($_GET['cid']) ? intval($_GET['cid']) : 0;
if( !$isMobileRequest )
{
header("location:./?cid=".$currentId);
}
else
{
$template = template( "mobile_write.html" );
$... | 48,489 |
https://github.com/benryan1790/pertax-frontend/blob/master/test/controllers/auth/MinimumAuthActionSpec.scala | Github Open Source | Open Source | Apache-2.0 | null | pertax-frontend | benryan1790 | Scala | Code | 677 | 2,383 | /*
* Copyright 2020 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 26,773 |
https://github.com/nptravis/student-profiles/blob/master/app/assets/javascripts/standards.js | Github Open Source | Open Source | AFL-3.0 | null | student-profiles | nptravis | JavaScript | Code | 47 | 167 | $(document).on("turbolinks:load", function(){
if ($('body').data('controller') != 'standards') {return}
standardInit();
});
function standardInit(){
const standardId = $('#standard-data').data("standardid")
const grade_hash = $('#standard-data').data('grades')
const chartCanvas = $('#standard-data-container')
... | 46,546 |
https://github.com/laybatin/JNI-By-Examples/blob/master/java/in_derros_jni_Utilities.h | Github Open Source | Open Source | MIT | 2,019 | JNI-By-Examples | laybatin | C | Code | 129 | 496 | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class in_derros_jni_Utilities */
#ifndef _Included_in_derros_jni_Utilities
#define _Included_in_derros_jni_Utilities
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: in_derros_jni_Utilities
* Method: printMethod
* Signatur... | 3,454 |
https://github.com/iantal/AndroidPermissions/blob/master/apks/malware/app50/source/xcs/ff/P.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | AndroidPermissions | iantal | Java | Code | 425 | 2,352 | package xcs.ff;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.os.Message;
import android.support.v4.view.ViewP... | 33,579 |
https://github.com/TimeExceed/fathom/blob/master/.gitmodules | Github Open Source | Open Source | BSD-3-Clause | 2,022 | fathom | TimeExceed | Git Config | Code | 8 | 33 | [submodule "testa"]
path = testa
url = https://github.com/TimeExceed/testa.git
| 9,081 |
https://github.com/Gonxis/would-you-rather-app/blob/master/src/components/AnsweredPoll.js | Github Open Source | Open Source | MIT | null | would-you-rather-app | Gonxis | JavaScript | Code | 260 | 1,010 | import React, { Component } from "react"
import { connect } from "react-redux"
import { formatQuestion } from '../utils/helpers'
import { Redirect } from 'react-router-dom'
import Card from 'react-bootstrap/Card'
import Image from 'react-bootstrap/Image'
import ProgressBar from 'react-bootstrap/ProgressBar'
class Ans... | 28,709 |
https://github.com/huukhang1512/meetings/blob/master/frontend/src/pages/NotFound.js | Github Open Source | Open Source | MIT | 2,021 | meetings | huukhang1512 | JavaScript | Code | 126 | 384 | import React from 'react';
import { withRouter } from "react-router-dom";
import { withStyles } from '@material-ui/styles';
import Button from '@material-ui/core/Button';
const styles = theme => ({
root: {
alignItems: "center",
justifyContent: "center",
height : "100vh",
width : "100... | 34,978 |
https://github.com/aytona/InteractiveApplnDev/blob/master/Lab3/Program.cs | Github Open Source | Open Source | MIT | null | InteractiveApplnDev | aytona | C# | Code | 66 | 244 | using System;
using System.Collections.Generic;
namespace Lab3 {
class Program {
static void Main(string[] args) {
List<PrintManager> pmList = new List<PrintManager>();
PrintManager pm = PrintManager.Instance;
pm.ID = "My blah blah";
pmList.Add(pm);
... | 29,778 |
https://github.com/Jatin-Madaan/Python/blob/master/medical.py | Github Open Source | Open Source | MIT | null | Python | Jatin-Madaan | Python | Code | 1,693 | 5,815 | import xlrd as x
import time as m
import matplotlib.pyplot as plt
import pygame
pygame.init()
l=[]
lprice=[]
def medicines(y,name,age):
wb = x.open_workbook('medicin.xls')
tabs = wb.sheet_by_index(0)
syrups = wb.sheet_by_index(1)
vaccines = wb.sheet_by_index(2)
drips = wb.sheet_by_index(3)
... | 54,041 |
https://github.com/uiharness/platform/blob/master/code/cell.runtime.node/src/index.ts | Github Open Source | Open Source | MIT | 2,021 | platform | uiharness | TypeScript | Code | 6 | 12 | export { NodeRuntime } from './NodeRuntime';
| 38,494 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.